| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1 | #! /bin/sh | 
|  | 2 | # Guess values for system-dependent variables and create Makefiles. | 
| John Criswell | d000e1d | 2003-12-18 16:43:17 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.57 for [LLVM] [1.1]. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4 | # | 
|  | 5 | # Report bugs to <llvmbugs@cs.uiuc.edu>. | 
|  | 6 | # | 
|  | 7 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | 
|  | 8 | # Free Software Foundation, Inc. | 
|  | 9 | # This configure script is free software; the Free Software Foundation | 
|  | 10 | # gives unlimited permission to copy, distribute and modify it. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11 | ## --------------------- ## | 
|  | 12 | ## M4sh Initialization.  ## | 
|  | 13 | ## --------------------- ## | 
|  | 14 |  | 
|  | 15 | # Be Bourne compatible | 
|  | 16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | 
|  | 17 | emulate sh | 
|  | 18 | NULLCMD=: | 
|  | 19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | 
|  | 20 | # is contrary to our usage.  Disable this feature. | 
|  | 21 | alias -g '${1+"$@"}'='"$@"' | 
|  | 22 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | 
|  | 23 | set -o posix | 
|  | 24 | fi | 
|  | 25 |  | 
|  | 26 | # Support unset when possible. | 
|  | 27 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | 
|  | 28 | as_unset=unset | 
|  | 29 | else | 
|  | 30 | as_unset=false | 
|  | 31 | fi | 
|  | 32 |  | 
|  | 33 |  | 
|  | 34 | # Work around bugs in pre-3.0 UWIN ksh. | 
|  | 35 | $as_unset ENV MAIL MAILPATH | 
|  | 36 | PS1='$ ' | 
|  | 37 | PS2='> ' | 
|  | 38 | PS4='+ ' | 
|  | 39 |  | 
|  | 40 | # NLS nuisances. | 
|  | 41 | for as_var in \ | 
|  | 42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | 
|  | 43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | 
|  | 44 | LC_TELEPHONE LC_TIME | 
|  | 45 | do | 
|  | 46 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then | 
|  | 47 | eval $as_var=C; export $as_var | 
|  | 48 | else | 
|  | 49 | $as_unset $as_var | 
|  | 50 | fi | 
|  | 51 | done | 
|  | 52 |  | 
|  | 53 | # Required to use basename. | 
|  | 54 | if expr a : '\(a\)' >/dev/null 2>&1; then | 
|  | 55 | as_expr=expr | 
|  | 56 | else | 
|  | 57 | as_expr=false | 
|  | 58 | fi | 
|  | 59 |  | 
|  | 60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | 
|  | 61 | as_basename=basename | 
|  | 62 | else | 
|  | 63 | as_basename=false | 
|  | 64 | fi | 
|  | 65 |  | 
|  | 66 |  | 
|  | 67 | # Name of the executable. | 
|  | 68 | as_me=`$as_basename "$0" || | 
|  | 69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
|  | 70 | X"$0" : 'X\(//\)$' \| \ | 
|  | 71 | X"$0" : 'X\(/\)$' \| \ | 
|  | 72 | .     : '\(.\)' 2>/dev/null || | 
|  | 73 | echo X/"$0" | | 
|  | 74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | 
|  | 75 | /^X\/\(\/\/\)$/{ s//\1/; q; } | 
|  | 76 | /^X\/\(\/\).*/{ s//\1/; q; } | 
|  | 77 | s/.*/./; q'` | 
|  | 78 |  | 
|  | 79 |  | 
|  | 80 | # PATH needs CR, and LINENO needs CR and PATH. | 
|  | 81 | # Avoid depending upon Character Ranges. | 
|  | 82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
|  | 83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
|  | 84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
|  | 85 | as_cr_digits='0123456789' | 
|  | 86 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
|  | 87 |  | 
|  | 88 | # The user is always right. | 
|  | 89 | if test "${PATH_SEPARATOR+set}" != set; then | 
|  | 90 | echo "#! /bin/sh" >conf$$.sh | 
|  | 91 | echo  "exit 0"   >>conf$$.sh | 
|  | 92 | chmod +x conf$$.sh | 
|  | 93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | 
|  | 94 | PATH_SEPARATOR=';' | 
|  | 95 | else | 
|  | 96 | PATH_SEPARATOR=: | 
|  | 97 | fi | 
|  | 98 | rm -f conf$$.sh | 
|  | 99 | fi | 
|  | 100 |  | 
|  | 101 |  | 
|  | 102 | as_lineno_1=$LINENO | 
|  | 103 | as_lineno_2=$LINENO | 
|  | 104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | 
|  | 105 | test "x$as_lineno_1" != "x$as_lineno_2" && | 
|  | 106 | test "x$as_lineno_3"  = "x$as_lineno_2"  || { | 
|  | 107 | # Find who we are.  Look in the path if we contain no path at all | 
|  | 108 | # relative or not. | 
|  | 109 | case $0 in | 
|  | 110 | *[\\/]* ) as_myself=$0 ;; | 
|  | 111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 112 | for as_dir in $PATH | 
|  | 113 | do | 
|  | 114 | IFS=$as_save_IFS | 
|  | 115 | test -z "$as_dir" && as_dir=. | 
|  | 116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
|  | 117 | done | 
|  | 118 |  | 
|  | 119 | ;; | 
|  | 120 | esac | 
|  | 121 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
|  | 122 | # in which case we are not to be found in the path. | 
|  | 123 | if test "x$as_myself" = x; then | 
|  | 124 | as_myself=$0 | 
|  | 125 | fi | 
|  | 126 | if test ! -f "$as_myself"; then | 
|  | 127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | 
|  | 128 | { (exit 1); exit 1; }; } | 
|  | 129 | fi | 
|  | 130 | case $CONFIG_SHELL in | 
|  | 131 | '') | 
|  | 132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | 
|  | 134 | do | 
|  | 135 | IFS=$as_save_IFS | 
|  | 136 | test -z "$as_dir" && as_dir=. | 
|  | 137 | for as_base in sh bash ksh sh5; do | 
|  | 138 | case $as_dir in | 
|  | 139 | /*) | 
|  | 140 | if ("$as_dir/$as_base" -c ' | 
|  | 141 | as_lineno_1=$LINENO | 
|  | 142 | as_lineno_2=$LINENO | 
|  | 143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | 
|  | 144 | test "x$as_lineno_1" != "x$as_lineno_2" && | 
|  | 145 | test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then | 
|  | 146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | 
|  | 147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | 
|  | 148 | CONFIG_SHELL=$as_dir/$as_base | 
|  | 149 | export CONFIG_SHELL | 
|  | 150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | 
|  | 151 | fi;; | 
|  | 152 | esac | 
|  | 153 | done | 
|  | 154 | done | 
|  | 155 | ;; | 
|  | 156 | esac | 
|  | 157 |  | 
|  | 158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | 
|  | 159 | # uniformly replaced by the line number.  The first 'sed' inserts a | 
|  | 160 | # line-number line before each line; the second 'sed' does the real | 
|  | 161 | # work.  The second script uses 'N' to pair each line-number line | 
|  | 162 | # with the numbered line, and appends trailing '-' during | 
|  | 163 | # substitution so that $LINENO is not a special case at line end. | 
|  | 164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | 
|  | 165 | # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-) | 
|  | 166 | sed '=' <$as_myself | | 
|  | 167 | sed ' | 
|  | 168 | N | 
|  | 169 | s,$,-, | 
|  | 170 | : loop | 
|  | 171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | 
|  | 172 | t loop | 
|  | 173 | s,-$,, | 
|  | 174 | s,^['$as_cr_digits']*\n,, | 
|  | 175 | ' >$as_me.lineno && | 
|  | 176 | chmod +x $as_me.lineno || | 
|  | 177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | 
|  | 178 | { (exit 1); exit 1; }; } | 
|  | 179 |  | 
|  | 180 | # Don't try to exec as it changes $[0], causing all sort of problems | 
|  | 181 | # (the dirname of $[0] is not the place where we might find the | 
|  | 182 | # original and so on.  Autoconf is especially sensible to this). | 
|  | 183 | . ./$as_me.lineno | 
|  | 184 | # Exit status is that of the last command. | 
|  | 185 | exit | 
|  | 186 | } | 
|  | 187 |  | 
|  | 188 |  | 
|  | 189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | 
|  | 190 | *c*,-n*) ECHO_N= ECHO_C=' | 
|  | 191 | ' ECHO_T='	' ;; | 
|  | 192 | *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;; | 
|  | 193 | *)       ECHO_N= ECHO_C='\c' ECHO_T= ;; | 
|  | 194 | esac | 
|  | 195 |  | 
|  | 196 | if expr a : '\(a\)' >/dev/null 2>&1; then | 
|  | 197 | as_expr=expr | 
|  | 198 | else | 
|  | 199 | as_expr=false | 
|  | 200 | fi | 
|  | 201 |  | 
|  | 202 | rm -f conf$$ conf$$.exe conf$$.file | 
|  | 203 | echo >conf$$.file | 
|  | 204 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
|  | 205 | # We could just check for DJGPP; but this test a) works b) is more generic | 
|  | 206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | 
|  | 207 | if test -f conf$$.exe; then | 
|  | 208 | # Don't use ln at all; we don't have any links | 
|  | 209 | as_ln_s='cp -p' | 
|  | 210 | else | 
|  | 211 | as_ln_s='ln -s' | 
|  | 212 | fi | 
|  | 213 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
|  | 214 | as_ln_s=ln | 
|  | 215 | else | 
|  | 216 | as_ln_s='cp -p' | 
|  | 217 | fi | 
|  | 218 | rm -f conf$$ conf$$.exe conf$$.file | 
|  | 219 |  | 
|  | 220 | if mkdir -p . 2>/dev/null; then | 
|  | 221 | as_mkdir_p=: | 
|  | 222 | else | 
|  | 223 | as_mkdir_p=false | 
|  | 224 | fi | 
|  | 225 |  | 
|  | 226 | as_executable_p="test -f" | 
|  | 227 |  | 
|  | 228 | # Sed expression to map a string onto a valid CPP name. | 
|  | 229 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | 
|  | 230 |  | 
|  | 231 | # Sed expression to map a string onto a valid variable name. | 
|  | 232 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | 
|  | 233 |  | 
|  | 234 |  | 
|  | 235 | # IFS | 
|  | 236 | # We need space, tab and new line, in precisely that order. | 
|  | 237 | as_nl=' | 
|  | 238 | ' | 
|  | 239 | IFS=" 	$as_nl" | 
|  | 240 |  | 
|  | 241 | # CDPATH. | 
|  | 242 | $as_unset CDPATH | 
|  | 243 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 244 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 245 |  | 
|  | 246 | # Check that we are running under the correct shell. | 
|  | 247 | SHELL=${CONFIG_SHELL-/bin/sh} | 
|  | 248 |  | 
|  | 249 | case X$ECHO in | 
|  | 250 | X*--fallback-echo) | 
|  | 251 | # Remove one level of quotation (which was required for Make). | 
|  | 252 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` | 
|  | 253 | ;; | 
|  | 254 | esac | 
|  | 255 |  | 
|  | 256 | echo=${ECHO-echo} | 
|  | 257 | if test "X$1" = X--no-reexec; then | 
|  | 258 | # Discard the --no-reexec flag, and continue. | 
|  | 259 | shift | 
|  | 260 | elif test "X$1" = X--fallback-echo; then | 
|  | 261 | # Avoid inline document here, it may be left over | 
|  | 262 | : | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 263 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 264 | # Yippee, $echo works! | 
|  | 265 | : | 
|  | 266 | else | 
|  | 267 | # Restart under the correct shell. | 
|  | 268 | exec $SHELL "$0" --no-reexec ${1+"$@"} | 
|  | 269 | fi | 
|  | 270 |  | 
|  | 271 | if test "X$1" = X--fallback-echo; then | 
|  | 272 | # used as fallback echo | 
|  | 273 | shift | 
|  | 274 | cat <<EOF | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 275 | $* | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 276 | EOF | 
|  | 277 | exit 0 | 
|  | 278 | fi | 
|  | 279 |  | 
|  | 280 | # The HP-UX ksh and POSIX shell print the target directory to stdout | 
|  | 281 | # if CDPATH is set. | 
|  | 282 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi | 
|  | 283 |  | 
|  | 284 | if test -z "$ECHO"; then | 
|  | 285 | if test "X${echo_test_string+set}" != Xset; then | 
|  | 286 | # find a string as large as possible, as long as the shell can cope with it | 
|  | 287 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | 
|  | 288 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | 
|  | 289 | if (echo_test_string="`eval $cmd`") 2>/dev/null && | 
|  | 290 | echo_test_string="`eval $cmd`" && | 
|  | 291 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | 
|  | 292 | then | 
|  | 293 | break | 
|  | 294 | fi | 
|  | 295 | done | 
|  | 296 | fi | 
|  | 297 |  | 
|  | 298 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | 
|  | 299 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | 
|  | 300 | test "X$echo_testing_string" = "X$echo_test_string"; then | 
|  | 301 | : | 
|  | 302 | else | 
|  | 303 | # The Solaris, AIX, and Digital Unix default echo programs unquote | 
|  | 304 | # backslashes.  This makes it impossible to quote backslashes using | 
|  | 305 | #   echo "$something" | sed 's/\\/\\\\/g' | 
|  | 306 | # | 
|  | 307 | # So, first we look for a working echo in the user's PATH. | 
|  | 308 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 309 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 310 | for dir in $PATH /usr/ucb; do | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 311 | IFS="$lt_save_ifs" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 312 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | 
|  | 313 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | 
|  | 314 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | 
|  | 315 | test "X$echo_testing_string" = "X$echo_test_string"; then | 
|  | 316 | echo="$dir/echo" | 
|  | 317 | break | 
|  | 318 | fi | 
|  | 319 | done | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 320 | IFS="$lt_save_ifs" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 321 |  | 
|  | 322 | if test "X$echo" = Xecho; then | 
|  | 323 | # We didn't find a better echo, so look for alternatives. | 
|  | 324 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | 
|  | 325 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | 
|  | 326 | test "X$echo_testing_string" = "X$echo_test_string"; then | 
|  | 327 | # This shell has a builtin print -r that does the trick. | 
|  | 328 | echo='print -r' | 
|  | 329 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | 
|  | 330 | test "X$CONFIG_SHELL" != X/bin/ksh; then | 
|  | 331 | # If we have ksh, try running configure again with it. | 
|  | 332 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | 
|  | 333 | export ORIGINAL_CONFIG_SHELL | 
|  | 334 | CONFIG_SHELL=/bin/ksh | 
|  | 335 | export CONFIG_SHELL | 
|  | 336 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | 
|  | 337 | else | 
|  | 338 | # Try using printf. | 
|  | 339 | echo='printf %s\n' | 
|  | 340 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | 
|  | 341 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | 
|  | 342 | test "X$echo_testing_string" = "X$echo_test_string"; then | 
|  | 343 | # Cool, printf works | 
|  | 344 | : | 
|  | 345 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | 
|  | 346 | test "X$echo_testing_string" = 'X\t' && | 
|  | 347 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | 
|  | 348 | test "X$echo_testing_string" = "X$echo_test_string"; then | 
|  | 349 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | 
|  | 350 | export CONFIG_SHELL | 
|  | 351 | SHELL="$CONFIG_SHELL" | 
|  | 352 | export SHELL | 
|  | 353 | echo="$CONFIG_SHELL $0 --fallback-echo" | 
|  | 354 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | 
|  | 355 | test "X$echo_testing_string" = 'X\t' && | 
|  | 356 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | 
|  | 357 | test "X$echo_testing_string" = "X$echo_test_string"; then | 
|  | 358 | echo="$CONFIG_SHELL $0 --fallback-echo" | 
|  | 359 | else | 
|  | 360 | # maybe with a smaller string... | 
|  | 361 | prev=: | 
|  | 362 |  | 
|  | 363 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | 
|  | 364 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | 
|  | 365 | then | 
|  | 366 | break | 
|  | 367 | fi | 
|  | 368 | prev="$cmd" | 
|  | 369 | done | 
|  | 370 |  | 
|  | 371 | if test "$prev" != 'sed 50q "$0"'; then | 
|  | 372 | echo_test_string=`eval $prev` | 
|  | 373 | export echo_test_string | 
|  | 374 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | 
|  | 375 | else | 
|  | 376 | # Oops.  We lost completely, so just stick with echo. | 
|  | 377 | echo=echo | 
|  | 378 | fi | 
|  | 379 | fi | 
|  | 380 | fi | 
|  | 381 | fi | 
|  | 382 | fi | 
|  | 383 | fi | 
|  | 384 |  | 
|  | 385 | # Copy echo and quote the copy suitably for passing to libtool from | 
|  | 386 | # the Makefile, instead of quoting the original, which is used later. | 
|  | 387 | ECHO=$echo | 
|  | 388 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | 
|  | 389 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | 
|  | 390 | fi | 
|  | 391 |  | 
|  | 392 |  | 
|  | 393 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 394 |  | 
|  | 395 | tagnames=`echo "$tagnames,CXX" | sed 's/^,//'` | 
|  | 396 |  | 
|  | 397 | tagnames=`echo "$tagnames,F77" | sed 's/^,//'` | 
|  | 398 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 399 | # Name of the host. | 
|  | 400 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | 
|  | 401 | # so uname gets run too. | 
|  | 402 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 403 |  | 
|  | 404 | exec 6>&1 | 
|  | 405 |  | 
|  | 406 | # | 
|  | 407 | # Initializations. | 
|  | 408 | # | 
|  | 409 | ac_default_prefix=/usr/local | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 410 | ac_config_libobj_dir=. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 411 | cross_compiling=no | 
|  | 412 | subdirs= | 
|  | 413 | MFLAGS= | 
|  | 414 | MAKEFLAGS= | 
|  | 415 | SHELL=${CONFIG_SHELL-/bin/sh} | 
|  | 416 |  | 
|  | 417 | # Maximum number of lines to put in a shell here document. | 
|  | 418 | # This variable seems obsolete.  It should probably be removed, and | 
|  | 419 | # only ac_max_sed_lines should be used. | 
|  | 420 | : ${ac_max_here_lines=38} | 
|  | 421 |  | 
|  | 422 | # Identity of this package. | 
|  | 423 | PACKAGE_NAME='[LLVM]' | 
|  | 424 | PACKAGE_TARNAME='--llvm--' | 
| John Criswell | d000e1d | 2003-12-18 16:43:17 +0000 | [diff] [blame] | 425 | PACKAGE_VERSION='[1.1]' | 
|  | 426 | PACKAGE_STRING='[LLVM] [1.1]' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 427 | PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu' | 
|  | 428 |  | 
| John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 429 | ac_subdirs_all="$ac_subdirs_all projects/${i}" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 430 | # Factoring default headers for most tests. | 
|  | 431 | ac_includes_default="\ | 
|  | 432 | #include <stdio.h> | 
|  | 433 | #if HAVE_SYS_TYPES_H | 
|  | 434 | # include <sys/types.h> | 
|  | 435 | #endif | 
|  | 436 | #if HAVE_SYS_STAT_H | 
|  | 437 | # include <sys/stat.h> | 
|  | 438 | #endif | 
|  | 439 | #if STDC_HEADERS | 
|  | 440 | # include <stdlib.h> | 
|  | 441 | # include <stddef.h> | 
|  | 442 | #else | 
|  | 443 | # if HAVE_STDLIB_H | 
|  | 444 | #  include <stdlib.h> | 
|  | 445 | # endif | 
|  | 446 | #endif | 
|  | 447 | #if HAVE_STRING_H | 
|  | 448 | # if !STDC_HEADERS && HAVE_MEMORY_H | 
|  | 449 | #  include <memory.h> | 
|  | 450 | # endif | 
|  | 451 | # include <string.h> | 
|  | 452 | #endif | 
|  | 453 | #if HAVE_STRINGS_H | 
|  | 454 | # include <strings.h> | 
|  | 455 | #endif | 
|  | 456 | #if HAVE_INTTYPES_H | 
|  | 457 | # include <inttypes.h> | 
|  | 458 | #else | 
|  | 459 | # if HAVE_STDINT_H | 
|  | 460 | #  include <stdint.h> | 
|  | 461 | # endif | 
|  | 462 | #endif | 
|  | 463 | #if HAVE_UNISTD_H | 
|  | 464 | # include <unistd.h> | 
|  | 465 | #endif" | 
|  | 466 |  | 
|  | 467 | ac_unique_file=""Makefile.config.in"" | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 468 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DOT ETAGS ETAGSFLAGS PYTHON QMTEST ENDIAN ALLOCA MMAP_FILE ENABLE_OPTIMIZED SPEC_ROOT USE_SPEC SPEC95_ROOT USE_SPEC95 UPB DISABLE_LLC_DIFFS JIT LLVMCC1 LLVMCC1PLUS BCR PAPIDIR SHLIBEXT LIBOBJS LTLIBOBJS' | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 469 | ac_subst_files='' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 470 |  | 
|  | 471 | # Initialize some variables set by options. | 
|  | 472 | ac_init_help= | 
|  | 473 | ac_init_version=false | 
|  | 474 | # The variables have the same names as the options, with | 
|  | 475 | # dashes changed to underlines. | 
|  | 476 | cache_file=/dev/null | 
|  | 477 | exec_prefix=NONE | 
|  | 478 | no_create= | 
|  | 479 | no_recursion= | 
|  | 480 | prefix=NONE | 
|  | 481 | program_prefix=NONE | 
|  | 482 | program_suffix=NONE | 
|  | 483 | program_transform_name=s,x,x, | 
|  | 484 | silent= | 
|  | 485 | site= | 
|  | 486 | srcdir= | 
|  | 487 | verbose= | 
|  | 488 | x_includes=NONE | 
|  | 489 | x_libraries=NONE | 
|  | 490 |  | 
|  | 491 | # Installation directory options. | 
|  | 492 | # These are left unexpanded so users can "make install exec_prefix=/foo" | 
|  | 493 | # and all the variables that are supposed to be based on exec_prefix | 
|  | 494 | # by default will actually change. | 
|  | 495 | # Use braces instead of parens because sh, perl, etc. also accept them. | 
|  | 496 | bindir='${exec_prefix}/bin' | 
|  | 497 | sbindir='${exec_prefix}/sbin' | 
|  | 498 | libexecdir='${exec_prefix}/libexec' | 
|  | 499 | datadir='${prefix}/share' | 
|  | 500 | sysconfdir='${prefix}/etc' | 
|  | 501 | sharedstatedir='${prefix}/com' | 
|  | 502 | localstatedir='${prefix}/var' | 
|  | 503 | libdir='${exec_prefix}/lib' | 
|  | 504 | includedir='${prefix}/include' | 
|  | 505 | oldincludedir='/usr/include' | 
|  | 506 | infodir='${prefix}/info' | 
|  | 507 | mandir='${prefix}/man' | 
|  | 508 |  | 
|  | 509 | ac_prev= | 
|  | 510 | for ac_option | 
|  | 511 | do | 
|  | 512 | # If the previous option needs an argument, assign it. | 
|  | 513 | if test -n "$ac_prev"; then | 
|  | 514 | eval "$ac_prev=\$ac_option" | 
|  | 515 | ac_prev= | 
|  | 516 | continue | 
|  | 517 | fi | 
|  | 518 |  | 
|  | 519 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | 
|  | 520 |  | 
|  | 521 | # Accept the important Cygnus configure options, so we can diagnose typos. | 
|  | 522 |  | 
|  | 523 | case $ac_option in | 
|  | 524 |  | 
|  | 525 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
|  | 526 | ac_prev=bindir ;; | 
|  | 527 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
|  | 528 | bindir=$ac_optarg ;; | 
|  | 529 |  | 
|  | 530 | -build | --build | --buil | --bui | --bu) | 
|  | 531 | ac_prev=build_alias ;; | 
|  | 532 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
|  | 533 | build_alias=$ac_optarg ;; | 
|  | 534 |  | 
|  | 535 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
|  | 536 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
|  | 537 | ac_prev=cache_file ;; | 
|  | 538 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
|  | 539 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
|  | 540 | cache_file=$ac_optarg ;; | 
|  | 541 |  | 
|  | 542 | --config-cache | -C) | 
|  | 543 | cache_file=config.cache ;; | 
|  | 544 |  | 
|  | 545 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | 
|  | 546 | ac_prev=datadir ;; | 
|  | 547 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | 
|  | 548 | | --da=*) | 
|  | 549 | datadir=$ac_optarg ;; | 
|  | 550 |  | 
|  | 551 | -disable-* | --disable-*) | 
|  | 552 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 
|  | 553 | # Reject names that are not valid shell variable names. | 
|  | 554 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
|  | 555 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | 
|  | 556 | { (exit 1); exit 1; }; } | 
|  | 557 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | 
|  | 558 | eval "enable_$ac_feature=no" ;; | 
|  | 559 |  | 
|  | 560 | -enable-* | --enable-*) | 
|  | 561 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 
|  | 562 | # Reject names that are not valid shell variable names. | 
|  | 563 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
|  | 564 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | 
|  | 565 | { (exit 1); exit 1; }; } | 
|  | 566 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | 
|  | 567 | case $ac_option in | 
|  | 568 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | 
|  | 569 | *) ac_optarg=yes ;; | 
|  | 570 | esac | 
|  | 571 | eval "enable_$ac_feature='$ac_optarg'" ;; | 
|  | 572 |  | 
|  | 573 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
|  | 574 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
|  | 575 | | --exec | --exe | --ex) | 
|  | 576 | ac_prev=exec_prefix ;; | 
|  | 577 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
|  | 578 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
|  | 579 | | --exec=* | --exe=* | --ex=*) | 
|  | 580 | exec_prefix=$ac_optarg ;; | 
|  | 581 |  | 
|  | 582 | -gas | --gas | --ga | --g) | 
|  | 583 | # Obsolete; use --with-gas. | 
|  | 584 | with_gas=yes ;; | 
|  | 585 |  | 
|  | 586 | -help | --help | --hel | --he | -h) | 
|  | 587 | ac_init_help=long ;; | 
|  | 588 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | 
|  | 589 | ac_init_help=recursive ;; | 
|  | 590 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | 
|  | 591 | ac_init_help=short ;; | 
|  | 592 |  | 
|  | 593 | -host | --host | --hos | --ho) | 
|  | 594 | ac_prev=host_alias ;; | 
|  | 595 | -host=* | --host=* | --hos=* | --ho=*) | 
|  | 596 | host_alias=$ac_optarg ;; | 
|  | 597 |  | 
|  | 598 | -includedir | --includedir | --includedi | --included | --include \ | 
|  | 599 | | --includ | --inclu | --incl | --inc) | 
|  | 600 | ac_prev=includedir ;; | 
|  | 601 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
|  | 602 | | --includ=* | --inclu=* | --incl=* | --inc=*) | 
|  | 603 | includedir=$ac_optarg ;; | 
|  | 604 |  | 
|  | 605 | -infodir | --infodir | --infodi | --infod | --info | --inf) | 
|  | 606 | ac_prev=infodir ;; | 
|  | 607 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
|  | 608 | infodir=$ac_optarg ;; | 
|  | 609 |  | 
|  | 610 | -libdir | --libdir | --libdi | --libd) | 
|  | 611 | ac_prev=libdir ;; | 
|  | 612 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
|  | 613 | libdir=$ac_optarg ;; | 
|  | 614 |  | 
|  | 615 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
|  | 616 | | --libexe | --libex | --libe) | 
|  | 617 | ac_prev=libexecdir ;; | 
|  | 618 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
|  | 619 | | --libexe=* | --libex=* | --libe=*) | 
|  | 620 | libexecdir=$ac_optarg ;; | 
|  | 621 |  | 
|  | 622 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
|  | 623 | | --localstate | --localstat | --localsta | --localst \ | 
|  | 624 | | --locals | --local | --loca | --loc | --lo) | 
|  | 625 | ac_prev=localstatedir ;; | 
|  | 626 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
|  | 627 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | 
|  | 628 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | 
|  | 629 | localstatedir=$ac_optarg ;; | 
|  | 630 |  | 
|  | 631 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
|  | 632 | ac_prev=mandir ;; | 
|  | 633 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
|  | 634 | mandir=$ac_optarg ;; | 
|  | 635 |  | 
|  | 636 | -nfp | --nfp | --nf) | 
|  | 637 | # Obsolete; use --without-fp. | 
|  | 638 | with_fp=no ;; | 
|  | 639 |  | 
|  | 640 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
|  | 641 | | --no-cr | --no-c | -n) | 
|  | 642 | no_create=yes ;; | 
|  | 643 |  | 
|  | 644 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
|  | 645 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
|  | 646 | no_recursion=yes ;; | 
|  | 647 |  | 
|  | 648 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
|  | 649 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
|  | 650 | | --oldin | --oldi | --old | --ol | --o) | 
|  | 651 | ac_prev=oldincludedir ;; | 
|  | 652 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
|  | 653 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
|  | 654 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
|  | 655 | oldincludedir=$ac_optarg ;; | 
|  | 656 |  | 
|  | 657 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
|  | 658 | ac_prev=prefix ;; | 
|  | 659 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
|  | 660 | prefix=$ac_optarg ;; | 
|  | 661 |  | 
|  | 662 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
|  | 663 | | --program-pre | --program-pr | --program-p) | 
|  | 664 | ac_prev=program_prefix ;; | 
|  | 665 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
|  | 666 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
|  | 667 | program_prefix=$ac_optarg ;; | 
|  | 668 |  | 
|  | 669 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
|  | 670 | | --program-suf | --program-su | --program-s) | 
|  | 671 | ac_prev=program_suffix ;; | 
|  | 672 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
|  | 673 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
|  | 674 | program_suffix=$ac_optarg ;; | 
|  | 675 |  | 
|  | 676 | -program-transform-name | --program-transform-name \ | 
|  | 677 | | --program-transform-nam | --program-transform-na \ | 
|  | 678 | | --program-transform-n | --program-transform- \ | 
|  | 679 | | --program-transform | --program-transfor \ | 
|  | 680 | | --program-transfo | --program-transf \ | 
|  | 681 | | --program-trans | --program-tran \ | 
|  | 682 | | --progr-tra | --program-tr | --program-t) | 
|  | 683 | ac_prev=program_transform_name ;; | 
|  | 684 | -program-transform-name=* | --program-transform-name=* \ | 
|  | 685 | | --program-transform-nam=* | --program-transform-na=* \ | 
|  | 686 | | --program-transform-n=* | --program-transform-=* \ | 
|  | 687 | | --program-transform=* | --program-transfor=* \ | 
|  | 688 | | --program-transfo=* | --program-transf=* \ | 
|  | 689 | | --program-trans=* | --program-tran=* \ | 
|  | 690 | | --progr-tra=* | --program-tr=* | --program-t=*) | 
|  | 691 | program_transform_name=$ac_optarg ;; | 
|  | 692 |  | 
|  | 693 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 694 | | -silent | --silent | --silen | --sile | --sil) | 
|  | 695 | silent=yes ;; | 
|  | 696 |  | 
|  | 697 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
|  | 698 | ac_prev=sbindir ;; | 
|  | 699 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
|  | 700 | | --sbi=* | --sb=*) | 
|  | 701 | sbindir=$ac_optarg ;; | 
|  | 702 |  | 
|  | 703 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
|  | 704 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
|  | 705 | | --sharedst | --shareds | --shared | --share | --shar \ | 
|  | 706 | | --sha | --sh) | 
|  | 707 | ac_prev=sharedstatedir ;; | 
|  | 708 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
|  | 709 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
|  | 710 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
|  | 711 | | --sha=* | --sh=*) | 
|  | 712 | sharedstatedir=$ac_optarg ;; | 
|  | 713 |  | 
|  | 714 | -site | --site | --sit) | 
|  | 715 | ac_prev=site ;; | 
|  | 716 | -site=* | --site=* | --sit=*) | 
|  | 717 | site=$ac_optarg ;; | 
|  | 718 |  | 
|  | 719 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
|  | 720 | ac_prev=srcdir ;; | 
|  | 721 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
|  | 722 | srcdir=$ac_optarg ;; | 
|  | 723 |  | 
|  | 724 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
|  | 725 | | --syscon | --sysco | --sysc | --sys | --sy) | 
|  | 726 | ac_prev=sysconfdir ;; | 
|  | 727 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
|  | 728 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
|  | 729 | sysconfdir=$ac_optarg ;; | 
|  | 730 |  | 
|  | 731 | -target | --target | --targe | --targ | --tar | --ta | --t) | 
|  | 732 | ac_prev=target_alias ;; | 
|  | 733 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
|  | 734 | target_alias=$ac_optarg ;; | 
|  | 735 |  | 
|  | 736 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
|  | 737 | verbose=yes ;; | 
|  | 738 |  | 
|  | 739 | -version | --version | --versio | --versi | --vers | -V) | 
|  | 740 | ac_init_version=: ;; | 
|  | 741 |  | 
|  | 742 | -with-* | --with-*) | 
|  | 743 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 
|  | 744 | # Reject names that are not valid shell variable names. | 
|  | 745 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
|  | 746 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | 
|  | 747 | { (exit 1); exit 1; }; } | 
|  | 748 | ac_package=`echo $ac_package| sed 's/-/_/g'` | 
|  | 749 | case $ac_option in | 
|  | 750 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | 
|  | 751 | *) ac_optarg=yes ;; | 
|  | 752 | esac | 
|  | 753 | eval "with_$ac_package='$ac_optarg'" ;; | 
|  | 754 |  | 
|  | 755 | -without-* | --without-*) | 
|  | 756 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 
|  | 757 | # Reject names that are not valid shell variable names. | 
|  | 758 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
|  | 759 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | 
|  | 760 | { (exit 1); exit 1; }; } | 
|  | 761 | ac_package=`echo $ac_package | sed 's/-/_/g'` | 
|  | 762 | eval "with_$ac_package=no" ;; | 
|  | 763 |  | 
|  | 764 | --x) | 
|  | 765 | # Obsolete; use --with-x. | 
|  | 766 | with_x=yes ;; | 
|  | 767 |  | 
|  | 768 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
|  | 769 | | --x-incl | --x-inc | --x-in | --x-i) | 
|  | 770 | ac_prev=x_includes ;; | 
|  | 771 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
|  | 772 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
|  | 773 | x_includes=$ac_optarg ;; | 
|  | 774 |  | 
|  | 775 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
|  | 776 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
|  | 777 | ac_prev=x_libraries ;; | 
|  | 778 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
|  | 779 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | 
|  | 780 | x_libraries=$ac_optarg ;; | 
|  | 781 |  | 
|  | 782 | -*) { echo "$as_me: error: unrecognized option: $ac_option | 
|  | 783 | Try \`$0 --help' for more information." >&2 | 
|  | 784 | { (exit 1); exit 1; }; } | 
|  | 785 | ;; | 
|  | 786 |  | 
|  | 787 | *=*) | 
|  | 788 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | 
|  | 789 | # Reject names that are not valid shell variable names. | 
|  | 790 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | 
|  | 791 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | 
|  | 792 | { (exit 1); exit 1; }; } | 
|  | 793 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | 
|  | 794 | eval "$ac_envvar='$ac_optarg'" | 
|  | 795 | export $ac_envvar ;; | 
|  | 796 |  | 
|  | 797 | *) | 
|  | 798 | # FIXME: should be removed in autoconf 3.0. | 
|  | 799 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | 
|  | 800 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | 
|  | 801 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | 
|  | 802 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | 
|  | 803 | ;; | 
|  | 804 |  | 
|  | 805 | esac | 
|  | 806 | done | 
|  | 807 |  | 
|  | 808 | if test -n "$ac_prev"; then | 
|  | 809 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 
|  | 810 | { echo "$as_me: error: missing argument to $ac_option" >&2 | 
|  | 811 | { (exit 1); exit 1; }; } | 
|  | 812 | fi | 
|  | 813 |  | 
|  | 814 | # Be sure to have absolute paths. | 
|  | 815 | for ac_var in exec_prefix prefix | 
|  | 816 | do | 
|  | 817 | eval ac_val=$`echo $ac_var` | 
|  | 818 | case $ac_val in | 
|  | 819 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | 
|  | 820 | *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | 
|  | 821 | { (exit 1); exit 1; }; };; | 
|  | 822 | esac | 
|  | 823 | done | 
|  | 824 |  | 
|  | 825 | # Be sure to have absolute paths. | 
|  | 826 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | 
|  | 827 | localstatedir libdir includedir oldincludedir infodir mandir | 
|  | 828 | do | 
|  | 829 | eval ac_val=$`echo $ac_var` | 
|  | 830 | case $ac_val in | 
|  | 831 | [\\/$]* | ?:[\\/]* ) ;; | 
|  | 832 | *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | 
|  | 833 | { (exit 1); exit 1; }; };; | 
|  | 834 | esac | 
|  | 835 | done | 
|  | 836 |  | 
|  | 837 | # There might be people who depend on the old broken behavior: `$host' | 
|  | 838 | # used to hold the argument of --host etc. | 
|  | 839 | # FIXME: To remove some day. | 
|  | 840 | build=$build_alias | 
|  | 841 | host=$host_alias | 
|  | 842 | target=$target_alias | 
|  | 843 |  | 
|  | 844 | # FIXME: To remove some day. | 
|  | 845 | if test "x$host_alias" != x; then | 
|  | 846 | if test "x$build_alias" = x; then | 
|  | 847 | cross_compiling=maybe | 
|  | 848 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | 
|  | 849 | If a cross compiler is detected then cross compile mode will be used." >&2 | 
|  | 850 | elif test "x$build_alias" != "x$host_alias"; then | 
|  | 851 | cross_compiling=yes | 
|  | 852 | fi | 
|  | 853 | fi | 
|  | 854 |  | 
|  | 855 | ac_tool_prefix= | 
|  | 856 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | 
|  | 857 |  | 
|  | 858 | test "$silent" = yes && exec 6>/dev/null | 
|  | 859 |  | 
|  | 860 |  | 
|  | 861 | # Find the source files, if location was not specified. | 
|  | 862 | if test -z "$srcdir"; then | 
|  | 863 | ac_srcdir_defaulted=yes | 
|  | 864 | # Try the directory containing this script, then its parent. | 
|  | 865 | ac_confdir=`(dirname "$0") 2>/dev/null || | 
|  | 866 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 867 | X"$0" : 'X\(//\)[^/]' \| \ | 
|  | 868 | X"$0" : 'X\(//\)$' \| \ | 
|  | 869 | X"$0" : 'X\(/\)' \| \ | 
|  | 870 | .     : '\(.\)' 2>/dev/null || | 
|  | 871 | echo X"$0" | | 
|  | 872 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
|  | 873 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
|  | 874 | /^X\(\/\/\)$/{ s//\1/; q; } | 
|  | 875 | /^X\(\/\).*/{ s//\1/; q; } | 
|  | 876 | s/.*/./; q'` | 
|  | 877 | srcdir=$ac_confdir | 
|  | 878 | if test ! -r $srcdir/$ac_unique_file; then | 
|  | 879 | srcdir=.. | 
|  | 880 | fi | 
|  | 881 | else | 
|  | 882 | ac_srcdir_defaulted=no | 
|  | 883 | fi | 
|  | 884 | if test ! -r $srcdir/$ac_unique_file; then | 
|  | 885 | if test "$ac_srcdir_defaulted" = yes; then | 
|  | 886 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | 
|  | 887 | { (exit 1); exit 1; }; } | 
|  | 888 | else | 
|  | 889 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | 
|  | 890 | { (exit 1); exit 1; }; } | 
|  | 891 | fi | 
|  | 892 | fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 893 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | 
|  | 894 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | 
|  | 895 | { (exit 1); exit 1; }; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 896 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | 
|  | 897 | ac_env_build_alias_set=${build_alias+set} | 
|  | 898 | ac_env_build_alias_value=$build_alias | 
|  | 899 | ac_cv_env_build_alias_set=${build_alias+set} | 
|  | 900 | ac_cv_env_build_alias_value=$build_alias | 
|  | 901 | ac_env_host_alias_set=${host_alias+set} | 
|  | 902 | ac_env_host_alias_value=$host_alias | 
|  | 903 | ac_cv_env_host_alias_set=${host_alias+set} | 
|  | 904 | ac_cv_env_host_alias_value=$host_alias | 
|  | 905 | ac_env_target_alias_set=${target_alias+set} | 
|  | 906 | ac_env_target_alias_value=$target_alias | 
|  | 907 | ac_cv_env_target_alias_set=${target_alias+set} | 
|  | 908 | ac_cv_env_target_alias_value=$target_alias | 
|  | 909 | ac_env_CXX_set=${CXX+set} | 
|  | 910 | ac_env_CXX_value=$CXX | 
|  | 911 | ac_cv_env_CXX_set=${CXX+set} | 
|  | 912 | ac_cv_env_CXX_value=$CXX | 
|  | 913 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | 
|  | 914 | ac_env_CXXFLAGS_value=$CXXFLAGS | 
|  | 915 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | 
|  | 916 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | 
|  | 917 | ac_env_LDFLAGS_set=${LDFLAGS+set} | 
|  | 918 | ac_env_LDFLAGS_value=$LDFLAGS | 
|  | 919 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | 
|  | 920 | ac_cv_env_LDFLAGS_value=$LDFLAGS | 
|  | 921 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | 
|  | 922 | ac_env_CPPFLAGS_value=$CPPFLAGS | 
|  | 923 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | 
|  | 924 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | 
|  | 925 | ac_env_CC_set=${CC+set} | 
|  | 926 | ac_env_CC_value=$CC | 
|  | 927 | ac_cv_env_CC_set=${CC+set} | 
|  | 928 | ac_cv_env_CC_value=$CC | 
|  | 929 | ac_env_CFLAGS_set=${CFLAGS+set} | 
|  | 930 | ac_env_CFLAGS_value=$CFLAGS | 
|  | 931 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | 
|  | 932 | ac_cv_env_CFLAGS_value=$CFLAGS | 
|  | 933 | ac_env_CPP_set=${CPP+set} | 
|  | 934 | ac_env_CPP_value=$CPP | 
|  | 935 | ac_cv_env_CPP_set=${CPP+set} | 
|  | 936 | ac_cv_env_CPP_value=$CPP | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 937 | ac_env_CXXCPP_set=${CXXCPP+set} | 
|  | 938 | ac_env_CXXCPP_value=$CXXCPP | 
|  | 939 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | 
|  | 940 | ac_cv_env_CXXCPP_value=$CXXCPP | 
|  | 941 | ac_env_F77_set=${F77+set} | 
|  | 942 | ac_env_F77_value=$F77 | 
|  | 943 | ac_cv_env_F77_set=${F77+set} | 
|  | 944 | ac_cv_env_F77_value=$F77 | 
|  | 945 | ac_env_FFLAGS_set=${FFLAGS+set} | 
|  | 946 | ac_env_FFLAGS_value=$FFLAGS | 
|  | 947 | ac_cv_env_FFLAGS_set=${FFLAGS+set} | 
|  | 948 | ac_cv_env_FFLAGS_value=$FFLAGS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 949 |  | 
|  | 950 | # | 
|  | 951 | # Report the --help message. | 
|  | 952 | # | 
|  | 953 | if test "$ac_init_help" = "long"; then | 
|  | 954 | # Omit some internal or obsolete options to make the list less imposing. | 
|  | 955 | # This message is too long to be a string in the A/UX 3.1 sh. | 
|  | 956 | cat <<_ACEOF | 
| John Criswell | d000e1d | 2003-12-18 16:43:17 +0000 | [diff] [blame] | 957 | \`configure' configures [LLVM] [1.1] to adapt to many kinds of systems. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 958 |  | 
|  | 959 | Usage: $0 [OPTION]... [VAR=VALUE]... | 
|  | 960 |  | 
|  | 961 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | 
|  | 962 | VAR=VALUE.  See below for descriptions of some of the useful variables. | 
|  | 963 |  | 
|  | 964 | Defaults for the options are specified in brackets. | 
|  | 965 |  | 
|  | 966 | Configuration: | 
|  | 967 | -h, --help              display this help and exit | 
|  | 968 | --help=short        display options specific to this package | 
|  | 969 | --help=recursive    display the short help of all the included packages | 
|  | 970 | -V, --version           display version information and exit | 
|  | 971 | -q, --quiet, --silent   do not print \`checking...' messages | 
|  | 972 | --cache-file=FILE   cache test results in FILE [disabled] | 
|  | 973 | -C, --config-cache      alias for \`--cache-file=config.cache' | 
|  | 974 | -n, --no-create         do not create output files | 
|  | 975 | --srcdir=DIR        find the sources in DIR [configure dir or \`..'] | 
|  | 976 |  | 
|  | 977 | _ACEOF | 
|  | 978 |  | 
|  | 979 | cat <<_ACEOF | 
|  | 980 | Installation directories: | 
|  | 981 | --prefix=PREFIX         install architecture-independent files in PREFIX | 
|  | 982 | [$ac_default_prefix] | 
|  | 983 | --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
|  | 984 | [PREFIX] | 
|  | 985 |  | 
|  | 986 | By default, \`make install' will install all the files in | 
|  | 987 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify | 
|  | 988 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | 
|  | 989 | for instance \`--prefix=\$HOME'. | 
|  | 990 |  | 
|  | 991 | For better control, use the options below. | 
|  | 992 |  | 
|  | 993 | Fine tuning of the installation directories: | 
|  | 994 | --bindir=DIR           user executables [EPREFIX/bin] | 
|  | 995 | --sbindir=DIR          system admin executables [EPREFIX/sbin] | 
|  | 996 | --libexecdir=DIR       program executables [EPREFIX/libexec] | 
|  | 997 | --datadir=DIR          read-only architecture-independent data [PREFIX/share] | 
|  | 998 | --sysconfdir=DIR       read-only single-machine data [PREFIX/etc] | 
|  | 999 | --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com] | 
|  | 1000 | --localstatedir=DIR    modifiable single-machine data [PREFIX/var] | 
|  | 1001 | --libdir=DIR           object code libraries [EPREFIX/lib] | 
|  | 1002 | --includedir=DIR       C header files [PREFIX/include] | 
|  | 1003 | --oldincludedir=DIR    C header files for non-gcc [/usr/include] | 
|  | 1004 | --infodir=DIR          info documentation [PREFIX/info] | 
|  | 1005 | --mandir=DIR           man documentation [PREFIX/man] | 
|  | 1006 | _ACEOF | 
|  | 1007 |  | 
|  | 1008 | cat <<\_ACEOF | 
|  | 1009 |  | 
|  | 1010 | System types: | 
|  | 1011 | --build=BUILD     configure for building on BUILD [guessed] | 
|  | 1012 | --host=HOST       cross-compile to build programs to run on HOST [BUILD] | 
|  | 1013 | --target=TARGET   configure for building compilers for TARGET [HOST] | 
|  | 1014 | _ACEOF | 
|  | 1015 | fi | 
|  | 1016 |  | 
|  | 1017 | if test -n "$ac_init_help"; then | 
|  | 1018 | case $ac_init_help in | 
| John Criswell | d000e1d | 2003-12-18 16:43:17 +0000 | [diff] [blame] | 1019 | short | recursive ) echo "Configuration of [LLVM] [1.1]:";; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1020 | esac | 
|  | 1021 | cat <<\_ACEOF | 
|  | 1022 |  | 
|  | 1023 | Optional Features: | 
|  | 1024 | --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
|  | 1025 | --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1026 | --enable-shared[=PKGS] | 
|  | 1027 | build shared libraries [default=yes] | 
|  | 1028 | --enable-static[=PKGS] | 
|  | 1029 | build static libraries [default=yes] | 
|  | 1030 | --enable-fast-install[=PKGS] | 
|  | 1031 | optimize for fast installation [default=yes] | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1032 | --disable-libtool-lock  avoid locking (might break parallel builds) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1033 | --enable-optimized      Compile with optimizations enabled (default is NO) | 
| Alkis Evlogimenos | 3e58e48 | 2003-12-20 21:35:15 +0000 | [diff] [blame] | 1034 | --enable-spec2000       Compile SPEC 2000 benchmarks (default is NO) | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 1035 | --enable-spec95         Compile SPEC 95 benchmarks (default is NO) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1036 | --enable-precompiled_bytecode | 
|  | 1037 | Use pre-compiled bytecode (default is NO) | 
| John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 1038 | --enable-llc_diffs      Enable LLC Diffs when testing (default is YES) | 
| John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 1039 | --enable-jit            Enable Just In Time Compiling (default is YES) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1040 |  | 
|  | 1041 | Optional Packages: | 
|  | 1042 | --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
|  | 1043 | --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1044 | --with-gnu-ld           assume the C compiler uses GNU ld [default=no] | 
|  | 1045 | --with-pic              try to use only PIC/non-PIC objects [default=use | 
|  | 1046 | both] | 
|  | 1047 | --with-tags[=TAGS] | 
|  | 1048 | include additional configurations [automatic] | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1049 | --with-llvmgccdir       Location of LLVM GCC front-end | 
|  | 1050 | --with-bcrepos          Location of Bytecode Repository | 
|  | 1051 | --with-papi             Location of PAPI | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1052 |  | 
|  | 1053 | Some influential environment variables: | 
|  | 1054 | CXX         C++ compiler command | 
|  | 1055 | CXXFLAGS    C++ compiler flags | 
|  | 1056 | LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a | 
|  | 1057 | nonstandard directory <lib dir> | 
|  | 1058 | CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have | 
|  | 1059 | headers in a nonstandard directory <include dir> | 
|  | 1060 | CC          C compiler command | 
|  | 1061 | CFLAGS      C compiler flags | 
|  | 1062 | CPP         C preprocessor | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1063 | CXXCPP      C++ preprocessor | 
|  | 1064 | F77         Fortran 77 compiler command | 
|  | 1065 | FFLAGS      Fortran 77 compiler flags | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1066 |  | 
|  | 1067 | Use these variables to override the choices made by `configure' or to help | 
|  | 1068 | it to find libraries and programs with nonstandard names/locations. | 
|  | 1069 |  | 
|  | 1070 | Report bugs to <llvmbugs@cs.uiuc.edu>. | 
|  | 1071 | _ACEOF | 
|  | 1072 | fi | 
|  | 1073 |  | 
|  | 1074 | if test "$ac_init_help" = "recursive"; then | 
|  | 1075 | # If there are subdirs, report their specific --help. | 
|  | 1076 | ac_popdir=`pwd` | 
|  | 1077 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | 
|  | 1078 | test -d $ac_dir || continue | 
|  | 1079 | ac_builddir=. | 
|  | 1080 |  | 
|  | 1081 | if test "$ac_dir" != .; then | 
|  | 1082 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
|  | 1083 | # A "../" for each directory in $ac_dir_suffix. | 
|  | 1084 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
|  | 1085 | else | 
|  | 1086 | ac_dir_suffix= ac_top_builddir= | 
|  | 1087 | fi | 
|  | 1088 |  | 
|  | 1089 | case $srcdir in | 
|  | 1090 | .)  # No --srcdir option.  We are building in place. | 
|  | 1091 | ac_srcdir=. | 
|  | 1092 | if test -z "$ac_top_builddir"; then | 
|  | 1093 | ac_top_srcdir=. | 
|  | 1094 | else | 
|  | 1095 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
|  | 1096 | fi ;; | 
|  | 1097 | [\\/]* | ?:[\\/]* )  # Absolute path. | 
|  | 1098 | ac_srcdir=$srcdir$ac_dir_suffix; | 
|  | 1099 | ac_top_srcdir=$srcdir ;; | 
|  | 1100 | *) # Relative path. | 
|  | 1101 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
|  | 1102 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
|  | 1103 | esac | 
|  | 1104 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | 
|  | 1105 | # absolute. | 
|  | 1106 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1107 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1108 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | 
|  | 1109 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | 
|  | 1110 |  | 
|  | 1111 | cd $ac_dir | 
|  | 1112 | # Check for guested configure; otherwise get Cygnus style configure. | 
|  | 1113 | if test -f $ac_srcdir/configure.gnu; then | 
|  | 1114 | echo | 
|  | 1115 | $SHELL $ac_srcdir/configure.gnu  --help=recursive | 
|  | 1116 | elif test -f $ac_srcdir/configure; then | 
|  | 1117 | echo | 
|  | 1118 | $SHELL $ac_srcdir/configure  --help=recursive | 
|  | 1119 | elif test -f $ac_srcdir/configure.ac || | 
|  | 1120 | test -f $ac_srcdir/configure.in; then | 
|  | 1121 | echo | 
|  | 1122 | $ac_configure --help | 
|  | 1123 | else | 
|  | 1124 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | 
|  | 1125 | fi | 
|  | 1126 | cd $ac_popdir | 
|  | 1127 | done | 
|  | 1128 | fi | 
|  | 1129 |  | 
|  | 1130 | test -n "$ac_init_help" && exit 0 | 
|  | 1131 | if $ac_init_version; then | 
|  | 1132 | cat <<\_ACEOF | 
| John Criswell | d000e1d | 2003-12-18 16:43:17 +0000 | [diff] [blame] | 1133 | [LLVM] configure [1.1] | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1134 | generated by GNU Autoconf 2.57 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1135 |  | 
|  | 1136 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | 
|  | 1137 | Free Software Foundation, Inc. | 
|  | 1138 | This configure script is free software; the Free Software Foundation | 
|  | 1139 | gives unlimited permission to copy, distribute and modify it. | 
|  | 1140 | _ACEOF | 
|  | 1141 | exit 0 | 
|  | 1142 | fi | 
|  | 1143 | exec 5>config.log | 
|  | 1144 | cat >&5 <<_ACEOF | 
|  | 1145 | This file contains any messages produced by compilers while | 
|  | 1146 | running configure, to aid debugging if configure makes a mistake. | 
|  | 1147 |  | 
| John Criswell | d000e1d | 2003-12-18 16:43:17 +0000 | [diff] [blame] | 1148 | It was created by [LLVM] $as_me [1.1], which was | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1149 | generated by GNU Autoconf 2.57.  Invocation command line was | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1150 |  | 
|  | 1151 | $ $0 $@ | 
|  | 1152 |  | 
|  | 1153 | _ACEOF | 
|  | 1154 | { | 
|  | 1155 | cat <<_ASUNAME | 
|  | 1156 | ## --------- ## | 
|  | 1157 | ## Platform. ## | 
|  | 1158 | ## --------- ## | 
|  | 1159 |  | 
|  | 1160 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 1161 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | 
|  | 1162 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | 
|  | 1163 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | 
|  | 1164 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | 
|  | 1165 |  | 
|  | 1166 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | 
|  | 1167 | /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown` | 
|  | 1168 |  | 
|  | 1169 | /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown` | 
|  | 1170 | /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown` | 
|  | 1171 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | 
|  | 1172 | hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown` | 
|  | 1173 | /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown` | 
|  | 1174 | /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown` | 
|  | 1175 | /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown` | 
|  | 1176 |  | 
|  | 1177 | _ASUNAME | 
|  | 1178 |  | 
|  | 1179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 1180 | for as_dir in $PATH | 
|  | 1181 | do | 
|  | 1182 | IFS=$as_save_IFS | 
|  | 1183 | test -z "$as_dir" && as_dir=. | 
|  | 1184 | echo "PATH: $as_dir" | 
|  | 1185 | done | 
|  | 1186 |  | 
|  | 1187 | } >&5 | 
|  | 1188 |  | 
|  | 1189 | cat >&5 <<_ACEOF | 
|  | 1190 |  | 
|  | 1191 |  | 
|  | 1192 | ## ----------- ## | 
|  | 1193 | ## Core tests. ## | 
|  | 1194 | ## ----------- ## | 
|  | 1195 |  | 
|  | 1196 | _ACEOF | 
|  | 1197 |  | 
|  | 1198 |  | 
|  | 1199 | # Keep a trace of the command line. | 
|  | 1200 | # Strip out --no-create and --no-recursion so they do not pile up. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1201 | # Strip out --silent because we don't want to record it for future runs. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1202 | # Also quote any args containing shell meta-characters. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1203 | # Make two passes to allow for proper duplicate-argument suppression. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1204 | ac_configure_args= | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1205 | ac_configure_args0= | 
|  | 1206 | ac_configure_args1= | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1207 | ac_sep= | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1208 | ac_must_keep_next=false | 
|  | 1209 | for ac_pass in 1 2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1210 | do | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1211 | for ac_arg | 
|  | 1212 | do | 
|  | 1213 | case $ac_arg in | 
|  | 1214 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | 
|  | 1215 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 1216 | | -silent | --silent | --silen | --sile | --sil) | 
|  | 1217 | continue ;; | 
|  | 1218 | *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | 
|  | 1219 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
|  | 1220 | esac | 
|  | 1221 | case $ac_pass in | 
|  | 1222 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | 
|  | 1223 | 2) | 
|  | 1224 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | 
|  | 1225 | if test $ac_must_keep_next = true; then | 
|  | 1226 | ac_must_keep_next=false # Got value, back to normal. | 
|  | 1227 | else | 
|  | 1228 | case $ac_arg in | 
|  | 1229 | *=* | --config-cache | -C | -disable-* | --disable-* \ | 
|  | 1230 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | 
|  | 1231 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | 
|  | 1232 | | -with-* | --with-* | -without-* | --without-* | --x) | 
|  | 1233 | case "$ac_configure_args0 " in | 
|  | 1234 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | 
|  | 1235 | esac | 
|  | 1236 | ;; | 
|  | 1237 | -* ) ac_must_keep_next=true ;; | 
|  | 1238 | esac | 
|  | 1239 | fi | 
|  | 1240 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | 
|  | 1241 | # Get rid of the leading space. | 
|  | 1242 | ac_sep=" " | 
|  | 1243 | ;; | 
|  | 1244 | esac | 
|  | 1245 | done | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1246 | done | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1247 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | 
|  | 1248 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1249 |  | 
|  | 1250 | # When interrupted or exit'd, cleanup temporary files, and complete | 
|  | 1251 | # config.log.  We remove comments because anyway the quotes in there | 
|  | 1252 | # would cause problems or look ugly. | 
|  | 1253 | # WARNING: Be sure not to use single quotes in there, as some shells, | 
|  | 1254 | # such as our DU 5.0 friend, will then `close' the trap. | 
|  | 1255 | trap 'exit_status=$? | 
|  | 1256 | # Save into config.log some information that might help in debugging. | 
|  | 1257 | { | 
|  | 1258 | echo | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1259 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1260 | cat <<\_ASBOX | 
|  | 1261 | ## ---------------- ## | 
|  | 1262 | ## Cache variables. ## | 
|  | 1263 | ## ---------------- ## | 
|  | 1264 | _ASBOX | 
|  | 1265 | echo | 
|  | 1266 | # The following way of writing the cache mishandles newlines in values, | 
|  | 1267 | { | 
|  | 1268 | (set) 2>&1 | | 
|  | 1269 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | 
|  | 1270 | *ac_space=\ *) | 
|  | 1271 | sed -n \ | 
|  | 1272 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | 
|  | 1273 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | 
|  | 1274 | ;; | 
|  | 1275 | *) | 
|  | 1276 | sed -n \ | 
|  | 1277 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | 
|  | 1278 | ;; | 
|  | 1279 | esac; | 
|  | 1280 | } | 
|  | 1281 | echo | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1282 |  | 
|  | 1283 | cat <<\_ASBOX | 
|  | 1284 | ## ----------------- ## | 
|  | 1285 | ## Output variables. ## | 
|  | 1286 | ## ----------------- ## | 
|  | 1287 | _ASBOX | 
|  | 1288 | echo | 
|  | 1289 | for ac_var in $ac_subst_vars | 
|  | 1290 | do | 
|  | 1291 | eval ac_val=$`echo $ac_var` | 
|  | 1292 | echo "$ac_var='"'"'$ac_val'"'"'" | 
|  | 1293 | done | sort | 
|  | 1294 | echo | 
|  | 1295 |  | 
|  | 1296 | if test -n "$ac_subst_files"; then | 
|  | 1297 | cat <<\_ASBOX | 
|  | 1298 | ## ------------- ## | 
|  | 1299 | ## Output files. ## | 
|  | 1300 | ## ------------- ## | 
|  | 1301 | _ASBOX | 
|  | 1302 | echo | 
|  | 1303 | for ac_var in $ac_subst_files | 
|  | 1304 | do | 
|  | 1305 | eval ac_val=$`echo $ac_var` | 
|  | 1306 | echo "$ac_var='"'"'$ac_val'"'"'" | 
|  | 1307 | done | sort | 
|  | 1308 | echo | 
|  | 1309 | fi | 
|  | 1310 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1311 | if test -s confdefs.h; then | 
|  | 1312 | cat <<\_ASBOX | 
|  | 1313 | ## ----------- ## | 
|  | 1314 | ## confdefs.h. ## | 
|  | 1315 | ## ----------- ## | 
|  | 1316 | _ASBOX | 
|  | 1317 | echo | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1318 | sed "/^$/d" confdefs.h | sort | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1319 | echo | 
|  | 1320 | fi | 
|  | 1321 | test "$ac_signal" != 0 && | 
|  | 1322 | echo "$as_me: caught signal $ac_signal" | 
|  | 1323 | echo "$as_me: exit $exit_status" | 
|  | 1324 | } >&5 | 
|  | 1325 | rm -f core core.* *.core && | 
|  | 1326 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | 
|  | 1327 | exit $exit_status | 
|  | 1328 | ' 0 | 
|  | 1329 | for ac_signal in 1 2 13 15; do | 
|  | 1330 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | 
|  | 1331 | done | 
|  | 1332 | ac_signal=0 | 
|  | 1333 |  | 
|  | 1334 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
|  | 1335 | rm -rf conftest* confdefs.h | 
|  | 1336 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | 
|  | 1337 | echo >confdefs.h | 
|  | 1338 |  | 
|  | 1339 | # Predefined preprocessor variables. | 
|  | 1340 |  | 
|  | 1341 | cat >>confdefs.h <<_ACEOF | 
|  | 1342 | #define PACKAGE_NAME "$PACKAGE_NAME" | 
|  | 1343 | _ACEOF | 
|  | 1344 |  | 
|  | 1345 |  | 
|  | 1346 | cat >>confdefs.h <<_ACEOF | 
|  | 1347 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | 
|  | 1348 | _ACEOF | 
|  | 1349 |  | 
|  | 1350 |  | 
|  | 1351 | cat >>confdefs.h <<_ACEOF | 
|  | 1352 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | 
|  | 1353 | _ACEOF | 
|  | 1354 |  | 
|  | 1355 |  | 
|  | 1356 | cat >>confdefs.h <<_ACEOF | 
|  | 1357 | #define PACKAGE_STRING "$PACKAGE_STRING" | 
|  | 1358 | _ACEOF | 
|  | 1359 |  | 
|  | 1360 |  | 
|  | 1361 | cat >>confdefs.h <<_ACEOF | 
|  | 1362 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | 
|  | 1363 | _ACEOF | 
|  | 1364 |  | 
|  | 1365 |  | 
|  | 1366 | # Let the site file select an alternate cache file if it wants to. | 
|  | 1367 | # Prefer explicitly selected file to automatically selected ones. | 
|  | 1368 | if test -z "$CONFIG_SITE"; then | 
|  | 1369 | if test "x$prefix" != xNONE; then | 
|  | 1370 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | 
|  | 1371 | else | 
|  | 1372 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | 
|  | 1373 | fi | 
|  | 1374 | fi | 
|  | 1375 | for ac_site_file in $CONFIG_SITE; do | 
|  | 1376 | if test -r "$ac_site_file"; then | 
|  | 1377 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | 
|  | 1378 | echo "$as_me: loading site script $ac_site_file" >&6;} | 
|  | 1379 | sed 's/^/| /' "$ac_site_file" >&5 | 
|  | 1380 | . "$ac_site_file" | 
|  | 1381 | fi | 
|  | 1382 | done | 
|  | 1383 |  | 
|  | 1384 | if test -r "$cache_file"; then | 
|  | 1385 | # Some versions of bash will fail to source /dev/null (special | 
|  | 1386 | # files actually), so we avoid doing that. | 
|  | 1387 | if test -f "$cache_file"; then | 
|  | 1388 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | 
|  | 1389 | echo "$as_me: loading cache $cache_file" >&6;} | 
|  | 1390 | case $cache_file in | 
|  | 1391 | [\\/]* | ?:[\\/]* ) . $cache_file;; | 
|  | 1392 | *)                      . ./$cache_file;; | 
|  | 1393 | esac | 
|  | 1394 | fi | 
|  | 1395 | else | 
|  | 1396 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | 
|  | 1397 | echo "$as_me: creating cache $cache_file" >&6;} | 
|  | 1398 | >$cache_file | 
|  | 1399 | fi | 
|  | 1400 |  | 
|  | 1401 | # Check that the precious variables saved in the cache have kept the same | 
|  | 1402 | # value. | 
|  | 1403 | ac_cache_corrupted=false | 
|  | 1404 | for ac_var in `(set) 2>&1 | | 
|  | 1405 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | 
|  | 1406 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | 
|  | 1407 | eval ac_new_set=\$ac_env_${ac_var}_set | 
|  | 1408 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | 
|  | 1409 | eval ac_new_val="\$ac_env_${ac_var}_value" | 
|  | 1410 | case $ac_old_set,$ac_new_set in | 
|  | 1411 | set,) | 
|  | 1412 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | 
|  | 1413 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | 
|  | 1414 | ac_cache_corrupted=: ;; | 
|  | 1415 | ,set) | 
|  | 1416 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | 
|  | 1417 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | 
|  | 1418 | ac_cache_corrupted=: ;; | 
|  | 1419 | ,);; | 
|  | 1420 | *) | 
|  | 1421 | if test "x$ac_old_val" != "x$ac_new_val"; then | 
|  | 1422 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | 
|  | 1423 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | 
|  | 1424 | { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5 | 
|  | 1425 | echo "$as_me:   former value:  $ac_old_val" >&2;} | 
|  | 1426 | { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5 | 
|  | 1427 | echo "$as_me:   current value: $ac_new_val" >&2;} | 
|  | 1428 | ac_cache_corrupted=: | 
|  | 1429 | fi;; | 
|  | 1430 | esac | 
|  | 1431 | # Pass precious variables to config.status. | 
|  | 1432 | if test "$ac_new_set" = set; then | 
|  | 1433 | case $ac_new_val in | 
|  | 1434 | *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | 
|  | 1435 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | 
|  | 1436 | *) ac_arg=$ac_var=$ac_new_val ;; | 
|  | 1437 | esac | 
|  | 1438 | case " $ac_configure_args " in | 
|  | 1439 | *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy. | 
|  | 1440 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | 
|  | 1441 | esac | 
|  | 1442 | fi | 
|  | 1443 | done | 
|  | 1444 | if $ac_cache_corrupted; then | 
|  | 1445 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | 
|  | 1446 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | 
|  | 1447 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | 
|  | 1448 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | 
|  | 1449 | { (exit 1); exit 1; }; } | 
|  | 1450 | fi | 
|  | 1451 |  | 
|  | 1452 | ac_ext=c | 
|  | 1453 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 1454 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 1455 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 1456 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 1457 |  | 
|  | 1458 |  | 
|  | 1459 |  | 
|  | 1460 |  | 
|  | 1461 |  | 
|  | 1462 |  | 
|  | 1463 |  | 
|  | 1464 |  | 
|  | 1465 |  | 
|  | 1466 |  | 
|  | 1467 |  | 
|  | 1468 |  | 
|  | 1469 |  | 
|  | 1470 |  | 
|  | 1471 |  | 
|  | 1472 |  | 
|  | 1473 |  | 
|  | 1474 |  | 
|  | 1475 |  | 
|  | 1476 |  | 
|  | 1477 |  | 
|  | 1478 |  | 
|  | 1479 |  | 
|  | 1480 |  | 
|  | 1481 |  | 
|  | 1482 |  | 
|  | 1483 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1484 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1485 | ac_aux_dir= | 
| John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1486 | for ac_dir in autoconf $srcdir/autoconf; do | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1487 | if test -f $ac_dir/install-sh; then | 
|  | 1488 | ac_aux_dir=$ac_dir | 
|  | 1489 | ac_install_sh="$ac_aux_dir/install-sh -c" | 
|  | 1490 | break | 
|  | 1491 | elif test -f $ac_dir/install.sh; then | 
|  | 1492 | ac_aux_dir=$ac_dir | 
|  | 1493 | ac_install_sh="$ac_aux_dir/install.sh -c" | 
|  | 1494 | break | 
|  | 1495 | elif test -f $ac_dir/shtool; then | 
|  | 1496 | ac_aux_dir=$ac_dir | 
|  | 1497 | ac_install_sh="$ac_aux_dir/shtool install -c" | 
|  | 1498 | break | 
|  | 1499 | fi | 
|  | 1500 | done | 
|  | 1501 | if test -z "$ac_aux_dir"; then | 
| John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1502 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 | 
|  | 1503 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1504 | { (exit 1); exit 1; }; } | 
|  | 1505 | fi | 
|  | 1506 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | 
|  | 1507 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | 
|  | 1508 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | 
|  | 1509 |  | 
| John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1510 |  | 
| John Criswell | 1b82432 | 2003-09-15 17:19:42 +0000 | [diff] [blame] | 1511 | if test ${srcdir} != "." | 
| John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1512 | then | 
| John Criswell | 1b82432 | 2003-09-15 17:19:42 +0000 | [diff] [blame] | 1513 | if test -f ${srcdir}/include/Config/config.h | 
|  | 1514 | then | 
|  | 1515 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 | 
| John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1516 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} | 
|  | 1517 | { (exit 1); exit 1; }; } | 
| John Criswell | 1b82432 | 2003-09-15 17:19:42 +0000 | [diff] [blame] | 1518 | fi | 
| John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1519 | fi | 
|  | 1520 |  | 
| John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1521 | for i in `ls ${srcdir}/projects` | 
|  | 1522 | do | 
|  | 1523 | if test ${i} != "CVS" | 
|  | 1524 | then | 
| John Criswell | 2f2741b | 2003-12-12 20:15:23 +0000 | [diff] [blame] | 1525 | if test -f ${srcdir}/projects/${i}/configure | 
| John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1526 | then | 
| John Criswell | 7ec78aa | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1527 |  | 
|  | 1528 |  | 
| John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1529 | subdirs="$subdirs projects/${i}" | 
| John Criswell | 7ec78aa | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1530 |  | 
| John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1531 | fi | 
|  | 1532 | fi | 
|  | 1533 | done | 
| John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 1534 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1535 | ac_config_headers="$ac_config_headers include/Config/config.h" | 
| John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1536 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1537 | ac_config_commands="$ac_config_commands Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1538 |  | 
|  | 1539 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1540 | ac_config_commands="$ac_config_commands Makefile.common" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1541 |  | 
|  | 1542 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1543 | ac_config_commands="$ac_config_commands lib/Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1544 |  | 
|  | 1545 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1546 | ac_config_commands="$ac_config_commands runtime/Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1547 |  | 
|  | 1548 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1549 | ac_config_commands="$ac_config_commands test/Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1550 |  | 
|  | 1551 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1552 | ac_config_commands="$ac_config_commands test/Makefile.tests" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1553 |  | 
|  | 1554 |  | 
| John Criswell | f424d74 | 2003-10-07 21:13:47 +0000 | [diff] [blame] | 1555 | ac_config_commands="$ac_config_commands test/QMTest/llvm.py" | 
|  | 1556 |  | 
|  | 1557 |  | 
|  | 1558 | ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py" | 
| John Criswell | 08acb9b | 2003-09-16 02:12:45 +0000 | [diff] [blame] | 1559 |  | 
|  | 1560 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1561 | ac_config_commands="$ac_config_commands test/Programs/Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1562 |  | 
|  | 1563 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1564 | ac_config_commands="$ac_config_commands test/Programs/Makefile.programs" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1565 |  | 
|  | 1566 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1567 | ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1568 |  | 
|  | 1569 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1570 | ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1571 |  | 
|  | 1572 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1573 | ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1574 |  | 
|  | 1575 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1576 | ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1577 |  | 
|  | 1578 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1579 | ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1580 |  | 
|  | 1581 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1582 | ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1583 |  | 
|  | 1584 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1585 | ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1586 |  | 
|  | 1587 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1588 | ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1589 |  | 
|  | 1590 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1591 | ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1592 |  | 
|  | 1593 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1594 | ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1595 |  | 
|  | 1596 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1597 | ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1598 |  | 
|  | 1599 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1600 | ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1601 |  | 
|  | 1602 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1603 | ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1604 |  | 
|  | 1605 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1606 | ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1607 |  | 
|  | 1608 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1609 | ac_config_commands="$ac_config_commands test/Programs/External/Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1610 |  | 
|  | 1611 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1612 | ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1613 |  | 
|  | 1614 |  | 
| John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 1615 | ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec" | 
|  | 1616 |  | 
|  | 1617 |  | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 1618 | ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec95" | 
|  | 1619 |  | 
|  | 1620 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1621 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1622 |  | 
|  | 1623 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1624 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1625 |  | 
|  | 1626 |  | 
| Misha Brukman | 811ce9f | 2003-11-12 22:16:51 +0000 | [diff] [blame] | 1627 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" | 
|  | 1628 |  | 
|  | 1629 |  | 
|  | 1630 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" | 
|  | 1631 |  | 
|  | 1632 |  | 
|  | 1633 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" | 
|  | 1634 |  | 
|  | 1635 |  | 
|  | 1636 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" | 
|  | 1637 |  | 
|  | 1638 |  | 
|  | 1639 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" | 
|  | 1640 |  | 
|  | 1641 |  | 
|  | 1642 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" | 
|  | 1643 |  | 
|  | 1644 |  | 
|  | 1645 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" | 
|  | 1646 |  | 
|  | 1647 |  | 
|  | 1648 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" | 
|  | 1649 |  | 
|  | 1650 |  | 
|  | 1651 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" | 
|  | 1652 |  | 
|  | 1653 |  | 
|  | 1654 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" | 
|  | 1655 |  | 
|  | 1656 |  | 
|  | 1657 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" | 
|  | 1658 |  | 
|  | 1659 |  | 
|  | 1660 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" | 
|  | 1661 |  | 
|  | 1662 |  | 
|  | 1663 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" | 
|  | 1664 |  | 
|  | 1665 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1666 | ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1667 |  | 
|  | 1668 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1669 | ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1670 |  | 
|  | 1671 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1672 | ac_config_commands="$ac_config_commands tools/Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1673 |  | 
|  | 1674 |  | 
| Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 1675 | ac_config_commands="$ac_config_commands utils/Makefile" | 
|  | 1676 |  | 
|  | 1677 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1678 | ac_config_commands="$ac_config_commands projects/Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1679 |  | 
|  | 1680 |  | 
| John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1681 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1682 | # Find a good install program.  We prefer a C program (faster), | 
|  | 1683 | # so one script is as good as another.  But avoid the broken or | 
|  | 1684 | # incompatible versions: | 
|  | 1685 | # SysV /etc/install, /usr/sbin/install | 
|  | 1686 | # SunOS /usr/etc/install | 
|  | 1687 | # IRIX /sbin/install | 
|  | 1688 | # AIX /bin/install | 
|  | 1689 | # AmigaOS /C/install, which installs bootblocks on floppy discs | 
|  | 1690 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
|  | 1691 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
|  | 1692 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
|  | 1693 | # ./install, which can be erroneously created by make from ./install.sh. | 
|  | 1694 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | 
|  | 1695 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | 
|  | 1696 | if test -z "$INSTALL"; then | 
|  | 1697 | if test "${ac_cv_path_install+set}" = set; then | 
|  | 1698 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 1699 | else | 
|  | 1700 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 1701 | for as_dir in $PATH | 
|  | 1702 | do | 
|  | 1703 | IFS=$as_save_IFS | 
|  | 1704 | test -z "$as_dir" && as_dir=. | 
|  | 1705 | # Account for people who put trailing slashes in PATH elements. | 
|  | 1706 | case $as_dir/ in | 
|  | 1707 | ./ | .// | /cC/* | \ | 
|  | 1708 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 
|  | 1709 | /usr/ucb/* ) ;; | 
|  | 1710 | *) | 
|  | 1711 | # OSF1 and SCO ODT 3.0 have their own names for install. | 
|  | 1712 | # Don't use installbsd from OSF since it installs stuff as root | 
|  | 1713 | # by default. | 
|  | 1714 | for ac_prog in ginstall scoinst install; do | 
|  | 1715 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 1716 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | 
|  | 1717 | if test $ac_prog = install && | 
|  | 1718 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
|  | 1719 | # AIX install.  It has an incompatible calling convention. | 
|  | 1720 | : | 
|  | 1721 | elif test $ac_prog = install && | 
|  | 1722 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
|  | 1723 | # program-specific install script used by HP pwplus--don't use. | 
|  | 1724 | : | 
|  | 1725 | else | 
|  | 1726 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | 
|  | 1727 | break 3 | 
|  | 1728 | fi | 
|  | 1729 | fi | 
|  | 1730 | done | 
|  | 1731 | done | 
|  | 1732 | ;; | 
|  | 1733 | esac | 
|  | 1734 | done | 
|  | 1735 |  | 
|  | 1736 |  | 
|  | 1737 | fi | 
|  | 1738 | if test "${ac_cv_path_install+set}" = set; then | 
|  | 1739 | INSTALL=$ac_cv_path_install | 
|  | 1740 | else | 
|  | 1741 | # As a last resort, use the slow shell script.  We don't cache a | 
|  | 1742 | # path for INSTALL within a source directory, because that will | 
|  | 1743 | # break other packages using the cache if that directory is | 
|  | 1744 | # removed, or if the path is relative. | 
|  | 1745 | INSTALL=$ac_install_sh | 
|  | 1746 | fi | 
|  | 1747 | fi | 
|  | 1748 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | 
|  | 1749 | echo "${ECHO_T}$INSTALL" >&6 | 
|  | 1750 |  | 
|  | 1751 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
|  | 1752 | # It thinks the first close brace ends the variable substitution. | 
|  | 1753 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
|  | 1754 |  | 
|  | 1755 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | 
|  | 1756 |  | 
|  | 1757 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
|  | 1758 |  | 
|  | 1759 |  | 
|  | 1760 | # Make sure we can run config.sub. | 
|  | 1761 | $ac_config_sub sun4 >/dev/null 2>&1 || | 
|  | 1762 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | 
|  | 1763 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | 
|  | 1764 | { (exit 1); exit 1; }; } | 
|  | 1765 |  | 
|  | 1766 | echo "$as_me:$LINENO: checking build system type" >&5 | 
|  | 1767 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | 
|  | 1768 | if test "${ac_cv_build+set}" = set; then | 
|  | 1769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 1770 | else | 
|  | 1771 | ac_cv_build_alias=$build_alias | 
|  | 1772 | test -z "$ac_cv_build_alias" && | 
|  | 1773 | ac_cv_build_alias=`$ac_config_guess` | 
|  | 1774 | test -z "$ac_cv_build_alias" && | 
|  | 1775 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | 
|  | 1776 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | 
|  | 1777 | { (exit 1); exit 1; }; } | 
|  | 1778 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | 
|  | 1779 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | 
|  | 1780 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | 
|  | 1781 | { (exit 1); exit 1; }; } | 
|  | 1782 |  | 
|  | 1783 | fi | 
|  | 1784 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | 
|  | 1785 | echo "${ECHO_T}$ac_cv_build" >&6 | 
|  | 1786 | build=$ac_cv_build | 
|  | 1787 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
|  | 1788 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
|  | 1789 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
|  | 1790 |  | 
|  | 1791 |  | 
|  | 1792 | echo "$as_me:$LINENO: checking host system type" >&5 | 
|  | 1793 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | 
|  | 1794 | if test "${ac_cv_host+set}" = set; then | 
|  | 1795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 1796 | else | 
|  | 1797 | ac_cv_host_alias=$host_alias | 
|  | 1798 | test -z "$ac_cv_host_alias" && | 
|  | 1799 | ac_cv_host_alias=$ac_cv_build_alias | 
|  | 1800 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | 
|  | 1801 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | 
|  | 1802 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | 
|  | 1803 | { (exit 1); exit 1; }; } | 
|  | 1804 |  | 
|  | 1805 | fi | 
|  | 1806 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | 
|  | 1807 | echo "${ECHO_T}$ac_cv_host" >&6 | 
|  | 1808 | host=$ac_cv_host | 
|  | 1809 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
|  | 1810 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
|  | 1811 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
|  | 1812 |  | 
|  | 1813 |  | 
|  | 1814 | echo "$as_me:$LINENO: checking target system type" >&5 | 
|  | 1815 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | 
|  | 1816 | if test "${ac_cv_target+set}" = set; then | 
|  | 1817 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 1818 | else | 
|  | 1819 | ac_cv_target_alias=$target_alias | 
|  | 1820 | test "x$ac_cv_target_alias" = "x" && | 
|  | 1821 | ac_cv_target_alias=$ac_cv_host_alias | 
|  | 1822 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | 
|  | 1823 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | 
|  | 1824 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | 
|  | 1825 | { (exit 1); exit 1; }; } | 
|  | 1826 |  | 
|  | 1827 | fi | 
|  | 1828 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | 
|  | 1829 | echo "${ECHO_T}$ac_cv_target" >&6 | 
|  | 1830 | target=$ac_cv_target | 
|  | 1831 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
|  | 1832 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
|  | 1833 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
|  | 1834 |  | 
|  | 1835 |  | 
|  | 1836 | # The aliases save the names the user supplied, while $host etc. | 
|  | 1837 | # will get canonicalized. | 
|  | 1838 | test -n "$target_alias" && | 
|  | 1839 | test "$program_prefix$program_suffix$program_transform_name" = \ | 
|  | 1840 | NONENONEs,x,x, && | 
|  | 1841 | program_prefix=${target_alias}- | 
|  | 1842 |  | 
|  | 1843 | case $build in | 
| Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1844 | *-*-linux*) | 
|  | 1845 | OS=Linux | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1846 |  | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 1847 | if test -d /home/vadve/lattner/local/x86/llvm-gcc | 
|  | 1848 | then | 
|  | 1849 | LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1850 |  | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 1851 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1852 | ;; | 
|  | 1853 |  | 
| Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1854 | *-*-solaris*) | 
|  | 1855 | OS=SunOS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1856 |  | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 1857 | if test -d /home/vadve/lattner/local/sparc/llvm-gcc | 
|  | 1858 | then | 
|  | 1859 | LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1860 |  | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 1861 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1862 | ;; | 
|  | 1863 |  | 
| Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1864 | *-*-darwin*) | 
|  | 1865 | OS=Darwin | 
|  | 1866 |  | 
|  | 1867 | ;; | 
|  | 1868 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1869 | *)       OS=Unknown | 
|  | 1870 |  | 
|  | 1871 | ;; | 
|  | 1872 | esac | 
|  | 1873 |  | 
|  | 1874 | case $target in | 
| Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1875 | sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1876 |  | 
| Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1877 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1878 | esac | 
|  | 1879 |  | 
| John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 1880 | case $target in | 
| Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1881 | i*86-*)           ARCH=x86 | 
| John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 1882 |  | 
|  | 1883 | ;; | 
| Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1884 | sparc*-*)         ARCH=Sparc | 
|  | 1885 |  | 
|  | 1886 | ;; | 
|  | 1887 | powerpc*-*)       ARCH=PowerPC | 
|  | 1888 |  | 
|  | 1889 | ;; | 
|  | 1890 | *)                ARCH=Unknown | 
| John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 1891 |  | 
|  | 1892 | ;; | 
|  | 1893 | esac | 
|  | 1894 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1895 | ac_ext=cc | 
|  | 1896 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 1897 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 1898 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 1899 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 1900 | if test -n "$ac_tool_prefix"; then | 
|  | 1901 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | 
|  | 1902 | do | 
|  | 1903 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 1904 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
|  | 1905 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 1906 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 1907 | if test "${ac_cv_prog_CXX+set}" = set; then | 
|  | 1908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 1909 | else | 
|  | 1910 | if test -n "$CXX"; then | 
|  | 1911 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
|  | 1912 | else | 
|  | 1913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 1914 | for as_dir in $PATH | 
|  | 1915 | do | 
|  | 1916 | IFS=$as_save_IFS | 
|  | 1917 | test -z "$as_dir" && as_dir=. | 
|  | 1918 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 1919 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 1920 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | 
|  | 1921 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 1922 | break 2 | 
|  | 1923 | fi | 
|  | 1924 | done | 
|  | 1925 | done | 
|  | 1926 |  | 
|  | 1927 | fi | 
|  | 1928 | fi | 
|  | 1929 | CXX=$ac_cv_prog_CXX | 
|  | 1930 | if test -n "$CXX"; then | 
|  | 1931 | echo "$as_me:$LINENO: result: $CXX" >&5 | 
|  | 1932 | echo "${ECHO_T}$CXX" >&6 | 
|  | 1933 | else | 
|  | 1934 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 1935 | echo "${ECHO_T}no" >&6 | 
|  | 1936 | fi | 
|  | 1937 |  | 
|  | 1938 | test -n "$CXX" && break | 
|  | 1939 | done | 
|  | 1940 | fi | 
|  | 1941 | if test -z "$CXX"; then | 
|  | 1942 | ac_ct_CXX=$CXX | 
|  | 1943 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | 
|  | 1944 | do | 
|  | 1945 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 1946 | set dummy $ac_prog; ac_word=$2 | 
|  | 1947 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 1948 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 1949 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | 
|  | 1950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 1951 | else | 
|  | 1952 | if test -n "$ac_ct_CXX"; then | 
|  | 1953 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | 
|  | 1954 | else | 
|  | 1955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 1956 | for as_dir in $PATH | 
|  | 1957 | do | 
|  | 1958 | IFS=$as_save_IFS | 
|  | 1959 | test -z "$as_dir" && as_dir=. | 
|  | 1960 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 1961 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 1962 | ac_cv_prog_ac_ct_CXX="$ac_prog" | 
|  | 1963 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 1964 | break 2 | 
|  | 1965 | fi | 
|  | 1966 | done | 
|  | 1967 | done | 
|  | 1968 |  | 
|  | 1969 | fi | 
|  | 1970 | fi | 
|  | 1971 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | 
|  | 1972 | if test -n "$ac_ct_CXX"; then | 
|  | 1973 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | 
|  | 1974 | echo "${ECHO_T}$ac_ct_CXX" >&6 | 
|  | 1975 | else | 
|  | 1976 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 1977 | echo "${ECHO_T}no" >&6 | 
|  | 1978 | fi | 
|  | 1979 |  | 
|  | 1980 | test -n "$ac_ct_CXX" && break | 
|  | 1981 | done | 
|  | 1982 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | 
|  | 1983 |  | 
|  | 1984 | CXX=$ac_ct_CXX | 
|  | 1985 | fi | 
|  | 1986 |  | 
|  | 1987 |  | 
|  | 1988 | # Provide some information about the compiler. | 
|  | 1989 | echo "$as_me:$LINENO:" \ | 
|  | 1990 | "checking for C++ compiler version" >&5 | 
|  | 1991 | ac_compiler=`set X $ac_compile; echo $2` | 
|  | 1992 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | 
|  | 1993 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | 
|  | 1994 | ac_status=$? | 
|  | 1995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 1996 | (exit $ac_status); } | 
|  | 1997 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | 
|  | 1998 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | 
|  | 1999 | ac_status=$? | 
|  | 2000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2001 | (exit $ac_status); } | 
|  | 2002 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | 
|  | 2003 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | 
|  | 2004 | ac_status=$? | 
|  | 2005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2006 | (exit $ac_status); } | 
|  | 2007 |  | 
|  | 2008 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2009 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2010 | /* confdefs.h.  */ | 
|  | 2011 | _ACEOF | 
|  | 2012 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2013 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 2014 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2015 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2016 | int | 
|  | 2017 | main () | 
|  | 2018 | { | 
|  | 2019 |  | 
|  | 2020 | ; | 
|  | 2021 | return 0; | 
|  | 2022 | } | 
|  | 2023 | _ACEOF | 
|  | 2024 | ac_clean_files_save=$ac_clean_files | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2025 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2026 | # Try to create an executable without -o first, disregard a.out. | 
|  | 2027 | # It will help us diagnose broken compilers, and finding out an intuition | 
|  | 2028 | # of exeext. | 
|  | 2029 | echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 | 
|  | 2030 | echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 | 
|  | 2031 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 
|  | 2032 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | 
|  | 2033 | (eval $ac_link_default) 2>&5 | 
|  | 2034 | ac_status=$? | 
|  | 2035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2036 | (exit $ac_status); }; then | 
|  | 2037 | # Find the output, starting from the most likely.  This scheme is | 
|  | 2038 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | 
|  | 2039 | # resort. | 
|  | 2040 |  | 
|  | 2041 | # Be careful to initialize this variable, since it used to be cached. | 
|  | 2042 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | 
|  | 2043 | ac_cv_exeext= | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2044 | # b.out is created by i960 compilers. | 
|  | 2045 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | 
|  | 2046 | do | 
|  | 2047 | test -f "$ac_file" || continue | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2048 | case $ac_file in | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2049 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | 
|  | 2050 | ;; | 
|  | 2051 | conftest.$ac_ext ) | 
|  | 2052 | # This is the source file. | 
|  | 2053 | ;; | 
|  | 2054 | [ab].out ) | 
|  | 2055 | # We found the default executable, but exeext='' is most | 
|  | 2056 | # certainly right. | 
|  | 2057 | break;; | 
|  | 2058 | *.* ) | 
|  | 2059 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
|  | 2060 | # FIXME: I believe we export ac_cv_exeext for Libtool, | 
|  | 2061 | # but it would be cool to find out if it's true.  Does anybody | 
|  | 2062 | # maintain Libtool? --akim. | 
|  | 2063 | export ac_cv_exeext | 
|  | 2064 | break;; | 
|  | 2065 | * ) | 
|  | 2066 | break;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2067 | esac | 
|  | 2068 | done | 
|  | 2069 | else | 
|  | 2070 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2071 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2072 |  | 
|  | 2073 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables | 
|  | 2074 | See \`config.log' for more details." >&5 | 
|  | 2075 | echo "$as_me: error: C++ compiler cannot create executables | 
|  | 2076 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2077 | { (exit 77); exit 77; }; } | 
|  | 2078 | fi | 
|  | 2079 |  | 
|  | 2080 | ac_exeext=$ac_cv_exeext | 
|  | 2081 | echo "$as_me:$LINENO: result: $ac_file" >&5 | 
|  | 2082 | echo "${ECHO_T}$ac_file" >&6 | 
|  | 2083 |  | 
|  | 2084 | # Check the compiler produces executables we can run.  If not, either | 
|  | 2085 | # the compiler is broken, or we cross compile. | 
|  | 2086 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 | 
|  | 2087 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 | 
|  | 2088 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | 
|  | 2089 | # If not cross compiling, check that we can run a simple program. | 
|  | 2090 | if test "$cross_compiling" != yes; then | 
|  | 2091 | if { ac_try='./$ac_file' | 
|  | 2092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2093 | (eval $ac_try) 2>&5 | 
|  | 2094 | ac_status=$? | 
|  | 2095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2096 | (exit $ac_status); }; }; then | 
|  | 2097 | cross_compiling=no | 
|  | 2098 | else | 
|  | 2099 | if test "$cross_compiling" = maybe; then | 
|  | 2100 | cross_compiling=yes | 
|  | 2101 | else | 
|  | 2102 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2103 | If you meant to cross compile, use \`--host'. | 
|  | 2104 | See \`config.log' for more details." >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2105 | echo "$as_me: error: cannot run C++ compiled programs. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2106 | If you meant to cross compile, use \`--host'. | 
|  | 2107 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2108 | { (exit 1); exit 1; }; } | 
|  | 2109 | fi | 
|  | 2110 | fi | 
|  | 2111 | fi | 
|  | 2112 | echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 2113 | echo "${ECHO_T}yes" >&6 | 
|  | 2114 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2115 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2116 | ac_clean_files=$ac_clean_files_save | 
|  | 2117 | # Check the compiler produces executables we can run.  If not, either | 
|  | 2118 | # the compiler is broken, or we cross compile. | 
|  | 2119 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | 
|  | 2120 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | 
|  | 2121 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | 
|  | 2122 | echo "${ECHO_T}$cross_compiling" >&6 | 
|  | 2123 |  | 
|  | 2124 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | 
|  | 2125 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | 
|  | 2126 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 2127 | (eval $ac_link) 2>&5 | 
|  | 2128 | ac_status=$? | 
|  | 2129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2130 | (exit $ac_status); }; then | 
|  | 2131 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | 
|  | 2132 | # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will | 
|  | 2133 | # work properly (i.e., refer to `conftest.exe'), while it won't with | 
|  | 2134 | # `rm'. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2135 | for ac_file in conftest.exe conftest conftest.*; do | 
|  | 2136 | test -f "$ac_file" || continue | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2137 | case $ac_file in | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2138 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2139 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
|  | 2140 | export ac_cv_exeext | 
|  | 2141 | break;; | 
|  | 2142 | * ) break;; | 
|  | 2143 | esac | 
|  | 2144 | done | 
|  | 2145 | else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2146 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | 
|  | 2147 | See \`config.log' for more details." >&5 | 
|  | 2148 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | 
|  | 2149 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2150 | { (exit 1); exit 1; }; } | 
|  | 2151 | fi | 
|  | 2152 |  | 
|  | 2153 | rm -f conftest$ac_cv_exeext | 
|  | 2154 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | 
|  | 2155 | echo "${ECHO_T}$ac_cv_exeext" >&6 | 
|  | 2156 |  | 
|  | 2157 | rm -f conftest.$ac_ext | 
|  | 2158 | EXEEXT=$ac_cv_exeext | 
|  | 2159 | ac_exeext=$EXEEXT | 
|  | 2160 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | 
|  | 2161 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | 
|  | 2162 | if test "${ac_cv_objext+set}" = set; then | 
|  | 2163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 2164 | else | 
|  | 2165 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2166 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2167 | /* confdefs.h.  */ | 
|  | 2168 | _ACEOF | 
|  | 2169 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2170 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 2171 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2172 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2173 | int | 
|  | 2174 | main () | 
|  | 2175 | { | 
|  | 2176 |  | 
|  | 2177 | ; | 
|  | 2178 | return 0; | 
|  | 2179 | } | 
|  | 2180 | _ACEOF | 
|  | 2181 | rm -f conftest.o conftest.obj | 
|  | 2182 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 2183 | (eval $ac_compile) 2>&5 | 
|  | 2184 | ac_status=$? | 
|  | 2185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2186 | (exit $ac_status); }; then | 
|  | 2187 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | 
|  | 2188 | case $ac_file in | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2189 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2190 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 
|  | 2191 | break;; | 
|  | 2192 | esac | 
|  | 2193 | done | 
|  | 2194 | else | 
|  | 2195 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2196 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2197 |  | 
|  | 2198 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | 
|  | 2199 | See \`config.log' for more details." >&5 | 
|  | 2200 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | 
|  | 2201 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2202 | { (exit 1); exit 1; }; } | 
|  | 2203 | fi | 
|  | 2204 |  | 
|  | 2205 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 
|  | 2206 | fi | 
|  | 2207 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | 
|  | 2208 | echo "${ECHO_T}$ac_cv_objext" >&6 | 
|  | 2209 | OBJEXT=$ac_cv_objext | 
|  | 2210 | ac_objext=$OBJEXT | 
|  | 2211 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | 
|  | 2212 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | 
|  | 2213 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | 
|  | 2214 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 2215 | else | 
|  | 2216 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2217 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2218 | /* confdefs.h.  */ | 
|  | 2219 | _ACEOF | 
|  | 2220 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2221 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 2222 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2223 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2224 | int | 
|  | 2225 | main () | 
|  | 2226 | { | 
|  | 2227 | #ifndef __GNUC__ | 
|  | 2228 | choke me | 
|  | 2229 | #endif | 
|  | 2230 |  | 
|  | 2231 | ; | 
|  | 2232 | return 0; | 
|  | 2233 | } | 
|  | 2234 | _ACEOF | 
|  | 2235 | rm -f conftest.$ac_objext | 
|  | 2236 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 2237 | (eval $ac_compile) 2>&5 | 
|  | 2238 | ac_status=$? | 
|  | 2239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2240 | (exit $ac_status); } && | 
|  | 2241 | { ac_try='test -s conftest.$ac_objext' | 
|  | 2242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2243 | (eval $ac_try) 2>&5 | 
|  | 2244 | ac_status=$? | 
|  | 2245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2246 | (exit $ac_status); }; }; then | 
|  | 2247 | ac_compiler_gnu=yes | 
|  | 2248 | else | 
|  | 2249 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2250 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2251 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2252 | ac_compiler_gnu=no | 
|  | 2253 | fi | 
|  | 2254 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 2255 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | 
|  | 2256 |  | 
|  | 2257 | fi | 
|  | 2258 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | 
|  | 2259 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | 
|  | 2260 | GXX=`test $ac_compiler_gnu = yes && echo yes` | 
|  | 2261 | ac_test_CXXFLAGS=${CXXFLAGS+set} | 
|  | 2262 | ac_save_CXXFLAGS=$CXXFLAGS | 
|  | 2263 | CXXFLAGS="-g" | 
|  | 2264 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | 
|  | 2265 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | 
|  | 2266 | if test "${ac_cv_prog_cxx_g+set}" = set; then | 
|  | 2267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 2268 | else | 
|  | 2269 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2270 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2271 | /* confdefs.h.  */ | 
|  | 2272 | _ACEOF | 
|  | 2273 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2274 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 2275 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2276 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2277 | int | 
|  | 2278 | main () | 
|  | 2279 | { | 
|  | 2280 |  | 
|  | 2281 | ; | 
|  | 2282 | return 0; | 
|  | 2283 | } | 
|  | 2284 | _ACEOF | 
|  | 2285 | rm -f conftest.$ac_objext | 
|  | 2286 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 2287 | (eval $ac_compile) 2>&5 | 
|  | 2288 | ac_status=$? | 
|  | 2289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2290 | (exit $ac_status); } && | 
|  | 2291 | { ac_try='test -s conftest.$ac_objext' | 
|  | 2292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2293 | (eval $ac_try) 2>&5 | 
|  | 2294 | ac_status=$? | 
|  | 2295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2296 | (exit $ac_status); }; }; then | 
|  | 2297 | ac_cv_prog_cxx_g=yes | 
|  | 2298 | else | 
|  | 2299 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2300 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2301 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2302 | ac_cv_prog_cxx_g=no | 
|  | 2303 | fi | 
|  | 2304 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 2305 | fi | 
|  | 2306 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | 
|  | 2307 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | 
|  | 2308 | if test "$ac_test_CXXFLAGS" = set; then | 
|  | 2309 | CXXFLAGS=$ac_save_CXXFLAGS | 
|  | 2310 | elif test $ac_cv_prog_cxx_g = yes; then | 
|  | 2311 | if test "$GXX" = yes; then | 
|  | 2312 | CXXFLAGS="-g -O2" | 
|  | 2313 | else | 
|  | 2314 | CXXFLAGS="-g" | 
|  | 2315 | fi | 
|  | 2316 | else | 
|  | 2317 | if test "$GXX" = yes; then | 
|  | 2318 | CXXFLAGS="-O2" | 
|  | 2319 | else | 
|  | 2320 | CXXFLAGS= | 
|  | 2321 | fi | 
|  | 2322 | fi | 
|  | 2323 | for ac_declaration in \ | 
|  | 2324 | ''\ | 
|  | 2325 | '#include <stdlib.h>' \ | 
|  | 2326 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | 
|  | 2327 | 'extern "C" void std::exit (int); using std::exit;' \ | 
|  | 2328 | 'extern "C" void exit (int) throw ();' \ | 
|  | 2329 | 'extern "C" void exit (int);' \ | 
|  | 2330 | 'void exit (int);' | 
|  | 2331 | do | 
|  | 2332 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2333 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2334 | /* confdefs.h.  */ | 
|  | 2335 | _ACEOF | 
|  | 2336 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2337 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 2338 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2339 | #include <stdlib.h> | 
|  | 2340 | $ac_declaration | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2341 | int | 
|  | 2342 | main () | 
|  | 2343 | { | 
|  | 2344 | exit (42); | 
|  | 2345 | ; | 
|  | 2346 | return 0; | 
|  | 2347 | } | 
|  | 2348 | _ACEOF | 
|  | 2349 | rm -f conftest.$ac_objext | 
|  | 2350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 2351 | (eval $ac_compile) 2>&5 | 
|  | 2352 | ac_status=$? | 
|  | 2353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2354 | (exit $ac_status); } && | 
|  | 2355 | { ac_try='test -s conftest.$ac_objext' | 
|  | 2356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2357 | (eval $ac_try) 2>&5 | 
|  | 2358 | ac_status=$? | 
|  | 2359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2360 | (exit $ac_status); }; }; then | 
|  | 2361 | : | 
|  | 2362 | else | 
|  | 2363 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2364 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2365 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2366 | continue | 
|  | 2367 | fi | 
|  | 2368 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 2369 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2370 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2371 | /* confdefs.h.  */ | 
|  | 2372 | _ACEOF | 
|  | 2373 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2374 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 2375 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2376 | $ac_declaration | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2377 | int | 
|  | 2378 | main () | 
|  | 2379 | { | 
|  | 2380 | exit (42); | 
|  | 2381 | ; | 
|  | 2382 | return 0; | 
|  | 2383 | } | 
|  | 2384 | _ACEOF | 
|  | 2385 | rm -f conftest.$ac_objext | 
|  | 2386 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 2387 | (eval $ac_compile) 2>&5 | 
|  | 2388 | ac_status=$? | 
|  | 2389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2390 | (exit $ac_status); } && | 
|  | 2391 | { ac_try='test -s conftest.$ac_objext' | 
|  | 2392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2393 | (eval $ac_try) 2>&5 | 
|  | 2394 | ac_status=$? | 
|  | 2395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2396 | (exit $ac_status); }; }; then | 
|  | 2397 | break | 
|  | 2398 | else | 
|  | 2399 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2400 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2401 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2402 | fi | 
|  | 2403 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 2404 | done | 
|  | 2405 | rm -f conftest* | 
|  | 2406 | if test -n "$ac_declaration"; then | 
|  | 2407 | echo '#ifdef __cplusplus' >>confdefs.h | 
|  | 2408 | echo $ac_declaration      >>confdefs.h | 
|  | 2409 | echo '#endif'             >>confdefs.h | 
|  | 2410 | fi | 
|  | 2411 |  | 
|  | 2412 | ac_ext=c | 
|  | 2413 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 2414 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 2415 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 2416 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 2417 |  | 
|  | 2418 | ac_ext=c | 
|  | 2419 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 2420 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 2421 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 2422 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 2423 | if test -n "$ac_tool_prefix"; then | 
|  | 2424 | for ac_prog in gcc | 
|  | 2425 | do | 
|  | 2426 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 2427 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
|  | 2428 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 2429 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 2430 | if test "${ac_cv_prog_CC+set}" = set; then | 
|  | 2431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 2432 | else | 
|  | 2433 | if test -n "$CC"; then | 
|  | 2434 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 2435 | else | 
|  | 2436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 2437 | for as_dir in $PATH | 
|  | 2438 | do | 
|  | 2439 | IFS=$as_save_IFS | 
|  | 2440 | test -z "$as_dir" && as_dir=. | 
|  | 2441 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 2442 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 2443 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
|  | 2444 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 2445 | break 2 | 
|  | 2446 | fi | 
|  | 2447 | done | 
|  | 2448 | done | 
|  | 2449 |  | 
|  | 2450 | fi | 
|  | 2451 | fi | 
|  | 2452 | CC=$ac_cv_prog_CC | 
|  | 2453 | if test -n "$CC"; then | 
|  | 2454 | echo "$as_me:$LINENO: result: $CC" >&5 | 
|  | 2455 | echo "${ECHO_T}$CC" >&6 | 
|  | 2456 | else | 
|  | 2457 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 2458 | echo "${ECHO_T}no" >&6 | 
|  | 2459 | fi | 
|  | 2460 |  | 
|  | 2461 | test -n "$CC" && break | 
|  | 2462 | done | 
|  | 2463 | fi | 
|  | 2464 | if test -z "$CC"; then | 
|  | 2465 | ac_ct_CC=$CC | 
|  | 2466 | for ac_prog in gcc | 
|  | 2467 | do | 
|  | 2468 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 2469 | set dummy $ac_prog; ac_word=$2 | 
|  | 2470 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 2471 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 2472 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | 
|  | 2473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 2474 | else | 
|  | 2475 | if test -n "$ac_ct_CC"; then | 
|  | 2476 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
|  | 2477 | else | 
|  | 2478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 2479 | for as_dir in $PATH | 
|  | 2480 | do | 
|  | 2481 | IFS=$as_save_IFS | 
|  | 2482 | test -z "$as_dir" && as_dir=. | 
|  | 2483 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 2484 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 2485 | ac_cv_prog_ac_ct_CC="$ac_prog" | 
|  | 2486 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 2487 | break 2 | 
|  | 2488 | fi | 
|  | 2489 | done | 
|  | 2490 | done | 
|  | 2491 |  | 
|  | 2492 | fi | 
|  | 2493 | fi | 
|  | 2494 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
|  | 2495 | if test -n "$ac_ct_CC"; then | 
|  | 2496 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | 
|  | 2497 | echo "${ECHO_T}$ac_ct_CC" >&6 | 
|  | 2498 | else | 
|  | 2499 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 2500 | echo "${ECHO_T}no" >&6 | 
|  | 2501 | fi | 
|  | 2502 |  | 
|  | 2503 | test -n "$ac_ct_CC" && break | 
|  | 2504 | done | 
|  | 2505 |  | 
|  | 2506 | CC=$ac_ct_CC | 
|  | 2507 | fi | 
|  | 2508 |  | 
|  | 2509 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2510 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | 
|  | 2511 | See \`config.log' for more details." >&5 | 
|  | 2512 | echo "$as_me: error: no acceptable C compiler found in \$PATH | 
|  | 2513 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2514 | { (exit 1); exit 1; }; } | 
|  | 2515 |  | 
|  | 2516 | # Provide some information about the compiler. | 
|  | 2517 | echo "$as_me:$LINENO:" \ | 
|  | 2518 | "checking for C compiler version" >&5 | 
|  | 2519 | ac_compiler=`set X $ac_compile; echo $2` | 
|  | 2520 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | 
|  | 2521 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | 
|  | 2522 | ac_status=$? | 
|  | 2523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2524 | (exit $ac_status); } | 
|  | 2525 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | 
|  | 2526 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | 
|  | 2527 | ac_status=$? | 
|  | 2528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2529 | (exit $ac_status); } | 
|  | 2530 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | 
|  | 2531 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | 
|  | 2532 | ac_status=$? | 
|  | 2533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2534 | (exit $ac_status); } | 
|  | 2535 |  | 
|  | 2536 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | 
|  | 2537 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | 
|  | 2538 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | 
|  | 2539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 2540 | else | 
|  | 2541 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2542 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2543 | /* confdefs.h.  */ | 
|  | 2544 | _ACEOF | 
|  | 2545 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2546 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 2547 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2548 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2549 | int | 
|  | 2550 | main () | 
|  | 2551 | { | 
|  | 2552 | #ifndef __GNUC__ | 
|  | 2553 | choke me | 
|  | 2554 | #endif | 
|  | 2555 |  | 
|  | 2556 | ; | 
|  | 2557 | return 0; | 
|  | 2558 | } | 
|  | 2559 | _ACEOF | 
|  | 2560 | rm -f conftest.$ac_objext | 
|  | 2561 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 2562 | (eval $ac_compile) 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 | ac_compiler_gnu=yes | 
|  | 2573 | else | 
|  | 2574 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2575 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2576 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2577 | ac_compiler_gnu=no | 
|  | 2578 | fi | 
|  | 2579 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 2580 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
|  | 2581 |  | 
|  | 2582 | fi | 
|  | 2583 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | 
|  | 2584 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | 
|  | 2585 | GCC=`test $ac_compiler_gnu = yes && echo yes` | 
|  | 2586 | ac_test_CFLAGS=${CFLAGS+set} | 
|  | 2587 | ac_save_CFLAGS=$CFLAGS | 
|  | 2588 | CFLAGS="-g" | 
|  | 2589 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | 
|  | 2590 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | 
|  | 2591 | if test "${ac_cv_prog_cc_g+set}" = set; then | 
|  | 2592 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 2593 | else | 
|  | 2594 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2595 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2596 | /* confdefs.h.  */ | 
|  | 2597 | _ACEOF | 
|  | 2598 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2599 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 2600 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2601 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2602 | int | 
|  | 2603 | main () | 
|  | 2604 | { | 
|  | 2605 |  | 
|  | 2606 | ; | 
|  | 2607 | return 0; | 
|  | 2608 | } | 
|  | 2609 | _ACEOF | 
|  | 2610 | rm -f conftest.$ac_objext | 
|  | 2611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 2612 | (eval $ac_compile) 2>&5 | 
|  | 2613 | ac_status=$? | 
|  | 2614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2615 | (exit $ac_status); } && | 
|  | 2616 | { ac_try='test -s conftest.$ac_objext' | 
|  | 2617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2618 | (eval $ac_try) 2>&5 | 
|  | 2619 | ac_status=$? | 
|  | 2620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2621 | (exit $ac_status); }; }; then | 
|  | 2622 | ac_cv_prog_cc_g=yes | 
|  | 2623 | else | 
|  | 2624 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2625 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2626 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2627 | ac_cv_prog_cc_g=no | 
|  | 2628 | fi | 
|  | 2629 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 2630 | fi | 
|  | 2631 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | 
|  | 2632 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | 
|  | 2633 | if test "$ac_test_CFLAGS" = set; then | 
|  | 2634 | CFLAGS=$ac_save_CFLAGS | 
|  | 2635 | elif test $ac_cv_prog_cc_g = yes; then | 
|  | 2636 | if test "$GCC" = yes; then | 
|  | 2637 | CFLAGS="-g -O2" | 
|  | 2638 | else | 
|  | 2639 | CFLAGS="-g" | 
|  | 2640 | fi | 
|  | 2641 | else | 
|  | 2642 | if test "$GCC" = yes; then | 
|  | 2643 | CFLAGS="-O2" | 
|  | 2644 | else | 
|  | 2645 | CFLAGS= | 
|  | 2646 | fi | 
|  | 2647 | fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2648 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | 
|  | 2649 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | 
|  | 2650 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | 
|  | 2651 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 2652 | else | 
|  | 2653 | ac_cv_prog_cc_stdc=no | 
|  | 2654 | ac_save_CC=$CC | 
|  | 2655 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2656 | #line $LINENO "configure" | 
|  | 2657 | /* confdefs.h.  */ | 
|  | 2658 | _ACEOF | 
|  | 2659 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2660 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 2661 | /* end confdefs.h.  */ | 
|  | 2662 | #include <stdarg.h> | 
|  | 2663 | #include <stdio.h> | 
|  | 2664 | #include <sys/types.h> | 
|  | 2665 | #include <sys/stat.h> | 
|  | 2666 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
|  | 2667 | struct buf { int x; }; | 
|  | 2668 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
|  | 2669 | static char *e (p, i) | 
|  | 2670 | char **p; | 
|  | 2671 | int i; | 
|  | 2672 | { | 
|  | 2673 | return p[i]; | 
|  | 2674 | } | 
|  | 2675 | static char *f (char * (*g) (char **, int), char **p, ...) | 
|  | 2676 | { | 
|  | 2677 | char *s; | 
|  | 2678 | va_list v; | 
|  | 2679 | va_start (v,p); | 
|  | 2680 | s = g (p, va_arg (v,int)); | 
|  | 2681 | va_end (v); | 
|  | 2682 | return s; | 
|  | 2683 | } | 
|  | 2684 | int test (int i, double x); | 
|  | 2685 | struct s1 {int (*f) (int a);}; | 
|  | 2686 | struct s2 {int (*f) (double a);}; | 
|  | 2687 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
|  | 2688 | int argc; | 
|  | 2689 | char **argv; | 
|  | 2690 | int | 
|  | 2691 | main () | 
|  | 2692 | { | 
|  | 2693 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
|  | 2694 | ; | 
|  | 2695 | return 0; | 
|  | 2696 | } | 
|  | 2697 | _ACEOF | 
|  | 2698 | # Don't try gcc -ansi; that turns off useful extensions and | 
|  | 2699 | # breaks some systems' header files. | 
|  | 2700 | # AIX			-qlanglvl=ansi | 
|  | 2701 | # Ultrix and OSF/1	-std1 | 
|  | 2702 | # HP-UX 10.20 and later	-Ae | 
|  | 2703 | # HP-UX older versions	-Aa -D_HPUX_SOURCE | 
|  | 2704 | # SVR4			-Xc -D__EXTENSIONS__ | 
|  | 2705 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
|  | 2706 | do | 
|  | 2707 | CC="$ac_save_CC $ac_arg" | 
|  | 2708 | rm -f conftest.$ac_objext | 
|  | 2709 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 2710 | (eval $ac_compile) 2>&5 | 
|  | 2711 | ac_status=$? | 
|  | 2712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2713 | (exit $ac_status); } && | 
|  | 2714 | { ac_try='test -s conftest.$ac_objext' | 
|  | 2715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2716 | (eval $ac_try) 2>&5 | 
|  | 2717 | ac_status=$? | 
|  | 2718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2719 | (exit $ac_status); }; }; then | 
|  | 2720 | ac_cv_prog_cc_stdc=$ac_arg | 
|  | 2721 | break | 
|  | 2722 | else | 
|  | 2723 | echo "$as_me: failed program was:" >&5 | 
|  | 2724 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2725 |  | 
|  | 2726 | fi | 
|  | 2727 | rm -f conftest.$ac_objext | 
|  | 2728 | done | 
|  | 2729 | rm -f conftest.$ac_ext conftest.$ac_objext | 
|  | 2730 | CC=$ac_save_CC | 
|  | 2731 |  | 
|  | 2732 | fi | 
|  | 2733 |  | 
|  | 2734 | case "x$ac_cv_prog_cc_stdc" in | 
|  | 2735 | x|xno) | 
|  | 2736 | echo "$as_me:$LINENO: result: none needed" >&5 | 
|  | 2737 | echo "${ECHO_T}none needed" >&6 ;; | 
|  | 2738 | *) | 
|  | 2739 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | 
|  | 2740 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | 
|  | 2741 | CC="$CC $ac_cv_prog_cc_stdc" ;; | 
|  | 2742 | esac | 
|  | 2743 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2744 | # Some people use a C++ compiler to compile C.  Since we use `exit', | 
|  | 2745 | # in C++ we need to declare it.  In case someone uses the same compiler | 
|  | 2746 | # for both compiling C and C++ we need to have the C++ compiler decide | 
|  | 2747 | # the declaration of exit, since it's the most demanding environment. | 
|  | 2748 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2749 | #ifndef __cplusplus | 
|  | 2750 | choke me | 
|  | 2751 | #endif | 
|  | 2752 | _ACEOF | 
|  | 2753 | rm -f conftest.$ac_objext | 
|  | 2754 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 2755 | (eval $ac_compile) 2>&5 | 
|  | 2756 | ac_status=$? | 
|  | 2757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2758 | (exit $ac_status); } && | 
|  | 2759 | { ac_try='test -s conftest.$ac_objext' | 
|  | 2760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2761 | (eval $ac_try) 2>&5 | 
|  | 2762 | ac_status=$? | 
|  | 2763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2764 | (exit $ac_status); }; }; then | 
|  | 2765 | for ac_declaration in \ | 
|  | 2766 | ''\ | 
|  | 2767 | '#include <stdlib.h>' \ | 
|  | 2768 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | 
|  | 2769 | 'extern "C" void std::exit (int); using std::exit;' \ | 
|  | 2770 | 'extern "C" void exit (int) throw ();' \ | 
|  | 2771 | 'extern "C" void exit (int);' \ | 
|  | 2772 | 'void exit (int);' | 
|  | 2773 | do | 
|  | 2774 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2775 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2776 | /* confdefs.h.  */ | 
|  | 2777 | _ACEOF | 
|  | 2778 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2779 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 2780 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2781 | #include <stdlib.h> | 
|  | 2782 | $ac_declaration | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2783 | int | 
|  | 2784 | main () | 
|  | 2785 | { | 
|  | 2786 | exit (42); | 
|  | 2787 | ; | 
|  | 2788 | return 0; | 
|  | 2789 | } | 
|  | 2790 | _ACEOF | 
|  | 2791 | rm -f conftest.$ac_objext | 
|  | 2792 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 2793 | (eval $ac_compile) 2>&5 | 
|  | 2794 | ac_status=$? | 
|  | 2795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2796 | (exit $ac_status); } && | 
|  | 2797 | { ac_try='test -s conftest.$ac_objext' | 
|  | 2798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2799 | (eval $ac_try) 2>&5 | 
|  | 2800 | ac_status=$? | 
|  | 2801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2802 | (exit $ac_status); }; }; then | 
|  | 2803 | : | 
|  | 2804 | else | 
|  | 2805 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2806 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2807 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2808 | continue | 
|  | 2809 | fi | 
|  | 2810 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 2811 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2812 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2813 | /* confdefs.h.  */ | 
|  | 2814 | _ACEOF | 
|  | 2815 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2816 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 2817 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2818 | $ac_declaration | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2819 | int | 
|  | 2820 | main () | 
|  | 2821 | { | 
|  | 2822 | exit (42); | 
|  | 2823 | ; | 
|  | 2824 | return 0; | 
|  | 2825 | } | 
|  | 2826 | _ACEOF | 
|  | 2827 | rm -f conftest.$ac_objext | 
|  | 2828 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 2829 | (eval $ac_compile) 2>&5 | 
|  | 2830 | ac_status=$? | 
|  | 2831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2832 | (exit $ac_status); } && | 
|  | 2833 | { ac_try='test -s conftest.$ac_objext' | 
|  | 2834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2835 | (eval $ac_try) 2>&5 | 
|  | 2836 | ac_status=$? | 
|  | 2837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2838 | (exit $ac_status); }; }; then | 
|  | 2839 | break | 
|  | 2840 | else | 
|  | 2841 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2842 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2843 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2844 | fi | 
|  | 2845 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 2846 | done | 
|  | 2847 | rm -f conftest* | 
|  | 2848 | if test -n "$ac_declaration"; then | 
|  | 2849 | echo '#ifdef __cplusplus' >>confdefs.h | 
|  | 2850 | echo $ac_declaration      >>confdefs.h | 
|  | 2851 | echo '#endif'             >>confdefs.h | 
|  | 2852 | fi | 
|  | 2853 |  | 
|  | 2854 | else | 
|  | 2855 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2856 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2857 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2858 | fi | 
|  | 2859 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 2860 | ac_ext=c | 
|  | 2861 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 2862 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 2863 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 2864 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 2865 |  | 
|  | 2866 | ac_ext=c | 
|  | 2867 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 2868 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 2869 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 2870 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 2871 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | 
|  | 2872 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | 
|  | 2873 | # On Suns, sometimes $CPP names a directory. | 
|  | 2874 | if test -n "$CPP" && test -d "$CPP"; then | 
|  | 2875 | CPP= | 
|  | 2876 | fi | 
|  | 2877 | if test -z "$CPP"; then | 
|  | 2878 | if test "${ac_cv_prog_CPP+set}" = set; then | 
|  | 2879 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 2880 | else | 
|  | 2881 | # Double quotes because CPP needs to be expanded | 
|  | 2882 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
|  | 2883 | do | 
|  | 2884 | ac_preproc_ok=false | 
|  | 2885 | for ac_c_preproc_warn_flag in '' yes | 
|  | 2886 | do | 
|  | 2887 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 2888 | # with a fresh cross-compiler works. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2889 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 2890 | # <limits.h> exists even on freestanding compilers. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2891 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 2892 | # not just through cpp. "Syntax error" is here to catch this case. | 
|  | 2893 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2894 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2895 | /* confdefs.h.  */ | 
|  | 2896 | _ACEOF | 
|  | 2897 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2898 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 2899 | /* end confdefs.h.  */ | 
|  | 2900 | #ifdef __STDC__ | 
|  | 2901 | # include <limits.h> | 
|  | 2902 | #else | 
|  | 2903 | # include <assert.h> | 
|  | 2904 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2905 | Syntax error | 
|  | 2906 | _ACEOF | 
|  | 2907 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 2908 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 2909 | ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2910 | grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2911 | rm -f conftest.er1 | 
|  | 2912 | cat conftest.err >&5 | 
|  | 2913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2914 | (exit $ac_status); } >/dev/null; then | 
|  | 2915 | if test -s conftest.err; then | 
|  | 2916 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 2917 | else | 
|  | 2918 | ac_cpp_err= | 
|  | 2919 | fi | 
|  | 2920 | else | 
|  | 2921 | ac_cpp_err=yes | 
|  | 2922 | fi | 
|  | 2923 | if test -z "$ac_cpp_err"; then | 
|  | 2924 | : | 
|  | 2925 | else | 
|  | 2926 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2927 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2928 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2929 | # Broken: fails on valid input. | 
|  | 2930 | continue | 
|  | 2931 | fi | 
|  | 2932 | rm -f conftest.err conftest.$ac_ext | 
|  | 2933 |  | 
|  | 2934 | # OK, works on sane cases.  Now check whether non-existent headers | 
|  | 2935 | # can be detected and how. | 
|  | 2936 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2937 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2938 | /* confdefs.h.  */ | 
|  | 2939 | _ACEOF | 
|  | 2940 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2941 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 2942 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2943 | #include <ac_nonexistent.h> | 
|  | 2944 | _ACEOF | 
|  | 2945 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 2946 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 2947 | ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2948 | grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2949 | rm -f conftest.er1 | 
|  | 2950 | cat conftest.err >&5 | 
|  | 2951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2952 | (exit $ac_status); } >/dev/null; then | 
|  | 2953 | if test -s conftest.err; then | 
|  | 2954 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 2955 | else | 
|  | 2956 | ac_cpp_err= | 
|  | 2957 | fi | 
|  | 2958 | else | 
|  | 2959 | ac_cpp_err=yes | 
|  | 2960 | fi | 
|  | 2961 | if test -z "$ac_cpp_err"; then | 
|  | 2962 | # Broken: success on invalid input. | 
|  | 2963 | continue | 
|  | 2964 | else | 
|  | 2965 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2966 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2967 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2968 | # Passes both tests. | 
|  | 2969 | ac_preproc_ok=: | 
|  | 2970 | break | 
|  | 2971 | fi | 
|  | 2972 | rm -f conftest.err conftest.$ac_ext | 
|  | 2973 |  | 
|  | 2974 | done | 
|  | 2975 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
|  | 2976 | rm -f conftest.err conftest.$ac_ext | 
|  | 2977 | if $ac_preproc_ok; then | 
|  | 2978 | break | 
|  | 2979 | fi | 
|  | 2980 |  | 
|  | 2981 | done | 
|  | 2982 | ac_cv_prog_CPP=$CPP | 
|  | 2983 |  | 
|  | 2984 | fi | 
|  | 2985 | CPP=$ac_cv_prog_CPP | 
|  | 2986 | else | 
|  | 2987 | ac_cv_prog_CPP=$CPP | 
|  | 2988 | fi | 
|  | 2989 | echo "$as_me:$LINENO: result: $CPP" >&5 | 
|  | 2990 | echo "${ECHO_T}$CPP" >&6 | 
|  | 2991 | ac_preproc_ok=false | 
|  | 2992 | for ac_c_preproc_warn_flag in '' yes | 
|  | 2993 | do | 
|  | 2994 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 2995 | # with a fresh cross-compiler works. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2996 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 2997 | # <limits.h> exists even on freestanding compilers. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2998 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 2999 | # not just through cpp. "Syntax error" is here to catch this case. | 
|  | 3000 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 3001 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3002 | /* confdefs.h.  */ | 
|  | 3003 | _ACEOF | 
|  | 3004 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3005 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 3006 | /* end confdefs.h.  */ | 
|  | 3007 | #ifdef __STDC__ | 
|  | 3008 | # include <limits.h> | 
|  | 3009 | #else | 
|  | 3010 | # include <assert.h> | 
|  | 3011 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3012 | Syntax error | 
|  | 3013 | _ACEOF | 
|  | 3014 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 3015 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 3016 | ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3017 | grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3018 | rm -f conftest.er1 | 
|  | 3019 | cat conftest.err >&5 | 
|  | 3020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3021 | (exit $ac_status); } >/dev/null; then | 
|  | 3022 | if test -s conftest.err; then | 
|  | 3023 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 3024 | else | 
|  | 3025 | ac_cpp_err= | 
|  | 3026 | fi | 
|  | 3027 | else | 
|  | 3028 | ac_cpp_err=yes | 
|  | 3029 | fi | 
|  | 3030 | if test -z "$ac_cpp_err"; then | 
|  | 3031 | : | 
|  | 3032 | else | 
|  | 3033 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3034 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3035 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3036 | # Broken: fails on valid input. | 
|  | 3037 | continue | 
|  | 3038 | fi | 
|  | 3039 | rm -f conftest.err conftest.$ac_ext | 
|  | 3040 |  | 
|  | 3041 | # OK, works on sane cases.  Now check whether non-existent headers | 
|  | 3042 | # can be detected and how. | 
|  | 3043 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 3044 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3045 | /* confdefs.h.  */ | 
|  | 3046 | _ACEOF | 
|  | 3047 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3048 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 3049 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3050 | #include <ac_nonexistent.h> | 
|  | 3051 | _ACEOF | 
|  | 3052 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 3053 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 3054 | ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3055 | grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3056 | rm -f conftest.er1 | 
|  | 3057 | cat conftest.err >&5 | 
|  | 3058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3059 | (exit $ac_status); } >/dev/null; then | 
|  | 3060 | if test -s conftest.err; then | 
|  | 3061 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 3062 | else | 
|  | 3063 | ac_cpp_err= | 
|  | 3064 | fi | 
|  | 3065 | else | 
|  | 3066 | ac_cpp_err=yes | 
|  | 3067 | fi | 
|  | 3068 | if test -z "$ac_cpp_err"; then | 
|  | 3069 | # Broken: success on invalid input. | 
|  | 3070 | continue | 
|  | 3071 | else | 
|  | 3072 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3073 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3074 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3075 | # Passes both tests. | 
|  | 3076 | ac_preproc_ok=: | 
|  | 3077 | break | 
|  | 3078 | fi | 
|  | 3079 | rm -f conftest.err conftest.$ac_ext | 
|  | 3080 |  | 
|  | 3081 | done | 
|  | 3082 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
|  | 3083 | rm -f conftest.err conftest.$ac_ext | 
|  | 3084 | if $ac_preproc_ok; then | 
|  | 3085 | : | 
|  | 3086 | else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3087 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | 
|  | 3088 | See \`config.log' for more details." >&5 | 
|  | 3089 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | 
|  | 3090 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3091 | { (exit 1); exit 1; }; } | 
|  | 3092 | fi | 
|  | 3093 |  | 
|  | 3094 | ac_ext=c | 
|  | 3095 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 3096 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 3097 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 3098 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 3099 |  | 
|  | 3100 |  | 
|  | 3101 | if test "$GCC" != "yes" | 
|  | 3102 | then | 
|  | 3103 | { { echo "$as_me:$LINENO: error: gcc required but not found" >&5 | 
|  | 3104 | echo "$as_me: error: gcc required but not found" >&2;} | 
|  | 3105 | { (exit 1); exit 1; }; } | 
|  | 3106 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3107 | if test "$GXX" != "yes" | 
|  | 3108 | then | 
|  | 3109 | { { echo "$as_me:$LINENO: error: g++ required but not found" >&5 | 
|  | 3110 | echo "$as_me: error: g++ required but not found" >&2;} | 
|  | 3111 | { (exit 1); exit 1; }; } | 
|  | 3112 | fi | 
|  | 3113 |  | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 3114 | gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1` | 
|  | 3115 | if test "$gccmajor" -lt "3" | 
|  | 3116 | then | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 3117 | { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 | 
|  | 3118 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 3119 | { (exit 1); exit 1; }; } | 
|  | 3120 | fi | 
|  | 3121 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3122 | echo "$as_me:$LINENO: checking for GNU make" >&5 | 
|  | 3123 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6 | 
|  | 3124 | if test "${_cv_gnu_make_command+set}" = set; then | 
|  | 3125 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3126 | else | 
|  | 3127 | _cv_gnu_make_command='' ; | 
|  | 3128 | for a in "$MAKE" make gmake gnumake ; do | 
|  | 3129 | if test -z "$a" ; then continue ; fi ; | 
|  | 3130 | if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then | 
|  | 3131 | _cv_gnu_make_command=$a ; | 
|  | 3132 | break; | 
|  | 3133 | fi | 
|  | 3134 | done ; | 
|  | 3135 |  | 
|  | 3136 | fi | 
|  | 3137 | echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5 | 
|  | 3138 | echo "${ECHO_T}$_cv_gnu_make_command" >&6 ; | 
|  | 3139 | if test  "x$_cv_gnu_make_command" != "x"  ; then | 
|  | 3140 | ifGNUmake='' ; | 
|  | 3141 | else | 
|  | 3142 | ifGNUmake='#' ; | 
|  | 3143 | echo "$as_me:$LINENO: result: \"Not found\"" >&5 | 
|  | 3144 | echo "${ECHO_T}\"Not found\"" >&6; | 
|  | 3145 | fi | 
|  | 3146 |  | 
|  | 3147 |  | 
|  | 3148 | if test -z "$_cv_gnu_make_command" | 
|  | 3149 | then | 
|  | 3150 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 | 
|  | 3151 | echo "$as_me: error: GNU Make required but not found" >&2;} | 
|  | 3152 | { (exit 1); exit 1; }; } | 
|  | 3153 | fi | 
|  | 3154 |  | 
|  | 3155 |  | 
|  | 3156 | echo "$as_me:$LINENO: checking " >&5 | 
|  | 3157 | echo $ECHO_N "checking ... $ECHO_C" >&6 | 
|  | 3158 | if test "${ac_cv_has_flex+set}" = set; then | 
|  | 3159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3160 | else | 
|  | 3161 | for ac_prog in flex lex | 
|  | 3162 | do | 
|  | 3163 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 3164 | set dummy $ac_prog; ac_word=$2 | 
|  | 3165 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 3166 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 3167 | if test "${ac_cv_prog_LEX+set}" = set; then | 
|  | 3168 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3169 | else | 
|  | 3170 | if test -n "$LEX"; then | 
|  | 3171 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | 
|  | 3172 | else | 
|  | 3173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3174 | for as_dir in $PATH | 
|  | 3175 | do | 
|  | 3176 | IFS=$as_save_IFS | 
|  | 3177 | test -z "$as_dir" && as_dir=. | 
|  | 3178 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 3179 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 3180 | ac_cv_prog_LEX="$ac_prog" | 
|  | 3181 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 3182 | break 2 | 
|  | 3183 | fi | 
|  | 3184 | done | 
|  | 3185 | done | 
|  | 3186 |  | 
|  | 3187 | fi | 
|  | 3188 | fi | 
|  | 3189 | LEX=$ac_cv_prog_LEX | 
|  | 3190 | if test -n "$LEX"; then | 
|  | 3191 | echo "$as_me:$LINENO: result: $LEX" >&5 | 
|  | 3192 | echo "${ECHO_T}$LEX" >&6 | 
|  | 3193 | else | 
|  | 3194 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 3195 | echo "${ECHO_T}no" >&6 | 
|  | 3196 | fi | 
|  | 3197 |  | 
|  | 3198 | test -n "$LEX" && break | 
|  | 3199 | done | 
|  | 3200 | test -n "$LEX" || LEX=":" | 
|  | 3201 |  | 
|  | 3202 | if test -z "$LEXLIB" | 
|  | 3203 | then | 
|  | 3204 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 | 
|  | 3205 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 | 
|  | 3206 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then | 
|  | 3207 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3208 | else | 
|  | 3209 | ac_check_lib_save_LIBS=$LIBS | 
|  | 3210 | LIBS="-lfl  $LIBS" | 
|  | 3211 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 3212 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3213 | /* confdefs.h.  */ | 
|  | 3214 | _ACEOF | 
|  | 3215 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3216 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 3217 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3218 |  | 
|  | 3219 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 3220 | #ifdef __cplusplus | 
|  | 3221 | extern "C" | 
|  | 3222 | #endif | 
|  | 3223 | /* We use char because int might match the return type of a gcc2 | 
|  | 3224 | builtin and then its argument prototype would still apply.  */ | 
|  | 3225 | char yywrap (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3226 | int | 
|  | 3227 | main () | 
|  | 3228 | { | 
|  | 3229 | yywrap (); | 
|  | 3230 | ; | 
|  | 3231 | return 0; | 
|  | 3232 | } | 
|  | 3233 | _ACEOF | 
|  | 3234 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 3235 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 3236 | (eval $ac_link) 2>&5 | 
|  | 3237 | ac_status=$? | 
|  | 3238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3239 | (exit $ac_status); } && | 
|  | 3240 | { ac_try='test -s conftest$ac_exeext' | 
|  | 3241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 3242 | (eval $ac_try) 2>&5 | 
|  | 3243 | ac_status=$? | 
|  | 3244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3245 | (exit $ac_status); }; }; then | 
|  | 3246 | ac_cv_lib_fl_yywrap=yes | 
|  | 3247 | else | 
|  | 3248 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3249 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3250 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3251 | ac_cv_lib_fl_yywrap=no | 
|  | 3252 | fi | 
|  | 3253 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 3254 | LIBS=$ac_check_lib_save_LIBS | 
|  | 3255 | fi | 
|  | 3256 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 | 
|  | 3257 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 | 
|  | 3258 | if test $ac_cv_lib_fl_yywrap = yes; then | 
|  | 3259 | LEXLIB="-lfl" | 
|  | 3260 | else | 
|  | 3261 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 | 
|  | 3262 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 | 
|  | 3263 | if test "${ac_cv_lib_l_yywrap+set}" = set; then | 
|  | 3264 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3265 | else | 
|  | 3266 | ac_check_lib_save_LIBS=$LIBS | 
|  | 3267 | LIBS="-ll  $LIBS" | 
|  | 3268 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 3269 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3270 | /* confdefs.h.  */ | 
|  | 3271 | _ACEOF | 
|  | 3272 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3273 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 3274 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3275 |  | 
|  | 3276 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 3277 | #ifdef __cplusplus | 
|  | 3278 | extern "C" | 
|  | 3279 | #endif | 
|  | 3280 | /* We use char because int might match the return type of a gcc2 | 
|  | 3281 | builtin and then its argument prototype would still apply.  */ | 
|  | 3282 | char yywrap (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3283 | int | 
|  | 3284 | main () | 
|  | 3285 | { | 
|  | 3286 | yywrap (); | 
|  | 3287 | ; | 
|  | 3288 | return 0; | 
|  | 3289 | } | 
|  | 3290 | _ACEOF | 
|  | 3291 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 3292 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 3293 | (eval $ac_link) 2>&5 | 
|  | 3294 | ac_status=$? | 
|  | 3295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3296 | (exit $ac_status); } && | 
|  | 3297 | { ac_try='test -s conftest$ac_exeext' | 
|  | 3298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 3299 | (eval $ac_try) 2>&5 | 
|  | 3300 | ac_status=$? | 
|  | 3301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3302 | (exit $ac_status); }; }; then | 
|  | 3303 | ac_cv_lib_l_yywrap=yes | 
|  | 3304 | else | 
|  | 3305 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3306 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3307 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3308 | ac_cv_lib_l_yywrap=no | 
|  | 3309 | fi | 
|  | 3310 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 3311 | LIBS=$ac_check_lib_save_LIBS | 
|  | 3312 | fi | 
|  | 3313 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 | 
|  | 3314 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 | 
|  | 3315 | if test $ac_cv_lib_l_yywrap = yes; then | 
|  | 3316 | LEXLIB="-ll" | 
|  | 3317 | fi | 
|  | 3318 |  | 
|  | 3319 | fi | 
|  | 3320 |  | 
|  | 3321 | fi | 
|  | 3322 |  | 
|  | 3323 | if test "x$LEX" != "x:"; then | 
|  | 3324 | echo "$as_me:$LINENO: checking lex output file root" >&5 | 
|  | 3325 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 | 
|  | 3326 | if test "${ac_cv_prog_lex_root+set}" = set; then | 
|  | 3327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3328 | else | 
|  | 3329 | # The minimal lex program is just a single line: %%.  But some broken lexes | 
|  | 3330 | # (Solaris, I think it was) want two %% lines, so accommodate them. | 
|  | 3331 | cat >conftest.l <<_ACEOF | 
|  | 3332 | %% | 
|  | 3333 | %% | 
|  | 3334 | _ACEOF | 
|  | 3335 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 | 
|  | 3336 | (eval $LEX conftest.l) 2>&5 | 
|  | 3337 | ac_status=$? | 
|  | 3338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3339 | (exit $ac_status); } | 
|  | 3340 | if test -f lex.yy.c; then | 
|  | 3341 | ac_cv_prog_lex_root=lex.yy | 
|  | 3342 | elif test -f lexyy.c; then | 
|  | 3343 | ac_cv_prog_lex_root=lexyy | 
|  | 3344 | else | 
|  | 3345 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 | 
|  | 3346 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} | 
|  | 3347 | { (exit 1); exit 1; }; } | 
|  | 3348 | fi | 
|  | 3349 | fi | 
|  | 3350 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 | 
|  | 3351 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 | 
|  | 3352 | rm -f conftest.l | 
|  | 3353 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | 
|  | 3354 |  | 
|  | 3355 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 | 
|  | 3356 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 | 
|  | 3357 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then | 
|  | 3358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3359 | else | 
|  | 3360 | # POSIX says lex can declare yytext either as a pointer or an array; the | 
|  | 3361 | # default is implementation-dependent. Figure out which it is, since | 
|  | 3362 | # not all implementations provide the %pointer and %array declarations. | 
|  | 3363 | ac_cv_prog_lex_yytext_pointer=no | 
|  | 3364 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | 
|  | 3365 | ac_save_LIBS=$LIBS | 
|  | 3366 | LIBS="$LIBS $LEXLIB" | 
|  | 3367 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 3368 | `cat $LEX_OUTPUT_ROOT.c` | 
|  | 3369 | _ACEOF | 
|  | 3370 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 3371 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 3372 | (eval $ac_link) 2>&5 | 
|  | 3373 | ac_status=$? | 
|  | 3374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3375 | (exit $ac_status); } && | 
|  | 3376 | { ac_try='test -s conftest$ac_exeext' | 
|  | 3377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 3378 | (eval $ac_try) 2>&5 | 
|  | 3379 | ac_status=$? | 
|  | 3380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3381 | (exit $ac_status); }; }; then | 
|  | 3382 | ac_cv_prog_lex_yytext_pointer=yes | 
|  | 3383 | else | 
|  | 3384 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3385 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3386 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3387 | fi | 
|  | 3388 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 3389 | LIBS=$ac_save_LIBS | 
|  | 3390 | rm -f "${LEX_OUTPUT_ROOT}.c" | 
|  | 3391 |  | 
|  | 3392 | fi | 
|  | 3393 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 | 
|  | 3394 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 | 
|  | 3395 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | 
|  | 3396 |  | 
|  | 3397 | cat >>confdefs.h <<\_ACEOF | 
|  | 3398 | #define YYTEXT_POINTER 1 | 
|  | 3399 | _ACEOF | 
|  | 3400 |  | 
|  | 3401 | fi | 
|  | 3402 |  | 
|  | 3403 | fi | 
|  | 3404 |  | 
|  | 3405 | fi | 
|  | 3406 | echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5 | 
|  | 3407 | echo "${ECHO_T}$ac_cv_has_flex" >&6 | 
|  | 3408 | if test "$LEX" != "flex"; then | 
|  | 3409 | { { echo "$as_me:$LINENO: error: flex not found but required" >&5 | 
|  | 3410 | echo "$as_me: error: flex not found but required" >&2;} | 
|  | 3411 | { (exit 1); exit 1; }; } | 
|  | 3412 | fi | 
|  | 3413 |  | 
|  | 3414 | echo "$as_me:$LINENO: checking " >&5 | 
|  | 3415 | echo $ECHO_N "checking ... $ECHO_C" >&6 | 
|  | 3416 | if test "${ac_cv_has_bison+set}" = set; then | 
|  | 3417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3418 | else | 
|  | 3419 | for ac_prog in 'bison -y' byacc | 
|  | 3420 | do | 
|  | 3421 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 3422 | set dummy $ac_prog; ac_word=$2 | 
|  | 3423 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 3424 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 3425 | if test "${ac_cv_prog_YACC+set}" = set; then | 
|  | 3426 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3427 | else | 
|  | 3428 | if test -n "$YACC"; then | 
|  | 3429 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | 
|  | 3430 | else | 
|  | 3431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3432 | for as_dir in $PATH | 
|  | 3433 | do | 
|  | 3434 | IFS=$as_save_IFS | 
|  | 3435 | test -z "$as_dir" && as_dir=. | 
|  | 3436 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 3437 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 3438 | ac_cv_prog_YACC="$ac_prog" | 
|  | 3439 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 3440 | break 2 | 
|  | 3441 | fi | 
|  | 3442 | done | 
|  | 3443 | done | 
|  | 3444 |  | 
|  | 3445 | fi | 
|  | 3446 | fi | 
|  | 3447 | YACC=$ac_cv_prog_YACC | 
|  | 3448 | if test -n "$YACC"; then | 
|  | 3449 | echo "$as_me:$LINENO: result: $YACC" >&5 | 
|  | 3450 | echo "${ECHO_T}$YACC" >&6 | 
|  | 3451 | else | 
|  | 3452 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 3453 | echo "${ECHO_T}no" >&6 | 
|  | 3454 | fi | 
|  | 3455 |  | 
|  | 3456 | test -n "$YACC" && break | 
|  | 3457 | done | 
|  | 3458 | test -n "$YACC" || YACC="yacc" | 
|  | 3459 |  | 
|  | 3460 |  | 
|  | 3461 | fi | 
|  | 3462 | echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5 | 
|  | 3463 | echo "${ECHO_T}$ac_cv_has_bison" >&6 | 
|  | 3464 | if test "$YACC" != "bison -y"; then | 
|  | 3465 | { { echo "$as_me:$LINENO: error: bison not found but required" >&5 | 
|  | 3466 | echo "$as_me: error: bison not found but required" >&2;} | 
|  | 3467 | { (exit 1); exit 1; }; } | 
|  | 3468 | else | 
| Brian Gaeke | 1281063 | 2004-01-13 06:52:10 +0000 | [diff] [blame] | 3469 | BISON=bison | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3470 |  | 
|  | 3471 | fi | 
|  | 3472 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3473 | # Check whether --enable-shared or --disable-shared was given. | 
|  | 3474 | if test "${enable_shared+set}" = set; then | 
|  | 3475 | enableval="$enable_shared" | 
|  | 3476 | p=${PACKAGE-default} | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3477 | case $enableval in | 
|  | 3478 | yes) enable_shared=yes ;; | 
|  | 3479 | no) enable_shared=no ;; | 
|  | 3480 | *) | 
|  | 3481 | enable_shared=no | 
|  | 3482 | # Look at the argument we got.  We use all the common list separators. | 
|  | 3483 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
|  | 3484 | for pkg in $enableval; do | 
|  | 3485 | IFS="$lt_save_ifs" | 
|  | 3486 | if test "X$pkg" = "X$p"; then | 
|  | 3487 | enable_shared=yes | 
|  | 3488 | fi | 
|  | 3489 | done | 
|  | 3490 | IFS="$lt_save_ifs" | 
|  | 3491 | ;; | 
|  | 3492 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3493 | else | 
|  | 3494 | enable_shared=yes | 
|  | 3495 | fi; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3496 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3497 | # Check whether --enable-static or --disable-static was given. | 
|  | 3498 | if test "${enable_static+set}" = set; then | 
|  | 3499 | enableval="$enable_static" | 
|  | 3500 | p=${PACKAGE-default} | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3501 | case $enableval in | 
|  | 3502 | yes) enable_static=yes ;; | 
|  | 3503 | no) enable_static=no ;; | 
|  | 3504 | *) | 
|  | 3505 | enable_static=no | 
|  | 3506 | # Look at the argument we got.  We use all the common list separators. | 
|  | 3507 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
|  | 3508 | for pkg in $enableval; do | 
|  | 3509 | IFS="$lt_save_ifs" | 
|  | 3510 | if test "X$pkg" = "X$p"; then | 
|  | 3511 | enable_static=yes | 
|  | 3512 | fi | 
|  | 3513 | done | 
|  | 3514 | IFS="$lt_save_ifs" | 
|  | 3515 | ;; | 
|  | 3516 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3517 | else | 
|  | 3518 | enable_static=yes | 
|  | 3519 | fi; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3520 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3521 | # Check whether --enable-fast-install or --disable-fast-install was given. | 
|  | 3522 | if test "${enable_fast_install+set}" = set; then | 
|  | 3523 | enableval="$enable_fast_install" | 
|  | 3524 | p=${PACKAGE-default} | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3525 | case $enableval in | 
|  | 3526 | yes) enable_fast_install=yes ;; | 
|  | 3527 | no) enable_fast_install=no ;; | 
|  | 3528 | *) | 
|  | 3529 | enable_fast_install=no | 
|  | 3530 | # Look at the argument we got.  We use all the common list separators. | 
|  | 3531 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
|  | 3532 | for pkg in $enableval; do | 
|  | 3533 | IFS="$lt_save_ifs" | 
|  | 3534 | if test "X$pkg" = "X$p"; then | 
|  | 3535 | enable_fast_install=yes | 
|  | 3536 | fi | 
|  | 3537 | done | 
|  | 3538 | IFS="$lt_save_ifs" | 
|  | 3539 | ;; | 
|  | 3540 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3541 | else | 
|  | 3542 | enable_fast_install=yes | 
|  | 3543 | fi; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3544 |  | 
|  | 3545 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | 
|  | 3546 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 | 
|  | 3547 | if test "${lt_cv_path_SED+set}" = set; then | 
|  | 3548 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3549 | else | 
|  | 3550 | # Loop through the user's path and test for sed and gsed. | 
|  | 3551 | # Then use that list of sed's as ones to test for truncation. | 
|  | 3552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3553 | for as_dir in $PATH | 
|  | 3554 | do | 
|  | 3555 | IFS=$as_save_IFS | 
|  | 3556 | test -z "$as_dir" && as_dir=. | 
|  | 3557 | for lt_ac_prog in sed gsed; do | 
|  | 3558 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 3559 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | 
|  | 3560 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | 
|  | 3561 | fi | 
|  | 3562 | done | 
|  | 3563 | done | 
|  | 3564 | done | 
|  | 3565 | lt_ac_max=0 | 
|  | 3566 | lt_ac_count=0 | 
|  | 3567 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | 
|  | 3568 | # along with /bin/sed that truncates output. | 
|  | 3569 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | 
|  | 3570 | test ! -f $lt_ac_sed && break | 
|  | 3571 | cat /dev/null > conftest.in | 
|  | 3572 | lt_ac_count=0 | 
|  | 3573 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in | 
|  | 3574 | # Check for GNU sed and select it if it is found. | 
|  | 3575 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | 
|  | 3576 | lt_cv_path_SED=$lt_ac_sed | 
|  | 3577 | break | 
|  | 3578 | fi | 
|  | 3579 | while true; do | 
|  | 3580 | cat conftest.in conftest.in >conftest.tmp | 
|  | 3581 | mv conftest.tmp conftest.in | 
|  | 3582 | cp conftest.in conftest.nl | 
|  | 3583 | echo >>conftest.nl | 
|  | 3584 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | 
|  | 3585 | cmp -s conftest.out conftest.nl || break | 
|  | 3586 | # 10000 chars as input seems more than enough | 
|  | 3587 | test $lt_ac_count -gt 10 && break | 
|  | 3588 | lt_ac_count=`expr $lt_ac_count + 1` | 
|  | 3589 | if test $lt_ac_count -gt $lt_ac_max; then | 
|  | 3590 | lt_ac_max=$lt_ac_count | 
|  | 3591 | lt_cv_path_SED=$lt_ac_sed | 
|  | 3592 | fi | 
|  | 3593 | done | 
|  | 3594 | done | 
|  | 3595 | SED=$lt_cv_path_SED | 
|  | 3596 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3597 | fi | 
|  | 3598 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3599 | echo "$as_me:$LINENO: result: $SED" >&5 | 
|  | 3600 | echo "${ECHO_T}$SED" >&6 | 
|  | 3601 |  | 
|  | 3602 | echo "$as_me:$LINENO: checking for egrep" >&5 | 
|  | 3603 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | 
|  | 3604 | if test "${ac_cv_prog_egrep+set}" = set; then | 
|  | 3605 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3606 | else | 
|  | 3607 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | 
|  | 3608 | then ac_cv_prog_egrep='grep -E' | 
|  | 3609 | else ac_cv_prog_egrep='egrep' | 
|  | 3610 | fi | 
|  | 3611 | fi | 
|  | 3612 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | 
|  | 3613 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | 
|  | 3614 | EGREP=$ac_cv_prog_egrep | 
|  | 3615 |  | 
|  | 3616 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3617 |  | 
|  | 3618 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | 
|  | 3619 | if test "${with_gnu_ld+set}" = set; then | 
|  | 3620 | withval="$with_gnu_ld" | 
|  | 3621 | test "$withval" = no || with_gnu_ld=yes | 
|  | 3622 | else | 
|  | 3623 | with_gnu_ld=no | 
|  | 3624 | fi; | 
|  | 3625 | ac_prog=ld | 
|  | 3626 | if test "$GCC" = yes; then | 
|  | 3627 | # Check if gcc -print-prog-name=ld gives a path. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3628 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | 
|  | 3629 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3630 | case $host in | 
|  | 3631 | *-*-mingw*) | 
|  | 3632 | # gcc leaves a trailing carriage return which upsets mingw | 
|  | 3633 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | 
|  | 3634 | *) | 
|  | 3635 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | 
|  | 3636 | esac | 
|  | 3637 | case $ac_prog in | 
|  | 3638 | # Accept absolute paths. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3639 | [\\/]* | ?:[\\/]*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3640 | re_direlt='/[^/][^/]*/\.\./' | 
|  | 3641 | # Canonicalize the path of ld | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3642 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3643 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3644 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3645 | done | 
|  | 3646 | test -z "$LD" && LD="$ac_prog" | 
|  | 3647 | ;; | 
|  | 3648 | "") | 
|  | 3649 | # If it fails, then pretend we aren't using GCC. | 
|  | 3650 | ac_prog=ld | 
|  | 3651 | ;; | 
|  | 3652 | *) | 
|  | 3653 | # If it is relative, then search for the first ld in PATH. | 
|  | 3654 | with_gnu_ld=unknown | 
|  | 3655 | ;; | 
|  | 3656 | esac | 
|  | 3657 | elif test "$with_gnu_ld" = yes; then | 
|  | 3658 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | 
|  | 3659 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | 
|  | 3660 | else | 
|  | 3661 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | 
|  | 3662 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | 
|  | 3663 | fi | 
|  | 3664 | if test "${lt_cv_path_LD+set}" = set; then | 
|  | 3665 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3666 | else | 
|  | 3667 | if test -z "$LD"; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3668 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3669 | for ac_dir in $PATH; do | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3670 | IFS="$lt_save_ifs" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3671 | test -z "$ac_dir" && ac_dir=. | 
|  | 3672 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | 
|  | 3673 | lt_cv_path_LD="$ac_dir/$ac_prog" | 
|  | 3674 | # Check to see if the program is GNU ld.  I'd rather use --version, | 
|  | 3675 | # but apparently some GNU ld's only accept -v. | 
|  | 3676 | # Break only if it was the GNU/non-GNU ld that we prefer. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3677 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | 
|  | 3678 | *GNU* | *'with BFD'*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3679 | test "$with_gnu_ld" != no && break | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3680 | ;; | 
|  | 3681 | *) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3682 | test "$with_gnu_ld" != yes && break | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3683 | ;; | 
|  | 3684 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3685 | fi | 
|  | 3686 | done | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3687 | IFS="$lt_save_ifs" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3688 | else | 
|  | 3689 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | 
|  | 3690 | fi | 
|  | 3691 | fi | 
|  | 3692 |  | 
|  | 3693 | LD="$lt_cv_path_LD" | 
|  | 3694 | if test -n "$LD"; then | 
|  | 3695 | echo "$as_me:$LINENO: result: $LD" >&5 | 
|  | 3696 | echo "${ECHO_T}$LD" >&6 | 
|  | 3697 | else | 
|  | 3698 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 3699 | echo "${ECHO_T}no" >&6 | 
|  | 3700 | fi | 
|  | 3701 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | 
|  | 3702 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | 
|  | 3703 | { (exit 1); exit 1; }; } | 
|  | 3704 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | 
|  | 3705 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | 
|  | 3706 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | 
|  | 3707 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3708 | else | 
|  | 3709 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3710 | case `"$LD" -v 2>&1 </dev/null` in | 
|  | 3711 | *GNU* | *'with BFD'*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3712 | lt_cv_prog_gnu_ld=yes | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3713 | ;; | 
|  | 3714 | *) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3715 | lt_cv_prog_gnu_ld=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3716 | ;; | 
|  | 3717 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3718 | fi | 
|  | 3719 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | 
|  | 3720 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | 
|  | 3721 | with_gnu_ld=$lt_cv_prog_gnu_ld | 
|  | 3722 |  | 
|  | 3723 |  | 
|  | 3724 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | 
|  | 3725 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | 
|  | 3726 | if test "${lt_cv_ld_reload_flag+set}" = set; then | 
|  | 3727 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3728 | else | 
|  | 3729 | lt_cv_ld_reload_flag='-r' | 
|  | 3730 | fi | 
|  | 3731 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | 
|  | 3732 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | 
|  | 3733 | reload_flag=$lt_cv_ld_reload_flag | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3734 | case $reload_flag in | 
|  | 3735 | "" | " "*) ;; | 
|  | 3736 | *) reload_flag=" $reload_flag" ;; | 
|  | 3737 | esac | 
|  | 3738 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3739 |  | 
|  | 3740 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | 
|  | 3741 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | 
|  | 3742 | if test "${lt_cv_path_NM+set}" = set; then | 
|  | 3743 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3744 | else | 
|  | 3745 | if test -n "$NM"; then | 
|  | 3746 | # Let the user override the test. | 
|  | 3747 | lt_cv_path_NM="$NM" | 
|  | 3748 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3749 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3750 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3751 | IFS="$lt_save_ifs" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3752 | test -z "$ac_dir" && ac_dir=. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3753 | tmp_nm="$ac_dir/${ac_tool_prefix}nm" | 
|  | 3754 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3755 | # Check to see if the nm accepts a BSD-compat flag. | 
|  | 3756 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | 
|  | 3757 | #   nm: unknown option "B" ignored | 
|  | 3758 | # Tru64's nm complains that /dev/null is an invalid object file | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3759 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | 
|  | 3760 | */dev/null* | *'Invalid file or object type'*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3761 | lt_cv_path_NM="$tmp_nm -B" | 
|  | 3762 | break | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3763 | ;; | 
|  | 3764 | *) | 
|  | 3765 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | 
|  | 3766 | */dev/null*) | 
|  | 3767 | lt_cv_path_NM="$tmp_nm -p" | 
|  | 3768 | break | 
|  | 3769 | ;; | 
|  | 3770 | *) | 
|  | 3771 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | 
|  | 3772 | continue # so that we can try to find one that supports BSD flags | 
|  | 3773 | ;; | 
|  | 3774 | esac | 
|  | 3775 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3776 | fi | 
|  | 3777 | done | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3778 | IFS="$lt_save_ifs" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3779 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | 
|  | 3780 | fi | 
|  | 3781 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3782 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | 
|  | 3783 | echo "${ECHO_T}$lt_cv_path_NM" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3784 | NM="$lt_cv_path_NM" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3785 |  | 
|  | 3786 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | 
|  | 3787 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | 
|  | 3788 | LN_S=$as_ln_s | 
|  | 3789 | if test "$LN_S" = "ln -s"; then | 
|  | 3790 | echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 3791 | echo "${ECHO_T}yes" >&6 | 
|  | 3792 | else | 
|  | 3793 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | 
|  | 3794 | echo "${ECHO_T}no, using $LN_S" >&6 | 
|  | 3795 | fi | 
|  | 3796 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3797 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 | 
|  | 3798 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3799 | if test "${lt_cv_deplibs_check_method+set}" = set; then | 
|  | 3800 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3801 | else | 
|  | 3802 | lt_cv_file_magic_cmd='$MAGIC_CMD' | 
|  | 3803 | lt_cv_file_magic_test_file= | 
|  | 3804 | lt_cv_deplibs_check_method='unknown' | 
|  | 3805 | # Need to set the preceding variable on all platforms that support | 
|  | 3806 | # interlibrary dependencies. | 
|  | 3807 | # 'none' -- dependencies not supported. | 
|  | 3808 | # `unknown' -- same as none, but documents that we really don't know. | 
|  | 3809 | # 'pass_all' -- all dependencies passed with no checks. | 
|  | 3810 | # 'test_compile' -- check by making test program. | 
|  | 3811 | # 'file_magic [[regex]]' -- check by looking for files in library path | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3812 | # which responds to the $file_magic_cmd with a given extended regex. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3813 | # If you have `file' or equivalent on your system and you're not sure | 
|  | 3814 | # whether `pass_all' will *always* work, you probably want this one. | 
|  | 3815 |  | 
|  | 3816 | case $host_os in | 
|  | 3817 | aix4* | aix5*) | 
|  | 3818 | lt_cv_deplibs_check_method=pass_all | 
|  | 3819 | ;; | 
|  | 3820 |  | 
|  | 3821 | beos*) | 
|  | 3822 | lt_cv_deplibs_check_method=pass_all | 
|  | 3823 | ;; | 
|  | 3824 |  | 
|  | 3825 | bsdi4*) | 
|  | 3826 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | 
|  | 3827 | lt_cv_file_magic_cmd='/usr/bin/file -L' | 
|  | 3828 | lt_cv_file_magic_test_file=/shlib/libc.so | 
|  | 3829 | ;; | 
|  | 3830 |  | 
|  | 3831 | cygwin* | mingw* | pw32*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3832 | # win32_libid is a shell function defined in ltmain.sh | 
|  | 3833 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | 
|  | 3834 | lt_cv_file_magic_cmd='win32_libid' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3835 | ;; | 
|  | 3836 |  | 
|  | 3837 | darwin* | rhapsody*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3838 | # this will be overwritten by pass_all, but leave it in just in case | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3839 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | 
|  | 3840 | lt_cv_file_magic_cmd='/usr/bin/file -L' | 
|  | 3841 | case "$host_os" in | 
|  | 3842 | rhapsody* | darwin1.[012]) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3843 | lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3844 | ;; | 
|  | 3845 | *) # Darwin 1.3 on | 
|  | 3846 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | 
|  | 3847 | ;; | 
|  | 3848 | esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3849 | lt_cv_deplibs_check_method=pass_all | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3850 | ;; | 
|  | 3851 |  | 
|  | 3852 | freebsd*) | 
|  | 3853 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | 
|  | 3854 | case $host_cpu in | 
|  | 3855 | i*86 ) | 
|  | 3856 | # Not sure whether the presence of OpenBSD here was a mistake. | 
|  | 3857 | # Let's accept both of them until this is cleared up. | 
|  | 3858 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | 
|  | 3859 | lt_cv_file_magic_cmd=/usr/bin/file | 
|  | 3860 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | 
|  | 3861 | ;; | 
|  | 3862 | esac | 
|  | 3863 | else | 
|  | 3864 | lt_cv_deplibs_check_method=pass_all | 
|  | 3865 | fi | 
|  | 3866 | ;; | 
|  | 3867 |  | 
|  | 3868 | gnu*) | 
|  | 3869 | lt_cv_deplibs_check_method=pass_all | 
|  | 3870 | ;; | 
|  | 3871 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3872 | hpux10.20* | hpux11*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3873 | lt_cv_file_magic_cmd=/usr/bin/file | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3874 | case "$host_cpu" in | 
|  | 3875 | ia64*) | 
|  | 3876 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | 
|  | 3877 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | 
|  | 3878 | ;; | 
|  | 3879 | hppa*64*) | 
|  | 3880 | 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]' | 
|  | 3881 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | 
|  | 3882 | ;; | 
|  | 3883 | *) | 
|  | 3884 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | 
|  | 3885 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | 
|  | 3886 | ;; | 
|  | 3887 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3888 | ;; | 
|  | 3889 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3890 | irix5* | irix6* | nonstopux*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3891 | case $host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3892 | irix5* | nonstopux*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3893 | # this will be overridden with pass_all, but let us keep it just in case | 
|  | 3894 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | 
|  | 3895 | ;; | 
|  | 3896 | *) | 
|  | 3897 | case $LD in | 
|  | 3898 | *-32|*"-32 ") libmagic=32-bit;; | 
|  | 3899 | *-n32|*"-n32 ") libmagic=N32;; | 
|  | 3900 | *-64|*"-64 ") libmagic=64-bit;; | 
|  | 3901 | *) libmagic=never-match;; | 
|  | 3902 | esac | 
|  | 3903 | # this will be overridden with pass_all, but let us keep it just in case | 
|  | 3904 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" | 
|  | 3905 | ;; | 
|  | 3906 | esac | 
|  | 3907 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | 
|  | 3908 | lt_cv_deplibs_check_method=pass_all | 
|  | 3909 | ;; | 
|  | 3910 |  | 
|  | 3911 | # This must be Linux ELF. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3912 | linux*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3913 | case $host_cpu in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3914 | alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3915 | lt_cv_deplibs_check_method=pass_all ;; | 
|  | 3916 | *) | 
|  | 3917 | # glibc up to 2.1.1 does not perform some relocations on ARM | 
|  | 3918 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; | 
|  | 3919 | esac | 
|  | 3920 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` | 
|  | 3921 | ;; | 
|  | 3922 |  | 
|  | 3923 | netbsd*) | 
|  | 3924 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3925 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3926 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3927 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3928 | fi | 
|  | 3929 | ;; | 
|  | 3930 |  | 
|  | 3931 | newos6*) | 
|  | 3932 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | 
|  | 3933 | lt_cv_file_magic_cmd=/usr/bin/file | 
|  | 3934 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | 
|  | 3935 | ;; | 
|  | 3936 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3937 | nto-qnx) | 
|  | 3938 | lt_cv_deplibs_check_method=unknown | 
|  | 3939 | ;; | 
|  | 3940 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3941 | openbsd*) | 
|  | 3942 | lt_cv_file_magic_cmd=/usr/bin/file | 
|  | 3943 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | 
|  | 3944 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|  | 3945 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' | 
|  | 3946 | else | 
|  | 3947 | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' | 
|  | 3948 | fi | 
|  | 3949 | ;; | 
|  | 3950 |  | 
|  | 3951 | osf3* | osf4* | osf5*) | 
|  | 3952 | # this will be overridden with pass_all, but let us keep it just in case | 
|  | 3953 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | 
|  | 3954 | lt_cv_file_magic_test_file=/shlib/libc.so | 
|  | 3955 | lt_cv_deplibs_check_method=pass_all | 
|  | 3956 | ;; | 
|  | 3957 |  | 
|  | 3958 | sco3.2v5*) | 
|  | 3959 | lt_cv_deplibs_check_method=pass_all | 
|  | 3960 | ;; | 
|  | 3961 |  | 
|  | 3962 | solaris*) | 
|  | 3963 | lt_cv_deplibs_check_method=pass_all | 
|  | 3964 | lt_cv_file_magic_test_file=/lib/libc.so | 
|  | 3965 | ;; | 
|  | 3966 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3967 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
|  | 3968 | case $host_vendor in | 
|  | 3969 | motorola) | 
|  | 3970 | 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]' | 
|  | 3971 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | 
|  | 3972 | ;; | 
|  | 3973 | ncr) | 
|  | 3974 | lt_cv_deplibs_check_method=pass_all | 
|  | 3975 | ;; | 
|  | 3976 | sequent) | 
|  | 3977 | lt_cv_file_magic_cmd='/bin/file' | 
|  | 3978 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | 
|  | 3979 | ;; | 
|  | 3980 | sni) | 
|  | 3981 | lt_cv_file_magic_cmd='/bin/file' | 
|  | 3982 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | 
|  | 3983 | lt_cv_file_magic_test_file=/lib/libc.so | 
|  | 3984 | ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3985 | siemens) | 
|  | 3986 | lt_cv_deplibs_check_method=pass_all | 
|  | 3987 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3988 | esac | 
|  | 3989 | ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3990 |  | 
|  | 3991 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) | 
|  | 3992 | lt_cv_deplibs_check_method=pass_all | 
|  | 3993 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3994 | esac | 
|  | 3995 |  | 
|  | 3996 | fi | 
|  | 3997 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | 
|  | 3998 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | 
|  | 3999 | file_magic_cmd=$lt_cv_file_magic_cmd | 
|  | 4000 | deplibs_check_method=$lt_cv_deplibs_check_method | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4001 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4002 |  | 
|  | 4003 |  | 
|  | 4004 |  | 
|  | 4005 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4006 | # If no C compiler was specified, use CC. | 
|  | 4007 | LTCC=${LTCC-"$CC"} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4008 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4009 | # Allow CC to be a program name with arguments. | 
|  | 4010 | compiler=$CC | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4011 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4012 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | 
|  | 4013 | if test "${enable_libtool_lock+set}" = set; then | 
|  | 4014 | enableval="$enable_libtool_lock" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4015 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4016 | fi; | 
|  | 4017 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4018 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4019 | # Some flags need to be propagated to the compiler or linker for good | 
|  | 4020 | # libtool support. | 
|  | 4021 | case $host in | 
|  | 4022 | ia64-*-hpux*) | 
|  | 4023 | # Find out which ABI we are using. | 
|  | 4024 | echo 'int i;' > conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4025 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 4026 | (eval $ac_compile) 2>&5 | 
|  | 4027 | ac_status=$? | 
|  | 4028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4029 | (exit $ac_status); }; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4030 | case `/usr/bin/file conftest.$ac_objext` in | 
|  | 4031 | *ELF-32*) | 
|  | 4032 | HPUX_IA64_MODE="32" | 
|  | 4033 | ;; | 
|  | 4034 | *ELF-64*) | 
|  | 4035 | HPUX_IA64_MODE="64" | 
|  | 4036 | ;; | 
|  | 4037 | esac | 
|  | 4038 | fi | 
|  | 4039 | rm -rf conftest* | 
|  | 4040 | ;; | 
|  | 4041 | *-*-irix6*) | 
|  | 4042 | # Find out which ABI we are using. | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 4043 | echo '#line 4043 "configure"' > conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4044 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 4045 | (eval $ac_compile) 2>&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4046 | ac_status=$? | 
|  | 4047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4048 | (exit $ac_status); }; then | 
|  | 4049 | if test "$lt_cv_prog_gnu_ld" = yes; then | 
|  | 4050 | case `/usr/bin/file conftest.$ac_objext` in | 
|  | 4051 | *32-bit*) | 
|  | 4052 | LD="${LD-ld} -melf32bsmip" | 
|  | 4053 | ;; | 
|  | 4054 | *N32*) | 
|  | 4055 | LD="${LD-ld} -melf32bmipn32" | 
|  | 4056 | ;; | 
|  | 4057 | *64-bit*) | 
|  | 4058 | LD="${LD-ld} -melf64bmip" | 
|  | 4059 | ;; | 
|  | 4060 | esac | 
|  | 4061 | else | 
|  | 4062 | case `/usr/bin/file conftest.$ac_objext` in | 
|  | 4063 | *32-bit*) | 
|  | 4064 | LD="${LD-ld} -32" | 
|  | 4065 | ;; | 
|  | 4066 | *N32*) | 
|  | 4067 | LD="${LD-ld} -n32" | 
|  | 4068 | ;; | 
|  | 4069 | *64-bit*) | 
|  | 4070 | LD="${LD-ld} -64" | 
|  | 4071 | ;; | 
|  | 4072 | esac | 
|  | 4073 | fi | 
|  | 4074 | fi | 
|  | 4075 | rm -rf conftest* | 
|  | 4076 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4077 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4078 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | 
|  | 4079 | # Find out which ABI we are using. | 
|  | 4080 | echo 'int i;' > conftest.$ac_ext | 
|  | 4081 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 4082 | (eval $ac_compile) 2>&5 | 
|  | 4083 | ac_status=$? | 
|  | 4084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4085 | (exit $ac_status); }; then | 
|  | 4086 | case "`/usr/bin/file conftest.o`" in | 
|  | 4087 | *32-bit*) | 
|  | 4088 | case $host in | 
|  | 4089 | x86_64-*linux*) | 
|  | 4090 | LD="${LD-ld} -m elf_i386" | 
|  | 4091 | ;; | 
|  | 4092 | ppc64-*linux*) | 
|  | 4093 | LD="${LD-ld} -m elf32ppclinux" | 
|  | 4094 | ;; | 
|  | 4095 | s390x-*linux*) | 
|  | 4096 | LD="${LD-ld} -m elf_s390" | 
|  | 4097 | ;; | 
|  | 4098 | sparc64-*linux*) | 
|  | 4099 | LD="${LD-ld} -m elf32_sparc" | 
|  | 4100 | ;; | 
|  | 4101 | esac | 
|  | 4102 | ;; | 
|  | 4103 | *64-bit*) | 
|  | 4104 | case $host in | 
|  | 4105 | x86_64-*linux*) | 
|  | 4106 | LD="${LD-ld} -m elf_x86_64" | 
|  | 4107 | ;; | 
|  | 4108 | ppc*-*linux*|powerpc*-*linux*) | 
|  | 4109 | LD="${LD-ld} -m elf64ppc" | 
|  | 4110 | ;; | 
|  | 4111 | s390*-*linux*) | 
|  | 4112 | LD="${LD-ld} -m elf64_s390" | 
|  | 4113 | ;; | 
|  | 4114 | sparc*-*linux*) | 
|  | 4115 | LD="${LD-ld} -m elf64_sparc" | 
|  | 4116 | ;; | 
|  | 4117 | esac | 
|  | 4118 | ;; | 
|  | 4119 | esac | 
|  | 4120 | fi | 
|  | 4121 | rm -rf conftest* | 
|  | 4122 | ;; | 
|  | 4123 |  | 
|  | 4124 | *-*-sco3.2v5*) | 
|  | 4125 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | 
|  | 4126 | SAVE_CFLAGS="$CFLAGS" | 
|  | 4127 | CFLAGS="$CFLAGS -belf" | 
|  | 4128 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | 
|  | 4129 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | 
|  | 4130 | if test "${lt_cv_cc_needs_belf+set}" = set; then | 
|  | 4131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4132 | else | 
|  | 4133 | ac_ext=c | 
|  | 4134 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 4135 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 4136 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 4137 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 4138 |  | 
|  | 4139 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4140 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4141 | /* confdefs.h.  */ | 
|  | 4142 | _ACEOF | 
|  | 4143 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4144 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 4145 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4146 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4147 | int | 
|  | 4148 | main () | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4149 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4150 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4151 | ; | 
|  | 4152 | return 0; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4153 | } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4154 | _ACEOF | 
|  | 4155 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 4156 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4157 | (eval $ac_link) 2>&5 | 
|  | 4158 | ac_status=$? | 
|  | 4159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4160 | (exit $ac_status); } && | 
|  | 4161 | { ac_try='test -s conftest$ac_exeext' | 
|  | 4162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 4163 | (eval $ac_try) 2>&5 | 
|  | 4164 | ac_status=$? | 
|  | 4165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4166 | (exit $ac_status); }; }; then | 
|  | 4167 | lt_cv_cc_needs_belf=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4168 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4169 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4170 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4171 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4172 | lt_cv_cc_needs_belf=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4173 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4174 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 4175 | ac_ext=c | 
|  | 4176 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 4177 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 4178 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 4179 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 4180 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4181 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4182 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | 
|  | 4183 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | 
|  | 4184 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | 
|  | 4185 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | 
|  | 4186 | CFLAGS="$SAVE_CFLAGS" | 
|  | 4187 | fi | 
|  | 4188 | ;; | 
|  | 4189 |  | 
|  | 4190 | esac | 
|  | 4191 |  | 
|  | 4192 | need_locks="$enable_libtool_lock" | 
|  | 4193 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4194 |  | 
|  | 4195 |  | 
|  | 4196 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | 
|  | 4197 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | 
|  | 4198 | if test "${ac_cv_header_stdc+set}" = set; then | 
|  | 4199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4200 | else | 
|  | 4201 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4202 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4203 | /* confdefs.h.  */ | 
|  | 4204 | _ACEOF | 
|  | 4205 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4206 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 4207 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4208 | #include <stdlib.h> | 
|  | 4209 | #include <stdarg.h> | 
|  | 4210 | #include <string.h> | 
|  | 4211 | #include <float.h> | 
|  | 4212 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4213 | int | 
|  | 4214 | main () | 
|  | 4215 | { | 
|  | 4216 |  | 
|  | 4217 | ; | 
|  | 4218 | return 0; | 
|  | 4219 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4220 | _ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4221 | rm -f conftest.$ac_objext | 
|  | 4222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 4223 | (eval $ac_compile) 2>&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4224 | ac_status=$? | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4226 | (exit $ac_status); } && | 
|  | 4227 | { ac_try='test -s conftest.$ac_objext' | 
|  | 4228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 4229 | (eval $ac_try) 2>&5 | 
|  | 4230 | ac_status=$? | 
|  | 4231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4232 | (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4233 | ac_cv_header_stdc=yes | 
|  | 4234 | else | 
|  | 4235 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4236 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4237 |  | 
|  | 4238 | ac_cv_header_stdc=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4239 | fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4240 | rm -f conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4241 |  | 
|  | 4242 | if test $ac_cv_header_stdc = yes; then | 
|  | 4243 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
|  | 4244 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4245 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4246 | /* confdefs.h.  */ | 
|  | 4247 | _ACEOF | 
|  | 4248 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4249 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 4250 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4251 | #include <string.h> | 
|  | 4252 |  | 
|  | 4253 | _ACEOF | 
|  | 4254 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4255 | $EGREP "memchr" >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4256 | : | 
|  | 4257 | else | 
|  | 4258 | ac_cv_header_stdc=no | 
|  | 4259 | fi | 
|  | 4260 | rm -f conftest* | 
|  | 4261 |  | 
|  | 4262 | fi | 
|  | 4263 |  | 
|  | 4264 | if test $ac_cv_header_stdc = yes; then | 
|  | 4265 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
|  | 4266 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4267 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4268 | /* confdefs.h.  */ | 
|  | 4269 | _ACEOF | 
|  | 4270 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4271 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 4272 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4273 | #include <stdlib.h> | 
|  | 4274 |  | 
|  | 4275 | _ACEOF | 
|  | 4276 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4277 | $EGREP "free" >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4278 | : | 
|  | 4279 | else | 
|  | 4280 | ac_cv_header_stdc=no | 
|  | 4281 | fi | 
|  | 4282 | rm -f conftest* | 
|  | 4283 |  | 
|  | 4284 | fi | 
|  | 4285 |  | 
|  | 4286 | if test $ac_cv_header_stdc = yes; then | 
|  | 4287 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
|  | 4288 | if test "$cross_compiling" = yes; then | 
|  | 4289 | : | 
|  | 4290 | else | 
|  | 4291 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4292 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4293 | /* confdefs.h.  */ | 
|  | 4294 | _ACEOF | 
|  | 4295 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4296 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 4297 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4298 | #include <ctype.h> | 
|  | 4299 | #if ((' ' & 0x0FF) == 0x020) | 
|  | 4300 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
|  | 4301 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
|  | 4302 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4303 | # define ISLOWER(c) \ | 
|  | 4304 | (('a' <= (c) && (c) <= 'i') \ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4305 | || ('j' <= (c) && (c) <= 'r') \ | 
|  | 4306 | || ('s' <= (c) && (c) <= 'z')) | 
|  | 4307 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
|  | 4308 | #endif | 
|  | 4309 |  | 
|  | 4310 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
|  | 4311 | int | 
|  | 4312 | main () | 
|  | 4313 | { | 
|  | 4314 | int i; | 
|  | 4315 | for (i = 0; i < 256; i++) | 
|  | 4316 | if (XOR (islower (i), ISLOWER (i)) | 
|  | 4317 | || toupper (i) != TOUPPER (i)) | 
|  | 4318 | exit(2); | 
|  | 4319 | exit (0); | 
|  | 4320 | } | 
|  | 4321 | _ACEOF | 
|  | 4322 | rm -f conftest$ac_exeext | 
|  | 4323 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 4324 | (eval $ac_link) 2>&5 | 
|  | 4325 | ac_status=$? | 
|  | 4326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4327 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 4328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 4329 | (eval $ac_try) 2>&5 | 
|  | 4330 | ac_status=$? | 
|  | 4331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4332 | (exit $ac_status); }; }; then | 
|  | 4333 | : | 
|  | 4334 | else | 
|  | 4335 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 4336 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4337 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4338 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4339 | ( exit $ac_status ) | 
|  | 4340 | ac_cv_header_stdc=no | 
|  | 4341 | fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4342 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4343 | fi | 
|  | 4344 | fi | 
|  | 4345 | fi | 
|  | 4346 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | 
|  | 4347 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | 
|  | 4348 | if test $ac_cv_header_stdc = yes; then | 
|  | 4349 |  | 
|  | 4350 | cat >>confdefs.h <<\_ACEOF | 
|  | 4351 | #define STDC_HEADERS 1 | 
|  | 4352 | _ACEOF | 
|  | 4353 |  | 
|  | 4354 | fi | 
|  | 4355 |  | 
|  | 4356 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 
|  | 4357 |  | 
|  | 4358 |  | 
|  | 4359 |  | 
|  | 4360 |  | 
|  | 4361 |  | 
|  | 4362 |  | 
|  | 4363 |  | 
|  | 4364 |  | 
|  | 4365 |  | 
|  | 4366 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | 
|  | 4367 | inttypes.h stdint.h unistd.h | 
|  | 4368 | do | 
|  | 4369 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 4370 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 4371 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 4372 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 4373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4374 | else | 
|  | 4375 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4376 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4377 | /* confdefs.h.  */ | 
|  | 4378 | _ACEOF | 
|  | 4379 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4380 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 4381 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4382 | $ac_includes_default | 
|  | 4383 |  | 
|  | 4384 | #include <$ac_header> | 
|  | 4385 | _ACEOF | 
|  | 4386 | rm -f conftest.$ac_objext | 
|  | 4387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 4388 | (eval $ac_compile) 2>&5 | 
|  | 4389 | ac_status=$? | 
|  | 4390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4391 | (exit $ac_status); } && | 
|  | 4392 | { ac_try='test -s conftest.$ac_objext' | 
|  | 4393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 4394 | (eval $ac_try) 2>&5 | 
|  | 4395 | ac_status=$? | 
|  | 4396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4397 | (exit $ac_status); }; }; then | 
|  | 4398 | eval "$as_ac_Header=yes" | 
|  | 4399 | else | 
|  | 4400 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4401 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4402 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4403 | eval "$as_ac_Header=no" | 
|  | 4404 | fi | 
|  | 4405 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 4406 | fi | 
|  | 4407 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 4408 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
|  | 4409 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
|  | 4410 | cat >>confdefs.h <<_ACEOF | 
|  | 4411 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 4412 | _ACEOF | 
|  | 4413 |  | 
|  | 4414 | fi | 
|  | 4415 |  | 
|  | 4416 | done | 
|  | 4417 |  | 
|  | 4418 |  | 
|  | 4419 |  | 
|  | 4420 | for ac_header in dlfcn.h | 
|  | 4421 | do | 
|  | 4422 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 4423 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 4424 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 4425 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 4426 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 4427 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4428 | fi | 
|  | 4429 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 4430 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
|  | 4431 | else | 
|  | 4432 | # Is the header compilable? | 
|  | 4433 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 4434 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
|  | 4435 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4436 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4437 | /* confdefs.h.  */ | 
|  | 4438 | _ACEOF | 
|  | 4439 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4440 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 4441 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4442 | $ac_includes_default | 
|  | 4443 | #include <$ac_header> | 
|  | 4444 | _ACEOF | 
|  | 4445 | rm -f conftest.$ac_objext | 
|  | 4446 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 4447 | (eval $ac_compile) 2>&5 | 
|  | 4448 | ac_status=$? | 
|  | 4449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4450 | (exit $ac_status); } && | 
|  | 4451 | { ac_try='test -s conftest.$ac_objext' | 
|  | 4452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 4453 | (eval $ac_try) 2>&5 | 
|  | 4454 | ac_status=$? | 
|  | 4455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4456 | (exit $ac_status); }; }; then | 
|  | 4457 | ac_header_compiler=yes | 
|  | 4458 | else | 
|  | 4459 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4460 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4461 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4462 | ac_header_compiler=no | 
|  | 4463 | fi | 
|  | 4464 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 4465 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 4466 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
|  | 4467 |  | 
|  | 4468 | # Is the header present? | 
|  | 4469 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 4470 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
|  | 4471 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4472 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4473 | /* confdefs.h.  */ | 
|  | 4474 | _ACEOF | 
|  | 4475 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4476 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 4477 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4478 | #include <$ac_header> | 
|  | 4479 | _ACEOF | 
|  | 4480 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 4481 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 4482 | ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4483 | grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4484 | rm -f conftest.er1 | 
|  | 4485 | cat conftest.err >&5 | 
|  | 4486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4487 | (exit $ac_status); } >/dev/null; then | 
|  | 4488 | if test -s conftest.err; then | 
|  | 4489 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 4490 | else | 
|  | 4491 | ac_cpp_err= | 
|  | 4492 | fi | 
|  | 4493 | else | 
|  | 4494 | ac_cpp_err=yes | 
|  | 4495 | fi | 
|  | 4496 | if test -z "$ac_cpp_err"; then | 
|  | 4497 | ac_header_preproc=yes | 
|  | 4498 | else | 
|  | 4499 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4500 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4501 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4502 | ac_header_preproc=no | 
|  | 4503 | fi | 
|  | 4504 | rm -f conftest.err conftest.$ac_ext | 
|  | 4505 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 4506 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
|  | 4507 |  | 
|  | 4508 | # So?  What about this header? | 
|  | 4509 | case $ac_header_compiler:$ac_header_preproc in | 
|  | 4510 | yes:no ) | 
|  | 4511 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 4512 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 4513 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4514 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 4515 | ( | 
|  | 4516 | cat <<\_ASBOX | 
|  | 4517 | ## ------------------------------------ ## | 
|  | 4518 | ## Report this to bug-autoconf@gnu.org. ## | 
|  | 4519 | ## ------------------------------------ ## | 
|  | 4520 | _ASBOX | 
|  | 4521 | ) | | 
|  | 4522 | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 4523 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4524 | no:yes ) | 
|  | 4525 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 4526 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 4527 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | 
|  | 4528 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | 
|  | 4529 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4530 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 4531 | ( | 
|  | 4532 | cat <<\_ASBOX | 
|  | 4533 | ## ------------------------------------ ## | 
|  | 4534 | ## Report this to bug-autoconf@gnu.org. ## | 
|  | 4535 | ## ------------------------------------ ## | 
|  | 4536 | _ASBOX | 
|  | 4537 | ) | | 
|  | 4538 | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 4539 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4540 | esac | 
|  | 4541 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 4542 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 4543 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 4544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4545 | else | 
|  | 4546 | eval "$as_ac_Header=$ac_header_preproc" | 
|  | 4547 | fi | 
|  | 4548 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 4549 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
|  | 4550 |  | 
|  | 4551 | fi | 
|  | 4552 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
|  | 4553 | cat >>confdefs.h <<_ACEOF | 
|  | 4554 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 4555 | _ACEOF | 
|  | 4556 |  | 
|  | 4557 | fi | 
|  | 4558 |  | 
|  | 4559 | done | 
|  | 4560 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4561 | ac_ext=cc | 
|  | 4562 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 4563 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 4564 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 4565 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 4566 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | 
|  | 4567 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | 
|  | 4568 | if test -z "$CXXCPP"; then | 
|  | 4569 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4570 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4571 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4572 | # Double quotes because CXXCPP needs to be expanded | 
|  | 4573 | for CXXCPP in "$CXX -E" "/lib/cpp" | 
|  | 4574 | do | 
|  | 4575 | ac_preproc_ok=false | 
|  | 4576 | for ac_cxx_preproc_warn_flag in '' yes | 
|  | 4577 | do | 
|  | 4578 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 4579 | # with a fresh cross-compiler works. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4580 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 4581 | # <limits.h> exists even on freestanding compilers. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4582 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 4583 | # not just through cpp. "Syntax error" is here to catch this case. | 
|  | 4584 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4585 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4586 | /* confdefs.h.  */ | 
|  | 4587 | _ACEOF | 
|  | 4588 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4589 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 4590 | /* end confdefs.h.  */ | 
|  | 4591 | #ifdef __STDC__ | 
|  | 4592 | # include <limits.h> | 
|  | 4593 | #else | 
|  | 4594 | # include <assert.h> | 
|  | 4595 | #endif | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4596 | Syntax error | 
|  | 4597 | _ACEOF | 
|  | 4598 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 4599 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 4600 | ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4601 | grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4602 | rm -f conftest.er1 | 
|  | 4603 | cat conftest.err >&5 | 
|  | 4604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4605 | (exit $ac_status); } >/dev/null; then | 
|  | 4606 | if test -s conftest.err; then | 
|  | 4607 | ac_cpp_err=$ac_cxx_preproc_warn_flag | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4608 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4609 | ac_cpp_err= | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4610 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4611 | else | 
|  | 4612 | ac_cpp_err=yes | 
|  | 4613 | fi | 
|  | 4614 | if test -z "$ac_cpp_err"; then | 
|  | 4615 | : | 
|  | 4616 | else | 
|  | 4617 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4618 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4619 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4620 | # Broken: fails on valid input. | 
|  | 4621 | continue | 
|  | 4622 | fi | 
|  | 4623 | rm -f conftest.err conftest.$ac_ext | 
|  | 4624 |  | 
|  | 4625 | # OK, works on sane cases.  Now check whether non-existent headers | 
|  | 4626 | # can be detected and how. | 
|  | 4627 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4628 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4629 | /* confdefs.h.  */ | 
|  | 4630 | _ACEOF | 
|  | 4631 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4632 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 4633 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4634 | #include <ac_nonexistent.h> | 
|  | 4635 | _ACEOF | 
|  | 4636 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 4637 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 4638 | ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4639 | grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4640 | rm -f conftest.er1 | 
|  | 4641 | cat conftest.err >&5 | 
|  | 4642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4643 | (exit $ac_status); } >/dev/null; then | 
|  | 4644 | if test -s conftest.err; then | 
|  | 4645 | ac_cpp_err=$ac_cxx_preproc_warn_flag | 
|  | 4646 | else | 
|  | 4647 | ac_cpp_err= | 
|  | 4648 | fi | 
|  | 4649 | else | 
|  | 4650 | ac_cpp_err=yes | 
|  | 4651 | fi | 
|  | 4652 | if test -z "$ac_cpp_err"; then | 
|  | 4653 | # Broken: success on invalid input. | 
|  | 4654 | continue | 
|  | 4655 | else | 
|  | 4656 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4657 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4658 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4659 | # Passes both tests. | 
|  | 4660 | ac_preproc_ok=: | 
|  | 4661 | break | 
|  | 4662 | fi | 
|  | 4663 | rm -f conftest.err conftest.$ac_ext | 
|  | 4664 |  | 
|  | 4665 | done | 
|  | 4666 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
|  | 4667 | rm -f conftest.err conftest.$ac_ext | 
|  | 4668 | if $ac_preproc_ok; then | 
|  | 4669 | break | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4670 | fi | 
|  | 4671 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4672 | done | 
|  | 4673 | ac_cv_prog_CXXCPP=$CXXCPP | 
|  | 4674 |  | 
|  | 4675 | fi | 
|  | 4676 | CXXCPP=$ac_cv_prog_CXXCPP | 
|  | 4677 | else | 
|  | 4678 | ac_cv_prog_CXXCPP=$CXXCPP | 
|  | 4679 | fi | 
|  | 4680 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | 
|  | 4681 | echo "${ECHO_T}$CXXCPP" >&6 | 
|  | 4682 | ac_preproc_ok=false | 
|  | 4683 | for ac_cxx_preproc_warn_flag in '' yes | 
|  | 4684 | do | 
|  | 4685 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 4686 | # with a fresh cross-compiler works. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4687 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 4688 | # <limits.h> exists even on freestanding compilers. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4689 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 4690 | # not just through cpp. "Syntax error" is here to catch this case. | 
|  | 4691 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4692 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4693 | /* confdefs.h.  */ | 
|  | 4694 | _ACEOF | 
|  | 4695 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4696 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 4697 | /* end confdefs.h.  */ | 
|  | 4698 | #ifdef __STDC__ | 
|  | 4699 | # include <limits.h> | 
|  | 4700 | #else | 
|  | 4701 | # include <assert.h> | 
|  | 4702 | #endif | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4703 | Syntax error | 
|  | 4704 | _ACEOF | 
|  | 4705 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 4706 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 4707 | ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4708 | grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4709 | rm -f conftest.er1 | 
|  | 4710 | cat conftest.err >&5 | 
|  | 4711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4712 | (exit $ac_status); } >/dev/null; then | 
|  | 4713 | if test -s conftest.err; then | 
|  | 4714 | ac_cpp_err=$ac_cxx_preproc_warn_flag | 
|  | 4715 | else | 
|  | 4716 | ac_cpp_err= | 
|  | 4717 | fi | 
|  | 4718 | else | 
|  | 4719 | ac_cpp_err=yes | 
|  | 4720 | fi | 
|  | 4721 | if test -z "$ac_cpp_err"; then | 
|  | 4722 | : | 
|  | 4723 | else | 
|  | 4724 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4725 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4726 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4727 | # Broken: fails on valid input. | 
|  | 4728 | continue | 
|  | 4729 | fi | 
|  | 4730 | rm -f conftest.err conftest.$ac_ext | 
|  | 4731 |  | 
|  | 4732 | # OK, works on sane cases.  Now check whether non-existent headers | 
|  | 4733 | # can be detected and how. | 
|  | 4734 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4735 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4736 | /* confdefs.h.  */ | 
|  | 4737 | _ACEOF | 
|  | 4738 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4739 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 4740 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4741 | #include <ac_nonexistent.h> | 
|  | 4742 | _ACEOF | 
|  | 4743 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 4744 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 4745 | ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4746 | grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4747 | rm -f conftest.er1 | 
|  | 4748 | cat conftest.err >&5 | 
|  | 4749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4750 | (exit $ac_status); } >/dev/null; then | 
|  | 4751 | if test -s conftest.err; then | 
|  | 4752 | ac_cpp_err=$ac_cxx_preproc_warn_flag | 
|  | 4753 | else | 
|  | 4754 | ac_cpp_err= | 
|  | 4755 | fi | 
|  | 4756 | else | 
|  | 4757 | ac_cpp_err=yes | 
|  | 4758 | fi | 
|  | 4759 | if test -z "$ac_cpp_err"; then | 
|  | 4760 | # Broken: success on invalid input. | 
|  | 4761 | continue | 
|  | 4762 | else | 
|  | 4763 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4764 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4765 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4766 | # Passes both tests. | 
|  | 4767 | ac_preproc_ok=: | 
|  | 4768 | break | 
|  | 4769 | fi | 
|  | 4770 | rm -f conftest.err conftest.$ac_ext | 
|  | 4771 |  | 
|  | 4772 | done | 
|  | 4773 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
|  | 4774 | rm -f conftest.err conftest.$ac_ext | 
|  | 4775 | if $ac_preproc_ok; then | 
|  | 4776 | : | 
|  | 4777 | else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4778 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | 
|  | 4779 | See \`config.log' for more details." >&5 | 
|  | 4780 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | 
|  | 4781 | See \`config.log' for more details." >&2;} | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4782 | { (exit 1); exit 1; }; } | 
|  | 4783 | fi | 
|  | 4784 |  | 
|  | 4785 | ac_ext=cc | 
|  | 4786 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 4787 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 4788 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 4789 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 4790 |  | 
|  | 4791 |  | 
|  | 4792 | ac_ext=f | 
|  | 4793 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | 
|  | 4794 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 4795 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | 
|  | 4796 | if test -n "$ac_tool_prefix"; then | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4797 | for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4798 | do | 
|  | 4799 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 4800 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
|  | 4801 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 4802 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 4803 | if test "${ac_cv_prog_F77+set}" = set; then | 
|  | 4804 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4805 | else | 
|  | 4806 | if test -n "$F77"; then | 
|  | 4807 | ac_cv_prog_F77="$F77" # Let the user override the test. | 
|  | 4808 | else | 
|  | 4809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4810 | for as_dir in $PATH | 
|  | 4811 | do | 
|  | 4812 | IFS=$as_save_IFS | 
|  | 4813 | test -z "$as_dir" && as_dir=. | 
|  | 4814 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4815 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 4816 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" | 
|  | 4817 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4818 | break 2 | 
|  | 4819 | fi | 
|  | 4820 | done | 
|  | 4821 | done | 
|  | 4822 |  | 
|  | 4823 | fi | 
|  | 4824 | fi | 
|  | 4825 | F77=$ac_cv_prog_F77 | 
|  | 4826 | if test -n "$F77"; then | 
|  | 4827 | echo "$as_me:$LINENO: result: $F77" >&5 | 
|  | 4828 | echo "${ECHO_T}$F77" >&6 | 
|  | 4829 | else | 
|  | 4830 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 4831 | echo "${ECHO_T}no" >&6 | 
|  | 4832 | fi | 
|  | 4833 |  | 
|  | 4834 | test -n "$F77" && break | 
|  | 4835 | done | 
|  | 4836 | fi | 
|  | 4837 | if test -z "$F77"; then | 
|  | 4838 | ac_ct_F77=$F77 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4839 | for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4840 | do | 
|  | 4841 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 4842 | set dummy $ac_prog; ac_word=$2 | 
|  | 4843 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 4844 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 4845 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then | 
|  | 4846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4847 | else | 
|  | 4848 | if test -n "$ac_ct_F77"; then | 
|  | 4849 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. | 
|  | 4850 | else | 
|  | 4851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4852 | for as_dir in $PATH | 
|  | 4853 | do | 
|  | 4854 | IFS=$as_save_IFS | 
|  | 4855 | test -z "$as_dir" && as_dir=. | 
|  | 4856 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4857 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 4858 | ac_cv_prog_ac_ct_F77="$ac_prog" | 
|  | 4859 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4860 | break 2 | 
|  | 4861 | fi | 
|  | 4862 | done | 
|  | 4863 | done | 
|  | 4864 |  | 
|  | 4865 | fi | 
|  | 4866 | fi | 
|  | 4867 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 | 
|  | 4868 | if test -n "$ac_ct_F77"; then | 
|  | 4869 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 | 
|  | 4870 | echo "${ECHO_T}$ac_ct_F77" >&6 | 
|  | 4871 | else | 
|  | 4872 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 4873 | echo "${ECHO_T}no" >&6 | 
|  | 4874 | fi | 
|  | 4875 |  | 
|  | 4876 | test -n "$ac_ct_F77" && break | 
|  | 4877 | done | 
|  | 4878 |  | 
|  | 4879 | F77=$ac_ct_F77 | 
|  | 4880 | fi | 
|  | 4881 |  | 
|  | 4882 |  | 
|  | 4883 | # Provide some information about the compiler. | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 4884 | echo "$as_me:4884:" \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4885 | "checking for Fortran 77 compiler version" >&5 | 
|  | 4886 | ac_compiler=`set X $ac_compile; echo $2` | 
|  | 4887 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | 
|  | 4888 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | 
|  | 4889 | ac_status=$? | 
|  | 4890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4891 | (exit $ac_status); } | 
|  | 4892 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | 
|  | 4893 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | 
|  | 4894 | ac_status=$? | 
|  | 4895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4896 | (exit $ac_status); } | 
|  | 4897 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | 
|  | 4898 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | 
|  | 4899 | ac_status=$? | 
|  | 4900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4901 | (exit $ac_status); } | 
|  | 4902 |  | 
|  | 4903 | # If we don't use `.F' as extension, the preprocessor is not run on the | 
|  | 4904 | # input file. | 
|  | 4905 | ac_save_ext=$ac_ext | 
|  | 4906 | ac_ext=F | 
|  | 4907 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 | 
|  | 4908 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 | 
|  | 4909 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then | 
|  | 4910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4911 | else | 
|  | 4912 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4913 | program main | 
|  | 4914 | #ifndef __GNUC__ | 
|  | 4915 | choke me | 
|  | 4916 | #endif | 
|  | 4917 |  | 
|  | 4918 | end | 
|  | 4919 | _ACEOF | 
|  | 4920 | rm -f conftest.$ac_objext | 
|  | 4921 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 4922 | (eval $ac_compile) 2>&5 | 
|  | 4923 | ac_status=$? | 
|  | 4924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4925 | (exit $ac_status); } && | 
|  | 4926 | { ac_try='test -s conftest.$ac_objext' | 
|  | 4927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 4928 | (eval $ac_try) 2>&5 | 
|  | 4929 | ac_status=$? | 
|  | 4930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4931 | (exit $ac_status); }; }; then | 
|  | 4932 | ac_compiler_gnu=yes | 
|  | 4933 | else | 
|  | 4934 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4935 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4936 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4937 | ac_compiler_gnu=no | 
|  | 4938 | fi | 
|  | 4939 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 4940 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu | 
|  | 4941 |  | 
|  | 4942 | fi | 
|  | 4943 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 | 
|  | 4944 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 | 
|  | 4945 | ac_ext=$ac_save_ext | 
|  | 4946 | G77=`test $ac_compiler_gnu = yes && echo yes` | 
|  | 4947 | ac_test_FFLAGS=${FFLAGS+set} | 
|  | 4948 | ac_save_FFLAGS=$FFLAGS | 
|  | 4949 | FFLAGS= | 
|  | 4950 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 | 
|  | 4951 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 | 
|  | 4952 | if test "${ac_cv_prog_f77_g+set}" = set; then | 
|  | 4953 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4954 | else | 
|  | 4955 | FFLAGS=-g | 
|  | 4956 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4957 | program main | 
|  | 4958 |  | 
|  | 4959 | end | 
|  | 4960 | _ACEOF | 
|  | 4961 | rm -f conftest.$ac_objext | 
|  | 4962 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 4963 | (eval $ac_compile) 2>&5 | 
|  | 4964 | ac_status=$? | 
|  | 4965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4966 | (exit $ac_status); } && | 
|  | 4967 | { ac_try='test -s conftest.$ac_objext' | 
|  | 4968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 4969 | (eval $ac_try) 2>&5 | 
|  | 4970 | ac_status=$? | 
|  | 4971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4972 | (exit $ac_status); }; }; then | 
|  | 4973 | ac_cv_prog_f77_g=yes | 
|  | 4974 | else | 
|  | 4975 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4976 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4977 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4978 | ac_cv_prog_f77_g=no | 
|  | 4979 | fi | 
|  | 4980 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 4981 |  | 
|  | 4982 | fi | 
|  | 4983 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 | 
|  | 4984 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 | 
|  | 4985 | if test "$ac_test_FFLAGS" = set; then | 
|  | 4986 | FFLAGS=$ac_save_FFLAGS | 
|  | 4987 | elif test $ac_cv_prog_f77_g = yes; then | 
|  | 4988 | if test "$G77" = yes; then | 
|  | 4989 | FFLAGS="-g -O2" | 
|  | 4990 | else | 
|  | 4991 | FFLAGS="-g" | 
|  | 4992 | fi | 
|  | 4993 | else | 
|  | 4994 | if test "$G77" = yes; then | 
|  | 4995 | FFLAGS="-O2" | 
|  | 4996 | else | 
|  | 4997 | FFLAGS= | 
|  | 4998 | fi | 
|  | 4999 | fi | 
|  | 5000 | ac_ext=c | 
|  | 5001 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 5002 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 5003 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 5004 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 5005 |  | 
|  | 5006 |  | 
|  | 5007 |  | 
|  | 5008 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | 
|  | 5009 |  | 
|  | 5010 | # find the maximum length of command line arguments | 
|  | 5011 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | 
|  | 5012 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | 
|  | 5013 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | 
|  | 5014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5015 | else | 
|  | 5016 | i=0 | 
|  | 5017 | testring="ABCD" | 
|  | 5018 |  | 
|  | 5019 | case $build_os in | 
|  | 5020 | msdosdjgpp*) | 
|  | 5021 | # On DJGPP, this test can blow up pretty badly due to problems in libc | 
|  | 5022 | # (any single argument exceeding 2000 bytes causes a buffer overrun | 
|  | 5023 | # during glob expansion).  Even if it were fixed, the result of this | 
|  | 5024 | # check would be larger than it should be. | 
|  | 5025 | lt_cv_sys_max_cmd_len=12288;    # 12K is about right | 
|  | 5026 | ;; | 
|  | 5027 |  | 
|  | 5028 | gnu*) | 
|  | 5029 | # Under GNU Hurd, this test is not required because there is | 
|  | 5030 | # no limit to the length of command line arguments. | 
|  | 5031 | # Libtool will interpret -1 as no limit whatsoever | 
|  | 5032 | lt_cv_sys_max_cmd_len=-1; | 
|  | 5033 | ;; | 
|  | 5034 |  | 
|  | 5035 | cygwin* | mingw*) | 
|  | 5036 | # On Win9x/ME, this test blows up -- it succeeds, but takes | 
|  | 5037 | # about 5 minutes as the teststring grows exponentially. | 
|  | 5038 | # Worse, since 9x/ME are not pre-emptively multitasking, | 
|  | 5039 | # you end up with a "frozen" computer, even though with patience | 
|  | 5040 | # the test eventually succeeds (with a max line length of 256k). | 
|  | 5041 | # Instead, let's just punt: use the minimum linelength reported by | 
|  | 5042 | # all of the supported platforms: 8192 (on NT/2K/XP). | 
|  | 5043 | lt_cv_sys_max_cmd_len=8192; | 
|  | 5044 | ;; | 
|  | 5045 |  | 
|  | 5046 | *) | 
|  | 5047 | # If test is not a shell built-in, we'll probably end up computing a | 
|  | 5048 | # maximum length that is only half of the actual maximum length, but | 
|  | 5049 | # we can't tell. | 
|  | 5050 | while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ | 
|  | 5051 | = "XX$testring") >/dev/null 2>&1 && | 
|  | 5052 | new_result=`expr "X$testring" : ".*" 2>&1` && | 
|  | 5053 | lt_cv_sys_max_cmd_len=$new_result && | 
|  | 5054 | test $i != 17 # 1/2 MB should be enough | 
|  | 5055 | do | 
|  | 5056 | i=`expr $i + 1` | 
|  | 5057 | testring=$testring$testring | 
|  | 5058 | done | 
|  | 5059 | testring= | 
|  | 5060 | # Add a significant safety factor because C++ compilers can tack on massive | 
|  | 5061 | # amounts of additional arguments before passing them to the linker. | 
|  | 5062 | # It appears as though 1/2 is a usable value. | 
|  | 5063 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | 
|  | 5064 | ;; | 
|  | 5065 | esac | 
|  | 5066 |  | 
|  | 5067 | fi | 
|  | 5068 |  | 
|  | 5069 | if test -n $lt_cv_sys_max_cmd_len ; then | 
|  | 5070 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | 
|  | 5071 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | 
|  | 5072 | else | 
|  | 5073 | echo "$as_me:$LINENO: result: none" >&5 | 
|  | 5074 | echo "${ECHO_T}none" >&6 | 
|  | 5075 | fi | 
|  | 5076 |  | 
|  | 5077 |  | 
|  | 5078 |  | 
|  | 5079 |  | 
|  | 5080 | # Check for command to grab the raw symbol name followed by C symbol from nm. | 
|  | 5081 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | 
|  | 5082 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | 
|  | 5083 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | 
|  | 5084 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5085 | else | 
|  | 5086 |  | 
|  | 5087 | # These are sane defaults that work on at least a few old systems. | 
|  | 5088 | # [They come from Ultrix.  What could be older than Ultrix?!! ;)] | 
|  | 5089 |  | 
|  | 5090 | # Character class describing NM global symbol codes. | 
|  | 5091 | symcode='[BCDEGRST]' | 
|  | 5092 |  | 
|  | 5093 | # Regexp to match symbols that can be accessed directly from C. | 
|  | 5094 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | 
|  | 5095 |  | 
|  | 5096 | # Transform the above into a raw symbol and a C symbol. | 
|  | 5097 | symxfrm='\1 \2\3 \3' | 
|  | 5098 |  | 
|  | 5099 | # Transform an extracted symbol line into a proper C declaration | 
|  | 5100 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | 
|  | 5101 |  | 
|  | 5102 | # Transform an extracted symbol line into symbol name and symbol address | 
|  | 5103 | 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'" | 
|  | 5104 |  | 
|  | 5105 | # Define system-specific variables. | 
|  | 5106 | case $host_os in | 
|  | 5107 | aix*) | 
|  | 5108 | symcode='[BCDT]' | 
|  | 5109 | ;; | 
|  | 5110 | cygwin* | mingw* | pw32*) | 
|  | 5111 | symcode='[ABCDGISTW]' | 
|  | 5112 | ;; | 
|  | 5113 | hpux*) # Its linker distinguishes data from code symbols | 
|  | 5114 | if test "$host_cpu" = ia64; then | 
|  | 5115 | symcode='[ABCDEGRST]' | 
|  | 5116 | fi | 
|  | 5117 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 
|  | 5118 | 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'" | 
|  | 5119 | ;; | 
|  | 5120 | irix* | nonstopux*) | 
|  | 5121 | symcode='[BCDEGRST]' | 
|  | 5122 | ;; | 
|  | 5123 | osf*) | 
|  | 5124 | symcode='[BCDEGQRST]' | 
|  | 5125 | ;; | 
|  | 5126 | solaris* | sysv5*) | 
|  | 5127 | symcode='[BDT]' | 
|  | 5128 | ;; | 
|  | 5129 | sysv4) | 
|  | 5130 | symcode='[DFNSTU]' | 
|  | 5131 | ;; | 
|  | 5132 | esac | 
|  | 5133 |  | 
|  | 5134 | # Handle CRLF in mingw tool chain | 
|  | 5135 | opt_cr= | 
|  | 5136 | case $build_os in | 
|  | 5137 | mingw*) | 
|  | 5138 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | 
|  | 5139 | ;; | 
|  | 5140 | esac | 
|  | 5141 |  | 
|  | 5142 | # If we're using GNU nm, then use its standard symbol codes. | 
|  | 5143 | case `$NM -V 2>&1` in | 
|  | 5144 | *GNU* | *'with BFD'*) | 
|  | 5145 | symcode='[ABCDGISTW]' ;; | 
|  | 5146 | esac | 
|  | 5147 |  | 
|  | 5148 | # Try without a prefix undercore, then with it. | 
|  | 5149 | for ac_symprfx in "" "_"; do | 
|  | 5150 |  | 
|  | 5151 | # Write the raw and C identifiers. | 
|  | 5152 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" | 
|  | 5153 |  | 
|  | 5154 | # Check to see that the pipe works correctly. | 
|  | 5155 | pipe_works=no | 
|  | 5156 |  | 
|  | 5157 | rm -f conftest* | 
|  | 5158 | cat > conftest.$ac_ext <<EOF | 
|  | 5159 | #ifdef __cplusplus | 
|  | 5160 | extern "C" { | 
|  | 5161 | #endif | 
|  | 5162 | char nm_test_var; | 
|  | 5163 | void nm_test_func(){} | 
|  | 5164 | #ifdef __cplusplus | 
|  | 5165 | } | 
|  | 5166 | #endif | 
|  | 5167 | int main(){nm_test_var='a';nm_test_func();return(0);} | 
|  | 5168 | EOF | 
|  | 5169 |  | 
|  | 5170 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 5171 | (eval $ac_compile) 2>&5 | 
|  | 5172 | ac_status=$? | 
|  | 5173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5174 | (exit $ac_status); }; then | 
|  | 5175 | # Now try to grab the symbols. | 
|  | 5176 | nlist=conftest.nm | 
|  | 5177 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | 
|  | 5178 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | 
|  | 5179 | ac_status=$? | 
|  | 5180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5181 | (exit $ac_status); } && test -s "$nlist"; then | 
|  | 5182 | # Try sorting and uniquifying the output. | 
|  | 5183 | if sort "$nlist" | uniq > "$nlist"T; then | 
|  | 5184 | mv -f "$nlist"T "$nlist" | 
|  | 5185 | else | 
|  | 5186 | rm -f "$nlist"T | 
|  | 5187 | fi | 
|  | 5188 |  | 
|  | 5189 | # Make sure that we snagged all the symbols we need. | 
|  | 5190 | if grep ' nm_test_var$' "$nlist" >/dev/null; then | 
|  | 5191 | if grep ' nm_test_func$' "$nlist" >/dev/null; then | 
|  | 5192 | cat <<EOF > conftest.$ac_ext | 
|  | 5193 | #ifdef __cplusplus | 
|  | 5194 | extern "C" { | 
|  | 5195 | #endif | 
|  | 5196 |  | 
|  | 5197 | EOF | 
|  | 5198 | # Now generate the symbol file. | 
|  | 5199 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | 
|  | 5200 |  | 
|  | 5201 | cat <<EOF >> conftest.$ac_ext | 
|  | 5202 | #if defined (__STDC__) && __STDC__ | 
|  | 5203 | # define lt_ptr_t void * | 
|  | 5204 | #else | 
|  | 5205 | # define lt_ptr_t char * | 
|  | 5206 | # define const | 
|  | 5207 | #endif | 
|  | 5208 |  | 
|  | 5209 | /* The mapping between symbol names and symbols. */ | 
|  | 5210 | const struct { | 
|  | 5211 | const char *name; | 
|  | 5212 | lt_ptr_t address; | 
|  | 5213 | } | 
|  | 5214 | lt_preloaded_symbols[] = | 
|  | 5215 | { | 
|  | 5216 | EOF | 
|  | 5217 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | 
|  | 5218 | cat <<\EOF >> conftest.$ac_ext | 
|  | 5219 | {0, (lt_ptr_t) 0} | 
|  | 5220 | }; | 
|  | 5221 |  | 
|  | 5222 | #ifdef __cplusplus | 
|  | 5223 | } | 
|  | 5224 | #endif | 
|  | 5225 | EOF | 
|  | 5226 | # Now try linking the two files. | 
|  | 5227 | mv conftest.$ac_objext conftstm.$ac_objext | 
|  | 5228 | lt_save_LIBS="$LIBS" | 
|  | 5229 | lt_save_CFLAGS="$CFLAGS" | 
|  | 5230 | LIBS="conftstm.$ac_objext" | 
|  | 5231 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | 
|  | 5232 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 5233 | (eval $ac_link) 2>&5 | 
|  | 5234 | ac_status=$? | 
|  | 5235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5236 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | 
|  | 5237 | pipe_works=yes | 
|  | 5238 | fi | 
|  | 5239 | LIBS="$lt_save_LIBS" | 
|  | 5240 | CFLAGS="$lt_save_CFLAGS" | 
|  | 5241 | else | 
|  | 5242 | echo "cannot find nm_test_func in $nlist" >&5 | 
|  | 5243 | fi | 
|  | 5244 | else | 
|  | 5245 | echo "cannot find nm_test_var in $nlist" >&5 | 
|  | 5246 | fi | 
|  | 5247 | else | 
|  | 5248 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | 
|  | 5249 | fi | 
|  | 5250 | else | 
|  | 5251 | echo "$progname: failed program was:" >&5 | 
|  | 5252 | cat conftest.$ac_ext >&5 | 
|  | 5253 | fi | 
|  | 5254 | rm -f conftest* conftst* | 
|  | 5255 |  | 
|  | 5256 | # Do not use the global_symbol_pipe unless it works. | 
|  | 5257 | if test "$pipe_works" = yes; then | 
|  | 5258 | break | 
|  | 5259 | else | 
|  | 5260 | lt_cv_sys_global_symbol_pipe= | 
|  | 5261 | fi | 
|  | 5262 | done | 
|  | 5263 |  | 
|  | 5264 | fi | 
|  | 5265 |  | 
|  | 5266 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | 
|  | 5267 | lt_cv_sys_global_symbol_to_cdecl= | 
|  | 5268 | fi | 
|  | 5269 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | 
|  | 5270 | echo "$as_me:$LINENO: result: failed" >&5 | 
|  | 5271 | echo "${ECHO_T}failed" >&6 | 
|  | 5272 | else | 
|  | 5273 | echo "$as_me:$LINENO: result: ok" >&5 | 
|  | 5274 | echo "${ECHO_T}ok" >&6 | 
|  | 5275 | fi | 
|  | 5276 |  | 
|  | 5277 | echo "$as_me:$LINENO: checking for objdir" >&5 | 
|  | 5278 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | 
|  | 5279 | if test "${lt_cv_objdir+set}" = set; then | 
|  | 5280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5281 | else | 
|  | 5282 | rm -f .libs 2>/dev/null | 
|  | 5283 | mkdir .libs 2>/dev/null | 
|  | 5284 | if test -d .libs; then | 
|  | 5285 | lt_cv_objdir=.libs | 
|  | 5286 | else | 
|  | 5287 | # MS-DOS does not allow filenames that begin with a dot. | 
|  | 5288 | lt_cv_objdir=_libs | 
|  | 5289 | fi | 
|  | 5290 | rmdir .libs 2>/dev/null | 
|  | 5291 | fi | 
|  | 5292 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | 
|  | 5293 | echo "${ECHO_T}$lt_cv_objdir" >&6 | 
|  | 5294 | objdir=$lt_cv_objdir | 
|  | 5295 |  | 
|  | 5296 |  | 
|  | 5297 |  | 
|  | 5298 |  | 
|  | 5299 |  | 
|  | 5300 | case $host_os in | 
|  | 5301 | aix3*) | 
|  | 5302 | # AIX sometimes has problems with the GCC collect2 program.  For some | 
|  | 5303 | # reason, if we set the COLLECT_NAMES environment variable, the problems | 
|  | 5304 | # vanish in a puff of smoke. | 
|  | 5305 | if test "X${COLLECT_NAMES+set}" != Xset; then | 
|  | 5306 | COLLECT_NAMES= | 
|  | 5307 | export COLLECT_NAMES | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5308 | fi | 
|  | 5309 | ;; | 
|  | 5310 | esac | 
|  | 5311 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5312 | # Sed substitution that helps us do robust quoting.  It backslashifies | 
|  | 5313 | # metacharacters that are still active within double-quoted strings. | 
|  | 5314 | Xsed='sed -e s/^X//' | 
|  | 5315 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | 
|  | 5316 |  | 
|  | 5317 | # Same as above, but do not quote variable references. | 
|  | 5318 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' | 
|  | 5319 |  | 
|  | 5320 | # Sed substitution to delay expansion of an escaped shell variable in a | 
|  | 5321 | # double_quote_subst'ed string. | 
|  | 5322 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | 
|  | 5323 |  | 
|  | 5324 | # Sed substitution to avoid accidental globbing in evaled expressions | 
|  | 5325 | no_glob_subst='s/\*/\\\*/g' | 
|  | 5326 |  | 
|  | 5327 | # Constants: | 
|  | 5328 | rm="rm -f" | 
|  | 5329 |  | 
|  | 5330 | # Global variables: | 
| John Criswell | 8d4221e | 2003-07-23 16:52:50 +0000 | [diff] [blame] | 5331 | default_ofile=mklib | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5332 | can_build_shared=yes | 
|  | 5333 |  | 
|  | 5334 | # All known linkers require a `.a' archive for static linking (except M$VC, | 
|  | 5335 | # which needs '.lib'). | 
|  | 5336 | libext=a | 
|  | 5337 | ltmain="$ac_aux_dir/ltmain.sh" | 
|  | 5338 | ofile="$default_ofile" | 
|  | 5339 | with_gnu_ld="$lt_cv_prog_gnu_ld" | 
|  | 5340 |  | 
|  | 5341 | if test -n "$ac_tool_prefix"; then | 
|  | 5342 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | 
|  | 5343 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | 
|  | 5344 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5345 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 5346 | if test "${ac_cv_prog_AR+set}" = set; then | 
|  | 5347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5348 | else | 
|  | 5349 | if test -n "$AR"; then | 
|  | 5350 | ac_cv_prog_AR="$AR" # Let the user override the test. | 
|  | 5351 | else | 
|  | 5352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5353 | for as_dir in $PATH | 
|  | 5354 | do | 
|  | 5355 | IFS=$as_save_IFS | 
|  | 5356 | test -z "$as_dir" && as_dir=. | 
|  | 5357 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5358 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 5359 | ac_cv_prog_AR="${ac_tool_prefix}ar" | 
|  | 5360 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5361 | break 2 | 
|  | 5362 | fi | 
|  | 5363 | done | 
|  | 5364 | done | 
|  | 5365 |  | 
|  | 5366 | fi | 
|  | 5367 | fi | 
|  | 5368 | AR=$ac_cv_prog_AR | 
|  | 5369 | if test -n "$AR"; then | 
|  | 5370 | echo "$as_me:$LINENO: result: $AR" >&5 | 
|  | 5371 | echo "${ECHO_T}$AR" >&6 | 
|  | 5372 | else | 
|  | 5373 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5374 | echo "${ECHO_T}no" >&6 | 
|  | 5375 | fi | 
|  | 5376 |  | 
|  | 5377 | fi | 
|  | 5378 | if test -z "$ac_cv_prog_AR"; then | 
|  | 5379 | ac_ct_AR=$AR | 
|  | 5380 | # Extract the first word of "ar", so it can be a program name with args. | 
|  | 5381 | set dummy ar; ac_word=$2 | 
|  | 5382 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5383 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 5384 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | 
|  | 5385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5386 | else | 
|  | 5387 | if test -n "$ac_ct_AR"; then | 
|  | 5388 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | 
|  | 5389 | else | 
|  | 5390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5391 | for as_dir in $PATH | 
|  | 5392 | do | 
|  | 5393 | IFS=$as_save_IFS | 
|  | 5394 | test -z "$as_dir" && as_dir=. | 
|  | 5395 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5396 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 5397 | ac_cv_prog_ac_ct_AR="ar" | 
|  | 5398 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5399 | break 2 | 
|  | 5400 | fi | 
|  | 5401 | done | 
|  | 5402 | done | 
|  | 5403 |  | 
|  | 5404 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" | 
|  | 5405 | fi | 
|  | 5406 | fi | 
|  | 5407 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | 
|  | 5408 | if test -n "$ac_ct_AR"; then | 
|  | 5409 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | 
|  | 5410 | echo "${ECHO_T}$ac_ct_AR" >&6 | 
|  | 5411 | else | 
|  | 5412 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5413 | echo "${ECHO_T}no" >&6 | 
|  | 5414 | fi | 
|  | 5415 |  | 
|  | 5416 | AR=$ac_ct_AR | 
|  | 5417 | else | 
|  | 5418 | AR="$ac_cv_prog_AR" | 
|  | 5419 | fi | 
|  | 5420 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5421 | if test -n "$ac_tool_prefix"; then | 
|  | 5422 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
|  | 5423 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
|  | 5424 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5425 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 5426 | if test "${ac_cv_prog_RANLIB+set}" = set; then | 
|  | 5427 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5428 | else | 
|  | 5429 | if test -n "$RANLIB"; then | 
|  | 5430 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
|  | 5431 | else | 
|  | 5432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5433 | for as_dir in $PATH | 
|  | 5434 | do | 
|  | 5435 | IFS=$as_save_IFS | 
|  | 5436 | test -z "$as_dir" && as_dir=. | 
|  | 5437 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5438 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 5439 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
|  | 5440 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5441 | break 2 | 
|  | 5442 | fi | 
|  | 5443 | done | 
|  | 5444 | done | 
|  | 5445 |  | 
|  | 5446 | fi | 
|  | 5447 | fi | 
|  | 5448 | RANLIB=$ac_cv_prog_RANLIB | 
|  | 5449 | if test -n "$RANLIB"; then | 
|  | 5450 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | 
|  | 5451 | echo "${ECHO_T}$RANLIB" >&6 | 
|  | 5452 | else | 
|  | 5453 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5454 | echo "${ECHO_T}no" >&6 | 
|  | 5455 | fi | 
|  | 5456 |  | 
|  | 5457 | fi | 
|  | 5458 | if test -z "$ac_cv_prog_RANLIB"; then | 
|  | 5459 | ac_ct_RANLIB=$RANLIB | 
|  | 5460 | # Extract the first word of "ranlib", so it can be a program name with args. | 
|  | 5461 | set dummy ranlib; ac_word=$2 | 
|  | 5462 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5463 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 5464 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | 
|  | 5465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5466 | else | 
|  | 5467 | if test -n "$ac_ct_RANLIB"; then | 
|  | 5468 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
|  | 5469 | else | 
|  | 5470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5471 | for as_dir in $PATH | 
|  | 5472 | do | 
|  | 5473 | IFS=$as_save_IFS | 
|  | 5474 | test -z "$as_dir" && as_dir=. | 
|  | 5475 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5476 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 5477 | ac_cv_prog_ac_ct_RANLIB="ranlib" | 
|  | 5478 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5479 | break 2 | 
|  | 5480 | fi | 
|  | 5481 | done | 
|  | 5482 | done | 
|  | 5483 |  | 
|  | 5484 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | 
|  | 5485 | fi | 
|  | 5486 | fi | 
|  | 5487 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
|  | 5488 | if test -n "$ac_ct_RANLIB"; then | 
|  | 5489 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | 
|  | 5490 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | 
|  | 5491 | else | 
|  | 5492 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5493 | echo "${ECHO_T}no" >&6 | 
|  | 5494 | fi | 
|  | 5495 |  | 
|  | 5496 | RANLIB=$ac_ct_RANLIB | 
|  | 5497 | else | 
|  | 5498 | RANLIB="$ac_cv_prog_RANLIB" | 
|  | 5499 | fi | 
|  | 5500 |  | 
|  | 5501 | if test -n "$ac_tool_prefix"; then | 
|  | 5502 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | 
|  | 5503 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | 
|  | 5504 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5505 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 5506 | if test "${ac_cv_prog_STRIP+set}" = set; then | 
|  | 5507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5508 | else | 
|  | 5509 | if test -n "$STRIP"; then | 
|  | 5510 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | 
|  | 5511 | else | 
|  | 5512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5513 | for as_dir in $PATH | 
|  | 5514 | do | 
|  | 5515 | IFS=$as_save_IFS | 
|  | 5516 | test -z "$as_dir" && as_dir=. | 
|  | 5517 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5518 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 5519 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | 
|  | 5520 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5521 | break 2 | 
|  | 5522 | fi | 
|  | 5523 | done | 
|  | 5524 | done | 
|  | 5525 |  | 
|  | 5526 | fi | 
|  | 5527 | fi | 
|  | 5528 | STRIP=$ac_cv_prog_STRIP | 
|  | 5529 | if test -n "$STRIP"; then | 
|  | 5530 | echo "$as_me:$LINENO: result: $STRIP" >&5 | 
|  | 5531 | echo "${ECHO_T}$STRIP" >&6 | 
|  | 5532 | else | 
|  | 5533 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5534 | echo "${ECHO_T}no" >&6 | 
|  | 5535 | fi | 
|  | 5536 |  | 
|  | 5537 | fi | 
|  | 5538 | if test -z "$ac_cv_prog_STRIP"; then | 
|  | 5539 | ac_ct_STRIP=$STRIP | 
|  | 5540 | # Extract the first word of "strip", so it can be a program name with args. | 
|  | 5541 | set dummy strip; ac_word=$2 | 
|  | 5542 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5543 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 5544 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | 
|  | 5545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5546 | else | 
|  | 5547 | if test -n "$ac_ct_STRIP"; then | 
|  | 5548 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | 
|  | 5549 | else | 
|  | 5550 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5551 | for as_dir in $PATH | 
|  | 5552 | do | 
|  | 5553 | IFS=$as_save_IFS | 
|  | 5554 | test -z "$as_dir" && as_dir=. | 
|  | 5555 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5556 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 5557 | ac_cv_prog_ac_ct_STRIP="strip" | 
|  | 5558 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5559 | break 2 | 
|  | 5560 | fi | 
|  | 5561 | done | 
|  | 5562 | done | 
|  | 5563 |  | 
|  | 5564 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | 
|  | 5565 | fi | 
|  | 5566 | fi | 
|  | 5567 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | 
|  | 5568 | if test -n "$ac_ct_STRIP"; then | 
|  | 5569 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | 
|  | 5570 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | 
|  | 5571 | else | 
|  | 5572 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5573 | echo "${ECHO_T}no" >&6 | 
|  | 5574 | fi | 
|  | 5575 |  | 
|  | 5576 | STRIP=$ac_ct_STRIP | 
|  | 5577 | else | 
|  | 5578 | STRIP="$ac_cv_prog_STRIP" | 
|  | 5579 | fi | 
|  | 5580 |  | 
|  | 5581 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5582 | old_CC="$CC" | 
|  | 5583 | old_CFLAGS="$CFLAGS" | 
|  | 5584 |  | 
|  | 5585 | # Set sane defaults for various variables | 
|  | 5586 | test -z "$AR" && AR=ar | 
|  | 5587 | test -z "$AR_FLAGS" && AR_FLAGS=cru | 
|  | 5588 | test -z "$AS" && AS=as | 
|  | 5589 | test -z "$CC" && CC=cc | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5590 | test -z "$LTCC" && LTCC=$CC | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5591 | test -z "$DLLTOOL" && DLLTOOL=dlltool | 
|  | 5592 | test -z "$LD" && LD=ld | 
|  | 5593 | test -z "$LN_S" && LN_S="ln -s" | 
|  | 5594 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | 
|  | 5595 | test -z "$NM" && NM=nm | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5596 | test -z "$SED" && SED=sed | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5597 | test -z "$OBJDUMP" && OBJDUMP=objdump | 
|  | 5598 | test -z "$RANLIB" && RANLIB=: | 
|  | 5599 | test -z "$STRIP" && STRIP=: | 
|  | 5600 | test -z "$ac_objext" && ac_objext=o | 
|  | 5601 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5602 | # Determine commands to create old-style static archives. | 
|  | 5603 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | 
|  | 5604 | old_postinstall_cmds='chmod 644 $oldlib' | 
|  | 5605 | old_postuninstall_cmds= | 
|  | 5606 |  | 
|  | 5607 | if test -n "$RANLIB"; then | 
|  | 5608 | case $host_os in | 
|  | 5609 | openbsd*) | 
|  | 5610 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" | 
|  | 5611 | ;; | 
|  | 5612 | *) | 
|  | 5613 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" | 
|  | 5614 | ;; | 
|  | 5615 | esac | 
|  | 5616 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | 
|  | 5617 | fi | 
|  | 5618 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5619 | # Only perform the check for file, if the check method requires it | 
|  | 5620 | case $deplibs_check_method in | 
|  | 5621 | file_magic*) | 
|  | 5622 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | 
|  | 5623 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | 
|  | 5624 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | 
|  | 5625 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | 
|  | 5626 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5627 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5628 | case $MAGIC_CMD in | 
|  | 5629 | [\\/*] |  ?:[\\/]*) | 
|  | 5630 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | 
|  | 5631 | ;; | 
|  | 5632 | *) | 
|  | 5633 | lt_save_MAGIC_CMD="$MAGIC_CMD" | 
|  | 5634 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
|  | 5635 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | 
|  | 5636 | for ac_dir in $ac_dummy; do | 
|  | 5637 | IFS="$lt_save_ifs" | 
|  | 5638 | test -z "$ac_dir" && ac_dir=. | 
|  | 5639 | if test -f $ac_dir/${ac_tool_prefix}file; then | 
|  | 5640 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | 
|  | 5641 | if test -n "$file_magic_test_file"; then | 
|  | 5642 | case $deplibs_check_method in | 
|  | 5643 | "file_magic "*) | 
|  | 5644 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | 
|  | 5645 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|  | 5646 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 
|  | 5647 | $EGREP "$file_magic_regex" > /dev/null; then | 
|  | 5648 | : | 
|  | 5649 | else | 
|  | 5650 | cat <<EOF 1>&2 | 
|  | 5651 |  | 
|  | 5652 | *** Warning: the command libtool uses to detect shared libraries, | 
|  | 5653 | *** $file_magic_cmd, produces output that libtool cannot recognize. | 
|  | 5654 | *** The result is that libtool may fail to recognize shared libraries | 
|  | 5655 | *** as such.  This will affect the creation of libtool libraries that | 
|  | 5656 | *** depend on shared libraries, but programs linked with such libtool | 
|  | 5657 | *** libraries will work regardless of this problem.  Nevertheless, you | 
|  | 5658 | *** may want to report the problem to your system manager and/or to | 
|  | 5659 | *** bug-libtool@gnu.org | 
|  | 5660 |  | 
|  | 5661 | EOF | 
|  | 5662 | fi ;; | 
|  | 5663 | esac | 
|  | 5664 | fi | 
|  | 5665 | break | 
|  | 5666 | fi | 
|  | 5667 | done | 
|  | 5668 | IFS="$lt_save_ifs" | 
|  | 5669 | MAGIC_CMD="$lt_save_MAGIC_CMD" | 
|  | 5670 | ;; | 
|  | 5671 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5672 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5673 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5674 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|  | 5675 | if test -n "$MAGIC_CMD"; then | 
|  | 5676 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | 
|  | 5677 | echo "${ECHO_T}$MAGIC_CMD" >&6 | 
|  | 5678 | else | 
|  | 5679 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5680 | echo "${ECHO_T}no" >&6 | 
|  | 5681 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5682 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5683 | if test -z "$lt_cv_path_MAGIC_CMD"; then | 
|  | 5684 | if test -n "$ac_tool_prefix"; then | 
|  | 5685 | echo "$as_me:$LINENO: checking for file" >&5 | 
|  | 5686 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | 
|  | 5687 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | 
|  | 5688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5689 | else | 
|  | 5690 | case $MAGIC_CMD in | 
|  | 5691 | [\\/*] |  ?:[\\/]*) | 
|  | 5692 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | 
|  | 5693 | ;; | 
|  | 5694 | *) | 
|  | 5695 | lt_save_MAGIC_CMD="$MAGIC_CMD" | 
|  | 5696 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
|  | 5697 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | 
|  | 5698 | for ac_dir in $ac_dummy; do | 
|  | 5699 | IFS="$lt_save_ifs" | 
|  | 5700 | test -z "$ac_dir" && ac_dir=. | 
|  | 5701 | if test -f $ac_dir/file; then | 
|  | 5702 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | 
|  | 5703 | if test -n "$file_magic_test_file"; then | 
|  | 5704 | case $deplibs_check_method in | 
|  | 5705 | "file_magic "*) | 
|  | 5706 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | 
|  | 5707 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|  | 5708 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 
|  | 5709 | $EGREP "$file_magic_regex" > /dev/null; then | 
|  | 5710 | : | 
|  | 5711 | else | 
|  | 5712 | cat <<EOF 1>&2 | 
|  | 5713 |  | 
|  | 5714 | *** Warning: the command libtool uses to detect shared libraries, | 
|  | 5715 | *** $file_magic_cmd, produces output that libtool cannot recognize. | 
|  | 5716 | *** The result is that libtool may fail to recognize shared libraries | 
|  | 5717 | *** as such.  This will affect the creation of libtool libraries that | 
|  | 5718 | *** depend on shared libraries, but programs linked with such libtool | 
|  | 5719 | *** libraries will work regardless of this problem.  Nevertheless, you | 
|  | 5720 | *** may want to report the problem to your system manager and/or to | 
|  | 5721 | *** bug-libtool@gnu.org | 
|  | 5722 |  | 
|  | 5723 | EOF | 
|  | 5724 | fi ;; | 
|  | 5725 | esac | 
|  | 5726 | fi | 
|  | 5727 | break | 
|  | 5728 | fi | 
|  | 5729 | done | 
|  | 5730 | IFS="$lt_save_ifs" | 
|  | 5731 | MAGIC_CMD="$lt_save_MAGIC_CMD" | 
|  | 5732 | ;; | 
|  | 5733 | esac | 
|  | 5734 | fi | 
|  | 5735 |  | 
|  | 5736 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|  | 5737 | if test -n "$MAGIC_CMD"; then | 
|  | 5738 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | 
|  | 5739 | echo "${ECHO_T}$MAGIC_CMD" >&6 | 
|  | 5740 | else | 
|  | 5741 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5742 | echo "${ECHO_T}no" >&6 | 
|  | 5743 | fi | 
|  | 5744 |  | 
|  | 5745 | else | 
|  | 5746 | MAGIC_CMD=: | 
|  | 5747 | fi | 
|  | 5748 | fi | 
|  | 5749 |  | 
|  | 5750 | fi | 
|  | 5751 | ;; | 
|  | 5752 | esac | 
|  | 5753 |  | 
|  | 5754 | enable_dlopen=no | 
|  | 5755 | enable_win32_dll=no | 
|  | 5756 |  | 
|  | 5757 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | 
|  | 5758 | if test "${enable_libtool_lock+set}" = set; then | 
|  | 5759 | enableval="$enable_libtool_lock" | 
|  | 5760 |  | 
|  | 5761 | fi; | 
|  | 5762 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | 
|  | 5763 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5764 |  | 
|  | 5765 | # Check whether --with-pic or --without-pic was given. | 
|  | 5766 | if test "${with_pic+set}" = set; then | 
|  | 5767 | withval="$with_pic" | 
|  | 5768 | pic_mode="$withval" | 
|  | 5769 | else | 
|  | 5770 | pic_mode=default | 
|  | 5771 | fi; | 
|  | 5772 | test -z "$pic_mode" && pic_mode=default | 
|  | 5773 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5774 | # Use C for the default configuration in the libtool script | 
|  | 5775 | tagname= | 
|  | 5776 | lt_save_CC="$CC" | 
|  | 5777 | ac_ext=c | 
|  | 5778 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 5779 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 5780 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 5781 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 5782 |  | 
|  | 5783 |  | 
|  | 5784 | # Source file extension for C test sources. | 
|  | 5785 | ac_ext=c | 
|  | 5786 |  | 
|  | 5787 | # Object file extension for compiled C test sources. | 
|  | 5788 | objext=o | 
|  | 5789 | objext=$objext | 
|  | 5790 |  | 
|  | 5791 | # Code to be used in simple compile tests | 
|  | 5792 | lt_simple_compile_test_code="int some_variable = 0;\n" | 
|  | 5793 |  | 
|  | 5794 | # Code to be used in simple link tests | 
|  | 5795 | lt_simple_link_test_code='int main(){return(0);}\n' | 
|  | 5796 |  | 
|  | 5797 |  | 
|  | 5798 | # If no C compiler was specified, use CC. | 
|  | 5799 | LTCC=${LTCC-"$CC"} | 
|  | 5800 |  | 
|  | 5801 | # Allow CC to be a program name with arguments. | 
|  | 5802 | compiler=$CC | 
|  | 5803 |  | 
|  | 5804 |  | 
|  | 5805 | # | 
|  | 5806 | # Check for any special shared library compilation flags. | 
|  | 5807 | # | 
|  | 5808 | lt_prog_cc_shlib= | 
|  | 5809 | if test "$GCC" = no; then | 
|  | 5810 | case $host_os in | 
|  | 5811 | sco3.2v5*) | 
|  | 5812 | lt_prog_cc_shlib='-belf' | 
|  | 5813 | ;; | 
|  | 5814 | esac | 
|  | 5815 | fi | 
|  | 5816 | if test -n "$lt_prog_cc_shlib"; then | 
|  | 5817 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 | 
|  | 5818 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} | 
|  | 5819 | if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then : | 
|  | 5820 | else | 
|  | 5821 | { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 | 
|  | 5822 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} | 
|  | 5823 | lt_cv_prog_cc_can_build_shared=no | 
|  | 5824 | fi | 
|  | 5825 | fi | 
|  | 5826 |  | 
|  | 5827 |  | 
|  | 5828 | # | 
|  | 5829 | # Check to make sure the static flag actually works. | 
|  | 5830 | # | 
|  | 5831 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 | 
|  | 5832 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 | 
|  | 5833 | if test "${lt_prog_compiler_static_works+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5834 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5835 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5836 | lt_prog_compiler_static_works=no | 
|  | 5837 | save_LDFLAGS="$LDFLAGS" | 
|  | 5838 | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" | 
|  | 5839 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | 
|  | 5840 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | 
|  | 5841 | # The compiler can only warn and ignore the option if not recognized | 
|  | 5842 | # So say no if there are warnings | 
|  | 5843 | if test -s conftest.err; then | 
|  | 5844 | # Append any errors to the config.log. | 
|  | 5845 | cat conftest.err 1>&5 | 
|  | 5846 | else | 
|  | 5847 | lt_prog_compiler_static_works=yes | 
|  | 5848 | fi | 
|  | 5849 | fi | 
|  | 5850 | $rm conftest* | 
|  | 5851 | LDFLAGS="$save_LDFLAGS" | 
|  | 5852 |  | 
|  | 5853 | fi | 
|  | 5854 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | 
|  | 5855 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 | 
|  | 5856 |  | 
|  | 5857 | if test x"$lt_prog_compiler_static_works" = xyes; then | 
|  | 5858 | : | 
|  | 5859 | else | 
|  | 5860 | lt_prog_compiler_static= | 
|  | 5861 | fi | 
|  | 5862 |  | 
|  | 5863 |  | 
|  | 5864 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5865 |  | 
|  | 5866 | lt_prog_compiler_no_builtin_flag= | 
|  | 5867 |  | 
|  | 5868 | if test "$GCC" = yes; then | 
|  | 5869 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | 
|  | 5870 |  | 
|  | 5871 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | 
|  | 5872 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | 
|  | 5873 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | 
|  | 5874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5875 | else | 
|  | 5876 | lt_cv_prog_compiler_rtti_exceptions=no | 
|  | 5877 | ac_outfile=conftest.$ac_objext | 
|  | 5878 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 5879 | lt_compiler_flag="-fno-rtti -fno-exceptions" | 
|  | 5880 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 5881 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 5882 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 5883 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 5884 | # The option is referenced via a variable to avoid confusing sed. | 
|  | 5885 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 5886 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
|  | 5887 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 5888 | -e 's:$: $lt_compiler_flag:'` | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 5889 | (eval echo "\"\$as_me:5889: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5890 | (eval "$lt_compile" 2>conftest.err) | 
|  | 5891 | ac_status=$? | 
|  | 5892 | cat conftest.err >&5 | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 5893 | echo "$as_me:5893: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5894 | if (exit $ac_status) && test -s "$ac_outfile"; then | 
|  | 5895 | # The compiler can only warn and ignore the option if not recognized | 
|  | 5896 | # So say no if there are warnings | 
|  | 5897 | if test ! -s conftest.err; then | 
|  | 5898 | lt_cv_prog_compiler_rtti_exceptions=yes | 
|  | 5899 | fi | 
|  | 5900 | fi | 
|  | 5901 | $rm conftest* | 
|  | 5902 |  | 
|  | 5903 | fi | 
|  | 5904 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | 
|  | 5905 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | 
|  | 5906 |  | 
|  | 5907 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | 
|  | 5908 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | 
|  | 5909 | else | 
|  | 5910 | : | 
|  | 5911 | fi | 
|  | 5912 |  | 
|  | 5913 | fi | 
|  | 5914 |  | 
|  | 5915 | lt_prog_compiler_wl= | 
|  | 5916 | lt_prog_compiler_pic= | 
|  | 5917 | lt_prog_compiler_static= | 
|  | 5918 |  | 
|  | 5919 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 
|  | 5920 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5921 |  | 
|  | 5922 | if test "$GCC" = yes; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5923 | lt_prog_compiler_wl='-Wl,' | 
|  | 5924 | lt_prog_compiler_static='-static' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5925 |  | 
|  | 5926 | case $host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5927 | aix*) | 
|  | 5928 | # All AIX code is PIC. | 
|  | 5929 | if test "$host_cpu" = ia64; then | 
|  | 5930 | # AIX 5 now supports IA64 processor | 
|  | 5931 | lt_prog_compiler_static='-Bstatic' | 
|  | 5932 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5933 | ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5934 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5935 | amigaos*) | 
|  | 5936 | # FIXME: we need at least 68020 code to build shared libraries, but | 
|  | 5937 | # adding the `-m68020' flag to GCC prevents building anything better, | 
|  | 5938 | # like `-m68040'. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5939 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5940 | ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5941 |  | 
|  | 5942 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5943 | # PIC is the default for these OSes. | 
|  | 5944 | ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5945 |  | 
|  | 5946 | mingw* | pw32* | os2*) | 
|  | 5947 | # This hack is so that the source file can tell whether it is being | 
|  | 5948 | # built for inclusion in a dll (and should export symbols for example). | 
|  | 5949 | lt_prog_compiler_pic='-DDLL_EXPORT' | 
|  | 5950 | ;; | 
|  | 5951 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5952 | darwin* | rhapsody*) | 
|  | 5953 | # PIC is the default on this platform | 
|  | 5954 | # Common symbols not allowed in MH_DYLIB files | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5955 | lt_prog_compiler_pic='-fno-common' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5956 | ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5957 |  | 
|  | 5958 | msdosdjgpp*) | 
|  | 5959 | # Just because we use GCC doesn't mean we suddenly get shared libraries | 
|  | 5960 | # on systems that don't support them. | 
|  | 5961 | lt_prog_compiler_can_build_shared=no | 
|  | 5962 | enable_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5963 | ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5964 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5965 | sysv4*MP*) | 
|  | 5966 | if test -d /usr/nec; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5967 | lt_prog_compiler_pic=-Kconform_pic | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5968 | fi | 
|  | 5969 | ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5970 |  | 
|  | 5971 | hpux*) | 
|  | 5972 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
|  | 5973 | # not for PA HP-UX. | 
|  | 5974 | case "$host_cpu" in | 
|  | 5975 | hppa*64*|ia64*) | 
|  | 5976 | # +Z the default | 
|  | 5977 | ;; | 
|  | 5978 | *) | 
|  | 5979 | lt_prog_compiler_pic='-fPIC' | 
|  | 5980 | ;; | 
|  | 5981 | esac | 
|  | 5982 | ;; | 
|  | 5983 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5984 | *) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5985 | lt_prog_compiler_pic='-fPIC' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5986 | ;; | 
|  | 5987 | esac | 
|  | 5988 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5989 | # PORTME Check for flag to pass linker flags through the system compiler. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5990 | case $host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5991 | aix*) | 
|  | 5992 | lt_prog_compiler_wl='-Wl,' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5993 | if test "$host_cpu" = ia64; then | 
|  | 5994 | # AIX 5 now supports IA64 processor | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5995 | lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5996 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5997 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5998 | fi | 
|  | 5999 | ;; | 
|  | 6000 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6001 | mingw* | pw32* | os2*) | 
|  | 6002 | # This hack is so that the source file can tell whether it is being | 
|  | 6003 | # built for inclusion in a dll (and should export symbols for example). | 
|  | 6004 | lt_prog_compiler_pic='-DDLL_EXPORT' | 
|  | 6005 | ;; | 
|  | 6006 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6007 | hpux9* | hpux10* | hpux11*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6008 | lt_prog_compiler_wl='-Wl,' | 
|  | 6009 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
|  | 6010 | # not for PA HP-UX. | 
|  | 6011 | case "$host_cpu" in | 
|  | 6012 | hppa*64*|ia64*) | 
|  | 6013 | # +Z the default | 
|  | 6014 | ;; | 
|  | 6015 | *) | 
|  | 6016 | lt_prog_compiler_pic='+Z' | 
|  | 6017 | ;; | 
|  | 6018 | esac | 
|  | 6019 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | 
|  | 6020 | lt_prog_compiler_static='${wl}-a ${wl}archive' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6021 | ;; | 
|  | 6022 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6023 | irix5* | irix6* | nonstopux*) | 
|  | 6024 | lt_prog_compiler_wl='-Wl,' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6025 | # PIC (with -KPIC) is the default. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6026 | lt_prog_compiler_static='-non_shared' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6027 | ;; | 
|  | 6028 |  | 
|  | 6029 | newsos6) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6030 | lt_prog_compiler_pic='-KPIC' | 
|  | 6031 | lt_prog_compiler_static='-Bstatic' | 
|  | 6032 | ;; | 
|  | 6033 |  | 
|  | 6034 | linux*) | 
|  | 6035 | case $CC in | 
|  | 6036 | icc|ecc) | 
|  | 6037 | lt_prog_compiler_wl='-Wl,' | 
|  | 6038 | lt_prog_compiler_pic='-KPIC' | 
|  | 6039 | lt_prog_compiler_static='-static' | 
|  | 6040 | ;; | 
|  | 6041 | ccc) | 
|  | 6042 | lt_prog_compiler_wl='-Wl,' | 
|  | 6043 | # All Alpha code is PIC. | 
|  | 6044 | lt_prog_compiler_static='-non_shared' | 
|  | 6045 | ;; | 
|  | 6046 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6047 | ;; | 
|  | 6048 |  | 
|  | 6049 | osf3* | osf4* | osf5*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6050 | lt_prog_compiler_wl='-Wl,' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6051 | # All OSF/1 code is PIC. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6052 | lt_prog_compiler_static='-non_shared' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6053 | ;; | 
|  | 6054 |  | 
|  | 6055 | sco3.2v5*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6056 | lt_prog_compiler_pic='-Kpic' | 
|  | 6057 | lt_prog_compiler_static='-dn' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6058 | ;; | 
|  | 6059 |  | 
|  | 6060 | solaris*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6061 | lt_prog_compiler_wl='-Wl,' | 
|  | 6062 | lt_prog_compiler_pic='-KPIC' | 
|  | 6063 | lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6064 | ;; | 
|  | 6065 |  | 
|  | 6066 | sunos4*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6067 | lt_prog_compiler_wl='-Qoption ld ' | 
|  | 6068 | lt_prog_compiler_pic='-PIC' | 
|  | 6069 | lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6070 | ;; | 
|  | 6071 |  | 
|  | 6072 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6073 | lt_prog_compiler_wl='-Wl,' | 
|  | 6074 | lt_prog_compiler_pic='-KPIC' | 
|  | 6075 | lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6076 | ;; | 
|  | 6077 |  | 
|  | 6078 | sysv4*MP*) | 
|  | 6079 | if test -d /usr/nec ;then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6080 | lt_prog_compiler_pic='-Kconform_pic' | 
|  | 6081 | lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6082 | fi | 
|  | 6083 | ;; | 
|  | 6084 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6085 | uts4*) | 
|  | 6086 | lt_prog_compiler_pic='-pic' | 
|  | 6087 | lt_prog_compiler_static='-Bstatic' | 
|  | 6088 | ;; | 
|  | 6089 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6090 | *) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6091 | lt_prog_compiler_can_build_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6092 | ;; | 
|  | 6093 | esac | 
|  | 6094 | fi | 
|  | 6095 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6096 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | 
|  | 6097 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6098 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6099 | # | 
|  | 6100 | # Check to make sure the PIC flag actually works. | 
|  | 6101 | # | 
|  | 6102 | if test -n "$lt_prog_compiler_pic"; then | 
|  | 6103 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | 
|  | 6104 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 | 
|  | 6105 | if test "${lt_prog_compiler_pic_works+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6106 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 6107 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6108 | lt_prog_compiler_pic_works=no | 
|  | 6109 | ac_outfile=conftest.$ac_objext | 
|  | 6110 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 6111 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | 
|  | 6112 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 6113 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 6114 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 6115 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 6116 | # The option is referenced via a variable to avoid confusing sed. | 
|  | 6117 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 6118 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
|  | 6119 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 6120 | -e 's:$: $lt_compiler_flag:'` | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 6121 | (eval echo "\"\$as_me:6121: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6122 | (eval "$lt_compile" 2>conftest.err) | 
|  | 6123 | ac_status=$? | 
|  | 6124 | cat conftest.err >&5 | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 6125 | echo "$as_me:6125: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6126 | if (exit $ac_status) && test -s "$ac_outfile"; then | 
|  | 6127 | # The compiler can only warn and ignore the option if not recognized | 
|  | 6128 | # So say no if there are warnings | 
|  | 6129 | if test ! -s conftest.err; then | 
|  | 6130 | lt_prog_compiler_pic_works=yes | 
|  | 6131 | fi | 
|  | 6132 | fi | 
|  | 6133 | $rm conftest* | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6134 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6135 | fi | 
|  | 6136 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | 
|  | 6137 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6138 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6139 | if test x"$lt_prog_compiler_pic_works" = xyes; then | 
|  | 6140 | case $lt_prog_compiler_pic in | 
|  | 6141 | "" | " "*) ;; | 
|  | 6142 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | 
|  | 6143 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6144 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6145 | lt_prog_compiler_pic= | 
|  | 6146 | lt_prog_compiler_can_build_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6147 | fi | 
|  | 6148 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6149 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6150 | case "$host_os" in | 
|  | 6151 | # For platforms which do not support PIC, -DPIC is meaningless: | 
|  | 6152 | *djgpp*) | 
|  | 6153 | lt_prog_compiler_pic= | 
|  | 6154 | ;; | 
|  | 6155 | *) | 
|  | 6156 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | 
|  | 6157 | ;; | 
|  | 6158 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6159 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6160 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
|  | 6161 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6162 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 6164 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6165 | lt_cv_prog_compiler_c_o=no | 
|  | 6166 | $rm -r conftest 2>/dev/null | 
|  | 6167 | mkdir conftest | 
|  | 6168 | cd conftest | 
|  | 6169 | mkdir out | 
|  | 6170 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6171 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6172 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers | 
|  | 6173 | # that will create temporary files in the current directory regardless of | 
|  | 6174 | # the output directory.  Thus, making CWD read-only will cause this test | 
|  | 6175 | # to fail, enabling locking or at least warning the user not to do parallel | 
|  | 6176 | # builds. | 
|  | 6177 | chmod -w . | 
|  | 6178 |  | 
|  | 6179 | lt_compiler_flag="-o out/conftest2.$ac_objext" | 
|  | 6180 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 6181 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 6182 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 6183 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 6184 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 6185 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
|  | 6186 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 6187 | -e 's:$: $lt_compiler_flag:'` | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 6188 | (eval echo "\"\$as_me:6188: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6189 | (eval "$lt_compile" 2>out/conftest.err) | 
|  | 6190 | ac_status=$? | 
|  | 6191 | cat out/conftest.err >&5 | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 6192 | echo "$as_me:6192: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6193 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
|  | 6194 | then | 
|  | 6195 | # The compiler can only warn and ignore the option if not recognized | 
|  | 6196 | # So say no if there are warnings | 
|  | 6197 | if test ! -s out/conftest.err; then | 
|  | 6198 | lt_cv_prog_compiler_c_o=yes | 
|  | 6199 | fi | 
|  | 6200 | fi | 
|  | 6201 | chmod u+w . | 
|  | 6202 | $rm conftest* out/* | 
|  | 6203 | rmdir out | 
|  | 6204 | cd .. | 
|  | 6205 | rmdir conftest | 
|  | 6206 | $rm conftest* | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6207 |  | 
|  | 6208 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6209 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | 
|  | 6210 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6211 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6212 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6213 | hard_links="nottested" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6214 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6215 | # do not overwrite the value of need_locks provided by the user | 
|  | 6216 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | 
|  | 6217 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | 
|  | 6218 | hard_links=yes | 
|  | 6219 | $rm conftest* | 
|  | 6220 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
|  | 6221 | touch conftest.a | 
|  | 6222 | ln conftest.a conftest.b 2>&5 || hard_links=no | 
|  | 6223 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
|  | 6224 | echo "$as_me:$LINENO: result: $hard_links" >&5 | 
|  | 6225 | echo "${ECHO_T}$hard_links" >&6 | 
|  | 6226 | if test "$hard_links" = no; then | 
|  | 6227 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
|  | 6228 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
|  | 6229 | need_locks=warn | 
|  | 6230 | fi | 
|  | 6231 | else | 
|  | 6232 | need_locks=no | 
|  | 6233 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6234 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6235 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
|  | 6236 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
|  | 6237 |  | 
|  | 6238 | runpath_var= | 
|  | 6239 | allow_undefined_flag= | 
|  | 6240 | enable_shared_with_static_runtimes=no | 
|  | 6241 | archive_cmds= | 
|  | 6242 | archive_expsym_cmds= | 
|  | 6243 | old_archive_From_new_cmds= | 
|  | 6244 | old_archive_from_expsyms_cmds= | 
|  | 6245 | export_dynamic_flag_spec= | 
|  | 6246 | whole_archive_flag_spec= | 
|  | 6247 | thread_safe_flag_spec= | 
|  | 6248 | hardcode_libdir_flag_spec= | 
|  | 6249 | hardcode_libdir_flag_spec_ld= | 
|  | 6250 | hardcode_libdir_separator= | 
|  | 6251 | hardcode_direct=no | 
|  | 6252 | hardcode_minus_L=no | 
|  | 6253 | hardcode_shlibpath_var=unsupported | 
|  | 6254 | link_all_deplibs=unknown | 
|  | 6255 | hardcode_automatic=no | 
|  | 6256 | module_cmds= | 
|  | 6257 | module_expsym_cmds= | 
|  | 6258 | always_export_symbols=no | 
|  | 6259 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
|  | 6260 | # include_expsyms should be a list of space-separated symbols to be *always* | 
|  | 6261 | # included in the symbol list | 
|  | 6262 | include_expsyms= | 
|  | 6263 | # exclude_expsyms can be an extended regexp of symbols to exclude | 
|  | 6264 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | 
|  | 6265 | # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | 
|  | 6266 | # as well as any symbol that contains `d'. | 
|  | 6267 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | 
|  | 6268 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | 
|  | 6269 | # platforms (ab)use it in PIC code, but their linkers get confused if | 
|  | 6270 | # the symbol is explicitly referenced.  Since portable code cannot | 
|  | 6271 | # rely on this symbol name, it's probably fine to never include it in | 
|  | 6272 | # preloaded symbol tables. | 
|  | 6273 | extract_expsyms_cmds= | 
|  | 6274 |  | 
|  | 6275 | case $host_os in | 
|  | 6276 | cygwin* | mingw* | pw32*) | 
|  | 6277 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | 
|  | 6278 | # When not using gcc, we currently assume that we are using | 
|  | 6279 | # Microsoft Visual C++. | 
|  | 6280 | if test "$GCC" != yes; then | 
|  | 6281 | with_gnu_ld=no | 
|  | 6282 | fi | 
|  | 6283 | ;; | 
|  | 6284 | openbsd*) | 
|  | 6285 | with_gnu_ld=no | 
|  | 6286 | ;; | 
|  | 6287 | esac | 
|  | 6288 |  | 
|  | 6289 | ld_shlibs=yes | 
|  | 6290 | if test "$with_gnu_ld" = yes; then | 
|  | 6291 | # If archive_cmds runs LD, not CC, wlarc should be empty | 
|  | 6292 | wlarc='${wl}' | 
|  | 6293 |  | 
|  | 6294 | # See if GNU ld supports shared libraries. | 
|  | 6295 | case $host_os in | 
|  | 6296 | aix3* | aix4* | aix5*) | 
|  | 6297 | # On AIX/PPC, the GNU linker is very broken | 
|  | 6298 | if test "$host_cpu" != ia64; then | 
|  | 6299 | ld_shlibs=no | 
|  | 6300 | cat <<EOF 1>&2 | 
|  | 6301 |  | 
|  | 6302 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | 
|  | 6303 | *** to be unable to reliably create shared libraries on AIX. | 
|  | 6304 | *** Therefore, libtool is disabling shared libraries support.  If you | 
|  | 6305 | *** really care for shared libraries, you may want to modify your PATH | 
|  | 6306 | *** so that a non-GNU linker is found, and then restart. | 
|  | 6307 |  | 
|  | 6308 | EOF | 
|  | 6309 | fi | 
|  | 6310 | ;; | 
|  | 6311 |  | 
|  | 6312 | amigaos*) | 
|  | 6313 | 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)' | 
|  | 6314 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 6315 | hardcode_minus_L=yes | 
|  | 6316 |  | 
|  | 6317 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | 
|  | 6318 | # that the semantics of dynamic libraries on AmigaOS, at least up | 
|  | 6319 | # to version 4, is to share data among multiple programs linked | 
|  | 6320 | # with the same dynamic library.  Since this doesn't match the | 
|  | 6321 | # behavior of shared libraries on other platforms, we can't use | 
|  | 6322 | # them. | 
|  | 6323 | ld_shlibs=no | 
|  | 6324 | ;; | 
|  | 6325 |  | 
|  | 6326 | beos*) | 
|  | 6327 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
|  | 6328 | allow_undefined_flag=unsupported | 
|  | 6329 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 
|  | 6330 | # support --undefined.  This deserves some investigation.  FIXME | 
|  | 6331 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 6332 | else | 
|  | 6333 | ld_shlibs=no | 
|  | 6334 | fi | 
|  | 6335 | ;; | 
|  | 6336 |  | 
|  | 6337 | cygwin* | mingw* | pw32*) | 
|  | 6338 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | 
|  | 6339 | # as there is no search path for DLLs. | 
|  | 6340 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 6341 | allow_undefined_flag=unsupported | 
|  | 6342 | always_export_symbols=no | 
|  | 6343 | enable_shared_with_static_runtimes=yes | 
|  | 6344 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 
|  | 6345 |  | 
|  | 6346 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 
|  | 6347 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 
|  | 6348 | # If the export-symbols file already is a .def file (1st line | 
|  | 6349 | # is EXPORTS), use it as is; otherwise, prepend... | 
|  | 6350 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
|  | 6351 | cp $export_symbols $output_objdir/$soname.def; | 
|  | 6352 | else | 
|  | 6353 | echo EXPORTS > $output_objdir/$soname.def; | 
|  | 6354 | cat $export_symbols >> $output_objdir/$soname.def; | 
|  | 6355 | fi~ | 
|  | 6356 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib' | 
|  | 6357 | else | 
|  | 6358 | ld_shlibs=no | 
|  | 6359 | fi | 
|  | 6360 | ;; | 
|  | 6361 |  | 
|  | 6362 | netbsd*) | 
|  | 6363 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
|  | 6364 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | 
|  | 6365 | wlarc= | 
|  | 6366 | else | 
|  | 6367 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 6368 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|  | 6369 | fi | 
|  | 6370 | ;; | 
|  | 6371 |  | 
|  | 6372 | solaris* | sysv5*) | 
|  | 6373 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | 
|  | 6374 | ld_shlibs=no | 
|  | 6375 | cat <<EOF 1>&2 | 
|  | 6376 |  | 
|  | 6377 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | 
|  | 6378 | *** create shared libraries on Solaris systems.  Therefore, libtool | 
|  | 6379 | *** is disabling shared libraries support.  We urge you to upgrade GNU | 
|  | 6380 | *** binutils to release 2.9.1 or newer.  Another option is to modify | 
|  | 6381 | *** your PATH or compiler configuration so that the native linker is | 
|  | 6382 | *** used, and then restart. | 
|  | 6383 |  | 
|  | 6384 | EOF | 
|  | 6385 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
|  | 6386 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 6387 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|  | 6388 | else | 
|  | 6389 | ld_shlibs=no | 
|  | 6390 | fi | 
|  | 6391 | ;; | 
|  | 6392 |  | 
|  | 6393 | sunos4*) | 
|  | 6394 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
|  | 6395 | wlarc= | 
|  | 6396 | hardcode_direct=yes | 
|  | 6397 | hardcode_shlibpath_var=no | 
|  | 6398 | ;; | 
|  | 6399 |  | 
|  | 6400 | *) | 
|  | 6401 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
|  | 6402 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 6403 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|  | 6404 | else | 
|  | 6405 | ld_shlibs=no | 
|  | 6406 | fi | 
|  | 6407 | ;; | 
|  | 6408 | esac | 
|  | 6409 |  | 
|  | 6410 | if test "$ld_shlibs" = yes; then | 
|  | 6411 | runpath_var=LD_RUN_PATH | 
|  | 6412 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | 
|  | 6413 | export_dynamic_flag_spec='${wl}--export-dynamic' | 
|  | 6414 | # ancient GNU ld didn't support --whole-archive et. al. | 
|  | 6415 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | 
|  | 6416 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
|  | 6417 | else | 
|  | 6418 | whole_archive_flag_spec= | 
|  | 6419 | fi | 
|  | 6420 | fi | 
|  | 6421 | else | 
|  | 6422 | # PORTME fill in a description of your system's linker (not GNU ld) | 
|  | 6423 | case $host_os in | 
|  | 6424 | aix3*) | 
|  | 6425 | allow_undefined_flag=unsupported | 
|  | 6426 | always_export_symbols=yes | 
|  | 6427 | 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' | 
|  | 6428 | # Note: this linker hardcodes the directories in LIBPATH if there | 
|  | 6429 | # are no directories specified by -L. | 
|  | 6430 | hardcode_minus_L=yes | 
|  | 6431 | if test "$GCC" = yes && test -z "$link_static_flag"; then | 
|  | 6432 | # Neither direct hardcoding nor static linking is supported with a | 
|  | 6433 | # broken collect2. | 
|  | 6434 | hardcode_direct=unsupported | 
|  | 6435 | fi | 
|  | 6436 | ;; | 
|  | 6437 |  | 
|  | 6438 | aix4* | aix5*) | 
|  | 6439 | if test "$host_cpu" = ia64; then | 
|  | 6440 | # On IA64, the linker does run time linking by default, so we don't | 
|  | 6441 | # have to do anything special. | 
|  | 6442 | aix_use_runtimelinking=no | 
|  | 6443 | exp_sym_flag='-Bexport' | 
|  | 6444 | no_entry_flag="" | 
|  | 6445 | else | 
|  | 6446 | # If we're using GNU nm, then we don't want the "-C" option. | 
|  | 6447 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | 
|  | 6448 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 
|  | 6449 | 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' | 
|  | 6450 | else | 
|  | 6451 | 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' | 
|  | 6452 | fi | 
|  | 6453 | aix_use_runtimelinking=no | 
|  | 6454 |  | 
|  | 6455 | # Test if we are trying to use run time linking or normal | 
|  | 6456 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
|  | 6457 | # need to do runtime linking. | 
|  | 6458 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 
|  | 6459 | for ld_flag in $LDFLAGS; do | 
|  | 6460 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 
|  | 6461 | aix_use_runtimelinking=yes | 
|  | 6462 | break | 
|  | 6463 | fi | 
|  | 6464 | done | 
|  | 6465 | esac | 
|  | 6466 |  | 
|  | 6467 | exp_sym_flag='-bexport' | 
|  | 6468 | no_entry_flag='-bnoentry' | 
|  | 6469 | fi | 
|  | 6470 |  | 
|  | 6471 | # When large executables or shared objects are built, AIX ld can | 
|  | 6472 | # have problems creating the table of contents.  If linking a library | 
|  | 6473 | # or program results in "error TOC overflow" add -mminimal-toc to | 
|  | 6474 | # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
|  | 6475 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
|  | 6476 |  | 
|  | 6477 | archive_cmds='' | 
|  | 6478 | hardcode_direct=yes | 
|  | 6479 | hardcode_libdir_separator=':' | 
|  | 6480 | link_all_deplibs=yes | 
|  | 6481 |  | 
|  | 6482 | if test "$GCC" = yes; then | 
|  | 6483 | case $host_os in aix4.012|aix4.012.*) | 
|  | 6484 | # We only want to do this on AIX 4.2 and lower, the check | 
|  | 6485 | # below for broken collect2 doesn't work under 4.3+ | 
|  | 6486 | collect2name=`${CC} -print-prog-name=collect2` | 
|  | 6487 | if test -f "$collect2name" && \ | 
|  | 6488 | strings "$collect2name" | grep resolve_lib_name >/dev/null | 
|  | 6489 | then | 
|  | 6490 | # We have reworked collect2 | 
|  | 6491 | hardcode_direct=yes | 
|  | 6492 | else | 
|  | 6493 | # We have old collect2 | 
|  | 6494 | hardcode_direct=unsupported | 
|  | 6495 | # It fails to find uninstalled libraries when the uninstalled | 
|  | 6496 | # path is not listed in the libpath.  Setting hardcode_minus_L | 
|  | 6497 | # to unsupported forces relinking | 
|  | 6498 | hardcode_minus_L=yes | 
|  | 6499 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 6500 | hardcode_libdir_separator= | 
|  | 6501 | fi | 
|  | 6502 | esac | 
|  | 6503 | shared_flag='-shared' | 
|  | 6504 | else | 
|  | 6505 | # not using gcc | 
|  | 6506 | if test "$host_cpu" = ia64; then | 
|  | 6507 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
|  | 6508 | # chokes on -Wl,-G. The following line is correct: | 
|  | 6509 | shared_flag='-G' | 
|  | 6510 | else | 
|  | 6511 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 6512 | shared_flag='${wl}-G' | 
|  | 6513 | else | 
|  | 6514 | shared_flag='${wl}-bM:SRE' | 
|  | 6515 | fi | 
|  | 6516 | fi | 
|  | 6517 | fi | 
|  | 6518 |  | 
|  | 6519 | # It seems that -bexpall does not export symbols beginning with | 
|  | 6520 | # underscore (_), so it is better to generate a list of symbols to export. | 
|  | 6521 | always_export_symbols=yes | 
|  | 6522 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 6523 | # Warning - without using the other runtime loading flags (-brtl), | 
|  | 6524 | # -berok will link without error, but may produce a broken library. | 
|  | 6525 | allow_undefined_flag='-berok' | 
|  | 6526 | # Determine the default libpath from the value encoded in an empty executable. | 
|  | 6527 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6528 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6529 | /* confdefs.h.  */ | 
|  | 6530 | _ACEOF | 
|  | 6531 | cat confdefs.h >>conftest.$ac_ext | 
|  | 6532 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 6533 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6534 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6535 | int | 
|  | 6536 | main () | 
|  | 6537 | { | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6538 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6539 | ; | 
|  | 6540 | return 0; | 
|  | 6541 | } | 
|  | 6542 | _ACEOF | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6543 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 6544 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 6545 | (eval $ac_link) 2>&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6546 | ac_status=$? | 
|  | 6547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 6548 | (exit $ac_status); } && | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6549 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 6551 | (eval $ac_try) 2>&5 | 
|  | 6552 | ac_status=$? | 
|  | 6553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 6554 | (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6555 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6556 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
|  | 6557 | }'` | 
|  | 6558 | # Check for a 64-bit object if we didn't find anything. | 
|  | 6559 | 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; } | 
|  | 6560 | }'`; fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6561 | else | 
|  | 6562 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6563 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 6564 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6565 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6566 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 6567 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6568 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6569 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | 
|  | 6570 | 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" | 
|  | 6571 | else | 
|  | 6572 | if test "$host_cpu" = ia64; then | 
|  | 6573 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | 
|  | 6574 | allow_undefined_flag="-z nodefs" | 
|  | 6575 | 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" | 
|  | 6576 | else | 
|  | 6577 | # Determine the default libpath from the value encoded in an empty executable. | 
|  | 6578 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 6579 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6580 | /* confdefs.h.  */ | 
|  | 6581 | _ACEOF | 
|  | 6582 | cat confdefs.h >>conftest.$ac_ext | 
|  | 6583 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 6584 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6585 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6586 | int | 
|  | 6587 | main () | 
|  | 6588 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6589 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6590 | ; | 
|  | 6591 | return 0; | 
|  | 6592 | } | 
|  | 6593 | _ACEOF | 
|  | 6594 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 6595 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 6596 | (eval $ac_link) 2>&5 | 
|  | 6597 | ac_status=$? | 
|  | 6598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 6599 | (exit $ac_status); } && | 
|  | 6600 | { ac_try='test -s conftest$ac_exeext' | 
|  | 6601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 6602 | (eval $ac_try) 2>&5 | 
|  | 6603 | ac_status=$? | 
|  | 6604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 6605 | (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6606 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6607 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
|  | 6608 | }'` | 
|  | 6609 | # Check for a 64-bit object if we didn't find anything. | 
|  | 6610 | 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; } | 
|  | 6611 | }'`; fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6612 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6613 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6614 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 6615 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6616 | fi | 
|  | 6617 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 6618 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6619 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6620 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | 
|  | 6621 | # Warning - without using the other run time loading flags, | 
|  | 6622 | # -berok will link without error, but may produce a broken library. | 
|  | 6623 | no_undefined_flag=' ${wl}-bernotok' | 
|  | 6624 | allow_undefined_flag=' ${wl}-berok' | 
|  | 6625 | # -bexpall does not export symbols beginning with underscore (_) | 
|  | 6626 | always_export_symbols=yes | 
|  | 6627 | # Exported symbols can be pulled into shared objects from archives | 
|  | 6628 | whole_archive_flag_spec=' ' | 
|  | 6629 | archive_cmds_need_lc=yes | 
|  | 6630 | # This is similar to how AIX traditionally builds it's shared libraries. | 
|  | 6631 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6632 | fi | 
|  | 6633 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6634 | ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6635 |  | 
|  | 6636 | amigaos*) | 
|  | 6637 | 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)' | 
|  | 6638 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 6639 | hardcode_minus_L=yes | 
|  | 6640 | # see comment about different semantics on the GNU ld section | 
|  | 6641 | ld_shlibs=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6642 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6643 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6644 | bsdi4*) | 
|  | 6645 | export_dynamic_flag_spec=-rdynamic | 
|  | 6646 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6647 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6648 | cygwin* | mingw* | pw32*) | 
|  | 6649 | # When not using gcc, we currently assume that we are using | 
|  | 6650 | # Microsoft Visual C++. | 
|  | 6651 | # hardcode_libdir_flag_spec is actually meaningless, as there is | 
|  | 6652 | # no search path for DLLs. | 
|  | 6653 | hardcode_libdir_flag_spec=' ' | 
|  | 6654 | allow_undefined_flag=unsupported | 
|  | 6655 | # Tell ltmain to make .lib files, not .a files. | 
|  | 6656 | libext=lib | 
|  | 6657 | # Tell ltmain to make .dll files, not .so files. | 
|  | 6658 | shrext=".dll" | 
|  | 6659 | # FIXME: Setting linknames here is a bad hack. | 
|  | 6660 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | 
|  | 6661 | # The linker will automatically build a .lib file if we build a DLL. | 
|  | 6662 | old_archive_From_new_cmds='true' | 
|  | 6663 | # FIXME: Should let the user specify the lib program. | 
|  | 6664 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' | 
|  | 6665 | fix_srcfile_path='`cygpath -w "$srcfile"`' | 
|  | 6666 | enable_shared_with_static_runtimes=yes | 
|  | 6667 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6668 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6669 | darwin* | rhapsody*) | 
|  | 6670 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then | 
|  | 6671 | archive_cmds_need_lc=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6672 | case "$host_os" in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6673 | rhapsody* | darwin1.[012]) | 
|  | 6674 | allow_undefined_flag='-undefined suppress' | 
|  | 6675 | ;; | 
|  | 6676 | *) # Darwin 1.3 on | 
|  | 6677 | test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6678 | ;; | 
|  | 6679 | esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6680 | # FIXME: Relying on posixy $() will cause problems for | 
|  | 6681 | #        cross-compilation, but unfortunately the echo tests do not | 
|  | 6682 | #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles | 
|  | 6683 | #	       `"' quotes if we put them in here... so don't! | 
|  | 6684 | lt_int_apple_cc_single_mod=no | 
|  | 6685 | output_verbose_link_cmd='echo' | 
|  | 6686 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then | 
|  | 6687 | lt_int_apple_cc_single_mod=yes | 
|  | 6688 | fi | 
|  | 6689 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | 
|  | 6690 | archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 
|  | 6691 | else | 
|  | 6692 | archive_cmds='$CC -r ${wl}-bind_at_load -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' | 
|  | 6693 | fi | 
|  | 6694 | module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' | 
|  | 6695 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
|  | 6696 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | 
|  | 6697 | archive_expsym_cmds='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}' | 
|  | 6698 | else | 
|  | 6699 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' | 
|  | 6700 | fi | 
|  | 6701 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
|  | 6702 | hardcode_direct=no | 
|  | 6703 | hardcode_automatic=yes | 
|  | 6704 | hardcode_shlibpath_var=unsupported | 
|  | 6705 | whole_archive_flag_spec='-all_load $convenience' | 
|  | 6706 | link_all_deplibs=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6707 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6708 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6709 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6710 | dgux*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6711 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6712 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 6713 | hardcode_shlibpath_var=no | 
|  | 6714 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6715 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6716 | freebsd1*) | 
|  | 6717 | ld_shlibs=no | 
|  | 6718 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6719 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6720 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 
|  | 6721 | # support.  Future versions do this automatically, but an explicit c++rt0.o | 
|  | 6722 | # does not break anything, and helps significantly (at the cost of a little | 
|  | 6723 | # extra space). | 
|  | 6724 | freebsd2.2*) | 
|  | 6725 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | 
|  | 6726 | hardcode_libdir_flag_spec='-R$libdir' | 
|  | 6727 | hardcode_direct=yes | 
|  | 6728 | hardcode_shlibpath_var=no | 
|  | 6729 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6730 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6731 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 
|  | 6732 | freebsd2*) | 
|  | 6733 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
|  | 6734 | hardcode_direct=yes | 
|  | 6735 | hardcode_minus_L=yes | 
|  | 6736 | hardcode_shlibpath_var=no | 
|  | 6737 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6738 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6739 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 
|  | 6740 | freebsd*) | 
|  | 6741 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 6742 | hardcode_libdir_flag_spec='-R$libdir' | 
|  | 6743 | hardcode_direct=yes | 
|  | 6744 | hardcode_shlibpath_var=no | 
|  | 6745 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6746 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6747 | hpux9*) | 
|  | 6748 | if test "$GCC" = yes; then | 
|  | 6749 | 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' | 
|  | 6750 | else | 
|  | 6751 | 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' | 
|  | 6752 | fi | 
|  | 6753 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 
|  | 6754 | hardcode_libdir_separator=: | 
|  | 6755 | hardcode_direct=yes | 
|  | 6756 |  | 
|  | 6757 | # hardcode_minus_L: Not really in the search PATH, | 
|  | 6758 | # but as the default location of the library. | 
|  | 6759 | hardcode_minus_L=yes | 
|  | 6760 | export_dynamic_flag_spec='${wl}-E' | 
|  | 6761 | ;; | 
|  | 6762 |  | 
|  | 6763 | hpux10* | hpux11*) | 
|  | 6764 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 
|  | 6765 | case "$host_cpu" in | 
|  | 6766 | hppa*64*|ia64*) | 
|  | 6767 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 6768 | ;; | 
|  | 6769 | *) | 
|  | 6770 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 6771 | ;; | 
|  | 6772 | esac | 
|  | 6773 | else | 
|  | 6774 | case "$host_cpu" in | 
|  | 6775 | hppa*64*|ia64*) | 
|  | 6776 | archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 6777 | ;; | 
|  | 6778 | *) | 
|  | 6779 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 
|  | 6780 | ;; | 
|  | 6781 | esac | 
|  | 6782 | fi | 
|  | 6783 | if test "$with_gnu_ld" = no; then | 
|  | 6784 | case "$host_cpu" in | 
|  | 6785 | hppa*64*) | 
|  | 6786 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 
|  | 6787 | hardcode_libdir_flag_spec_ld='+b $libdir' | 
|  | 6788 | hardcode_libdir_separator=: | 
|  | 6789 | hardcode_direct=no | 
|  | 6790 | hardcode_shlibpath_var=no | 
|  | 6791 | ;; | 
|  | 6792 | ia64*) | 
|  | 6793 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 6794 | hardcode_direct=no | 
|  | 6795 | hardcode_shlibpath_var=no | 
|  | 6796 |  | 
|  | 6797 | # hardcode_minus_L: Not really in the search PATH, | 
|  | 6798 | # but as the default location of the library. | 
|  | 6799 | hardcode_minus_L=yes | 
|  | 6800 | ;; | 
|  | 6801 | *) | 
|  | 6802 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 
|  | 6803 | hardcode_libdir_separator=: | 
|  | 6804 | hardcode_direct=yes | 
|  | 6805 | export_dynamic_flag_spec='${wl}-E' | 
|  | 6806 |  | 
|  | 6807 | # hardcode_minus_L: Not really in the search PATH, | 
|  | 6808 | # but as the default location of the library. | 
|  | 6809 | hardcode_minus_L=yes | 
|  | 6810 | ;; | 
|  | 6811 | esac | 
|  | 6812 | fi | 
|  | 6813 | ;; | 
|  | 6814 |  | 
|  | 6815 | irix5* | irix6* | nonstopux*) | 
|  | 6816 | if test "$GCC" = yes; then | 
|  | 6817 | 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' | 
|  | 6818 | else | 
|  | 6819 | 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' | 
|  | 6820 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | 
|  | 6821 | fi | 
|  | 6822 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
|  | 6823 | hardcode_libdir_separator=: | 
|  | 6824 | link_all_deplibs=yes | 
|  | 6825 | ;; | 
|  | 6826 |  | 
|  | 6827 | netbsd*) | 
|  | 6828 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
|  | 6829 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out | 
|  | 6830 | else | 
|  | 6831 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF | 
|  | 6832 | fi | 
|  | 6833 | hardcode_libdir_flag_spec='-R$libdir' | 
|  | 6834 | hardcode_direct=yes | 
|  | 6835 | hardcode_shlibpath_var=no | 
|  | 6836 | ;; | 
|  | 6837 |  | 
|  | 6838 | newsos6) | 
|  | 6839 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 6840 | hardcode_direct=yes | 
|  | 6841 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
|  | 6842 | hardcode_libdir_separator=: | 
|  | 6843 | hardcode_shlibpath_var=no | 
|  | 6844 | ;; | 
|  | 6845 |  | 
|  | 6846 | openbsd*) | 
|  | 6847 | hardcode_direct=yes | 
|  | 6848 | hardcode_shlibpath_var=no | 
|  | 6849 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|  | 6850 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 6851 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | 
|  | 6852 | export_dynamic_flag_spec='${wl}-E' | 
|  | 6853 | else | 
|  | 6854 | case $host_os in | 
|  | 6855 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | 
|  | 6856 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
|  | 6857 | hardcode_libdir_flag_spec='-R$libdir' | 
|  | 6858 | ;; | 
|  | 6859 | *) | 
|  | 6860 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 6861 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | 
|  | 6862 | ;; | 
|  | 6863 | esac | 
|  | 6864 | fi | 
|  | 6865 | ;; | 
|  | 6866 |  | 
|  | 6867 | os2*) | 
|  | 6868 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 6869 | hardcode_minus_L=yes | 
|  | 6870 | allow_undefined_flag=unsupported | 
|  | 6871 | 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' | 
|  | 6872 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | 
|  | 6873 | ;; | 
|  | 6874 |  | 
|  | 6875 | osf3*) | 
|  | 6876 | if test "$GCC" = yes; then | 
|  | 6877 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | 
|  | 6878 | 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' | 
|  | 6879 | else | 
|  | 6880 | allow_undefined_flag=' -expect_unresolved \*' | 
|  | 6881 | 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' | 
|  | 6882 | fi | 
|  | 6883 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
|  | 6884 | hardcode_libdir_separator=: | 
|  | 6885 | ;; | 
|  | 6886 |  | 
|  | 6887 | osf4* | osf5*)	# as osf3* with the addition of -msym flag | 
|  | 6888 | if test "$GCC" = yes; then | 
|  | 6889 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | 
|  | 6890 | 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' | 
|  | 6891 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
|  | 6892 | else | 
|  | 6893 | allow_undefined_flag=' -expect_unresolved \*' | 
|  | 6894 | 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' | 
|  | 6895 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | 
|  | 6896 | $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' | 
|  | 6897 |  | 
|  | 6898 | # Both c and cxx compiler support -rpath directly | 
|  | 6899 | hardcode_libdir_flag_spec='-rpath $libdir' | 
|  | 6900 | fi | 
|  | 6901 | hardcode_libdir_separator=: | 
|  | 6902 | ;; | 
|  | 6903 |  | 
|  | 6904 | sco3.2v5*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6905 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 6906 | hardcode_shlibpath_var=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6907 | export_dynamic_flag_spec='${wl}-Bexport' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6908 | runpath_var=LD_RUN_PATH | 
|  | 6909 | hardcode_runpath_var=yes | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6910 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6911 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6912 | solaris*) | 
|  | 6913 | no_undefined_flag=' -z text' | 
|  | 6914 | if test "$GCC" = yes; then | 
|  | 6915 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 6916 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|  | 6917 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | 
|  | 6918 | else | 
|  | 6919 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 6920 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|  | 6921 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | 
|  | 6922 | fi | 
|  | 6923 | hardcode_libdir_flag_spec='-R$libdir' | 
|  | 6924 | hardcode_shlibpath_var=no | 
|  | 6925 | case $host_os in | 
|  | 6926 | solaris2.[0-5] | solaris2.[0-5].*) ;; | 
|  | 6927 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) | 
|  | 6928 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | 
|  | 6929 | esac | 
|  | 6930 | link_all_deplibs=yes | 
|  | 6931 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6932 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6933 | sunos4*) | 
|  | 6934 | if test "x$host_vendor" = xsequent; then | 
|  | 6935 | # Use $CC to link under sequent, because it throws in some extra .o | 
|  | 6936 | # files that make .init and .fini sections work. | 
|  | 6937 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 6938 | else | 
|  | 6939 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | 
|  | 6940 | fi | 
|  | 6941 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 6942 | hardcode_direct=yes | 
|  | 6943 | hardcode_minus_L=yes | 
|  | 6944 | hardcode_shlibpath_var=no | 
|  | 6945 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6946 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6947 | sysv4) | 
|  | 6948 | case $host_vendor in | 
|  | 6949 | sni) | 
|  | 6950 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 6951 | hardcode_direct=yes # is this really true??? | 
|  | 6952 | ;; | 
|  | 6953 | siemens) | 
|  | 6954 | ## LD is ld it makes a PLAMLIB | 
|  | 6955 | ## CC just makes a GrossModule. | 
|  | 6956 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
|  | 6957 | reload_cmds='$CC -r -o $output$reload_objs' | 
|  | 6958 | hardcode_direct=no | 
|  | 6959 | ;; | 
|  | 6960 | motorola) | 
|  | 6961 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 6962 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | 
|  | 6963 | ;; | 
|  | 6964 | esac | 
|  | 6965 | runpath_var='LD_RUN_PATH' | 
|  | 6966 | hardcode_shlibpath_var=no | 
|  | 6967 | ;; | 
|  | 6968 |  | 
|  | 6969 | sysv4.3*) | 
|  | 6970 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 6971 | hardcode_shlibpath_var=no | 
|  | 6972 | export_dynamic_flag_spec='-Bexport' | 
|  | 6973 | ;; | 
|  | 6974 |  | 
|  | 6975 | sysv4*MP*) | 
|  | 6976 | if test -d /usr/nec; then | 
|  | 6977 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 6978 | hardcode_shlibpath_var=no | 
|  | 6979 | runpath_var=LD_RUN_PATH | 
|  | 6980 | hardcode_runpath_var=yes | 
|  | 6981 | ld_shlibs=yes | 
|  | 6982 | fi | 
|  | 6983 | ;; | 
|  | 6984 |  | 
|  | 6985 | sysv4.2uw2*) | 
|  | 6986 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
|  | 6987 | hardcode_direct=yes | 
|  | 6988 | hardcode_minus_L=no | 
|  | 6989 | hardcode_shlibpath_var=no | 
|  | 6990 | hardcode_runpath_var=yes | 
|  | 6991 | runpath_var=LD_RUN_PATH | 
|  | 6992 | ;; | 
|  | 6993 |  | 
|  | 6994 | sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*) | 
|  | 6995 | no_undefined_flag='${wl}-z ${wl}text' | 
|  | 6996 | if test "$GCC" = yes; then | 
|  | 6997 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 6998 | else | 
|  | 6999 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 7000 | fi | 
|  | 7001 | runpath_var='LD_RUN_PATH' | 
|  | 7002 | hardcode_shlibpath_var=no | 
|  | 7003 | ;; | 
|  | 7004 |  | 
|  | 7005 | sysv5*) | 
|  | 7006 | no_undefined_flag=' -z text' | 
|  | 7007 | # $CC -shared without GNU ld will not create a library from C++ | 
|  | 7008 | # object files and a static libstdc++, better avoid it by now | 
|  | 7009 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 7010 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|  | 7011 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | 
|  | 7012 | hardcode_libdir_flag_spec= | 
|  | 7013 | hardcode_shlibpath_var=no | 
|  | 7014 | runpath_var='LD_RUN_PATH' | 
|  | 7015 | ;; | 
|  | 7016 |  | 
|  | 7017 | uts4*) | 
|  | 7018 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 7019 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 7020 | hardcode_shlibpath_var=no | 
|  | 7021 | ;; | 
|  | 7022 |  | 
|  | 7023 | *) | 
|  | 7024 | ld_shlibs=no | 
|  | 7025 | ;; | 
|  | 7026 | esac | 
|  | 7027 | fi | 
|  | 7028 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7029 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | 
|  | 7030 | echo "${ECHO_T}$ld_shlibs" >&6 | 
|  | 7031 | test "$ld_shlibs" = no && can_build_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7032 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7033 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
|  | 7034 | if test "$GCC" = yes; then | 
|  | 7035 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
|  | 7036 | fi | 
|  | 7037 |  | 
|  | 7038 | # | 
|  | 7039 | # Do we need to explicitly link libc? | 
|  | 7040 | # | 
|  | 7041 | case "x$archive_cmds_need_lc" in | 
|  | 7042 | x|xyes) | 
|  | 7043 | # Assume -lc should be added | 
|  | 7044 | archive_cmds_need_lc=yes | 
|  | 7045 |  | 
|  | 7046 | if test "$enable_shared" = yes && test "$GCC" = yes; then | 
|  | 7047 | case $archive_cmds in | 
|  | 7048 | *'~'*) | 
|  | 7049 | # FIXME: we may have to deal with multi-command sequences. | 
|  | 7050 | ;; | 
|  | 7051 | '$CC '*) | 
|  | 7052 | # Test whether the compiler implicitly links with -lc since on some | 
|  | 7053 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
|  | 7054 | # to ld, don't add -lc before -lgcc. | 
|  | 7055 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | 
|  | 7056 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | 
|  | 7057 | $rm conftest* | 
|  | 7058 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 7059 |  | 
|  | 7060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 7061 | (eval $ac_compile) 2>&5 | 
|  | 7062 | ac_status=$? | 
|  | 7063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7064 | (exit $ac_status); } 2>conftest.err; then | 
|  | 7065 | soname=conftest | 
|  | 7066 | lib=conftest | 
|  | 7067 | libobjs=conftest.$ac_objext | 
|  | 7068 | deplibs= | 
|  | 7069 | wl=$lt_prog_compiler_wl | 
|  | 7070 | compiler_flags=-v | 
|  | 7071 | linker_flags=-v | 
|  | 7072 | verstring= | 
|  | 7073 | output_objdir=. | 
|  | 7074 | libname=conftest | 
|  | 7075 | lt_save_allow_undefined_flag=$allow_undefined_flag | 
|  | 7076 | allow_undefined_flag= | 
|  | 7077 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | 
|  | 7078 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
|  | 7079 | ac_status=$? | 
|  | 7080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7081 | (exit $ac_status); } | 
|  | 7082 | then | 
|  | 7083 | archive_cmds_need_lc=no | 
|  | 7084 | else | 
|  | 7085 | archive_cmds_need_lc=yes | 
|  | 7086 | fi | 
|  | 7087 | allow_undefined_flag=$lt_save_allow_undefined_flag | 
|  | 7088 | else | 
|  | 7089 | cat conftest.err 1>&5 | 
|  | 7090 | fi | 
|  | 7091 | $rm conftest* | 
|  | 7092 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | 
|  | 7093 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 | 
|  | 7094 | ;; | 
|  | 7095 | esac | 
|  | 7096 | fi | 
|  | 7097 | ;; | 
|  | 7098 | esac | 
|  | 7099 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7100 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 
|  | 7101 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 
|  | 7102 | hardcode_action= | 
|  | 7103 | if test -n "$hardcode_libdir_flag_spec" || \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7104 | test -n "$runpath_var " || \ | 
|  | 7105 | test "X$hardcode_automatic"="Xyes" ; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7106 |  | 
|  | 7107 | # We can hardcode non-existant directories. | 
|  | 7108 | if test "$hardcode_direct" != no && | 
|  | 7109 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
|  | 7110 | # have to relink, otherwise we might link with an installed library | 
|  | 7111 | # when we should be linking with a yet-to-be-installed one | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7112 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7113 | test "$hardcode_minus_L" != no; then | 
|  | 7114 | # Linking always hardcodes the temporary library directory. | 
|  | 7115 | hardcode_action=relink | 
|  | 7116 | else | 
|  | 7117 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
|  | 7118 | hardcode_action=immediate | 
|  | 7119 | fi | 
|  | 7120 | else | 
|  | 7121 | # We cannot hardcode anything, or else we can only hardcode existing | 
|  | 7122 | # directories. | 
|  | 7123 | hardcode_action=unsupported | 
|  | 7124 | fi | 
|  | 7125 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 | 
|  | 7126 | echo "${ECHO_T}$hardcode_action" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7127 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7128 | if test "$hardcode_action" = relink; then | 
|  | 7129 | # Fast installation is not supported | 
|  | 7130 | enable_fast_install=no | 
|  | 7131 | elif test "$shlibpath_overrides_runpath" = yes || | 
|  | 7132 | test "$enable_shared" = no; then | 
|  | 7133 | # Fast installation is not necessary | 
|  | 7134 | enable_fast_install=needless | 
|  | 7135 | fi | 
|  | 7136 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7137 | striplib= | 
|  | 7138 | old_striplib= | 
|  | 7139 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | 
|  | 7140 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | 
|  | 7141 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 
|  | 7142 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 
|  | 7143 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 
|  | 7144 | echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 7145 | echo "${ECHO_T}yes" >&6 | 
|  | 7146 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7147 | # FIXME - insert some real tests, host_os isn't really good enough | 
|  | 7148 | case $host_os in | 
|  | 7149 | darwin*) | 
|  | 7150 | if test -n "$STRIP" ; then | 
|  | 7151 | striplib="$STRIP -x" | 
|  | 7152 | echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 7153 | echo "${ECHO_T}yes" >&6 | 
|  | 7154 | else | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7155 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7156 | echo "${ECHO_T}no" >&6 | 
|  | 7157 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7158 | ;; | 
|  | 7159 | *) | 
|  | 7160 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7161 | echo "${ECHO_T}no" >&6 | 
|  | 7162 | ;; | 
|  | 7163 | esac | 
|  | 7164 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7165 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7166 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
|  | 7167 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 
|  | 7168 | library_names_spec= | 
|  | 7169 | libname_spec='lib$name' | 
|  | 7170 | soname_spec= | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7171 | shrext=".so" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7172 | postinstall_cmds= | 
|  | 7173 | postuninstall_cmds= | 
|  | 7174 | finish_cmds= | 
|  | 7175 | finish_eval= | 
|  | 7176 | shlibpath_var= | 
|  | 7177 | shlibpath_overrides_runpath=unknown | 
|  | 7178 | version_type=none | 
|  | 7179 | dynamic_linker="$host_os ld.so" | 
|  | 7180 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7181 | if test "$GCC" = yes; then | 
|  | 7182 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
|  | 7183 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
|  | 7184 | # if the path contains ";" then we assume it to be the separator | 
|  | 7185 | # otherwise default to the standard path separator (i.e. ":") - it is | 
|  | 7186 | # assumed that no part of a normal pathname contains ";" but that should | 
|  | 7187 | # okay in the real world where ";" in dirpaths is itself problematic. | 
|  | 7188 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
|  | 7189 | else | 
|  | 7190 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
|  | 7191 | fi | 
|  | 7192 | else | 
|  | 7193 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
|  | 7194 | fi | 
|  | 7195 | need_lib_prefix=unknown | 
|  | 7196 | hardcode_into_libs=no | 
|  | 7197 |  | 
|  | 7198 | # when you set need_version to no, make sure it does not cause -set_version | 
|  | 7199 | # flags to be left without arguments | 
|  | 7200 | need_version=unknown | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7201 |  | 
|  | 7202 | case $host_os in | 
|  | 7203 | aix3*) | 
|  | 7204 | version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7205 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7206 | shlibpath_var=LIBPATH | 
|  | 7207 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7208 | # AIX 3 has no versioning support, so we append a major version to the name. | 
|  | 7209 | soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7210 | ;; | 
|  | 7211 |  | 
|  | 7212 | aix4* | aix5*) | 
|  | 7213 | version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7214 | need_lib_prefix=no | 
|  | 7215 | need_version=no | 
|  | 7216 | hardcode_into_libs=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7217 | if test "$host_cpu" = ia64; then | 
|  | 7218 | # AIX 5 supports IA64 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7219 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7220 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 7221 | else | 
|  | 7222 | # With GCC up to 2.95.x, collect2 would create an import file | 
|  | 7223 | # for dependence libraries.  The import file would start with | 
|  | 7224 | # the line `#! .'.  This would cause the generated library to | 
|  | 7225 | # depend on `.', always an invalid library.  This was fixed in | 
|  | 7226 | # development snapshots of GCC prior to 3.0. | 
|  | 7227 | case $host_os in | 
|  | 7228 | aix4 | aix4.[01] | aix4.[01].*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7229 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
|  | 7230 | echo ' yes ' | 
|  | 7231 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
|  | 7232 | : | 
|  | 7233 | else | 
|  | 7234 | can_build_shared=no | 
|  | 7235 | fi | 
|  | 7236 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7237 | esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7238 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
|  | 7239 | # soname into executable. Probably we can add versioning support to | 
|  | 7240 | # collect2, so additional links can be useful in future. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7241 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 7242 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
|  | 7243 | # instead of lib<name>.a to let people know that these are not | 
|  | 7244 | # typical AIX shared libraries. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7245 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7246 | else | 
|  | 7247 | # We preserve .a as extension for shared libraries through AIX4.2 | 
|  | 7248 | # and later when we are not doing run time linking. | 
|  | 7249 | library_names_spec='${libname}${release}.a $libname.a' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7250 | soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7251 | fi | 
|  | 7252 | shlibpath_var=LIBPATH | 
|  | 7253 | fi | 
|  | 7254 | ;; | 
|  | 7255 |  | 
|  | 7256 | amigaos*) | 
|  | 7257 | library_names_spec='$libname.ixlibrary $libname.a' | 
|  | 7258 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
|  | 7259 | 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' | 
|  | 7260 | ;; | 
|  | 7261 |  | 
|  | 7262 | beos*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7263 | library_names_spec='${libname}${shared_ext}' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7264 | dynamic_linker="$host_os ld.so" | 
|  | 7265 | shlibpath_var=LIBRARY_PATH | 
|  | 7266 | ;; | 
|  | 7267 |  | 
|  | 7268 | bsdi4*) | 
|  | 7269 | version_type=linux | 
|  | 7270 | need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7271 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 7272 | soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7273 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
|  | 7274 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 7275 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
|  | 7276 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7277 | # the default ld.so.conf also contains /usr/contrib/lib and | 
|  | 7278 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
|  | 7279 | # libtool to hard-code these into programs | 
|  | 7280 | ;; | 
|  | 7281 |  | 
|  | 7282 | cygwin* | mingw* | pw32*) | 
|  | 7283 | version_type=windows | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7284 | shrext=".dll" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7285 | need_version=no | 
|  | 7286 | need_lib_prefix=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7287 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7288 | case $GCC,$host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7289 | yes,cygwin* | yes,mingw* | yes,pw32*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7290 | library_names_spec='$libname.dll.a' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7291 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
|  | 7292 | postinstall_cmds='base_file=`basename \${file}`~ | 
|  | 7293 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7294 | dldir=$destdir/`dirname \$dlpath`~ | 
|  | 7295 | test -d \$dldir || mkdir -p \$dldir~ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7296 | $install_prog $dir/$dlname \$dldir/$dlname' | 
|  | 7297 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7298 | dlpath=$dir/\$dldll~ | 
|  | 7299 | $rm \$dlpath' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7300 | shlibpath_overrides_runpath=yes | 
|  | 7301 |  | 
|  | 7302 | case $host_os in | 
|  | 7303 | cygwin*) | 
|  | 7304 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
|  | 7305 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
|  | 7306 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" | 
|  | 7307 | ;; | 
|  | 7308 | mingw*) | 
|  | 7309 | # MinGW DLLs use traditional 'lib' prefix | 
|  | 7310 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
|  | 7311 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
|  | 7312 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
|  | 7313 | # It is most probably a Windows format PATH printed by | 
|  | 7314 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
|  | 7315 | # path with ; separators, and with drive letters. We can handle the | 
|  | 7316 | # drive letters (cygwin fileutils understands them), so leave them, | 
|  | 7317 | # especially as we might pass files found there to a mingw objdump, | 
|  | 7318 | # which wouldn't understand a cygwinified path. Ahh. | 
|  | 7319 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
|  | 7320 | else | 
|  | 7321 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
|  | 7322 | fi | 
|  | 7323 | ;; | 
|  | 7324 | pw32*) | 
|  | 7325 | # pw32 DLLs use 'pw' prefix rather than 'lib' | 
|  | 7326 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | 
|  | 7327 | ;; | 
|  | 7328 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7329 | ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7330 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7331 | *) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7332 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7333 | ;; | 
|  | 7334 | esac | 
|  | 7335 | dynamic_linker='Win32 ld.exe' | 
|  | 7336 | # FIXME: first we should search . and the directory the executable is in | 
|  | 7337 | shlibpath_var=PATH | 
|  | 7338 | ;; | 
|  | 7339 |  | 
|  | 7340 | darwin* | rhapsody*) | 
|  | 7341 | dynamic_linker="$host_os dyld" | 
|  | 7342 | version_type=darwin | 
|  | 7343 | need_lib_prefix=no | 
|  | 7344 | need_version=no | 
|  | 7345 | # FIXME: Relying on posixy $() will cause problems for | 
|  | 7346 | #        cross-compilation, but unfortunately the echo tests do not | 
|  | 7347 | #        yet detect zsh echo's removal of \ escapes. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7348 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | 
|  | 7349 | soname_spec='${libname}${release}${major}$shared_ext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7350 | shlibpath_overrides_runpath=yes | 
|  | 7351 | shlibpath_var=DYLD_LIBRARY_PATH | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7352 | shrext='$(test .$module = .yes && echo .so || echo .dylib)' | 
|  | 7353 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | 
|  | 7354 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then | 
|  | 7355 | 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"` | 
|  | 7356 | fi | 
|  | 7357 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
|  | 7358 | ;; | 
|  | 7359 |  | 
|  | 7360 | dgux*) | 
|  | 7361 | version_type=linux | 
|  | 7362 | need_lib_prefix=no | 
|  | 7363 | need_version=no | 
|  | 7364 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
|  | 7365 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 7366 | shlibpath_var=LD_LIBRARY_PATH | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7367 | ;; | 
|  | 7368 |  | 
|  | 7369 | freebsd1*) | 
|  | 7370 | dynamic_linker=no | 
|  | 7371 | ;; | 
|  | 7372 |  | 
|  | 7373 | freebsd*) | 
|  | 7374 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | 
|  | 7375 | version_type=freebsd-$objformat | 
|  | 7376 | case $version_type in | 
|  | 7377 | freebsd-elf*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7378 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7379 | need_version=no | 
|  | 7380 | need_lib_prefix=no | 
|  | 7381 | ;; | 
|  | 7382 | freebsd-*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7383 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7384 | need_version=yes | 
|  | 7385 | ;; | 
|  | 7386 | esac | 
|  | 7387 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 7388 | case $host_os in | 
|  | 7389 | freebsd2*) | 
|  | 7390 | shlibpath_overrides_runpath=yes | 
|  | 7391 | ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7392 | freebsd3.01* | freebsdelf3.01*) | 
|  | 7393 | shlibpath_overrides_runpath=yes | 
|  | 7394 | hardcode_into_libs=yes | 
|  | 7395 | ;; | 
|  | 7396 | *) # from 3.2 on | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7397 | shlibpath_overrides_runpath=no | 
|  | 7398 | hardcode_into_libs=yes | 
|  | 7399 | ;; | 
|  | 7400 | esac | 
|  | 7401 | ;; | 
|  | 7402 |  | 
|  | 7403 | gnu*) | 
|  | 7404 | version_type=linux | 
|  | 7405 | need_lib_prefix=no | 
|  | 7406 | need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7407 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
|  | 7408 | soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7409 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 7410 | hardcode_into_libs=yes | 
|  | 7411 | ;; | 
|  | 7412 |  | 
|  | 7413 | hpux9* | hpux10* | hpux11*) | 
|  | 7414 | # Give a soname corresponding to the major version so that dld.sl refuses to | 
|  | 7415 | # link against other versions. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7416 | version_type=sunos | 
|  | 7417 | need_lib_prefix=no | 
|  | 7418 | need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7419 | case "$host_cpu" in | 
|  | 7420 | ia64*) | 
|  | 7421 | shrext='.so' | 
|  | 7422 | hardcode_into_libs=yes | 
|  | 7423 | dynamic_linker="$host_os dld.so" | 
|  | 7424 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 7425 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 7426 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 7427 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 7428 | if test "X$HPUX_IA64_MODE" = X32; then | 
|  | 7429 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
|  | 7430 | else | 
|  | 7431 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
|  | 7432 | fi | 
|  | 7433 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 7434 | ;; | 
|  | 7435 | hppa*64*) | 
|  | 7436 | shrext='.sl' | 
|  | 7437 | hardcode_into_libs=yes | 
|  | 7438 | dynamic_linker="$host_os dld.sl" | 
|  | 7439 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
|  | 7440 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 7441 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 7442 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 7443 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
|  | 7444 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 7445 | ;; | 
|  | 7446 | *) | 
|  | 7447 | shrext='.sl' | 
|  | 7448 | dynamic_linker="$host_os dld.sl" | 
|  | 7449 | shlibpath_var=SHLIB_PATH | 
|  | 7450 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
|  | 7451 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 7452 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 7453 | ;; | 
|  | 7454 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7455 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
|  | 7456 | postinstall_cmds='chmod 555 $lib' | 
|  | 7457 | ;; | 
|  | 7458 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7459 | irix5* | irix6* | nonstopux*) | 
|  | 7460 | case $host_os in | 
|  | 7461 | nonstopux*) version_type=nonstopux ;; | 
|  | 7462 | *) | 
|  | 7463 | if test "$lt_cv_prog_gnu_ld" = yes; then | 
|  | 7464 | version_type=linux | 
|  | 7465 | else | 
|  | 7466 | version_type=irix | 
|  | 7467 | fi ;; | 
|  | 7468 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7469 | need_lib_prefix=no | 
|  | 7470 | need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7471 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 7472 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7473 | case $host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7474 | irix5* | nonstopux*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7475 | libsuff= shlibsuff= | 
|  | 7476 | ;; | 
|  | 7477 | *) | 
|  | 7478 | case $LD in # libtool.m4 will add one of these switches to LD | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7479 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
|  | 7480 | libsuff= shlibsuff= libmagic=32-bit;; | 
|  | 7481 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
|  | 7482 | libsuff=32 shlibsuff=N32 libmagic=N32;; | 
|  | 7483 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
|  | 7484 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7485 | *) libsuff= shlibsuff= libmagic=never-match;; | 
|  | 7486 | esac | 
|  | 7487 | ;; | 
|  | 7488 | esac | 
|  | 7489 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
|  | 7490 | shlibpath_overrides_runpath=no | 
|  | 7491 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
|  | 7492 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7493 | hardcode_into_libs=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7494 | ;; | 
|  | 7495 |  | 
|  | 7496 | # No shared lib support for Linux oldld, aout, or coff. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7497 | linux*oldld* | linux*aout* | linux*coff*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7498 | dynamic_linker=no | 
|  | 7499 | ;; | 
|  | 7500 |  | 
|  | 7501 | # This must be Linux ELF. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7502 | linux*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7503 | version_type=linux | 
|  | 7504 | need_lib_prefix=no | 
|  | 7505 | need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7506 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 7507 | soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7508 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
|  | 7509 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 7510 | shlibpath_overrides_runpath=no | 
|  | 7511 | # This implies no fast_install, which is unacceptable. | 
|  | 7512 | # Some rework will be needed to allow for fast_install | 
|  | 7513 | # before this can be enabled. | 
|  | 7514 | hardcode_into_libs=yes | 
|  | 7515 |  | 
|  | 7516 | # We used to test for /lib/ld.so.1 and disable shared libraries on | 
|  | 7517 | # powerpc, because MkLinux only supported shared libraries with the | 
|  | 7518 | # GNU dynamic linker.  Since this was broken with cross compilers, | 
|  | 7519 | # most powerpc-linux boxes support dynamic linking these days and | 
|  | 7520 | # people can always --disable-shared, the test was removed, and we | 
|  | 7521 | # assume the GNU/Linux dynamic linker is in use. | 
|  | 7522 | dynamic_linker='GNU/Linux ld.so' | 
|  | 7523 | ;; | 
|  | 7524 |  | 
|  | 7525 | netbsd*) | 
|  | 7526 | version_type=sunos | 
|  | 7527 | need_lib_prefix=no | 
|  | 7528 | need_version=no | 
|  | 7529 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7530 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7531 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 7532 | dynamic_linker='NetBSD (a.out) ld.so' | 
|  | 7533 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7534 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' | 
|  | 7535 | soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7536 | dynamic_linker='NetBSD ld.elf_so' | 
|  | 7537 | fi | 
|  | 7538 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 7539 | shlibpath_overrides_runpath=yes | 
|  | 7540 | hardcode_into_libs=yes | 
|  | 7541 | ;; | 
|  | 7542 |  | 
|  | 7543 | newsos6) | 
|  | 7544 | version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7545 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 7546 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 7547 | shlibpath_overrides_runpath=yes | 
|  | 7548 | ;; | 
|  | 7549 |  | 
|  | 7550 | nto-qnx) | 
|  | 7551 | version_type=linux | 
|  | 7552 | need_lib_prefix=no | 
|  | 7553 | need_version=no | 
|  | 7554 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 7555 | soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7556 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 7557 | shlibpath_overrides_runpath=yes | 
|  | 7558 | ;; | 
|  | 7559 |  | 
|  | 7560 | openbsd*) | 
|  | 7561 | version_type=sunos | 
|  | 7562 | need_lib_prefix=no | 
|  | 7563 | need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7564 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 7565 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 7566 | shlibpath_var=LD_LIBRARY_PATH | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7567 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7568 | case $host_os in | 
|  | 7569 | openbsd2.[89] | openbsd2.[89].*) | 
|  | 7570 | shlibpath_overrides_runpath=no | 
|  | 7571 | ;; | 
|  | 7572 | *) | 
|  | 7573 | shlibpath_overrides_runpath=yes | 
|  | 7574 | ;; | 
|  | 7575 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7576 | else | 
|  | 7577 | shlibpath_overrides_runpath=yes | 
|  | 7578 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7579 | ;; | 
|  | 7580 |  | 
|  | 7581 | os2*) | 
|  | 7582 | libname_spec='$name' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7583 | shrext=".dll" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7584 | need_lib_prefix=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7585 | library_names_spec='$libname${shared_ext} $libname.a' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7586 | dynamic_linker='OS/2 ld.exe' | 
|  | 7587 | shlibpath_var=LIBPATH | 
|  | 7588 | ;; | 
|  | 7589 |  | 
|  | 7590 | osf3* | osf4* | osf5*) | 
|  | 7591 | version_type=osf | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7592 | need_lib_prefix=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7593 | need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7594 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 7595 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7596 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 7597 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
|  | 7598 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
|  | 7599 | ;; | 
|  | 7600 |  | 
|  | 7601 | sco3.2v5*) | 
|  | 7602 | version_type=osf | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7603 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 7604 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7605 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 7606 | ;; | 
|  | 7607 |  | 
|  | 7608 | solaris*) | 
|  | 7609 | version_type=linux | 
|  | 7610 | need_lib_prefix=no | 
|  | 7611 | need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7612 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 7613 | soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7614 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 7615 | shlibpath_overrides_runpath=yes | 
|  | 7616 | hardcode_into_libs=yes | 
|  | 7617 | # ldd complains unless libraries are executable | 
|  | 7618 | postinstall_cmds='chmod +x $lib' | 
|  | 7619 | ;; | 
|  | 7620 |  | 
|  | 7621 | sunos4*) | 
|  | 7622 | version_type=sunos | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7623 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7624 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
|  | 7625 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 7626 | shlibpath_overrides_runpath=yes | 
|  | 7627 | if test "$with_gnu_ld" = yes; then | 
|  | 7628 | need_lib_prefix=no | 
|  | 7629 | fi | 
|  | 7630 | need_version=yes | 
|  | 7631 | ;; | 
|  | 7632 |  | 
|  | 7633 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
|  | 7634 | version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7635 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 7636 | soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7637 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 7638 | case $host_vendor in | 
|  | 7639 | sni) | 
|  | 7640 | shlibpath_overrides_runpath=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7641 | need_lib_prefix=no | 
|  | 7642 | export_dynamic_flag_spec='${wl}-Blargedynsym' | 
|  | 7643 | runpath_var=LD_RUN_PATH | 
|  | 7644 | ;; | 
|  | 7645 | siemens) | 
|  | 7646 | need_lib_prefix=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7647 | ;; | 
|  | 7648 | motorola) | 
|  | 7649 | need_lib_prefix=no | 
|  | 7650 | need_version=no | 
|  | 7651 | shlibpath_overrides_runpath=no | 
|  | 7652 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
|  | 7653 | ;; | 
|  | 7654 | esac | 
|  | 7655 | ;; | 
|  | 7656 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7657 | sysv4*MP*) | 
|  | 7658 | if test -d /usr/nec ;then | 
|  | 7659 | version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7660 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
|  | 7661 | soname_spec='$libname${shared_ext}.$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7662 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 7663 | fi | 
|  | 7664 | ;; | 
|  | 7665 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7666 | uts4*) | 
|  | 7667 | version_type=linux | 
|  | 7668 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 7669 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 7670 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 7671 | ;; | 
|  | 7672 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7673 | *) | 
|  | 7674 | dynamic_linker=no | 
|  | 7675 | ;; | 
|  | 7676 | esac | 
|  | 7677 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
|  | 7678 | echo "${ECHO_T}$dynamic_linker" >&6 | 
|  | 7679 | test "$dynamic_linker" = no && can_build_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7680 |  | 
|  | 7681 | if test "x$enable_dlopen" != xyes; then | 
|  | 7682 | enable_dlopen=unknown | 
|  | 7683 | enable_dlopen_self=unknown | 
|  | 7684 | enable_dlopen_self_static=unknown | 
|  | 7685 | else | 
|  | 7686 | lt_cv_dlopen=no | 
|  | 7687 | lt_cv_dlopen_libs= | 
|  | 7688 |  | 
|  | 7689 | case $host_os in | 
|  | 7690 | beos*) | 
|  | 7691 | lt_cv_dlopen="load_add_on" | 
|  | 7692 | lt_cv_dlopen_libs= | 
|  | 7693 | lt_cv_dlopen_self=yes | 
|  | 7694 | ;; | 
|  | 7695 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7696 | mingw* | pw32*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7697 | lt_cv_dlopen="LoadLibrary" | 
|  | 7698 | lt_cv_dlopen_libs= | 
|  | 7699 | ;; | 
|  | 7700 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7701 | cygwin*) | 
|  | 7702 | lt_cv_dlopen="dlopen" | 
|  | 7703 | lt_cv_dlopen_libs= | 
|  | 7704 | ;; | 
|  | 7705 |  | 
|  | 7706 | darwin*) | 
|  | 7707 | # if libdl is installed we need to link against it | 
|  | 7708 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
|  | 7709 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
|  | 7710 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
|  | 7711 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 7712 | else | 
|  | 7713 | ac_check_lib_save_LIBS=$LIBS | 
|  | 7714 | LIBS="-ldl  $LIBS" | 
|  | 7715 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 7716 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7717 | /* confdefs.h.  */ | 
|  | 7718 | _ACEOF | 
|  | 7719 | cat confdefs.h >>conftest.$ac_ext | 
|  | 7720 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 7721 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7722 |  | 
|  | 7723 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 7724 | #ifdef __cplusplus | 
|  | 7725 | extern "C" | 
|  | 7726 | #endif | 
|  | 7727 | /* We use char because int might match the return type of a gcc2 | 
|  | 7728 | builtin and then its argument prototype would still apply.  */ | 
|  | 7729 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7730 | int | 
|  | 7731 | main () | 
|  | 7732 | { | 
|  | 7733 | dlopen (); | 
|  | 7734 | ; | 
|  | 7735 | return 0; | 
|  | 7736 | } | 
|  | 7737 | _ACEOF | 
|  | 7738 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 7739 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 7740 | (eval $ac_link) 2>&5 | 
|  | 7741 | ac_status=$? | 
|  | 7742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7743 | (exit $ac_status); } && | 
|  | 7744 | { ac_try='test -s conftest$ac_exeext' | 
|  | 7745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 7746 | (eval $ac_try) 2>&5 | 
|  | 7747 | ac_status=$? | 
|  | 7748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7749 | (exit $ac_status); }; }; then | 
|  | 7750 | ac_cv_lib_dl_dlopen=yes | 
|  | 7751 | else | 
|  | 7752 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7753 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 7754 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7755 | ac_cv_lib_dl_dlopen=no | 
|  | 7756 | fi | 
|  | 7757 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 7758 | LIBS=$ac_check_lib_save_LIBS | 
|  | 7759 | fi | 
|  | 7760 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
|  | 7761 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
|  | 7762 | if test $ac_cv_lib_dl_dlopen = yes; then | 
|  | 7763 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
|  | 7764 | else | 
|  | 7765 |  | 
|  | 7766 | lt_cv_dlopen="dyld" | 
|  | 7767 | lt_cv_dlopen_libs= | 
|  | 7768 | lt_cv_dlopen_self=yes | 
|  | 7769 |  | 
|  | 7770 | fi | 
|  | 7771 |  | 
|  | 7772 | ;; | 
|  | 7773 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7774 | *) | 
|  | 7775 | echo "$as_me:$LINENO: checking for shl_load" >&5 | 
|  | 7776 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | 
|  | 7777 | if test "${ac_cv_func_shl_load+set}" = set; then | 
|  | 7778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 7779 | else | 
|  | 7780 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 7781 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7782 | /* confdefs.h.  */ | 
|  | 7783 | _ACEOF | 
|  | 7784 | cat confdefs.h >>conftest.$ac_ext | 
|  | 7785 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 7786 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7787 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7788 | which can conflict with char shl_load (); below. | 
|  | 7789 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 7790 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 7791 | #ifdef __STDC__ | 
|  | 7792 | # include <limits.h> | 
|  | 7793 | #else | 
|  | 7794 | # include <assert.h> | 
|  | 7795 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7796 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 7797 | #ifdef __cplusplus | 
|  | 7798 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7799 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7800 | #endif | 
|  | 7801 | /* We use char because int might match the return type of a gcc2 | 
|  | 7802 | builtin and then its argument prototype would still apply.  */ | 
|  | 7803 | char shl_load (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7804 | /* The GNU C library defines this for functions which it implements | 
|  | 7805 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 7806 | something starting with __ and the normal name is an alias.  */ | 
|  | 7807 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | 
|  | 7808 | choke me | 
|  | 7809 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7810 | char (*f) () = shl_load; | 
|  | 7811 | #endif | 
|  | 7812 | #ifdef __cplusplus | 
|  | 7813 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7814 | #endif | 
|  | 7815 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7816 | int | 
|  | 7817 | main () | 
|  | 7818 | { | 
|  | 7819 | return f != shl_load; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7820 | ; | 
|  | 7821 | return 0; | 
|  | 7822 | } | 
|  | 7823 | _ACEOF | 
|  | 7824 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 7825 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 7826 | (eval $ac_link) 2>&5 | 
|  | 7827 | ac_status=$? | 
|  | 7828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7829 | (exit $ac_status); } && | 
|  | 7830 | { ac_try='test -s conftest$ac_exeext' | 
|  | 7831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 7832 | (eval $ac_try) 2>&5 | 
|  | 7833 | ac_status=$? | 
|  | 7834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7835 | (exit $ac_status); }; }; then | 
|  | 7836 | ac_cv_func_shl_load=yes | 
|  | 7837 | else | 
|  | 7838 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7839 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 7840 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7841 | ac_cv_func_shl_load=no | 
|  | 7842 | fi | 
|  | 7843 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 7844 | fi | 
|  | 7845 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | 
|  | 7846 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | 
|  | 7847 | if test $ac_cv_func_shl_load = yes; then | 
|  | 7848 | lt_cv_dlopen="shl_load" | 
|  | 7849 | else | 
|  | 7850 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | 
|  | 7851 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | 
|  | 7852 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | 
|  | 7853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 7854 | else | 
|  | 7855 | ac_check_lib_save_LIBS=$LIBS | 
|  | 7856 | LIBS="-ldld  $LIBS" | 
|  | 7857 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 7858 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7859 | /* confdefs.h.  */ | 
|  | 7860 | _ACEOF | 
|  | 7861 | cat confdefs.h >>conftest.$ac_ext | 
|  | 7862 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 7863 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7864 |  | 
|  | 7865 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 7866 | #ifdef __cplusplus | 
|  | 7867 | extern "C" | 
|  | 7868 | #endif | 
|  | 7869 | /* We use char because int might match the return type of a gcc2 | 
|  | 7870 | builtin and then its argument prototype would still apply.  */ | 
|  | 7871 | char shl_load (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7872 | int | 
|  | 7873 | main () | 
|  | 7874 | { | 
|  | 7875 | shl_load (); | 
|  | 7876 | ; | 
|  | 7877 | return 0; | 
|  | 7878 | } | 
|  | 7879 | _ACEOF | 
|  | 7880 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 7881 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 7882 | (eval $ac_link) 2>&5 | 
|  | 7883 | ac_status=$? | 
|  | 7884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7885 | (exit $ac_status); } && | 
|  | 7886 | { ac_try='test -s conftest$ac_exeext' | 
|  | 7887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 7888 | (eval $ac_try) 2>&5 | 
|  | 7889 | ac_status=$? | 
|  | 7890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7891 | (exit $ac_status); }; }; then | 
|  | 7892 | ac_cv_lib_dld_shl_load=yes | 
|  | 7893 | else | 
|  | 7894 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7895 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 7896 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7897 | ac_cv_lib_dld_shl_load=no | 
|  | 7898 | fi | 
|  | 7899 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 7900 | LIBS=$ac_check_lib_save_LIBS | 
|  | 7901 | fi | 
|  | 7902 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | 
|  | 7903 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | 
|  | 7904 | if test $ac_cv_lib_dld_shl_load = yes; then | 
|  | 7905 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | 
|  | 7906 | else | 
|  | 7907 | echo "$as_me:$LINENO: checking for dlopen" >&5 | 
|  | 7908 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | 
|  | 7909 | if test "${ac_cv_func_dlopen+set}" = set; then | 
|  | 7910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 7911 | else | 
|  | 7912 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 7913 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7914 | /* confdefs.h.  */ | 
|  | 7915 | _ACEOF | 
|  | 7916 | cat confdefs.h >>conftest.$ac_ext | 
|  | 7917 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 7918 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7919 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7920 | which can conflict with char dlopen (); below. | 
|  | 7921 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 7922 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 7923 | #ifdef __STDC__ | 
|  | 7924 | # include <limits.h> | 
|  | 7925 | #else | 
|  | 7926 | # include <assert.h> | 
|  | 7927 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7928 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 7929 | #ifdef __cplusplus | 
|  | 7930 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7931 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7932 | #endif | 
|  | 7933 | /* We use char because int might match the return type of a gcc2 | 
|  | 7934 | builtin and then its argument prototype would still apply.  */ | 
|  | 7935 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7936 | /* The GNU C library defines this for functions which it implements | 
|  | 7937 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 7938 | something starting with __ and the normal name is an alias.  */ | 
|  | 7939 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | 
|  | 7940 | choke me | 
|  | 7941 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7942 | char (*f) () = dlopen; | 
|  | 7943 | #endif | 
|  | 7944 | #ifdef __cplusplus | 
|  | 7945 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7946 | #endif | 
|  | 7947 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7948 | int | 
|  | 7949 | main () | 
|  | 7950 | { | 
|  | 7951 | return f != dlopen; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7952 | ; | 
|  | 7953 | return 0; | 
|  | 7954 | } | 
|  | 7955 | _ACEOF | 
|  | 7956 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 7957 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 7958 | (eval $ac_link) 2>&5 | 
|  | 7959 | ac_status=$? | 
|  | 7960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7961 | (exit $ac_status); } && | 
|  | 7962 | { ac_try='test -s conftest$ac_exeext' | 
|  | 7963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 7964 | (eval $ac_try) 2>&5 | 
|  | 7965 | ac_status=$? | 
|  | 7966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7967 | (exit $ac_status); }; }; then | 
|  | 7968 | ac_cv_func_dlopen=yes | 
|  | 7969 | else | 
|  | 7970 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7971 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 7972 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7973 | ac_cv_func_dlopen=no | 
|  | 7974 | fi | 
|  | 7975 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 7976 | fi | 
|  | 7977 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | 
|  | 7978 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | 
|  | 7979 | if test $ac_cv_func_dlopen = yes; then | 
|  | 7980 | lt_cv_dlopen="dlopen" | 
|  | 7981 | else | 
|  | 7982 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
|  | 7983 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
|  | 7984 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
|  | 7985 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 7986 | else | 
|  | 7987 | ac_check_lib_save_LIBS=$LIBS | 
|  | 7988 | LIBS="-ldl  $LIBS" | 
|  | 7989 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 7990 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7991 | /* confdefs.h.  */ | 
|  | 7992 | _ACEOF | 
|  | 7993 | cat confdefs.h >>conftest.$ac_ext | 
|  | 7994 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 7995 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7996 |  | 
|  | 7997 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 7998 | #ifdef __cplusplus | 
|  | 7999 | extern "C" | 
|  | 8000 | #endif | 
|  | 8001 | /* We use char because int might match the return type of a gcc2 | 
|  | 8002 | builtin and then its argument prototype would still apply.  */ | 
|  | 8003 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8004 | int | 
|  | 8005 | main () | 
|  | 8006 | { | 
|  | 8007 | dlopen (); | 
|  | 8008 | ; | 
|  | 8009 | return 0; | 
|  | 8010 | } | 
|  | 8011 | _ACEOF | 
|  | 8012 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 8013 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 8014 | (eval $ac_link) 2>&5 | 
|  | 8015 | ac_status=$? | 
|  | 8016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8017 | (exit $ac_status); } && | 
|  | 8018 | { ac_try='test -s conftest$ac_exeext' | 
|  | 8019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 8020 | (eval $ac_try) 2>&5 | 
|  | 8021 | ac_status=$? | 
|  | 8022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8023 | (exit $ac_status); }; }; then | 
|  | 8024 | ac_cv_lib_dl_dlopen=yes | 
|  | 8025 | else | 
|  | 8026 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8027 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 8028 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8029 | ac_cv_lib_dl_dlopen=no | 
|  | 8030 | fi | 
|  | 8031 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 8032 | LIBS=$ac_check_lib_save_LIBS | 
|  | 8033 | fi | 
|  | 8034 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
|  | 8035 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
|  | 8036 | if test $ac_cv_lib_dl_dlopen = yes; then | 
|  | 8037 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
|  | 8038 | else | 
|  | 8039 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | 
|  | 8040 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | 
|  | 8041 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | 
|  | 8042 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 8043 | else | 
|  | 8044 | ac_check_lib_save_LIBS=$LIBS | 
|  | 8045 | LIBS="-lsvld  $LIBS" | 
|  | 8046 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 8047 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8048 | /* confdefs.h.  */ | 
|  | 8049 | _ACEOF | 
|  | 8050 | cat confdefs.h >>conftest.$ac_ext | 
|  | 8051 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 8052 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8053 |  | 
|  | 8054 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 8055 | #ifdef __cplusplus | 
|  | 8056 | extern "C" | 
|  | 8057 | #endif | 
|  | 8058 | /* We use char because int might match the return type of a gcc2 | 
|  | 8059 | builtin and then its argument prototype would still apply.  */ | 
|  | 8060 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8061 | int | 
|  | 8062 | main () | 
|  | 8063 | { | 
|  | 8064 | dlopen (); | 
|  | 8065 | ; | 
|  | 8066 | return 0; | 
|  | 8067 | } | 
|  | 8068 | _ACEOF | 
|  | 8069 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 8070 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 8071 | (eval $ac_link) 2>&5 | 
|  | 8072 | ac_status=$? | 
|  | 8073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8074 | (exit $ac_status); } && | 
|  | 8075 | { ac_try='test -s conftest$ac_exeext' | 
|  | 8076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 8077 | (eval $ac_try) 2>&5 | 
|  | 8078 | ac_status=$? | 
|  | 8079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8080 | (exit $ac_status); }; }; then | 
|  | 8081 | ac_cv_lib_svld_dlopen=yes | 
|  | 8082 | else | 
|  | 8083 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8084 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 8085 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8086 | ac_cv_lib_svld_dlopen=no | 
|  | 8087 | fi | 
|  | 8088 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 8089 | LIBS=$ac_check_lib_save_LIBS | 
|  | 8090 | fi | 
|  | 8091 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | 
|  | 8092 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | 
|  | 8093 | if test $ac_cv_lib_svld_dlopen = yes; then | 
|  | 8094 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | 
|  | 8095 | else | 
|  | 8096 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | 
|  | 8097 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | 
|  | 8098 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | 
|  | 8099 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 8100 | else | 
|  | 8101 | ac_check_lib_save_LIBS=$LIBS | 
|  | 8102 | LIBS="-ldld  $LIBS" | 
|  | 8103 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 8104 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8105 | /* confdefs.h.  */ | 
|  | 8106 | _ACEOF | 
|  | 8107 | cat confdefs.h >>conftest.$ac_ext | 
|  | 8108 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 8109 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8110 |  | 
|  | 8111 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 8112 | #ifdef __cplusplus | 
|  | 8113 | extern "C" | 
|  | 8114 | #endif | 
|  | 8115 | /* We use char because int might match the return type of a gcc2 | 
|  | 8116 | builtin and then its argument prototype would still apply.  */ | 
|  | 8117 | char dld_link (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8118 | int | 
|  | 8119 | main () | 
|  | 8120 | { | 
|  | 8121 | dld_link (); | 
|  | 8122 | ; | 
|  | 8123 | return 0; | 
|  | 8124 | } | 
|  | 8125 | _ACEOF | 
|  | 8126 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 8127 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 8128 | (eval $ac_link) 2>&5 | 
|  | 8129 | ac_status=$? | 
|  | 8130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8131 | (exit $ac_status); } && | 
|  | 8132 | { ac_try='test -s conftest$ac_exeext' | 
|  | 8133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 8134 | (eval $ac_try) 2>&5 | 
|  | 8135 | ac_status=$? | 
|  | 8136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8137 | (exit $ac_status); }; }; then | 
|  | 8138 | ac_cv_lib_dld_dld_link=yes | 
|  | 8139 | else | 
|  | 8140 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8141 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 8142 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8143 | ac_cv_lib_dld_dld_link=no | 
|  | 8144 | fi | 
|  | 8145 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 8146 | LIBS=$ac_check_lib_save_LIBS | 
|  | 8147 | fi | 
|  | 8148 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | 
|  | 8149 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | 
|  | 8150 | if test $ac_cv_lib_dld_dld_link = yes; then | 
|  | 8151 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | 
|  | 8152 | fi | 
|  | 8153 |  | 
|  | 8154 |  | 
|  | 8155 | fi | 
|  | 8156 |  | 
|  | 8157 |  | 
|  | 8158 | fi | 
|  | 8159 |  | 
|  | 8160 |  | 
|  | 8161 | fi | 
|  | 8162 |  | 
|  | 8163 |  | 
|  | 8164 | fi | 
|  | 8165 |  | 
|  | 8166 |  | 
|  | 8167 | fi | 
|  | 8168 |  | 
|  | 8169 | ;; | 
|  | 8170 | esac | 
|  | 8171 |  | 
|  | 8172 | if test "x$lt_cv_dlopen" != xno; then | 
|  | 8173 | enable_dlopen=yes | 
|  | 8174 | else | 
|  | 8175 | enable_dlopen=no | 
|  | 8176 | fi | 
|  | 8177 |  | 
|  | 8178 | case $lt_cv_dlopen in | 
|  | 8179 | dlopen) | 
|  | 8180 | save_CPPFLAGS="$CPPFLAGS" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8181 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8182 |  | 
|  | 8183 | save_LDFLAGS="$LDFLAGS" | 
|  | 8184 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | 
|  | 8185 |  | 
|  | 8186 | save_LIBS="$LIBS" | 
|  | 8187 | LIBS="$lt_cv_dlopen_libs $LIBS" | 
|  | 8188 |  | 
|  | 8189 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | 
|  | 8190 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | 
|  | 8191 | if test "${lt_cv_dlopen_self+set}" = set; then | 
|  | 8192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 8193 | else | 
|  | 8194 | if test "$cross_compiling" = yes; then : | 
|  | 8195 | lt_cv_dlopen_self=cross | 
|  | 8196 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8197 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8198 | lt_status=$lt_dlunknown | 
|  | 8199 | cat > conftest.$ac_ext <<EOF | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 8200 | #line 8200 "configure" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8201 | #include "confdefs.h" | 
|  | 8202 |  | 
|  | 8203 | #if HAVE_DLFCN_H | 
|  | 8204 | #include <dlfcn.h> | 
|  | 8205 | #endif | 
|  | 8206 |  | 
|  | 8207 | #include <stdio.h> | 
|  | 8208 |  | 
|  | 8209 | #ifdef RTLD_GLOBAL | 
|  | 8210 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
|  | 8211 | #else | 
|  | 8212 | #  ifdef DL_GLOBAL | 
|  | 8213 | #    define LT_DLGLOBAL		DL_GLOBAL | 
|  | 8214 | #  else | 
|  | 8215 | #    define LT_DLGLOBAL		0 | 
|  | 8216 | #  endif | 
|  | 8217 | #endif | 
|  | 8218 |  | 
|  | 8219 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
|  | 8220 | find out it does not work in some platform. */ | 
|  | 8221 | #ifndef LT_DLLAZY_OR_NOW | 
|  | 8222 | #  ifdef RTLD_LAZY | 
|  | 8223 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
|  | 8224 | #  else | 
|  | 8225 | #    ifdef DL_LAZY | 
|  | 8226 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
|  | 8227 | #    else | 
|  | 8228 | #      ifdef RTLD_NOW | 
|  | 8229 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
|  | 8230 | #      else | 
|  | 8231 | #        ifdef DL_NOW | 
|  | 8232 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
|  | 8233 | #        else | 
|  | 8234 | #          define LT_DLLAZY_OR_NOW	0 | 
|  | 8235 | #        endif | 
|  | 8236 | #      endif | 
|  | 8237 | #    endif | 
|  | 8238 | #  endif | 
|  | 8239 | #endif | 
|  | 8240 |  | 
|  | 8241 | #ifdef __cplusplus | 
|  | 8242 | extern "C" void exit (int); | 
|  | 8243 | #endif | 
|  | 8244 |  | 
|  | 8245 | void fnord() { int i=42;} | 
|  | 8246 | int main () | 
|  | 8247 | { | 
|  | 8248 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
|  | 8249 | int status = $lt_dlunknown; | 
|  | 8250 |  | 
|  | 8251 | if (self) | 
|  | 8252 | { | 
|  | 8253 | if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
|  | 8254 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
|  | 8255 | /* dlclose (self); */ | 
|  | 8256 | } | 
|  | 8257 |  | 
|  | 8258 | exit (status); | 
|  | 8259 | } | 
|  | 8260 | EOF | 
|  | 8261 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 8262 | (eval $ac_link) 2>&5 | 
|  | 8263 | ac_status=$? | 
|  | 8264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8265 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
|  | 8266 | (./conftest; exit; ) 2>/dev/null | 
|  | 8267 | lt_status=$? | 
|  | 8268 | case x$lt_status in | 
|  | 8269 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | 
|  | 8270 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | 
|  | 8271 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | 
|  | 8272 | esac | 
|  | 8273 | else : | 
|  | 8274 | # compilation failed | 
|  | 8275 | lt_cv_dlopen_self=no | 
|  | 8276 | fi | 
|  | 8277 | fi | 
|  | 8278 | rm -fr conftest* | 
|  | 8279 |  | 
|  | 8280 |  | 
|  | 8281 | fi | 
|  | 8282 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | 
|  | 8283 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | 
|  | 8284 |  | 
|  | 8285 | if test "x$lt_cv_dlopen_self" = xyes; then | 
|  | 8286 | LDFLAGS="$LDFLAGS $link_static_flag" | 
|  | 8287 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | 
|  | 8288 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | 
|  | 8289 | if test "${lt_cv_dlopen_self_static+set}" = set; then | 
|  | 8290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 8291 | else | 
|  | 8292 | if test "$cross_compiling" = yes; then : | 
|  | 8293 | lt_cv_dlopen_self_static=cross | 
|  | 8294 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8295 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8296 | lt_status=$lt_dlunknown | 
|  | 8297 | cat > conftest.$ac_ext <<EOF | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 8298 | #line 8298 "configure" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8299 | #include "confdefs.h" | 
|  | 8300 |  | 
|  | 8301 | #if HAVE_DLFCN_H | 
|  | 8302 | #include <dlfcn.h> | 
|  | 8303 | #endif | 
|  | 8304 |  | 
|  | 8305 | #include <stdio.h> | 
|  | 8306 |  | 
|  | 8307 | #ifdef RTLD_GLOBAL | 
|  | 8308 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
|  | 8309 | #else | 
|  | 8310 | #  ifdef DL_GLOBAL | 
|  | 8311 | #    define LT_DLGLOBAL		DL_GLOBAL | 
|  | 8312 | #  else | 
|  | 8313 | #    define LT_DLGLOBAL		0 | 
|  | 8314 | #  endif | 
|  | 8315 | #endif | 
|  | 8316 |  | 
|  | 8317 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
|  | 8318 | find out it does not work in some platform. */ | 
|  | 8319 | #ifndef LT_DLLAZY_OR_NOW | 
|  | 8320 | #  ifdef RTLD_LAZY | 
|  | 8321 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
|  | 8322 | #  else | 
|  | 8323 | #    ifdef DL_LAZY | 
|  | 8324 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
|  | 8325 | #    else | 
|  | 8326 | #      ifdef RTLD_NOW | 
|  | 8327 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
|  | 8328 | #      else | 
|  | 8329 | #        ifdef DL_NOW | 
|  | 8330 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
|  | 8331 | #        else | 
|  | 8332 | #          define LT_DLLAZY_OR_NOW	0 | 
|  | 8333 | #        endif | 
|  | 8334 | #      endif | 
|  | 8335 | #    endif | 
|  | 8336 | #  endif | 
|  | 8337 | #endif | 
|  | 8338 |  | 
|  | 8339 | #ifdef __cplusplus | 
|  | 8340 | extern "C" void exit (int); | 
|  | 8341 | #endif | 
|  | 8342 |  | 
|  | 8343 | void fnord() { int i=42;} | 
|  | 8344 | int main () | 
|  | 8345 | { | 
|  | 8346 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
|  | 8347 | int status = $lt_dlunknown; | 
|  | 8348 |  | 
|  | 8349 | if (self) | 
|  | 8350 | { | 
|  | 8351 | if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
|  | 8352 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
|  | 8353 | /* dlclose (self); */ | 
|  | 8354 | } | 
|  | 8355 |  | 
|  | 8356 | exit (status); | 
|  | 8357 | } | 
|  | 8358 | EOF | 
|  | 8359 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 8360 | (eval $ac_link) 2>&5 | 
|  | 8361 | ac_status=$? | 
|  | 8362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8363 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
|  | 8364 | (./conftest; exit; ) 2>/dev/null | 
|  | 8365 | lt_status=$? | 
|  | 8366 | case x$lt_status in | 
|  | 8367 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | 
|  | 8368 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | 
|  | 8369 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | 
|  | 8370 | esac | 
|  | 8371 | else : | 
|  | 8372 | # compilation failed | 
|  | 8373 | lt_cv_dlopen_self_static=no | 
|  | 8374 | fi | 
|  | 8375 | fi | 
|  | 8376 | rm -fr conftest* | 
|  | 8377 |  | 
|  | 8378 |  | 
|  | 8379 | fi | 
|  | 8380 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | 
|  | 8381 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | 
|  | 8382 | fi | 
|  | 8383 |  | 
|  | 8384 | CPPFLAGS="$save_CPPFLAGS" | 
|  | 8385 | LDFLAGS="$save_LDFLAGS" | 
|  | 8386 | LIBS="$save_LIBS" | 
|  | 8387 | ;; | 
|  | 8388 | esac | 
|  | 8389 |  | 
|  | 8390 | case $lt_cv_dlopen_self in | 
|  | 8391 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | 
|  | 8392 | *) enable_dlopen_self=unknown ;; | 
|  | 8393 | esac | 
|  | 8394 |  | 
|  | 8395 | case $lt_cv_dlopen_self_static in | 
|  | 8396 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | 
|  | 8397 | *) enable_dlopen_self_static=unknown ;; | 
|  | 8398 | esac | 
|  | 8399 | fi | 
|  | 8400 |  | 
|  | 8401 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8402 | # Report which librarie types wil actually be built | 
|  | 8403 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | 
|  | 8404 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | 
|  | 8405 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | 
|  | 8406 | echo "${ECHO_T}$can_build_shared" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8407 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8408 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | 
|  | 8409 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | 
|  | 8410 | test "$can_build_shared" = "no" && enable_shared=no | 
|  | 8411 |  | 
|  | 8412 | # On AIX, shared libraries and static libraries use the same namespace, and | 
|  | 8413 | # are all built from PIC. | 
|  | 8414 | case "$host_os" in | 
|  | 8415 | aix3*) | 
|  | 8416 | test "$enable_shared" = yes && enable_static=no | 
|  | 8417 | if test -n "$RANLIB"; then | 
|  | 8418 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | 
|  | 8419 | postinstall_cmds='$RANLIB $lib' | 
|  | 8420 | fi | 
|  | 8421 | ;; | 
|  | 8422 |  | 
|  | 8423 | aix4*) | 
|  | 8424 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | 
|  | 8425 | test "$enable_shared" = yes && enable_static=no | 
|  | 8426 | fi | 
|  | 8427 | ;; | 
|  | 8428 | darwin* | rhapsody*) | 
|  | 8429 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then | 
|  | 8430 | archive_cmds_need_lc=no | 
|  | 8431 | case "$host_os" in | 
|  | 8432 | rhapsody* | darwin1.[012]) | 
|  | 8433 | allow_undefined_flag='-undefined suppress' | 
|  | 8434 | ;; | 
|  | 8435 | *) # Darwin 1.3 on | 
|  | 8436 | test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress' | 
|  | 8437 | ;; | 
|  | 8438 | esac | 
|  | 8439 | # FIXME: Relying on posixy $() will cause problems for | 
|  | 8440 | #        cross-compilation, but unfortunately the echo tests do not | 
|  | 8441 | #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles | 
|  | 8442 | #	       `"' quotes if we put them in here... so don't! | 
|  | 8443 | output_verbose_link_cmd='echo' | 
|  | 8444 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' | 
|  | 8445 | module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' | 
|  | 8446 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
|  | 8447 | 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}' | 
|  | 8448 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
|  | 8449 | hardcode_direct=no | 
|  | 8450 | hardcode_automatic=yes | 
|  | 8451 | hardcode_shlibpath_var=unsupported | 
|  | 8452 | whole_archive_flag_spec='-all_load $convenience' | 
|  | 8453 | link_all_deplibs=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8454 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8455 | ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8456 | esac | 
|  | 8457 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | 
|  | 8458 | echo "${ECHO_T}$enable_shared" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8459 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8460 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | 
|  | 8461 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | 
|  | 8462 | # Make sure either enable_shared or enable_static is yes. | 
|  | 8463 | test "$enable_shared" = yes || enable_static=yes | 
|  | 8464 | echo "$as_me:$LINENO: result: $enable_static" >&5 | 
|  | 8465 | echo "${ECHO_T}$enable_static" >&6 | 
|  | 8466 |  | 
|  | 8467 | # The else clause should only fire when bootstrapping the | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8468 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
|  | 8469 | # with your package, and you will get complaints that there are | 
|  | 8470 | # no rules to generate ltmain.sh. | 
|  | 8471 | if test -f "$ltmain"; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8472 | # See if we are running on zsh, and set the options which allow our commands through | 
|  | 8473 | # without removal of \ escapes. | 
|  | 8474 | if test -n "${ZSH_VERSION+set}" ; then | 
|  | 8475 | setopt NO_GLOB_SUBST | 
|  | 8476 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8477 | # Now quote all the things that may contain metacharacters while being | 
|  | 8478 | # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
|  | 8479 | # variables and quote the copies for generation of the libtool script. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8480 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ | 
|  | 8481 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
|  | 8482 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
|  | 8483 | deplibs_check_method reload_flag reload_cmds need_locks \ | 
|  | 8484 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
|  | 8485 | lt_cv_sys_global_symbol_to_c_name_address \ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8486 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8487 | old_postinstall_cmds old_postuninstall_cmds \ | 
|  | 8488 | compiler \ | 
|  | 8489 | CC \ | 
|  | 8490 | LD \ | 
|  | 8491 | lt_prog_compiler_wl \ | 
|  | 8492 | lt_prog_compiler_pic \ | 
|  | 8493 | lt_prog_compiler_static \ | 
|  | 8494 | lt_prog_compiler_no_builtin_flag \ | 
|  | 8495 | export_dynamic_flag_spec \ | 
|  | 8496 | thread_safe_flag_spec \ | 
|  | 8497 | whole_archive_flag_spec \ | 
|  | 8498 | enable_shared_with_static_runtimes \ | 
|  | 8499 | old_archive_cmds \ | 
|  | 8500 | old_archive_from_new_cmds \ | 
|  | 8501 | predep_objects \ | 
|  | 8502 | postdep_objects \ | 
|  | 8503 | predeps \ | 
|  | 8504 | postdeps \ | 
|  | 8505 | compiler_lib_search_path \ | 
|  | 8506 | archive_cmds \ | 
|  | 8507 | archive_expsym_cmds \ | 
|  | 8508 | postinstall_cmds \ | 
|  | 8509 | postuninstall_cmds \ | 
|  | 8510 | old_archive_from_expsyms_cmds \ | 
|  | 8511 | allow_undefined_flag \ | 
|  | 8512 | no_undefined_flag \ | 
|  | 8513 | export_symbols_cmds \ | 
|  | 8514 | hardcode_libdir_flag_spec \ | 
|  | 8515 | hardcode_libdir_flag_spec_ld \ | 
|  | 8516 | hardcode_libdir_separator \ | 
|  | 8517 | hardcode_automatic \ | 
|  | 8518 | module_cmds \ | 
|  | 8519 | module_expsym_cmds \ | 
|  | 8520 | lt_cv_prog_compiler_c_o \ | 
|  | 8521 | exclude_expsyms \ | 
|  | 8522 | include_expsyms; do | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8523 |  | 
|  | 8524 | case $var in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8525 | old_archive_cmds | \ | 
|  | 8526 | old_archive_from_new_cmds | \ | 
|  | 8527 | archive_cmds | \ | 
|  | 8528 | archive_expsym_cmds | \ | 
|  | 8529 | module_cmds | \ | 
|  | 8530 | module_expsym_cmds | \ | 
|  | 8531 | old_archive_from_expsyms_cmds | \ | 
|  | 8532 | export_symbols_cmds | \ | 
|  | 8533 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8534 | postinstall_cmds | postuninstall_cmds | \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8535 | old_postinstall_cmds | old_postuninstall_cmds | \ | 
|  | 8536 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8537 | # Double-quote double-evaled strings. | 
|  | 8538 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | 
|  | 8539 | ;; | 
|  | 8540 | *) | 
|  | 8541 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
|  | 8542 | ;; | 
|  | 8543 | esac | 
|  | 8544 | done | 
|  | 8545 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8546 | case $lt_echo in | 
|  | 8547 | *'\$0 --fallback-echo"') | 
|  | 8548 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
|  | 8549 | ;; | 
|  | 8550 | esac | 
|  | 8551 |  | 
|  | 8552 | cfgfile="${ofile}T" | 
|  | 8553 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | 
|  | 8554 | $rm -f "$cfgfile" | 
|  | 8555 | { echo "$as_me:$LINENO: creating $ofile" >&5 | 
|  | 8556 | echo "$as_me: creating $ofile" >&6;} | 
|  | 8557 |  | 
|  | 8558 | cat <<__EOF__ >> "$cfgfile" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8559 | #! $SHELL | 
|  | 8560 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8561 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8562 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | 
|  | 8563 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | 
|  | 8564 | # | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8565 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 | 
|  | 8566 | # Free Software Foundation, Inc. | 
|  | 8567 | # | 
|  | 8568 | # This file is part of GNU Libtool: | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8569 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | 
|  | 8570 | # | 
|  | 8571 | # This program is free software; you can redistribute it and/or modify | 
|  | 8572 | # it under the terms of the GNU General Public License as published by | 
|  | 8573 | # the Free Software Foundation; either version 2 of the License, or | 
|  | 8574 | # (at your option) any later version. | 
|  | 8575 | # | 
|  | 8576 | # This program is distributed in the hope that it will be useful, but | 
|  | 8577 | # WITHOUT ANY WARRANTY; without even the implied warranty of | 
|  | 8578 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | 
|  | 8579 | # General Public License for more details. | 
|  | 8580 | # | 
|  | 8581 | # You should have received a copy of the GNU General Public License | 
|  | 8582 | # along with this program; if not, write to the Free Software | 
|  | 8583 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 
|  | 8584 | # | 
|  | 8585 | # As a special exception to the GNU General Public License, if you | 
|  | 8586 | # distribute this file as part of a program that contains a | 
|  | 8587 | # configuration script generated by Autoconf, you may include it under | 
|  | 8588 | # the same distribution terms that you use for the rest of that program. | 
|  | 8589 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8590 | # A sed program that does not truncate output. | 
|  | 8591 | SED=$lt_SED | 
|  | 8592 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8593 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8594 | Xsed="$SED -e s/^X//" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8595 |  | 
|  | 8596 | # The HP-UX ksh and POSIX shell print the target directory to stdout | 
|  | 8597 | # if CDPATH is set. | 
|  | 8598 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi | 
|  | 8599 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8600 | # The names of the tagged configurations supported by this script. | 
|  | 8601 | available_tags= | 
|  | 8602 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8603 | # ### BEGIN LIBTOOL CONFIG | 
|  | 8604 |  | 
|  | 8605 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
|  | 8606 |  | 
|  | 8607 | # Shell to use when invoking shell scripts. | 
|  | 8608 | SHELL=$lt_SHELL | 
|  | 8609 |  | 
|  | 8610 | # Whether or not to build shared libraries. | 
|  | 8611 | build_libtool_libs=$enable_shared | 
|  | 8612 |  | 
|  | 8613 | # Whether or not to build static libraries. | 
|  | 8614 | build_old_libs=$enable_static | 
|  | 8615 |  | 
|  | 8616 | # Whether or not to add -lc for building shared libraries. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8617 | build_libtool_need_lc=$archive_cmds_need_lc | 
|  | 8618 |  | 
|  | 8619 | # Whether or not to disallow shared libs when runtime libs are static | 
|  | 8620 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8621 |  | 
|  | 8622 | # Whether or not to optimize for fast installation. | 
|  | 8623 | fast_install=$enable_fast_install | 
|  | 8624 |  | 
|  | 8625 | # The host system. | 
|  | 8626 | host_alias=$host_alias | 
|  | 8627 | host=$host | 
|  | 8628 |  | 
|  | 8629 | # An echo program that does not interpret backslashes. | 
|  | 8630 | echo=$lt_echo | 
|  | 8631 |  | 
|  | 8632 | # The archiver. | 
|  | 8633 | AR=$lt_AR | 
|  | 8634 | AR_FLAGS=$lt_AR_FLAGS | 
|  | 8635 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8636 | # A C compiler. | 
|  | 8637 | LTCC=$lt_LTCC | 
|  | 8638 |  | 
|  | 8639 | # A language-specific compiler. | 
|  | 8640 | CC=$lt_compiler | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8641 |  | 
|  | 8642 | # Is the compiler the GNU C compiler? | 
|  | 8643 | with_gcc=$GCC | 
|  | 8644 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8645 | # An ERE matcher. | 
|  | 8646 | EGREP=$lt_EGREP | 
|  | 8647 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8648 | # The linker used to build libraries. | 
|  | 8649 | LD=$lt_LD | 
|  | 8650 |  | 
|  | 8651 | # Whether we need hard or soft links. | 
|  | 8652 | LN_S=$lt_LN_S | 
|  | 8653 |  | 
|  | 8654 | # A BSD-compatible nm program. | 
|  | 8655 | NM=$lt_NM | 
|  | 8656 |  | 
|  | 8657 | # A symbol stripping program | 
|  | 8658 | STRIP=$STRIP | 
|  | 8659 |  | 
|  | 8660 | # Used to examine libraries when file_magic_cmd begins "file" | 
|  | 8661 | MAGIC_CMD=$MAGIC_CMD | 
|  | 8662 |  | 
|  | 8663 | # Used on cygwin: DLL creation program. | 
|  | 8664 | DLLTOOL="$DLLTOOL" | 
|  | 8665 |  | 
|  | 8666 | # Used on cygwin: object dumper. | 
|  | 8667 | OBJDUMP="$OBJDUMP" | 
|  | 8668 |  | 
|  | 8669 | # Used on cygwin: assembler. | 
|  | 8670 | AS="$AS" | 
|  | 8671 |  | 
|  | 8672 | # The name of the directory that contains temporary libtool files. | 
|  | 8673 | objdir=$objdir | 
|  | 8674 |  | 
|  | 8675 | # How to create reloadable object files. | 
|  | 8676 | reload_flag=$lt_reload_flag | 
|  | 8677 | reload_cmds=$lt_reload_cmds | 
|  | 8678 |  | 
|  | 8679 | # How to pass a linker flag through the compiler. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8680 | wl=$lt_lt_prog_compiler_wl | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8681 |  | 
|  | 8682 | # Object file suffix (normally "o"). | 
|  | 8683 | objext="$ac_objext" | 
|  | 8684 |  | 
|  | 8685 | # Old archive suffix (normally "a"). | 
|  | 8686 | libext="$libext" | 
|  | 8687 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8688 | # Shared library suffix (normally ".so"). | 
|  | 8689 | shrext='$shrext' | 
|  | 8690 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8691 | # Executable file suffix (normally ""). | 
|  | 8692 | exeext="$exeext" | 
|  | 8693 |  | 
|  | 8694 | # Additional compiler flags for building library objects. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8695 | pic_flag=$lt_lt_prog_compiler_pic | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8696 | pic_mode=$pic_mode | 
|  | 8697 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8698 | # What is the maximum length of a command? | 
|  | 8699 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8700 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8701 | # Does compiler simultaneously support -c and -o options? | 
|  | 8702 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8703 |  | 
|  | 8704 | # Must we lock files when doing compilation ? | 
|  | 8705 | need_locks=$lt_need_locks | 
|  | 8706 |  | 
|  | 8707 | # Do we need the lib prefix for modules? | 
|  | 8708 | need_lib_prefix=$need_lib_prefix | 
|  | 8709 |  | 
|  | 8710 | # Do we need a version for libraries? | 
|  | 8711 | need_version=$need_version | 
|  | 8712 |  | 
|  | 8713 | # Whether dlopen is supported. | 
|  | 8714 | dlopen_support=$enable_dlopen | 
|  | 8715 |  | 
|  | 8716 | # Whether dlopen of programs is supported. | 
|  | 8717 | dlopen_self=$enable_dlopen_self | 
|  | 8718 |  | 
|  | 8719 | # Whether dlopen of statically linked programs is supported. | 
|  | 8720 | dlopen_self_static=$enable_dlopen_self_static | 
|  | 8721 |  | 
|  | 8722 | # Compiler flag to prevent dynamic linking. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8723 | link_static_flag=$lt_lt_prog_compiler_static | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8724 |  | 
|  | 8725 | # Compiler flag to turn off builtin functions. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8726 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8727 |  | 
|  | 8728 | # Compiler flag to allow reflexive dlopens. | 
|  | 8729 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | 
|  | 8730 |  | 
|  | 8731 | # Compiler flag to generate shared objects directly from archives. | 
|  | 8732 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | 
|  | 8733 |  | 
|  | 8734 | # Compiler flag to generate thread-safe objects. | 
|  | 8735 | thread_safe_flag_spec=$lt_thread_safe_flag_spec | 
|  | 8736 |  | 
|  | 8737 | # Library versioning type. | 
|  | 8738 | version_type=$version_type | 
|  | 8739 |  | 
|  | 8740 | # Format of library name prefix. | 
|  | 8741 | libname_spec=$lt_libname_spec | 
|  | 8742 |  | 
|  | 8743 | # List of archive names.  First name is the real one, the rest are links. | 
|  | 8744 | # The last name is the one that the linker finds with -lNAME. | 
|  | 8745 | library_names_spec=$lt_library_names_spec | 
|  | 8746 |  | 
|  | 8747 | # The coded name of the library, if different from the real name. | 
|  | 8748 | soname_spec=$lt_soname_spec | 
|  | 8749 |  | 
|  | 8750 | # Commands used to build and install an old-style archive. | 
|  | 8751 | RANLIB=$lt_RANLIB | 
|  | 8752 | old_archive_cmds=$lt_old_archive_cmds | 
|  | 8753 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
|  | 8754 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
|  | 8755 |  | 
|  | 8756 | # Create an old-style archive from a shared archive. | 
|  | 8757 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | 
|  | 8758 |  | 
|  | 8759 | # Create a temporary old-style archive to link instead of a shared archive. | 
|  | 8760 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | 
|  | 8761 |  | 
|  | 8762 | # Commands used to build and install a shared archive. | 
|  | 8763 | archive_cmds=$lt_archive_cmds | 
|  | 8764 | archive_expsym_cmds=$lt_archive_expsym_cmds | 
|  | 8765 | postinstall_cmds=$lt_postinstall_cmds | 
|  | 8766 | postuninstall_cmds=$lt_postuninstall_cmds | 
|  | 8767 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8768 | # Commands used to build a loadable module (assumed same as above if empty) | 
|  | 8769 | module_cmds=$lt_module_cmds | 
|  | 8770 | module_expsym_cmds=$lt_module_expsym_cmds | 
|  | 8771 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8772 | # Commands to strip libraries. | 
|  | 8773 | old_striplib=$lt_old_striplib | 
|  | 8774 | striplib=$lt_striplib | 
|  | 8775 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8776 | # Dependencies to place before the objects being linked to create a | 
|  | 8777 | # shared library. | 
|  | 8778 | predep_objects=$lt_predep_objects | 
|  | 8779 |  | 
|  | 8780 | # Dependencies to place after the objects being linked to create a | 
|  | 8781 | # shared library. | 
|  | 8782 | postdep_objects=$lt_postdep_objects | 
|  | 8783 |  | 
|  | 8784 | # Dependencies to place before the objects being linked to create a | 
|  | 8785 | # shared library. | 
|  | 8786 | predeps=$lt_predeps | 
|  | 8787 |  | 
|  | 8788 | # Dependencies to place after the objects being linked to create a | 
|  | 8789 | # shared library. | 
|  | 8790 | postdeps=$lt_postdeps | 
|  | 8791 |  | 
|  | 8792 | # The library search path used internally by the compiler when linking | 
|  | 8793 | # a shared library. | 
|  | 8794 | compiler_lib_search_path=$lt_compiler_lib_search_path | 
|  | 8795 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8796 | # Method to check whether dependent libraries are shared objects. | 
|  | 8797 | deplibs_check_method=$lt_deplibs_check_method | 
|  | 8798 |  | 
|  | 8799 | # Command to use when deplibs_check_method == file_magic. | 
|  | 8800 | file_magic_cmd=$lt_file_magic_cmd | 
|  | 8801 |  | 
|  | 8802 | # Flag that allows shared libraries with undefined symbols to be built. | 
|  | 8803 | allow_undefined_flag=$lt_allow_undefined_flag | 
|  | 8804 |  | 
|  | 8805 | # Flag that forces no undefined symbols. | 
|  | 8806 | no_undefined_flag=$lt_no_undefined_flag | 
|  | 8807 |  | 
|  | 8808 | # Commands used to finish a libtool library installation in a directory. | 
|  | 8809 | finish_cmds=$lt_finish_cmds | 
|  | 8810 |  | 
|  | 8811 | # Same as above, but a single script fragment to be evaled but not shown. | 
|  | 8812 | finish_eval=$lt_finish_eval | 
|  | 8813 |  | 
|  | 8814 | # Take the output of nm and produce a listing of raw symbols and C names. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8815 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8816 |  | 
|  | 8817 | # Transform the output of nm in a proper C declaration | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8818 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8819 |  | 
|  | 8820 | # Transform the output of nm in a C name address pair | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8821 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8822 |  | 
|  | 8823 | # This is the shared library runtime path variable. | 
|  | 8824 | runpath_var=$runpath_var | 
|  | 8825 |  | 
|  | 8826 | # This is the shared library path variable. | 
|  | 8827 | shlibpath_var=$shlibpath_var | 
|  | 8828 |  | 
|  | 8829 | # Is shlibpath searched before the hard-coded library search path? | 
|  | 8830 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
|  | 8831 |  | 
|  | 8832 | # How to hardcode a shared library path into an executable. | 
|  | 8833 | hardcode_action=$hardcode_action | 
|  | 8834 |  | 
|  | 8835 | # Whether we should hardcode library paths into libraries. | 
|  | 8836 | hardcode_into_libs=$hardcode_into_libs | 
|  | 8837 |  | 
|  | 8838 | # Flag to hardcode \$libdir into a binary during linking. | 
|  | 8839 | # This must work even if \$libdir does not exist. | 
|  | 8840 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | 
|  | 8841 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8842 | # If ld is used when linking, flag to hardcode \$libdir into | 
|  | 8843 | # a binary during linking. This must work even if \$libdir does | 
|  | 8844 | # not exist. | 
|  | 8845 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | 
|  | 8846 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8847 | # Whether we need a single -rpath flag with a separated argument. | 
|  | 8848 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | 
|  | 8849 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8850 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8851 | # resulting binary. | 
|  | 8852 | hardcode_direct=$hardcode_direct | 
|  | 8853 |  | 
|  | 8854 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
|  | 8855 | # resulting binary. | 
|  | 8856 | hardcode_minus_L=$hardcode_minus_L | 
|  | 8857 |  | 
|  | 8858 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
|  | 8859 | # the resulting binary. | 
|  | 8860 | hardcode_shlibpath_var=$hardcode_shlibpath_var | 
|  | 8861 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8862 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
|  | 8863 | # and all subsequent libraries and executables linked against it. | 
|  | 8864 | hardcode_automatic=$hardcode_automatic | 
|  | 8865 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8866 | # Variables whose values should be saved in libtool wrapper scripts and | 
|  | 8867 | # restored at relink time. | 
|  | 8868 | variables_saved_for_relink="$variables_saved_for_relink" | 
|  | 8869 |  | 
|  | 8870 | # Whether libtool must link a program against all its dependency libraries. | 
|  | 8871 | link_all_deplibs=$link_all_deplibs | 
|  | 8872 |  | 
|  | 8873 | # Compile-time system search path for libraries | 
|  | 8874 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
|  | 8875 |  | 
|  | 8876 | # Run-time system search path for libraries | 
|  | 8877 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
|  | 8878 |  | 
|  | 8879 | # Fix the shell variable \$srcfile for the compiler. | 
|  | 8880 | fix_srcfile_path="$fix_srcfile_path" | 
|  | 8881 |  | 
|  | 8882 | # Set to yes if exported symbols are required. | 
|  | 8883 | always_export_symbols=$always_export_symbols | 
|  | 8884 |  | 
|  | 8885 | # The commands to list exported symbols. | 
|  | 8886 | export_symbols_cmds=$lt_export_symbols_cmds | 
|  | 8887 |  | 
|  | 8888 | # The commands to extract the exported symbol list from a shared archive. | 
|  | 8889 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
|  | 8890 |  | 
|  | 8891 | # Symbols that should not be listed in the preloaded symbols. | 
|  | 8892 | exclude_expsyms=$lt_exclude_expsyms | 
|  | 8893 |  | 
|  | 8894 | # Symbols that must always be exported. | 
|  | 8895 | include_expsyms=$lt_include_expsyms | 
|  | 8896 |  | 
|  | 8897 | # ### END LIBTOOL CONFIG | 
|  | 8898 |  | 
|  | 8899 | __EOF__ | 
|  | 8900 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8901 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8902 | case $host_os in | 
|  | 8903 | aix3*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8904 | cat <<\EOF >> "$cfgfile" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8905 |  | 
|  | 8906 | # AIX sometimes has problems with the GCC collect2 program.  For some | 
|  | 8907 | # reason, if we set the COLLECT_NAMES environment variable, the problems | 
|  | 8908 | # vanish in a puff of smoke. | 
|  | 8909 | if test "X${COLLECT_NAMES+set}" != Xset; then | 
|  | 8910 | COLLECT_NAMES= | 
|  | 8911 | export COLLECT_NAMES | 
|  | 8912 | fi | 
|  | 8913 | EOF | 
|  | 8914 | ;; | 
|  | 8915 | esac | 
|  | 8916 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8917 | # We use sed instead of cat because bash on DJGPP gets confused if | 
|  | 8918 | # if finds mixed CR/LF and LF-only lines.  Since sed operates in | 
|  | 8919 | # text mode, it properly converts lines to CR/LF.  This bash problem | 
|  | 8920 | # is reportedly fixed, but why not run on old versions too? | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8921 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8922 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8923 | mv -f "$cfgfile" "$ofile" || \ | 
|  | 8924 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8925 | chmod +x "$ofile" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8926 |  | 
|  | 8927 | else | 
|  | 8928 | # If there is no Makefile yet, we rely on a make rule to execute | 
|  | 8929 | # `config.status --recheck' to rerun these tests and create the | 
|  | 8930 | # libtool script then. | 
|  | 8931 | test -f Makefile && make "$ltmain" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8932 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8933 |  | 
|  | 8934 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8935 | ac_ext=c | 
|  | 8936 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 8937 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 8938 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 8939 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 8940 |  | 
|  | 8941 | CC="$lt_save_CC" | 
|  | 8942 |  | 
|  | 8943 |  | 
|  | 8944 | # Check whether --with-tags or --without-tags was given. | 
|  | 8945 | if test "${with_tags+set}" = set; then | 
|  | 8946 | withval="$with_tags" | 
|  | 8947 | tagnames="$withval" | 
|  | 8948 | fi; | 
|  | 8949 |  | 
|  | 8950 | if test -f "$ltmain" && test -n "$tagnames"; then | 
|  | 8951 | if test ! -f "${ofile}"; then | 
|  | 8952 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 | 
|  | 8953 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} | 
|  | 8954 | fi | 
|  | 8955 |  | 
|  | 8956 | if test -z "$LTCC"; then | 
|  | 8957 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | 
|  | 8958 | if test -z "$LTCC"; then | 
|  | 8959 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 | 
|  | 8960 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} | 
|  | 8961 | else | 
|  | 8962 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 | 
|  | 8963 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} | 
|  | 8964 | fi | 
|  | 8965 | fi | 
|  | 8966 |  | 
|  | 8967 | # Extract list of available tagged configurations in $ofile. | 
|  | 8968 | # Note that this assumes the entire list is on one line. | 
|  | 8969 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | 
|  | 8970 |  | 
|  | 8971 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
|  | 8972 | for tagname in $tagnames; do | 
|  | 8973 | IFS="$lt_save_ifs" | 
|  | 8974 | # Check whether tagname contains only valid characters | 
|  | 8975 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in | 
|  | 8976 | "") ;; | 
|  | 8977 | *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 | 
|  | 8978 | echo "$as_me: error: invalid tag name: $tagname" >&2;} | 
|  | 8979 | { (exit 1); exit 1; }; } | 
|  | 8980 | ;; | 
|  | 8981 | esac | 
|  | 8982 |  | 
|  | 8983 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | 
|  | 8984 | then | 
|  | 8985 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 | 
|  | 8986 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} | 
|  | 8987 | { (exit 1); exit 1; }; } | 
|  | 8988 | fi | 
|  | 8989 |  | 
|  | 8990 | # Update the list of available tags. | 
|  | 8991 | if test -n "$tagname"; then | 
|  | 8992 | echo appending configuration tag \"$tagname\" to $ofile | 
|  | 8993 |  | 
|  | 8994 | case $tagname in | 
|  | 8995 | CXX) | 
|  | 8996 | if test -n "$CXX" && test "X$CXX" != "Xno"; then | 
|  | 8997 | ac_ext=cc | 
|  | 8998 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 8999 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 9000 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 9001 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 9002 |  | 
|  | 9003 |  | 
|  | 9004 |  | 
|  | 9005 |  | 
|  | 9006 | archive_cmds_need_lc_CXX=no | 
|  | 9007 | allow_undefined_flag_CXX= | 
|  | 9008 | always_export_symbols_CXX=no | 
|  | 9009 | archive_expsym_cmds_CXX= | 
|  | 9010 | export_dynamic_flag_spec_CXX= | 
|  | 9011 | hardcode_direct_CXX=no | 
|  | 9012 | hardcode_libdir_flag_spec_CXX= | 
|  | 9013 | hardcode_libdir_flag_spec_ld_CXX= | 
|  | 9014 | hardcode_libdir_separator_CXX= | 
|  | 9015 | hardcode_minus_L_CXX=no | 
|  | 9016 | hardcode_automatic_CXX=no | 
|  | 9017 | module_cmds_CXX= | 
|  | 9018 | module_expsym_cmds_CXX= | 
|  | 9019 | link_all_deplibs_CXX=unknown | 
|  | 9020 | old_archive_cmds_CXX=$old_archive_cmds | 
|  | 9021 | no_undefined_flag_CXX= | 
|  | 9022 | whole_archive_flag_spec_CXX= | 
|  | 9023 | enable_shared_with_static_runtimes_CXX=no | 
|  | 9024 |  | 
|  | 9025 | # Dependencies to place before and after the object being linked: | 
|  | 9026 | predep_objects_CXX= | 
|  | 9027 | postdep_objects_CXX= | 
|  | 9028 | predeps_CXX= | 
|  | 9029 | postdeps_CXX= | 
|  | 9030 | compiler_lib_search_path_CXX= | 
|  | 9031 |  | 
|  | 9032 | # Source file extension for C++ test sources. | 
|  | 9033 | ac_ext=cc | 
|  | 9034 |  | 
|  | 9035 | # Object file extension for compiled C++ test sources. | 
|  | 9036 | objext=o | 
|  | 9037 | objext_CXX=$objext | 
|  | 9038 |  | 
|  | 9039 | # Code to be used in simple compile tests | 
|  | 9040 | lt_simple_compile_test_code="int some_variable = 0;\n" | 
|  | 9041 |  | 
|  | 9042 | # Code to be used in simple link tests | 
|  | 9043 | lt_simple_link_test_code='int main(int, char *) { return(0); }\n' | 
|  | 9044 |  | 
|  | 9045 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
|  | 9046 |  | 
|  | 9047 | # If no C compiler was specified, use CC. | 
|  | 9048 | LTCC=${LTCC-"$CC"} | 
|  | 9049 |  | 
|  | 9050 | # Allow CC to be a program name with arguments. | 
|  | 9051 | compiler=$CC | 
|  | 9052 |  | 
|  | 9053 |  | 
|  | 9054 | # Allow CC to be a program name with arguments. | 
|  | 9055 | lt_save_CC=$CC | 
|  | 9056 | lt_save_LD=$LD | 
|  | 9057 | lt_save_GCC=$GCC | 
|  | 9058 | GCC=$GXX | 
|  | 9059 | lt_save_with_gnu_ld=$with_gnu_ld | 
|  | 9060 | lt_save_path_LD=$lt_cv_path_LD | 
|  | 9061 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | 
|  | 9062 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | 
|  | 9063 | else | 
|  | 9064 | unset lt_cv_prog_gnu_ld | 
|  | 9065 | fi | 
|  | 9066 | if test -n "${lt_cv_path_LDCXX+set}"; then | 
|  | 9067 | lt_cv_path_LD=$lt_cv_path_LDCXX | 
|  | 9068 | else | 
|  | 9069 | unset lt_cv_path_LD | 
|  | 9070 | fi | 
|  | 9071 | test -z "${LDCXX+set}" || LD=$LDCXX | 
|  | 9072 | CC=${CXX-"c++"} | 
|  | 9073 | compiler=$CC | 
|  | 9074 | compiler_CXX=$CC | 
|  | 9075 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | 
|  | 9076 |  | 
|  | 9077 | # We don't want -fno-exception wen compiling C++ code, so set the | 
|  | 9078 | # no_builtin_flag separately | 
|  | 9079 | if test "$GXX" = yes; then | 
|  | 9080 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | 
|  | 9081 | else | 
|  | 9082 | lt_prog_compiler_no_builtin_flag_CXX= | 
|  | 9083 | fi | 
|  | 9084 |  | 
|  | 9085 | if test "$GXX" = yes; then | 
|  | 9086 | # Set up default GNU C++ configuration | 
|  | 9087 |  | 
|  | 9088 |  | 
|  | 9089 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | 
|  | 9090 | if test "${with_gnu_ld+set}" = set; then | 
|  | 9091 | withval="$with_gnu_ld" | 
|  | 9092 | test "$withval" = no || with_gnu_ld=yes | 
|  | 9093 | else | 
|  | 9094 | with_gnu_ld=no | 
|  | 9095 | fi; | 
|  | 9096 | ac_prog=ld | 
|  | 9097 | if test "$GCC" = yes; then | 
|  | 9098 | # Check if gcc -print-prog-name=ld gives a path. | 
|  | 9099 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | 
|  | 9100 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | 
|  | 9101 | case $host in | 
|  | 9102 | *-*-mingw*) | 
|  | 9103 | # gcc leaves a trailing carriage return which upsets mingw | 
|  | 9104 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | 
|  | 9105 | *) | 
|  | 9106 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | 
|  | 9107 | esac | 
|  | 9108 | case $ac_prog in | 
|  | 9109 | # Accept absolute paths. | 
|  | 9110 | [\\/]* | ?:[\\/]*) | 
|  | 9111 | re_direlt='/[^/][^/]*/\.\./' | 
|  | 9112 | # Canonicalize the path of ld | 
|  | 9113 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | 
|  | 9114 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | 
|  | 9115 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | 
|  | 9116 | done | 
|  | 9117 | test -z "$LD" && LD="$ac_prog" | 
|  | 9118 | ;; | 
|  | 9119 | "") | 
|  | 9120 | # If it fails, then pretend we aren't using GCC. | 
|  | 9121 | ac_prog=ld | 
|  | 9122 | ;; | 
|  | 9123 | *) | 
|  | 9124 | # If it is relative, then search for the first ld in PATH. | 
|  | 9125 | with_gnu_ld=unknown | 
|  | 9126 | ;; | 
|  | 9127 | esac | 
|  | 9128 | elif test "$with_gnu_ld" = yes; then | 
|  | 9129 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | 
|  | 9130 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | 
|  | 9131 | else | 
|  | 9132 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | 
|  | 9133 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | 
|  | 9134 | fi | 
|  | 9135 | if test "${lt_cv_path_LD+set}" = set; then | 
|  | 9136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 9137 | else | 
|  | 9138 | if test -z "$LD"; then | 
|  | 9139 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
|  | 9140 | for ac_dir in $PATH; do | 
|  | 9141 | IFS="$lt_save_ifs" | 
|  | 9142 | test -z "$ac_dir" && ac_dir=. | 
|  | 9143 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | 
|  | 9144 | lt_cv_path_LD="$ac_dir/$ac_prog" | 
|  | 9145 | # Check to see if the program is GNU ld.  I'd rather use --version, | 
|  | 9146 | # but apparently some GNU ld's only accept -v. | 
|  | 9147 | # Break only if it was the GNU/non-GNU ld that we prefer. | 
|  | 9148 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | 
|  | 9149 | *GNU* | *'with BFD'*) | 
|  | 9150 | test "$with_gnu_ld" != no && break | 
|  | 9151 | ;; | 
|  | 9152 | *) | 
|  | 9153 | test "$with_gnu_ld" != yes && break | 
|  | 9154 | ;; | 
|  | 9155 | esac | 
|  | 9156 | fi | 
|  | 9157 | done | 
|  | 9158 | IFS="$lt_save_ifs" | 
|  | 9159 | else | 
|  | 9160 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | 
|  | 9161 | fi | 
|  | 9162 | fi | 
|  | 9163 |  | 
|  | 9164 | LD="$lt_cv_path_LD" | 
|  | 9165 | if test -n "$LD"; then | 
|  | 9166 | echo "$as_me:$LINENO: result: $LD" >&5 | 
|  | 9167 | echo "${ECHO_T}$LD" >&6 | 
|  | 9168 | else | 
|  | 9169 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 9170 | echo "${ECHO_T}no" >&6 | 
|  | 9171 | fi | 
|  | 9172 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | 
|  | 9173 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | 
|  | 9174 | { (exit 1); exit 1; }; } | 
|  | 9175 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | 
|  | 9176 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | 
|  | 9177 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | 
|  | 9178 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 9179 | else | 
|  | 9180 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | 
|  | 9181 | case `"$LD" -v 2>&1 </dev/null` in | 
|  | 9182 | *GNU* | *'with BFD'*) | 
|  | 9183 | lt_cv_prog_gnu_ld=yes | 
|  | 9184 | ;; | 
|  | 9185 | *) | 
|  | 9186 | lt_cv_prog_gnu_ld=no | 
|  | 9187 | ;; | 
|  | 9188 | esac | 
|  | 9189 | fi | 
|  | 9190 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | 
|  | 9191 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | 
|  | 9192 | with_gnu_ld=$lt_cv_prog_gnu_ld | 
|  | 9193 |  | 
|  | 9194 |  | 
|  | 9195 |  | 
|  | 9196 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | 
|  | 9197 | # archiving commands below assume that GNU ld is being used. | 
|  | 9198 | if test "$with_gnu_ld" = yes; then | 
|  | 9199 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 9200 | 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' | 
|  | 9201 |  | 
|  | 9202 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | 
|  | 9203 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
|  | 9204 |  | 
|  | 9205 | # If archive_cmds runs LD, not CC, wlarc should be empty | 
|  | 9206 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | 
|  | 9207 | #     investigate it a little bit more. (MM) | 
|  | 9208 | wlarc='${wl}' | 
|  | 9209 |  | 
|  | 9210 | # ancient GNU ld didn't support --whole-archive et. al. | 
|  | 9211 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | 
|  | 9212 | grep 'no-whole-archive' > /dev/null; then | 
|  | 9213 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
|  | 9214 | else | 
|  | 9215 | whole_archive_flag_spec_CXX= | 
|  | 9216 | fi | 
|  | 9217 | else | 
|  | 9218 | with_gnu_ld=no | 
|  | 9219 | wlarc= | 
|  | 9220 |  | 
|  | 9221 | # A generic and very simple default shared library creation | 
|  | 9222 | # command for GNU C++ for the case where it uses the native | 
|  | 9223 | # linker, instead of GNU ld.  If possible, this setting should | 
|  | 9224 | # overridden to take advantage of the native linker features on | 
|  | 9225 | # the platform it is being used on. | 
|  | 9226 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | 
|  | 9227 | fi | 
|  | 9228 |  | 
|  | 9229 | # Commands to make compiler produce verbose output that lists | 
|  | 9230 | # what "hidden" libraries, object files and flags are used when | 
|  | 9231 | # linking a shared library. | 
|  | 9232 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | 
|  | 9233 |  | 
|  | 9234 | else | 
|  | 9235 | GXX=no | 
|  | 9236 | with_gnu_ld=no | 
|  | 9237 | wlarc= | 
|  | 9238 | fi | 
|  | 9239 |  | 
|  | 9240 | # PORTME: fill in a description of your system's C++ link characteristics | 
|  | 9241 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
|  | 9242 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
|  | 9243 | ld_shlibs_CXX=yes | 
|  | 9244 | case $host_os in | 
|  | 9245 | aix3*) | 
|  | 9246 | # FIXME: insert proper C++ library support | 
|  | 9247 | ld_shlibs_CXX=no | 
|  | 9248 | ;; | 
|  | 9249 | aix4* | aix5*) | 
|  | 9250 | if test "$host_cpu" = ia64; then | 
|  | 9251 | # On IA64, the linker does run time linking by default, so we don't | 
|  | 9252 | # have to do anything special. | 
|  | 9253 | aix_use_runtimelinking=no | 
|  | 9254 | exp_sym_flag='-Bexport' | 
|  | 9255 | no_entry_flag="" | 
|  | 9256 | else | 
|  | 9257 | aix_use_runtimelinking=no | 
|  | 9258 |  | 
|  | 9259 | # Test if we are trying to use run time linking or normal | 
|  | 9260 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
|  | 9261 | # need to do runtime linking. | 
|  | 9262 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 
|  | 9263 | for ld_flag in $LDFLAGS; do | 
|  | 9264 | case $ld_flag in | 
|  | 9265 | *-brtl*) | 
|  | 9266 | aix_use_runtimelinking=yes | 
|  | 9267 | break | 
|  | 9268 | ;; | 
|  | 9269 | esac | 
|  | 9270 | done | 
|  | 9271 | esac | 
|  | 9272 |  | 
|  | 9273 | exp_sym_flag='-bexport' | 
|  | 9274 | no_entry_flag='-bnoentry' | 
|  | 9275 | fi | 
|  | 9276 |  | 
|  | 9277 | # When large executables or shared objects are built, AIX ld can | 
|  | 9278 | # have problems creating the table of contents.  If linking a library | 
|  | 9279 | # or program results in "error TOC overflow" add -mminimal-toc to | 
|  | 9280 | # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
|  | 9281 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
|  | 9282 |  | 
|  | 9283 | archive_cmds_CXX='' | 
|  | 9284 | hardcode_direct_CXX=yes | 
|  | 9285 | hardcode_libdir_separator_CXX=':' | 
|  | 9286 | link_all_deplibs_CXX=yes | 
|  | 9287 |  | 
|  | 9288 | if test "$GXX" = yes; then | 
|  | 9289 | case $host_os in aix4.012|aix4.012.*) | 
|  | 9290 | # We only want to do this on AIX 4.2 and lower, the check | 
|  | 9291 | # below for broken collect2 doesn't work under 4.3+ | 
|  | 9292 | collect2name=`${CC} -print-prog-name=collect2` | 
|  | 9293 | if test -f "$collect2name" && \ | 
|  | 9294 | strings "$collect2name" | grep resolve_lib_name >/dev/null | 
|  | 9295 | then | 
|  | 9296 | # We have reworked collect2 | 
|  | 9297 | hardcode_direct_CXX=yes | 
|  | 9298 | else | 
|  | 9299 | # We have old collect2 | 
|  | 9300 | hardcode_direct_CXX=unsupported | 
|  | 9301 | # It fails to find uninstalled libraries when the uninstalled | 
|  | 9302 | # path is not listed in the libpath.  Setting hardcode_minus_L | 
|  | 9303 | # to unsupported forces relinking | 
|  | 9304 | hardcode_minus_L_CXX=yes | 
|  | 9305 | hardcode_libdir_flag_spec_CXX='-L$libdir' | 
|  | 9306 | hardcode_libdir_separator_CXX= | 
|  | 9307 | fi | 
|  | 9308 | esac | 
|  | 9309 | shared_flag='-shared' | 
|  | 9310 | else | 
|  | 9311 | # not using gcc | 
|  | 9312 | if test "$host_cpu" = ia64; then | 
|  | 9313 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
|  | 9314 | # chokes on -Wl,-G. The following line is correct: | 
|  | 9315 | shared_flag='-G' | 
|  | 9316 | else | 
|  | 9317 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 9318 | shared_flag='${wl}-G' | 
|  | 9319 | else | 
|  | 9320 | shared_flag='${wl}-bM:SRE' | 
|  | 9321 | fi | 
|  | 9322 | fi | 
|  | 9323 | fi | 
|  | 9324 |  | 
|  | 9325 | # It seems that -bexpall does not export symbols beginning with | 
|  | 9326 | # underscore (_), so it is better to generate a list of symbols to export. | 
|  | 9327 | always_export_symbols_CXX=yes | 
|  | 9328 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 9329 | # Warning - without using the other runtime loading flags (-brtl), | 
|  | 9330 | # -berok will link without error, but may produce a broken library. | 
|  | 9331 | allow_undefined_flag_CXX='-berok' | 
|  | 9332 | # Determine the default libpath from the value encoded in an empty executable. | 
|  | 9333 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 9334 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9335 | /* confdefs.h.  */ | 
|  | 9336 | _ACEOF | 
|  | 9337 | cat confdefs.h >>conftest.$ac_ext | 
|  | 9338 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 9339 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9340 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9341 | int | 
|  | 9342 | main () | 
|  | 9343 | { | 
|  | 9344 |  | 
|  | 9345 | ; | 
|  | 9346 | return 0; | 
|  | 9347 | } | 
|  | 9348 | _ACEOF | 
|  | 9349 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 9350 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 9351 | (eval $ac_link) 2>&5 | 
|  | 9352 | ac_status=$? | 
|  | 9353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9354 | (exit $ac_status); } && | 
|  | 9355 | { ac_try='test -s conftest$ac_exeext' | 
|  | 9356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 9357 | (eval $ac_try) 2>&5 | 
|  | 9358 | ac_status=$? | 
|  | 9359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9360 | (exit $ac_status); }; }; then | 
|  | 9361 |  | 
|  | 9362 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
|  | 9363 | }'` | 
|  | 9364 | # Check for a 64-bit object if we didn't find anything. | 
|  | 9365 | 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; } | 
|  | 9366 | }'`; fi | 
|  | 9367 | else | 
|  | 9368 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9369 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 9370 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9371 | fi | 
|  | 9372 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 9373 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
|  | 9374 |  | 
|  | 9375 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | 
|  | 9376 |  | 
|  | 9377 | 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" | 
|  | 9378 | else | 
|  | 9379 | if test "$host_cpu" = ia64; then | 
|  | 9380 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | 
|  | 9381 | allow_undefined_flag_CXX="-z nodefs" | 
|  | 9382 | 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" | 
|  | 9383 | else | 
|  | 9384 | # Determine the default libpath from the value encoded in an empty executable. | 
|  | 9385 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 9386 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9387 | /* confdefs.h.  */ | 
|  | 9388 | _ACEOF | 
|  | 9389 | cat confdefs.h >>conftest.$ac_ext | 
|  | 9390 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 9391 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9392 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9393 | int | 
|  | 9394 | main () | 
|  | 9395 | { | 
|  | 9396 |  | 
|  | 9397 | ; | 
|  | 9398 | return 0; | 
|  | 9399 | } | 
|  | 9400 | _ACEOF | 
|  | 9401 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 9402 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 9403 | (eval $ac_link) 2>&5 | 
|  | 9404 | ac_status=$? | 
|  | 9405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9406 | (exit $ac_status); } && | 
|  | 9407 | { ac_try='test -s conftest$ac_exeext' | 
|  | 9408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 9409 | (eval $ac_try) 2>&5 | 
|  | 9410 | ac_status=$? | 
|  | 9411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9412 | (exit $ac_status); }; }; then | 
|  | 9413 |  | 
|  | 9414 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
|  | 9415 | }'` | 
|  | 9416 | # Check for a 64-bit object if we didn't find anything. | 
|  | 9417 | 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; } | 
|  | 9418 | }'`; fi | 
|  | 9419 | else | 
|  | 9420 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9421 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 9422 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9423 | fi | 
|  | 9424 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 9425 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
|  | 9426 |  | 
|  | 9427 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | 
|  | 9428 | # Warning - without using the other run time loading flags, | 
|  | 9429 | # -berok will link without error, but may produce a broken library. | 
|  | 9430 | no_undefined_flag_CXX=' ${wl}-bernotok' | 
|  | 9431 | allow_undefined_flag_CXX=' ${wl}-berok' | 
|  | 9432 | # -bexpall does not export symbols beginning with underscore (_) | 
|  | 9433 | always_export_symbols_CXX=yes | 
|  | 9434 | # Exported symbols can be pulled into shared objects from archives | 
|  | 9435 | whole_archive_flag_spec_CXX=' ' | 
|  | 9436 | archive_cmds_need_lc_CXX=yes | 
|  | 9437 | # This is similar to how AIX traditionally builds it's shared libraries. | 
|  | 9438 | 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' | 
|  | 9439 | fi | 
|  | 9440 | fi | 
|  | 9441 | ;; | 
|  | 9442 | chorus*) | 
|  | 9443 | case $cc_basename in | 
|  | 9444 | *) | 
|  | 9445 | # FIXME: insert proper C++ library support | 
|  | 9446 | ld_shlibs_CXX=no | 
|  | 9447 | ;; | 
|  | 9448 | esac | 
|  | 9449 | ;; | 
|  | 9450 |  | 
|  | 9451 | cygwin* | mingw* | pw32*) | 
|  | 9452 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | 
|  | 9453 | # as there is no search path for DLLs. | 
|  | 9454 | hardcode_libdir_flag_spec_CXX='-L$libdir' | 
|  | 9455 | allow_undefined_flag_CXX=unsupported | 
|  | 9456 | always_export_symbols_CXX=no | 
|  | 9457 | enable_shared_with_static_runtimes_CXX=yes | 
|  | 9458 |  | 
|  | 9459 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 
|  | 9460 | 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' | 
|  | 9461 | # If the export-symbols file already is a .def file (1st line | 
|  | 9462 | # is EXPORTS), use it as is; otherwise, prepend... | 
|  | 9463 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
|  | 9464 | cp $export_symbols $output_objdir/$soname.def; | 
|  | 9465 | else | 
|  | 9466 | echo EXPORTS > $output_objdir/$soname.def; | 
|  | 9467 | cat $export_symbols >> $output_objdir/$soname.def; | 
|  | 9468 | fi~ | 
|  | 9469 | $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' | 
|  | 9470 | else | 
|  | 9471 | ld_shlibs_CXX=no | 
|  | 9472 | fi | 
|  | 9473 | ;; | 
|  | 9474 |  | 
|  | 9475 | darwin* | rhapsody*) | 
|  | 9476 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then | 
|  | 9477 | archive_cmds_need_lc_CXX=no | 
|  | 9478 | case "$host_os" in | 
|  | 9479 | rhapsody* | darwin1.[012]) | 
|  | 9480 | allow_undefined_flag_CXX='-undefined suppress' | 
|  | 9481 | ;; | 
|  | 9482 | *) # Darwin 1.3 on | 
|  | 9483 | test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress' | 
|  | 9484 | ;; | 
|  | 9485 | esac | 
|  | 9486 | lt_int_apple_cc_single_mod=no | 
|  | 9487 | output_verbose_link_cmd='echo' | 
|  | 9488 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then | 
|  | 9489 | lt_int_apple_cc_single_mod=yes | 
|  | 9490 | fi | 
|  | 9491 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | 
|  | 9492 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 
|  | 9493 | else | 
|  | 9494 | archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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' | 
|  | 9495 | fi | 
|  | 9496 | module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' | 
|  | 9497 |  | 
|  | 9498 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
|  | 9499 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | 
|  | 9500 | 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}' | 
|  | 9501 | else | 
|  | 9502 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' | 
|  | 9503 | fi | 
|  | 9504 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
|  | 9505 | hardcode_direct_CXX=no | 
|  | 9506 | hardcode_automatic_CXX=yes | 
|  | 9507 | hardcode_shlibpath_var_CXX=unsupported | 
|  | 9508 | whole_archive_flag_spec_CXX='-all_load $convenience' | 
|  | 9509 | link_all_deplibs_CXX=yes | 
|  | 9510 | fi | 
|  | 9511 | ;; | 
|  | 9512 |  | 
|  | 9513 | dgux*) | 
|  | 9514 | case $cc_basename in | 
|  | 9515 | ec++) | 
|  | 9516 | # FIXME: insert proper C++ library support | 
|  | 9517 | ld_shlibs_CXX=no | 
|  | 9518 | ;; | 
|  | 9519 | ghcx) | 
|  | 9520 | # Green Hills C++ Compiler | 
|  | 9521 | # FIXME: insert proper C++ library support | 
|  | 9522 | ld_shlibs_CXX=no | 
|  | 9523 | ;; | 
|  | 9524 | *) | 
|  | 9525 | # FIXME: insert proper C++ library support | 
|  | 9526 | ld_shlibs_CXX=no | 
|  | 9527 | ;; | 
|  | 9528 | esac | 
|  | 9529 | ;; | 
|  | 9530 | freebsd12*) | 
|  | 9531 | # C++ shared libraries reported to be fairly broken before switch to ELF | 
|  | 9532 | ld_shlibs_CXX=no | 
|  | 9533 | ;; | 
|  | 9534 | freebsd-elf*) | 
|  | 9535 | archive_cmds_need_lc_CXX=no | 
|  | 9536 | ;; | 
|  | 9537 | freebsd*) | 
|  | 9538 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | 
|  | 9539 | # conventions | 
|  | 9540 | ld_shlibs_CXX=yes | 
|  | 9541 | ;; | 
|  | 9542 | gnu*) | 
|  | 9543 | ;; | 
|  | 9544 | hpux9*) | 
|  | 9545 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | 
|  | 9546 | hardcode_libdir_separator_CXX=: | 
|  | 9547 | export_dynamic_flag_spec_CXX='${wl}-E' | 
|  | 9548 | hardcode_direct_CXX=yes | 
|  | 9549 | hardcode_minus_L_CXX=yes # Not in the search PATH, | 
|  | 9550 | # but as the default | 
|  | 9551 | # location of the library. | 
|  | 9552 |  | 
|  | 9553 | case $cc_basename in | 
|  | 9554 | CC) | 
|  | 9555 | # FIXME: insert proper C++ library support | 
|  | 9556 | ld_shlibs_CXX=no | 
|  | 9557 | ;; | 
|  | 9558 | aCC) | 
|  | 9559 | 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' | 
|  | 9560 | # Commands to make compiler produce verbose output that lists | 
|  | 9561 | # what "hidden" libraries, object files and flags are used when | 
|  | 9562 | # linking a shared library. | 
|  | 9563 | # | 
|  | 9564 | # There doesn't appear to be a way to prevent this compiler from | 
|  | 9565 | # explicitly linking system object files so we need to strip them | 
|  | 9566 | # from the output so that they don't get included in the library | 
|  | 9567 | # dependencies. | 
|  | 9568 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | 
|  | 9569 | ;; | 
|  | 9570 | *) | 
|  | 9571 | if test "$GXX" = yes; then | 
|  | 9572 | 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' | 
|  | 9573 | else | 
|  | 9574 | # FIXME: insert proper C++ library support | 
|  | 9575 | ld_shlibs_CXX=no | 
|  | 9576 | fi | 
|  | 9577 | ;; | 
|  | 9578 | esac | 
|  | 9579 | ;; | 
|  | 9580 | hpux10*|hpux11*) | 
|  | 9581 | if test $with_gnu_ld = no; then | 
|  | 9582 | case "$host_cpu" in | 
|  | 9583 | hppa*64*) | 
|  | 9584 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | 
|  | 9585 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' | 
|  | 9586 | hardcode_libdir_separator_CXX=: | 
|  | 9587 | ;; | 
|  | 9588 | ia64*) | 
|  | 9589 | hardcode_libdir_flag_spec_CXX='-L$libdir' | 
|  | 9590 | ;; | 
|  | 9591 | *) | 
|  | 9592 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | 
|  | 9593 | hardcode_libdir_separator_CXX=: | 
|  | 9594 | export_dynamic_flag_spec_CXX='${wl}-E' | 
|  | 9595 | ;; | 
|  | 9596 | esac | 
|  | 9597 | fi | 
|  | 9598 | case "$host_cpu" in | 
|  | 9599 | hppa*64*) | 
|  | 9600 | hardcode_direct_CXX=no | 
|  | 9601 | hardcode_shlibpath_var_CXX=no | 
|  | 9602 | ;; | 
|  | 9603 | ia64*) | 
|  | 9604 | hardcode_direct_CXX=no | 
|  | 9605 | hardcode_shlibpath_var_CXX=no | 
|  | 9606 | hardcode_minus_L_CXX=yes # Not in the search PATH, | 
|  | 9607 | # but as the default | 
|  | 9608 | # location of the library. | 
|  | 9609 | ;; | 
|  | 9610 | *) | 
|  | 9611 | hardcode_direct_CXX=yes | 
|  | 9612 | hardcode_minus_L_CXX=yes # Not in the search PATH, | 
|  | 9613 | # but as the default | 
|  | 9614 | # location of the library. | 
|  | 9615 | ;; | 
|  | 9616 | esac | 
|  | 9617 |  | 
|  | 9618 | case $cc_basename in | 
|  | 9619 | CC) | 
|  | 9620 | # FIXME: insert proper C++ library support | 
|  | 9621 | ld_shlibs_CXX=no | 
|  | 9622 | ;; | 
|  | 9623 | aCC) | 
|  | 9624 | case "$host_cpu" in | 
|  | 9625 | hppa*64*|ia64*) | 
|  | 9626 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | 
|  | 9627 | ;; | 
|  | 9628 | *) | 
|  | 9629 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
|  | 9630 | ;; | 
|  | 9631 | esac | 
|  | 9632 | # Commands to make compiler produce verbose output that lists | 
|  | 9633 | # what "hidden" libraries, object files and flags are used when | 
|  | 9634 | # linking a shared library. | 
|  | 9635 | # | 
|  | 9636 | # There doesn't appear to be a way to prevent this compiler from | 
|  | 9637 | # explicitly linking system object files so we need to strip them | 
|  | 9638 | # from the output so that they don't get included in the library | 
|  | 9639 | # dependencies. | 
|  | 9640 | 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' | 
|  | 9641 | ;; | 
|  | 9642 | *) | 
|  | 9643 | if test "$GXX" = yes; then | 
|  | 9644 | if test $with_gnu_ld = no; then | 
|  | 9645 | case "$host_cpu" in | 
|  | 9646 | ia64*|hppa*64*) | 
|  | 9647 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | 
|  | 9648 | ;; | 
|  | 9649 | *) | 
|  | 9650 | 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' | 
|  | 9651 | ;; | 
|  | 9652 | esac | 
|  | 9653 | fi | 
|  | 9654 | else | 
|  | 9655 | # FIXME: insert proper C++ library support | 
|  | 9656 | ld_shlibs_CXX=no | 
|  | 9657 | fi | 
|  | 9658 | ;; | 
|  | 9659 | esac | 
|  | 9660 | ;; | 
|  | 9661 | irix5* | irix6*) | 
|  | 9662 | case $cc_basename in | 
|  | 9663 | CC) | 
|  | 9664 | # SGI C++ | 
|  | 9665 | 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' | 
|  | 9666 |  | 
|  | 9667 | # Archives containing C++ object files must be created using | 
|  | 9668 | # "CC -ar", where "CC" is the IRIX C++ compiler.  This is | 
|  | 9669 | # necessary to make sure instantiated templates are included | 
|  | 9670 | # in the archive. | 
|  | 9671 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | 
|  | 9672 | ;; | 
|  | 9673 | *) | 
|  | 9674 | if test "$GXX" = yes; then | 
|  | 9675 | if test "$with_gnu_ld" = no; then | 
|  | 9676 | 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' | 
|  | 9677 | else | 
|  | 9678 | 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' | 
|  | 9679 | fi | 
|  | 9680 | fi | 
|  | 9681 | link_all_deplibs_CXX=yes | 
|  | 9682 | ;; | 
|  | 9683 | esac | 
|  | 9684 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
|  | 9685 | hardcode_libdir_separator_CXX=: | 
|  | 9686 | ;; | 
|  | 9687 | linux*) | 
|  | 9688 | case $cc_basename in | 
|  | 9689 | KCC) | 
|  | 9690 | # Kuck and Associates, Inc. (KAI) C++ Compiler | 
|  | 9691 |  | 
|  | 9692 | # KCC will only create a shared library if the output file | 
|  | 9693 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | 
|  | 9694 | # to its proper name (with version) after linking. | 
|  | 9695 | 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' | 
|  | 9696 | 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' | 
|  | 9697 | # Commands to make compiler produce verbose output that lists | 
|  | 9698 | # what "hidden" libraries, object files and flags are used when | 
|  | 9699 | # linking a shared library. | 
|  | 9700 | # | 
|  | 9701 | # There doesn't appear to be a way to prevent this compiler from | 
|  | 9702 | # explicitly linking system object files so we need to strip them | 
|  | 9703 | # from the output so that they don't get included in the library | 
|  | 9704 | # dependencies. | 
|  | 9705 | 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' | 
|  | 9706 |  | 
|  | 9707 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' | 
|  | 9708 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
|  | 9709 |  | 
|  | 9710 | # Archives containing C++ object files must be created using | 
|  | 9711 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | 
|  | 9712 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | 
|  | 9713 | ;; | 
|  | 9714 | icpc) | 
|  | 9715 | # Intel C++ | 
|  | 9716 | with_gnu_ld=yes | 
|  | 9717 | archive_cmds_need_lc_CXX=no | 
|  | 9718 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 9719 | 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' | 
|  | 9720 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
|  | 9721 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
|  | 9722 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | 
|  | 9723 | ;; | 
|  | 9724 | cxx) | 
|  | 9725 | # Compaq C++ | 
|  | 9726 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 9727 | 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' | 
|  | 9728 |  | 
|  | 9729 | runpath_var=LD_RUN_PATH | 
|  | 9730 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | 
|  | 9731 | hardcode_libdir_separator_CXX=: | 
|  | 9732 |  | 
|  | 9733 | # Commands to make compiler produce verbose output that lists | 
|  | 9734 | # what "hidden" libraries, object files and flags are used when | 
|  | 9735 | # linking a shared library. | 
|  | 9736 | # | 
|  | 9737 | # There doesn't appear to be a way to prevent this compiler from | 
|  | 9738 | # explicitly linking system object files so we need to strip them | 
|  | 9739 | # from the output so that they don't get included in the library | 
|  | 9740 | # dependencies. | 
|  | 9741 | 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' | 
|  | 9742 | ;; | 
|  | 9743 | esac | 
|  | 9744 | ;; | 
|  | 9745 | lynxos*) | 
|  | 9746 | # FIXME: insert proper C++ library support | 
|  | 9747 | ld_shlibs_CXX=no | 
|  | 9748 | ;; | 
|  | 9749 | m88k*) | 
|  | 9750 | # FIXME: insert proper C++ library support | 
|  | 9751 | ld_shlibs_CXX=no | 
|  | 9752 | ;; | 
|  | 9753 | mvs*) | 
|  | 9754 | case $cc_basename in | 
|  | 9755 | cxx) | 
|  | 9756 | # FIXME: insert proper C++ library support | 
|  | 9757 | ld_shlibs_CXX=no | 
|  | 9758 | ;; | 
|  | 9759 | *) | 
|  | 9760 | # FIXME: insert proper C++ library support | 
|  | 9761 | ld_shlibs_CXX=no | 
|  | 9762 | ;; | 
|  | 9763 | esac | 
|  | 9764 | ;; | 
|  | 9765 | netbsd*) | 
|  | 9766 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
|  | 9767 | archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | 
|  | 9768 | wlarc= | 
|  | 9769 | hardcode_libdir_flag_spec_CXX='-R$libdir' | 
|  | 9770 | hardcode_direct_CXX=yes | 
|  | 9771 | hardcode_shlibpath_var_CXX=no | 
|  | 9772 | fi | 
|  | 9773 | # Workaround some broken pre-1.5 toolchains | 
|  | 9774 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | 
|  | 9775 | ;; | 
|  | 9776 | osf3*) | 
|  | 9777 | case $cc_basename in | 
|  | 9778 | KCC) | 
|  | 9779 | # Kuck and Associates, Inc. (KAI) C++ Compiler | 
|  | 9780 |  | 
|  | 9781 | # KCC will only create a shared library if the output file | 
|  | 9782 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | 
|  | 9783 | # to its proper name (with version) after linking. | 
|  | 9784 | 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' | 
|  | 9785 |  | 
|  | 9786 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
|  | 9787 | hardcode_libdir_separator_CXX=: | 
|  | 9788 |  | 
|  | 9789 | # Archives containing C++ object files must be created using | 
|  | 9790 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | 
|  | 9791 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | 
|  | 9792 |  | 
|  | 9793 | ;; | 
|  | 9794 | RCC) | 
|  | 9795 | # Rational C++ 2.4.1 | 
|  | 9796 | # FIXME: insert proper C++ library support | 
|  | 9797 | ld_shlibs_CXX=no | 
|  | 9798 | ;; | 
|  | 9799 | cxx) | 
|  | 9800 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | 
|  | 9801 | 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' | 
|  | 9802 |  | 
|  | 9803 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
|  | 9804 | hardcode_libdir_separator_CXX=: | 
|  | 9805 |  | 
|  | 9806 | # Commands to make compiler produce verbose output that lists | 
|  | 9807 | # what "hidden" libraries, object files and flags are used when | 
|  | 9808 | # linking a shared library. | 
|  | 9809 | # | 
|  | 9810 | # There doesn't appear to be a way to prevent this compiler from | 
|  | 9811 | # explicitly linking system object files so we need to strip them | 
|  | 9812 | # from the output so that they don't get included in the library | 
|  | 9813 | # dependencies. | 
|  | 9814 | 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' | 
|  | 9815 | ;; | 
|  | 9816 | *) | 
|  | 9817 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 
|  | 9818 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | 
|  | 9819 | 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' | 
|  | 9820 |  | 
|  | 9821 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
|  | 9822 | hardcode_libdir_separator_CXX=: | 
|  | 9823 |  | 
|  | 9824 | # Commands to make compiler produce verbose output that lists | 
|  | 9825 | # what "hidden" libraries, object files and flags are used when | 
|  | 9826 | # linking a shared library. | 
|  | 9827 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | 
|  | 9828 |  | 
|  | 9829 | else | 
|  | 9830 | # FIXME: insert proper C++ library support | 
|  | 9831 | ld_shlibs_CXX=no | 
|  | 9832 | fi | 
|  | 9833 | ;; | 
|  | 9834 | esac | 
|  | 9835 | ;; | 
|  | 9836 | osf4* | osf5*) | 
|  | 9837 | case $cc_basename in | 
|  | 9838 | KCC) | 
|  | 9839 | # Kuck and Associates, Inc. (KAI) C++ Compiler | 
|  | 9840 |  | 
|  | 9841 | # KCC will only create a shared library if the output file | 
|  | 9842 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | 
|  | 9843 | # to its proper name (with version) after linking. | 
|  | 9844 | 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' | 
|  | 9845 |  | 
|  | 9846 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
|  | 9847 | hardcode_libdir_separator_CXX=: | 
|  | 9848 |  | 
|  | 9849 | # Archives containing C++ object files must be created using | 
|  | 9850 | # the KAI C++ compiler. | 
|  | 9851 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' | 
|  | 9852 | ;; | 
|  | 9853 | RCC) | 
|  | 9854 | # Rational C++ 2.4.1 | 
|  | 9855 | # FIXME: insert proper C++ library support | 
|  | 9856 | ld_shlibs_CXX=no | 
|  | 9857 | ;; | 
|  | 9858 | cxx) | 
|  | 9859 | allow_undefined_flag_CXX=' -expect_unresolved \*' | 
|  | 9860 | 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' | 
|  | 9861 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | 
|  | 9862 | echo "-hidden">> $lib.exp~ | 
|  | 9863 | $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~ | 
|  | 9864 | $rm $lib.exp' | 
|  | 9865 |  | 
|  | 9866 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | 
|  | 9867 | hardcode_libdir_separator_CXX=: | 
|  | 9868 |  | 
|  | 9869 | # Commands to make compiler produce verbose output that lists | 
|  | 9870 | # what "hidden" libraries, object files and flags are used when | 
|  | 9871 | # linking a shared library. | 
|  | 9872 | # | 
|  | 9873 | # There doesn't appear to be a way to prevent this compiler from | 
|  | 9874 | # explicitly linking system object files so we need to strip them | 
|  | 9875 | # from the output so that they don't get included in the library | 
|  | 9876 | # dependencies. | 
|  | 9877 | 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' | 
|  | 9878 | ;; | 
|  | 9879 | *) | 
|  | 9880 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 
|  | 9881 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | 
|  | 9882 | 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' | 
|  | 9883 |  | 
|  | 9884 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
|  | 9885 | hardcode_libdir_separator_CXX=: | 
|  | 9886 |  | 
|  | 9887 | # Commands to make compiler produce verbose output that lists | 
|  | 9888 | # what "hidden" libraries, object files and flags are used when | 
|  | 9889 | # linking a shared library. | 
|  | 9890 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | 
|  | 9891 |  | 
|  | 9892 | else | 
|  | 9893 | # FIXME: insert proper C++ library support | 
|  | 9894 | ld_shlibs_CXX=no | 
|  | 9895 | fi | 
|  | 9896 | ;; | 
|  | 9897 | esac | 
|  | 9898 | ;; | 
|  | 9899 | psos*) | 
|  | 9900 | # FIXME: insert proper C++ library support | 
|  | 9901 | ld_shlibs_CXX=no | 
|  | 9902 | ;; | 
|  | 9903 | sco*) | 
|  | 9904 | archive_cmds_need_lc_CXX=no | 
|  | 9905 | case $cc_basename in | 
|  | 9906 | CC) | 
|  | 9907 | # FIXME: insert proper C++ library support | 
|  | 9908 | ld_shlibs_CXX=no | 
|  | 9909 | ;; | 
|  | 9910 | *) | 
|  | 9911 | # FIXME: insert proper C++ library support | 
|  | 9912 | ld_shlibs_CXX=no | 
|  | 9913 | ;; | 
|  | 9914 | esac | 
|  | 9915 | ;; | 
|  | 9916 | sunos4*) | 
|  | 9917 | case $cc_basename in | 
|  | 9918 | CC) | 
|  | 9919 | # Sun C++ 4.x | 
|  | 9920 | # FIXME: insert proper C++ library support | 
|  | 9921 | ld_shlibs_CXX=no | 
|  | 9922 | ;; | 
|  | 9923 | lcc) | 
|  | 9924 | # Lucid | 
|  | 9925 | # FIXME: insert proper C++ library support | 
|  | 9926 | ld_shlibs_CXX=no | 
|  | 9927 | ;; | 
|  | 9928 | *) | 
|  | 9929 | # FIXME: insert proper C++ library support | 
|  | 9930 | ld_shlibs_CXX=no | 
|  | 9931 | ;; | 
|  | 9932 | esac | 
|  | 9933 | ;; | 
|  | 9934 | solaris*) | 
|  | 9935 | case $cc_basename in | 
|  | 9936 | CC) | 
|  | 9937 | # Sun C++ 4.2, 5.x and Centerline C++ | 
|  | 9938 | no_undefined_flag_CXX=' -zdefs' | 
|  | 9939 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
|  | 9940 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|  | 9941 | $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' | 
|  | 9942 |  | 
|  | 9943 | hardcode_libdir_flag_spec_CXX='-R$libdir' | 
|  | 9944 | hardcode_shlibpath_var_CXX=no | 
|  | 9945 | case $host_os in | 
|  | 9946 | solaris2.0-5 | solaris2.0-5.*) ;; | 
|  | 9947 | *) | 
|  | 9948 | # The C++ compiler is used as linker so we must use $wl | 
|  | 9949 | # flag to pass the commands to the underlying system | 
|  | 9950 | # linker. | 
|  | 9951 | # Supported since Solaris 2.6 (maybe 2.5.1?) | 
|  | 9952 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | 
|  | 9953 | ;; | 
|  | 9954 | esac | 
|  | 9955 | link_all_deplibs_CXX=yes | 
|  | 9956 |  | 
|  | 9957 | # Commands to make compiler produce verbose output that lists | 
|  | 9958 | # what "hidden" libraries, object files and flags are used when | 
|  | 9959 | # linking a shared library. | 
|  | 9960 | # | 
|  | 9961 | # There doesn't appear to be a way to prevent this compiler from | 
|  | 9962 | # explicitly linking system object files so we need to strip them | 
|  | 9963 | # from the output so that they don't get included in the library | 
|  | 9964 | # dependencies. | 
|  | 9965 | 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' | 
|  | 9966 |  | 
|  | 9967 | # Archives containing C++ object files must be created using | 
|  | 9968 | # "CC -xar", where "CC" is the Sun C++ compiler.  This is | 
|  | 9969 | # necessary to make sure instantiated templates are included | 
|  | 9970 | # in the archive. | 
|  | 9971 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | 
|  | 9972 | ;; | 
|  | 9973 | gcx) | 
|  | 9974 | # Green Hills C++ Compiler | 
|  | 9975 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 
|  | 9976 |  | 
|  | 9977 | # The C++ compiler must be used to create the archive. | 
|  | 9978 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | 
|  | 9979 | ;; | 
|  | 9980 | *) | 
|  | 9981 | # GNU C++ compiler with Solaris linker | 
|  | 9982 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 
|  | 9983 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | 
|  | 9984 | if $CC --version | grep -v '^2\.7' > /dev/null; then | 
|  | 9985 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 
|  | 9986 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|  | 9987 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | 
|  | 9988 |  | 
|  | 9989 | # Commands to make compiler produce verbose output that lists | 
|  | 9990 | # what "hidden" libraries, object files and flags are used when | 
|  | 9991 | # linking a shared library. | 
|  | 9992 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | 
|  | 9993 | else | 
|  | 9994 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | 
|  | 9995 | # platform. | 
|  | 9996 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 
|  | 9997 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|  | 9998 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | 
|  | 9999 |  | 
|  | 10000 | # Commands to make compiler produce verbose output that lists | 
|  | 10001 | # what "hidden" libraries, object files and flags are used when | 
|  | 10002 | # linking a shared library. | 
|  | 10003 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | 
|  | 10004 | fi | 
|  | 10005 |  | 
|  | 10006 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | 
|  | 10007 | fi | 
|  | 10008 | ;; | 
|  | 10009 | esac | 
|  | 10010 | ;; | 
|  | 10011 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | 
|  | 10012 | archive_cmds_need_lc_CXX=no | 
|  | 10013 | ;; | 
|  | 10014 | tandem*) | 
|  | 10015 | case $cc_basename in | 
|  | 10016 | NCC) | 
|  | 10017 | # NonStop-UX NCC 3.20 | 
|  | 10018 | # FIXME: insert proper C++ library support | 
|  | 10019 | ld_shlibs_CXX=no | 
|  | 10020 | ;; | 
|  | 10021 | *) | 
|  | 10022 | # FIXME: insert proper C++ library support | 
|  | 10023 | ld_shlibs_CXX=no | 
|  | 10024 | ;; | 
|  | 10025 | esac | 
|  | 10026 | ;; | 
|  | 10027 | vxworks*) | 
|  | 10028 | # FIXME: insert proper C++ library support | 
|  | 10029 | ld_shlibs_CXX=no | 
|  | 10030 | ;; | 
|  | 10031 | *) | 
|  | 10032 | # FIXME: insert proper C++ library support | 
|  | 10033 | ld_shlibs_CXX=no | 
|  | 10034 | ;; | 
|  | 10035 | esac | 
|  | 10036 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | 
|  | 10037 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | 
|  | 10038 | test "$ld_shlibs_CXX" = no && can_build_shared=no | 
|  | 10039 |  | 
|  | 10040 | GCC_CXX="$GXX" | 
|  | 10041 | LD_CXX="$LD" | 
|  | 10042 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10043 |  | 
|  | 10044 | cat > conftest.$ac_ext <<EOF | 
|  | 10045 | class Foo | 
|  | 10046 | { | 
|  | 10047 | public: | 
|  | 10048 | Foo (void) { a = 0; } | 
|  | 10049 | private: | 
|  | 10050 | int a; | 
|  | 10051 | }; | 
|  | 10052 | EOF | 
|  | 10053 |  | 
|  | 10054 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 10055 | (eval $ac_compile) 2>&5 | 
|  | 10056 | ac_status=$? | 
|  | 10057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10058 | (exit $ac_status); }; then | 
|  | 10059 | # Parse the compiler output and extract the necessary | 
|  | 10060 | # objects, libraries and library flags. | 
|  | 10061 |  | 
|  | 10062 | # Sentinel used to keep track of whether or not we are before | 
|  | 10063 | # the conftest object file. | 
|  | 10064 | pre_test_object_deps_done=no | 
|  | 10065 |  | 
|  | 10066 | # The `*' in the case matches for architectures that use `case' in | 
|  | 10067 | # $output_verbose_cmd can trigger glob expansion during the loop | 
|  | 10068 | # eval without this substitution. | 
|  | 10069 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" | 
|  | 10070 |  | 
|  | 10071 | for p in `eval $output_verbose_link_cmd`; do | 
|  | 10072 | case $p in | 
|  | 10073 |  | 
|  | 10074 | -L* | -R* | -l*) | 
|  | 10075 | # Some compilers place space between "-{L,R}" and the path. | 
|  | 10076 | # Remove the space. | 
|  | 10077 | if test $p = "-L" \ | 
|  | 10078 | || test $p = "-R"; then | 
|  | 10079 | prev=$p | 
|  | 10080 | continue | 
|  | 10081 | else | 
|  | 10082 | prev= | 
|  | 10083 | fi | 
|  | 10084 |  | 
|  | 10085 | if test "$pre_test_object_deps_done" = no; then | 
|  | 10086 | case $p in | 
|  | 10087 | -L* | -R*) | 
|  | 10088 | # Internal compiler library paths should come after those | 
|  | 10089 | # provided the user.  The postdeps already come after the | 
|  | 10090 | # user supplied libs so there is no need to process them. | 
|  | 10091 | if test -z "$compiler_lib_search_path_CXX"; then | 
|  | 10092 | compiler_lib_search_path_CXX="${prev}${p}" | 
|  | 10093 | else | 
|  | 10094 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | 
|  | 10095 | fi | 
|  | 10096 | ;; | 
|  | 10097 | # The "-l" case would never come before the object being | 
|  | 10098 | # linked, so don't bother handling this case. | 
|  | 10099 | esac | 
|  | 10100 | else | 
|  | 10101 | if test -z "$postdeps_CXX"; then | 
|  | 10102 | postdeps_CXX="${prev}${p}" | 
|  | 10103 | else | 
|  | 10104 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | 
|  | 10105 | fi | 
|  | 10106 | fi | 
|  | 10107 | ;; | 
|  | 10108 |  | 
|  | 10109 | *.$objext) | 
|  | 10110 | # This assumes that the test object file only shows up | 
|  | 10111 | # once in the compiler output. | 
|  | 10112 | if test "$p" = "conftest.$objext"; then | 
|  | 10113 | pre_test_object_deps_done=yes | 
|  | 10114 | continue | 
|  | 10115 | fi | 
|  | 10116 |  | 
|  | 10117 | if test "$pre_test_object_deps_done" = no; then | 
|  | 10118 | if test -z "$predep_objects_CXX"; then | 
|  | 10119 | predep_objects_CXX="$p" | 
|  | 10120 | else | 
|  | 10121 | predep_objects_CXX="$predep_objects_CXX $p" | 
|  | 10122 | fi | 
|  | 10123 | else | 
|  | 10124 | if test -z "$postdep_objects_CXX"; then | 
|  | 10125 | postdep_objects_CXX="$p" | 
|  | 10126 | else | 
|  | 10127 | postdep_objects_CXX="$postdep_objects_CXX $p" | 
|  | 10128 | fi | 
|  | 10129 | fi | 
|  | 10130 | ;; | 
|  | 10131 |  | 
|  | 10132 | *) ;; # Ignore the rest. | 
|  | 10133 |  | 
|  | 10134 | esac | 
|  | 10135 | done | 
|  | 10136 |  | 
|  | 10137 | # Clean up. | 
|  | 10138 | rm -f a.out a.exe | 
|  | 10139 | else | 
|  | 10140 | echo "libtool.m4: error: problem compiling CXX test program" | 
|  | 10141 | fi | 
|  | 10142 |  | 
|  | 10143 | $rm -f confest.$objext | 
|  | 10144 |  | 
|  | 10145 | case " $postdeps_CXX " in | 
|  | 10146 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | 
|  | 10147 | esac | 
|  | 10148 |  | 
|  | 10149 | lt_prog_compiler_wl_CXX= | 
|  | 10150 | lt_prog_compiler_pic_CXX= | 
|  | 10151 | lt_prog_compiler_static_CXX= | 
|  | 10152 |  | 
|  | 10153 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 
|  | 10154 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | 
|  | 10155 |  | 
|  | 10156 | # C++ specific cases for pic, static, wl, etc. | 
|  | 10157 | if test "$GXX" = yes; then | 
|  | 10158 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 10159 | lt_prog_compiler_static_CXX='-static' | 
|  | 10160 |  | 
|  | 10161 | case $host_os in | 
|  | 10162 | aix*) | 
|  | 10163 | # All AIX code is PIC. | 
|  | 10164 | if test "$host_cpu" = ia64; then | 
|  | 10165 | # AIX 5 now supports IA64 processor | 
|  | 10166 | lt_prog_compiler_static_CXX='-Bstatic' | 
|  | 10167 | fi | 
|  | 10168 | ;; | 
|  | 10169 | amigaos*) | 
|  | 10170 | # FIXME: we need at least 68020 code to build shared libraries, but | 
|  | 10171 | # adding the `-m68020' flag to GCC prevents building anything better, | 
|  | 10172 | # like `-m68040'. | 
|  | 10173 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | 
|  | 10174 | ;; | 
|  | 10175 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
|  | 10176 | # PIC is the default for these OSes. | 
|  | 10177 | ;; | 
|  | 10178 | mingw* | os2* | pw32*) | 
|  | 10179 | # This hack is so that the source file can tell whether it is being | 
|  | 10180 | # built for inclusion in a dll (and should export symbols for example). | 
|  | 10181 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | 
|  | 10182 | ;; | 
|  | 10183 | darwin* | rhapsody*) | 
|  | 10184 | # PIC is the default on this platform | 
|  | 10185 | # Common symbols not allowed in MH_DYLIB files | 
|  | 10186 | lt_prog_compiler_pic_CXX='-fno-common' | 
|  | 10187 | ;; | 
|  | 10188 | *djgpp*) | 
|  | 10189 | # DJGPP does not support shared libraries at all | 
|  | 10190 | lt_prog_compiler_pic_CXX= | 
|  | 10191 | ;; | 
|  | 10192 | sysv4*MP*) | 
|  | 10193 | if test -d /usr/nec; then | 
|  | 10194 | lt_prog_compiler_pic_CXX=-Kconform_pic | 
|  | 10195 | fi | 
|  | 10196 | ;; | 
|  | 10197 | hpux*) | 
|  | 10198 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
|  | 10199 | # not for PA HP-UX. | 
|  | 10200 | case "$host_cpu" in | 
|  | 10201 | hppa*64*|ia64*) | 
|  | 10202 | ;; | 
|  | 10203 | *) | 
|  | 10204 | lt_prog_compiler_pic_CXX='-fPIC' | 
|  | 10205 | ;; | 
|  | 10206 | esac | 
|  | 10207 | ;; | 
|  | 10208 | *) | 
|  | 10209 | lt_prog_compiler_pic_CXX='-fPIC' | 
|  | 10210 | ;; | 
|  | 10211 | esac | 
|  | 10212 | else | 
|  | 10213 | case $host_os in | 
|  | 10214 | aix4* | aix5*) | 
|  | 10215 | # All AIX code is PIC. | 
|  | 10216 | if test "$host_cpu" = ia64; then | 
|  | 10217 | # AIX 5 now supports IA64 processor | 
|  | 10218 | lt_prog_compiler_static_CXX='-Bstatic' | 
|  | 10219 | else | 
|  | 10220 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | 
|  | 10221 | fi | 
|  | 10222 | ;; | 
|  | 10223 | chorus*) | 
|  | 10224 | case $cc_basename in | 
|  | 10225 | cxch68) | 
|  | 10226 | # Green Hills C++ Compiler | 
|  | 10227 | # _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" | 
|  | 10228 | ;; | 
|  | 10229 | esac | 
|  | 10230 | ;; | 
|  | 10231 | dgux*) | 
|  | 10232 | case $cc_basename in | 
|  | 10233 | ec++) | 
|  | 10234 | lt_prog_compiler_pic_CXX='-KPIC' | 
|  | 10235 | ;; | 
|  | 10236 | ghcx) | 
|  | 10237 | # Green Hills C++ Compiler | 
|  | 10238 | lt_prog_compiler_pic_CXX='-pic' | 
|  | 10239 | ;; | 
|  | 10240 | *) | 
|  | 10241 | ;; | 
|  | 10242 | esac | 
|  | 10243 | ;; | 
|  | 10244 | freebsd*) | 
|  | 10245 | # FreeBSD uses GNU C++ | 
|  | 10246 | ;; | 
|  | 10247 | hpux9* | hpux10* | hpux11*) | 
|  | 10248 | case $cc_basename in | 
|  | 10249 | CC) | 
|  | 10250 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 10251 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | 
|  | 10252 | if test "$host_cpu" != ia64; then | 
|  | 10253 | lt_prog_compiler_pic_CXX='+Z' | 
|  | 10254 | fi | 
|  | 10255 | ;; | 
|  | 10256 | aCC) | 
|  | 10257 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 10258 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | 
|  | 10259 | case "$host_cpu" in | 
|  | 10260 | hppa*64*|ia64*) | 
|  | 10261 | # +Z the default | 
|  | 10262 | ;; | 
|  | 10263 | *) | 
|  | 10264 | lt_prog_compiler_pic_CXX='+Z' | 
|  | 10265 | ;; | 
|  | 10266 | esac | 
|  | 10267 | ;; | 
|  | 10268 | *) | 
|  | 10269 | ;; | 
|  | 10270 | esac | 
|  | 10271 | ;; | 
|  | 10272 | irix5* | irix6* | nonstopux*) | 
|  | 10273 | case $cc_basename in | 
|  | 10274 | CC) | 
|  | 10275 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 10276 | lt_prog_compiler_static_CXX='-non_shared' | 
|  | 10277 | # CC pic flag -KPIC is the default. | 
|  | 10278 | ;; | 
|  | 10279 | *) | 
|  | 10280 | ;; | 
|  | 10281 | esac | 
|  | 10282 | ;; | 
|  | 10283 | linux*) | 
|  | 10284 | case $cc_basename in | 
|  | 10285 | KCC) | 
|  | 10286 | # KAI C++ Compiler | 
|  | 10287 | lt_prog_compiler_wl_CXX='--backend -Wl,' | 
|  | 10288 | lt_prog_compiler_pic_CXX='-fPIC' | 
|  | 10289 | ;; | 
|  | 10290 | icpc) | 
|  | 10291 | # Intel C++ | 
|  | 10292 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 10293 | lt_prog_compiler_pic_CXX='-KPIC' | 
|  | 10294 | lt_prog_compiler_static_CXX='-static' | 
|  | 10295 | ;; | 
|  | 10296 | cxx) | 
|  | 10297 | # Compaq C++ | 
|  | 10298 | # Make sure the PIC flag is empty.  It appears that all Alpha | 
|  | 10299 | # Linux and Compaq Tru64 Unix objects are PIC. | 
|  | 10300 | lt_prog_compiler_pic_CXX= | 
|  | 10301 | lt_prog_compiler_static_CXX='-non_shared' | 
|  | 10302 | ;; | 
|  | 10303 | *) | 
|  | 10304 | ;; | 
|  | 10305 | esac | 
|  | 10306 | ;; | 
|  | 10307 | lynxos*) | 
|  | 10308 | ;; | 
|  | 10309 | m88k*) | 
|  | 10310 | ;; | 
|  | 10311 | mvs*) | 
|  | 10312 | case $cc_basename in | 
|  | 10313 | cxx) | 
|  | 10314 | lt_prog_compiler_pic_CXX='-W c,exportall' | 
|  | 10315 | ;; | 
|  | 10316 | *) | 
|  | 10317 | ;; | 
|  | 10318 | esac | 
|  | 10319 | ;; | 
|  | 10320 | netbsd*) | 
|  | 10321 | ;; | 
|  | 10322 | osf3* | osf4* | osf5*) | 
|  | 10323 | case $cc_basename in | 
|  | 10324 | KCC) | 
|  | 10325 | lt_prog_compiler_wl_CXX='--backend -Wl,' | 
|  | 10326 | ;; | 
|  | 10327 | RCC) | 
|  | 10328 | # Rational C++ 2.4.1 | 
|  | 10329 | lt_prog_compiler_pic_CXX='-pic' | 
|  | 10330 | ;; | 
|  | 10331 | cxx) | 
|  | 10332 | # Digital/Compaq C++ | 
|  | 10333 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 10334 | # Make sure the PIC flag is empty.  It appears that all Alpha | 
|  | 10335 | # Linux and Compaq Tru64 Unix objects are PIC. | 
|  | 10336 | lt_prog_compiler_pic_CXX= | 
|  | 10337 | lt_prog_compiler_static_CXX='-non_shared' | 
|  | 10338 | ;; | 
|  | 10339 | *) | 
|  | 10340 | ;; | 
|  | 10341 | esac | 
|  | 10342 | ;; | 
|  | 10343 | psos*) | 
|  | 10344 | ;; | 
|  | 10345 | sco*) | 
|  | 10346 | case $cc_basename in | 
|  | 10347 | CC) | 
|  | 10348 | lt_prog_compiler_pic_CXX='-fPIC' | 
|  | 10349 | ;; | 
|  | 10350 | *) | 
|  | 10351 | ;; | 
|  | 10352 | esac | 
|  | 10353 | ;; | 
|  | 10354 | solaris*) | 
|  | 10355 | case $cc_basename in | 
|  | 10356 | CC) | 
|  | 10357 | # Sun C++ 4.2, 5.x and Centerline C++ | 
|  | 10358 | lt_prog_compiler_pic_CXX='-KPIC' | 
|  | 10359 | lt_prog_compiler_static_CXX='-Bstatic' | 
|  | 10360 | lt_prog_compiler_wl_CXX='-Qoption ld ' | 
|  | 10361 | ;; | 
|  | 10362 | gcx) | 
|  | 10363 | # Green Hills C++ Compiler | 
|  | 10364 | lt_prog_compiler_pic_CXX='-PIC' | 
|  | 10365 | ;; | 
|  | 10366 | *) | 
|  | 10367 | ;; | 
|  | 10368 | esac | 
|  | 10369 | ;; | 
|  | 10370 | sunos4*) | 
|  | 10371 | case $cc_basename in | 
|  | 10372 | CC) | 
|  | 10373 | # Sun C++ 4.x | 
|  | 10374 | lt_prog_compiler_pic_CXX='-pic' | 
|  | 10375 | lt_prog_compiler_static_CXX='-Bstatic' | 
|  | 10376 | ;; | 
|  | 10377 | lcc) | 
|  | 10378 | # Lucid | 
|  | 10379 | lt_prog_compiler_pic_CXX='-pic' | 
|  | 10380 | ;; | 
|  | 10381 | *) | 
|  | 10382 | ;; | 
|  | 10383 | esac | 
|  | 10384 | ;; | 
|  | 10385 | tandem*) | 
|  | 10386 | case $cc_basename in | 
|  | 10387 | NCC) | 
|  | 10388 | # NonStop-UX NCC 3.20 | 
|  | 10389 | lt_prog_compiler_pic_CXX='-KPIC' | 
|  | 10390 | ;; | 
|  | 10391 | *) | 
|  | 10392 | ;; | 
|  | 10393 | esac | 
|  | 10394 | ;; | 
|  | 10395 | unixware*) | 
|  | 10396 | ;; | 
|  | 10397 | vxworks*) | 
|  | 10398 | ;; | 
|  | 10399 | *) | 
|  | 10400 | lt_prog_compiler_can_build_shared_CXX=no | 
|  | 10401 | ;; | 
|  | 10402 | esac | 
|  | 10403 | fi | 
|  | 10404 |  | 
|  | 10405 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 | 
|  | 10406 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 | 
|  | 10407 |  | 
|  | 10408 | # | 
|  | 10409 | # Check to make sure the PIC flag actually works. | 
|  | 10410 | # | 
|  | 10411 | if test -n "$lt_prog_compiler_pic_CXX"; then | 
|  | 10412 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | 
|  | 10413 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 | 
|  | 10414 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then | 
|  | 10415 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 10416 | else | 
|  | 10417 | lt_prog_compiler_pic_works_CXX=no | 
|  | 10418 | ac_outfile=conftest.$ac_objext | 
|  | 10419 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 10420 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | 
|  | 10421 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 10422 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 10423 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 10424 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 10425 | # The option is referenced via a variable to avoid confusing sed. | 
|  | 10426 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 10427 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
|  | 10428 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 10429 | -e 's:$: $lt_compiler_flag:'` | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 10430 | (eval echo "\"\$as_me:10430: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10431 | (eval "$lt_compile" 2>conftest.err) | 
|  | 10432 | ac_status=$? | 
|  | 10433 | cat conftest.err >&5 | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 10434 | echo "$as_me:10434: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10435 | if (exit $ac_status) && test -s "$ac_outfile"; then | 
|  | 10436 | # The compiler can only warn and ignore the option if not recognized | 
|  | 10437 | # So say no if there are warnings | 
|  | 10438 | if test ! -s conftest.err; then | 
|  | 10439 | lt_prog_compiler_pic_works_CXX=yes | 
|  | 10440 | fi | 
|  | 10441 | fi | 
|  | 10442 | $rm conftest* | 
|  | 10443 |  | 
|  | 10444 | fi | 
|  | 10445 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 | 
|  | 10446 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 | 
|  | 10447 |  | 
|  | 10448 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then | 
|  | 10449 | case $lt_prog_compiler_pic_CXX in | 
|  | 10450 | "" | " "*) ;; | 
|  | 10451 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | 
|  | 10452 | esac | 
|  | 10453 | else | 
|  | 10454 | lt_prog_compiler_pic_CXX= | 
|  | 10455 | lt_prog_compiler_can_build_shared_CXX=no | 
|  | 10456 | fi | 
|  | 10457 |  | 
|  | 10458 | fi | 
|  | 10459 | case "$host_os" in | 
|  | 10460 | # For platforms which do not support PIC, -DPIC is meaningless: | 
|  | 10461 | *djgpp*) | 
|  | 10462 | lt_prog_compiler_pic_CXX= | 
|  | 10463 | ;; | 
|  | 10464 | *) | 
|  | 10465 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | 
|  | 10466 | ;; | 
|  | 10467 | esac | 
|  | 10468 |  | 
|  | 10469 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
|  | 10470 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | 
|  | 10471 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | 
|  | 10472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 10473 | else | 
|  | 10474 | lt_cv_prog_compiler_c_o_CXX=no | 
|  | 10475 | $rm -r conftest 2>/dev/null | 
|  | 10476 | mkdir conftest | 
|  | 10477 | cd conftest | 
|  | 10478 | mkdir out | 
|  | 10479 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 10480 |  | 
|  | 10481 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers | 
|  | 10482 | # that will create temporary files in the current directory regardless of | 
|  | 10483 | # the output directory.  Thus, making CWD read-only will cause this test | 
|  | 10484 | # to fail, enabling locking or at least warning the user not to do parallel | 
|  | 10485 | # builds. | 
|  | 10486 | chmod -w . | 
|  | 10487 |  | 
|  | 10488 | lt_compiler_flag="-o out/conftest2.$ac_objext" | 
|  | 10489 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 10490 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 10491 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 10492 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 10493 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 10494 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
|  | 10495 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 10496 | -e 's:$: $lt_compiler_flag:'` | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 10497 | (eval echo "\"\$as_me:10497: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10498 | (eval "$lt_compile" 2>out/conftest.err) | 
|  | 10499 | ac_status=$? | 
|  | 10500 | cat out/conftest.err >&5 | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 10501 | echo "$as_me:10501: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10502 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
|  | 10503 | then | 
|  | 10504 | # The compiler can only warn and ignore the option if not recognized | 
|  | 10505 | # So say no if there are warnings | 
|  | 10506 | if test ! -s out/conftest.err; then | 
|  | 10507 | lt_cv_prog_compiler_c_o_CXX=yes | 
|  | 10508 | fi | 
|  | 10509 | fi | 
|  | 10510 | chmod u+w . | 
|  | 10511 | $rm conftest* out/* | 
|  | 10512 | rmdir out | 
|  | 10513 | cd .. | 
|  | 10514 | rmdir conftest | 
|  | 10515 | $rm conftest* | 
|  | 10516 |  | 
|  | 10517 | fi | 
|  | 10518 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | 
|  | 10519 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 | 
|  | 10520 |  | 
|  | 10521 |  | 
|  | 10522 | hard_links="nottested" | 
|  | 10523 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | 
|  | 10524 | # do not overwrite the value of need_locks provided by the user | 
|  | 10525 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | 
|  | 10526 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | 
|  | 10527 | hard_links=yes | 
|  | 10528 | $rm conftest* | 
|  | 10529 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
|  | 10530 | touch conftest.a | 
|  | 10531 | ln conftest.a conftest.b 2>&5 || hard_links=no | 
|  | 10532 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
|  | 10533 | echo "$as_me:$LINENO: result: $hard_links" >&5 | 
|  | 10534 | echo "${ECHO_T}$hard_links" >&6 | 
|  | 10535 | if test "$hard_links" = no; then | 
|  | 10536 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
|  | 10537 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
|  | 10538 | need_locks=warn | 
|  | 10539 | fi | 
|  | 10540 | else | 
|  | 10541 | need_locks=no | 
|  | 10542 | fi | 
|  | 10543 |  | 
|  | 10544 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
|  | 10545 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
|  | 10546 |  | 
|  | 10547 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
|  | 10548 | case $host_os in | 
|  | 10549 | aix4* | aix5*) | 
|  | 10550 | # If we're using GNU nm, then we don't want the "-C" option. | 
|  | 10551 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | 
|  | 10552 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 
|  | 10553 | 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' | 
|  | 10554 | else | 
|  | 10555 | 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' | 
|  | 10556 | fi | 
|  | 10557 | ;; | 
|  | 10558 | pw32*) | 
|  | 10559 | export_symbols_cmds_CXX="$ltdll_cmds" | 
|  | 10560 | ;; | 
|  | 10561 | cygwin* | mingw*) | 
|  | 10562 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 
|  | 10563 | ;; | 
|  | 10564 | *) | 
|  | 10565 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
|  | 10566 | ;; | 
|  | 10567 | esac | 
|  | 10568 |  | 
|  | 10569 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | 
|  | 10570 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | 
|  | 10571 | test "$ld_shlibs_CXX" = no && can_build_shared=no | 
|  | 10572 |  | 
|  | 10573 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
|  | 10574 | if test "$GCC" = yes; then | 
|  | 10575 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
|  | 10576 | fi | 
|  | 10577 |  | 
|  | 10578 | # | 
|  | 10579 | # Do we need to explicitly link libc? | 
|  | 10580 | # | 
|  | 10581 | case "x$archive_cmds_need_lc_CXX" in | 
|  | 10582 | x|xyes) | 
|  | 10583 | # Assume -lc should be added | 
|  | 10584 | archive_cmds_need_lc_CXX=yes | 
|  | 10585 |  | 
|  | 10586 | if test "$enable_shared" = yes && test "$GCC" = yes; then | 
|  | 10587 | case $archive_cmds_CXX in | 
|  | 10588 | *'~'*) | 
|  | 10589 | # FIXME: we may have to deal with multi-command sequences. | 
|  | 10590 | ;; | 
|  | 10591 | '$CC '*) | 
|  | 10592 | # Test whether the compiler implicitly links with -lc since on some | 
|  | 10593 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
|  | 10594 | # to ld, don't add -lc before -lgcc. | 
|  | 10595 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | 
|  | 10596 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | 
|  | 10597 | $rm conftest* | 
|  | 10598 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 10599 |  | 
|  | 10600 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 10601 | (eval $ac_compile) 2>&5 | 
|  | 10602 | ac_status=$? | 
|  | 10603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10604 | (exit $ac_status); } 2>conftest.err; then | 
|  | 10605 | soname=conftest | 
|  | 10606 | lib=conftest | 
|  | 10607 | libobjs=conftest.$ac_objext | 
|  | 10608 | deplibs= | 
|  | 10609 | wl=$lt_prog_compiler_wl_CXX | 
|  | 10610 | compiler_flags=-v | 
|  | 10611 | linker_flags=-v | 
|  | 10612 | verstring= | 
|  | 10613 | output_objdir=. | 
|  | 10614 | libname=conftest | 
|  | 10615 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | 
|  | 10616 | allow_undefined_flag_CXX= | 
|  | 10617 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | 
|  | 10618 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
|  | 10619 | ac_status=$? | 
|  | 10620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10621 | (exit $ac_status); } | 
|  | 10622 | then | 
|  | 10623 | archive_cmds_need_lc_CXX=no | 
|  | 10624 | else | 
|  | 10625 | archive_cmds_need_lc_CXX=yes | 
|  | 10626 | fi | 
|  | 10627 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | 
|  | 10628 | else | 
|  | 10629 | cat conftest.err 1>&5 | 
|  | 10630 | fi | 
|  | 10631 | $rm conftest* | 
|  | 10632 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 | 
|  | 10633 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 | 
|  | 10634 | ;; | 
|  | 10635 | esac | 
|  | 10636 | fi | 
|  | 10637 | ;; | 
|  | 10638 | esac | 
|  | 10639 |  | 
|  | 10640 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 
|  | 10641 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 
|  | 10642 | hardcode_action_CXX= | 
|  | 10643 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ | 
|  | 10644 | test -n "$runpath_var CXX" || \ | 
|  | 10645 | test "X$hardcode_automatic_CXX"="Xyes" ; then | 
|  | 10646 |  | 
|  | 10647 | # We can hardcode non-existant directories. | 
|  | 10648 | if test "$hardcode_direct_CXX" != no && | 
|  | 10649 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
|  | 10650 | # have to relink, otherwise we might link with an installed library | 
|  | 10651 | # when we should be linking with a yet-to-be-installed one | 
|  | 10652 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | 
|  | 10653 | test "$hardcode_minus_L_CXX" != no; then | 
|  | 10654 | # Linking always hardcodes the temporary library directory. | 
|  | 10655 | hardcode_action_CXX=relink | 
|  | 10656 | else | 
|  | 10657 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
|  | 10658 | hardcode_action_CXX=immediate | 
|  | 10659 | fi | 
|  | 10660 | else | 
|  | 10661 | # We cannot hardcode anything, or else we can only hardcode existing | 
|  | 10662 | # directories. | 
|  | 10663 | hardcode_action_CXX=unsupported | 
|  | 10664 | fi | 
|  | 10665 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 | 
|  | 10666 | echo "${ECHO_T}$hardcode_action_CXX" >&6 | 
|  | 10667 |  | 
|  | 10668 | if test "$hardcode_action_CXX" = relink; then | 
|  | 10669 | # Fast installation is not supported | 
|  | 10670 | enable_fast_install=no | 
|  | 10671 | elif test "$shlibpath_overrides_runpath" = yes || | 
|  | 10672 | test "$enable_shared" = no; then | 
|  | 10673 | # Fast installation is not necessary | 
|  | 10674 | enable_fast_install=needless | 
|  | 10675 | fi | 
|  | 10676 |  | 
|  | 10677 | striplib= | 
|  | 10678 | old_striplib= | 
|  | 10679 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | 
|  | 10680 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | 
|  | 10681 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 
|  | 10682 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 
|  | 10683 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 
|  | 10684 | echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 10685 | echo "${ECHO_T}yes" >&6 | 
|  | 10686 | else | 
|  | 10687 | # FIXME - insert some real tests, host_os isn't really good enough | 
|  | 10688 | case $host_os in | 
|  | 10689 | darwin*) | 
|  | 10690 | if test -n "$STRIP" ; then | 
|  | 10691 | striplib="$STRIP -x" | 
|  | 10692 | echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 10693 | echo "${ECHO_T}yes" >&6 | 
|  | 10694 | else | 
|  | 10695 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 10696 | echo "${ECHO_T}no" >&6 | 
|  | 10697 | fi | 
|  | 10698 | ;; | 
|  | 10699 | *) | 
|  | 10700 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 10701 | echo "${ECHO_T}no" >&6 | 
|  | 10702 | ;; | 
|  | 10703 | esac | 
|  | 10704 | fi | 
|  | 10705 |  | 
|  | 10706 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
|  | 10707 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 
|  | 10708 | library_names_spec= | 
|  | 10709 | libname_spec='lib$name' | 
|  | 10710 | soname_spec= | 
|  | 10711 | shrext=".so" | 
|  | 10712 | postinstall_cmds= | 
|  | 10713 | postuninstall_cmds= | 
|  | 10714 | finish_cmds= | 
|  | 10715 | finish_eval= | 
|  | 10716 | shlibpath_var= | 
|  | 10717 | shlibpath_overrides_runpath=unknown | 
|  | 10718 | version_type=none | 
|  | 10719 | dynamic_linker="$host_os ld.so" | 
|  | 10720 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
|  | 10721 | if test "$GCC" = yes; then | 
|  | 10722 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
|  | 10723 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
|  | 10724 | # if the path contains ";" then we assume it to be the separator | 
|  | 10725 | # otherwise default to the standard path separator (i.e. ":") - it is | 
|  | 10726 | # assumed that no part of a normal pathname contains ";" but that should | 
|  | 10727 | # okay in the real world where ";" in dirpaths is itself problematic. | 
|  | 10728 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
|  | 10729 | else | 
|  | 10730 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
|  | 10731 | fi | 
|  | 10732 | else | 
|  | 10733 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
|  | 10734 | fi | 
|  | 10735 | need_lib_prefix=unknown | 
|  | 10736 | hardcode_into_libs=no | 
|  | 10737 |  | 
|  | 10738 | # when you set need_version to no, make sure it does not cause -set_version | 
|  | 10739 | # flags to be left without arguments | 
|  | 10740 | need_version=unknown | 
|  | 10741 |  | 
|  | 10742 | case $host_os in | 
|  | 10743 | aix3*) | 
|  | 10744 | version_type=linux | 
|  | 10745 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
|  | 10746 | shlibpath_var=LIBPATH | 
|  | 10747 |  | 
|  | 10748 | # AIX 3 has no versioning support, so we append a major version to the name. | 
|  | 10749 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 10750 | ;; | 
|  | 10751 |  | 
|  | 10752 | aix4* | aix5*) | 
|  | 10753 | version_type=linux | 
|  | 10754 | need_lib_prefix=no | 
|  | 10755 | need_version=no | 
|  | 10756 | hardcode_into_libs=yes | 
|  | 10757 | if test "$host_cpu" = ia64; then | 
|  | 10758 | # AIX 5 supports IA64 | 
|  | 10759 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
|  | 10760 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 10761 | else | 
|  | 10762 | # With GCC up to 2.95.x, collect2 would create an import file | 
|  | 10763 | # for dependence libraries.  The import file would start with | 
|  | 10764 | # the line `#! .'.  This would cause the generated library to | 
|  | 10765 | # depend on `.', always an invalid library.  This was fixed in | 
|  | 10766 | # development snapshots of GCC prior to 3.0. | 
|  | 10767 | case $host_os in | 
|  | 10768 | aix4 | aix4.[01] | aix4.[01].*) | 
|  | 10769 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
|  | 10770 | echo ' yes ' | 
|  | 10771 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
|  | 10772 | : | 
|  | 10773 | else | 
|  | 10774 | can_build_shared=no | 
|  | 10775 | fi | 
|  | 10776 | ;; | 
|  | 10777 | esac | 
|  | 10778 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
|  | 10779 | # soname into executable. Probably we can add versioning support to | 
|  | 10780 | # collect2, so additional links can be useful in future. | 
|  | 10781 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 10782 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
|  | 10783 | # instead of lib<name>.a to let people know that these are not | 
|  | 10784 | # typical AIX shared libraries. | 
|  | 10785 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 10786 | else | 
|  | 10787 | # We preserve .a as extension for shared libraries through AIX4.2 | 
|  | 10788 | # and later when we are not doing run time linking. | 
|  | 10789 | library_names_spec='${libname}${release}.a $libname.a' | 
|  | 10790 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 10791 | fi | 
|  | 10792 | shlibpath_var=LIBPATH | 
|  | 10793 | fi | 
|  | 10794 | ;; | 
|  | 10795 |  | 
|  | 10796 | amigaos*) | 
|  | 10797 | library_names_spec='$libname.ixlibrary $libname.a' | 
|  | 10798 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
|  | 10799 | 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' | 
|  | 10800 | ;; | 
|  | 10801 |  | 
|  | 10802 | beos*) | 
|  | 10803 | library_names_spec='${libname}${shared_ext}' | 
|  | 10804 | dynamic_linker="$host_os ld.so" | 
|  | 10805 | shlibpath_var=LIBRARY_PATH | 
|  | 10806 | ;; | 
|  | 10807 |  | 
|  | 10808 | bsdi4*) | 
|  | 10809 | version_type=linux | 
|  | 10810 | need_version=no | 
|  | 10811 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 10812 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 10813 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
|  | 10814 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 10815 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
|  | 10816 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
|  | 10817 | # the default ld.so.conf also contains /usr/contrib/lib and | 
|  | 10818 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
|  | 10819 | # libtool to hard-code these into programs | 
|  | 10820 | ;; | 
|  | 10821 |  | 
|  | 10822 | cygwin* | mingw* | pw32*) | 
|  | 10823 | version_type=windows | 
|  | 10824 | shrext=".dll" | 
|  | 10825 | need_version=no | 
|  | 10826 | need_lib_prefix=no | 
|  | 10827 |  | 
|  | 10828 | case $GCC,$host_os in | 
|  | 10829 | yes,cygwin* | yes,mingw* | yes,pw32*) | 
|  | 10830 | library_names_spec='$libname.dll.a' | 
|  | 10831 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
|  | 10832 | postinstall_cmds='base_file=`basename \${file}`~ | 
|  | 10833 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
|  | 10834 | dldir=$destdir/`dirname \$dlpath`~ | 
|  | 10835 | test -d \$dldir || mkdir -p \$dldir~ | 
|  | 10836 | $install_prog $dir/$dlname \$dldir/$dlname' | 
|  | 10837 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
|  | 10838 | dlpath=$dir/\$dldll~ | 
|  | 10839 | $rm \$dlpath' | 
|  | 10840 | shlibpath_overrides_runpath=yes | 
|  | 10841 |  | 
|  | 10842 | case $host_os in | 
|  | 10843 | cygwin*) | 
|  | 10844 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
|  | 10845 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
|  | 10846 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" | 
|  | 10847 | ;; | 
|  | 10848 | mingw*) | 
|  | 10849 | # MinGW DLLs use traditional 'lib' prefix | 
|  | 10850 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
|  | 10851 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
|  | 10852 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
|  | 10853 | # It is most probably a Windows format PATH printed by | 
|  | 10854 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
|  | 10855 | # path with ; separators, and with drive letters. We can handle the | 
|  | 10856 | # drive letters (cygwin fileutils understands them), so leave them, | 
|  | 10857 | # especially as we might pass files found there to a mingw objdump, | 
|  | 10858 | # which wouldn't understand a cygwinified path. Ahh. | 
|  | 10859 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
|  | 10860 | else | 
|  | 10861 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
|  | 10862 | fi | 
|  | 10863 | ;; | 
|  | 10864 | pw32*) | 
|  | 10865 | # pw32 DLLs use 'pw' prefix rather than 'lib' | 
|  | 10866 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | 
|  | 10867 | ;; | 
|  | 10868 | esac | 
|  | 10869 | ;; | 
|  | 10870 |  | 
|  | 10871 | *) | 
|  | 10872 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
|  | 10873 | ;; | 
|  | 10874 | esac | 
|  | 10875 | dynamic_linker='Win32 ld.exe' | 
|  | 10876 | # FIXME: first we should search . and the directory the executable is in | 
|  | 10877 | shlibpath_var=PATH | 
|  | 10878 | ;; | 
|  | 10879 |  | 
|  | 10880 | darwin* | rhapsody*) | 
|  | 10881 | dynamic_linker="$host_os dyld" | 
|  | 10882 | version_type=darwin | 
|  | 10883 | need_lib_prefix=no | 
|  | 10884 | need_version=no | 
|  | 10885 | # FIXME: Relying on posixy $() will cause problems for | 
|  | 10886 | #        cross-compilation, but unfortunately the echo tests do not | 
|  | 10887 | #        yet detect zsh echo's removal of \ escapes. | 
|  | 10888 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | 
|  | 10889 | soname_spec='${libname}${release}${major}$shared_ext' | 
|  | 10890 | shlibpath_overrides_runpath=yes | 
|  | 10891 | shlibpath_var=DYLD_LIBRARY_PATH | 
|  | 10892 | shrext='$(test .$module = .yes && echo .so || echo .dylib)' | 
|  | 10893 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | 
|  | 10894 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then | 
|  | 10895 | 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"` | 
|  | 10896 | fi | 
|  | 10897 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
|  | 10898 | ;; | 
|  | 10899 |  | 
|  | 10900 | dgux*) | 
|  | 10901 | version_type=linux | 
|  | 10902 | need_lib_prefix=no | 
|  | 10903 | need_version=no | 
|  | 10904 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
|  | 10905 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 10906 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 10907 | ;; | 
|  | 10908 |  | 
|  | 10909 | freebsd1*) | 
|  | 10910 | dynamic_linker=no | 
|  | 10911 | ;; | 
|  | 10912 |  | 
|  | 10913 | freebsd*) | 
|  | 10914 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | 
|  | 10915 | version_type=freebsd-$objformat | 
|  | 10916 | case $version_type in | 
|  | 10917 | freebsd-elf*) | 
|  | 10918 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 10919 | need_version=no | 
|  | 10920 | need_lib_prefix=no | 
|  | 10921 | ;; | 
|  | 10922 | freebsd-*) | 
|  | 10923 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
|  | 10924 | need_version=yes | 
|  | 10925 | ;; | 
|  | 10926 | esac | 
|  | 10927 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 10928 | case $host_os in | 
|  | 10929 | freebsd2*) | 
|  | 10930 | shlibpath_overrides_runpath=yes | 
|  | 10931 | ;; | 
|  | 10932 | freebsd3.01* | freebsdelf3.01*) | 
|  | 10933 | shlibpath_overrides_runpath=yes | 
|  | 10934 | hardcode_into_libs=yes | 
|  | 10935 | ;; | 
|  | 10936 | *) # from 3.2 on | 
|  | 10937 | shlibpath_overrides_runpath=no | 
|  | 10938 | hardcode_into_libs=yes | 
|  | 10939 | ;; | 
|  | 10940 | esac | 
|  | 10941 | ;; | 
|  | 10942 |  | 
|  | 10943 | gnu*) | 
|  | 10944 | version_type=linux | 
|  | 10945 | need_lib_prefix=no | 
|  | 10946 | need_version=no | 
|  | 10947 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
|  | 10948 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 10949 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 10950 | hardcode_into_libs=yes | 
|  | 10951 | ;; | 
|  | 10952 |  | 
|  | 10953 | hpux9* | hpux10* | hpux11*) | 
|  | 10954 | # Give a soname corresponding to the major version so that dld.sl refuses to | 
|  | 10955 | # link against other versions. | 
|  | 10956 | version_type=sunos | 
|  | 10957 | need_lib_prefix=no | 
|  | 10958 | need_version=no | 
|  | 10959 | case "$host_cpu" in | 
|  | 10960 | ia64*) | 
|  | 10961 | shrext='.so' | 
|  | 10962 | hardcode_into_libs=yes | 
|  | 10963 | dynamic_linker="$host_os dld.so" | 
|  | 10964 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 10965 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 10966 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 10967 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 10968 | if test "X$HPUX_IA64_MODE" = X32; then | 
|  | 10969 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
|  | 10970 | else | 
|  | 10971 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
|  | 10972 | fi | 
|  | 10973 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 10974 | ;; | 
|  | 10975 | hppa*64*) | 
|  | 10976 | shrext='.sl' | 
|  | 10977 | hardcode_into_libs=yes | 
|  | 10978 | dynamic_linker="$host_os dld.sl" | 
|  | 10979 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
|  | 10980 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 10981 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 10982 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 10983 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
|  | 10984 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 10985 | ;; | 
|  | 10986 | *) | 
|  | 10987 | shrext='.sl' | 
|  | 10988 | dynamic_linker="$host_os dld.sl" | 
|  | 10989 | shlibpath_var=SHLIB_PATH | 
|  | 10990 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
|  | 10991 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 10992 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 10993 | ;; | 
|  | 10994 | esac | 
|  | 10995 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
|  | 10996 | postinstall_cmds='chmod 555 $lib' | 
|  | 10997 | ;; | 
|  | 10998 |  | 
|  | 10999 | irix5* | irix6* | nonstopux*) | 
|  | 11000 | case $host_os in | 
|  | 11001 | nonstopux*) version_type=nonstopux ;; | 
|  | 11002 | *) | 
|  | 11003 | if test "$lt_cv_prog_gnu_ld" = yes; then | 
|  | 11004 | version_type=linux | 
|  | 11005 | else | 
|  | 11006 | version_type=irix | 
|  | 11007 | fi ;; | 
|  | 11008 | esac | 
|  | 11009 | need_lib_prefix=no | 
|  | 11010 | need_version=no | 
|  | 11011 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 11012 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 11013 | case $host_os in | 
|  | 11014 | irix5* | nonstopux*) | 
|  | 11015 | libsuff= shlibsuff= | 
|  | 11016 | ;; | 
|  | 11017 | *) | 
|  | 11018 | case $LD in # libtool.m4 will add one of these switches to LD | 
|  | 11019 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
|  | 11020 | libsuff= shlibsuff= libmagic=32-bit;; | 
|  | 11021 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
|  | 11022 | libsuff=32 shlibsuff=N32 libmagic=N32;; | 
|  | 11023 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
|  | 11024 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
|  | 11025 | *) libsuff= shlibsuff= libmagic=never-match;; | 
|  | 11026 | esac | 
|  | 11027 | ;; | 
|  | 11028 | esac | 
|  | 11029 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
|  | 11030 | shlibpath_overrides_runpath=no | 
|  | 11031 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
|  | 11032 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
|  | 11033 | hardcode_into_libs=yes | 
|  | 11034 | ;; | 
|  | 11035 |  | 
|  | 11036 | # No shared lib support for Linux oldld, aout, or coff. | 
|  | 11037 | linux*oldld* | linux*aout* | linux*coff*) | 
|  | 11038 | dynamic_linker=no | 
|  | 11039 | ;; | 
|  | 11040 |  | 
|  | 11041 | # This must be Linux ELF. | 
|  | 11042 | linux*) | 
|  | 11043 | version_type=linux | 
|  | 11044 | need_lib_prefix=no | 
|  | 11045 | need_version=no | 
|  | 11046 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 11047 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 11048 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
|  | 11049 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 11050 | shlibpath_overrides_runpath=no | 
|  | 11051 | # This implies no fast_install, which is unacceptable. | 
|  | 11052 | # Some rework will be needed to allow for fast_install | 
|  | 11053 | # before this can be enabled. | 
|  | 11054 | hardcode_into_libs=yes | 
|  | 11055 |  | 
|  | 11056 | # We used to test for /lib/ld.so.1 and disable shared libraries on | 
|  | 11057 | # powerpc, because MkLinux only supported shared libraries with the | 
|  | 11058 | # GNU dynamic linker.  Since this was broken with cross compilers, | 
|  | 11059 | # most powerpc-linux boxes support dynamic linking these days and | 
|  | 11060 | # people can always --disable-shared, the test was removed, and we | 
|  | 11061 | # assume the GNU/Linux dynamic linker is in use. | 
|  | 11062 | dynamic_linker='GNU/Linux ld.so' | 
|  | 11063 | ;; | 
|  | 11064 |  | 
|  | 11065 | netbsd*) | 
|  | 11066 | version_type=sunos | 
|  | 11067 | need_lib_prefix=no | 
|  | 11068 | need_version=no | 
|  | 11069 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
|  | 11070 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 11071 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 11072 | dynamic_linker='NetBSD (a.out) ld.so' | 
|  | 11073 | else | 
|  | 11074 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' | 
|  | 11075 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 11076 | dynamic_linker='NetBSD ld.elf_so' | 
|  | 11077 | fi | 
|  | 11078 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 11079 | shlibpath_overrides_runpath=yes | 
|  | 11080 | hardcode_into_libs=yes | 
|  | 11081 | ;; | 
|  | 11082 |  | 
|  | 11083 | newsos6) | 
|  | 11084 | version_type=linux | 
|  | 11085 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 11086 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 11087 | shlibpath_overrides_runpath=yes | 
|  | 11088 | ;; | 
|  | 11089 |  | 
|  | 11090 | nto-qnx) | 
|  | 11091 | version_type=linux | 
|  | 11092 | need_lib_prefix=no | 
|  | 11093 | need_version=no | 
|  | 11094 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 11095 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 11096 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 11097 | shlibpath_overrides_runpath=yes | 
|  | 11098 | ;; | 
|  | 11099 |  | 
|  | 11100 | openbsd*) | 
|  | 11101 | version_type=sunos | 
|  | 11102 | need_lib_prefix=no | 
|  | 11103 | need_version=no | 
|  | 11104 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 11105 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 11106 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 11107 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|  | 11108 | case $host_os in | 
|  | 11109 | openbsd2.[89] | openbsd2.[89].*) | 
|  | 11110 | shlibpath_overrides_runpath=no | 
|  | 11111 | ;; | 
|  | 11112 | *) | 
|  | 11113 | shlibpath_overrides_runpath=yes | 
|  | 11114 | ;; | 
|  | 11115 | esac | 
|  | 11116 | else | 
|  | 11117 | shlibpath_overrides_runpath=yes | 
|  | 11118 | fi | 
|  | 11119 | ;; | 
|  | 11120 |  | 
|  | 11121 | os2*) | 
|  | 11122 | libname_spec='$name' | 
|  | 11123 | shrext=".dll" | 
|  | 11124 | need_lib_prefix=no | 
|  | 11125 | library_names_spec='$libname${shared_ext} $libname.a' | 
|  | 11126 | dynamic_linker='OS/2 ld.exe' | 
|  | 11127 | shlibpath_var=LIBPATH | 
|  | 11128 | ;; | 
|  | 11129 |  | 
|  | 11130 | osf3* | osf4* | osf5*) | 
|  | 11131 | version_type=osf | 
|  | 11132 | need_lib_prefix=no | 
|  | 11133 | need_version=no | 
|  | 11134 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 11135 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 11136 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 11137 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
|  | 11138 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
|  | 11139 | ;; | 
|  | 11140 |  | 
|  | 11141 | sco3.2v5*) | 
|  | 11142 | version_type=osf | 
|  | 11143 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 11144 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 11145 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 11146 | ;; | 
|  | 11147 |  | 
|  | 11148 | solaris*) | 
|  | 11149 | version_type=linux | 
|  | 11150 | need_lib_prefix=no | 
|  | 11151 | need_version=no | 
|  | 11152 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 11153 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 11154 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 11155 | shlibpath_overrides_runpath=yes | 
|  | 11156 | hardcode_into_libs=yes | 
|  | 11157 | # ldd complains unless libraries are executable | 
|  | 11158 | postinstall_cmds='chmod +x $lib' | 
|  | 11159 | ;; | 
|  | 11160 |  | 
|  | 11161 | sunos4*) | 
|  | 11162 | version_type=sunos | 
|  | 11163 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 11164 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
|  | 11165 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 11166 | shlibpath_overrides_runpath=yes | 
|  | 11167 | if test "$with_gnu_ld" = yes; then | 
|  | 11168 | need_lib_prefix=no | 
|  | 11169 | fi | 
|  | 11170 | need_version=yes | 
|  | 11171 | ;; | 
|  | 11172 |  | 
|  | 11173 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
|  | 11174 | version_type=linux | 
|  | 11175 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 11176 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 11177 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 11178 | case $host_vendor in | 
|  | 11179 | sni) | 
|  | 11180 | shlibpath_overrides_runpath=no | 
|  | 11181 | need_lib_prefix=no | 
|  | 11182 | export_dynamic_flag_spec='${wl}-Blargedynsym' | 
|  | 11183 | runpath_var=LD_RUN_PATH | 
|  | 11184 | ;; | 
|  | 11185 | siemens) | 
|  | 11186 | need_lib_prefix=no | 
|  | 11187 | ;; | 
|  | 11188 | motorola) | 
|  | 11189 | need_lib_prefix=no | 
|  | 11190 | need_version=no | 
|  | 11191 | shlibpath_overrides_runpath=no | 
|  | 11192 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
|  | 11193 | ;; | 
|  | 11194 | esac | 
|  | 11195 | ;; | 
|  | 11196 |  | 
|  | 11197 | sysv4*MP*) | 
|  | 11198 | if test -d /usr/nec ;then | 
|  | 11199 | version_type=linux | 
|  | 11200 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
|  | 11201 | soname_spec='$libname${shared_ext}.$major' | 
|  | 11202 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 11203 | fi | 
|  | 11204 | ;; | 
|  | 11205 |  | 
|  | 11206 | uts4*) | 
|  | 11207 | version_type=linux | 
|  | 11208 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 11209 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 11210 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 11211 | ;; | 
|  | 11212 |  | 
|  | 11213 | *) | 
|  | 11214 | dynamic_linker=no | 
|  | 11215 | ;; | 
|  | 11216 | esac | 
|  | 11217 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
|  | 11218 | echo "${ECHO_T}$dynamic_linker" >&6 | 
|  | 11219 | test "$dynamic_linker" = no && can_build_shared=no | 
|  | 11220 |  | 
|  | 11221 | if test "x$enable_dlopen" != xyes; then | 
|  | 11222 | enable_dlopen=unknown | 
|  | 11223 | enable_dlopen_self=unknown | 
|  | 11224 | enable_dlopen_self_static=unknown | 
|  | 11225 | else | 
|  | 11226 | lt_cv_dlopen=no | 
|  | 11227 | lt_cv_dlopen_libs= | 
|  | 11228 |  | 
|  | 11229 | case $host_os in | 
|  | 11230 | beos*) | 
|  | 11231 | lt_cv_dlopen="load_add_on" | 
|  | 11232 | lt_cv_dlopen_libs= | 
|  | 11233 | lt_cv_dlopen_self=yes | 
|  | 11234 | ;; | 
|  | 11235 |  | 
|  | 11236 | mingw* | pw32*) | 
|  | 11237 | lt_cv_dlopen="LoadLibrary" | 
|  | 11238 | lt_cv_dlopen_libs= | 
|  | 11239 | ;; | 
|  | 11240 |  | 
|  | 11241 | cygwin*) | 
|  | 11242 | lt_cv_dlopen="dlopen" | 
|  | 11243 | lt_cv_dlopen_libs= | 
|  | 11244 | ;; | 
|  | 11245 |  | 
|  | 11246 | darwin*) | 
|  | 11247 | # if libdl is installed we need to link against it | 
|  | 11248 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
|  | 11249 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
|  | 11250 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
|  | 11251 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11252 | else | 
|  | 11253 | ac_check_lib_save_LIBS=$LIBS | 
|  | 11254 | LIBS="-ldl  $LIBS" | 
|  | 11255 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11256 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11257 | /* confdefs.h.  */ | 
|  | 11258 | _ACEOF | 
|  | 11259 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11260 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11261 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11262 |  | 
|  | 11263 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 11264 | #ifdef __cplusplus | 
|  | 11265 | extern "C" | 
|  | 11266 | #endif | 
|  | 11267 | /* We use char because int might match the return type of a gcc2 | 
|  | 11268 | builtin and then its argument prototype would still apply.  */ | 
|  | 11269 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11270 | int | 
|  | 11271 | main () | 
|  | 11272 | { | 
|  | 11273 | dlopen (); | 
|  | 11274 | ; | 
|  | 11275 | return 0; | 
|  | 11276 | } | 
|  | 11277 | _ACEOF | 
|  | 11278 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 11279 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 11280 | (eval $ac_link) 2>&5 | 
|  | 11281 | ac_status=$? | 
|  | 11282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11283 | (exit $ac_status); } && | 
|  | 11284 | { ac_try='test -s conftest$ac_exeext' | 
|  | 11285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 11286 | (eval $ac_try) 2>&5 | 
|  | 11287 | ac_status=$? | 
|  | 11288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11289 | (exit $ac_status); }; }; then | 
|  | 11290 | ac_cv_lib_dl_dlopen=yes | 
|  | 11291 | else | 
|  | 11292 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11293 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11294 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11295 | ac_cv_lib_dl_dlopen=no | 
|  | 11296 | fi | 
|  | 11297 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 11298 | LIBS=$ac_check_lib_save_LIBS | 
|  | 11299 | fi | 
|  | 11300 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
|  | 11301 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
|  | 11302 | if test $ac_cv_lib_dl_dlopen = yes; then | 
|  | 11303 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
|  | 11304 | else | 
|  | 11305 |  | 
|  | 11306 | lt_cv_dlopen="dyld" | 
|  | 11307 | lt_cv_dlopen_libs= | 
|  | 11308 | lt_cv_dlopen_self=yes | 
|  | 11309 |  | 
|  | 11310 | fi | 
|  | 11311 |  | 
|  | 11312 | ;; | 
|  | 11313 |  | 
|  | 11314 | *) | 
|  | 11315 | echo "$as_me:$LINENO: checking for shl_load" >&5 | 
|  | 11316 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | 
|  | 11317 | if test "${ac_cv_func_shl_load+set}" = set; then | 
|  | 11318 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11319 | else | 
|  | 11320 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11321 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11322 | /* confdefs.h.  */ | 
|  | 11323 | _ACEOF | 
|  | 11324 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11325 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11326 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11327 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11328 | which can conflict with char shl_load (); below. | 
|  | 11329 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 11330 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 11331 | #ifdef __STDC__ | 
|  | 11332 | # include <limits.h> | 
|  | 11333 | #else | 
|  | 11334 | # include <assert.h> | 
|  | 11335 | #endif | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11336 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 11337 | #ifdef __cplusplus | 
|  | 11338 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11339 | { | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11340 | #endif | 
|  | 11341 | /* We use char because int might match the return type of a gcc2 | 
|  | 11342 | builtin and then its argument prototype would still apply.  */ | 
|  | 11343 | char shl_load (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11344 | /* The GNU C library defines this for functions which it implements | 
|  | 11345 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 11346 | something starting with __ and the normal name is an alias.  */ | 
|  | 11347 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | 
|  | 11348 | choke me | 
|  | 11349 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11350 | char (*f) () = shl_load; | 
|  | 11351 | #endif | 
|  | 11352 | #ifdef __cplusplus | 
|  | 11353 | } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11354 | #endif | 
|  | 11355 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11356 | int | 
|  | 11357 | main () | 
|  | 11358 | { | 
|  | 11359 | return f != shl_load; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11360 | ; | 
|  | 11361 | return 0; | 
|  | 11362 | } | 
|  | 11363 | _ACEOF | 
|  | 11364 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 11365 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 11366 | (eval $ac_link) 2>&5 | 
|  | 11367 | ac_status=$? | 
|  | 11368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11369 | (exit $ac_status); } && | 
|  | 11370 | { ac_try='test -s conftest$ac_exeext' | 
|  | 11371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 11372 | (eval $ac_try) 2>&5 | 
|  | 11373 | ac_status=$? | 
|  | 11374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11375 | (exit $ac_status); }; }; then | 
|  | 11376 | ac_cv_func_shl_load=yes | 
|  | 11377 | else | 
|  | 11378 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11379 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11380 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11381 | ac_cv_func_shl_load=no | 
|  | 11382 | fi | 
|  | 11383 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 11384 | fi | 
|  | 11385 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | 
|  | 11386 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | 
|  | 11387 | if test $ac_cv_func_shl_load = yes; then | 
|  | 11388 | lt_cv_dlopen="shl_load" | 
|  | 11389 | else | 
|  | 11390 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | 
|  | 11391 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | 
|  | 11392 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | 
|  | 11393 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11394 | else | 
|  | 11395 | ac_check_lib_save_LIBS=$LIBS | 
|  | 11396 | LIBS="-ldld  $LIBS" | 
|  | 11397 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11398 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11399 | /* confdefs.h.  */ | 
|  | 11400 | _ACEOF | 
|  | 11401 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11402 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11403 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11404 |  | 
|  | 11405 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 11406 | #ifdef __cplusplus | 
|  | 11407 | extern "C" | 
|  | 11408 | #endif | 
|  | 11409 | /* We use char because int might match the return type of a gcc2 | 
|  | 11410 | builtin and then its argument prototype would still apply.  */ | 
|  | 11411 | char shl_load (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11412 | int | 
|  | 11413 | main () | 
|  | 11414 | { | 
|  | 11415 | shl_load (); | 
|  | 11416 | ; | 
|  | 11417 | return 0; | 
|  | 11418 | } | 
|  | 11419 | _ACEOF | 
|  | 11420 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 11421 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 11422 | (eval $ac_link) 2>&5 | 
|  | 11423 | ac_status=$? | 
|  | 11424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11425 | (exit $ac_status); } && | 
|  | 11426 | { ac_try='test -s conftest$ac_exeext' | 
|  | 11427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 11428 | (eval $ac_try) 2>&5 | 
|  | 11429 | ac_status=$? | 
|  | 11430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11431 | (exit $ac_status); }; }; then | 
|  | 11432 | ac_cv_lib_dld_shl_load=yes | 
|  | 11433 | else | 
|  | 11434 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11435 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11436 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11437 | ac_cv_lib_dld_shl_load=no | 
|  | 11438 | fi | 
|  | 11439 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 11440 | LIBS=$ac_check_lib_save_LIBS | 
|  | 11441 | fi | 
|  | 11442 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | 
|  | 11443 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | 
|  | 11444 | if test $ac_cv_lib_dld_shl_load = yes; then | 
|  | 11445 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | 
|  | 11446 | else | 
|  | 11447 | echo "$as_me:$LINENO: checking for dlopen" >&5 | 
|  | 11448 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | 
|  | 11449 | if test "${ac_cv_func_dlopen+set}" = set; then | 
|  | 11450 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11451 | else | 
|  | 11452 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11453 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11454 | /* confdefs.h.  */ | 
|  | 11455 | _ACEOF | 
|  | 11456 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11457 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11458 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11459 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11460 | which can conflict with char dlopen (); below. | 
|  | 11461 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 11462 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 11463 | #ifdef __STDC__ | 
|  | 11464 | # include <limits.h> | 
|  | 11465 | #else | 
|  | 11466 | # include <assert.h> | 
|  | 11467 | #endif | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11468 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 11469 | #ifdef __cplusplus | 
|  | 11470 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11471 | { | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11472 | #endif | 
|  | 11473 | /* We use char because int might match the return type of a gcc2 | 
|  | 11474 | builtin and then its argument prototype would still apply.  */ | 
|  | 11475 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11476 | /* The GNU C library defines this for functions which it implements | 
|  | 11477 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 11478 | something starting with __ and the normal name is an alias.  */ | 
|  | 11479 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | 
|  | 11480 | choke me | 
|  | 11481 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11482 | char (*f) () = dlopen; | 
|  | 11483 | #endif | 
|  | 11484 | #ifdef __cplusplus | 
|  | 11485 | } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11486 | #endif | 
|  | 11487 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11488 | int | 
|  | 11489 | main () | 
|  | 11490 | { | 
|  | 11491 | return f != dlopen; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11492 | ; | 
|  | 11493 | return 0; | 
|  | 11494 | } | 
|  | 11495 | _ACEOF | 
|  | 11496 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 11497 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 11498 | (eval $ac_link) 2>&5 | 
|  | 11499 | ac_status=$? | 
|  | 11500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11501 | (exit $ac_status); } && | 
|  | 11502 | { ac_try='test -s conftest$ac_exeext' | 
|  | 11503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 11504 | (eval $ac_try) 2>&5 | 
|  | 11505 | ac_status=$? | 
|  | 11506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11507 | (exit $ac_status); }; }; then | 
|  | 11508 | ac_cv_func_dlopen=yes | 
|  | 11509 | else | 
|  | 11510 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11511 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11512 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11513 | ac_cv_func_dlopen=no | 
|  | 11514 | fi | 
|  | 11515 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 11516 | fi | 
|  | 11517 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | 
|  | 11518 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | 
|  | 11519 | if test $ac_cv_func_dlopen = yes; then | 
|  | 11520 | lt_cv_dlopen="dlopen" | 
|  | 11521 | else | 
|  | 11522 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
|  | 11523 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
|  | 11524 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
|  | 11525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11526 | else | 
|  | 11527 | ac_check_lib_save_LIBS=$LIBS | 
|  | 11528 | LIBS="-ldl  $LIBS" | 
|  | 11529 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11530 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11531 | /* confdefs.h.  */ | 
|  | 11532 | _ACEOF | 
|  | 11533 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11534 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11535 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11536 |  | 
|  | 11537 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 11538 | #ifdef __cplusplus | 
|  | 11539 | extern "C" | 
|  | 11540 | #endif | 
|  | 11541 | /* We use char because int might match the return type of a gcc2 | 
|  | 11542 | builtin and then its argument prototype would still apply.  */ | 
|  | 11543 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11544 | int | 
|  | 11545 | main () | 
|  | 11546 | { | 
|  | 11547 | dlopen (); | 
|  | 11548 | ; | 
|  | 11549 | return 0; | 
|  | 11550 | } | 
|  | 11551 | _ACEOF | 
|  | 11552 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 11553 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 11554 | (eval $ac_link) 2>&5 | 
|  | 11555 | ac_status=$? | 
|  | 11556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11557 | (exit $ac_status); } && | 
|  | 11558 | { ac_try='test -s conftest$ac_exeext' | 
|  | 11559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 11560 | (eval $ac_try) 2>&5 | 
|  | 11561 | ac_status=$? | 
|  | 11562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11563 | (exit $ac_status); }; }; then | 
|  | 11564 | ac_cv_lib_dl_dlopen=yes | 
|  | 11565 | else | 
|  | 11566 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11567 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11568 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11569 | ac_cv_lib_dl_dlopen=no | 
|  | 11570 | fi | 
|  | 11571 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 11572 | LIBS=$ac_check_lib_save_LIBS | 
|  | 11573 | fi | 
|  | 11574 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
|  | 11575 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
|  | 11576 | if test $ac_cv_lib_dl_dlopen = yes; then | 
|  | 11577 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
|  | 11578 | else | 
|  | 11579 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | 
|  | 11580 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | 
|  | 11581 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | 
|  | 11582 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11583 | else | 
|  | 11584 | ac_check_lib_save_LIBS=$LIBS | 
|  | 11585 | LIBS="-lsvld  $LIBS" | 
|  | 11586 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11587 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11588 | /* confdefs.h.  */ | 
|  | 11589 | _ACEOF | 
|  | 11590 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11591 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11592 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11593 |  | 
|  | 11594 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 11595 | #ifdef __cplusplus | 
|  | 11596 | extern "C" | 
|  | 11597 | #endif | 
|  | 11598 | /* We use char because int might match the return type of a gcc2 | 
|  | 11599 | builtin and then its argument prototype would still apply.  */ | 
|  | 11600 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11601 | int | 
|  | 11602 | main () | 
|  | 11603 | { | 
|  | 11604 | dlopen (); | 
|  | 11605 | ; | 
|  | 11606 | return 0; | 
|  | 11607 | } | 
|  | 11608 | _ACEOF | 
|  | 11609 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 11610 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 11611 | (eval $ac_link) 2>&5 | 
|  | 11612 | ac_status=$? | 
|  | 11613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11614 | (exit $ac_status); } && | 
|  | 11615 | { ac_try='test -s conftest$ac_exeext' | 
|  | 11616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 11617 | (eval $ac_try) 2>&5 | 
|  | 11618 | ac_status=$? | 
|  | 11619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11620 | (exit $ac_status); }; }; then | 
|  | 11621 | ac_cv_lib_svld_dlopen=yes | 
|  | 11622 | else | 
|  | 11623 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11624 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11625 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11626 | ac_cv_lib_svld_dlopen=no | 
|  | 11627 | fi | 
|  | 11628 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 11629 | LIBS=$ac_check_lib_save_LIBS | 
|  | 11630 | fi | 
|  | 11631 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | 
|  | 11632 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | 
|  | 11633 | if test $ac_cv_lib_svld_dlopen = yes; then | 
|  | 11634 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | 
|  | 11635 | else | 
|  | 11636 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | 
|  | 11637 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | 
|  | 11638 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | 
|  | 11639 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11640 | else | 
|  | 11641 | ac_check_lib_save_LIBS=$LIBS | 
|  | 11642 | LIBS="-ldld  $LIBS" | 
|  | 11643 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11644 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11645 | /* confdefs.h.  */ | 
|  | 11646 | _ACEOF | 
|  | 11647 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11648 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11649 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11650 |  | 
|  | 11651 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 11652 | #ifdef __cplusplus | 
|  | 11653 | extern "C" | 
|  | 11654 | #endif | 
|  | 11655 | /* We use char because int might match the return type of a gcc2 | 
|  | 11656 | builtin and then its argument prototype would still apply.  */ | 
|  | 11657 | char dld_link (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11658 | int | 
|  | 11659 | main () | 
|  | 11660 | { | 
|  | 11661 | dld_link (); | 
|  | 11662 | ; | 
|  | 11663 | return 0; | 
|  | 11664 | } | 
|  | 11665 | _ACEOF | 
|  | 11666 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 11667 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 11668 | (eval $ac_link) 2>&5 | 
|  | 11669 | ac_status=$? | 
|  | 11670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11671 | (exit $ac_status); } && | 
|  | 11672 | { ac_try='test -s conftest$ac_exeext' | 
|  | 11673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 11674 | (eval $ac_try) 2>&5 | 
|  | 11675 | ac_status=$? | 
|  | 11676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11677 | (exit $ac_status); }; }; then | 
|  | 11678 | ac_cv_lib_dld_dld_link=yes | 
|  | 11679 | else | 
|  | 11680 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11681 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11682 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11683 | ac_cv_lib_dld_dld_link=no | 
|  | 11684 | fi | 
|  | 11685 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 11686 | LIBS=$ac_check_lib_save_LIBS | 
|  | 11687 | fi | 
|  | 11688 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | 
|  | 11689 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | 
|  | 11690 | if test $ac_cv_lib_dld_dld_link = yes; then | 
|  | 11691 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | 
|  | 11692 | fi | 
|  | 11693 |  | 
|  | 11694 |  | 
|  | 11695 | fi | 
|  | 11696 |  | 
|  | 11697 |  | 
|  | 11698 | fi | 
|  | 11699 |  | 
|  | 11700 |  | 
|  | 11701 | fi | 
|  | 11702 |  | 
|  | 11703 |  | 
|  | 11704 | fi | 
|  | 11705 |  | 
|  | 11706 |  | 
|  | 11707 | fi | 
|  | 11708 |  | 
|  | 11709 | ;; | 
|  | 11710 | esac | 
|  | 11711 |  | 
|  | 11712 | if test "x$lt_cv_dlopen" != xno; then | 
|  | 11713 | enable_dlopen=yes | 
|  | 11714 | else | 
|  | 11715 | enable_dlopen=no | 
|  | 11716 | fi | 
|  | 11717 |  | 
|  | 11718 | case $lt_cv_dlopen in | 
|  | 11719 | dlopen) | 
|  | 11720 | save_CPPFLAGS="$CPPFLAGS" | 
|  | 11721 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | 
|  | 11722 |  | 
|  | 11723 | save_LDFLAGS="$LDFLAGS" | 
|  | 11724 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | 
|  | 11725 |  | 
|  | 11726 | save_LIBS="$LIBS" | 
|  | 11727 | LIBS="$lt_cv_dlopen_libs $LIBS" | 
|  | 11728 |  | 
|  | 11729 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | 
|  | 11730 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | 
|  | 11731 | if test "${lt_cv_dlopen_self+set}" = set; then | 
|  | 11732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11733 | else | 
|  | 11734 | if test "$cross_compiling" = yes; then : | 
|  | 11735 | lt_cv_dlopen_self=cross | 
|  | 11736 | else | 
|  | 11737 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
|  | 11738 | lt_status=$lt_dlunknown | 
|  | 11739 | cat > conftest.$ac_ext <<EOF | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 11740 | #line 11740 "configure" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11741 | #include "confdefs.h" | 
|  | 11742 |  | 
|  | 11743 | #if HAVE_DLFCN_H | 
|  | 11744 | #include <dlfcn.h> | 
|  | 11745 | #endif | 
|  | 11746 |  | 
|  | 11747 | #include <stdio.h> | 
|  | 11748 |  | 
|  | 11749 | #ifdef RTLD_GLOBAL | 
|  | 11750 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
|  | 11751 | #else | 
|  | 11752 | #  ifdef DL_GLOBAL | 
|  | 11753 | #    define LT_DLGLOBAL		DL_GLOBAL | 
|  | 11754 | #  else | 
|  | 11755 | #    define LT_DLGLOBAL		0 | 
|  | 11756 | #  endif | 
|  | 11757 | #endif | 
|  | 11758 |  | 
|  | 11759 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
|  | 11760 | find out it does not work in some platform. */ | 
|  | 11761 | #ifndef LT_DLLAZY_OR_NOW | 
|  | 11762 | #  ifdef RTLD_LAZY | 
|  | 11763 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
|  | 11764 | #  else | 
|  | 11765 | #    ifdef DL_LAZY | 
|  | 11766 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
|  | 11767 | #    else | 
|  | 11768 | #      ifdef RTLD_NOW | 
|  | 11769 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
|  | 11770 | #      else | 
|  | 11771 | #        ifdef DL_NOW | 
|  | 11772 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
|  | 11773 | #        else | 
|  | 11774 | #          define LT_DLLAZY_OR_NOW	0 | 
|  | 11775 | #        endif | 
|  | 11776 | #      endif | 
|  | 11777 | #    endif | 
|  | 11778 | #  endif | 
|  | 11779 | #endif | 
|  | 11780 |  | 
|  | 11781 | #ifdef __cplusplus | 
|  | 11782 | extern "C" void exit (int); | 
|  | 11783 | #endif | 
|  | 11784 |  | 
|  | 11785 | void fnord() { int i=42;} | 
|  | 11786 | int main () | 
|  | 11787 | { | 
|  | 11788 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
|  | 11789 | int status = $lt_dlunknown; | 
|  | 11790 |  | 
|  | 11791 | if (self) | 
|  | 11792 | { | 
|  | 11793 | if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
|  | 11794 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
|  | 11795 | /* dlclose (self); */ | 
|  | 11796 | } | 
|  | 11797 |  | 
|  | 11798 | exit (status); | 
|  | 11799 | } | 
|  | 11800 | EOF | 
|  | 11801 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 11802 | (eval $ac_link) 2>&5 | 
|  | 11803 | ac_status=$? | 
|  | 11804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11805 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
|  | 11806 | (./conftest; exit; ) 2>/dev/null | 
|  | 11807 | lt_status=$? | 
|  | 11808 | case x$lt_status in | 
|  | 11809 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | 
|  | 11810 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | 
|  | 11811 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | 
|  | 11812 | esac | 
|  | 11813 | else : | 
|  | 11814 | # compilation failed | 
|  | 11815 | lt_cv_dlopen_self=no | 
|  | 11816 | fi | 
|  | 11817 | fi | 
|  | 11818 | rm -fr conftest* | 
|  | 11819 |  | 
|  | 11820 |  | 
|  | 11821 | fi | 
|  | 11822 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | 
|  | 11823 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | 
|  | 11824 |  | 
|  | 11825 | if test "x$lt_cv_dlopen_self" = xyes; then | 
|  | 11826 | LDFLAGS="$LDFLAGS $link_static_flag" | 
|  | 11827 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | 
|  | 11828 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | 
|  | 11829 | if test "${lt_cv_dlopen_self_static+set}" = set; then | 
|  | 11830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11831 | else | 
|  | 11832 | if test "$cross_compiling" = yes; then : | 
|  | 11833 | lt_cv_dlopen_self_static=cross | 
|  | 11834 | else | 
|  | 11835 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
|  | 11836 | lt_status=$lt_dlunknown | 
|  | 11837 | cat > conftest.$ac_ext <<EOF | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 11838 | #line 11838 "configure" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11839 | #include "confdefs.h" | 
|  | 11840 |  | 
|  | 11841 | #if HAVE_DLFCN_H | 
|  | 11842 | #include <dlfcn.h> | 
|  | 11843 | #endif | 
|  | 11844 |  | 
|  | 11845 | #include <stdio.h> | 
|  | 11846 |  | 
|  | 11847 | #ifdef RTLD_GLOBAL | 
|  | 11848 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
|  | 11849 | #else | 
|  | 11850 | #  ifdef DL_GLOBAL | 
|  | 11851 | #    define LT_DLGLOBAL		DL_GLOBAL | 
|  | 11852 | #  else | 
|  | 11853 | #    define LT_DLGLOBAL		0 | 
|  | 11854 | #  endif | 
|  | 11855 | #endif | 
|  | 11856 |  | 
|  | 11857 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
|  | 11858 | find out it does not work in some platform. */ | 
|  | 11859 | #ifndef LT_DLLAZY_OR_NOW | 
|  | 11860 | #  ifdef RTLD_LAZY | 
|  | 11861 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
|  | 11862 | #  else | 
|  | 11863 | #    ifdef DL_LAZY | 
|  | 11864 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
|  | 11865 | #    else | 
|  | 11866 | #      ifdef RTLD_NOW | 
|  | 11867 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
|  | 11868 | #      else | 
|  | 11869 | #        ifdef DL_NOW | 
|  | 11870 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
|  | 11871 | #        else | 
|  | 11872 | #          define LT_DLLAZY_OR_NOW	0 | 
|  | 11873 | #        endif | 
|  | 11874 | #      endif | 
|  | 11875 | #    endif | 
|  | 11876 | #  endif | 
|  | 11877 | #endif | 
|  | 11878 |  | 
|  | 11879 | #ifdef __cplusplus | 
|  | 11880 | extern "C" void exit (int); | 
|  | 11881 | #endif | 
|  | 11882 |  | 
|  | 11883 | void fnord() { int i=42;} | 
|  | 11884 | int main () | 
|  | 11885 | { | 
|  | 11886 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
|  | 11887 | int status = $lt_dlunknown; | 
|  | 11888 |  | 
|  | 11889 | if (self) | 
|  | 11890 | { | 
|  | 11891 | if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
|  | 11892 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
|  | 11893 | /* dlclose (self); */ | 
|  | 11894 | } | 
|  | 11895 |  | 
|  | 11896 | exit (status); | 
|  | 11897 | } | 
|  | 11898 | EOF | 
|  | 11899 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 11900 | (eval $ac_link) 2>&5 | 
|  | 11901 | ac_status=$? | 
|  | 11902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11903 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
|  | 11904 | (./conftest; exit; ) 2>/dev/null | 
|  | 11905 | lt_status=$? | 
|  | 11906 | case x$lt_status in | 
|  | 11907 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | 
|  | 11908 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | 
|  | 11909 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | 
|  | 11910 | esac | 
|  | 11911 | else : | 
|  | 11912 | # compilation failed | 
|  | 11913 | lt_cv_dlopen_self_static=no | 
|  | 11914 | fi | 
|  | 11915 | fi | 
|  | 11916 | rm -fr conftest* | 
|  | 11917 |  | 
|  | 11918 |  | 
|  | 11919 | fi | 
|  | 11920 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | 
|  | 11921 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | 
|  | 11922 | fi | 
|  | 11923 |  | 
|  | 11924 | CPPFLAGS="$save_CPPFLAGS" | 
|  | 11925 | LDFLAGS="$save_LDFLAGS" | 
|  | 11926 | LIBS="$save_LIBS" | 
|  | 11927 | ;; | 
|  | 11928 | esac | 
|  | 11929 |  | 
|  | 11930 | case $lt_cv_dlopen_self in | 
|  | 11931 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | 
|  | 11932 | *) enable_dlopen_self=unknown ;; | 
|  | 11933 | esac | 
|  | 11934 |  | 
|  | 11935 | case $lt_cv_dlopen_self_static in | 
|  | 11936 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | 
|  | 11937 | *) enable_dlopen_self_static=unknown ;; | 
|  | 11938 | esac | 
|  | 11939 | fi | 
|  | 11940 |  | 
|  | 11941 |  | 
|  | 11942 | # The else clause should only fire when bootstrapping the | 
|  | 11943 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
|  | 11944 | # with your package, and you will get complaints that there are | 
|  | 11945 | # no rules to generate ltmain.sh. | 
|  | 11946 | if test -f "$ltmain"; then | 
|  | 11947 | # See if we are running on zsh, and set the options which allow our commands through | 
|  | 11948 | # without removal of \ escapes. | 
|  | 11949 | if test -n "${ZSH_VERSION+set}" ; then | 
|  | 11950 | setopt NO_GLOB_SUBST | 
|  | 11951 | fi | 
|  | 11952 | # Now quote all the things that may contain metacharacters while being | 
|  | 11953 | # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
|  | 11954 | # variables and quote the copies for generation of the libtool script. | 
|  | 11955 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ | 
|  | 11956 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
|  | 11957 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
|  | 11958 | deplibs_check_method reload_flag reload_cmds need_locks \ | 
|  | 11959 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
|  | 11960 | lt_cv_sys_global_symbol_to_c_name_address \ | 
|  | 11961 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
|  | 11962 | old_postinstall_cmds old_postuninstall_cmds \ | 
|  | 11963 | compiler_CXX \ | 
|  | 11964 | CC_CXX \ | 
|  | 11965 | LD_CXX \ | 
|  | 11966 | lt_prog_compiler_wl_CXX \ | 
|  | 11967 | lt_prog_compiler_pic_CXX \ | 
|  | 11968 | lt_prog_compiler_static_CXX \ | 
|  | 11969 | lt_prog_compiler_no_builtin_flag_CXX \ | 
|  | 11970 | export_dynamic_flag_spec_CXX \ | 
|  | 11971 | thread_safe_flag_spec_CXX \ | 
|  | 11972 | whole_archive_flag_spec_CXX \ | 
|  | 11973 | enable_shared_with_static_runtimes_CXX \ | 
|  | 11974 | old_archive_cmds_CXX \ | 
|  | 11975 | old_archive_from_new_cmds_CXX \ | 
|  | 11976 | predep_objects_CXX \ | 
|  | 11977 | postdep_objects_CXX \ | 
|  | 11978 | predeps_CXX \ | 
|  | 11979 | postdeps_CXX \ | 
|  | 11980 | compiler_lib_search_path_CXX \ | 
|  | 11981 | archive_cmds_CXX \ | 
|  | 11982 | archive_expsym_cmds_CXX \ | 
|  | 11983 | postinstall_cmds_CXX \ | 
|  | 11984 | postuninstall_cmds_CXX \ | 
|  | 11985 | old_archive_from_expsyms_cmds_CXX \ | 
|  | 11986 | allow_undefined_flag_CXX \ | 
|  | 11987 | no_undefined_flag_CXX \ | 
|  | 11988 | export_symbols_cmds_CXX \ | 
|  | 11989 | hardcode_libdir_flag_spec_CXX \ | 
|  | 11990 | hardcode_libdir_flag_spec_ld_CXX \ | 
|  | 11991 | hardcode_libdir_separator_CXX \ | 
|  | 11992 | hardcode_automatic_CXX \ | 
|  | 11993 | module_cmds_CXX \ | 
|  | 11994 | module_expsym_cmds_CXX \ | 
|  | 11995 | lt_cv_prog_compiler_c_o_CXX \ | 
|  | 11996 | exclude_expsyms_CXX \ | 
|  | 11997 | include_expsyms_CXX; do | 
|  | 11998 |  | 
|  | 11999 | case $var in | 
|  | 12000 | old_archive_cmds_CXX | \ | 
|  | 12001 | old_archive_from_new_cmds_CXX | \ | 
|  | 12002 | archive_cmds_CXX | \ | 
|  | 12003 | archive_expsym_cmds_CXX | \ | 
|  | 12004 | module_cmds_CXX | \ | 
|  | 12005 | module_expsym_cmds_CXX | \ | 
|  | 12006 | old_archive_from_expsyms_cmds_CXX | \ | 
|  | 12007 | export_symbols_cmds_CXX | \ | 
|  | 12008 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
|  | 12009 | postinstall_cmds | postuninstall_cmds | \ | 
|  | 12010 | old_postinstall_cmds | old_postuninstall_cmds | \ | 
|  | 12011 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
|  | 12012 | # Double-quote double-evaled strings. | 
|  | 12013 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | 
|  | 12014 | ;; | 
|  | 12015 | *) | 
|  | 12016 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
|  | 12017 | ;; | 
|  | 12018 | esac | 
|  | 12019 | done | 
|  | 12020 |  | 
|  | 12021 | case $lt_echo in | 
|  | 12022 | *'\$0 --fallback-echo"') | 
|  | 12023 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
|  | 12024 | ;; | 
|  | 12025 | esac | 
|  | 12026 |  | 
|  | 12027 | cfgfile="$ofile" | 
|  | 12028 |  | 
|  | 12029 | cat <<__EOF__ >> "$cfgfile" | 
|  | 12030 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | 
|  | 12031 |  | 
|  | 12032 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
|  | 12033 |  | 
|  | 12034 | # Shell to use when invoking shell scripts. | 
|  | 12035 | SHELL=$lt_SHELL | 
|  | 12036 |  | 
|  | 12037 | # Whether or not to build shared libraries. | 
|  | 12038 | build_libtool_libs=$enable_shared | 
|  | 12039 |  | 
|  | 12040 | # Whether or not to build static libraries. | 
|  | 12041 | build_old_libs=$enable_static | 
|  | 12042 |  | 
|  | 12043 | # Whether or not to add -lc for building shared libraries. | 
|  | 12044 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | 
|  | 12045 |  | 
|  | 12046 | # Whether or not to disallow shared libs when runtime libs are static | 
|  | 12047 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | 
|  | 12048 |  | 
|  | 12049 | # Whether or not to optimize for fast installation. | 
|  | 12050 | fast_install=$enable_fast_install | 
|  | 12051 |  | 
|  | 12052 | # The host system. | 
|  | 12053 | host_alias=$host_alias | 
|  | 12054 | host=$host | 
|  | 12055 |  | 
|  | 12056 | # An echo program that does not interpret backslashes. | 
|  | 12057 | echo=$lt_echo | 
|  | 12058 |  | 
|  | 12059 | # The archiver. | 
|  | 12060 | AR=$lt_AR | 
|  | 12061 | AR_FLAGS=$lt_AR_FLAGS | 
|  | 12062 |  | 
|  | 12063 | # A C compiler. | 
|  | 12064 | LTCC=$lt_LTCC | 
|  | 12065 |  | 
|  | 12066 | # A language-specific compiler. | 
|  | 12067 | CC=$lt_compiler_CXX | 
|  | 12068 |  | 
|  | 12069 | # Is the compiler the GNU C compiler? | 
|  | 12070 | with_gcc=$GCC_CXX | 
|  | 12071 |  | 
|  | 12072 | # An ERE matcher. | 
|  | 12073 | EGREP=$lt_EGREP | 
|  | 12074 |  | 
|  | 12075 | # The linker used to build libraries. | 
|  | 12076 | LD=$lt_LD_CXX | 
|  | 12077 |  | 
|  | 12078 | # Whether we need hard or soft links. | 
|  | 12079 | LN_S=$lt_LN_S | 
|  | 12080 |  | 
|  | 12081 | # A BSD-compatible nm program. | 
|  | 12082 | NM=$lt_NM | 
|  | 12083 |  | 
|  | 12084 | # A symbol stripping program | 
|  | 12085 | STRIP=$STRIP | 
|  | 12086 |  | 
|  | 12087 | # Used to examine libraries when file_magic_cmd begins "file" | 
|  | 12088 | MAGIC_CMD=$MAGIC_CMD | 
|  | 12089 |  | 
|  | 12090 | # Used on cygwin: DLL creation program. | 
|  | 12091 | DLLTOOL="$DLLTOOL" | 
|  | 12092 |  | 
|  | 12093 | # Used on cygwin: object dumper. | 
|  | 12094 | OBJDUMP="$OBJDUMP" | 
|  | 12095 |  | 
|  | 12096 | # Used on cygwin: assembler. | 
|  | 12097 | AS="$AS" | 
|  | 12098 |  | 
|  | 12099 | # The name of the directory that contains temporary libtool files. | 
|  | 12100 | objdir=$objdir | 
|  | 12101 |  | 
|  | 12102 | # How to create reloadable object files. | 
|  | 12103 | reload_flag=$lt_reload_flag | 
|  | 12104 | reload_cmds=$lt_reload_cmds | 
|  | 12105 |  | 
|  | 12106 | # How to pass a linker flag through the compiler. | 
|  | 12107 | wl=$lt_lt_prog_compiler_wl_CXX | 
|  | 12108 |  | 
|  | 12109 | # Object file suffix (normally "o"). | 
|  | 12110 | objext="$ac_objext" | 
|  | 12111 |  | 
|  | 12112 | # Old archive suffix (normally "a"). | 
|  | 12113 | libext="$libext" | 
|  | 12114 |  | 
|  | 12115 | # Shared library suffix (normally ".so"). | 
|  | 12116 | shrext='$shrext' | 
|  | 12117 |  | 
|  | 12118 | # Executable file suffix (normally ""). | 
|  | 12119 | exeext="$exeext" | 
|  | 12120 |  | 
|  | 12121 | # Additional compiler flags for building library objects. | 
|  | 12122 | pic_flag=$lt_lt_prog_compiler_pic_CXX | 
|  | 12123 | pic_mode=$pic_mode | 
|  | 12124 |  | 
|  | 12125 | # What is the maximum length of a command? | 
|  | 12126 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
|  | 12127 |  | 
|  | 12128 | # Does compiler simultaneously support -c and -o options? | 
|  | 12129 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | 
|  | 12130 |  | 
|  | 12131 | # Must we lock files when doing compilation ? | 
|  | 12132 | need_locks=$lt_need_locks | 
|  | 12133 |  | 
|  | 12134 | # Do we need the lib prefix for modules? | 
|  | 12135 | need_lib_prefix=$need_lib_prefix | 
|  | 12136 |  | 
|  | 12137 | # Do we need a version for libraries? | 
|  | 12138 | need_version=$need_version | 
|  | 12139 |  | 
|  | 12140 | # Whether dlopen is supported. | 
|  | 12141 | dlopen_support=$enable_dlopen | 
|  | 12142 |  | 
|  | 12143 | # Whether dlopen of programs is supported. | 
|  | 12144 | dlopen_self=$enable_dlopen_self | 
|  | 12145 |  | 
|  | 12146 | # Whether dlopen of statically linked programs is supported. | 
|  | 12147 | dlopen_self_static=$enable_dlopen_self_static | 
|  | 12148 |  | 
|  | 12149 | # Compiler flag to prevent dynamic linking. | 
|  | 12150 | link_static_flag=$lt_lt_prog_compiler_static_CXX | 
|  | 12151 |  | 
|  | 12152 | # Compiler flag to turn off builtin functions. | 
|  | 12153 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | 
|  | 12154 |  | 
|  | 12155 | # Compiler flag to allow reflexive dlopens. | 
|  | 12156 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | 
|  | 12157 |  | 
|  | 12158 | # Compiler flag to generate shared objects directly from archives. | 
|  | 12159 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | 
|  | 12160 |  | 
|  | 12161 | # Compiler flag to generate thread-safe objects. | 
|  | 12162 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX | 
|  | 12163 |  | 
|  | 12164 | # Library versioning type. | 
|  | 12165 | version_type=$version_type | 
|  | 12166 |  | 
|  | 12167 | # Format of library name prefix. | 
|  | 12168 | libname_spec=$lt_libname_spec | 
|  | 12169 |  | 
|  | 12170 | # List of archive names.  First name is the real one, the rest are links. | 
|  | 12171 | # The last name is the one that the linker finds with -lNAME. | 
|  | 12172 | library_names_spec=$lt_library_names_spec | 
|  | 12173 |  | 
|  | 12174 | # The coded name of the library, if different from the real name. | 
|  | 12175 | soname_spec=$lt_soname_spec | 
|  | 12176 |  | 
|  | 12177 | # Commands used to build and install an old-style archive. | 
|  | 12178 | RANLIB=$lt_RANLIB | 
|  | 12179 | old_archive_cmds=$lt_old_archive_cmds_CXX | 
|  | 12180 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
|  | 12181 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
|  | 12182 |  | 
|  | 12183 | # Create an old-style archive from a shared archive. | 
|  | 12184 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | 
|  | 12185 |  | 
|  | 12186 | # Create a temporary old-style archive to link instead of a shared archive. | 
|  | 12187 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | 
|  | 12188 |  | 
|  | 12189 | # Commands used to build and install a shared archive. | 
|  | 12190 | archive_cmds=$lt_archive_cmds_CXX | 
|  | 12191 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | 
|  | 12192 | postinstall_cmds=$lt_postinstall_cmds | 
|  | 12193 | postuninstall_cmds=$lt_postuninstall_cmds | 
|  | 12194 |  | 
|  | 12195 | # Commands used to build a loadable module (assumed same as above if empty) | 
|  | 12196 | module_cmds=$lt_module_cmds_CXX | 
|  | 12197 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | 
|  | 12198 |  | 
|  | 12199 | # Commands to strip libraries. | 
|  | 12200 | old_striplib=$lt_old_striplib | 
|  | 12201 | striplib=$lt_striplib | 
|  | 12202 |  | 
|  | 12203 | # Dependencies to place before the objects being linked to create a | 
|  | 12204 | # shared library. | 
|  | 12205 | predep_objects=$lt_predep_objects_CXX | 
|  | 12206 |  | 
|  | 12207 | # Dependencies to place after the objects being linked to create a | 
|  | 12208 | # shared library. | 
|  | 12209 | postdep_objects=$lt_postdep_objects_CXX | 
|  | 12210 |  | 
|  | 12211 | # Dependencies to place before the objects being linked to create a | 
|  | 12212 | # shared library. | 
|  | 12213 | predeps=$lt_predeps_CXX | 
|  | 12214 |  | 
|  | 12215 | # Dependencies to place after the objects being linked to create a | 
|  | 12216 | # shared library. | 
|  | 12217 | postdeps=$lt_postdeps_CXX | 
|  | 12218 |  | 
|  | 12219 | # The library search path used internally by the compiler when linking | 
|  | 12220 | # a shared library. | 
|  | 12221 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | 
|  | 12222 |  | 
|  | 12223 | # Method to check whether dependent libraries are shared objects. | 
|  | 12224 | deplibs_check_method=$lt_deplibs_check_method | 
|  | 12225 |  | 
|  | 12226 | # Command to use when deplibs_check_method == file_magic. | 
|  | 12227 | file_magic_cmd=$lt_file_magic_cmd | 
|  | 12228 |  | 
|  | 12229 | # Flag that allows shared libraries with undefined symbols to be built. | 
|  | 12230 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | 
|  | 12231 |  | 
|  | 12232 | # Flag that forces no undefined symbols. | 
|  | 12233 | no_undefined_flag=$lt_no_undefined_flag_CXX | 
|  | 12234 |  | 
|  | 12235 | # Commands used to finish a libtool library installation in a directory. | 
|  | 12236 | finish_cmds=$lt_finish_cmds | 
|  | 12237 |  | 
|  | 12238 | # Same as above, but a single script fragment to be evaled but not shown. | 
|  | 12239 | finish_eval=$lt_finish_eval | 
|  | 12240 |  | 
|  | 12241 | # Take the output of nm and produce a listing of raw symbols and C names. | 
|  | 12242 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
|  | 12243 |  | 
|  | 12244 | # Transform the output of nm in a proper C declaration | 
|  | 12245 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
|  | 12246 |  | 
|  | 12247 | # Transform the output of nm in a C name address pair | 
|  | 12248 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
|  | 12249 |  | 
|  | 12250 | # This is the shared library runtime path variable. | 
|  | 12251 | runpath_var=$runpath_var | 
|  | 12252 |  | 
|  | 12253 | # This is the shared library path variable. | 
|  | 12254 | shlibpath_var=$shlibpath_var | 
|  | 12255 |  | 
|  | 12256 | # Is shlibpath searched before the hard-coded library search path? | 
|  | 12257 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
|  | 12258 |  | 
|  | 12259 | # How to hardcode a shared library path into an executable. | 
|  | 12260 | hardcode_action=$hardcode_action_CXX | 
|  | 12261 |  | 
|  | 12262 | # Whether we should hardcode library paths into libraries. | 
|  | 12263 | hardcode_into_libs=$hardcode_into_libs | 
|  | 12264 |  | 
|  | 12265 | # Flag to hardcode \$libdir into a binary during linking. | 
|  | 12266 | # This must work even if \$libdir does not exist. | 
|  | 12267 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | 
|  | 12268 |  | 
|  | 12269 | # If ld is used when linking, flag to hardcode \$libdir into | 
|  | 12270 | # a binary during linking. This must work even if \$libdir does | 
|  | 12271 | # not exist. | 
|  | 12272 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | 
|  | 12273 |  | 
|  | 12274 | # Whether we need a single -rpath flag with a separated argument. | 
|  | 12275 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | 
|  | 12276 |  | 
|  | 12277 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
|  | 12278 | # resulting binary. | 
|  | 12279 | hardcode_direct=$hardcode_direct_CXX | 
|  | 12280 |  | 
|  | 12281 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
|  | 12282 | # resulting binary. | 
|  | 12283 | hardcode_minus_L=$hardcode_minus_L_CXX | 
|  | 12284 |  | 
|  | 12285 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
|  | 12286 | # the resulting binary. | 
|  | 12287 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | 
|  | 12288 |  | 
|  | 12289 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
|  | 12290 | # and all subsequent libraries and executables linked against it. | 
|  | 12291 | hardcode_automatic=$hardcode_automatic_CXX | 
|  | 12292 |  | 
|  | 12293 | # Variables whose values should be saved in libtool wrapper scripts and | 
|  | 12294 | # restored at relink time. | 
|  | 12295 | variables_saved_for_relink="$variables_saved_for_relink" | 
|  | 12296 |  | 
|  | 12297 | # Whether libtool must link a program against all its dependency libraries. | 
|  | 12298 | link_all_deplibs=$link_all_deplibs_CXX | 
|  | 12299 |  | 
|  | 12300 | # Compile-time system search path for libraries | 
|  | 12301 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
|  | 12302 |  | 
|  | 12303 | # Run-time system search path for libraries | 
|  | 12304 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
|  | 12305 |  | 
|  | 12306 | # Fix the shell variable \$srcfile for the compiler. | 
|  | 12307 | fix_srcfile_path="$fix_srcfile_path_CXX" | 
|  | 12308 |  | 
|  | 12309 | # Set to yes if exported symbols are required. | 
|  | 12310 | always_export_symbols=$always_export_symbols_CXX | 
|  | 12311 |  | 
|  | 12312 | # The commands to list exported symbols. | 
|  | 12313 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | 
|  | 12314 |  | 
|  | 12315 | # The commands to extract the exported symbol list from a shared archive. | 
|  | 12316 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
|  | 12317 |  | 
|  | 12318 | # Symbols that should not be listed in the preloaded symbols. | 
|  | 12319 | exclude_expsyms=$lt_exclude_expsyms_CXX | 
|  | 12320 |  | 
|  | 12321 | # Symbols that must always be exported. | 
|  | 12322 | include_expsyms=$lt_include_expsyms_CXX | 
|  | 12323 |  | 
|  | 12324 | # ### END LIBTOOL TAG CONFIG: $tagname | 
|  | 12325 |  | 
|  | 12326 | __EOF__ | 
|  | 12327 |  | 
|  | 12328 |  | 
|  | 12329 | else | 
|  | 12330 | # If there is no Makefile yet, we rely on a make rule to execute | 
|  | 12331 | # `config.status --recheck' to rerun these tests and create the | 
|  | 12332 | # libtool script then. | 
|  | 12333 | test -f Makefile && make "$ltmain" | 
|  | 12334 | fi | 
|  | 12335 |  | 
|  | 12336 |  | 
|  | 12337 | ac_ext=c | 
|  | 12338 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 12339 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 12340 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 12341 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 12342 |  | 
|  | 12343 | CC=$lt_save_CC | 
|  | 12344 | LDCXX=$LD | 
|  | 12345 | LD=$lt_save_LD | 
|  | 12346 | GCC=$lt_save_GCC | 
|  | 12347 | with_gnu_ldcxx=$with_gnu_ld | 
|  | 12348 | with_gnu_ld=$lt_save_with_gnu_ld | 
|  | 12349 | lt_cv_path_LDCXX=$lt_cv_path_LD | 
|  | 12350 | lt_cv_path_LD=$lt_save_path_LD | 
|  | 12351 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | 
|  | 12352 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | 
|  | 12353 |  | 
|  | 12354 | else | 
|  | 12355 | tagname="" | 
|  | 12356 | fi | 
|  | 12357 | ;; | 
|  | 12358 |  | 
|  | 12359 | F77) | 
|  | 12360 | if test -n "$F77" && test "X$F77" != "Xno"; then | 
|  | 12361 |  | 
|  | 12362 | ac_ext=f | 
|  | 12363 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | 
|  | 12364 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 12365 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | 
|  | 12366 |  | 
|  | 12367 |  | 
|  | 12368 | archive_cmds_need_lc_F77=no | 
|  | 12369 | allow_undefined_flag_F77= | 
|  | 12370 | always_export_symbols_F77=no | 
|  | 12371 | archive_expsym_cmds_F77= | 
|  | 12372 | export_dynamic_flag_spec_F77= | 
|  | 12373 | hardcode_direct_F77=no | 
|  | 12374 | hardcode_libdir_flag_spec_F77= | 
|  | 12375 | hardcode_libdir_flag_spec_ld_F77= | 
|  | 12376 | hardcode_libdir_separator_F77= | 
|  | 12377 | hardcode_minus_L_F77=no | 
|  | 12378 | hardcode_automatic_F77=no | 
|  | 12379 | module_cmds_F77= | 
|  | 12380 | module_expsym_cmds_F77= | 
|  | 12381 | link_all_deplibs_F77=unknown | 
|  | 12382 | old_archive_cmds_F77=$old_archive_cmds | 
|  | 12383 | no_undefined_flag_F77= | 
|  | 12384 | whole_archive_flag_spec_F77= | 
|  | 12385 | enable_shared_with_static_runtimes_F77=no | 
|  | 12386 |  | 
|  | 12387 | # Source file extension for f77 test sources. | 
|  | 12388 | ac_ext=f | 
|  | 12389 |  | 
|  | 12390 | # Object file extension for compiled f77 test sources. | 
|  | 12391 | objext=o | 
|  | 12392 | objext_F77=$objext | 
|  | 12393 |  | 
|  | 12394 | # Code to be used in simple compile tests | 
|  | 12395 | lt_simple_compile_test_code="      subroutine t\n      return\n      end\n" | 
|  | 12396 |  | 
|  | 12397 | # Code to be used in simple link tests | 
|  | 12398 | lt_simple_link_test_code="      program t\n      end\n" | 
|  | 12399 |  | 
|  | 12400 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
|  | 12401 |  | 
|  | 12402 | # If no C compiler was specified, use CC. | 
|  | 12403 | LTCC=${LTCC-"$CC"} | 
|  | 12404 |  | 
|  | 12405 | # Allow CC to be a program name with arguments. | 
|  | 12406 | compiler=$CC | 
|  | 12407 |  | 
|  | 12408 |  | 
|  | 12409 | # Allow CC to be a program name with arguments. | 
|  | 12410 | lt_save_CC="$CC" | 
|  | 12411 | CC=${F77-"f77"} | 
|  | 12412 | compiler=$CC | 
|  | 12413 | compiler_F77=$CC | 
|  | 12414 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | 
|  | 12415 |  | 
|  | 12416 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | 
|  | 12417 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | 
|  | 12418 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | 
|  | 12419 | echo "${ECHO_T}$can_build_shared" >&6 | 
|  | 12420 |  | 
|  | 12421 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | 
|  | 12422 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | 
|  | 12423 | test "$can_build_shared" = "no" && enable_shared=no | 
|  | 12424 |  | 
|  | 12425 | # On AIX, shared libraries and static libraries use the same namespace, and | 
|  | 12426 | # are all built from PIC. | 
|  | 12427 | case "$host_os" in | 
|  | 12428 | aix3*) | 
|  | 12429 | test "$enable_shared" = yes && enable_static=no | 
|  | 12430 | if test -n "$RANLIB"; then | 
|  | 12431 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | 
|  | 12432 | postinstall_cmds='$RANLIB $lib' | 
|  | 12433 | fi | 
|  | 12434 | ;; | 
|  | 12435 | aix4*) | 
|  | 12436 | test "$enable_shared" = yes && enable_static=no | 
|  | 12437 | ;; | 
|  | 12438 | esac | 
|  | 12439 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | 
|  | 12440 | echo "${ECHO_T}$enable_shared" >&6 | 
|  | 12441 |  | 
|  | 12442 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | 
|  | 12443 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | 
|  | 12444 | # Make sure either enable_shared or enable_static is yes. | 
|  | 12445 | test "$enable_shared" = yes || enable_static=yes | 
|  | 12446 | echo "$as_me:$LINENO: result: $enable_static" >&5 | 
|  | 12447 | echo "${ECHO_T}$enable_static" >&6 | 
|  | 12448 |  | 
|  | 12449 | test "$ld_shlibs_F77" = no && can_build_shared=no | 
|  | 12450 |  | 
|  | 12451 | GCC_F77="$G77" | 
|  | 12452 | LD_F77="$LD" | 
|  | 12453 |  | 
|  | 12454 | lt_prog_compiler_wl_F77= | 
|  | 12455 | lt_prog_compiler_pic_F77= | 
|  | 12456 | lt_prog_compiler_static_F77= | 
|  | 12457 |  | 
|  | 12458 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 
|  | 12459 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | 
|  | 12460 |  | 
|  | 12461 | if test "$GCC" = yes; then | 
|  | 12462 | lt_prog_compiler_wl_F77='-Wl,' | 
|  | 12463 | lt_prog_compiler_static_F77='-static' | 
|  | 12464 |  | 
|  | 12465 | case $host_os in | 
|  | 12466 | aix*) | 
|  | 12467 | # All AIX code is PIC. | 
|  | 12468 | if test "$host_cpu" = ia64; then | 
|  | 12469 | # AIX 5 now supports IA64 processor | 
|  | 12470 | lt_prog_compiler_static_F77='-Bstatic' | 
|  | 12471 | fi | 
|  | 12472 | ;; | 
|  | 12473 |  | 
|  | 12474 | amigaos*) | 
|  | 12475 | # FIXME: we need at least 68020 code to build shared libraries, but | 
|  | 12476 | # adding the `-m68020' flag to GCC prevents building anything better, | 
|  | 12477 | # like `-m68040'. | 
|  | 12478 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' | 
|  | 12479 | ;; | 
|  | 12480 |  | 
|  | 12481 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
|  | 12482 | # PIC is the default for these OSes. | 
|  | 12483 | ;; | 
|  | 12484 |  | 
|  | 12485 | mingw* | pw32* | os2*) | 
|  | 12486 | # This hack is so that the source file can tell whether it is being | 
|  | 12487 | # built for inclusion in a dll (and should export symbols for example). | 
|  | 12488 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' | 
|  | 12489 | ;; | 
|  | 12490 |  | 
|  | 12491 | darwin* | rhapsody*) | 
|  | 12492 | # PIC is the default on this platform | 
|  | 12493 | # Common symbols not allowed in MH_DYLIB files | 
|  | 12494 | lt_prog_compiler_pic_F77='-fno-common' | 
|  | 12495 | ;; | 
|  | 12496 |  | 
|  | 12497 | msdosdjgpp*) | 
|  | 12498 | # Just because we use GCC doesn't mean we suddenly get shared libraries | 
|  | 12499 | # on systems that don't support them. | 
|  | 12500 | lt_prog_compiler_can_build_shared_F77=no | 
|  | 12501 | enable_shared=no | 
|  | 12502 | ;; | 
|  | 12503 |  | 
|  | 12504 | sysv4*MP*) | 
|  | 12505 | if test -d /usr/nec; then | 
|  | 12506 | lt_prog_compiler_pic_F77=-Kconform_pic | 
|  | 12507 | fi | 
|  | 12508 | ;; | 
|  | 12509 |  | 
|  | 12510 | hpux*) | 
|  | 12511 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
|  | 12512 | # not for PA HP-UX. | 
|  | 12513 | case "$host_cpu" in | 
|  | 12514 | hppa*64*|ia64*) | 
|  | 12515 | # +Z the default | 
|  | 12516 | ;; | 
|  | 12517 | *) | 
|  | 12518 | lt_prog_compiler_pic_F77='-fPIC' | 
|  | 12519 | ;; | 
|  | 12520 | esac | 
|  | 12521 | ;; | 
|  | 12522 |  | 
|  | 12523 | *) | 
|  | 12524 | lt_prog_compiler_pic_F77='-fPIC' | 
|  | 12525 | ;; | 
|  | 12526 | esac | 
|  | 12527 | else | 
|  | 12528 | # PORTME Check for flag to pass linker flags through the system compiler. | 
|  | 12529 | case $host_os in | 
|  | 12530 | aix*) | 
|  | 12531 | lt_prog_compiler_wl_F77='-Wl,' | 
|  | 12532 | if test "$host_cpu" = ia64; then | 
|  | 12533 | # AIX 5 now supports IA64 processor | 
|  | 12534 | lt_prog_compiler_static_F77='-Bstatic' | 
|  | 12535 | else | 
|  | 12536 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' | 
|  | 12537 | fi | 
|  | 12538 | ;; | 
|  | 12539 |  | 
|  | 12540 | mingw* | pw32* | os2*) | 
|  | 12541 | # This hack is so that the source file can tell whether it is being | 
|  | 12542 | # built for inclusion in a dll (and should export symbols for example). | 
|  | 12543 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' | 
|  | 12544 | ;; | 
|  | 12545 |  | 
|  | 12546 | hpux9* | hpux10* | hpux11*) | 
|  | 12547 | lt_prog_compiler_wl_F77='-Wl,' | 
|  | 12548 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
|  | 12549 | # not for PA HP-UX. | 
|  | 12550 | case "$host_cpu" in | 
|  | 12551 | hppa*64*|ia64*) | 
|  | 12552 | # +Z the default | 
|  | 12553 | ;; | 
|  | 12554 | *) | 
|  | 12555 | lt_prog_compiler_pic_F77='+Z' | 
|  | 12556 | ;; | 
|  | 12557 | esac | 
|  | 12558 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | 
|  | 12559 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' | 
|  | 12560 | ;; | 
|  | 12561 |  | 
|  | 12562 | irix5* | irix6* | nonstopux*) | 
|  | 12563 | lt_prog_compiler_wl_F77='-Wl,' | 
|  | 12564 | # PIC (with -KPIC) is the default. | 
|  | 12565 | lt_prog_compiler_static_F77='-non_shared' | 
|  | 12566 | ;; | 
|  | 12567 |  | 
|  | 12568 | newsos6) | 
|  | 12569 | lt_prog_compiler_pic_F77='-KPIC' | 
|  | 12570 | lt_prog_compiler_static_F77='-Bstatic' | 
|  | 12571 | ;; | 
|  | 12572 |  | 
|  | 12573 | linux*) | 
|  | 12574 | case $CC in | 
|  | 12575 | icc|ecc) | 
|  | 12576 | lt_prog_compiler_wl_F77='-Wl,' | 
|  | 12577 | lt_prog_compiler_pic_F77='-KPIC' | 
|  | 12578 | lt_prog_compiler_static_F77='-static' | 
|  | 12579 | ;; | 
|  | 12580 | ccc) | 
|  | 12581 | lt_prog_compiler_wl_F77='-Wl,' | 
|  | 12582 | # All Alpha code is PIC. | 
|  | 12583 | lt_prog_compiler_static_F77='-non_shared' | 
|  | 12584 | ;; | 
|  | 12585 | esac | 
|  | 12586 | ;; | 
|  | 12587 |  | 
|  | 12588 | osf3* | osf4* | osf5*) | 
|  | 12589 | lt_prog_compiler_wl_F77='-Wl,' | 
|  | 12590 | # All OSF/1 code is PIC. | 
|  | 12591 | lt_prog_compiler_static_F77='-non_shared' | 
|  | 12592 | ;; | 
|  | 12593 |  | 
|  | 12594 | sco3.2v5*) | 
|  | 12595 | lt_prog_compiler_pic_F77='-Kpic' | 
|  | 12596 | lt_prog_compiler_static_F77='-dn' | 
|  | 12597 | ;; | 
|  | 12598 |  | 
|  | 12599 | solaris*) | 
|  | 12600 | lt_prog_compiler_wl_F77='-Wl,' | 
|  | 12601 | lt_prog_compiler_pic_F77='-KPIC' | 
|  | 12602 | lt_prog_compiler_static_F77='-Bstatic' | 
|  | 12603 | ;; | 
|  | 12604 |  | 
|  | 12605 | sunos4*) | 
|  | 12606 | lt_prog_compiler_wl_F77='-Qoption ld ' | 
|  | 12607 | lt_prog_compiler_pic_F77='-PIC' | 
|  | 12608 | lt_prog_compiler_static_F77='-Bstatic' | 
|  | 12609 | ;; | 
|  | 12610 |  | 
|  | 12611 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
|  | 12612 | lt_prog_compiler_wl_F77='-Wl,' | 
|  | 12613 | lt_prog_compiler_pic_F77='-KPIC' | 
|  | 12614 | lt_prog_compiler_static_F77='-Bstatic' | 
|  | 12615 | ;; | 
|  | 12616 |  | 
|  | 12617 | sysv4*MP*) | 
|  | 12618 | if test -d /usr/nec ;then | 
|  | 12619 | lt_prog_compiler_pic_F77='-Kconform_pic' | 
|  | 12620 | lt_prog_compiler_static_F77='-Bstatic' | 
|  | 12621 | fi | 
|  | 12622 | ;; | 
|  | 12623 |  | 
|  | 12624 | uts4*) | 
|  | 12625 | lt_prog_compiler_pic_F77='-pic' | 
|  | 12626 | lt_prog_compiler_static_F77='-Bstatic' | 
|  | 12627 | ;; | 
|  | 12628 |  | 
|  | 12629 | *) | 
|  | 12630 | lt_prog_compiler_can_build_shared_F77=no | 
|  | 12631 | ;; | 
|  | 12632 | esac | 
|  | 12633 | fi | 
|  | 12634 |  | 
|  | 12635 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 | 
|  | 12636 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 | 
|  | 12637 |  | 
|  | 12638 | # | 
|  | 12639 | # Check to make sure the PIC flag actually works. | 
|  | 12640 | # | 
|  | 12641 | if test -n "$lt_prog_compiler_pic_F77"; then | 
|  | 12642 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 | 
|  | 12643 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 | 
|  | 12644 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then | 
|  | 12645 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 12646 | else | 
|  | 12647 | lt_prog_compiler_pic_works_F77=no | 
|  | 12648 | ac_outfile=conftest.$ac_objext | 
|  | 12649 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 12650 | lt_compiler_flag="$lt_prog_compiler_pic_F77" | 
|  | 12651 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 12652 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 12653 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 12654 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 12655 | # The option is referenced via a variable to avoid confusing sed. | 
|  | 12656 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 12657 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
|  | 12658 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 12659 | -e 's:$: $lt_compiler_flag:'` | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 12660 | (eval echo "\"\$as_me:12660: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12661 | (eval "$lt_compile" 2>conftest.err) | 
|  | 12662 | ac_status=$? | 
|  | 12663 | cat conftest.err >&5 | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 12664 | echo "$as_me:12664: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12665 | if (exit $ac_status) && test -s "$ac_outfile"; then | 
|  | 12666 | # The compiler can only warn and ignore the option if not recognized | 
|  | 12667 | # So say no if there are warnings | 
|  | 12668 | if test ! -s conftest.err; then | 
|  | 12669 | lt_prog_compiler_pic_works_F77=yes | 
|  | 12670 | fi | 
|  | 12671 | fi | 
|  | 12672 | $rm conftest* | 
|  | 12673 |  | 
|  | 12674 | fi | 
|  | 12675 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 | 
|  | 12676 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 | 
|  | 12677 |  | 
|  | 12678 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then | 
|  | 12679 | case $lt_prog_compiler_pic_F77 in | 
|  | 12680 | "" | " "*) ;; | 
|  | 12681 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; | 
|  | 12682 | esac | 
|  | 12683 | else | 
|  | 12684 | lt_prog_compiler_pic_F77= | 
|  | 12685 | lt_prog_compiler_can_build_shared_F77=no | 
|  | 12686 | fi | 
|  | 12687 |  | 
|  | 12688 | fi | 
|  | 12689 | case "$host_os" in | 
|  | 12690 | # For platforms which do not support PIC, -DPIC is meaningless: | 
|  | 12691 | *djgpp*) | 
|  | 12692 | lt_prog_compiler_pic_F77= | 
|  | 12693 | ;; | 
|  | 12694 | *) | 
|  | 12695 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" | 
|  | 12696 | ;; | 
|  | 12697 | esac | 
|  | 12698 |  | 
|  | 12699 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
|  | 12700 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | 
|  | 12701 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then | 
|  | 12702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 12703 | else | 
|  | 12704 | lt_cv_prog_compiler_c_o_F77=no | 
|  | 12705 | $rm -r conftest 2>/dev/null | 
|  | 12706 | mkdir conftest | 
|  | 12707 | cd conftest | 
|  | 12708 | mkdir out | 
|  | 12709 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 12710 |  | 
|  | 12711 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers | 
|  | 12712 | # that will create temporary files in the current directory regardless of | 
|  | 12713 | # the output directory.  Thus, making CWD read-only will cause this test | 
|  | 12714 | # to fail, enabling locking or at least warning the user not to do parallel | 
|  | 12715 | # builds. | 
|  | 12716 | chmod -w . | 
|  | 12717 |  | 
|  | 12718 | lt_compiler_flag="-o out/conftest2.$ac_objext" | 
|  | 12719 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 12720 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 12721 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 12722 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 12723 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 12724 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
|  | 12725 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 12726 | -e 's:$: $lt_compiler_flag:'` | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 12727 | (eval echo "\"\$as_me:12727: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12728 | (eval "$lt_compile" 2>out/conftest.err) | 
|  | 12729 | ac_status=$? | 
|  | 12730 | cat out/conftest.err >&5 | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 12731 | echo "$as_me:12731: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12732 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
|  | 12733 | then | 
|  | 12734 | # The compiler can only warn and ignore the option if not recognized | 
|  | 12735 | # So say no if there are warnings | 
|  | 12736 | if test ! -s out/conftest.err; then | 
|  | 12737 | lt_cv_prog_compiler_c_o_F77=yes | 
|  | 12738 | fi | 
|  | 12739 | fi | 
|  | 12740 | chmod u+w . | 
|  | 12741 | $rm conftest* out/* | 
|  | 12742 | rmdir out | 
|  | 12743 | cd .. | 
|  | 12744 | rmdir conftest | 
|  | 12745 | $rm conftest* | 
|  | 12746 |  | 
|  | 12747 | fi | 
|  | 12748 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 | 
|  | 12749 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 | 
|  | 12750 |  | 
|  | 12751 |  | 
|  | 12752 | hard_links="nottested" | 
|  | 12753 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then | 
|  | 12754 | # do not overwrite the value of need_locks provided by the user | 
|  | 12755 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | 
|  | 12756 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | 
|  | 12757 | hard_links=yes | 
|  | 12758 | $rm conftest* | 
|  | 12759 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
|  | 12760 | touch conftest.a | 
|  | 12761 | ln conftest.a conftest.b 2>&5 || hard_links=no | 
|  | 12762 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
|  | 12763 | echo "$as_me:$LINENO: result: $hard_links" >&5 | 
|  | 12764 | echo "${ECHO_T}$hard_links" >&6 | 
|  | 12765 | if test "$hard_links" = no; then | 
|  | 12766 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
|  | 12767 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
|  | 12768 | need_locks=warn | 
|  | 12769 | fi | 
|  | 12770 | else | 
|  | 12771 | need_locks=no | 
|  | 12772 | fi | 
|  | 12773 |  | 
|  | 12774 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
|  | 12775 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
|  | 12776 |  | 
|  | 12777 | runpath_var= | 
|  | 12778 | allow_undefined_flag_F77= | 
|  | 12779 | enable_shared_with_static_runtimes_F77=no | 
|  | 12780 | archive_cmds_F77= | 
|  | 12781 | archive_expsym_cmds_F77= | 
|  | 12782 | old_archive_From_new_cmds_F77= | 
|  | 12783 | old_archive_from_expsyms_cmds_F77= | 
|  | 12784 | export_dynamic_flag_spec_F77= | 
|  | 12785 | whole_archive_flag_spec_F77= | 
|  | 12786 | thread_safe_flag_spec_F77= | 
|  | 12787 | hardcode_libdir_flag_spec_F77= | 
|  | 12788 | hardcode_libdir_flag_spec_ld_F77= | 
|  | 12789 | hardcode_libdir_separator_F77= | 
|  | 12790 | hardcode_direct_F77=no | 
|  | 12791 | hardcode_minus_L_F77=no | 
|  | 12792 | hardcode_shlibpath_var_F77=unsupported | 
|  | 12793 | link_all_deplibs_F77=unknown | 
|  | 12794 | hardcode_automatic_F77=no | 
|  | 12795 | module_cmds_F77= | 
|  | 12796 | module_expsym_cmds_F77= | 
|  | 12797 | always_export_symbols_F77=no | 
|  | 12798 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
|  | 12799 | # include_expsyms should be a list of space-separated symbols to be *always* | 
|  | 12800 | # included in the symbol list | 
|  | 12801 | include_expsyms_F77= | 
|  | 12802 | # exclude_expsyms can be an extended regexp of symbols to exclude | 
|  | 12803 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | 
|  | 12804 | # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | 
|  | 12805 | # as well as any symbol that contains `d'. | 
|  | 12806 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" | 
|  | 12807 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | 
|  | 12808 | # platforms (ab)use it in PIC code, but their linkers get confused if | 
|  | 12809 | # the symbol is explicitly referenced.  Since portable code cannot | 
|  | 12810 | # rely on this symbol name, it's probably fine to never include it in | 
|  | 12811 | # preloaded symbol tables. | 
|  | 12812 | extract_expsyms_cmds= | 
|  | 12813 |  | 
|  | 12814 | case $host_os in | 
|  | 12815 | cygwin* | mingw* | pw32*) | 
|  | 12816 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | 
|  | 12817 | # When not using gcc, we currently assume that we are using | 
|  | 12818 | # Microsoft Visual C++. | 
|  | 12819 | if test "$GCC" != yes; then | 
|  | 12820 | with_gnu_ld=no | 
|  | 12821 | fi | 
|  | 12822 | ;; | 
|  | 12823 | openbsd*) | 
|  | 12824 | with_gnu_ld=no | 
|  | 12825 | ;; | 
|  | 12826 | esac | 
|  | 12827 |  | 
|  | 12828 | ld_shlibs_F77=yes | 
|  | 12829 | if test "$with_gnu_ld" = yes; then | 
|  | 12830 | # If archive_cmds runs LD, not CC, wlarc should be empty | 
|  | 12831 | wlarc='${wl}' | 
|  | 12832 |  | 
|  | 12833 | # See if GNU ld supports shared libraries. | 
|  | 12834 | case $host_os in | 
|  | 12835 | aix3* | aix4* | aix5*) | 
|  | 12836 | # On AIX/PPC, the GNU linker is very broken | 
|  | 12837 | if test "$host_cpu" != ia64; then | 
|  | 12838 | ld_shlibs_F77=no | 
|  | 12839 | cat <<EOF 1>&2 | 
|  | 12840 |  | 
|  | 12841 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | 
|  | 12842 | *** to be unable to reliably create shared libraries on AIX. | 
|  | 12843 | *** Therefore, libtool is disabling shared libraries support.  If you | 
|  | 12844 | *** really care for shared libraries, you may want to modify your PATH | 
|  | 12845 | *** so that a non-GNU linker is found, and then restart. | 
|  | 12846 |  | 
|  | 12847 | EOF | 
|  | 12848 | fi | 
|  | 12849 | ;; | 
|  | 12850 |  | 
|  | 12851 | amigaos*) | 
|  | 12852 | 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)' | 
|  | 12853 | hardcode_libdir_flag_spec_F77='-L$libdir' | 
|  | 12854 | hardcode_minus_L_F77=yes | 
|  | 12855 |  | 
|  | 12856 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | 
|  | 12857 | # that the semantics of dynamic libraries on AmigaOS, at least up | 
|  | 12858 | # to version 4, is to share data among multiple programs linked | 
|  | 12859 | # with the same dynamic library.  Since this doesn't match the | 
|  | 12860 | # behavior of shared libraries on other platforms, we can't use | 
|  | 12861 | # them. | 
|  | 12862 | ld_shlibs_F77=no | 
|  | 12863 | ;; | 
|  | 12864 |  | 
|  | 12865 | beos*) | 
|  | 12866 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
|  | 12867 | allow_undefined_flag_F77=unsupported | 
|  | 12868 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 
|  | 12869 | # support --undefined.  This deserves some investigation.  FIXME | 
|  | 12870 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 12871 | else | 
|  | 12872 | ld_shlibs_F77=no | 
|  | 12873 | fi | 
|  | 12874 | ;; | 
|  | 12875 |  | 
|  | 12876 | cygwin* | mingw* | pw32*) | 
|  | 12877 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, | 
|  | 12878 | # as there is no search path for DLLs. | 
|  | 12879 | hardcode_libdir_flag_spec_F77='-L$libdir' | 
|  | 12880 | allow_undefined_flag_F77=unsupported | 
|  | 12881 | always_export_symbols_F77=no | 
|  | 12882 | enable_shared_with_static_runtimes_F77=yes | 
|  | 12883 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 
|  | 12884 |  | 
|  | 12885 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 
|  | 12886 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 
|  | 12887 | # If the export-symbols file already is a .def file (1st line | 
|  | 12888 | # is EXPORTS), use it as is; otherwise, prepend... | 
|  | 12889 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
|  | 12890 | cp $export_symbols $output_objdir/$soname.def; | 
|  | 12891 | else | 
|  | 12892 | echo EXPORTS > $output_objdir/$soname.def; | 
|  | 12893 | cat $export_symbols >> $output_objdir/$soname.def; | 
|  | 12894 | fi~ | 
|  | 12895 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib' | 
|  | 12896 | else | 
|  | 12897 | ld_shlibs=no | 
|  | 12898 | fi | 
|  | 12899 | ;; | 
|  | 12900 |  | 
|  | 12901 | netbsd*) | 
|  | 12902 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
|  | 12903 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | 
|  | 12904 | wlarc= | 
|  | 12905 | else | 
|  | 12906 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 12907 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|  | 12908 | fi | 
|  | 12909 | ;; | 
|  | 12910 |  | 
|  | 12911 | solaris* | sysv5*) | 
|  | 12912 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | 
|  | 12913 | ld_shlibs_F77=no | 
|  | 12914 | cat <<EOF 1>&2 | 
|  | 12915 |  | 
|  | 12916 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | 
|  | 12917 | *** create shared libraries on Solaris systems.  Therefore, libtool | 
|  | 12918 | *** is disabling shared libraries support.  We urge you to upgrade GNU | 
|  | 12919 | *** binutils to release 2.9.1 or newer.  Another option is to modify | 
|  | 12920 | *** your PATH or compiler configuration so that the native linker is | 
|  | 12921 | *** used, and then restart. | 
|  | 12922 |  | 
|  | 12923 | EOF | 
|  | 12924 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
|  | 12925 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 12926 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|  | 12927 | else | 
|  | 12928 | ld_shlibs_F77=no | 
|  | 12929 | fi | 
|  | 12930 | ;; | 
|  | 12931 |  | 
|  | 12932 | sunos4*) | 
|  | 12933 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
|  | 12934 | wlarc= | 
|  | 12935 | hardcode_direct_F77=yes | 
|  | 12936 | hardcode_shlibpath_var_F77=no | 
|  | 12937 | ;; | 
|  | 12938 |  | 
|  | 12939 | *) | 
|  | 12940 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
|  | 12941 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 12942 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|  | 12943 | else | 
|  | 12944 | ld_shlibs_F77=no | 
|  | 12945 | fi | 
|  | 12946 | ;; | 
|  | 12947 | esac | 
|  | 12948 |  | 
|  | 12949 | if test "$ld_shlibs_F77" = yes; then | 
|  | 12950 | runpath_var=LD_RUN_PATH | 
|  | 12951 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' | 
|  | 12952 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' | 
|  | 12953 | # ancient GNU ld didn't support --whole-archive et. al. | 
|  | 12954 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | 
|  | 12955 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
|  | 12956 | else | 
|  | 12957 | whole_archive_flag_spec_F77= | 
|  | 12958 | fi | 
|  | 12959 | fi | 
|  | 12960 | else | 
|  | 12961 | # PORTME fill in a description of your system's linker (not GNU ld) | 
|  | 12962 | case $host_os in | 
|  | 12963 | aix3*) | 
|  | 12964 | allow_undefined_flag_F77=unsupported | 
|  | 12965 | always_export_symbols_F77=yes | 
|  | 12966 | 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' | 
|  | 12967 | # Note: this linker hardcodes the directories in LIBPATH if there | 
|  | 12968 | # are no directories specified by -L. | 
|  | 12969 | hardcode_minus_L_F77=yes | 
|  | 12970 | if test "$GCC" = yes && test -z "$link_static_flag"; then | 
|  | 12971 | # Neither direct hardcoding nor static linking is supported with a | 
|  | 12972 | # broken collect2. | 
|  | 12973 | hardcode_direct_F77=unsupported | 
|  | 12974 | fi | 
|  | 12975 | ;; | 
|  | 12976 |  | 
|  | 12977 | aix4* | aix5*) | 
|  | 12978 | if test "$host_cpu" = ia64; then | 
|  | 12979 | # On IA64, the linker does run time linking by default, so we don't | 
|  | 12980 | # have to do anything special. | 
|  | 12981 | aix_use_runtimelinking=no | 
|  | 12982 | exp_sym_flag='-Bexport' | 
|  | 12983 | no_entry_flag="" | 
|  | 12984 | else | 
|  | 12985 | # If we're using GNU nm, then we don't want the "-C" option. | 
|  | 12986 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | 
|  | 12987 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 
|  | 12988 | 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' | 
|  | 12989 | else | 
|  | 12990 | 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' | 
|  | 12991 | fi | 
|  | 12992 | aix_use_runtimelinking=no | 
|  | 12993 |  | 
|  | 12994 | # Test if we are trying to use run time linking or normal | 
|  | 12995 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
|  | 12996 | # need to do runtime linking. | 
|  | 12997 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 
|  | 12998 | for ld_flag in $LDFLAGS; do | 
|  | 12999 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 
|  | 13000 | aix_use_runtimelinking=yes | 
|  | 13001 | break | 
|  | 13002 | fi | 
|  | 13003 | done | 
|  | 13004 | esac | 
|  | 13005 |  | 
|  | 13006 | exp_sym_flag='-bexport' | 
|  | 13007 | no_entry_flag='-bnoentry' | 
|  | 13008 | fi | 
|  | 13009 |  | 
|  | 13010 | # When large executables or shared objects are built, AIX ld can | 
|  | 13011 | # have problems creating the table of contents.  If linking a library | 
|  | 13012 | # or program results in "error TOC overflow" add -mminimal-toc to | 
|  | 13013 | # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
|  | 13014 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
|  | 13015 |  | 
|  | 13016 | archive_cmds_F77='' | 
|  | 13017 | hardcode_direct_F77=yes | 
|  | 13018 | hardcode_libdir_separator_F77=':' | 
|  | 13019 | link_all_deplibs_F77=yes | 
|  | 13020 |  | 
|  | 13021 | if test "$GCC" = yes; then | 
|  | 13022 | case $host_os in aix4.012|aix4.012.*) | 
|  | 13023 | # We only want to do this on AIX 4.2 and lower, the check | 
|  | 13024 | # below for broken collect2 doesn't work under 4.3+ | 
|  | 13025 | collect2name=`${CC} -print-prog-name=collect2` | 
|  | 13026 | if test -f "$collect2name" && \ | 
|  | 13027 | strings "$collect2name" | grep resolve_lib_name >/dev/null | 
|  | 13028 | then | 
|  | 13029 | # We have reworked collect2 | 
|  | 13030 | hardcode_direct_F77=yes | 
|  | 13031 | else | 
|  | 13032 | # We have old collect2 | 
|  | 13033 | hardcode_direct_F77=unsupported | 
|  | 13034 | # It fails to find uninstalled libraries when the uninstalled | 
|  | 13035 | # path is not listed in the libpath.  Setting hardcode_minus_L | 
|  | 13036 | # to unsupported forces relinking | 
|  | 13037 | hardcode_minus_L_F77=yes | 
|  | 13038 | hardcode_libdir_flag_spec_F77='-L$libdir' | 
|  | 13039 | hardcode_libdir_separator_F77= | 
|  | 13040 | fi | 
|  | 13041 | esac | 
|  | 13042 | shared_flag='-shared' | 
|  | 13043 | else | 
|  | 13044 | # not using gcc | 
|  | 13045 | if test "$host_cpu" = ia64; then | 
|  | 13046 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
|  | 13047 | # chokes on -Wl,-G. The following line is correct: | 
|  | 13048 | shared_flag='-G' | 
|  | 13049 | else | 
|  | 13050 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 13051 | shared_flag='${wl}-G' | 
|  | 13052 | else | 
|  | 13053 | shared_flag='${wl}-bM:SRE' | 
|  | 13054 | fi | 
|  | 13055 | fi | 
|  | 13056 | fi | 
|  | 13057 |  | 
|  | 13058 | # It seems that -bexpall does not export symbols beginning with | 
|  | 13059 | # underscore (_), so it is better to generate a list of symbols to export. | 
|  | 13060 | always_export_symbols_F77=yes | 
|  | 13061 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 13062 | # Warning - without using the other runtime loading flags (-brtl), | 
|  | 13063 | # -berok will link without error, but may produce a broken library. | 
|  | 13064 | allow_undefined_flag_F77='-berok' | 
|  | 13065 | # Determine the default libpath from the value encoded in an empty executable. | 
|  | 13066 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 13067 | program main | 
|  | 13068 |  | 
|  | 13069 | end | 
|  | 13070 | _ACEOF | 
|  | 13071 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 13072 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 13073 | (eval $ac_link) 2>&5 | 
|  | 13074 | ac_status=$? | 
|  | 13075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13076 | (exit $ac_status); } && | 
|  | 13077 | { ac_try='test -s conftest$ac_exeext' | 
|  | 13078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 13079 | (eval $ac_try) 2>&5 | 
|  | 13080 | ac_status=$? | 
|  | 13081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13082 | (exit $ac_status); }; }; then | 
|  | 13083 |  | 
|  | 13084 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
|  | 13085 | }'` | 
|  | 13086 | # Check for a 64-bit object if we didn't find anything. | 
|  | 13087 | 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; } | 
|  | 13088 | }'`; fi | 
|  | 13089 | else | 
|  | 13090 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13091 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 13092 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13093 | fi | 
|  | 13094 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 13095 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
|  | 13096 |  | 
|  | 13097 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | 
|  | 13098 | 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" | 
|  | 13099 | else | 
|  | 13100 | if test "$host_cpu" = ia64; then | 
|  | 13101 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' | 
|  | 13102 | allow_undefined_flag_F77="-z nodefs" | 
|  | 13103 | 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" | 
|  | 13104 | else | 
|  | 13105 | # Determine the default libpath from the value encoded in an empty executable. | 
|  | 13106 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 13107 | program main | 
|  | 13108 |  | 
|  | 13109 | end | 
|  | 13110 | _ACEOF | 
|  | 13111 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 13112 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 13113 | (eval $ac_link) 2>&5 | 
|  | 13114 | ac_status=$? | 
|  | 13115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13116 | (exit $ac_status); } && | 
|  | 13117 | { ac_try='test -s conftest$ac_exeext' | 
|  | 13118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 13119 | (eval $ac_try) 2>&5 | 
|  | 13120 | ac_status=$? | 
|  | 13121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13122 | (exit $ac_status); }; }; then | 
|  | 13123 |  | 
|  | 13124 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
|  | 13125 | }'` | 
|  | 13126 | # Check for a 64-bit object if we didn't find anything. | 
|  | 13127 | 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; } | 
|  | 13128 | }'`; fi | 
|  | 13129 | else | 
|  | 13130 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13131 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 13132 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13133 | fi | 
|  | 13134 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 13135 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
|  | 13136 |  | 
|  | 13137 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | 
|  | 13138 | # Warning - without using the other run time loading flags, | 
|  | 13139 | # -berok will link without error, but may produce a broken library. | 
|  | 13140 | no_undefined_flag_F77=' ${wl}-bernotok' | 
|  | 13141 | allow_undefined_flag_F77=' ${wl}-berok' | 
|  | 13142 | # -bexpall does not export symbols beginning with underscore (_) | 
|  | 13143 | always_export_symbols_F77=yes | 
|  | 13144 | # Exported symbols can be pulled into shared objects from archives | 
|  | 13145 | whole_archive_flag_spec_F77=' ' | 
|  | 13146 | archive_cmds_need_lc_F77=yes | 
|  | 13147 | # This is similar to how AIX traditionally builds it's shared libraries. | 
|  | 13148 | 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' | 
|  | 13149 | fi | 
|  | 13150 | fi | 
|  | 13151 | ;; | 
|  | 13152 |  | 
|  | 13153 | amigaos*) | 
|  | 13154 | 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)' | 
|  | 13155 | hardcode_libdir_flag_spec_F77='-L$libdir' | 
|  | 13156 | hardcode_minus_L_F77=yes | 
|  | 13157 | # see comment about different semantics on the GNU ld section | 
|  | 13158 | ld_shlibs_F77=no | 
|  | 13159 | ;; | 
|  | 13160 |  | 
|  | 13161 | bsdi4*) | 
|  | 13162 | export_dynamic_flag_spec_F77=-rdynamic | 
|  | 13163 | ;; | 
|  | 13164 |  | 
|  | 13165 | cygwin* | mingw* | pw32*) | 
|  | 13166 | # When not using gcc, we currently assume that we are using | 
|  | 13167 | # Microsoft Visual C++. | 
|  | 13168 | # hardcode_libdir_flag_spec is actually meaningless, as there is | 
|  | 13169 | # no search path for DLLs. | 
|  | 13170 | hardcode_libdir_flag_spec_F77=' ' | 
|  | 13171 | allow_undefined_flag_F77=unsupported | 
|  | 13172 | # Tell ltmain to make .lib files, not .a files. | 
|  | 13173 | libext=lib | 
|  | 13174 | # Tell ltmain to make .dll files, not .so files. | 
|  | 13175 | shrext=".dll" | 
|  | 13176 | # FIXME: Setting linknames here is a bad hack. | 
|  | 13177 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | 
|  | 13178 | # The linker will automatically build a .lib file if we build a DLL. | 
|  | 13179 | old_archive_From_new_cmds_F77='true' | 
|  | 13180 | # FIXME: Should let the user specify the lib program. | 
|  | 13181 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' | 
|  | 13182 | fix_srcfile_path='`cygpath -w "$srcfile"`' | 
|  | 13183 | enable_shared_with_static_runtimes_F77=yes | 
|  | 13184 | ;; | 
|  | 13185 |  | 
|  | 13186 | darwin* | rhapsody*) | 
|  | 13187 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then | 
|  | 13188 | archive_cmds_need_lc_F77=no | 
|  | 13189 | case "$host_os" in | 
|  | 13190 | rhapsody* | darwin1.[012]) | 
|  | 13191 | allow_undefined_flag_F77='-undefined suppress' | 
|  | 13192 | ;; | 
|  | 13193 | *) # Darwin 1.3 on | 
|  | 13194 | test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress' | 
|  | 13195 | ;; | 
|  | 13196 | esac | 
|  | 13197 | # FIXME: Relying on posixy $() will cause problems for | 
|  | 13198 | #        cross-compilation, but unfortunately the echo tests do not | 
|  | 13199 | #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles | 
|  | 13200 | #	       `"' quotes if we put them in here... so don't! | 
|  | 13201 | lt_int_apple_cc_single_mod=no | 
|  | 13202 | output_verbose_link_cmd='echo' | 
|  | 13203 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then | 
|  | 13204 | lt_int_apple_cc_single_mod=yes | 
|  | 13205 | fi | 
|  | 13206 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | 
|  | 13207 | archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 
|  | 13208 | else | 
|  | 13209 | archive_cmds_F77='$CC -r ${wl}-bind_at_load -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' | 
|  | 13210 | fi | 
|  | 13211 | module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' | 
|  | 13212 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
|  | 13213 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | 
|  | 13214 | archive_expsym_cmds_F77='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}' | 
|  | 13215 | else | 
|  | 13216 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' | 
|  | 13217 | fi | 
|  | 13218 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
|  | 13219 | hardcode_direct_F77=no | 
|  | 13220 | hardcode_automatic_F77=yes | 
|  | 13221 | hardcode_shlibpath_var_F77=unsupported | 
|  | 13222 | whole_archive_flag_spec_F77='-all_load $convenience' | 
|  | 13223 | link_all_deplibs_F77=yes | 
|  | 13224 | fi | 
|  | 13225 | ;; | 
|  | 13226 |  | 
|  | 13227 | dgux*) | 
|  | 13228 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 13229 | hardcode_libdir_flag_spec_F77='-L$libdir' | 
|  | 13230 | hardcode_shlibpath_var_F77=no | 
|  | 13231 | ;; | 
|  | 13232 |  | 
|  | 13233 | freebsd1*) | 
|  | 13234 | ld_shlibs_F77=no | 
|  | 13235 | ;; | 
|  | 13236 |  | 
|  | 13237 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 
|  | 13238 | # support.  Future versions do this automatically, but an explicit c++rt0.o | 
|  | 13239 | # does not break anything, and helps significantly (at the cost of a little | 
|  | 13240 | # extra space). | 
|  | 13241 | freebsd2.2*) | 
|  | 13242 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | 
|  | 13243 | hardcode_libdir_flag_spec_F77='-R$libdir' | 
|  | 13244 | hardcode_direct_F77=yes | 
|  | 13245 | hardcode_shlibpath_var_F77=no | 
|  | 13246 | ;; | 
|  | 13247 |  | 
|  | 13248 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 
|  | 13249 | freebsd2*) | 
|  | 13250 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
|  | 13251 | hardcode_direct_F77=yes | 
|  | 13252 | hardcode_minus_L_F77=yes | 
|  | 13253 | hardcode_shlibpath_var_F77=no | 
|  | 13254 | ;; | 
|  | 13255 |  | 
|  | 13256 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 
|  | 13257 | freebsd*) | 
|  | 13258 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 13259 | hardcode_libdir_flag_spec_F77='-R$libdir' | 
|  | 13260 | hardcode_direct_F77=yes | 
|  | 13261 | hardcode_shlibpath_var_F77=no | 
|  | 13262 | ;; | 
|  | 13263 |  | 
|  | 13264 | hpux9*) | 
|  | 13265 | if test "$GCC" = yes; then | 
|  | 13266 | 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' | 
|  | 13267 | else | 
|  | 13268 | 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' | 
|  | 13269 | fi | 
|  | 13270 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | 
|  | 13271 | hardcode_libdir_separator_F77=: | 
|  | 13272 | hardcode_direct_F77=yes | 
|  | 13273 |  | 
|  | 13274 | # hardcode_minus_L: Not really in the search PATH, | 
|  | 13275 | # but as the default location of the library. | 
|  | 13276 | hardcode_minus_L_F77=yes | 
|  | 13277 | export_dynamic_flag_spec_F77='${wl}-E' | 
|  | 13278 | ;; | 
|  | 13279 |  | 
|  | 13280 | hpux10* | hpux11*) | 
|  | 13281 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 
|  | 13282 | case "$host_cpu" in | 
|  | 13283 | hppa*64*|ia64*) | 
|  | 13284 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 13285 | ;; | 
|  | 13286 | *) | 
|  | 13287 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 13288 | ;; | 
|  | 13289 | esac | 
|  | 13290 | else | 
|  | 13291 | case "$host_cpu" in | 
|  | 13292 | hppa*64*|ia64*) | 
|  | 13293 | archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 13294 | ;; | 
|  | 13295 | *) | 
|  | 13296 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 
|  | 13297 | ;; | 
|  | 13298 | esac | 
|  | 13299 | fi | 
|  | 13300 | if test "$with_gnu_ld" = no; then | 
|  | 13301 | case "$host_cpu" in | 
|  | 13302 | hppa*64*) | 
|  | 13303 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | 
|  | 13304 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' | 
|  | 13305 | hardcode_libdir_separator_F77=: | 
|  | 13306 | hardcode_direct_F77=no | 
|  | 13307 | hardcode_shlibpath_var_F77=no | 
|  | 13308 | ;; | 
|  | 13309 | ia64*) | 
|  | 13310 | hardcode_libdir_flag_spec_F77='-L$libdir' | 
|  | 13311 | hardcode_direct_F77=no | 
|  | 13312 | hardcode_shlibpath_var_F77=no | 
|  | 13313 |  | 
|  | 13314 | # hardcode_minus_L: Not really in the search PATH, | 
|  | 13315 | # but as the default location of the library. | 
|  | 13316 | hardcode_minus_L_F77=yes | 
|  | 13317 | ;; | 
|  | 13318 | *) | 
|  | 13319 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | 
|  | 13320 | hardcode_libdir_separator_F77=: | 
|  | 13321 | hardcode_direct_F77=yes | 
|  | 13322 | export_dynamic_flag_spec_F77='${wl}-E' | 
|  | 13323 |  | 
|  | 13324 | # hardcode_minus_L: Not really in the search PATH, | 
|  | 13325 | # but as the default location of the library. | 
|  | 13326 | hardcode_minus_L_F77=yes | 
|  | 13327 | ;; | 
|  | 13328 | esac | 
|  | 13329 | fi | 
|  | 13330 | ;; | 
|  | 13331 |  | 
|  | 13332 | irix5* | irix6* | nonstopux*) | 
|  | 13333 | if test "$GCC" = yes; then | 
|  | 13334 | 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' | 
|  | 13335 | else | 
|  | 13336 | 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' | 
|  | 13337 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' | 
|  | 13338 | fi | 
|  | 13339 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | 
|  | 13340 | hardcode_libdir_separator_F77=: | 
|  | 13341 | link_all_deplibs_F77=yes | 
|  | 13342 | ;; | 
|  | 13343 |  | 
|  | 13344 | netbsd*) | 
|  | 13345 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
|  | 13346 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out | 
|  | 13347 | else | 
|  | 13348 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF | 
|  | 13349 | fi | 
|  | 13350 | hardcode_libdir_flag_spec_F77='-R$libdir' | 
|  | 13351 | hardcode_direct_F77=yes | 
|  | 13352 | hardcode_shlibpath_var_F77=no | 
|  | 13353 | ;; | 
|  | 13354 |  | 
|  | 13355 | newsos6) | 
|  | 13356 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 13357 | hardcode_direct_F77=yes | 
|  | 13358 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | 
|  | 13359 | hardcode_libdir_separator_F77=: | 
|  | 13360 | hardcode_shlibpath_var_F77=no | 
|  | 13361 | ;; | 
|  | 13362 |  | 
|  | 13363 | openbsd*) | 
|  | 13364 | hardcode_direct_F77=yes | 
|  | 13365 | hardcode_shlibpath_var_F77=no | 
|  | 13366 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|  | 13367 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 13368 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | 
|  | 13369 | export_dynamic_flag_spec_F77='${wl}-E' | 
|  | 13370 | else | 
|  | 13371 | case $host_os in | 
|  | 13372 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | 
|  | 13373 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
|  | 13374 | hardcode_libdir_flag_spec_F77='-R$libdir' | 
|  | 13375 | ;; | 
|  | 13376 | *) | 
|  | 13377 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 13378 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | 
|  | 13379 | ;; | 
|  | 13380 | esac | 
|  | 13381 | fi | 
|  | 13382 | ;; | 
|  | 13383 |  | 
|  | 13384 | os2*) | 
|  | 13385 | hardcode_libdir_flag_spec_F77='-L$libdir' | 
|  | 13386 | hardcode_minus_L_F77=yes | 
|  | 13387 | allow_undefined_flag_F77=unsupported | 
|  | 13388 | 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' | 
|  | 13389 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | 
|  | 13390 | ;; | 
|  | 13391 |  | 
|  | 13392 | osf3*) | 
|  | 13393 | if test "$GCC" = yes; then | 
|  | 13394 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | 
|  | 13395 | 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' | 
|  | 13396 | else | 
|  | 13397 | allow_undefined_flag_F77=' -expect_unresolved \*' | 
|  | 13398 | 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' | 
|  | 13399 | fi | 
|  | 13400 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | 
|  | 13401 | hardcode_libdir_separator_F77=: | 
|  | 13402 | ;; | 
|  | 13403 |  | 
|  | 13404 | osf4* | osf5*)	# as osf3* with the addition of -msym flag | 
|  | 13405 | if test "$GCC" = yes; then | 
|  | 13406 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | 
|  | 13407 | 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' | 
|  | 13408 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | 
|  | 13409 | else | 
|  | 13410 | allow_undefined_flag_F77=' -expect_unresolved \*' | 
|  | 13411 | 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' | 
|  | 13412 | 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~ | 
|  | 13413 | $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' | 
|  | 13414 |  | 
|  | 13415 | # Both c and cxx compiler support -rpath directly | 
|  | 13416 | hardcode_libdir_flag_spec_F77='-rpath $libdir' | 
|  | 13417 | fi | 
|  | 13418 | hardcode_libdir_separator_F77=: | 
|  | 13419 | ;; | 
|  | 13420 |  | 
|  | 13421 | sco3.2v5*) | 
|  | 13422 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 13423 | hardcode_shlibpath_var_F77=no | 
|  | 13424 | export_dynamic_flag_spec_F77='${wl}-Bexport' | 
|  | 13425 | runpath_var=LD_RUN_PATH | 
|  | 13426 | hardcode_runpath_var=yes | 
|  | 13427 | ;; | 
|  | 13428 |  | 
|  | 13429 | solaris*) | 
|  | 13430 | no_undefined_flag_F77=' -z text' | 
|  | 13431 | if test "$GCC" = yes; then | 
|  | 13432 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 13433 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|  | 13434 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | 
|  | 13435 | else | 
|  | 13436 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 13437 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|  | 13438 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | 
|  | 13439 | fi | 
|  | 13440 | hardcode_libdir_flag_spec_F77='-R$libdir' | 
|  | 13441 | hardcode_shlibpath_var_F77=no | 
|  | 13442 | case $host_os in | 
|  | 13443 | solaris2.[0-5] | solaris2.[0-5].*) ;; | 
|  | 13444 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) | 
|  | 13445 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; | 
|  | 13446 | esac | 
|  | 13447 | link_all_deplibs_F77=yes | 
|  | 13448 | ;; | 
|  | 13449 |  | 
|  | 13450 | sunos4*) | 
|  | 13451 | if test "x$host_vendor" = xsequent; then | 
|  | 13452 | # Use $CC to link under sequent, because it throws in some extra .o | 
|  | 13453 | # files that make .init and .fini sections work. | 
|  | 13454 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 13455 | else | 
|  | 13456 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | 
|  | 13457 | fi | 
|  | 13458 | hardcode_libdir_flag_spec_F77='-L$libdir' | 
|  | 13459 | hardcode_direct_F77=yes | 
|  | 13460 | hardcode_minus_L_F77=yes | 
|  | 13461 | hardcode_shlibpath_var_F77=no | 
|  | 13462 | ;; | 
|  | 13463 |  | 
|  | 13464 | sysv4) | 
|  | 13465 | case $host_vendor in | 
|  | 13466 | sni) | 
|  | 13467 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 13468 | hardcode_direct_F77=yes # is this really true??? | 
|  | 13469 | ;; | 
|  | 13470 | siemens) | 
|  | 13471 | ## LD is ld it makes a PLAMLIB | 
|  | 13472 | ## CC just makes a GrossModule. | 
|  | 13473 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
|  | 13474 | reload_cmds_F77='$CC -r -o $output$reload_objs' | 
|  | 13475 | hardcode_direct_F77=no | 
|  | 13476 | ;; | 
|  | 13477 | motorola) | 
|  | 13478 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 13479 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie | 
|  | 13480 | ;; | 
|  | 13481 | esac | 
|  | 13482 | runpath_var='LD_RUN_PATH' | 
|  | 13483 | hardcode_shlibpath_var_F77=no | 
|  | 13484 | ;; | 
|  | 13485 |  | 
|  | 13486 | sysv4.3*) | 
|  | 13487 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 13488 | hardcode_shlibpath_var_F77=no | 
|  | 13489 | export_dynamic_flag_spec_F77='-Bexport' | 
|  | 13490 | ;; | 
|  | 13491 |  | 
|  | 13492 | sysv4*MP*) | 
|  | 13493 | if test -d /usr/nec; then | 
|  | 13494 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 13495 | hardcode_shlibpath_var_F77=no | 
|  | 13496 | runpath_var=LD_RUN_PATH | 
|  | 13497 | hardcode_runpath_var=yes | 
|  | 13498 | ld_shlibs_F77=yes | 
|  | 13499 | fi | 
|  | 13500 | ;; | 
|  | 13501 |  | 
|  | 13502 | sysv4.2uw2*) | 
|  | 13503 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
|  | 13504 | hardcode_direct_F77=yes | 
|  | 13505 | hardcode_minus_L_F77=no | 
|  | 13506 | hardcode_shlibpath_var_F77=no | 
|  | 13507 | hardcode_runpath_var=yes | 
|  | 13508 | runpath_var=LD_RUN_PATH | 
|  | 13509 | ;; | 
|  | 13510 |  | 
|  | 13511 | sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*) | 
|  | 13512 | no_undefined_flag_F77='${wl}-z ${wl}text' | 
|  | 13513 | if test "$GCC" = yes; then | 
|  | 13514 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 13515 | else | 
|  | 13516 | archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 13517 | fi | 
|  | 13518 | runpath_var='LD_RUN_PATH' | 
|  | 13519 | hardcode_shlibpath_var_F77=no | 
|  | 13520 | ;; | 
|  | 13521 |  | 
|  | 13522 | sysv5*) | 
|  | 13523 | no_undefined_flag_F77=' -z text' | 
|  | 13524 | # $CC -shared without GNU ld will not create a library from C++ | 
|  | 13525 | # object files and a static libstdc++, better avoid it by now | 
|  | 13526 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 13527 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|  | 13528 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | 
|  | 13529 | hardcode_libdir_flag_spec_F77= | 
|  | 13530 | hardcode_shlibpath_var_F77=no | 
|  | 13531 | runpath_var='LD_RUN_PATH' | 
|  | 13532 | ;; | 
|  | 13533 |  | 
|  | 13534 | uts4*) | 
|  | 13535 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 13536 | hardcode_libdir_flag_spec_F77='-L$libdir' | 
|  | 13537 | hardcode_shlibpath_var_F77=no | 
|  | 13538 | ;; | 
|  | 13539 |  | 
|  | 13540 | *) | 
|  | 13541 | ld_shlibs_F77=no | 
|  | 13542 | ;; | 
|  | 13543 | esac | 
|  | 13544 | fi | 
|  | 13545 |  | 
|  | 13546 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 | 
|  | 13547 | echo "${ECHO_T}$ld_shlibs_F77" >&6 | 
|  | 13548 | test "$ld_shlibs_F77" = no && can_build_shared=no | 
|  | 13549 |  | 
|  | 13550 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
|  | 13551 | if test "$GCC" = yes; then | 
|  | 13552 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
|  | 13553 | fi | 
|  | 13554 |  | 
|  | 13555 | # | 
|  | 13556 | # Do we need to explicitly link libc? | 
|  | 13557 | # | 
|  | 13558 | case "x$archive_cmds_need_lc_F77" in | 
|  | 13559 | x|xyes) | 
|  | 13560 | # Assume -lc should be added | 
|  | 13561 | archive_cmds_need_lc_F77=yes | 
|  | 13562 |  | 
|  | 13563 | if test "$enable_shared" = yes && test "$GCC" = yes; then | 
|  | 13564 | case $archive_cmds_F77 in | 
|  | 13565 | *'~'*) | 
|  | 13566 | # FIXME: we may have to deal with multi-command sequences. | 
|  | 13567 | ;; | 
|  | 13568 | '$CC '*) | 
|  | 13569 | # Test whether the compiler implicitly links with -lc since on some | 
|  | 13570 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
|  | 13571 | # to ld, don't add -lc before -lgcc. | 
|  | 13572 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | 
|  | 13573 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | 
|  | 13574 | $rm conftest* | 
|  | 13575 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 13576 |  | 
|  | 13577 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 13578 | (eval $ac_compile) 2>&5 | 
|  | 13579 | ac_status=$? | 
|  | 13580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13581 | (exit $ac_status); } 2>conftest.err; then | 
|  | 13582 | soname=conftest | 
|  | 13583 | lib=conftest | 
|  | 13584 | libobjs=conftest.$ac_objext | 
|  | 13585 | deplibs= | 
|  | 13586 | wl=$lt_prog_compiler_wl_F77 | 
|  | 13587 | compiler_flags=-v | 
|  | 13588 | linker_flags=-v | 
|  | 13589 | verstring= | 
|  | 13590 | output_objdir=. | 
|  | 13591 | libname=conftest | 
|  | 13592 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 | 
|  | 13593 | allow_undefined_flag_F77= | 
|  | 13594 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | 
|  | 13595 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
|  | 13596 | ac_status=$? | 
|  | 13597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13598 | (exit $ac_status); } | 
|  | 13599 | then | 
|  | 13600 | archive_cmds_need_lc_F77=no | 
|  | 13601 | else | 
|  | 13602 | archive_cmds_need_lc_F77=yes | 
|  | 13603 | fi | 
|  | 13604 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag | 
|  | 13605 | else | 
|  | 13606 | cat conftest.err 1>&5 | 
|  | 13607 | fi | 
|  | 13608 | $rm conftest* | 
|  | 13609 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 | 
|  | 13610 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 | 
|  | 13611 | ;; | 
|  | 13612 | esac | 
|  | 13613 | fi | 
|  | 13614 | ;; | 
|  | 13615 | esac | 
|  | 13616 |  | 
|  | 13617 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 
|  | 13618 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 
|  | 13619 | hardcode_action_F77= | 
|  | 13620 | if test -n "$hardcode_libdir_flag_spec_F77" || \ | 
|  | 13621 | test -n "$runpath_var F77" || \ | 
|  | 13622 | test "X$hardcode_automatic_F77"="Xyes" ; then | 
|  | 13623 |  | 
|  | 13624 | # We can hardcode non-existant directories. | 
|  | 13625 | if test "$hardcode_direct_F77" != no && | 
|  | 13626 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
|  | 13627 | # have to relink, otherwise we might link with an installed library | 
|  | 13628 | # when we should be linking with a yet-to-be-installed one | 
|  | 13629 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && | 
|  | 13630 | test "$hardcode_minus_L_F77" != no; then | 
|  | 13631 | # Linking always hardcodes the temporary library directory. | 
|  | 13632 | hardcode_action_F77=relink | 
|  | 13633 | else | 
|  | 13634 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
|  | 13635 | hardcode_action_F77=immediate | 
|  | 13636 | fi | 
|  | 13637 | else | 
|  | 13638 | # We cannot hardcode anything, or else we can only hardcode existing | 
|  | 13639 | # directories. | 
|  | 13640 | hardcode_action_F77=unsupported | 
|  | 13641 | fi | 
|  | 13642 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 | 
|  | 13643 | echo "${ECHO_T}$hardcode_action_F77" >&6 | 
|  | 13644 |  | 
|  | 13645 | if test "$hardcode_action_F77" = relink; then | 
|  | 13646 | # Fast installation is not supported | 
|  | 13647 | enable_fast_install=no | 
|  | 13648 | elif test "$shlibpath_overrides_runpath" = yes || | 
|  | 13649 | test "$enable_shared" = no; then | 
|  | 13650 | # Fast installation is not necessary | 
|  | 13651 | enable_fast_install=needless | 
|  | 13652 | fi | 
|  | 13653 |  | 
|  | 13654 | striplib= | 
|  | 13655 | old_striplib= | 
|  | 13656 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | 
|  | 13657 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | 
|  | 13658 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 
|  | 13659 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 
|  | 13660 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 
|  | 13661 | echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 13662 | echo "${ECHO_T}yes" >&6 | 
|  | 13663 | else | 
|  | 13664 | # FIXME - insert some real tests, host_os isn't really good enough | 
|  | 13665 | case $host_os in | 
|  | 13666 | darwin*) | 
|  | 13667 | if test -n "$STRIP" ; then | 
|  | 13668 | striplib="$STRIP -x" | 
|  | 13669 | echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 13670 | echo "${ECHO_T}yes" >&6 | 
|  | 13671 | else | 
|  | 13672 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 13673 | echo "${ECHO_T}no" >&6 | 
|  | 13674 | fi | 
|  | 13675 | ;; | 
|  | 13676 | *) | 
|  | 13677 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 13678 | echo "${ECHO_T}no" >&6 | 
|  | 13679 | ;; | 
|  | 13680 | esac | 
|  | 13681 | fi | 
|  | 13682 |  | 
|  | 13683 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
|  | 13684 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 
|  | 13685 | library_names_spec= | 
|  | 13686 | libname_spec='lib$name' | 
|  | 13687 | soname_spec= | 
|  | 13688 | shrext=".so" | 
|  | 13689 | postinstall_cmds= | 
|  | 13690 | postuninstall_cmds= | 
|  | 13691 | finish_cmds= | 
|  | 13692 | finish_eval= | 
|  | 13693 | shlibpath_var= | 
|  | 13694 | shlibpath_overrides_runpath=unknown | 
|  | 13695 | version_type=none | 
|  | 13696 | dynamic_linker="$host_os ld.so" | 
|  | 13697 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
|  | 13698 | if test "$GCC" = yes; then | 
|  | 13699 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
|  | 13700 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
|  | 13701 | # if the path contains ";" then we assume it to be the separator | 
|  | 13702 | # otherwise default to the standard path separator (i.e. ":") - it is | 
|  | 13703 | # assumed that no part of a normal pathname contains ";" but that should | 
|  | 13704 | # okay in the real world where ";" in dirpaths is itself problematic. | 
|  | 13705 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
|  | 13706 | else | 
|  | 13707 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
|  | 13708 | fi | 
|  | 13709 | else | 
|  | 13710 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
|  | 13711 | fi | 
|  | 13712 | need_lib_prefix=unknown | 
|  | 13713 | hardcode_into_libs=no | 
|  | 13714 |  | 
|  | 13715 | # when you set need_version to no, make sure it does not cause -set_version | 
|  | 13716 | # flags to be left without arguments | 
|  | 13717 | need_version=unknown | 
|  | 13718 |  | 
|  | 13719 | case $host_os in | 
|  | 13720 | aix3*) | 
|  | 13721 | version_type=linux | 
|  | 13722 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
|  | 13723 | shlibpath_var=LIBPATH | 
|  | 13724 |  | 
|  | 13725 | # AIX 3 has no versioning support, so we append a major version to the name. | 
|  | 13726 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 13727 | ;; | 
|  | 13728 |  | 
|  | 13729 | aix4* | aix5*) | 
|  | 13730 | version_type=linux | 
|  | 13731 | need_lib_prefix=no | 
|  | 13732 | need_version=no | 
|  | 13733 | hardcode_into_libs=yes | 
|  | 13734 | if test "$host_cpu" = ia64; then | 
|  | 13735 | # AIX 5 supports IA64 | 
|  | 13736 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
|  | 13737 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 13738 | else | 
|  | 13739 | # With GCC up to 2.95.x, collect2 would create an import file | 
|  | 13740 | # for dependence libraries.  The import file would start with | 
|  | 13741 | # the line `#! .'.  This would cause the generated library to | 
|  | 13742 | # depend on `.', always an invalid library.  This was fixed in | 
|  | 13743 | # development snapshots of GCC prior to 3.0. | 
|  | 13744 | case $host_os in | 
|  | 13745 | aix4 | aix4.[01] | aix4.[01].*) | 
|  | 13746 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
|  | 13747 | echo ' yes ' | 
|  | 13748 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
|  | 13749 | : | 
|  | 13750 | else | 
|  | 13751 | can_build_shared=no | 
|  | 13752 | fi | 
|  | 13753 | ;; | 
|  | 13754 | esac | 
|  | 13755 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
|  | 13756 | # soname into executable. Probably we can add versioning support to | 
|  | 13757 | # collect2, so additional links can be useful in future. | 
|  | 13758 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 13759 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
|  | 13760 | # instead of lib<name>.a to let people know that these are not | 
|  | 13761 | # typical AIX shared libraries. | 
|  | 13762 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 13763 | else | 
|  | 13764 | # We preserve .a as extension for shared libraries through AIX4.2 | 
|  | 13765 | # and later when we are not doing run time linking. | 
|  | 13766 | library_names_spec='${libname}${release}.a $libname.a' | 
|  | 13767 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 13768 | fi | 
|  | 13769 | shlibpath_var=LIBPATH | 
|  | 13770 | fi | 
|  | 13771 | ;; | 
|  | 13772 |  | 
|  | 13773 | amigaos*) | 
|  | 13774 | library_names_spec='$libname.ixlibrary $libname.a' | 
|  | 13775 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
|  | 13776 | 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' | 
|  | 13777 | ;; | 
|  | 13778 |  | 
|  | 13779 | beos*) | 
|  | 13780 | library_names_spec='${libname}${shared_ext}' | 
|  | 13781 | dynamic_linker="$host_os ld.so" | 
|  | 13782 | shlibpath_var=LIBRARY_PATH | 
|  | 13783 | ;; | 
|  | 13784 |  | 
|  | 13785 | bsdi4*) | 
|  | 13786 | version_type=linux | 
|  | 13787 | need_version=no | 
|  | 13788 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 13789 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 13790 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
|  | 13791 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 13792 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
|  | 13793 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
|  | 13794 | # the default ld.so.conf also contains /usr/contrib/lib and | 
|  | 13795 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
|  | 13796 | # libtool to hard-code these into programs | 
|  | 13797 | ;; | 
|  | 13798 |  | 
|  | 13799 | cygwin* | mingw* | pw32*) | 
|  | 13800 | version_type=windows | 
|  | 13801 | shrext=".dll" | 
|  | 13802 | need_version=no | 
|  | 13803 | need_lib_prefix=no | 
|  | 13804 |  | 
|  | 13805 | case $GCC,$host_os in | 
|  | 13806 | yes,cygwin* | yes,mingw* | yes,pw32*) | 
|  | 13807 | library_names_spec='$libname.dll.a' | 
|  | 13808 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
|  | 13809 | postinstall_cmds='base_file=`basename \${file}`~ | 
|  | 13810 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
|  | 13811 | dldir=$destdir/`dirname \$dlpath`~ | 
|  | 13812 | test -d \$dldir || mkdir -p \$dldir~ | 
|  | 13813 | $install_prog $dir/$dlname \$dldir/$dlname' | 
|  | 13814 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
|  | 13815 | dlpath=$dir/\$dldll~ | 
|  | 13816 | $rm \$dlpath' | 
|  | 13817 | shlibpath_overrides_runpath=yes | 
|  | 13818 |  | 
|  | 13819 | case $host_os in | 
|  | 13820 | cygwin*) | 
|  | 13821 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
|  | 13822 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
|  | 13823 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" | 
|  | 13824 | ;; | 
|  | 13825 | mingw*) | 
|  | 13826 | # MinGW DLLs use traditional 'lib' prefix | 
|  | 13827 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
|  | 13828 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
|  | 13829 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
|  | 13830 | # It is most probably a Windows format PATH printed by | 
|  | 13831 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
|  | 13832 | # path with ; separators, and with drive letters. We can handle the | 
|  | 13833 | # drive letters (cygwin fileutils understands them), so leave them, | 
|  | 13834 | # especially as we might pass files found there to a mingw objdump, | 
|  | 13835 | # which wouldn't understand a cygwinified path. Ahh. | 
|  | 13836 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
|  | 13837 | else | 
|  | 13838 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
|  | 13839 | fi | 
|  | 13840 | ;; | 
|  | 13841 | pw32*) | 
|  | 13842 | # pw32 DLLs use 'pw' prefix rather than 'lib' | 
|  | 13843 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | 
|  | 13844 | ;; | 
|  | 13845 | esac | 
|  | 13846 | ;; | 
|  | 13847 |  | 
|  | 13848 | *) | 
|  | 13849 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
|  | 13850 | ;; | 
|  | 13851 | esac | 
|  | 13852 | dynamic_linker='Win32 ld.exe' | 
|  | 13853 | # FIXME: first we should search . and the directory the executable is in | 
|  | 13854 | shlibpath_var=PATH | 
|  | 13855 | ;; | 
|  | 13856 |  | 
|  | 13857 | darwin* | rhapsody*) | 
|  | 13858 | dynamic_linker="$host_os dyld" | 
|  | 13859 | version_type=darwin | 
|  | 13860 | need_lib_prefix=no | 
|  | 13861 | need_version=no | 
|  | 13862 | # FIXME: Relying on posixy $() will cause problems for | 
|  | 13863 | #        cross-compilation, but unfortunately the echo tests do not | 
|  | 13864 | #        yet detect zsh echo's removal of \ escapes. | 
|  | 13865 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | 
|  | 13866 | soname_spec='${libname}${release}${major}$shared_ext' | 
|  | 13867 | shlibpath_overrides_runpath=yes | 
|  | 13868 | shlibpath_var=DYLD_LIBRARY_PATH | 
|  | 13869 | shrext='$(test .$module = .yes && echo .so || echo .dylib)' | 
|  | 13870 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | 
|  | 13871 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then | 
|  | 13872 | 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"` | 
|  | 13873 | fi | 
|  | 13874 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
|  | 13875 | ;; | 
|  | 13876 |  | 
|  | 13877 | dgux*) | 
|  | 13878 | version_type=linux | 
|  | 13879 | need_lib_prefix=no | 
|  | 13880 | need_version=no | 
|  | 13881 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
|  | 13882 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 13883 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 13884 | ;; | 
|  | 13885 |  | 
|  | 13886 | freebsd1*) | 
|  | 13887 | dynamic_linker=no | 
|  | 13888 | ;; | 
|  | 13889 |  | 
|  | 13890 | freebsd*) | 
|  | 13891 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | 
|  | 13892 | version_type=freebsd-$objformat | 
|  | 13893 | case $version_type in | 
|  | 13894 | freebsd-elf*) | 
|  | 13895 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 13896 | need_version=no | 
|  | 13897 | need_lib_prefix=no | 
|  | 13898 | ;; | 
|  | 13899 | freebsd-*) | 
|  | 13900 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
|  | 13901 | need_version=yes | 
|  | 13902 | ;; | 
|  | 13903 | esac | 
|  | 13904 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 13905 | case $host_os in | 
|  | 13906 | freebsd2*) | 
|  | 13907 | shlibpath_overrides_runpath=yes | 
|  | 13908 | ;; | 
|  | 13909 | freebsd3.01* | freebsdelf3.01*) | 
|  | 13910 | shlibpath_overrides_runpath=yes | 
|  | 13911 | hardcode_into_libs=yes | 
|  | 13912 | ;; | 
|  | 13913 | *) # from 3.2 on | 
|  | 13914 | shlibpath_overrides_runpath=no | 
|  | 13915 | hardcode_into_libs=yes | 
|  | 13916 | ;; | 
|  | 13917 | esac | 
|  | 13918 | ;; | 
|  | 13919 |  | 
|  | 13920 | gnu*) | 
|  | 13921 | version_type=linux | 
|  | 13922 | need_lib_prefix=no | 
|  | 13923 | need_version=no | 
|  | 13924 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
|  | 13925 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 13926 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 13927 | hardcode_into_libs=yes | 
|  | 13928 | ;; | 
|  | 13929 |  | 
|  | 13930 | hpux9* | hpux10* | hpux11*) | 
|  | 13931 | # Give a soname corresponding to the major version so that dld.sl refuses to | 
|  | 13932 | # link against other versions. | 
|  | 13933 | version_type=sunos | 
|  | 13934 | need_lib_prefix=no | 
|  | 13935 | need_version=no | 
|  | 13936 | case "$host_cpu" in | 
|  | 13937 | ia64*) | 
|  | 13938 | shrext='.so' | 
|  | 13939 | hardcode_into_libs=yes | 
|  | 13940 | dynamic_linker="$host_os dld.so" | 
|  | 13941 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 13942 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 13943 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 13944 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 13945 | if test "X$HPUX_IA64_MODE" = X32; then | 
|  | 13946 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
|  | 13947 | else | 
|  | 13948 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
|  | 13949 | fi | 
|  | 13950 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 13951 | ;; | 
|  | 13952 | hppa*64*) | 
|  | 13953 | shrext='.sl' | 
|  | 13954 | hardcode_into_libs=yes | 
|  | 13955 | dynamic_linker="$host_os dld.sl" | 
|  | 13956 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
|  | 13957 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 13958 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 13959 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 13960 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
|  | 13961 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 13962 | ;; | 
|  | 13963 | *) | 
|  | 13964 | shrext='.sl' | 
|  | 13965 | dynamic_linker="$host_os dld.sl" | 
|  | 13966 | shlibpath_var=SHLIB_PATH | 
|  | 13967 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
|  | 13968 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 13969 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 13970 | ;; | 
|  | 13971 | esac | 
|  | 13972 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
|  | 13973 | postinstall_cmds='chmod 555 $lib' | 
|  | 13974 | ;; | 
|  | 13975 |  | 
|  | 13976 | irix5* | irix6* | nonstopux*) | 
|  | 13977 | case $host_os in | 
|  | 13978 | nonstopux*) version_type=nonstopux ;; | 
|  | 13979 | *) | 
|  | 13980 | if test "$lt_cv_prog_gnu_ld" = yes; then | 
|  | 13981 | version_type=linux | 
|  | 13982 | else | 
|  | 13983 | version_type=irix | 
|  | 13984 | fi ;; | 
|  | 13985 | esac | 
|  | 13986 | need_lib_prefix=no | 
|  | 13987 | need_version=no | 
|  | 13988 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 13989 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 13990 | case $host_os in | 
|  | 13991 | irix5* | nonstopux*) | 
|  | 13992 | libsuff= shlibsuff= | 
|  | 13993 | ;; | 
|  | 13994 | *) | 
|  | 13995 | case $LD in # libtool.m4 will add one of these switches to LD | 
|  | 13996 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
|  | 13997 | libsuff= shlibsuff= libmagic=32-bit;; | 
|  | 13998 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
|  | 13999 | libsuff=32 shlibsuff=N32 libmagic=N32;; | 
|  | 14000 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
|  | 14001 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
|  | 14002 | *) libsuff= shlibsuff= libmagic=never-match;; | 
|  | 14003 | esac | 
|  | 14004 | ;; | 
|  | 14005 | esac | 
|  | 14006 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
|  | 14007 | shlibpath_overrides_runpath=no | 
|  | 14008 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
|  | 14009 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
|  | 14010 | hardcode_into_libs=yes | 
|  | 14011 | ;; | 
|  | 14012 |  | 
|  | 14013 | # No shared lib support for Linux oldld, aout, or coff. | 
|  | 14014 | linux*oldld* | linux*aout* | linux*coff*) | 
|  | 14015 | dynamic_linker=no | 
|  | 14016 | ;; | 
|  | 14017 |  | 
|  | 14018 | # This must be Linux ELF. | 
|  | 14019 | linux*) | 
|  | 14020 | version_type=linux | 
|  | 14021 | need_lib_prefix=no | 
|  | 14022 | need_version=no | 
|  | 14023 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 14024 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 14025 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
|  | 14026 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 14027 | shlibpath_overrides_runpath=no | 
|  | 14028 | # This implies no fast_install, which is unacceptable. | 
|  | 14029 | # Some rework will be needed to allow for fast_install | 
|  | 14030 | # before this can be enabled. | 
|  | 14031 | hardcode_into_libs=yes | 
|  | 14032 |  | 
|  | 14033 | # We used to test for /lib/ld.so.1 and disable shared libraries on | 
|  | 14034 | # powerpc, because MkLinux only supported shared libraries with the | 
|  | 14035 | # GNU dynamic linker.  Since this was broken with cross compilers, | 
|  | 14036 | # most powerpc-linux boxes support dynamic linking these days and | 
|  | 14037 | # people can always --disable-shared, the test was removed, and we | 
|  | 14038 | # assume the GNU/Linux dynamic linker is in use. | 
|  | 14039 | dynamic_linker='GNU/Linux ld.so' | 
|  | 14040 | ;; | 
|  | 14041 |  | 
|  | 14042 | netbsd*) | 
|  | 14043 | version_type=sunos | 
|  | 14044 | need_lib_prefix=no | 
|  | 14045 | need_version=no | 
|  | 14046 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
|  | 14047 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 14048 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 14049 | dynamic_linker='NetBSD (a.out) ld.so' | 
|  | 14050 | else | 
|  | 14051 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' | 
|  | 14052 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 14053 | dynamic_linker='NetBSD ld.elf_so' | 
|  | 14054 | fi | 
|  | 14055 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 14056 | shlibpath_overrides_runpath=yes | 
|  | 14057 | hardcode_into_libs=yes | 
|  | 14058 | ;; | 
|  | 14059 |  | 
|  | 14060 | newsos6) | 
|  | 14061 | version_type=linux | 
|  | 14062 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 14063 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 14064 | shlibpath_overrides_runpath=yes | 
|  | 14065 | ;; | 
|  | 14066 |  | 
|  | 14067 | nto-qnx) | 
|  | 14068 | version_type=linux | 
|  | 14069 | need_lib_prefix=no | 
|  | 14070 | need_version=no | 
|  | 14071 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 14072 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 14073 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 14074 | shlibpath_overrides_runpath=yes | 
|  | 14075 | ;; | 
|  | 14076 |  | 
|  | 14077 | openbsd*) | 
|  | 14078 | version_type=sunos | 
|  | 14079 | need_lib_prefix=no | 
|  | 14080 | need_version=no | 
|  | 14081 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 14082 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 14083 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 14084 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|  | 14085 | case $host_os in | 
|  | 14086 | openbsd2.[89] | openbsd2.[89].*) | 
|  | 14087 | shlibpath_overrides_runpath=no | 
|  | 14088 | ;; | 
|  | 14089 | *) | 
|  | 14090 | shlibpath_overrides_runpath=yes | 
|  | 14091 | ;; | 
|  | 14092 | esac | 
|  | 14093 | else | 
|  | 14094 | shlibpath_overrides_runpath=yes | 
|  | 14095 | fi | 
|  | 14096 | ;; | 
|  | 14097 |  | 
|  | 14098 | os2*) | 
|  | 14099 | libname_spec='$name' | 
|  | 14100 | shrext=".dll" | 
|  | 14101 | need_lib_prefix=no | 
|  | 14102 | library_names_spec='$libname${shared_ext} $libname.a' | 
|  | 14103 | dynamic_linker='OS/2 ld.exe' | 
|  | 14104 | shlibpath_var=LIBPATH | 
|  | 14105 | ;; | 
|  | 14106 |  | 
|  | 14107 | osf3* | osf4* | osf5*) | 
|  | 14108 | version_type=osf | 
|  | 14109 | need_lib_prefix=no | 
|  | 14110 | need_version=no | 
|  | 14111 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 14112 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 14113 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 14114 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
|  | 14115 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
|  | 14116 | ;; | 
|  | 14117 |  | 
|  | 14118 | sco3.2v5*) | 
|  | 14119 | version_type=osf | 
|  | 14120 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 14121 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 14122 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 14123 | ;; | 
|  | 14124 |  | 
|  | 14125 | solaris*) | 
|  | 14126 | version_type=linux | 
|  | 14127 | need_lib_prefix=no | 
|  | 14128 | need_version=no | 
|  | 14129 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 14130 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 14131 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 14132 | shlibpath_overrides_runpath=yes | 
|  | 14133 | hardcode_into_libs=yes | 
|  | 14134 | # ldd complains unless libraries are executable | 
|  | 14135 | postinstall_cmds='chmod +x $lib' | 
|  | 14136 | ;; | 
|  | 14137 |  | 
|  | 14138 | sunos4*) | 
|  | 14139 | version_type=sunos | 
|  | 14140 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 14141 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
|  | 14142 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 14143 | shlibpath_overrides_runpath=yes | 
|  | 14144 | if test "$with_gnu_ld" = yes; then | 
|  | 14145 | need_lib_prefix=no | 
|  | 14146 | fi | 
|  | 14147 | need_version=yes | 
|  | 14148 | ;; | 
|  | 14149 |  | 
|  | 14150 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
|  | 14151 | version_type=linux | 
|  | 14152 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 14153 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 14154 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 14155 | case $host_vendor in | 
|  | 14156 | sni) | 
|  | 14157 | shlibpath_overrides_runpath=no | 
|  | 14158 | need_lib_prefix=no | 
|  | 14159 | export_dynamic_flag_spec='${wl}-Blargedynsym' | 
|  | 14160 | runpath_var=LD_RUN_PATH | 
|  | 14161 | ;; | 
|  | 14162 | siemens) | 
|  | 14163 | need_lib_prefix=no | 
|  | 14164 | ;; | 
|  | 14165 | motorola) | 
|  | 14166 | need_lib_prefix=no | 
|  | 14167 | need_version=no | 
|  | 14168 | shlibpath_overrides_runpath=no | 
|  | 14169 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
|  | 14170 | ;; | 
|  | 14171 | esac | 
|  | 14172 | ;; | 
|  | 14173 |  | 
|  | 14174 | sysv4*MP*) | 
|  | 14175 | if test -d /usr/nec ;then | 
|  | 14176 | version_type=linux | 
|  | 14177 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
|  | 14178 | soname_spec='$libname${shared_ext}.$major' | 
|  | 14179 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 14180 | fi | 
|  | 14181 | ;; | 
|  | 14182 |  | 
|  | 14183 | uts4*) | 
|  | 14184 | version_type=linux | 
|  | 14185 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 14186 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 14187 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 14188 | ;; | 
|  | 14189 |  | 
|  | 14190 | *) | 
|  | 14191 | dynamic_linker=no | 
|  | 14192 | ;; | 
|  | 14193 | esac | 
|  | 14194 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
|  | 14195 | echo "${ECHO_T}$dynamic_linker" >&6 | 
|  | 14196 | test "$dynamic_linker" = no && can_build_shared=no | 
|  | 14197 |  | 
|  | 14198 |  | 
|  | 14199 | # The else clause should only fire when bootstrapping the | 
|  | 14200 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
|  | 14201 | # with your package, and you will get complaints that there are | 
|  | 14202 | # no rules to generate ltmain.sh. | 
|  | 14203 | if test -f "$ltmain"; then | 
|  | 14204 | # See if we are running on zsh, and set the options which allow our commands through | 
|  | 14205 | # without removal of \ escapes. | 
|  | 14206 | if test -n "${ZSH_VERSION+set}" ; then | 
|  | 14207 | setopt NO_GLOB_SUBST | 
|  | 14208 | fi | 
|  | 14209 | # Now quote all the things that may contain metacharacters while being | 
|  | 14210 | # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
|  | 14211 | # variables and quote the copies for generation of the libtool script. | 
|  | 14212 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ | 
|  | 14213 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
|  | 14214 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
|  | 14215 | deplibs_check_method reload_flag reload_cmds need_locks \ | 
|  | 14216 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
|  | 14217 | lt_cv_sys_global_symbol_to_c_name_address \ | 
|  | 14218 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
|  | 14219 | old_postinstall_cmds old_postuninstall_cmds \ | 
|  | 14220 | compiler_F77 \ | 
|  | 14221 | CC_F77 \ | 
|  | 14222 | LD_F77 \ | 
|  | 14223 | lt_prog_compiler_wl_F77 \ | 
|  | 14224 | lt_prog_compiler_pic_F77 \ | 
|  | 14225 | lt_prog_compiler_static_F77 \ | 
|  | 14226 | lt_prog_compiler_no_builtin_flag_F77 \ | 
|  | 14227 | export_dynamic_flag_spec_F77 \ | 
|  | 14228 | thread_safe_flag_spec_F77 \ | 
|  | 14229 | whole_archive_flag_spec_F77 \ | 
|  | 14230 | enable_shared_with_static_runtimes_F77 \ | 
|  | 14231 | old_archive_cmds_F77 \ | 
|  | 14232 | old_archive_from_new_cmds_F77 \ | 
|  | 14233 | predep_objects_F77 \ | 
|  | 14234 | postdep_objects_F77 \ | 
|  | 14235 | predeps_F77 \ | 
|  | 14236 | postdeps_F77 \ | 
|  | 14237 | compiler_lib_search_path_F77 \ | 
|  | 14238 | archive_cmds_F77 \ | 
|  | 14239 | archive_expsym_cmds_F77 \ | 
|  | 14240 | postinstall_cmds_F77 \ | 
|  | 14241 | postuninstall_cmds_F77 \ | 
|  | 14242 | old_archive_from_expsyms_cmds_F77 \ | 
|  | 14243 | allow_undefined_flag_F77 \ | 
|  | 14244 | no_undefined_flag_F77 \ | 
|  | 14245 | export_symbols_cmds_F77 \ | 
|  | 14246 | hardcode_libdir_flag_spec_F77 \ | 
|  | 14247 | hardcode_libdir_flag_spec_ld_F77 \ | 
|  | 14248 | hardcode_libdir_separator_F77 \ | 
|  | 14249 | hardcode_automatic_F77 \ | 
|  | 14250 | module_cmds_F77 \ | 
|  | 14251 | module_expsym_cmds_F77 \ | 
|  | 14252 | lt_cv_prog_compiler_c_o_F77 \ | 
|  | 14253 | exclude_expsyms_F77 \ | 
|  | 14254 | include_expsyms_F77; do | 
|  | 14255 |  | 
|  | 14256 | case $var in | 
|  | 14257 | old_archive_cmds_F77 | \ | 
|  | 14258 | old_archive_from_new_cmds_F77 | \ | 
|  | 14259 | archive_cmds_F77 | \ | 
|  | 14260 | archive_expsym_cmds_F77 | \ | 
|  | 14261 | module_cmds_F77 | \ | 
|  | 14262 | module_expsym_cmds_F77 | \ | 
|  | 14263 | old_archive_from_expsyms_cmds_F77 | \ | 
|  | 14264 | export_symbols_cmds_F77 | \ | 
|  | 14265 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
|  | 14266 | postinstall_cmds | postuninstall_cmds | \ | 
|  | 14267 | old_postinstall_cmds | old_postuninstall_cmds | \ | 
|  | 14268 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
|  | 14269 | # Double-quote double-evaled strings. | 
|  | 14270 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | 
|  | 14271 | ;; | 
|  | 14272 | *) | 
|  | 14273 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
|  | 14274 | ;; | 
|  | 14275 | esac | 
|  | 14276 | done | 
|  | 14277 |  | 
|  | 14278 | case $lt_echo in | 
|  | 14279 | *'\$0 --fallback-echo"') | 
|  | 14280 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
|  | 14281 | ;; | 
|  | 14282 | esac | 
|  | 14283 |  | 
|  | 14284 | cfgfile="$ofile" | 
|  | 14285 |  | 
|  | 14286 | cat <<__EOF__ >> "$cfgfile" | 
|  | 14287 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | 
|  | 14288 |  | 
|  | 14289 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
|  | 14290 |  | 
|  | 14291 | # Shell to use when invoking shell scripts. | 
|  | 14292 | SHELL=$lt_SHELL | 
|  | 14293 |  | 
|  | 14294 | # Whether or not to build shared libraries. | 
|  | 14295 | build_libtool_libs=$enable_shared | 
|  | 14296 |  | 
|  | 14297 | # Whether or not to build static libraries. | 
|  | 14298 | build_old_libs=$enable_static | 
|  | 14299 |  | 
|  | 14300 | # Whether or not to add -lc for building shared libraries. | 
|  | 14301 | build_libtool_need_lc=$archive_cmds_need_lc_F77 | 
|  | 14302 |  | 
|  | 14303 | # Whether or not to disallow shared libs when runtime libs are static | 
|  | 14304 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 | 
|  | 14305 |  | 
|  | 14306 | # Whether or not to optimize for fast installation. | 
|  | 14307 | fast_install=$enable_fast_install | 
|  | 14308 |  | 
|  | 14309 | # The host system. | 
|  | 14310 | host_alias=$host_alias | 
|  | 14311 | host=$host | 
|  | 14312 |  | 
|  | 14313 | # An echo program that does not interpret backslashes. | 
|  | 14314 | echo=$lt_echo | 
|  | 14315 |  | 
|  | 14316 | # The archiver. | 
|  | 14317 | AR=$lt_AR | 
|  | 14318 | AR_FLAGS=$lt_AR_FLAGS | 
|  | 14319 |  | 
|  | 14320 | # A C compiler. | 
|  | 14321 | LTCC=$lt_LTCC | 
|  | 14322 |  | 
|  | 14323 | # A language-specific compiler. | 
|  | 14324 | CC=$lt_compiler_F77 | 
|  | 14325 |  | 
|  | 14326 | # Is the compiler the GNU C compiler? | 
|  | 14327 | with_gcc=$GCC_F77 | 
|  | 14328 |  | 
|  | 14329 | # An ERE matcher. | 
|  | 14330 | EGREP=$lt_EGREP | 
|  | 14331 |  | 
|  | 14332 | # The linker used to build libraries. | 
|  | 14333 | LD=$lt_LD_F77 | 
|  | 14334 |  | 
|  | 14335 | # Whether we need hard or soft links. | 
|  | 14336 | LN_S=$lt_LN_S | 
|  | 14337 |  | 
|  | 14338 | # A BSD-compatible nm program. | 
|  | 14339 | NM=$lt_NM | 
|  | 14340 |  | 
|  | 14341 | # A symbol stripping program | 
|  | 14342 | STRIP=$STRIP | 
|  | 14343 |  | 
|  | 14344 | # Used to examine libraries when file_magic_cmd begins "file" | 
|  | 14345 | MAGIC_CMD=$MAGIC_CMD | 
|  | 14346 |  | 
|  | 14347 | # Used on cygwin: DLL creation program. | 
|  | 14348 | DLLTOOL="$DLLTOOL" | 
|  | 14349 |  | 
|  | 14350 | # Used on cygwin: object dumper. | 
|  | 14351 | OBJDUMP="$OBJDUMP" | 
|  | 14352 |  | 
|  | 14353 | # Used on cygwin: assembler. | 
|  | 14354 | AS="$AS" | 
|  | 14355 |  | 
|  | 14356 | # The name of the directory that contains temporary libtool files. | 
|  | 14357 | objdir=$objdir | 
|  | 14358 |  | 
|  | 14359 | # How to create reloadable object files. | 
|  | 14360 | reload_flag=$lt_reload_flag | 
|  | 14361 | reload_cmds=$lt_reload_cmds | 
|  | 14362 |  | 
|  | 14363 | # How to pass a linker flag through the compiler. | 
|  | 14364 | wl=$lt_lt_prog_compiler_wl_F77 | 
|  | 14365 |  | 
|  | 14366 | # Object file suffix (normally "o"). | 
|  | 14367 | objext="$ac_objext" | 
|  | 14368 |  | 
|  | 14369 | # Old archive suffix (normally "a"). | 
|  | 14370 | libext="$libext" | 
|  | 14371 |  | 
|  | 14372 | # Shared library suffix (normally ".so"). | 
|  | 14373 | shrext='$shrext' | 
|  | 14374 |  | 
|  | 14375 | # Executable file suffix (normally ""). | 
|  | 14376 | exeext="$exeext" | 
|  | 14377 |  | 
|  | 14378 | # Additional compiler flags for building library objects. | 
|  | 14379 | pic_flag=$lt_lt_prog_compiler_pic_F77 | 
|  | 14380 | pic_mode=$pic_mode | 
|  | 14381 |  | 
|  | 14382 | # What is the maximum length of a command? | 
|  | 14383 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
|  | 14384 |  | 
|  | 14385 | # Does compiler simultaneously support -c and -o options? | 
|  | 14386 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 | 
|  | 14387 |  | 
|  | 14388 | # Must we lock files when doing compilation ? | 
|  | 14389 | need_locks=$lt_need_locks | 
|  | 14390 |  | 
|  | 14391 | # Do we need the lib prefix for modules? | 
|  | 14392 | need_lib_prefix=$need_lib_prefix | 
|  | 14393 |  | 
|  | 14394 | # Do we need a version for libraries? | 
|  | 14395 | need_version=$need_version | 
|  | 14396 |  | 
|  | 14397 | # Whether dlopen is supported. | 
|  | 14398 | dlopen_support=$enable_dlopen | 
|  | 14399 |  | 
|  | 14400 | # Whether dlopen of programs is supported. | 
|  | 14401 | dlopen_self=$enable_dlopen_self | 
|  | 14402 |  | 
|  | 14403 | # Whether dlopen of statically linked programs is supported. | 
|  | 14404 | dlopen_self_static=$enable_dlopen_self_static | 
|  | 14405 |  | 
|  | 14406 | # Compiler flag to prevent dynamic linking. | 
|  | 14407 | link_static_flag=$lt_lt_prog_compiler_static_F77 | 
|  | 14408 |  | 
|  | 14409 | # Compiler flag to turn off builtin functions. | 
|  | 14410 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 | 
|  | 14411 |  | 
|  | 14412 | # Compiler flag to allow reflexive dlopens. | 
|  | 14413 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 | 
|  | 14414 |  | 
|  | 14415 | # Compiler flag to generate shared objects directly from archives. | 
|  | 14416 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 | 
|  | 14417 |  | 
|  | 14418 | # Compiler flag to generate thread-safe objects. | 
|  | 14419 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 | 
|  | 14420 |  | 
|  | 14421 | # Library versioning type. | 
|  | 14422 | version_type=$version_type | 
|  | 14423 |  | 
|  | 14424 | # Format of library name prefix. | 
|  | 14425 | libname_spec=$lt_libname_spec | 
|  | 14426 |  | 
|  | 14427 | # List of archive names.  First name is the real one, the rest are links. | 
|  | 14428 | # The last name is the one that the linker finds with -lNAME. | 
|  | 14429 | library_names_spec=$lt_library_names_spec | 
|  | 14430 |  | 
|  | 14431 | # The coded name of the library, if different from the real name. | 
|  | 14432 | soname_spec=$lt_soname_spec | 
|  | 14433 |  | 
|  | 14434 | # Commands used to build and install an old-style archive. | 
|  | 14435 | RANLIB=$lt_RANLIB | 
|  | 14436 | old_archive_cmds=$lt_old_archive_cmds_F77 | 
|  | 14437 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
|  | 14438 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
|  | 14439 |  | 
|  | 14440 | # Create an old-style archive from a shared archive. | 
|  | 14441 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 | 
|  | 14442 |  | 
|  | 14443 | # Create a temporary old-style archive to link instead of a shared archive. | 
|  | 14444 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 | 
|  | 14445 |  | 
|  | 14446 | # Commands used to build and install a shared archive. | 
|  | 14447 | archive_cmds=$lt_archive_cmds_F77 | 
|  | 14448 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 | 
|  | 14449 | postinstall_cmds=$lt_postinstall_cmds | 
|  | 14450 | postuninstall_cmds=$lt_postuninstall_cmds | 
|  | 14451 |  | 
|  | 14452 | # Commands used to build a loadable module (assumed same as above if empty) | 
|  | 14453 | module_cmds=$lt_module_cmds_F77 | 
|  | 14454 | module_expsym_cmds=$lt_module_expsym_cmds_F77 | 
|  | 14455 |  | 
|  | 14456 | # Commands to strip libraries. | 
|  | 14457 | old_striplib=$lt_old_striplib | 
|  | 14458 | striplib=$lt_striplib | 
|  | 14459 |  | 
|  | 14460 | # Dependencies to place before the objects being linked to create a | 
|  | 14461 | # shared library. | 
|  | 14462 | predep_objects=$lt_predep_objects_F77 | 
|  | 14463 |  | 
|  | 14464 | # Dependencies to place after the objects being linked to create a | 
|  | 14465 | # shared library. | 
|  | 14466 | postdep_objects=$lt_postdep_objects_F77 | 
|  | 14467 |  | 
|  | 14468 | # Dependencies to place before the objects being linked to create a | 
|  | 14469 | # shared library. | 
|  | 14470 | predeps=$lt_predeps_F77 | 
|  | 14471 |  | 
|  | 14472 | # Dependencies to place after the objects being linked to create a | 
|  | 14473 | # shared library. | 
|  | 14474 | postdeps=$lt_postdeps_F77 | 
|  | 14475 |  | 
|  | 14476 | # The library search path used internally by the compiler when linking | 
|  | 14477 | # a shared library. | 
|  | 14478 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 | 
|  | 14479 |  | 
|  | 14480 | # Method to check whether dependent libraries are shared objects. | 
|  | 14481 | deplibs_check_method=$lt_deplibs_check_method | 
|  | 14482 |  | 
|  | 14483 | # Command to use when deplibs_check_method == file_magic. | 
|  | 14484 | file_magic_cmd=$lt_file_magic_cmd | 
|  | 14485 |  | 
|  | 14486 | # Flag that allows shared libraries with undefined symbols to be built. | 
|  | 14487 | allow_undefined_flag=$lt_allow_undefined_flag_F77 | 
|  | 14488 |  | 
|  | 14489 | # Flag that forces no undefined symbols. | 
|  | 14490 | no_undefined_flag=$lt_no_undefined_flag_F77 | 
|  | 14491 |  | 
|  | 14492 | # Commands used to finish a libtool library installation in a directory. | 
|  | 14493 | finish_cmds=$lt_finish_cmds | 
|  | 14494 |  | 
|  | 14495 | # Same as above, but a single script fragment to be evaled but not shown. | 
|  | 14496 | finish_eval=$lt_finish_eval | 
|  | 14497 |  | 
|  | 14498 | # Take the output of nm and produce a listing of raw symbols and C names. | 
|  | 14499 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
|  | 14500 |  | 
|  | 14501 | # Transform the output of nm in a proper C declaration | 
|  | 14502 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
|  | 14503 |  | 
|  | 14504 | # Transform the output of nm in a C name address pair | 
|  | 14505 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
|  | 14506 |  | 
|  | 14507 | # This is the shared library runtime path variable. | 
|  | 14508 | runpath_var=$runpath_var | 
|  | 14509 |  | 
|  | 14510 | # This is the shared library path variable. | 
|  | 14511 | shlibpath_var=$shlibpath_var | 
|  | 14512 |  | 
|  | 14513 | # Is shlibpath searched before the hard-coded library search path? | 
|  | 14514 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
|  | 14515 |  | 
|  | 14516 | # How to hardcode a shared library path into an executable. | 
|  | 14517 | hardcode_action=$hardcode_action_F77 | 
|  | 14518 |  | 
|  | 14519 | # Whether we should hardcode library paths into libraries. | 
|  | 14520 | hardcode_into_libs=$hardcode_into_libs | 
|  | 14521 |  | 
|  | 14522 | # Flag to hardcode \$libdir into a binary during linking. | 
|  | 14523 | # This must work even if \$libdir does not exist. | 
|  | 14524 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 | 
|  | 14525 |  | 
|  | 14526 | # If ld is used when linking, flag to hardcode \$libdir into | 
|  | 14527 | # a binary during linking. This must work even if \$libdir does | 
|  | 14528 | # not exist. | 
|  | 14529 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 | 
|  | 14530 |  | 
|  | 14531 | # Whether we need a single -rpath flag with a separated argument. | 
|  | 14532 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 | 
|  | 14533 |  | 
|  | 14534 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
|  | 14535 | # resulting binary. | 
|  | 14536 | hardcode_direct=$hardcode_direct_F77 | 
|  | 14537 |  | 
|  | 14538 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
|  | 14539 | # resulting binary. | 
|  | 14540 | hardcode_minus_L=$hardcode_minus_L_F77 | 
|  | 14541 |  | 
|  | 14542 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
|  | 14543 | # the resulting binary. | 
|  | 14544 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 | 
|  | 14545 |  | 
|  | 14546 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
|  | 14547 | # and all subsequent libraries and executables linked against it. | 
|  | 14548 | hardcode_automatic=$hardcode_automatic_F77 | 
|  | 14549 |  | 
|  | 14550 | # Variables whose values should be saved in libtool wrapper scripts and | 
|  | 14551 | # restored at relink time. | 
|  | 14552 | variables_saved_for_relink="$variables_saved_for_relink" | 
|  | 14553 |  | 
|  | 14554 | # Whether libtool must link a program against all its dependency libraries. | 
|  | 14555 | link_all_deplibs=$link_all_deplibs_F77 | 
|  | 14556 |  | 
|  | 14557 | # Compile-time system search path for libraries | 
|  | 14558 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
|  | 14559 |  | 
|  | 14560 | # Run-time system search path for libraries | 
|  | 14561 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
|  | 14562 |  | 
|  | 14563 | # Fix the shell variable \$srcfile for the compiler. | 
|  | 14564 | fix_srcfile_path="$fix_srcfile_path_F77" | 
|  | 14565 |  | 
|  | 14566 | # Set to yes if exported symbols are required. | 
|  | 14567 | always_export_symbols=$always_export_symbols_F77 | 
|  | 14568 |  | 
|  | 14569 | # The commands to list exported symbols. | 
|  | 14570 | export_symbols_cmds=$lt_export_symbols_cmds_F77 | 
|  | 14571 |  | 
|  | 14572 | # The commands to extract the exported symbol list from a shared archive. | 
|  | 14573 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
|  | 14574 |  | 
|  | 14575 | # Symbols that should not be listed in the preloaded symbols. | 
|  | 14576 | exclude_expsyms=$lt_exclude_expsyms_F77 | 
|  | 14577 |  | 
|  | 14578 | # Symbols that must always be exported. | 
|  | 14579 | include_expsyms=$lt_include_expsyms_F77 | 
|  | 14580 |  | 
|  | 14581 | # ### END LIBTOOL TAG CONFIG: $tagname | 
|  | 14582 |  | 
|  | 14583 | __EOF__ | 
|  | 14584 |  | 
|  | 14585 |  | 
|  | 14586 | else | 
|  | 14587 | # If there is no Makefile yet, we rely on a make rule to execute | 
|  | 14588 | # `config.status --recheck' to rerun these tests and create the | 
|  | 14589 | # libtool script then. | 
|  | 14590 | test -f Makefile && make "$ltmain" | 
|  | 14591 | fi | 
|  | 14592 |  | 
|  | 14593 |  | 
|  | 14594 | ac_ext=c | 
|  | 14595 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 14596 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 14597 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 14598 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 14599 |  | 
|  | 14600 | CC="$lt_save_CC" | 
|  | 14601 |  | 
|  | 14602 | else | 
|  | 14603 | tagname="" | 
|  | 14604 | fi | 
|  | 14605 | ;; | 
|  | 14606 |  | 
|  | 14607 | GCJ) | 
|  | 14608 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then | 
|  | 14609 |  | 
|  | 14610 |  | 
|  | 14611 |  | 
|  | 14612 | # Source file extension for Java test sources. | 
|  | 14613 | ac_ext=java | 
|  | 14614 |  | 
|  | 14615 | # Object file extension for compiled Java test sources. | 
|  | 14616 | objext=o | 
|  | 14617 | objext_GCJ=$objext | 
|  | 14618 |  | 
|  | 14619 | # Code to be used in simple compile tests | 
|  | 14620 | lt_simple_compile_test_code="class foo {}\n" | 
|  | 14621 |  | 
|  | 14622 | # Code to be used in simple link tests | 
|  | 14623 | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' | 
|  | 14624 |  | 
|  | 14625 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
|  | 14626 |  | 
|  | 14627 | # If no C compiler was specified, use CC. | 
|  | 14628 | LTCC=${LTCC-"$CC"} | 
|  | 14629 |  | 
|  | 14630 | # Allow CC to be a program name with arguments. | 
|  | 14631 | compiler=$CC | 
|  | 14632 |  | 
|  | 14633 |  | 
|  | 14634 | # Allow CC to be a program name with arguments. | 
|  | 14635 | lt_save_CC="$CC" | 
|  | 14636 | CC=${GCJ-"gcj"} | 
|  | 14637 | compiler=$CC | 
|  | 14638 | compiler_GCJ=$CC | 
|  | 14639 |  | 
|  | 14640 | # GCJ did not exist at the time GCC didn't implicitly link libc in. | 
|  | 14641 | archive_cmds_need_lc_GCJ=no | 
|  | 14642 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14643 |  | 
|  | 14644 | lt_prog_compiler_no_builtin_flag_GCJ= | 
|  | 14645 |  | 
|  | 14646 | if test "$GCC" = yes; then | 
|  | 14647 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' | 
|  | 14648 |  | 
|  | 14649 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | 
|  | 14650 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | 
|  | 14651 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | 
|  | 14652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 14653 | else | 
|  | 14654 | lt_cv_prog_compiler_rtti_exceptions=no | 
|  | 14655 | ac_outfile=conftest.$ac_objext | 
|  | 14656 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 14657 | lt_compiler_flag="-fno-rtti -fno-exceptions" | 
|  | 14658 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 14659 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 14660 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 14661 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 14662 | # The option is referenced via a variable to avoid confusing sed. | 
|  | 14663 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 14664 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
|  | 14665 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 14666 | -e 's:$: $lt_compiler_flag:'` | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 14667 | (eval echo "\"\$as_me:14667: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14668 | (eval "$lt_compile" 2>conftest.err) | 
|  | 14669 | ac_status=$? | 
|  | 14670 | cat conftest.err >&5 | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 14671 | echo "$as_me:14671: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14672 | if (exit $ac_status) && test -s "$ac_outfile"; then | 
|  | 14673 | # The compiler can only warn and ignore the option if not recognized | 
|  | 14674 | # So say no if there are warnings | 
|  | 14675 | if test ! -s conftest.err; then | 
|  | 14676 | lt_cv_prog_compiler_rtti_exceptions=yes | 
|  | 14677 | fi | 
|  | 14678 | fi | 
|  | 14679 | $rm conftest* | 
|  | 14680 |  | 
|  | 14681 | fi | 
|  | 14682 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | 
|  | 14683 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | 
|  | 14684 |  | 
|  | 14685 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | 
|  | 14686 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" | 
|  | 14687 | else | 
|  | 14688 | : | 
|  | 14689 | fi | 
|  | 14690 |  | 
|  | 14691 | fi | 
|  | 14692 |  | 
|  | 14693 | lt_prog_compiler_wl_GCJ= | 
|  | 14694 | lt_prog_compiler_pic_GCJ= | 
|  | 14695 | lt_prog_compiler_static_GCJ= | 
|  | 14696 |  | 
|  | 14697 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 
|  | 14698 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | 
|  | 14699 |  | 
|  | 14700 | if test "$GCC" = yes; then | 
|  | 14701 | lt_prog_compiler_wl_GCJ='-Wl,' | 
|  | 14702 | lt_prog_compiler_static_GCJ='-static' | 
|  | 14703 |  | 
|  | 14704 | case $host_os in | 
|  | 14705 | aix*) | 
|  | 14706 | # All AIX code is PIC. | 
|  | 14707 | if test "$host_cpu" = ia64; then | 
|  | 14708 | # AIX 5 now supports IA64 processor | 
|  | 14709 | lt_prog_compiler_static_GCJ='-Bstatic' | 
|  | 14710 | fi | 
|  | 14711 | ;; | 
|  | 14712 |  | 
|  | 14713 | amigaos*) | 
|  | 14714 | # FIXME: we need at least 68020 code to build shared libraries, but | 
|  | 14715 | # adding the `-m68020' flag to GCC prevents building anything better, | 
|  | 14716 | # like `-m68040'. | 
|  | 14717 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' | 
|  | 14718 | ;; | 
|  | 14719 |  | 
|  | 14720 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
|  | 14721 | # PIC is the default for these OSes. | 
|  | 14722 | ;; | 
|  | 14723 |  | 
|  | 14724 | mingw* | pw32* | os2*) | 
|  | 14725 | # This hack is so that the source file can tell whether it is being | 
|  | 14726 | # built for inclusion in a dll (and should export symbols for example). | 
|  | 14727 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | 
|  | 14728 | ;; | 
|  | 14729 |  | 
|  | 14730 | darwin* | rhapsody*) | 
|  | 14731 | # PIC is the default on this platform | 
|  | 14732 | # Common symbols not allowed in MH_DYLIB files | 
|  | 14733 | lt_prog_compiler_pic_GCJ='-fno-common' | 
|  | 14734 | ;; | 
|  | 14735 |  | 
|  | 14736 | msdosdjgpp*) | 
|  | 14737 | # Just because we use GCC doesn't mean we suddenly get shared libraries | 
|  | 14738 | # on systems that don't support them. | 
|  | 14739 | lt_prog_compiler_can_build_shared_GCJ=no | 
|  | 14740 | enable_shared=no | 
|  | 14741 | ;; | 
|  | 14742 |  | 
|  | 14743 | sysv4*MP*) | 
|  | 14744 | if test -d /usr/nec; then | 
|  | 14745 | lt_prog_compiler_pic_GCJ=-Kconform_pic | 
|  | 14746 | fi | 
|  | 14747 | ;; | 
|  | 14748 |  | 
|  | 14749 | hpux*) | 
|  | 14750 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
|  | 14751 | # not for PA HP-UX. | 
|  | 14752 | case "$host_cpu" in | 
|  | 14753 | hppa*64*|ia64*) | 
|  | 14754 | # +Z the default | 
|  | 14755 | ;; | 
|  | 14756 | *) | 
|  | 14757 | lt_prog_compiler_pic_GCJ='-fPIC' | 
|  | 14758 | ;; | 
|  | 14759 | esac | 
|  | 14760 | ;; | 
|  | 14761 |  | 
|  | 14762 | *) | 
|  | 14763 | lt_prog_compiler_pic_GCJ='-fPIC' | 
|  | 14764 | ;; | 
|  | 14765 | esac | 
|  | 14766 | else | 
|  | 14767 | # PORTME Check for flag to pass linker flags through the system compiler. | 
|  | 14768 | case $host_os in | 
|  | 14769 | aix*) | 
|  | 14770 | lt_prog_compiler_wl_GCJ='-Wl,' | 
|  | 14771 | if test "$host_cpu" = ia64; then | 
|  | 14772 | # AIX 5 now supports IA64 processor | 
|  | 14773 | lt_prog_compiler_static_GCJ='-Bstatic' | 
|  | 14774 | else | 
|  | 14775 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' | 
|  | 14776 | fi | 
|  | 14777 | ;; | 
|  | 14778 |  | 
|  | 14779 | mingw* | pw32* | os2*) | 
|  | 14780 | # This hack is so that the source file can tell whether it is being | 
|  | 14781 | # built for inclusion in a dll (and should export symbols for example). | 
|  | 14782 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | 
|  | 14783 | ;; | 
|  | 14784 |  | 
|  | 14785 | hpux9* | hpux10* | hpux11*) | 
|  | 14786 | lt_prog_compiler_wl_GCJ='-Wl,' | 
|  | 14787 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
|  | 14788 | # not for PA HP-UX. | 
|  | 14789 | case "$host_cpu" in | 
|  | 14790 | hppa*64*|ia64*) | 
|  | 14791 | # +Z the default | 
|  | 14792 | ;; | 
|  | 14793 | *) | 
|  | 14794 | lt_prog_compiler_pic_GCJ='+Z' | 
|  | 14795 | ;; | 
|  | 14796 | esac | 
|  | 14797 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | 
|  | 14798 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' | 
|  | 14799 | ;; | 
|  | 14800 |  | 
|  | 14801 | irix5* | irix6* | nonstopux*) | 
|  | 14802 | lt_prog_compiler_wl_GCJ='-Wl,' | 
|  | 14803 | # PIC (with -KPIC) is the default. | 
|  | 14804 | lt_prog_compiler_static_GCJ='-non_shared' | 
|  | 14805 | ;; | 
|  | 14806 |  | 
|  | 14807 | newsos6) | 
|  | 14808 | lt_prog_compiler_pic_GCJ='-KPIC' | 
|  | 14809 | lt_prog_compiler_static_GCJ='-Bstatic' | 
|  | 14810 | ;; | 
|  | 14811 |  | 
|  | 14812 | linux*) | 
|  | 14813 | case $CC in | 
|  | 14814 | icc|ecc) | 
|  | 14815 | lt_prog_compiler_wl_GCJ='-Wl,' | 
|  | 14816 | lt_prog_compiler_pic_GCJ='-KPIC' | 
|  | 14817 | lt_prog_compiler_static_GCJ='-static' | 
|  | 14818 | ;; | 
|  | 14819 | ccc) | 
|  | 14820 | lt_prog_compiler_wl_GCJ='-Wl,' | 
|  | 14821 | # All Alpha code is PIC. | 
|  | 14822 | lt_prog_compiler_static_GCJ='-non_shared' | 
|  | 14823 | ;; | 
|  | 14824 | esac | 
|  | 14825 | ;; | 
|  | 14826 |  | 
|  | 14827 | osf3* | osf4* | osf5*) | 
|  | 14828 | lt_prog_compiler_wl_GCJ='-Wl,' | 
|  | 14829 | # All OSF/1 code is PIC. | 
|  | 14830 | lt_prog_compiler_static_GCJ='-non_shared' | 
|  | 14831 | ;; | 
|  | 14832 |  | 
|  | 14833 | sco3.2v5*) | 
|  | 14834 | lt_prog_compiler_pic_GCJ='-Kpic' | 
|  | 14835 | lt_prog_compiler_static_GCJ='-dn' | 
|  | 14836 | ;; | 
|  | 14837 |  | 
|  | 14838 | solaris*) | 
|  | 14839 | lt_prog_compiler_wl_GCJ='-Wl,' | 
|  | 14840 | lt_prog_compiler_pic_GCJ='-KPIC' | 
|  | 14841 | lt_prog_compiler_static_GCJ='-Bstatic' | 
|  | 14842 | ;; | 
|  | 14843 |  | 
|  | 14844 | sunos4*) | 
|  | 14845 | lt_prog_compiler_wl_GCJ='-Qoption ld ' | 
|  | 14846 | lt_prog_compiler_pic_GCJ='-PIC' | 
|  | 14847 | lt_prog_compiler_static_GCJ='-Bstatic' | 
|  | 14848 | ;; | 
|  | 14849 |  | 
|  | 14850 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
|  | 14851 | lt_prog_compiler_wl_GCJ='-Wl,' | 
|  | 14852 | lt_prog_compiler_pic_GCJ='-KPIC' | 
|  | 14853 | lt_prog_compiler_static_GCJ='-Bstatic' | 
|  | 14854 | ;; | 
|  | 14855 |  | 
|  | 14856 | sysv4*MP*) | 
|  | 14857 | if test -d /usr/nec ;then | 
|  | 14858 | lt_prog_compiler_pic_GCJ='-Kconform_pic' | 
|  | 14859 | lt_prog_compiler_static_GCJ='-Bstatic' | 
|  | 14860 | fi | 
|  | 14861 | ;; | 
|  | 14862 |  | 
|  | 14863 | uts4*) | 
|  | 14864 | lt_prog_compiler_pic_GCJ='-pic' | 
|  | 14865 | lt_prog_compiler_static_GCJ='-Bstatic' | 
|  | 14866 | ;; | 
|  | 14867 |  | 
|  | 14868 | *) | 
|  | 14869 | lt_prog_compiler_can_build_shared_GCJ=no | 
|  | 14870 | ;; | 
|  | 14871 | esac | 
|  | 14872 | fi | 
|  | 14873 |  | 
|  | 14874 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 | 
|  | 14875 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 | 
|  | 14876 |  | 
|  | 14877 | # | 
|  | 14878 | # Check to make sure the PIC flag actually works. | 
|  | 14879 | # | 
|  | 14880 | if test -n "$lt_prog_compiler_pic_GCJ"; then | 
|  | 14881 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 | 
|  | 14882 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 | 
|  | 14883 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then | 
|  | 14884 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 14885 | else | 
|  | 14886 | lt_prog_compiler_pic_works_GCJ=no | 
|  | 14887 | ac_outfile=conftest.$ac_objext | 
|  | 14888 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 14889 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" | 
|  | 14890 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 14891 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 14892 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 14893 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 14894 | # The option is referenced via a variable to avoid confusing sed. | 
|  | 14895 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 14896 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
|  | 14897 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 14898 | -e 's:$: $lt_compiler_flag:'` | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 14899 | (eval echo "\"\$as_me:14899: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14900 | (eval "$lt_compile" 2>conftest.err) | 
|  | 14901 | ac_status=$? | 
|  | 14902 | cat conftest.err >&5 | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 14903 | echo "$as_me:14903: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14904 | if (exit $ac_status) && test -s "$ac_outfile"; then | 
|  | 14905 | # The compiler can only warn and ignore the option if not recognized | 
|  | 14906 | # So say no if there are warnings | 
|  | 14907 | if test ! -s conftest.err; then | 
|  | 14908 | lt_prog_compiler_pic_works_GCJ=yes | 
|  | 14909 | fi | 
|  | 14910 | fi | 
|  | 14911 | $rm conftest* | 
|  | 14912 |  | 
|  | 14913 | fi | 
|  | 14914 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 | 
|  | 14915 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 | 
|  | 14916 |  | 
|  | 14917 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then | 
|  | 14918 | case $lt_prog_compiler_pic_GCJ in | 
|  | 14919 | "" | " "*) ;; | 
|  | 14920 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; | 
|  | 14921 | esac | 
|  | 14922 | else | 
|  | 14923 | lt_prog_compiler_pic_GCJ= | 
|  | 14924 | lt_prog_compiler_can_build_shared_GCJ=no | 
|  | 14925 | fi | 
|  | 14926 |  | 
|  | 14927 | fi | 
|  | 14928 | case "$host_os" in | 
|  | 14929 | # For platforms which do not support PIC, -DPIC is meaningless: | 
|  | 14930 | *djgpp*) | 
|  | 14931 | lt_prog_compiler_pic_GCJ= | 
|  | 14932 | ;; | 
|  | 14933 | *) | 
|  | 14934 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" | 
|  | 14935 | ;; | 
|  | 14936 | esac | 
|  | 14937 |  | 
|  | 14938 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
|  | 14939 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | 
|  | 14940 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then | 
|  | 14941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 14942 | else | 
|  | 14943 | lt_cv_prog_compiler_c_o_GCJ=no | 
|  | 14944 | $rm -r conftest 2>/dev/null | 
|  | 14945 | mkdir conftest | 
|  | 14946 | cd conftest | 
|  | 14947 | mkdir out | 
|  | 14948 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 14949 |  | 
|  | 14950 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers | 
|  | 14951 | # that will create temporary files in the current directory regardless of | 
|  | 14952 | # the output directory.  Thus, making CWD read-only will cause this test | 
|  | 14953 | # to fail, enabling locking or at least warning the user not to do parallel | 
|  | 14954 | # builds. | 
|  | 14955 | chmod -w . | 
|  | 14956 |  | 
|  | 14957 | lt_compiler_flag="-o out/conftest2.$ac_objext" | 
|  | 14958 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 14959 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 14960 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 14961 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 14962 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 14963 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
|  | 14964 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 14965 | -e 's:$: $lt_compiler_flag:'` | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 14966 | (eval echo "\"\$as_me:14966: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14967 | (eval "$lt_compile" 2>out/conftest.err) | 
|  | 14968 | ac_status=$? | 
|  | 14969 | cat out/conftest.err >&5 | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 14970 | echo "$as_me:14970: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14971 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
|  | 14972 | then | 
|  | 14973 | # The compiler can only warn and ignore the option if not recognized | 
|  | 14974 | # So say no if there are warnings | 
|  | 14975 | if test ! -s out/conftest.err; then | 
|  | 14976 | lt_cv_prog_compiler_c_o_GCJ=yes | 
|  | 14977 | fi | 
|  | 14978 | fi | 
|  | 14979 | chmod u+w . | 
|  | 14980 | $rm conftest* out/* | 
|  | 14981 | rmdir out | 
|  | 14982 | cd .. | 
|  | 14983 | rmdir conftest | 
|  | 14984 | $rm conftest* | 
|  | 14985 |  | 
|  | 14986 | fi | 
|  | 14987 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 | 
|  | 14988 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 | 
|  | 14989 |  | 
|  | 14990 |  | 
|  | 14991 | hard_links="nottested" | 
|  | 14992 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then | 
|  | 14993 | # do not overwrite the value of need_locks provided by the user | 
|  | 14994 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | 
|  | 14995 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | 
|  | 14996 | hard_links=yes | 
|  | 14997 | $rm conftest* | 
|  | 14998 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
|  | 14999 | touch conftest.a | 
|  | 15000 | ln conftest.a conftest.b 2>&5 || hard_links=no | 
|  | 15001 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
|  | 15002 | echo "$as_me:$LINENO: result: $hard_links" >&5 | 
|  | 15003 | echo "${ECHO_T}$hard_links" >&6 | 
|  | 15004 | if test "$hard_links" = no; then | 
|  | 15005 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
|  | 15006 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
|  | 15007 | need_locks=warn | 
|  | 15008 | fi | 
|  | 15009 | else | 
|  | 15010 | need_locks=no | 
|  | 15011 | fi | 
|  | 15012 |  | 
|  | 15013 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
|  | 15014 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
|  | 15015 |  | 
|  | 15016 | runpath_var= | 
|  | 15017 | allow_undefined_flag_GCJ= | 
|  | 15018 | enable_shared_with_static_runtimes_GCJ=no | 
|  | 15019 | archive_cmds_GCJ= | 
|  | 15020 | archive_expsym_cmds_GCJ= | 
|  | 15021 | old_archive_From_new_cmds_GCJ= | 
|  | 15022 | old_archive_from_expsyms_cmds_GCJ= | 
|  | 15023 | export_dynamic_flag_spec_GCJ= | 
|  | 15024 | whole_archive_flag_spec_GCJ= | 
|  | 15025 | thread_safe_flag_spec_GCJ= | 
|  | 15026 | hardcode_libdir_flag_spec_GCJ= | 
|  | 15027 | hardcode_libdir_flag_spec_ld_GCJ= | 
|  | 15028 | hardcode_libdir_separator_GCJ= | 
|  | 15029 | hardcode_direct_GCJ=no | 
|  | 15030 | hardcode_minus_L_GCJ=no | 
|  | 15031 | hardcode_shlibpath_var_GCJ=unsupported | 
|  | 15032 | link_all_deplibs_GCJ=unknown | 
|  | 15033 | hardcode_automatic_GCJ=no | 
|  | 15034 | module_cmds_GCJ= | 
|  | 15035 | module_expsym_cmds_GCJ= | 
|  | 15036 | always_export_symbols_GCJ=no | 
|  | 15037 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
|  | 15038 | # include_expsyms should be a list of space-separated symbols to be *always* | 
|  | 15039 | # included in the symbol list | 
|  | 15040 | include_expsyms_GCJ= | 
|  | 15041 | # exclude_expsyms can be an extended regexp of symbols to exclude | 
|  | 15042 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | 
|  | 15043 | # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | 
|  | 15044 | # as well as any symbol that contains `d'. | 
|  | 15045 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" | 
|  | 15046 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | 
|  | 15047 | # platforms (ab)use it in PIC code, but their linkers get confused if | 
|  | 15048 | # the symbol is explicitly referenced.  Since portable code cannot | 
|  | 15049 | # rely on this symbol name, it's probably fine to never include it in | 
|  | 15050 | # preloaded symbol tables. | 
|  | 15051 | extract_expsyms_cmds= | 
|  | 15052 |  | 
|  | 15053 | case $host_os in | 
|  | 15054 | cygwin* | mingw* | pw32*) | 
|  | 15055 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | 
|  | 15056 | # When not using gcc, we currently assume that we are using | 
|  | 15057 | # Microsoft Visual C++. | 
|  | 15058 | if test "$GCC" != yes; then | 
|  | 15059 | with_gnu_ld=no | 
|  | 15060 | fi | 
|  | 15061 | ;; | 
|  | 15062 | openbsd*) | 
|  | 15063 | with_gnu_ld=no | 
|  | 15064 | ;; | 
|  | 15065 | esac | 
|  | 15066 |  | 
|  | 15067 | ld_shlibs_GCJ=yes | 
|  | 15068 | if test "$with_gnu_ld" = yes; then | 
|  | 15069 | # If archive_cmds runs LD, not CC, wlarc should be empty | 
|  | 15070 | wlarc='${wl}' | 
|  | 15071 |  | 
|  | 15072 | # See if GNU ld supports shared libraries. | 
|  | 15073 | case $host_os in | 
|  | 15074 | aix3* | aix4* | aix5*) | 
|  | 15075 | # On AIX/PPC, the GNU linker is very broken | 
|  | 15076 | if test "$host_cpu" != ia64; then | 
|  | 15077 | ld_shlibs_GCJ=no | 
|  | 15078 | cat <<EOF 1>&2 | 
|  | 15079 |  | 
|  | 15080 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | 
|  | 15081 | *** to be unable to reliably create shared libraries on AIX. | 
|  | 15082 | *** Therefore, libtool is disabling shared libraries support.  If you | 
|  | 15083 | *** really care for shared libraries, you may want to modify your PATH | 
|  | 15084 | *** so that a non-GNU linker is found, and then restart. | 
|  | 15085 |  | 
|  | 15086 | EOF | 
|  | 15087 | fi | 
|  | 15088 | ;; | 
|  | 15089 |  | 
|  | 15090 | amigaos*) | 
|  | 15091 | 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)' | 
|  | 15092 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
|  | 15093 | hardcode_minus_L_GCJ=yes | 
|  | 15094 |  | 
|  | 15095 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | 
|  | 15096 | # that the semantics of dynamic libraries on AmigaOS, at least up | 
|  | 15097 | # to version 4, is to share data among multiple programs linked | 
|  | 15098 | # with the same dynamic library.  Since this doesn't match the | 
|  | 15099 | # behavior of shared libraries on other platforms, we can't use | 
|  | 15100 | # them. | 
|  | 15101 | ld_shlibs_GCJ=no | 
|  | 15102 | ;; | 
|  | 15103 |  | 
|  | 15104 | beos*) | 
|  | 15105 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
|  | 15106 | allow_undefined_flag_GCJ=unsupported | 
|  | 15107 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 
|  | 15108 | # support --undefined.  This deserves some investigation.  FIXME | 
|  | 15109 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 15110 | else | 
|  | 15111 | ld_shlibs_GCJ=no | 
|  | 15112 | fi | 
|  | 15113 | ;; | 
|  | 15114 |  | 
|  | 15115 | cygwin* | mingw* | pw32*) | 
|  | 15116 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, | 
|  | 15117 | # as there is no search path for DLLs. | 
|  | 15118 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
|  | 15119 | allow_undefined_flag_GCJ=unsupported | 
|  | 15120 | always_export_symbols_GCJ=no | 
|  | 15121 | enable_shared_with_static_runtimes_GCJ=yes | 
|  | 15122 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 
|  | 15123 |  | 
|  | 15124 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 
|  | 15125 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 
|  | 15126 | # If the export-symbols file already is a .def file (1st line | 
|  | 15127 | # is EXPORTS), use it as is; otherwise, prepend... | 
|  | 15128 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
|  | 15129 | cp $export_symbols $output_objdir/$soname.def; | 
|  | 15130 | else | 
|  | 15131 | echo EXPORTS > $output_objdir/$soname.def; | 
|  | 15132 | cat $export_symbols >> $output_objdir/$soname.def; | 
|  | 15133 | fi~ | 
|  | 15134 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib' | 
|  | 15135 | else | 
|  | 15136 | ld_shlibs=no | 
|  | 15137 | fi | 
|  | 15138 | ;; | 
|  | 15139 |  | 
|  | 15140 | netbsd*) | 
|  | 15141 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
|  | 15142 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | 
|  | 15143 | wlarc= | 
|  | 15144 | else | 
|  | 15145 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 15146 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|  | 15147 | fi | 
|  | 15148 | ;; | 
|  | 15149 |  | 
|  | 15150 | solaris* | sysv5*) | 
|  | 15151 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | 
|  | 15152 | ld_shlibs_GCJ=no | 
|  | 15153 | cat <<EOF 1>&2 | 
|  | 15154 |  | 
|  | 15155 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | 
|  | 15156 | *** create shared libraries on Solaris systems.  Therefore, libtool | 
|  | 15157 | *** is disabling shared libraries support.  We urge you to upgrade GNU | 
|  | 15158 | *** binutils to release 2.9.1 or newer.  Another option is to modify | 
|  | 15159 | *** your PATH or compiler configuration so that the native linker is | 
|  | 15160 | *** used, and then restart. | 
|  | 15161 |  | 
|  | 15162 | EOF | 
|  | 15163 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
|  | 15164 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 15165 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|  | 15166 | else | 
|  | 15167 | ld_shlibs_GCJ=no | 
|  | 15168 | fi | 
|  | 15169 | ;; | 
|  | 15170 |  | 
|  | 15171 | sunos4*) | 
|  | 15172 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
|  | 15173 | wlarc= | 
|  | 15174 | hardcode_direct_GCJ=yes | 
|  | 15175 | hardcode_shlibpath_var_GCJ=no | 
|  | 15176 | ;; | 
|  | 15177 |  | 
|  | 15178 | *) | 
|  | 15179 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
|  | 15180 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 15181 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|  | 15182 | else | 
|  | 15183 | ld_shlibs_GCJ=no | 
|  | 15184 | fi | 
|  | 15185 | ;; | 
|  | 15186 | esac | 
|  | 15187 |  | 
|  | 15188 | if test "$ld_shlibs_GCJ" = yes; then | 
|  | 15189 | runpath_var=LD_RUN_PATH | 
|  | 15190 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' | 
|  | 15191 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' | 
|  | 15192 | # ancient GNU ld didn't support --whole-archive et. al. | 
|  | 15193 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | 
|  | 15194 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
|  | 15195 | else | 
|  | 15196 | whole_archive_flag_spec_GCJ= | 
|  | 15197 | fi | 
|  | 15198 | fi | 
|  | 15199 | else | 
|  | 15200 | # PORTME fill in a description of your system's linker (not GNU ld) | 
|  | 15201 | case $host_os in | 
|  | 15202 | aix3*) | 
|  | 15203 | allow_undefined_flag_GCJ=unsupported | 
|  | 15204 | always_export_symbols_GCJ=yes | 
|  | 15205 | 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' | 
|  | 15206 | # Note: this linker hardcodes the directories in LIBPATH if there | 
|  | 15207 | # are no directories specified by -L. | 
|  | 15208 | hardcode_minus_L_GCJ=yes | 
|  | 15209 | if test "$GCC" = yes && test -z "$link_static_flag"; then | 
|  | 15210 | # Neither direct hardcoding nor static linking is supported with a | 
|  | 15211 | # broken collect2. | 
|  | 15212 | hardcode_direct_GCJ=unsupported | 
|  | 15213 | fi | 
|  | 15214 | ;; | 
|  | 15215 |  | 
|  | 15216 | aix4* | aix5*) | 
|  | 15217 | if test "$host_cpu" = ia64; then | 
|  | 15218 | # On IA64, the linker does run time linking by default, so we don't | 
|  | 15219 | # have to do anything special. | 
|  | 15220 | aix_use_runtimelinking=no | 
|  | 15221 | exp_sym_flag='-Bexport' | 
|  | 15222 | no_entry_flag="" | 
|  | 15223 | else | 
|  | 15224 | # If we're using GNU nm, then we don't want the "-C" option. | 
|  | 15225 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | 
|  | 15226 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 
|  | 15227 | 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' | 
|  | 15228 | else | 
|  | 15229 | 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' | 
|  | 15230 | fi | 
|  | 15231 | aix_use_runtimelinking=no | 
|  | 15232 |  | 
|  | 15233 | # Test if we are trying to use run time linking or normal | 
|  | 15234 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
|  | 15235 | # need to do runtime linking. | 
|  | 15236 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 
|  | 15237 | for ld_flag in $LDFLAGS; do | 
|  | 15238 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 
|  | 15239 | aix_use_runtimelinking=yes | 
|  | 15240 | break | 
|  | 15241 | fi | 
|  | 15242 | done | 
|  | 15243 | esac | 
|  | 15244 |  | 
|  | 15245 | exp_sym_flag='-bexport' | 
|  | 15246 | no_entry_flag='-bnoentry' | 
|  | 15247 | fi | 
|  | 15248 |  | 
|  | 15249 | # When large executables or shared objects are built, AIX ld can | 
|  | 15250 | # have problems creating the table of contents.  If linking a library | 
|  | 15251 | # or program results in "error TOC overflow" add -mminimal-toc to | 
|  | 15252 | # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
|  | 15253 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
|  | 15254 |  | 
|  | 15255 | archive_cmds_GCJ='' | 
|  | 15256 | hardcode_direct_GCJ=yes | 
|  | 15257 | hardcode_libdir_separator_GCJ=':' | 
|  | 15258 | link_all_deplibs_GCJ=yes | 
|  | 15259 |  | 
|  | 15260 | if test "$GCC" = yes; then | 
|  | 15261 | case $host_os in aix4.012|aix4.012.*) | 
|  | 15262 | # We only want to do this on AIX 4.2 and lower, the check | 
|  | 15263 | # below for broken collect2 doesn't work under 4.3+ | 
|  | 15264 | collect2name=`${CC} -print-prog-name=collect2` | 
|  | 15265 | if test -f "$collect2name" && \ | 
|  | 15266 | strings "$collect2name" | grep resolve_lib_name >/dev/null | 
|  | 15267 | then | 
|  | 15268 | # We have reworked collect2 | 
|  | 15269 | hardcode_direct_GCJ=yes | 
|  | 15270 | else | 
|  | 15271 | # We have old collect2 | 
|  | 15272 | hardcode_direct_GCJ=unsupported | 
|  | 15273 | # It fails to find uninstalled libraries when the uninstalled | 
|  | 15274 | # path is not listed in the libpath.  Setting hardcode_minus_L | 
|  | 15275 | # to unsupported forces relinking | 
|  | 15276 | hardcode_minus_L_GCJ=yes | 
|  | 15277 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
|  | 15278 | hardcode_libdir_separator_GCJ= | 
|  | 15279 | fi | 
|  | 15280 | esac | 
|  | 15281 | shared_flag='-shared' | 
|  | 15282 | else | 
|  | 15283 | # not using gcc | 
|  | 15284 | if test "$host_cpu" = ia64; then | 
|  | 15285 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
|  | 15286 | # chokes on -Wl,-G. The following line is correct: | 
|  | 15287 | shared_flag='-G' | 
|  | 15288 | else | 
|  | 15289 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 15290 | shared_flag='${wl}-G' | 
|  | 15291 | else | 
|  | 15292 | shared_flag='${wl}-bM:SRE' | 
|  | 15293 | fi | 
|  | 15294 | fi | 
|  | 15295 | fi | 
|  | 15296 |  | 
|  | 15297 | # It seems that -bexpall does not export symbols beginning with | 
|  | 15298 | # underscore (_), so it is better to generate a list of symbols to export. | 
|  | 15299 | always_export_symbols_GCJ=yes | 
|  | 15300 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 15301 | # Warning - without using the other runtime loading flags (-brtl), | 
|  | 15302 | # -berok will link without error, but may produce a broken library. | 
|  | 15303 | allow_undefined_flag_GCJ='-berok' | 
|  | 15304 | # Determine the default libpath from the value encoded in an empty executable. | 
|  | 15305 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15306 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15307 | /* confdefs.h.  */ | 
|  | 15308 | _ACEOF | 
|  | 15309 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15310 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15311 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15312 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15313 | int | 
|  | 15314 | main () | 
|  | 15315 | { | 
|  | 15316 |  | 
|  | 15317 | ; | 
|  | 15318 | return 0; | 
|  | 15319 | } | 
|  | 15320 | _ACEOF | 
|  | 15321 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 15322 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 15323 | (eval $ac_link) 2>&5 | 
|  | 15324 | ac_status=$? | 
|  | 15325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15326 | (exit $ac_status); } && | 
|  | 15327 | { ac_try='test -s conftest$ac_exeext' | 
|  | 15328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 15329 | (eval $ac_try) 2>&5 | 
|  | 15330 | ac_status=$? | 
|  | 15331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15332 | (exit $ac_status); }; }; then | 
|  | 15333 |  | 
|  | 15334 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
|  | 15335 | }'` | 
|  | 15336 | # Check for a 64-bit object if we didn't find anything. | 
|  | 15337 | 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; } | 
|  | 15338 | }'`; fi | 
|  | 15339 | else | 
|  | 15340 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15341 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 15342 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15343 | fi | 
|  | 15344 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 15345 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
|  | 15346 |  | 
|  | 15347 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | 
|  | 15348 | 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" | 
|  | 15349 | else | 
|  | 15350 | if test "$host_cpu" = ia64; then | 
|  | 15351 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' | 
|  | 15352 | allow_undefined_flag_GCJ="-z nodefs" | 
|  | 15353 | 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" | 
|  | 15354 | else | 
|  | 15355 | # Determine the default libpath from the value encoded in an empty executable. | 
|  | 15356 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15357 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15358 | /* confdefs.h.  */ | 
|  | 15359 | _ACEOF | 
|  | 15360 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15361 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15362 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15363 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15364 | int | 
|  | 15365 | main () | 
|  | 15366 | { | 
|  | 15367 |  | 
|  | 15368 | ; | 
|  | 15369 | return 0; | 
|  | 15370 | } | 
|  | 15371 | _ACEOF | 
|  | 15372 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 15373 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 15374 | (eval $ac_link) 2>&5 | 
|  | 15375 | ac_status=$? | 
|  | 15376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15377 | (exit $ac_status); } && | 
|  | 15378 | { ac_try='test -s conftest$ac_exeext' | 
|  | 15379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 15380 | (eval $ac_try) 2>&5 | 
|  | 15381 | ac_status=$? | 
|  | 15382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15383 | (exit $ac_status); }; }; then | 
|  | 15384 |  | 
|  | 15385 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
|  | 15386 | }'` | 
|  | 15387 | # Check for a 64-bit object if we didn't find anything. | 
|  | 15388 | 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; } | 
|  | 15389 | }'`; fi | 
|  | 15390 | else | 
|  | 15391 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15392 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 15393 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15394 | fi | 
|  | 15395 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 15396 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
|  | 15397 |  | 
|  | 15398 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | 
|  | 15399 | # Warning - without using the other run time loading flags, | 
|  | 15400 | # -berok will link without error, but may produce a broken library. | 
|  | 15401 | no_undefined_flag_GCJ=' ${wl}-bernotok' | 
|  | 15402 | allow_undefined_flag_GCJ=' ${wl}-berok' | 
|  | 15403 | # -bexpall does not export symbols beginning with underscore (_) | 
|  | 15404 | always_export_symbols_GCJ=yes | 
|  | 15405 | # Exported symbols can be pulled into shared objects from archives | 
|  | 15406 | whole_archive_flag_spec_GCJ=' ' | 
|  | 15407 | archive_cmds_need_lc_GCJ=yes | 
|  | 15408 | # This is similar to how AIX traditionally builds it's shared libraries. | 
|  | 15409 | 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' | 
|  | 15410 | fi | 
|  | 15411 | fi | 
|  | 15412 | ;; | 
|  | 15413 |  | 
|  | 15414 | amigaos*) | 
|  | 15415 | 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)' | 
|  | 15416 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
|  | 15417 | hardcode_minus_L_GCJ=yes | 
|  | 15418 | # see comment about different semantics on the GNU ld section | 
|  | 15419 | ld_shlibs_GCJ=no | 
|  | 15420 | ;; | 
|  | 15421 |  | 
|  | 15422 | bsdi4*) | 
|  | 15423 | export_dynamic_flag_spec_GCJ=-rdynamic | 
|  | 15424 | ;; | 
|  | 15425 |  | 
|  | 15426 | cygwin* | mingw* | pw32*) | 
|  | 15427 | # When not using gcc, we currently assume that we are using | 
|  | 15428 | # Microsoft Visual C++. | 
|  | 15429 | # hardcode_libdir_flag_spec is actually meaningless, as there is | 
|  | 15430 | # no search path for DLLs. | 
|  | 15431 | hardcode_libdir_flag_spec_GCJ=' ' | 
|  | 15432 | allow_undefined_flag_GCJ=unsupported | 
|  | 15433 | # Tell ltmain to make .lib files, not .a files. | 
|  | 15434 | libext=lib | 
|  | 15435 | # Tell ltmain to make .dll files, not .so files. | 
|  | 15436 | shrext=".dll" | 
|  | 15437 | # FIXME: Setting linknames here is a bad hack. | 
|  | 15438 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | 
|  | 15439 | # The linker will automatically build a .lib file if we build a DLL. | 
|  | 15440 | old_archive_From_new_cmds_GCJ='true' | 
|  | 15441 | # FIXME: Should let the user specify the lib program. | 
|  | 15442 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' | 
|  | 15443 | fix_srcfile_path='`cygpath -w "$srcfile"`' | 
|  | 15444 | enable_shared_with_static_runtimes_GCJ=yes | 
|  | 15445 | ;; | 
|  | 15446 |  | 
|  | 15447 | darwin* | rhapsody*) | 
|  | 15448 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then | 
|  | 15449 | archive_cmds_need_lc_GCJ=no | 
|  | 15450 | case "$host_os" in | 
|  | 15451 | rhapsody* | darwin1.[012]) | 
|  | 15452 | allow_undefined_flag_GCJ='-undefined suppress' | 
|  | 15453 | ;; | 
|  | 15454 | *) # Darwin 1.3 on | 
|  | 15455 | test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' | 
|  | 15456 | ;; | 
|  | 15457 | esac | 
|  | 15458 | # FIXME: Relying on posixy $() will cause problems for | 
|  | 15459 | #        cross-compilation, but unfortunately the echo tests do not | 
|  | 15460 | #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles | 
|  | 15461 | #	       `"' quotes if we put them in here... so don't! | 
|  | 15462 | lt_int_apple_cc_single_mod=no | 
|  | 15463 | output_verbose_link_cmd='echo' | 
|  | 15464 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then | 
|  | 15465 | lt_int_apple_cc_single_mod=yes | 
|  | 15466 | fi | 
|  | 15467 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | 
|  | 15468 | archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 
|  | 15469 | else | 
|  | 15470 | archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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' | 
|  | 15471 | fi | 
|  | 15472 | module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' | 
|  | 15473 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
|  | 15474 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | 
|  | 15475 | archive_expsym_cmds_GCJ='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}' | 
|  | 15476 | else | 
|  | 15477 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' | 
|  | 15478 | fi | 
|  | 15479 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
|  | 15480 | hardcode_direct_GCJ=no | 
|  | 15481 | hardcode_automatic_GCJ=yes | 
|  | 15482 | hardcode_shlibpath_var_GCJ=unsupported | 
|  | 15483 | whole_archive_flag_spec_GCJ='-all_load $convenience' | 
|  | 15484 | link_all_deplibs_GCJ=yes | 
|  | 15485 | fi | 
|  | 15486 | ;; | 
|  | 15487 |  | 
|  | 15488 | dgux*) | 
|  | 15489 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 15490 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
|  | 15491 | hardcode_shlibpath_var_GCJ=no | 
|  | 15492 | ;; | 
|  | 15493 |  | 
|  | 15494 | freebsd1*) | 
|  | 15495 | ld_shlibs_GCJ=no | 
|  | 15496 | ;; | 
|  | 15497 |  | 
|  | 15498 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 
|  | 15499 | # support.  Future versions do this automatically, but an explicit c++rt0.o | 
|  | 15500 | # does not break anything, and helps significantly (at the cost of a little | 
|  | 15501 | # extra space). | 
|  | 15502 | freebsd2.2*) | 
|  | 15503 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | 
|  | 15504 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
|  | 15505 | hardcode_direct_GCJ=yes | 
|  | 15506 | hardcode_shlibpath_var_GCJ=no | 
|  | 15507 | ;; | 
|  | 15508 |  | 
|  | 15509 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 
|  | 15510 | freebsd2*) | 
|  | 15511 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
|  | 15512 | hardcode_direct_GCJ=yes | 
|  | 15513 | hardcode_minus_L_GCJ=yes | 
|  | 15514 | hardcode_shlibpath_var_GCJ=no | 
|  | 15515 | ;; | 
|  | 15516 |  | 
|  | 15517 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 
|  | 15518 | freebsd*) | 
|  | 15519 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 15520 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
|  | 15521 | hardcode_direct_GCJ=yes | 
|  | 15522 | hardcode_shlibpath_var_GCJ=no | 
|  | 15523 | ;; | 
|  | 15524 |  | 
|  | 15525 | hpux9*) | 
|  | 15526 | if test "$GCC" = yes; then | 
|  | 15527 | 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' | 
|  | 15528 | else | 
|  | 15529 | 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' | 
|  | 15530 | fi | 
|  | 15531 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | 
|  | 15532 | hardcode_libdir_separator_GCJ=: | 
|  | 15533 | hardcode_direct_GCJ=yes | 
|  | 15534 |  | 
|  | 15535 | # hardcode_minus_L: Not really in the search PATH, | 
|  | 15536 | # but as the default location of the library. | 
|  | 15537 | hardcode_minus_L_GCJ=yes | 
|  | 15538 | export_dynamic_flag_spec_GCJ='${wl}-E' | 
|  | 15539 | ;; | 
|  | 15540 |  | 
|  | 15541 | hpux10* | hpux11*) | 
|  | 15542 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 
|  | 15543 | case "$host_cpu" in | 
|  | 15544 | hppa*64*|ia64*) | 
|  | 15545 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 15546 | ;; | 
|  | 15547 | *) | 
|  | 15548 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 15549 | ;; | 
|  | 15550 | esac | 
|  | 15551 | else | 
|  | 15552 | case "$host_cpu" in | 
|  | 15553 | hppa*64*|ia64*) | 
|  | 15554 | archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 15555 | ;; | 
|  | 15556 | *) | 
|  | 15557 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 
|  | 15558 | ;; | 
|  | 15559 | esac | 
|  | 15560 | fi | 
|  | 15561 | if test "$with_gnu_ld" = no; then | 
|  | 15562 | case "$host_cpu" in | 
|  | 15563 | hppa*64*) | 
|  | 15564 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | 
|  | 15565 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' | 
|  | 15566 | hardcode_libdir_separator_GCJ=: | 
|  | 15567 | hardcode_direct_GCJ=no | 
|  | 15568 | hardcode_shlibpath_var_GCJ=no | 
|  | 15569 | ;; | 
|  | 15570 | ia64*) | 
|  | 15571 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
|  | 15572 | hardcode_direct_GCJ=no | 
|  | 15573 | hardcode_shlibpath_var_GCJ=no | 
|  | 15574 |  | 
|  | 15575 | # hardcode_minus_L: Not really in the search PATH, | 
|  | 15576 | # but as the default location of the library. | 
|  | 15577 | hardcode_minus_L_GCJ=yes | 
|  | 15578 | ;; | 
|  | 15579 | *) | 
|  | 15580 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | 
|  | 15581 | hardcode_libdir_separator_GCJ=: | 
|  | 15582 | hardcode_direct_GCJ=yes | 
|  | 15583 | export_dynamic_flag_spec_GCJ='${wl}-E' | 
|  | 15584 |  | 
|  | 15585 | # hardcode_minus_L: Not really in the search PATH, | 
|  | 15586 | # but as the default location of the library. | 
|  | 15587 | hardcode_minus_L_GCJ=yes | 
|  | 15588 | ;; | 
|  | 15589 | esac | 
|  | 15590 | fi | 
|  | 15591 | ;; | 
|  | 15592 |  | 
|  | 15593 | irix5* | irix6* | nonstopux*) | 
|  | 15594 | if test "$GCC" = yes; then | 
|  | 15595 | 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' | 
|  | 15596 | else | 
|  | 15597 | 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' | 
|  | 15598 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' | 
|  | 15599 | fi | 
|  | 15600 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | 
|  | 15601 | hardcode_libdir_separator_GCJ=: | 
|  | 15602 | link_all_deplibs_GCJ=yes | 
|  | 15603 | ;; | 
|  | 15604 |  | 
|  | 15605 | netbsd*) | 
|  | 15606 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
|  | 15607 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out | 
|  | 15608 | else | 
|  | 15609 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF | 
|  | 15610 | fi | 
|  | 15611 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
|  | 15612 | hardcode_direct_GCJ=yes | 
|  | 15613 | hardcode_shlibpath_var_GCJ=no | 
|  | 15614 | ;; | 
|  | 15615 |  | 
|  | 15616 | newsos6) | 
|  | 15617 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 15618 | hardcode_direct_GCJ=yes | 
|  | 15619 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | 
|  | 15620 | hardcode_libdir_separator_GCJ=: | 
|  | 15621 | hardcode_shlibpath_var_GCJ=no | 
|  | 15622 | ;; | 
|  | 15623 |  | 
|  | 15624 | openbsd*) | 
|  | 15625 | hardcode_direct_GCJ=yes | 
|  | 15626 | hardcode_shlibpath_var_GCJ=no | 
|  | 15627 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|  | 15628 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 15629 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | 
|  | 15630 | export_dynamic_flag_spec_GCJ='${wl}-E' | 
|  | 15631 | else | 
|  | 15632 | case $host_os in | 
|  | 15633 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | 
|  | 15634 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
|  | 15635 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
|  | 15636 | ;; | 
|  | 15637 | *) | 
|  | 15638 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 15639 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | 
|  | 15640 | ;; | 
|  | 15641 | esac | 
|  | 15642 | fi | 
|  | 15643 | ;; | 
|  | 15644 |  | 
|  | 15645 | os2*) | 
|  | 15646 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
|  | 15647 | hardcode_minus_L_GCJ=yes | 
|  | 15648 | allow_undefined_flag_GCJ=unsupported | 
|  | 15649 | 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' | 
|  | 15650 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | 
|  | 15651 | ;; | 
|  | 15652 |  | 
|  | 15653 | osf3*) | 
|  | 15654 | if test "$GCC" = yes; then | 
|  | 15655 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | 
|  | 15656 | 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' | 
|  | 15657 | else | 
|  | 15658 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | 
|  | 15659 | 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' | 
|  | 15660 | fi | 
|  | 15661 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | 
|  | 15662 | hardcode_libdir_separator_GCJ=: | 
|  | 15663 | ;; | 
|  | 15664 |  | 
|  | 15665 | osf4* | osf5*)	# as osf3* with the addition of -msym flag | 
|  | 15666 | if test "$GCC" = yes; then | 
|  | 15667 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | 
|  | 15668 | 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' | 
|  | 15669 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | 
|  | 15670 | else | 
|  | 15671 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | 
|  | 15672 | 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' | 
|  | 15673 | 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~ | 
|  | 15674 | $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' | 
|  | 15675 |  | 
|  | 15676 | # Both c and cxx compiler support -rpath directly | 
|  | 15677 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' | 
|  | 15678 | fi | 
|  | 15679 | hardcode_libdir_separator_GCJ=: | 
|  | 15680 | ;; | 
|  | 15681 |  | 
|  | 15682 | sco3.2v5*) | 
|  | 15683 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 15684 | hardcode_shlibpath_var_GCJ=no | 
|  | 15685 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' | 
|  | 15686 | runpath_var=LD_RUN_PATH | 
|  | 15687 | hardcode_runpath_var=yes | 
|  | 15688 | ;; | 
|  | 15689 |  | 
|  | 15690 | solaris*) | 
|  | 15691 | no_undefined_flag_GCJ=' -z text' | 
|  | 15692 | if test "$GCC" = yes; then | 
|  | 15693 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 15694 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|  | 15695 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | 
|  | 15696 | else | 
|  | 15697 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 15698 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|  | 15699 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | 
|  | 15700 | fi | 
|  | 15701 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
|  | 15702 | hardcode_shlibpath_var_GCJ=no | 
|  | 15703 | case $host_os in | 
|  | 15704 | solaris2.[0-5] | solaris2.[0-5].*) ;; | 
|  | 15705 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) | 
|  | 15706 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; | 
|  | 15707 | esac | 
|  | 15708 | link_all_deplibs_GCJ=yes | 
|  | 15709 | ;; | 
|  | 15710 |  | 
|  | 15711 | sunos4*) | 
|  | 15712 | if test "x$host_vendor" = xsequent; then | 
|  | 15713 | # Use $CC to link under sequent, because it throws in some extra .o | 
|  | 15714 | # files that make .init and .fini sections work. | 
|  | 15715 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 15716 | else | 
|  | 15717 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | 
|  | 15718 | fi | 
|  | 15719 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
|  | 15720 | hardcode_direct_GCJ=yes | 
|  | 15721 | hardcode_minus_L_GCJ=yes | 
|  | 15722 | hardcode_shlibpath_var_GCJ=no | 
|  | 15723 | ;; | 
|  | 15724 |  | 
|  | 15725 | sysv4) | 
|  | 15726 | case $host_vendor in | 
|  | 15727 | sni) | 
|  | 15728 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 15729 | hardcode_direct_GCJ=yes # is this really true??? | 
|  | 15730 | ;; | 
|  | 15731 | siemens) | 
|  | 15732 | ## LD is ld it makes a PLAMLIB | 
|  | 15733 | ## CC just makes a GrossModule. | 
|  | 15734 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
|  | 15735 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' | 
|  | 15736 | hardcode_direct_GCJ=no | 
|  | 15737 | ;; | 
|  | 15738 | motorola) | 
|  | 15739 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 15740 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie | 
|  | 15741 | ;; | 
|  | 15742 | esac | 
|  | 15743 | runpath_var='LD_RUN_PATH' | 
|  | 15744 | hardcode_shlibpath_var_GCJ=no | 
|  | 15745 | ;; | 
|  | 15746 |  | 
|  | 15747 | sysv4.3*) | 
|  | 15748 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 15749 | hardcode_shlibpath_var_GCJ=no | 
|  | 15750 | export_dynamic_flag_spec_GCJ='-Bexport' | 
|  | 15751 | ;; | 
|  | 15752 |  | 
|  | 15753 | sysv4*MP*) | 
|  | 15754 | if test -d /usr/nec; then | 
|  | 15755 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 15756 | hardcode_shlibpath_var_GCJ=no | 
|  | 15757 | runpath_var=LD_RUN_PATH | 
|  | 15758 | hardcode_runpath_var=yes | 
|  | 15759 | ld_shlibs_GCJ=yes | 
|  | 15760 | fi | 
|  | 15761 | ;; | 
|  | 15762 |  | 
|  | 15763 | sysv4.2uw2*) | 
|  | 15764 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
|  | 15765 | hardcode_direct_GCJ=yes | 
|  | 15766 | hardcode_minus_L_GCJ=no | 
|  | 15767 | hardcode_shlibpath_var_GCJ=no | 
|  | 15768 | hardcode_runpath_var=yes | 
|  | 15769 | runpath_var=LD_RUN_PATH | 
|  | 15770 | ;; | 
|  | 15771 |  | 
|  | 15772 | sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*) | 
|  | 15773 | no_undefined_flag_GCJ='${wl}-z ${wl}text' | 
|  | 15774 | if test "$GCC" = yes; then | 
|  | 15775 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 15776 | else | 
|  | 15777 | archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 15778 | fi | 
|  | 15779 | runpath_var='LD_RUN_PATH' | 
|  | 15780 | hardcode_shlibpath_var_GCJ=no | 
|  | 15781 | ;; | 
|  | 15782 |  | 
|  | 15783 | sysv5*) | 
|  | 15784 | no_undefined_flag_GCJ=' -z text' | 
|  | 15785 | # $CC -shared without GNU ld will not create a library from C++ | 
|  | 15786 | # object files and a static libstdc++, better avoid it by now | 
|  | 15787 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 15788 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|  | 15789 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | 
|  | 15790 | hardcode_libdir_flag_spec_GCJ= | 
|  | 15791 | hardcode_shlibpath_var_GCJ=no | 
|  | 15792 | runpath_var='LD_RUN_PATH' | 
|  | 15793 | ;; | 
|  | 15794 |  | 
|  | 15795 | uts4*) | 
|  | 15796 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 15797 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
|  | 15798 | hardcode_shlibpath_var_GCJ=no | 
|  | 15799 | ;; | 
|  | 15800 |  | 
|  | 15801 | *) | 
|  | 15802 | ld_shlibs_GCJ=no | 
|  | 15803 | ;; | 
|  | 15804 | esac | 
|  | 15805 | fi | 
|  | 15806 |  | 
|  | 15807 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 | 
|  | 15808 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 | 
|  | 15809 | test "$ld_shlibs_GCJ" = no && can_build_shared=no | 
|  | 15810 |  | 
|  | 15811 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
|  | 15812 | if test "$GCC" = yes; then | 
|  | 15813 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
|  | 15814 | fi | 
|  | 15815 |  | 
|  | 15816 | # | 
|  | 15817 | # Do we need to explicitly link libc? | 
|  | 15818 | # | 
|  | 15819 | case "x$archive_cmds_need_lc_GCJ" in | 
|  | 15820 | x|xyes) | 
|  | 15821 | # Assume -lc should be added | 
|  | 15822 | archive_cmds_need_lc_GCJ=yes | 
|  | 15823 |  | 
|  | 15824 | if test "$enable_shared" = yes && test "$GCC" = yes; then | 
|  | 15825 | case $archive_cmds_GCJ in | 
|  | 15826 | *'~'*) | 
|  | 15827 | # FIXME: we may have to deal with multi-command sequences. | 
|  | 15828 | ;; | 
|  | 15829 | '$CC '*) | 
|  | 15830 | # Test whether the compiler implicitly links with -lc since on some | 
|  | 15831 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
|  | 15832 | # to ld, don't add -lc before -lgcc. | 
|  | 15833 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | 
|  | 15834 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | 
|  | 15835 | $rm conftest* | 
|  | 15836 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 15837 |  | 
|  | 15838 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 15839 | (eval $ac_compile) 2>&5 | 
|  | 15840 | ac_status=$? | 
|  | 15841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15842 | (exit $ac_status); } 2>conftest.err; then | 
|  | 15843 | soname=conftest | 
|  | 15844 | lib=conftest | 
|  | 15845 | libobjs=conftest.$ac_objext | 
|  | 15846 | deplibs= | 
|  | 15847 | wl=$lt_prog_compiler_wl_GCJ | 
|  | 15848 | compiler_flags=-v | 
|  | 15849 | linker_flags=-v | 
|  | 15850 | verstring= | 
|  | 15851 | output_objdir=. | 
|  | 15852 | libname=conftest | 
|  | 15853 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ | 
|  | 15854 | allow_undefined_flag_GCJ= | 
|  | 15855 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | 
|  | 15856 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
|  | 15857 | ac_status=$? | 
|  | 15858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15859 | (exit $ac_status); } | 
|  | 15860 | then | 
|  | 15861 | archive_cmds_need_lc_GCJ=no | 
|  | 15862 | else | 
|  | 15863 | archive_cmds_need_lc_GCJ=yes | 
|  | 15864 | fi | 
|  | 15865 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag | 
|  | 15866 | else | 
|  | 15867 | cat conftest.err 1>&5 | 
|  | 15868 | fi | 
|  | 15869 | $rm conftest* | 
|  | 15870 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 | 
|  | 15871 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 | 
|  | 15872 | ;; | 
|  | 15873 | esac | 
|  | 15874 | fi | 
|  | 15875 | ;; | 
|  | 15876 | esac | 
|  | 15877 |  | 
|  | 15878 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 
|  | 15879 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 
|  | 15880 | hardcode_action_GCJ= | 
|  | 15881 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ | 
|  | 15882 | test -n "$runpath_var GCJ" || \ | 
|  | 15883 | test "X$hardcode_automatic_GCJ"="Xyes" ; then | 
|  | 15884 |  | 
|  | 15885 | # We can hardcode non-existant directories. | 
|  | 15886 | if test "$hardcode_direct_GCJ" != no && | 
|  | 15887 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
|  | 15888 | # have to relink, otherwise we might link with an installed library | 
|  | 15889 | # when we should be linking with a yet-to-be-installed one | 
|  | 15890 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && | 
|  | 15891 | test "$hardcode_minus_L_GCJ" != no; then | 
|  | 15892 | # Linking always hardcodes the temporary library directory. | 
|  | 15893 | hardcode_action_GCJ=relink | 
|  | 15894 | else | 
|  | 15895 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
|  | 15896 | hardcode_action_GCJ=immediate | 
|  | 15897 | fi | 
|  | 15898 | else | 
|  | 15899 | # We cannot hardcode anything, or else we can only hardcode existing | 
|  | 15900 | # directories. | 
|  | 15901 | hardcode_action_GCJ=unsupported | 
|  | 15902 | fi | 
|  | 15903 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 | 
|  | 15904 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 | 
|  | 15905 |  | 
|  | 15906 | if test "$hardcode_action_GCJ" = relink; then | 
|  | 15907 | # Fast installation is not supported | 
|  | 15908 | enable_fast_install=no | 
|  | 15909 | elif test "$shlibpath_overrides_runpath" = yes || | 
|  | 15910 | test "$enable_shared" = no; then | 
|  | 15911 | # Fast installation is not necessary | 
|  | 15912 | enable_fast_install=needless | 
|  | 15913 | fi | 
|  | 15914 |  | 
|  | 15915 | striplib= | 
|  | 15916 | old_striplib= | 
|  | 15917 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | 
|  | 15918 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | 
|  | 15919 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 
|  | 15920 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 
|  | 15921 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 
|  | 15922 | echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 15923 | echo "${ECHO_T}yes" >&6 | 
|  | 15924 | else | 
|  | 15925 | # FIXME - insert some real tests, host_os isn't really good enough | 
|  | 15926 | case $host_os in | 
|  | 15927 | darwin*) | 
|  | 15928 | if test -n "$STRIP" ; then | 
|  | 15929 | striplib="$STRIP -x" | 
|  | 15930 | echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 15931 | echo "${ECHO_T}yes" >&6 | 
|  | 15932 | else | 
|  | 15933 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 15934 | echo "${ECHO_T}no" >&6 | 
|  | 15935 | fi | 
|  | 15936 | ;; | 
|  | 15937 | *) | 
|  | 15938 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 15939 | echo "${ECHO_T}no" >&6 | 
|  | 15940 | ;; | 
|  | 15941 | esac | 
|  | 15942 | fi | 
|  | 15943 |  | 
|  | 15944 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
|  | 15945 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 
|  | 15946 | library_names_spec= | 
|  | 15947 | libname_spec='lib$name' | 
|  | 15948 | soname_spec= | 
|  | 15949 | shrext=".so" | 
|  | 15950 | postinstall_cmds= | 
|  | 15951 | postuninstall_cmds= | 
|  | 15952 | finish_cmds= | 
|  | 15953 | finish_eval= | 
|  | 15954 | shlibpath_var= | 
|  | 15955 | shlibpath_overrides_runpath=unknown | 
|  | 15956 | version_type=none | 
|  | 15957 | dynamic_linker="$host_os ld.so" | 
|  | 15958 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
|  | 15959 | if test "$GCC" = yes; then | 
|  | 15960 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
|  | 15961 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
|  | 15962 | # if the path contains ";" then we assume it to be the separator | 
|  | 15963 | # otherwise default to the standard path separator (i.e. ":") - it is | 
|  | 15964 | # assumed that no part of a normal pathname contains ";" but that should | 
|  | 15965 | # okay in the real world where ";" in dirpaths is itself problematic. | 
|  | 15966 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
|  | 15967 | else | 
|  | 15968 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
|  | 15969 | fi | 
|  | 15970 | else | 
|  | 15971 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
|  | 15972 | fi | 
|  | 15973 | need_lib_prefix=unknown | 
|  | 15974 | hardcode_into_libs=no | 
|  | 15975 |  | 
|  | 15976 | # when you set need_version to no, make sure it does not cause -set_version | 
|  | 15977 | # flags to be left without arguments | 
|  | 15978 | need_version=unknown | 
|  | 15979 |  | 
|  | 15980 | case $host_os in | 
|  | 15981 | aix3*) | 
|  | 15982 | version_type=linux | 
|  | 15983 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
|  | 15984 | shlibpath_var=LIBPATH | 
|  | 15985 |  | 
|  | 15986 | # AIX 3 has no versioning support, so we append a major version to the name. | 
|  | 15987 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15988 | ;; | 
|  | 15989 |  | 
|  | 15990 | aix4* | aix5*) | 
|  | 15991 | version_type=linux | 
|  | 15992 | need_lib_prefix=no | 
|  | 15993 | need_version=no | 
|  | 15994 | hardcode_into_libs=yes | 
|  | 15995 | if test "$host_cpu" = ia64; then | 
|  | 15996 | # AIX 5 supports IA64 | 
|  | 15997 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
|  | 15998 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15999 | else | 
|  | 16000 | # With GCC up to 2.95.x, collect2 would create an import file | 
|  | 16001 | # for dependence libraries.  The import file would start with | 
|  | 16002 | # the line `#! .'.  This would cause the generated library to | 
|  | 16003 | # depend on `.', always an invalid library.  This was fixed in | 
|  | 16004 | # development snapshots of GCC prior to 3.0. | 
|  | 16005 | case $host_os in | 
|  | 16006 | aix4 | aix4.[01] | aix4.[01].*) | 
|  | 16007 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
|  | 16008 | echo ' yes ' | 
|  | 16009 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
|  | 16010 | : | 
|  | 16011 | else | 
|  | 16012 | can_build_shared=no | 
|  | 16013 | fi | 
|  | 16014 | ;; | 
|  | 16015 | esac | 
|  | 16016 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
|  | 16017 | # soname into executable. Probably we can add versioning support to | 
|  | 16018 | # collect2, so additional links can be useful in future. | 
|  | 16019 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 16020 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
|  | 16021 | # instead of lib<name>.a to let people know that these are not | 
|  | 16022 | # typical AIX shared libraries. | 
|  | 16023 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 16024 | else | 
|  | 16025 | # We preserve .a as extension for shared libraries through AIX4.2 | 
|  | 16026 | # and later when we are not doing run time linking. | 
|  | 16027 | library_names_spec='${libname}${release}.a $libname.a' | 
|  | 16028 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 16029 | fi | 
|  | 16030 | shlibpath_var=LIBPATH | 
|  | 16031 | fi | 
|  | 16032 | ;; | 
|  | 16033 |  | 
|  | 16034 | amigaos*) | 
|  | 16035 | library_names_spec='$libname.ixlibrary $libname.a' | 
|  | 16036 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
|  | 16037 | 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' | 
|  | 16038 | ;; | 
|  | 16039 |  | 
|  | 16040 | beos*) | 
|  | 16041 | library_names_spec='${libname}${shared_ext}' | 
|  | 16042 | dynamic_linker="$host_os ld.so" | 
|  | 16043 | shlibpath_var=LIBRARY_PATH | 
|  | 16044 | ;; | 
|  | 16045 |  | 
|  | 16046 | bsdi4*) | 
|  | 16047 | version_type=linux | 
|  | 16048 | need_version=no | 
|  | 16049 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 16050 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 16051 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
|  | 16052 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 16053 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
|  | 16054 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
|  | 16055 | # the default ld.so.conf also contains /usr/contrib/lib and | 
|  | 16056 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
|  | 16057 | # libtool to hard-code these into programs | 
|  | 16058 | ;; | 
|  | 16059 |  | 
|  | 16060 | cygwin* | mingw* | pw32*) | 
|  | 16061 | version_type=windows | 
|  | 16062 | shrext=".dll" | 
|  | 16063 | need_version=no | 
|  | 16064 | need_lib_prefix=no | 
|  | 16065 |  | 
|  | 16066 | case $GCC,$host_os in | 
|  | 16067 | yes,cygwin* | yes,mingw* | yes,pw32*) | 
|  | 16068 | library_names_spec='$libname.dll.a' | 
|  | 16069 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
|  | 16070 | postinstall_cmds='base_file=`basename \${file}`~ | 
|  | 16071 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
|  | 16072 | dldir=$destdir/`dirname \$dlpath`~ | 
|  | 16073 | test -d \$dldir || mkdir -p \$dldir~ | 
|  | 16074 | $install_prog $dir/$dlname \$dldir/$dlname' | 
|  | 16075 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
|  | 16076 | dlpath=$dir/\$dldll~ | 
|  | 16077 | $rm \$dlpath' | 
|  | 16078 | shlibpath_overrides_runpath=yes | 
|  | 16079 |  | 
|  | 16080 | case $host_os in | 
|  | 16081 | cygwin*) | 
|  | 16082 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
|  | 16083 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
|  | 16084 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" | 
|  | 16085 | ;; | 
|  | 16086 | mingw*) | 
|  | 16087 | # MinGW DLLs use traditional 'lib' prefix | 
|  | 16088 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
|  | 16089 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
|  | 16090 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
|  | 16091 | # It is most probably a Windows format PATH printed by | 
|  | 16092 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
|  | 16093 | # path with ; separators, and with drive letters. We can handle the | 
|  | 16094 | # drive letters (cygwin fileutils understands them), so leave them, | 
|  | 16095 | # especially as we might pass files found there to a mingw objdump, | 
|  | 16096 | # which wouldn't understand a cygwinified path. Ahh. | 
|  | 16097 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
|  | 16098 | else | 
|  | 16099 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
|  | 16100 | fi | 
|  | 16101 | ;; | 
|  | 16102 | pw32*) | 
|  | 16103 | # pw32 DLLs use 'pw' prefix rather than 'lib' | 
|  | 16104 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | 
|  | 16105 | ;; | 
|  | 16106 | esac | 
|  | 16107 | ;; | 
|  | 16108 |  | 
|  | 16109 | *) | 
|  | 16110 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
|  | 16111 | ;; | 
|  | 16112 | esac | 
|  | 16113 | dynamic_linker='Win32 ld.exe' | 
|  | 16114 | # FIXME: first we should search . and the directory the executable is in | 
|  | 16115 | shlibpath_var=PATH | 
|  | 16116 | ;; | 
|  | 16117 |  | 
|  | 16118 | darwin* | rhapsody*) | 
|  | 16119 | dynamic_linker="$host_os dyld" | 
|  | 16120 | version_type=darwin | 
|  | 16121 | need_lib_prefix=no | 
|  | 16122 | need_version=no | 
|  | 16123 | # FIXME: Relying on posixy $() will cause problems for | 
|  | 16124 | #        cross-compilation, but unfortunately the echo tests do not | 
|  | 16125 | #        yet detect zsh echo's removal of \ escapes. | 
|  | 16126 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | 
|  | 16127 | soname_spec='${libname}${release}${major}$shared_ext' | 
|  | 16128 | shlibpath_overrides_runpath=yes | 
|  | 16129 | shlibpath_var=DYLD_LIBRARY_PATH | 
|  | 16130 | shrext='$(test .$module = .yes && echo .so || echo .dylib)' | 
|  | 16131 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | 
|  | 16132 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then | 
|  | 16133 | 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"` | 
|  | 16134 | fi | 
|  | 16135 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
|  | 16136 | ;; | 
|  | 16137 |  | 
|  | 16138 | dgux*) | 
|  | 16139 | version_type=linux | 
|  | 16140 | need_lib_prefix=no | 
|  | 16141 | need_version=no | 
|  | 16142 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
|  | 16143 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 16144 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 16145 | ;; | 
|  | 16146 |  | 
|  | 16147 | freebsd1*) | 
|  | 16148 | dynamic_linker=no | 
|  | 16149 | ;; | 
|  | 16150 |  | 
|  | 16151 | freebsd*) | 
|  | 16152 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | 
|  | 16153 | version_type=freebsd-$objformat | 
|  | 16154 | case $version_type in | 
|  | 16155 | freebsd-elf*) | 
|  | 16156 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 16157 | need_version=no | 
|  | 16158 | need_lib_prefix=no | 
|  | 16159 | ;; | 
|  | 16160 | freebsd-*) | 
|  | 16161 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
|  | 16162 | need_version=yes | 
|  | 16163 | ;; | 
|  | 16164 | esac | 
|  | 16165 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 16166 | case $host_os in | 
|  | 16167 | freebsd2*) | 
|  | 16168 | shlibpath_overrides_runpath=yes | 
|  | 16169 | ;; | 
|  | 16170 | freebsd3.01* | freebsdelf3.01*) | 
|  | 16171 | shlibpath_overrides_runpath=yes | 
|  | 16172 | hardcode_into_libs=yes | 
|  | 16173 | ;; | 
|  | 16174 | *) # from 3.2 on | 
|  | 16175 | shlibpath_overrides_runpath=no | 
|  | 16176 | hardcode_into_libs=yes | 
|  | 16177 | ;; | 
|  | 16178 | esac | 
|  | 16179 | ;; | 
|  | 16180 |  | 
|  | 16181 | gnu*) | 
|  | 16182 | version_type=linux | 
|  | 16183 | need_lib_prefix=no | 
|  | 16184 | need_version=no | 
|  | 16185 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
|  | 16186 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 16187 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 16188 | hardcode_into_libs=yes | 
|  | 16189 | ;; | 
|  | 16190 |  | 
|  | 16191 | hpux9* | hpux10* | hpux11*) | 
|  | 16192 | # Give a soname corresponding to the major version so that dld.sl refuses to | 
|  | 16193 | # link against other versions. | 
|  | 16194 | version_type=sunos | 
|  | 16195 | need_lib_prefix=no | 
|  | 16196 | need_version=no | 
|  | 16197 | case "$host_cpu" in | 
|  | 16198 | ia64*) | 
|  | 16199 | shrext='.so' | 
|  | 16200 | hardcode_into_libs=yes | 
|  | 16201 | dynamic_linker="$host_os dld.so" | 
|  | 16202 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 16203 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 16204 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 16205 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 16206 | if test "X$HPUX_IA64_MODE" = X32; then | 
|  | 16207 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
|  | 16208 | else | 
|  | 16209 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
|  | 16210 | fi | 
|  | 16211 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 16212 | ;; | 
|  | 16213 | hppa*64*) | 
|  | 16214 | shrext='.sl' | 
|  | 16215 | hardcode_into_libs=yes | 
|  | 16216 | dynamic_linker="$host_os dld.sl" | 
|  | 16217 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
|  | 16218 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 16219 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 16220 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 16221 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
|  | 16222 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 16223 | ;; | 
|  | 16224 | *) | 
|  | 16225 | shrext='.sl' | 
|  | 16226 | dynamic_linker="$host_os dld.sl" | 
|  | 16227 | shlibpath_var=SHLIB_PATH | 
|  | 16228 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
|  | 16229 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 16230 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 16231 | ;; | 
|  | 16232 | esac | 
|  | 16233 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
|  | 16234 | postinstall_cmds='chmod 555 $lib' | 
|  | 16235 | ;; | 
|  | 16236 |  | 
|  | 16237 | irix5* | irix6* | nonstopux*) | 
|  | 16238 | case $host_os in | 
|  | 16239 | nonstopux*) version_type=nonstopux ;; | 
|  | 16240 | *) | 
|  | 16241 | if test "$lt_cv_prog_gnu_ld" = yes; then | 
|  | 16242 | version_type=linux | 
|  | 16243 | else | 
|  | 16244 | version_type=irix | 
|  | 16245 | fi ;; | 
|  | 16246 | esac | 
|  | 16247 | need_lib_prefix=no | 
|  | 16248 | need_version=no | 
|  | 16249 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 16250 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 16251 | case $host_os in | 
|  | 16252 | irix5* | nonstopux*) | 
|  | 16253 | libsuff= shlibsuff= | 
|  | 16254 | ;; | 
|  | 16255 | *) | 
|  | 16256 | case $LD in # libtool.m4 will add one of these switches to LD | 
|  | 16257 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
|  | 16258 | libsuff= shlibsuff= libmagic=32-bit;; | 
|  | 16259 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
|  | 16260 | libsuff=32 shlibsuff=N32 libmagic=N32;; | 
|  | 16261 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
|  | 16262 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
|  | 16263 | *) libsuff= shlibsuff= libmagic=never-match;; | 
|  | 16264 | esac | 
|  | 16265 | ;; | 
|  | 16266 | esac | 
|  | 16267 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
|  | 16268 | shlibpath_overrides_runpath=no | 
|  | 16269 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
|  | 16270 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
|  | 16271 | hardcode_into_libs=yes | 
|  | 16272 | ;; | 
|  | 16273 |  | 
|  | 16274 | # No shared lib support for Linux oldld, aout, or coff. | 
|  | 16275 | linux*oldld* | linux*aout* | linux*coff*) | 
|  | 16276 | dynamic_linker=no | 
|  | 16277 | ;; | 
|  | 16278 |  | 
|  | 16279 | # This must be Linux ELF. | 
|  | 16280 | linux*) | 
|  | 16281 | version_type=linux | 
|  | 16282 | need_lib_prefix=no | 
|  | 16283 | need_version=no | 
|  | 16284 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 16285 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 16286 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
|  | 16287 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 16288 | shlibpath_overrides_runpath=no | 
|  | 16289 | # This implies no fast_install, which is unacceptable. | 
|  | 16290 | # Some rework will be needed to allow for fast_install | 
|  | 16291 | # before this can be enabled. | 
|  | 16292 | hardcode_into_libs=yes | 
|  | 16293 |  | 
|  | 16294 | # We used to test for /lib/ld.so.1 and disable shared libraries on | 
|  | 16295 | # powerpc, because MkLinux only supported shared libraries with the | 
|  | 16296 | # GNU dynamic linker.  Since this was broken with cross compilers, | 
|  | 16297 | # most powerpc-linux boxes support dynamic linking these days and | 
|  | 16298 | # people can always --disable-shared, the test was removed, and we | 
|  | 16299 | # assume the GNU/Linux dynamic linker is in use. | 
|  | 16300 | dynamic_linker='GNU/Linux ld.so' | 
|  | 16301 | ;; | 
|  | 16302 |  | 
|  | 16303 | netbsd*) | 
|  | 16304 | version_type=sunos | 
|  | 16305 | need_lib_prefix=no | 
|  | 16306 | need_version=no | 
|  | 16307 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
|  | 16308 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 16309 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 16310 | dynamic_linker='NetBSD (a.out) ld.so' | 
|  | 16311 | else | 
|  | 16312 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' | 
|  | 16313 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 16314 | dynamic_linker='NetBSD ld.elf_so' | 
|  | 16315 | fi | 
|  | 16316 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 16317 | shlibpath_overrides_runpath=yes | 
|  | 16318 | hardcode_into_libs=yes | 
|  | 16319 | ;; | 
|  | 16320 |  | 
|  | 16321 | newsos6) | 
|  | 16322 | version_type=linux | 
|  | 16323 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 16324 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 16325 | shlibpath_overrides_runpath=yes | 
|  | 16326 | ;; | 
|  | 16327 |  | 
|  | 16328 | nto-qnx) | 
|  | 16329 | version_type=linux | 
|  | 16330 | need_lib_prefix=no | 
|  | 16331 | need_version=no | 
|  | 16332 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 16333 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 16334 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 16335 | shlibpath_overrides_runpath=yes | 
|  | 16336 | ;; | 
|  | 16337 |  | 
|  | 16338 | openbsd*) | 
|  | 16339 | version_type=sunos | 
|  | 16340 | need_lib_prefix=no | 
|  | 16341 | need_version=no | 
|  | 16342 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 16343 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 16344 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 16345 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|  | 16346 | case $host_os in | 
|  | 16347 | openbsd2.[89] | openbsd2.[89].*) | 
|  | 16348 | shlibpath_overrides_runpath=no | 
|  | 16349 | ;; | 
|  | 16350 | *) | 
|  | 16351 | shlibpath_overrides_runpath=yes | 
|  | 16352 | ;; | 
|  | 16353 | esac | 
|  | 16354 | else | 
|  | 16355 | shlibpath_overrides_runpath=yes | 
|  | 16356 | fi | 
|  | 16357 | ;; | 
|  | 16358 |  | 
|  | 16359 | os2*) | 
|  | 16360 | libname_spec='$name' | 
|  | 16361 | shrext=".dll" | 
|  | 16362 | need_lib_prefix=no | 
|  | 16363 | library_names_spec='$libname${shared_ext} $libname.a' | 
|  | 16364 | dynamic_linker='OS/2 ld.exe' | 
|  | 16365 | shlibpath_var=LIBPATH | 
|  | 16366 | ;; | 
|  | 16367 |  | 
|  | 16368 | osf3* | osf4* | osf5*) | 
|  | 16369 | version_type=osf | 
|  | 16370 | need_lib_prefix=no | 
|  | 16371 | need_version=no | 
|  | 16372 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 16373 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 16374 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 16375 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
|  | 16376 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
|  | 16377 | ;; | 
|  | 16378 |  | 
|  | 16379 | sco3.2v5*) | 
|  | 16380 | version_type=osf | 
|  | 16381 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 16382 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 16383 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 16384 | ;; | 
|  | 16385 |  | 
|  | 16386 | solaris*) | 
|  | 16387 | version_type=linux | 
|  | 16388 | need_lib_prefix=no | 
|  | 16389 | need_version=no | 
|  | 16390 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 16391 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 16392 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 16393 | shlibpath_overrides_runpath=yes | 
|  | 16394 | hardcode_into_libs=yes | 
|  | 16395 | # ldd complains unless libraries are executable | 
|  | 16396 | postinstall_cmds='chmod +x $lib' | 
|  | 16397 | ;; | 
|  | 16398 |  | 
|  | 16399 | sunos4*) | 
|  | 16400 | version_type=sunos | 
|  | 16401 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 16402 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
|  | 16403 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 16404 | shlibpath_overrides_runpath=yes | 
|  | 16405 | if test "$with_gnu_ld" = yes; then | 
|  | 16406 | need_lib_prefix=no | 
|  | 16407 | fi | 
|  | 16408 | need_version=yes | 
|  | 16409 | ;; | 
|  | 16410 |  | 
|  | 16411 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
|  | 16412 | version_type=linux | 
|  | 16413 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 16414 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 16415 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 16416 | case $host_vendor in | 
|  | 16417 | sni) | 
|  | 16418 | shlibpath_overrides_runpath=no | 
|  | 16419 | need_lib_prefix=no | 
|  | 16420 | export_dynamic_flag_spec='${wl}-Blargedynsym' | 
|  | 16421 | runpath_var=LD_RUN_PATH | 
|  | 16422 | ;; | 
|  | 16423 | siemens) | 
|  | 16424 | need_lib_prefix=no | 
|  | 16425 | ;; | 
|  | 16426 | motorola) | 
|  | 16427 | need_lib_prefix=no | 
|  | 16428 | need_version=no | 
|  | 16429 | shlibpath_overrides_runpath=no | 
|  | 16430 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
|  | 16431 | ;; | 
|  | 16432 | esac | 
|  | 16433 | ;; | 
|  | 16434 |  | 
|  | 16435 | sysv4*MP*) | 
|  | 16436 | if test -d /usr/nec ;then | 
|  | 16437 | version_type=linux | 
|  | 16438 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
|  | 16439 | soname_spec='$libname${shared_ext}.$major' | 
|  | 16440 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 16441 | fi | 
|  | 16442 | ;; | 
|  | 16443 |  | 
|  | 16444 | uts4*) | 
|  | 16445 | version_type=linux | 
|  | 16446 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 16447 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 16448 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 16449 | ;; | 
|  | 16450 |  | 
|  | 16451 | *) | 
|  | 16452 | dynamic_linker=no | 
|  | 16453 | ;; | 
|  | 16454 | esac | 
|  | 16455 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
|  | 16456 | echo "${ECHO_T}$dynamic_linker" >&6 | 
|  | 16457 | test "$dynamic_linker" = no && can_build_shared=no | 
|  | 16458 |  | 
|  | 16459 | if test "x$enable_dlopen" != xyes; then | 
|  | 16460 | enable_dlopen=unknown | 
|  | 16461 | enable_dlopen_self=unknown | 
|  | 16462 | enable_dlopen_self_static=unknown | 
|  | 16463 | else | 
|  | 16464 | lt_cv_dlopen=no | 
|  | 16465 | lt_cv_dlopen_libs= | 
|  | 16466 |  | 
|  | 16467 | case $host_os in | 
|  | 16468 | beos*) | 
|  | 16469 | lt_cv_dlopen="load_add_on" | 
|  | 16470 | lt_cv_dlopen_libs= | 
|  | 16471 | lt_cv_dlopen_self=yes | 
|  | 16472 | ;; | 
|  | 16473 |  | 
|  | 16474 | mingw* | pw32*) | 
|  | 16475 | lt_cv_dlopen="LoadLibrary" | 
|  | 16476 | lt_cv_dlopen_libs= | 
|  | 16477 | ;; | 
|  | 16478 |  | 
|  | 16479 | cygwin*) | 
|  | 16480 | lt_cv_dlopen="dlopen" | 
|  | 16481 | lt_cv_dlopen_libs= | 
|  | 16482 | ;; | 
|  | 16483 |  | 
|  | 16484 | darwin*) | 
|  | 16485 | # if libdl is installed we need to link against it | 
|  | 16486 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
|  | 16487 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
|  | 16488 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
|  | 16489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16490 | else | 
|  | 16491 | ac_check_lib_save_LIBS=$LIBS | 
|  | 16492 | LIBS="-ldl  $LIBS" | 
|  | 16493 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16494 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16495 | /* confdefs.h.  */ | 
|  | 16496 | _ACEOF | 
|  | 16497 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16498 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 16499 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16500 |  | 
|  | 16501 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 16502 | #ifdef __cplusplus | 
|  | 16503 | extern "C" | 
|  | 16504 | #endif | 
|  | 16505 | /* We use char because int might match the return type of a gcc2 | 
|  | 16506 | builtin and then its argument prototype would still apply.  */ | 
|  | 16507 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16508 | int | 
|  | 16509 | main () | 
|  | 16510 | { | 
|  | 16511 | dlopen (); | 
|  | 16512 | ; | 
|  | 16513 | return 0; | 
|  | 16514 | } | 
|  | 16515 | _ACEOF | 
|  | 16516 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 16517 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 16518 | (eval $ac_link) 2>&5 | 
|  | 16519 | ac_status=$? | 
|  | 16520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16521 | (exit $ac_status); } && | 
|  | 16522 | { ac_try='test -s conftest$ac_exeext' | 
|  | 16523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 16524 | (eval $ac_try) 2>&5 | 
|  | 16525 | ac_status=$? | 
|  | 16526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16527 | (exit $ac_status); }; }; then | 
|  | 16528 | ac_cv_lib_dl_dlopen=yes | 
|  | 16529 | else | 
|  | 16530 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16531 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16532 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16533 | ac_cv_lib_dl_dlopen=no | 
|  | 16534 | fi | 
|  | 16535 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 16536 | LIBS=$ac_check_lib_save_LIBS | 
|  | 16537 | fi | 
|  | 16538 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
|  | 16539 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
|  | 16540 | if test $ac_cv_lib_dl_dlopen = yes; then | 
|  | 16541 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
|  | 16542 | else | 
|  | 16543 |  | 
|  | 16544 | lt_cv_dlopen="dyld" | 
|  | 16545 | lt_cv_dlopen_libs= | 
|  | 16546 | lt_cv_dlopen_self=yes | 
|  | 16547 |  | 
|  | 16548 | fi | 
|  | 16549 |  | 
|  | 16550 | ;; | 
|  | 16551 |  | 
|  | 16552 | *) | 
|  | 16553 | echo "$as_me:$LINENO: checking for shl_load" >&5 | 
|  | 16554 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | 
|  | 16555 | if test "${ac_cv_func_shl_load+set}" = set; then | 
|  | 16556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16557 | else | 
|  | 16558 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16559 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16560 | /* confdefs.h.  */ | 
|  | 16561 | _ACEOF | 
|  | 16562 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16563 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 16564 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16565 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16566 | which can conflict with char shl_load (); below. | 
|  | 16567 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 16568 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 16569 | #ifdef __STDC__ | 
|  | 16570 | # include <limits.h> | 
|  | 16571 | #else | 
|  | 16572 | # include <assert.h> | 
|  | 16573 | #endif | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16574 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 16575 | #ifdef __cplusplus | 
|  | 16576 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16577 | { | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16578 | #endif | 
|  | 16579 | /* We use char because int might match the return type of a gcc2 | 
|  | 16580 | builtin and then its argument prototype would still apply.  */ | 
|  | 16581 | char shl_load (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16582 | /* The GNU C library defines this for functions which it implements | 
|  | 16583 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 16584 | something starting with __ and the normal name is an alias.  */ | 
|  | 16585 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | 
|  | 16586 | choke me | 
|  | 16587 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16588 | char (*f) () = shl_load; | 
|  | 16589 | #endif | 
|  | 16590 | #ifdef __cplusplus | 
|  | 16591 | } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16592 | #endif | 
|  | 16593 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16594 | int | 
|  | 16595 | main () | 
|  | 16596 | { | 
|  | 16597 | return f != shl_load; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16598 | ; | 
|  | 16599 | return 0; | 
|  | 16600 | } | 
|  | 16601 | _ACEOF | 
|  | 16602 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 16603 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 16604 | (eval $ac_link) 2>&5 | 
|  | 16605 | ac_status=$? | 
|  | 16606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16607 | (exit $ac_status); } && | 
|  | 16608 | { ac_try='test -s conftest$ac_exeext' | 
|  | 16609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 16610 | (eval $ac_try) 2>&5 | 
|  | 16611 | ac_status=$? | 
|  | 16612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16613 | (exit $ac_status); }; }; then | 
|  | 16614 | ac_cv_func_shl_load=yes | 
|  | 16615 | else | 
|  | 16616 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16617 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16618 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16619 | ac_cv_func_shl_load=no | 
|  | 16620 | fi | 
|  | 16621 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 16622 | fi | 
|  | 16623 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | 
|  | 16624 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | 
|  | 16625 | if test $ac_cv_func_shl_load = yes; then | 
|  | 16626 | lt_cv_dlopen="shl_load" | 
|  | 16627 | else | 
|  | 16628 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | 
|  | 16629 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | 
|  | 16630 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | 
|  | 16631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16632 | else | 
|  | 16633 | ac_check_lib_save_LIBS=$LIBS | 
|  | 16634 | LIBS="-ldld  $LIBS" | 
|  | 16635 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16636 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16637 | /* confdefs.h.  */ | 
|  | 16638 | _ACEOF | 
|  | 16639 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16640 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 16641 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16642 |  | 
|  | 16643 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 16644 | #ifdef __cplusplus | 
|  | 16645 | extern "C" | 
|  | 16646 | #endif | 
|  | 16647 | /* We use char because int might match the return type of a gcc2 | 
|  | 16648 | builtin and then its argument prototype would still apply.  */ | 
|  | 16649 | char shl_load (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16650 | int | 
|  | 16651 | main () | 
|  | 16652 | { | 
|  | 16653 | shl_load (); | 
|  | 16654 | ; | 
|  | 16655 | return 0; | 
|  | 16656 | } | 
|  | 16657 | _ACEOF | 
|  | 16658 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 16659 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 16660 | (eval $ac_link) 2>&5 | 
|  | 16661 | ac_status=$? | 
|  | 16662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16663 | (exit $ac_status); } && | 
|  | 16664 | { ac_try='test -s conftest$ac_exeext' | 
|  | 16665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 16666 | (eval $ac_try) 2>&5 | 
|  | 16667 | ac_status=$? | 
|  | 16668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16669 | (exit $ac_status); }; }; then | 
|  | 16670 | ac_cv_lib_dld_shl_load=yes | 
|  | 16671 | else | 
|  | 16672 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16673 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16674 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16675 | ac_cv_lib_dld_shl_load=no | 
|  | 16676 | fi | 
|  | 16677 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 16678 | LIBS=$ac_check_lib_save_LIBS | 
|  | 16679 | fi | 
|  | 16680 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | 
|  | 16681 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | 
|  | 16682 | if test $ac_cv_lib_dld_shl_load = yes; then | 
|  | 16683 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | 
|  | 16684 | else | 
|  | 16685 | echo "$as_me:$LINENO: checking for dlopen" >&5 | 
|  | 16686 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | 
|  | 16687 | if test "${ac_cv_func_dlopen+set}" = set; then | 
|  | 16688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16689 | else | 
|  | 16690 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16691 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16692 | /* confdefs.h.  */ | 
|  | 16693 | _ACEOF | 
|  | 16694 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16695 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 16696 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16697 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16698 | which can conflict with char dlopen (); below. | 
|  | 16699 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 16700 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 16701 | #ifdef __STDC__ | 
|  | 16702 | # include <limits.h> | 
|  | 16703 | #else | 
|  | 16704 | # include <assert.h> | 
|  | 16705 | #endif | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16706 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 16707 | #ifdef __cplusplus | 
|  | 16708 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16709 | { | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16710 | #endif | 
|  | 16711 | /* We use char because int might match the return type of a gcc2 | 
|  | 16712 | builtin and then its argument prototype would still apply.  */ | 
|  | 16713 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16714 | /* The GNU C library defines this for functions which it implements | 
|  | 16715 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 16716 | something starting with __ and the normal name is an alias.  */ | 
|  | 16717 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | 
|  | 16718 | choke me | 
|  | 16719 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16720 | char (*f) () = dlopen; | 
|  | 16721 | #endif | 
|  | 16722 | #ifdef __cplusplus | 
|  | 16723 | } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16724 | #endif | 
|  | 16725 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16726 | int | 
|  | 16727 | main () | 
|  | 16728 | { | 
|  | 16729 | return f != dlopen; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16730 | ; | 
|  | 16731 | return 0; | 
|  | 16732 | } | 
|  | 16733 | _ACEOF | 
|  | 16734 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 16735 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 16736 | (eval $ac_link) 2>&5 | 
|  | 16737 | ac_status=$? | 
|  | 16738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16739 | (exit $ac_status); } && | 
|  | 16740 | { ac_try='test -s conftest$ac_exeext' | 
|  | 16741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 16742 | (eval $ac_try) 2>&5 | 
|  | 16743 | ac_status=$? | 
|  | 16744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16745 | (exit $ac_status); }; }; then | 
|  | 16746 | ac_cv_func_dlopen=yes | 
|  | 16747 | else | 
|  | 16748 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16749 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16750 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16751 | ac_cv_func_dlopen=no | 
|  | 16752 | fi | 
|  | 16753 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 16754 | fi | 
|  | 16755 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | 
|  | 16756 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | 
|  | 16757 | if test $ac_cv_func_dlopen = yes; then | 
|  | 16758 | lt_cv_dlopen="dlopen" | 
|  | 16759 | else | 
|  | 16760 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
|  | 16761 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
|  | 16762 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
|  | 16763 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16764 | else | 
|  | 16765 | ac_check_lib_save_LIBS=$LIBS | 
|  | 16766 | LIBS="-ldl  $LIBS" | 
|  | 16767 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16768 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16769 | /* confdefs.h.  */ | 
|  | 16770 | _ACEOF | 
|  | 16771 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16772 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 16773 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16774 |  | 
|  | 16775 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 16776 | #ifdef __cplusplus | 
|  | 16777 | extern "C" | 
|  | 16778 | #endif | 
|  | 16779 | /* We use char because int might match the return type of a gcc2 | 
|  | 16780 | builtin and then its argument prototype would still apply.  */ | 
|  | 16781 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16782 | int | 
|  | 16783 | main () | 
|  | 16784 | { | 
|  | 16785 | dlopen (); | 
|  | 16786 | ; | 
|  | 16787 | return 0; | 
|  | 16788 | } | 
|  | 16789 | _ACEOF | 
|  | 16790 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 16791 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 16792 | (eval $ac_link) 2>&5 | 
|  | 16793 | ac_status=$? | 
|  | 16794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16795 | (exit $ac_status); } && | 
|  | 16796 | { ac_try='test -s conftest$ac_exeext' | 
|  | 16797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 16798 | (eval $ac_try) 2>&5 | 
|  | 16799 | ac_status=$? | 
|  | 16800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16801 | (exit $ac_status); }; }; then | 
|  | 16802 | ac_cv_lib_dl_dlopen=yes | 
|  | 16803 | else | 
|  | 16804 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16805 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16806 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16807 | ac_cv_lib_dl_dlopen=no | 
|  | 16808 | fi | 
|  | 16809 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 16810 | LIBS=$ac_check_lib_save_LIBS | 
|  | 16811 | fi | 
|  | 16812 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
|  | 16813 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
|  | 16814 | if test $ac_cv_lib_dl_dlopen = yes; then | 
|  | 16815 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
|  | 16816 | else | 
|  | 16817 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | 
|  | 16818 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | 
|  | 16819 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | 
|  | 16820 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16821 | else | 
|  | 16822 | ac_check_lib_save_LIBS=$LIBS | 
|  | 16823 | LIBS="-lsvld  $LIBS" | 
|  | 16824 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16825 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16826 | /* confdefs.h.  */ | 
|  | 16827 | _ACEOF | 
|  | 16828 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16829 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 16830 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16831 |  | 
|  | 16832 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 16833 | #ifdef __cplusplus | 
|  | 16834 | extern "C" | 
|  | 16835 | #endif | 
|  | 16836 | /* We use char because int might match the return type of a gcc2 | 
|  | 16837 | builtin and then its argument prototype would still apply.  */ | 
|  | 16838 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16839 | int | 
|  | 16840 | main () | 
|  | 16841 | { | 
|  | 16842 | dlopen (); | 
|  | 16843 | ; | 
|  | 16844 | return 0; | 
|  | 16845 | } | 
|  | 16846 | _ACEOF | 
|  | 16847 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 16848 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 16849 | (eval $ac_link) 2>&5 | 
|  | 16850 | ac_status=$? | 
|  | 16851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16852 | (exit $ac_status); } && | 
|  | 16853 | { ac_try='test -s conftest$ac_exeext' | 
|  | 16854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 16855 | (eval $ac_try) 2>&5 | 
|  | 16856 | ac_status=$? | 
|  | 16857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16858 | (exit $ac_status); }; }; then | 
|  | 16859 | ac_cv_lib_svld_dlopen=yes | 
|  | 16860 | else | 
|  | 16861 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16862 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16863 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16864 | ac_cv_lib_svld_dlopen=no | 
|  | 16865 | fi | 
|  | 16866 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 16867 | LIBS=$ac_check_lib_save_LIBS | 
|  | 16868 | fi | 
|  | 16869 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | 
|  | 16870 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | 
|  | 16871 | if test $ac_cv_lib_svld_dlopen = yes; then | 
|  | 16872 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | 
|  | 16873 | else | 
|  | 16874 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | 
|  | 16875 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | 
|  | 16876 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | 
|  | 16877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16878 | else | 
|  | 16879 | ac_check_lib_save_LIBS=$LIBS | 
|  | 16880 | LIBS="-ldld  $LIBS" | 
|  | 16881 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16882 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16883 | /* confdefs.h.  */ | 
|  | 16884 | _ACEOF | 
|  | 16885 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16886 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 16887 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16888 |  | 
|  | 16889 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 16890 | #ifdef __cplusplus | 
|  | 16891 | extern "C" | 
|  | 16892 | #endif | 
|  | 16893 | /* We use char because int might match the return type of a gcc2 | 
|  | 16894 | builtin and then its argument prototype would still apply.  */ | 
|  | 16895 | char dld_link (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16896 | int | 
|  | 16897 | main () | 
|  | 16898 | { | 
|  | 16899 | dld_link (); | 
|  | 16900 | ; | 
|  | 16901 | return 0; | 
|  | 16902 | } | 
|  | 16903 | _ACEOF | 
|  | 16904 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 16905 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 16906 | (eval $ac_link) 2>&5 | 
|  | 16907 | ac_status=$? | 
|  | 16908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16909 | (exit $ac_status); } && | 
|  | 16910 | { ac_try='test -s conftest$ac_exeext' | 
|  | 16911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 16912 | (eval $ac_try) 2>&5 | 
|  | 16913 | ac_status=$? | 
|  | 16914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16915 | (exit $ac_status); }; }; then | 
|  | 16916 | ac_cv_lib_dld_dld_link=yes | 
|  | 16917 | else | 
|  | 16918 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16919 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16920 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16921 | ac_cv_lib_dld_dld_link=no | 
|  | 16922 | fi | 
|  | 16923 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 16924 | LIBS=$ac_check_lib_save_LIBS | 
|  | 16925 | fi | 
|  | 16926 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | 
|  | 16927 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | 
|  | 16928 | if test $ac_cv_lib_dld_dld_link = yes; then | 
|  | 16929 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | 
|  | 16930 | fi | 
|  | 16931 |  | 
|  | 16932 |  | 
|  | 16933 | fi | 
|  | 16934 |  | 
|  | 16935 |  | 
|  | 16936 | fi | 
|  | 16937 |  | 
|  | 16938 |  | 
|  | 16939 | fi | 
|  | 16940 |  | 
|  | 16941 |  | 
|  | 16942 | fi | 
|  | 16943 |  | 
|  | 16944 |  | 
|  | 16945 | fi | 
|  | 16946 |  | 
|  | 16947 | ;; | 
|  | 16948 | esac | 
|  | 16949 |  | 
|  | 16950 | if test "x$lt_cv_dlopen" != xno; then | 
|  | 16951 | enable_dlopen=yes | 
|  | 16952 | else | 
|  | 16953 | enable_dlopen=no | 
|  | 16954 | fi | 
|  | 16955 |  | 
|  | 16956 | case $lt_cv_dlopen in | 
|  | 16957 | dlopen) | 
|  | 16958 | save_CPPFLAGS="$CPPFLAGS" | 
|  | 16959 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | 
|  | 16960 |  | 
|  | 16961 | save_LDFLAGS="$LDFLAGS" | 
|  | 16962 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | 
|  | 16963 |  | 
|  | 16964 | save_LIBS="$LIBS" | 
|  | 16965 | LIBS="$lt_cv_dlopen_libs $LIBS" | 
|  | 16966 |  | 
|  | 16967 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | 
|  | 16968 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | 
|  | 16969 | if test "${lt_cv_dlopen_self+set}" = set; then | 
|  | 16970 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16971 | else | 
|  | 16972 | if test "$cross_compiling" = yes; then : | 
|  | 16973 | lt_cv_dlopen_self=cross | 
|  | 16974 | else | 
|  | 16975 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
|  | 16976 | lt_status=$lt_dlunknown | 
|  | 16977 | cat > conftest.$ac_ext <<EOF | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 16978 | #line 16978 "configure" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16979 | #include "confdefs.h" | 
|  | 16980 |  | 
|  | 16981 | #if HAVE_DLFCN_H | 
|  | 16982 | #include <dlfcn.h> | 
|  | 16983 | #endif | 
|  | 16984 |  | 
|  | 16985 | #include <stdio.h> | 
|  | 16986 |  | 
|  | 16987 | #ifdef RTLD_GLOBAL | 
|  | 16988 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
|  | 16989 | #else | 
|  | 16990 | #  ifdef DL_GLOBAL | 
|  | 16991 | #    define LT_DLGLOBAL		DL_GLOBAL | 
|  | 16992 | #  else | 
|  | 16993 | #    define LT_DLGLOBAL		0 | 
|  | 16994 | #  endif | 
|  | 16995 | #endif | 
|  | 16996 |  | 
|  | 16997 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
|  | 16998 | find out it does not work in some platform. */ | 
|  | 16999 | #ifndef LT_DLLAZY_OR_NOW | 
|  | 17000 | #  ifdef RTLD_LAZY | 
|  | 17001 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
|  | 17002 | #  else | 
|  | 17003 | #    ifdef DL_LAZY | 
|  | 17004 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
|  | 17005 | #    else | 
|  | 17006 | #      ifdef RTLD_NOW | 
|  | 17007 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
|  | 17008 | #      else | 
|  | 17009 | #        ifdef DL_NOW | 
|  | 17010 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
|  | 17011 | #        else | 
|  | 17012 | #          define LT_DLLAZY_OR_NOW	0 | 
|  | 17013 | #        endif | 
|  | 17014 | #      endif | 
|  | 17015 | #    endif | 
|  | 17016 | #  endif | 
|  | 17017 | #endif | 
|  | 17018 |  | 
|  | 17019 | #ifdef __cplusplus | 
|  | 17020 | extern "C" void exit (int); | 
|  | 17021 | #endif | 
|  | 17022 |  | 
|  | 17023 | void fnord() { int i=42;} | 
|  | 17024 | int main () | 
|  | 17025 | { | 
|  | 17026 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
|  | 17027 | int status = $lt_dlunknown; | 
|  | 17028 |  | 
|  | 17029 | if (self) | 
|  | 17030 | { | 
|  | 17031 | if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
|  | 17032 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
|  | 17033 | /* dlclose (self); */ | 
|  | 17034 | } | 
|  | 17035 |  | 
|  | 17036 | exit (status); | 
|  | 17037 | } | 
|  | 17038 | EOF | 
|  | 17039 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 17040 | (eval $ac_link) 2>&5 | 
|  | 17041 | ac_status=$? | 
|  | 17042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17043 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
|  | 17044 | (./conftest; exit; ) 2>/dev/null | 
|  | 17045 | lt_status=$? | 
|  | 17046 | case x$lt_status in | 
|  | 17047 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | 
|  | 17048 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | 
|  | 17049 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | 
|  | 17050 | esac | 
|  | 17051 | else : | 
|  | 17052 | # compilation failed | 
|  | 17053 | lt_cv_dlopen_self=no | 
|  | 17054 | fi | 
|  | 17055 | fi | 
|  | 17056 | rm -fr conftest* | 
|  | 17057 |  | 
|  | 17058 |  | 
|  | 17059 | fi | 
|  | 17060 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | 
|  | 17061 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | 
|  | 17062 |  | 
|  | 17063 | if test "x$lt_cv_dlopen_self" = xyes; then | 
|  | 17064 | LDFLAGS="$LDFLAGS $link_static_flag" | 
|  | 17065 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | 
|  | 17066 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | 
|  | 17067 | if test "${lt_cv_dlopen_self_static+set}" = set; then | 
|  | 17068 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 17069 | else | 
|  | 17070 | if test "$cross_compiling" = yes; then : | 
|  | 17071 | lt_cv_dlopen_self_static=cross | 
|  | 17072 | else | 
|  | 17073 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
|  | 17074 | lt_status=$lt_dlunknown | 
|  | 17075 | cat > conftest.$ac_ext <<EOF | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 17076 | #line 17076 "configure" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17077 | #include "confdefs.h" | 
|  | 17078 |  | 
|  | 17079 | #if HAVE_DLFCN_H | 
|  | 17080 | #include <dlfcn.h> | 
|  | 17081 | #endif | 
|  | 17082 |  | 
|  | 17083 | #include <stdio.h> | 
|  | 17084 |  | 
|  | 17085 | #ifdef RTLD_GLOBAL | 
|  | 17086 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
|  | 17087 | #else | 
|  | 17088 | #  ifdef DL_GLOBAL | 
|  | 17089 | #    define LT_DLGLOBAL		DL_GLOBAL | 
|  | 17090 | #  else | 
|  | 17091 | #    define LT_DLGLOBAL		0 | 
|  | 17092 | #  endif | 
|  | 17093 | #endif | 
|  | 17094 |  | 
|  | 17095 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
|  | 17096 | find out it does not work in some platform. */ | 
|  | 17097 | #ifndef LT_DLLAZY_OR_NOW | 
|  | 17098 | #  ifdef RTLD_LAZY | 
|  | 17099 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
|  | 17100 | #  else | 
|  | 17101 | #    ifdef DL_LAZY | 
|  | 17102 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
|  | 17103 | #    else | 
|  | 17104 | #      ifdef RTLD_NOW | 
|  | 17105 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
|  | 17106 | #      else | 
|  | 17107 | #        ifdef DL_NOW | 
|  | 17108 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
|  | 17109 | #        else | 
|  | 17110 | #          define LT_DLLAZY_OR_NOW	0 | 
|  | 17111 | #        endif | 
|  | 17112 | #      endif | 
|  | 17113 | #    endif | 
|  | 17114 | #  endif | 
|  | 17115 | #endif | 
|  | 17116 |  | 
|  | 17117 | #ifdef __cplusplus | 
|  | 17118 | extern "C" void exit (int); | 
|  | 17119 | #endif | 
|  | 17120 |  | 
|  | 17121 | void fnord() { int i=42;} | 
|  | 17122 | int main () | 
|  | 17123 | { | 
|  | 17124 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
|  | 17125 | int status = $lt_dlunknown; | 
|  | 17126 |  | 
|  | 17127 | if (self) | 
|  | 17128 | { | 
|  | 17129 | if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
|  | 17130 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
|  | 17131 | /* dlclose (self); */ | 
|  | 17132 | } | 
|  | 17133 |  | 
|  | 17134 | exit (status); | 
|  | 17135 | } | 
|  | 17136 | EOF | 
|  | 17137 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 17138 | (eval $ac_link) 2>&5 | 
|  | 17139 | ac_status=$? | 
|  | 17140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17141 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
|  | 17142 | (./conftest; exit; ) 2>/dev/null | 
|  | 17143 | lt_status=$? | 
|  | 17144 | case x$lt_status in | 
|  | 17145 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | 
|  | 17146 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | 
|  | 17147 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | 
|  | 17148 | esac | 
|  | 17149 | else : | 
|  | 17150 | # compilation failed | 
|  | 17151 | lt_cv_dlopen_self_static=no | 
|  | 17152 | fi | 
|  | 17153 | fi | 
|  | 17154 | rm -fr conftest* | 
|  | 17155 |  | 
|  | 17156 |  | 
|  | 17157 | fi | 
|  | 17158 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | 
|  | 17159 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | 
|  | 17160 | fi | 
|  | 17161 |  | 
|  | 17162 | CPPFLAGS="$save_CPPFLAGS" | 
|  | 17163 | LDFLAGS="$save_LDFLAGS" | 
|  | 17164 | LIBS="$save_LIBS" | 
|  | 17165 | ;; | 
|  | 17166 | esac | 
|  | 17167 |  | 
|  | 17168 | case $lt_cv_dlopen_self in | 
|  | 17169 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | 
|  | 17170 | *) enable_dlopen_self=unknown ;; | 
|  | 17171 | esac | 
|  | 17172 |  | 
|  | 17173 | case $lt_cv_dlopen_self_static in | 
|  | 17174 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | 
|  | 17175 | *) enable_dlopen_self_static=unknown ;; | 
|  | 17176 | esac | 
|  | 17177 | fi | 
|  | 17178 |  | 
|  | 17179 |  | 
|  | 17180 | # The else clause should only fire when bootstrapping the | 
|  | 17181 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
|  | 17182 | # with your package, and you will get complaints that there are | 
|  | 17183 | # no rules to generate ltmain.sh. | 
|  | 17184 | if test -f "$ltmain"; then | 
|  | 17185 | # See if we are running on zsh, and set the options which allow our commands through | 
|  | 17186 | # without removal of \ escapes. | 
|  | 17187 | if test -n "${ZSH_VERSION+set}" ; then | 
|  | 17188 | setopt NO_GLOB_SUBST | 
|  | 17189 | fi | 
|  | 17190 | # Now quote all the things that may contain metacharacters while being | 
|  | 17191 | # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
|  | 17192 | # variables and quote the copies for generation of the libtool script. | 
|  | 17193 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ | 
|  | 17194 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
|  | 17195 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
|  | 17196 | deplibs_check_method reload_flag reload_cmds need_locks \ | 
|  | 17197 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
|  | 17198 | lt_cv_sys_global_symbol_to_c_name_address \ | 
|  | 17199 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
|  | 17200 | old_postinstall_cmds old_postuninstall_cmds \ | 
|  | 17201 | compiler_GCJ \ | 
|  | 17202 | CC_GCJ \ | 
|  | 17203 | LD_GCJ \ | 
|  | 17204 | lt_prog_compiler_wl_GCJ \ | 
|  | 17205 | lt_prog_compiler_pic_GCJ \ | 
|  | 17206 | lt_prog_compiler_static_GCJ \ | 
|  | 17207 | lt_prog_compiler_no_builtin_flag_GCJ \ | 
|  | 17208 | export_dynamic_flag_spec_GCJ \ | 
|  | 17209 | thread_safe_flag_spec_GCJ \ | 
|  | 17210 | whole_archive_flag_spec_GCJ \ | 
|  | 17211 | enable_shared_with_static_runtimes_GCJ \ | 
|  | 17212 | old_archive_cmds_GCJ \ | 
|  | 17213 | old_archive_from_new_cmds_GCJ \ | 
|  | 17214 | predep_objects_GCJ \ | 
|  | 17215 | postdep_objects_GCJ \ | 
|  | 17216 | predeps_GCJ \ | 
|  | 17217 | postdeps_GCJ \ | 
|  | 17218 | compiler_lib_search_path_GCJ \ | 
|  | 17219 | archive_cmds_GCJ \ | 
|  | 17220 | archive_expsym_cmds_GCJ \ | 
|  | 17221 | postinstall_cmds_GCJ \ | 
|  | 17222 | postuninstall_cmds_GCJ \ | 
|  | 17223 | old_archive_from_expsyms_cmds_GCJ \ | 
|  | 17224 | allow_undefined_flag_GCJ \ | 
|  | 17225 | no_undefined_flag_GCJ \ | 
|  | 17226 | export_symbols_cmds_GCJ \ | 
|  | 17227 | hardcode_libdir_flag_spec_GCJ \ | 
|  | 17228 | hardcode_libdir_flag_spec_ld_GCJ \ | 
|  | 17229 | hardcode_libdir_separator_GCJ \ | 
|  | 17230 | hardcode_automatic_GCJ \ | 
|  | 17231 | module_cmds_GCJ \ | 
|  | 17232 | module_expsym_cmds_GCJ \ | 
|  | 17233 | lt_cv_prog_compiler_c_o_GCJ \ | 
|  | 17234 | exclude_expsyms_GCJ \ | 
|  | 17235 | include_expsyms_GCJ; do | 
|  | 17236 |  | 
|  | 17237 | case $var in | 
|  | 17238 | old_archive_cmds_GCJ | \ | 
|  | 17239 | old_archive_from_new_cmds_GCJ | \ | 
|  | 17240 | archive_cmds_GCJ | \ | 
|  | 17241 | archive_expsym_cmds_GCJ | \ | 
|  | 17242 | module_cmds_GCJ | \ | 
|  | 17243 | module_expsym_cmds_GCJ | \ | 
|  | 17244 | old_archive_from_expsyms_cmds_GCJ | \ | 
|  | 17245 | export_symbols_cmds_GCJ | \ | 
|  | 17246 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
|  | 17247 | postinstall_cmds | postuninstall_cmds | \ | 
|  | 17248 | old_postinstall_cmds | old_postuninstall_cmds | \ | 
|  | 17249 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
|  | 17250 | # Double-quote double-evaled strings. | 
|  | 17251 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | 
|  | 17252 | ;; | 
|  | 17253 | *) | 
|  | 17254 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
|  | 17255 | ;; | 
|  | 17256 | esac | 
|  | 17257 | done | 
|  | 17258 |  | 
|  | 17259 | case $lt_echo in | 
|  | 17260 | *'\$0 --fallback-echo"') | 
|  | 17261 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
|  | 17262 | ;; | 
|  | 17263 | esac | 
|  | 17264 |  | 
|  | 17265 | cfgfile="$ofile" | 
|  | 17266 |  | 
|  | 17267 | cat <<__EOF__ >> "$cfgfile" | 
|  | 17268 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | 
|  | 17269 |  | 
|  | 17270 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
|  | 17271 |  | 
|  | 17272 | # Shell to use when invoking shell scripts. | 
|  | 17273 | SHELL=$lt_SHELL | 
|  | 17274 |  | 
|  | 17275 | # Whether or not to build shared libraries. | 
|  | 17276 | build_libtool_libs=$enable_shared | 
|  | 17277 |  | 
|  | 17278 | # Whether or not to build static libraries. | 
|  | 17279 | build_old_libs=$enable_static | 
|  | 17280 |  | 
|  | 17281 | # Whether or not to add -lc for building shared libraries. | 
|  | 17282 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ | 
|  | 17283 |  | 
|  | 17284 | # Whether or not to disallow shared libs when runtime libs are static | 
|  | 17285 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ | 
|  | 17286 |  | 
|  | 17287 | # Whether or not to optimize for fast installation. | 
|  | 17288 | fast_install=$enable_fast_install | 
|  | 17289 |  | 
|  | 17290 | # The host system. | 
|  | 17291 | host_alias=$host_alias | 
|  | 17292 | host=$host | 
|  | 17293 |  | 
|  | 17294 | # An echo program that does not interpret backslashes. | 
|  | 17295 | echo=$lt_echo | 
|  | 17296 |  | 
|  | 17297 | # The archiver. | 
|  | 17298 | AR=$lt_AR | 
|  | 17299 | AR_FLAGS=$lt_AR_FLAGS | 
|  | 17300 |  | 
|  | 17301 | # A C compiler. | 
|  | 17302 | LTCC=$lt_LTCC | 
|  | 17303 |  | 
|  | 17304 | # A language-specific compiler. | 
|  | 17305 | CC=$lt_compiler_GCJ | 
|  | 17306 |  | 
|  | 17307 | # Is the compiler the GNU C compiler? | 
|  | 17308 | with_gcc=$GCC_GCJ | 
|  | 17309 |  | 
|  | 17310 | # An ERE matcher. | 
|  | 17311 | EGREP=$lt_EGREP | 
|  | 17312 |  | 
|  | 17313 | # The linker used to build libraries. | 
|  | 17314 | LD=$lt_LD_GCJ | 
|  | 17315 |  | 
|  | 17316 | # Whether we need hard or soft links. | 
|  | 17317 | LN_S=$lt_LN_S | 
|  | 17318 |  | 
|  | 17319 | # A BSD-compatible nm program. | 
|  | 17320 | NM=$lt_NM | 
|  | 17321 |  | 
|  | 17322 | # A symbol stripping program | 
|  | 17323 | STRIP=$STRIP | 
|  | 17324 |  | 
|  | 17325 | # Used to examine libraries when file_magic_cmd begins "file" | 
|  | 17326 | MAGIC_CMD=$MAGIC_CMD | 
|  | 17327 |  | 
|  | 17328 | # Used on cygwin: DLL creation program. | 
|  | 17329 | DLLTOOL="$DLLTOOL" | 
|  | 17330 |  | 
|  | 17331 | # Used on cygwin: object dumper. | 
|  | 17332 | OBJDUMP="$OBJDUMP" | 
|  | 17333 |  | 
|  | 17334 | # Used on cygwin: assembler. | 
|  | 17335 | AS="$AS" | 
|  | 17336 |  | 
|  | 17337 | # The name of the directory that contains temporary libtool files. | 
|  | 17338 | objdir=$objdir | 
|  | 17339 |  | 
|  | 17340 | # How to create reloadable object files. | 
|  | 17341 | reload_flag=$lt_reload_flag | 
|  | 17342 | reload_cmds=$lt_reload_cmds | 
|  | 17343 |  | 
|  | 17344 | # How to pass a linker flag through the compiler. | 
|  | 17345 | wl=$lt_lt_prog_compiler_wl_GCJ | 
|  | 17346 |  | 
|  | 17347 | # Object file suffix (normally "o"). | 
|  | 17348 | objext="$ac_objext" | 
|  | 17349 |  | 
|  | 17350 | # Old archive suffix (normally "a"). | 
|  | 17351 | libext="$libext" | 
|  | 17352 |  | 
|  | 17353 | # Shared library suffix (normally ".so"). | 
|  | 17354 | shrext='$shrext' | 
|  | 17355 |  | 
|  | 17356 | # Executable file suffix (normally ""). | 
|  | 17357 | exeext="$exeext" | 
|  | 17358 |  | 
|  | 17359 | # Additional compiler flags for building library objects. | 
|  | 17360 | pic_flag=$lt_lt_prog_compiler_pic_GCJ | 
|  | 17361 | pic_mode=$pic_mode | 
|  | 17362 |  | 
|  | 17363 | # What is the maximum length of a command? | 
|  | 17364 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
|  | 17365 |  | 
|  | 17366 | # Does compiler simultaneously support -c and -o options? | 
|  | 17367 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ | 
|  | 17368 |  | 
|  | 17369 | # Must we lock files when doing compilation ? | 
|  | 17370 | need_locks=$lt_need_locks | 
|  | 17371 |  | 
|  | 17372 | # Do we need the lib prefix for modules? | 
|  | 17373 | need_lib_prefix=$need_lib_prefix | 
|  | 17374 |  | 
|  | 17375 | # Do we need a version for libraries? | 
|  | 17376 | need_version=$need_version | 
|  | 17377 |  | 
|  | 17378 | # Whether dlopen is supported. | 
|  | 17379 | dlopen_support=$enable_dlopen | 
|  | 17380 |  | 
|  | 17381 | # Whether dlopen of programs is supported. | 
|  | 17382 | dlopen_self=$enable_dlopen_self | 
|  | 17383 |  | 
|  | 17384 | # Whether dlopen of statically linked programs is supported. | 
|  | 17385 | dlopen_self_static=$enable_dlopen_self_static | 
|  | 17386 |  | 
|  | 17387 | # Compiler flag to prevent dynamic linking. | 
|  | 17388 | link_static_flag=$lt_lt_prog_compiler_static_GCJ | 
|  | 17389 |  | 
|  | 17390 | # Compiler flag to turn off builtin functions. | 
|  | 17391 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ | 
|  | 17392 |  | 
|  | 17393 | # Compiler flag to allow reflexive dlopens. | 
|  | 17394 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ | 
|  | 17395 |  | 
|  | 17396 | # Compiler flag to generate shared objects directly from archives. | 
|  | 17397 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ | 
|  | 17398 |  | 
|  | 17399 | # Compiler flag to generate thread-safe objects. | 
|  | 17400 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ | 
|  | 17401 |  | 
|  | 17402 | # Library versioning type. | 
|  | 17403 | version_type=$version_type | 
|  | 17404 |  | 
|  | 17405 | # Format of library name prefix. | 
|  | 17406 | libname_spec=$lt_libname_spec | 
|  | 17407 |  | 
|  | 17408 | # List of archive names.  First name is the real one, the rest are links. | 
|  | 17409 | # The last name is the one that the linker finds with -lNAME. | 
|  | 17410 | library_names_spec=$lt_library_names_spec | 
|  | 17411 |  | 
|  | 17412 | # The coded name of the library, if different from the real name. | 
|  | 17413 | soname_spec=$lt_soname_spec | 
|  | 17414 |  | 
|  | 17415 | # Commands used to build and install an old-style archive. | 
|  | 17416 | RANLIB=$lt_RANLIB | 
|  | 17417 | old_archive_cmds=$lt_old_archive_cmds_GCJ | 
|  | 17418 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
|  | 17419 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
|  | 17420 |  | 
|  | 17421 | # Create an old-style archive from a shared archive. | 
|  | 17422 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ | 
|  | 17423 |  | 
|  | 17424 | # Create a temporary old-style archive to link instead of a shared archive. | 
|  | 17425 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ | 
|  | 17426 |  | 
|  | 17427 | # Commands used to build and install a shared archive. | 
|  | 17428 | archive_cmds=$lt_archive_cmds_GCJ | 
|  | 17429 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ | 
|  | 17430 | postinstall_cmds=$lt_postinstall_cmds | 
|  | 17431 | postuninstall_cmds=$lt_postuninstall_cmds | 
|  | 17432 |  | 
|  | 17433 | # Commands used to build a loadable module (assumed same as above if empty) | 
|  | 17434 | module_cmds=$lt_module_cmds_GCJ | 
|  | 17435 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ | 
|  | 17436 |  | 
|  | 17437 | # Commands to strip libraries. | 
|  | 17438 | old_striplib=$lt_old_striplib | 
|  | 17439 | striplib=$lt_striplib | 
|  | 17440 |  | 
|  | 17441 | # Dependencies to place before the objects being linked to create a | 
|  | 17442 | # shared library. | 
|  | 17443 | predep_objects=$lt_predep_objects_GCJ | 
|  | 17444 |  | 
|  | 17445 | # Dependencies to place after the objects being linked to create a | 
|  | 17446 | # shared library. | 
|  | 17447 | postdep_objects=$lt_postdep_objects_GCJ | 
|  | 17448 |  | 
|  | 17449 | # Dependencies to place before the objects being linked to create a | 
|  | 17450 | # shared library. | 
|  | 17451 | predeps=$lt_predeps_GCJ | 
|  | 17452 |  | 
|  | 17453 | # Dependencies to place after the objects being linked to create a | 
|  | 17454 | # shared library. | 
|  | 17455 | postdeps=$lt_postdeps_GCJ | 
|  | 17456 |  | 
|  | 17457 | # The library search path used internally by the compiler when linking | 
|  | 17458 | # a shared library. | 
|  | 17459 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ | 
|  | 17460 |  | 
|  | 17461 | # Method to check whether dependent libraries are shared objects. | 
|  | 17462 | deplibs_check_method=$lt_deplibs_check_method | 
|  | 17463 |  | 
|  | 17464 | # Command to use when deplibs_check_method == file_magic. | 
|  | 17465 | file_magic_cmd=$lt_file_magic_cmd | 
|  | 17466 |  | 
|  | 17467 | # Flag that allows shared libraries with undefined symbols to be built. | 
|  | 17468 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ | 
|  | 17469 |  | 
|  | 17470 | # Flag that forces no undefined symbols. | 
|  | 17471 | no_undefined_flag=$lt_no_undefined_flag_GCJ | 
|  | 17472 |  | 
|  | 17473 | # Commands used to finish a libtool library installation in a directory. | 
|  | 17474 | finish_cmds=$lt_finish_cmds | 
|  | 17475 |  | 
|  | 17476 | # Same as above, but a single script fragment to be evaled but not shown. | 
|  | 17477 | finish_eval=$lt_finish_eval | 
|  | 17478 |  | 
|  | 17479 | # Take the output of nm and produce a listing of raw symbols and C names. | 
|  | 17480 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
|  | 17481 |  | 
|  | 17482 | # Transform the output of nm in a proper C declaration | 
|  | 17483 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
|  | 17484 |  | 
|  | 17485 | # Transform the output of nm in a C name address pair | 
|  | 17486 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
|  | 17487 |  | 
|  | 17488 | # This is the shared library runtime path variable. | 
|  | 17489 | runpath_var=$runpath_var | 
|  | 17490 |  | 
|  | 17491 | # This is the shared library path variable. | 
|  | 17492 | shlibpath_var=$shlibpath_var | 
|  | 17493 |  | 
|  | 17494 | # Is shlibpath searched before the hard-coded library search path? | 
|  | 17495 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
|  | 17496 |  | 
|  | 17497 | # How to hardcode a shared library path into an executable. | 
|  | 17498 | hardcode_action=$hardcode_action_GCJ | 
|  | 17499 |  | 
|  | 17500 | # Whether we should hardcode library paths into libraries. | 
|  | 17501 | hardcode_into_libs=$hardcode_into_libs | 
|  | 17502 |  | 
|  | 17503 | # Flag to hardcode \$libdir into a binary during linking. | 
|  | 17504 | # This must work even if \$libdir does not exist. | 
|  | 17505 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ | 
|  | 17506 |  | 
|  | 17507 | # If ld is used when linking, flag to hardcode \$libdir into | 
|  | 17508 | # a binary during linking. This must work even if \$libdir does | 
|  | 17509 | # not exist. | 
|  | 17510 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ | 
|  | 17511 |  | 
|  | 17512 | # Whether we need a single -rpath flag with a separated argument. | 
|  | 17513 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ | 
|  | 17514 |  | 
|  | 17515 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
|  | 17516 | # resulting binary. | 
|  | 17517 | hardcode_direct=$hardcode_direct_GCJ | 
|  | 17518 |  | 
|  | 17519 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
|  | 17520 | # resulting binary. | 
|  | 17521 | hardcode_minus_L=$hardcode_minus_L_GCJ | 
|  | 17522 |  | 
|  | 17523 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
|  | 17524 | # the resulting binary. | 
|  | 17525 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ | 
|  | 17526 |  | 
|  | 17527 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
|  | 17528 | # and all subsequent libraries and executables linked against it. | 
|  | 17529 | hardcode_automatic=$hardcode_automatic_GCJ | 
|  | 17530 |  | 
|  | 17531 | # Variables whose values should be saved in libtool wrapper scripts and | 
|  | 17532 | # restored at relink time. | 
|  | 17533 | variables_saved_for_relink="$variables_saved_for_relink" | 
|  | 17534 |  | 
|  | 17535 | # Whether libtool must link a program against all its dependency libraries. | 
|  | 17536 | link_all_deplibs=$link_all_deplibs_GCJ | 
|  | 17537 |  | 
|  | 17538 | # Compile-time system search path for libraries | 
|  | 17539 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
|  | 17540 |  | 
|  | 17541 | # Run-time system search path for libraries | 
|  | 17542 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
|  | 17543 |  | 
|  | 17544 | # Fix the shell variable \$srcfile for the compiler. | 
|  | 17545 | fix_srcfile_path="$fix_srcfile_path_GCJ" | 
|  | 17546 |  | 
|  | 17547 | # Set to yes if exported symbols are required. | 
|  | 17548 | always_export_symbols=$always_export_symbols_GCJ | 
|  | 17549 |  | 
|  | 17550 | # The commands to list exported symbols. | 
|  | 17551 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ | 
|  | 17552 |  | 
|  | 17553 | # The commands to extract the exported symbol list from a shared archive. | 
|  | 17554 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
|  | 17555 |  | 
|  | 17556 | # Symbols that should not be listed in the preloaded symbols. | 
|  | 17557 | exclude_expsyms=$lt_exclude_expsyms_GCJ | 
|  | 17558 |  | 
|  | 17559 | # Symbols that must always be exported. | 
|  | 17560 | include_expsyms=$lt_include_expsyms_GCJ | 
|  | 17561 |  | 
|  | 17562 | # ### END LIBTOOL TAG CONFIG: $tagname | 
|  | 17563 |  | 
|  | 17564 | __EOF__ | 
|  | 17565 |  | 
|  | 17566 |  | 
|  | 17567 | else | 
|  | 17568 | # If there is no Makefile yet, we rely on a make rule to execute | 
|  | 17569 | # `config.status --recheck' to rerun these tests and create the | 
|  | 17570 | # libtool script then. | 
|  | 17571 | test -f Makefile && make "$ltmain" | 
|  | 17572 | fi | 
|  | 17573 |  | 
|  | 17574 |  | 
|  | 17575 | ac_ext=c | 
|  | 17576 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 17577 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 17578 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 17579 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 17580 |  | 
|  | 17581 | CC="$lt_save_CC" | 
|  | 17582 |  | 
|  | 17583 | else | 
|  | 17584 | tagname="" | 
|  | 17585 | fi | 
|  | 17586 | ;; | 
|  | 17587 |  | 
|  | 17588 | RC) | 
|  | 17589 |  | 
|  | 17590 |  | 
|  | 17591 |  | 
|  | 17592 | # Source file extension for RC test sources. | 
|  | 17593 | ac_ext=rc | 
|  | 17594 |  | 
|  | 17595 | # Object file extension for compiled RC test sources. | 
|  | 17596 | objext=o | 
|  | 17597 | objext_RC=$objext | 
|  | 17598 |  | 
|  | 17599 | # Code to be used in simple compile tests | 
|  | 17600 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' | 
|  | 17601 |  | 
|  | 17602 | # Code to be used in simple link tests | 
|  | 17603 | lt_simple_link_test_code="$lt_simple_compile_test_code" | 
|  | 17604 |  | 
|  | 17605 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
|  | 17606 |  | 
|  | 17607 | # If no C compiler was specified, use CC. | 
|  | 17608 | LTCC=${LTCC-"$CC"} | 
|  | 17609 |  | 
|  | 17610 | # Allow CC to be a program name with arguments. | 
|  | 17611 | compiler=$CC | 
|  | 17612 |  | 
|  | 17613 |  | 
|  | 17614 | # Allow CC to be a program name with arguments. | 
|  | 17615 | lt_save_CC="$CC" | 
|  | 17616 | CC=${RC-"windres"} | 
|  | 17617 | compiler=$CC | 
|  | 17618 | compiler_RC=$CC | 
|  | 17619 | lt_cv_prog_compiler_c_o_RC=yes | 
|  | 17620 |  | 
|  | 17621 | # The else clause should only fire when bootstrapping the | 
|  | 17622 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
|  | 17623 | # with your package, and you will get complaints that there are | 
|  | 17624 | # no rules to generate ltmain.sh. | 
|  | 17625 | if test -f "$ltmain"; then | 
|  | 17626 | # See if we are running on zsh, and set the options which allow our commands through | 
|  | 17627 | # without removal of \ escapes. | 
|  | 17628 | if test -n "${ZSH_VERSION+set}" ; then | 
|  | 17629 | setopt NO_GLOB_SUBST | 
|  | 17630 | fi | 
|  | 17631 | # Now quote all the things that may contain metacharacters while being | 
|  | 17632 | # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
|  | 17633 | # variables and quote the copies for generation of the libtool script. | 
|  | 17634 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ | 
|  | 17635 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
|  | 17636 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
|  | 17637 | deplibs_check_method reload_flag reload_cmds need_locks \ | 
|  | 17638 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
|  | 17639 | lt_cv_sys_global_symbol_to_c_name_address \ | 
|  | 17640 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
|  | 17641 | old_postinstall_cmds old_postuninstall_cmds \ | 
|  | 17642 | compiler_RC \ | 
|  | 17643 | CC_RC \ | 
|  | 17644 | LD_RC \ | 
|  | 17645 | lt_prog_compiler_wl_RC \ | 
|  | 17646 | lt_prog_compiler_pic_RC \ | 
|  | 17647 | lt_prog_compiler_static_RC \ | 
|  | 17648 | lt_prog_compiler_no_builtin_flag_RC \ | 
|  | 17649 | export_dynamic_flag_spec_RC \ | 
|  | 17650 | thread_safe_flag_spec_RC \ | 
|  | 17651 | whole_archive_flag_spec_RC \ | 
|  | 17652 | enable_shared_with_static_runtimes_RC \ | 
|  | 17653 | old_archive_cmds_RC \ | 
|  | 17654 | old_archive_from_new_cmds_RC \ | 
|  | 17655 | predep_objects_RC \ | 
|  | 17656 | postdep_objects_RC \ | 
|  | 17657 | predeps_RC \ | 
|  | 17658 | postdeps_RC \ | 
|  | 17659 | compiler_lib_search_path_RC \ | 
|  | 17660 | archive_cmds_RC \ | 
|  | 17661 | archive_expsym_cmds_RC \ | 
|  | 17662 | postinstall_cmds_RC \ | 
|  | 17663 | postuninstall_cmds_RC \ | 
|  | 17664 | old_archive_from_expsyms_cmds_RC \ | 
|  | 17665 | allow_undefined_flag_RC \ | 
|  | 17666 | no_undefined_flag_RC \ | 
|  | 17667 | export_symbols_cmds_RC \ | 
|  | 17668 | hardcode_libdir_flag_spec_RC \ | 
|  | 17669 | hardcode_libdir_flag_spec_ld_RC \ | 
|  | 17670 | hardcode_libdir_separator_RC \ | 
|  | 17671 | hardcode_automatic_RC \ | 
|  | 17672 | module_cmds_RC \ | 
|  | 17673 | module_expsym_cmds_RC \ | 
|  | 17674 | lt_cv_prog_compiler_c_o_RC \ | 
|  | 17675 | exclude_expsyms_RC \ | 
|  | 17676 | include_expsyms_RC; do | 
|  | 17677 |  | 
|  | 17678 | case $var in | 
|  | 17679 | old_archive_cmds_RC | \ | 
|  | 17680 | old_archive_from_new_cmds_RC | \ | 
|  | 17681 | archive_cmds_RC | \ | 
|  | 17682 | archive_expsym_cmds_RC | \ | 
|  | 17683 | module_cmds_RC | \ | 
|  | 17684 | module_expsym_cmds_RC | \ | 
|  | 17685 | old_archive_from_expsyms_cmds_RC | \ | 
|  | 17686 | export_symbols_cmds_RC | \ | 
|  | 17687 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
|  | 17688 | postinstall_cmds | postuninstall_cmds | \ | 
|  | 17689 | old_postinstall_cmds | old_postuninstall_cmds | \ | 
|  | 17690 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
|  | 17691 | # Double-quote double-evaled strings. | 
|  | 17692 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | 
|  | 17693 | ;; | 
|  | 17694 | *) | 
|  | 17695 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
|  | 17696 | ;; | 
|  | 17697 | esac | 
|  | 17698 | done | 
|  | 17699 |  | 
|  | 17700 | case $lt_echo in | 
|  | 17701 | *'\$0 --fallback-echo"') | 
|  | 17702 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
|  | 17703 | ;; | 
|  | 17704 | esac | 
|  | 17705 |  | 
|  | 17706 | cfgfile="$ofile" | 
|  | 17707 |  | 
|  | 17708 | cat <<__EOF__ >> "$cfgfile" | 
|  | 17709 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | 
|  | 17710 |  | 
|  | 17711 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
|  | 17712 |  | 
|  | 17713 | # Shell to use when invoking shell scripts. | 
|  | 17714 | SHELL=$lt_SHELL | 
|  | 17715 |  | 
|  | 17716 | # Whether or not to build shared libraries. | 
|  | 17717 | build_libtool_libs=$enable_shared | 
|  | 17718 |  | 
|  | 17719 | # Whether or not to build static libraries. | 
|  | 17720 | build_old_libs=$enable_static | 
|  | 17721 |  | 
|  | 17722 | # Whether or not to add -lc for building shared libraries. | 
|  | 17723 | build_libtool_need_lc=$archive_cmds_need_lc_RC | 
|  | 17724 |  | 
|  | 17725 | # Whether or not to disallow shared libs when runtime libs are static | 
|  | 17726 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC | 
|  | 17727 |  | 
|  | 17728 | # Whether or not to optimize for fast installation. | 
|  | 17729 | fast_install=$enable_fast_install | 
|  | 17730 |  | 
|  | 17731 | # The host system. | 
|  | 17732 | host_alias=$host_alias | 
|  | 17733 | host=$host | 
|  | 17734 |  | 
|  | 17735 | # An echo program that does not interpret backslashes. | 
|  | 17736 | echo=$lt_echo | 
|  | 17737 |  | 
|  | 17738 | # The archiver. | 
|  | 17739 | AR=$lt_AR | 
|  | 17740 | AR_FLAGS=$lt_AR_FLAGS | 
|  | 17741 |  | 
|  | 17742 | # A C compiler. | 
|  | 17743 | LTCC=$lt_LTCC | 
|  | 17744 |  | 
|  | 17745 | # A language-specific compiler. | 
|  | 17746 | CC=$lt_compiler_RC | 
|  | 17747 |  | 
|  | 17748 | # Is the compiler the GNU C compiler? | 
|  | 17749 | with_gcc=$GCC_RC | 
|  | 17750 |  | 
|  | 17751 | # An ERE matcher. | 
|  | 17752 | EGREP=$lt_EGREP | 
|  | 17753 |  | 
|  | 17754 | # The linker used to build libraries. | 
|  | 17755 | LD=$lt_LD_RC | 
|  | 17756 |  | 
|  | 17757 | # Whether we need hard or soft links. | 
|  | 17758 | LN_S=$lt_LN_S | 
|  | 17759 |  | 
|  | 17760 | # A BSD-compatible nm program. | 
|  | 17761 | NM=$lt_NM | 
|  | 17762 |  | 
|  | 17763 | # A symbol stripping program | 
|  | 17764 | STRIP=$STRIP | 
|  | 17765 |  | 
|  | 17766 | # Used to examine libraries when file_magic_cmd begins "file" | 
|  | 17767 | MAGIC_CMD=$MAGIC_CMD | 
|  | 17768 |  | 
|  | 17769 | # Used on cygwin: DLL creation program. | 
|  | 17770 | DLLTOOL="$DLLTOOL" | 
|  | 17771 |  | 
|  | 17772 | # Used on cygwin: object dumper. | 
|  | 17773 | OBJDUMP="$OBJDUMP" | 
|  | 17774 |  | 
|  | 17775 | # Used on cygwin: assembler. | 
|  | 17776 | AS="$AS" | 
|  | 17777 |  | 
|  | 17778 | # The name of the directory that contains temporary libtool files. | 
|  | 17779 | objdir=$objdir | 
|  | 17780 |  | 
|  | 17781 | # How to create reloadable object files. | 
|  | 17782 | reload_flag=$lt_reload_flag | 
|  | 17783 | reload_cmds=$lt_reload_cmds | 
|  | 17784 |  | 
|  | 17785 | # How to pass a linker flag through the compiler. | 
|  | 17786 | wl=$lt_lt_prog_compiler_wl_RC | 
|  | 17787 |  | 
|  | 17788 | # Object file suffix (normally "o"). | 
|  | 17789 | objext="$ac_objext" | 
|  | 17790 |  | 
|  | 17791 | # Old archive suffix (normally "a"). | 
|  | 17792 | libext="$libext" | 
|  | 17793 |  | 
|  | 17794 | # Shared library suffix (normally ".so"). | 
|  | 17795 | shrext='$shrext' | 
|  | 17796 |  | 
|  | 17797 | # Executable file suffix (normally ""). | 
|  | 17798 | exeext="$exeext" | 
|  | 17799 |  | 
|  | 17800 | # Additional compiler flags for building library objects. | 
|  | 17801 | pic_flag=$lt_lt_prog_compiler_pic_RC | 
|  | 17802 | pic_mode=$pic_mode | 
|  | 17803 |  | 
|  | 17804 | # What is the maximum length of a command? | 
|  | 17805 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
|  | 17806 |  | 
|  | 17807 | # Does compiler simultaneously support -c and -o options? | 
|  | 17808 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC | 
|  | 17809 |  | 
|  | 17810 | # Must we lock files when doing compilation ? | 
|  | 17811 | need_locks=$lt_need_locks | 
|  | 17812 |  | 
|  | 17813 | # Do we need the lib prefix for modules? | 
|  | 17814 | need_lib_prefix=$need_lib_prefix | 
|  | 17815 |  | 
|  | 17816 | # Do we need a version for libraries? | 
|  | 17817 | need_version=$need_version | 
|  | 17818 |  | 
|  | 17819 | # Whether dlopen is supported. | 
|  | 17820 | dlopen_support=$enable_dlopen | 
|  | 17821 |  | 
|  | 17822 | # Whether dlopen of programs is supported. | 
|  | 17823 | dlopen_self=$enable_dlopen_self | 
|  | 17824 |  | 
|  | 17825 | # Whether dlopen of statically linked programs is supported. | 
|  | 17826 | dlopen_self_static=$enable_dlopen_self_static | 
|  | 17827 |  | 
|  | 17828 | # Compiler flag to prevent dynamic linking. | 
|  | 17829 | link_static_flag=$lt_lt_prog_compiler_static_RC | 
|  | 17830 |  | 
|  | 17831 | # Compiler flag to turn off builtin functions. | 
|  | 17832 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC | 
|  | 17833 |  | 
|  | 17834 | # Compiler flag to allow reflexive dlopens. | 
|  | 17835 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC | 
|  | 17836 |  | 
|  | 17837 | # Compiler flag to generate shared objects directly from archives. | 
|  | 17838 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC | 
|  | 17839 |  | 
|  | 17840 | # Compiler flag to generate thread-safe objects. | 
|  | 17841 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC | 
|  | 17842 |  | 
|  | 17843 | # Library versioning type. | 
|  | 17844 | version_type=$version_type | 
|  | 17845 |  | 
|  | 17846 | # Format of library name prefix. | 
|  | 17847 | libname_spec=$lt_libname_spec | 
|  | 17848 |  | 
|  | 17849 | # List of archive names.  First name is the real one, the rest are links. | 
|  | 17850 | # The last name is the one that the linker finds with -lNAME. | 
|  | 17851 | library_names_spec=$lt_library_names_spec | 
|  | 17852 |  | 
|  | 17853 | # The coded name of the library, if different from the real name. | 
|  | 17854 | soname_spec=$lt_soname_spec | 
|  | 17855 |  | 
|  | 17856 | # Commands used to build and install an old-style archive. | 
|  | 17857 | RANLIB=$lt_RANLIB | 
|  | 17858 | old_archive_cmds=$lt_old_archive_cmds_RC | 
|  | 17859 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
|  | 17860 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
|  | 17861 |  | 
|  | 17862 | # Create an old-style archive from a shared archive. | 
|  | 17863 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC | 
|  | 17864 |  | 
|  | 17865 | # Create a temporary old-style archive to link instead of a shared archive. | 
|  | 17866 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC | 
|  | 17867 |  | 
|  | 17868 | # Commands used to build and install a shared archive. | 
|  | 17869 | archive_cmds=$lt_archive_cmds_RC | 
|  | 17870 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC | 
|  | 17871 | postinstall_cmds=$lt_postinstall_cmds | 
|  | 17872 | postuninstall_cmds=$lt_postuninstall_cmds | 
|  | 17873 |  | 
|  | 17874 | # Commands used to build a loadable module (assumed same as above if empty) | 
|  | 17875 | module_cmds=$lt_module_cmds_RC | 
|  | 17876 | module_expsym_cmds=$lt_module_expsym_cmds_RC | 
|  | 17877 |  | 
|  | 17878 | # Commands to strip libraries. | 
|  | 17879 | old_striplib=$lt_old_striplib | 
|  | 17880 | striplib=$lt_striplib | 
|  | 17881 |  | 
|  | 17882 | # Dependencies to place before the objects being linked to create a | 
|  | 17883 | # shared library. | 
|  | 17884 | predep_objects=$lt_predep_objects_RC | 
|  | 17885 |  | 
|  | 17886 | # Dependencies to place after the objects being linked to create a | 
|  | 17887 | # shared library. | 
|  | 17888 | postdep_objects=$lt_postdep_objects_RC | 
|  | 17889 |  | 
|  | 17890 | # Dependencies to place before the objects being linked to create a | 
|  | 17891 | # shared library. | 
|  | 17892 | predeps=$lt_predeps_RC | 
|  | 17893 |  | 
|  | 17894 | # Dependencies to place after the objects being linked to create a | 
|  | 17895 | # shared library. | 
|  | 17896 | postdeps=$lt_postdeps_RC | 
|  | 17897 |  | 
|  | 17898 | # The library search path used internally by the compiler when linking | 
|  | 17899 | # a shared library. | 
|  | 17900 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC | 
|  | 17901 |  | 
|  | 17902 | # Method to check whether dependent libraries are shared objects. | 
|  | 17903 | deplibs_check_method=$lt_deplibs_check_method | 
|  | 17904 |  | 
|  | 17905 | # Command to use when deplibs_check_method == file_magic. | 
|  | 17906 | file_magic_cmd=$lt_file_magic_cmd | 
|  | 17907 |  | 
|  | 17908 | # Flag that allows shared libraries with undefined symbols to be built. | 
|  | 17909 | allow_undefined_flag=$lt_allow_undefined_flag_RC | 
|  | 17910 |  | 
|  | 17911 | # Flag that forces no undefined symbols. | 
|  | 17912 | no_undefined_flag=$lt_no_undefined_flag_RC | 
|  | 17913 |  | 
|  | 17914 | # Commands used to finish a libtool library installation in a directory. | 
|  | 17915 | finish_cmds=$lt_finish_cmds | 
|  | 17916 |  | 
|  | 17917 | # Same as above, but a single script fragment to be evaled but not shown. | 
|  | 17918 | finish_eval=$lt_finish_eval | 
|  | 17919 |  | 
|  | 17920 | # Take the output of nm and produce a listing of raw symbols and C names. | 
|  | 17921 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
|  | 17922 |  | 
|  | 17923 | # Transform the output of nm in a proper C declaration | 
|  | 17924 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
|  | 17925 |  | 
|  | 17926 | # Transform the output of nm in a C name address pair | 
|  | 17927 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
|  | 17928 |  | 
|  | 17929 | # This is the shared library runtime path variable. | 
|  | 17930 | runpath_var=$runpath_var | 
|  | 17931 |  | 
|  | 17932 | # This is the shared library path variable. | 
|  | 17933 | shlibpath_var=$shlibpath_var | 
|  | 17934 |  | 
|  | 17935 | # Is shlibpath searched before the hard-coded library search path? | 
|  | 17936 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
|  | 17937 |  | 
|  | 17938 | # How to hardcode a shared library path into an executable. | 
|  | 17939 | hardcode_action=$hardcode_action_RC | 
|  | 17940 |  | 
|  | 17941 | # Whether we should hardcode library paths into libraries. | 
|  | 17942 | hardcode_into_libs=$hardcode_into_libs | 
|  | 17943 |  | 
|  | 17944 | # Flag to hardcode \$libdir into a binary during linking. | 
|  | 17945 | # This must work even if \$libdir does not exist. | 
|  | 17946 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC | 
|  | 17947 |  | 
|  | 17948 | # If ld is used when linking, flag to hardcode \$libdir into | 
|  | 17949 | # a binary during linking. This must work even if \$libdir does | 
|  | 17950 | # not exist. | 
|  | 17951 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC | 
|  | 17952 |  | 
|  | 17953 | # Whether we need a single -rpath flag with a separated argument. | 
|  | 17954 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC | 
|  | 17955 |  | 
|  | 17956 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
|  | 17957 | # resulting binary. | 
|  | 17958 | hardcode_direct=$hardcode_direct_RC | 
|  | 17959 |  | 
|  | 17960 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
|  | 17961 | # resulting binary. | 
|  | 17962 | hardcode_minus_L=$hardcode_minus_L_RC | 
|  | 17963 |  | 
|  | 17964 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
|  | 17965 | # the resulting binary. | 
|  | 17966 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC | 
|  | 17967 |  | 
|  | 17968 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
|  | 17969 | # and all subsequent libraries and executables linked against it. | 
|  | 17970 | hardcode_automatic=$hardcode_automatic_RC | 
|  | 17971 |  | 
|  | 17972 | # Variables whose values should be saved in libtool wrapper scripts and | 
|  | 17973 | # restored at relink time. | 
|  | 17974 | variables_saved_for_relink="$variables_saved_for_relink" | 
|  | 17975 |  | 
|  | 17976 | # Whether libtool must link a program against all its dependency libraries. | 
|  | 17977 | link_all_deplibs=$link_all_deplibs_RC | 
|  | 17978 |  | 
|  | 17979 | # Compile-time system search path for libraries | 
|  | 17980 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
|  | 17981 |  | 
|  | 17982 | # Run-time system search path for libraries | 
|  | 17983 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
|  | 17984 |  | 
|  | 17985 | # Fix the shell variable \$srcfile for the compiler. | 
|  | 17986 | fix_srcfile_path="$fix_srcfile_path_RC" | 
|  | 17987 |  | 
|  | 17988 | # Set to yes if exported symbols are required. | 
|  | 17989 | always_export_symbols=$always_export_symbols_RC | 
|  | 17990 |  | 
|  | 17991 | # The commands to list exported symbols. | 
|  | 17992 | export_symbols_cmds=$lt_export_symbols_cmds_RC | 
|  | 17993 |  | 
|  | 17994 | # The commands to extract the exported symbol list from a shared archive. | 
|  | 17995 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
|  | 17996 |  | 
|  | 17997 | # Symbols that should not be listed in the preloaded symbols. | 
|  | 17998 | exclude_expsyms=$lt_exclude_expsyms_RC | 
|  | 17999 |  | 
|  | 18000 | # Symbols that must always be exported. | 
|  | 18001 | include_expsyms=$lt_include_expsyms_RC | 
|  | 18002 |  | 
|  | 18003 | # ### END LIBTOOL TAG CONFIG: $tagname | 
|  | 18004 |  | 
|  | 18005 | __EOF__ | 
|  | 18006 |  | 
|  | 18007 |  | 
|  | 18008 | else | 
|  | 18009 | # If there is no Makefile yet, we rely on a make rule to execute | 
|  | 18010 | # `config.status --recheck' to rerun these tests and create the | 
|  | 18011 | # libtool script then. | 
|  | 18012 | test -f Makefile && make "$ltmain" | 
|  | 18013 | fi | 
|  | 18014 |  | 
|  | 18015 |  | 
|  | 18016 | ac_ext=c | 
|  | 18017 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 18018 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 18019 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 18020 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 18021 |  | 
|  | 18022 | CC="$lt_save_CC" | 
|  | 18023 |  | 
|  | 18024 | ;; | 
|  | 18025 |  | 
|  | 18026 | *) | 
|  | 18027 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 | 
|  | 18028 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} | 
|  | 18029 | { (exit 1); exit 1; }; } | 
|  | 18030 | ;; | 
|  | 18031 | esac | 
|  | 18032 |  | 
|  | 18033 | # Append the new tag name to the list of available tags. | 
|  | 18034 | if test -n "$tagname" ; then | 
|  | 18035 | available_tags="$available_tags $tagname" | 
|  | 18036 | fi | 
|  | 18037 | fi | 
|  | 18038 | done | 
|  | 18039 | IFS="$lt_save_ifs" | 
|  | 18040 |  | 
|  | 18041 | # Now substitute the updated list of available tags. | 
|  | 18042 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | 
|  | 18043 | mv "${ofile}T" "$ofile" | 
|  | 18044 | chmod +x "$ofile" | 
|  | 18045 | else | 
|  | 18046 | rm -f "${ofile}T" | 
|  | 18047 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 | 
|  | 18048 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} | 
|  | 18049 | { (exit 1); exit 1; }; } | 
|  | 18050 | fi | 
|  | 18051 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18052 |  | 
|  | 18053 |  | 
|  | 18054 |  | 
|  | 18055 | # This can be used to rebuild libtool when needed | 
|  | 18056 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | 
|  | 18057 |  | 
|  | 18058 | # Always use our own libtool. | 
| John Criswell | 8d4221e | 2003-07-23 16:52:50 +0000 | [diff] [blame] | 18059 | LIBTOOL='$(SHELL) $(top_builddir)/mklib' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18060 |  | 
|  | 18061 | # Prevent multiple expansion | 
|  | 18062 |  | 
|  | 18063 |  | 
|  | 18064 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18065 |  | 
|  | 18066 |  | 
|  | 18067 |  | 
|  | 18068 |  | 
|  | 18069 |  | 
|  | 18070 |  | 
|  | 18071 |  | 
|  | 18072 |  | 
|  | 18073 |  | 
|  | 18074 |  | 
|  | 18075 |  | 
|  | 18076 |  | 
|  | 18077 |  | 
|  | 18078 |  | 
|  | 18079 |  | 
|  | 18080 |  | 
|  | 18081 |  | 
|  | 18082 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18083 | # Extract the first word of "dot", so it can be a program name with args. | 
|  | 18084 | set dummy dot; ac_word=$2 | 
|  | 18085 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 18086 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 18087 | if test "${ac_cv_path_DOT+set}" = set; then | 
|  | 18088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18089 | else | 
|  | 18090 | case $DOT in | 
|  | 18091 | [\\/]* | ?:[\\/]*) | 
|  | 18092 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. | 
|  | 18093 | ;; | 
|  | 18094 | *) | 
|  | 18095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 18096 | for as_dir in $PATH | 
|  | 18097 | do | 
|  | 18098 | IFS=$as_save_IFS | 
|  | 18099 | test -z "$as_dir" && as_dir=. | 
|  | 18100 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 18101 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 18102 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" | 
|  | 18103 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 18104 | break 2 | 
|  | 18105 | fi | 
|  | 18106 | done | 
|  | 18107 | done | 
|  | 18108 |  | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 18109 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18110 | ;; | 
|  | 18111 | esac | 
|  | 18112 | fi | 
|  | 18113 | DOT=$ac_cv_path_DOT | 
|  | 18114 |  | 
|  | 18115 | if test -n "$DOT"; then | 
|  | 18116 | echo "$as_me:$LINENO: result: $DOT" >&5 | 
|  | 18117 | echo "${ECHO_T}$DOT" >&6 | 
|  | 18118 | else | 
|  | 18119 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 18120 | echo "${ECHO_T}no" >&6 | 
|  | 18121 | fi | 
|  | 18122 |  | 
|  | 18123 | # Extract the first word of "etags", so it can be a program name with args. | 
|  | 18124 | set dummy etags; ac_word=$2 | 
|  | 18125 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 18126 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 18127 | if test "${ac_cv_path_ETAGS+set}" = set; then | 
|  | 18128 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18129 | else | 
|  | 18130 | case $ETAGS in | 
|  | 18131 | [\\/]* | ?:[\\/]*) | 
|  | 18132 | ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path. | 
|  | 18133 | ;; | 
|  | 18134 | *) | 
|  | 18135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 18136 | for as_dir in $PATH | 
|  | 18137 | do | 
|  | 18138 | IFS=$as_save_IFS | 
|  | 18139 | test -z "$as_dir" && as_dir=. | 
|  | 18140 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 18141 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 18142 | ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext" | 
|  | 18143 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 18144 | break 2 | 
|  | 18145 | fi | 
|  | 18146 | done | 
|  | 18147 | done | 
|  | 18148 |  | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 18149 | test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18150 | ;; | 
|  | 18151 | esac | 
|  | 18152 | fi | 
|  | 18153 | ETAGS=$ac_cv_path_ETAGS | 
|  | 18154 |  | 
|  | 18155 | if test -n "$ETAGS"; then | 
|  | 18156 | echo "$as_me:$LINENO: result: $ETAGS" >&5 | 
|  | 18157 | echo "${ECHO_T}$ETAGS" >&6 | 
|  | 18158 | else | 
|  | 18159 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 18160 | echo "${ECHO_T}no" >&6 | 
|  | 18161 | fi | 
|  | 18162 |  | 
| Brian Gaeke | afa3fbf | 2004-01-22 21:55:02 +0000 | [diff] [blame] | 18163 | etags_version=`$ETAGS --version 2>&1` | 
|  | 18164 | case "$etags_version" in | 
|  | 18165 | *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;; | 
|  | 18166 | *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;; | 
|  | 18167 | *) ETAGSFLAGS="" ;; | 
|  | 18168 | esac | 
|  | 18169 | ETAGSFLAGS=$ETAGSFLAGS | 
|  | 18170 |  | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 18171 | # Extract the first word of "python", so it can be a program name with args. | 
|  | 18172 | set dummy python; ac_word=$2 | 
|  | 18173 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 18174 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 18175 | if test "${ac_cv_path_PYTHON+set}" = set; then | 
|  | 18176 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18177 | else | 
|  | 18178 | case $PYTHON in | 
|  | 18179 | [\\/]* | ?:[\\/]*) | 
|  | 18180 | ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. | 
|  | 18181 | ;; | 
|  | 18182 | *) | 
|  | 18183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 18184 | for as_dir in $PATH | 
|  | 18185 | do | 
|  | 18186 | IFS=$as_save_IFS | 
|  | 18187 | test -z "$as_dir" && as_dir=. | 
|  | 18188 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 18189 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 18190 | ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" | 
|  | 18191 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 18192 | break 2 | 
|  | 18193 | fi | 
|  | 18194 | done | 
|  | 18195 | done | 
|  | 18196 |  | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 18197 | test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python" | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 18198 | ;; | 
|  | 18199 | esac | 
|  | 18200 | fi | 
|  | 18201 | PYTHON=$ac_cv_path_PYTHON | 
|  | 18202 |  | 
|  | 18203 | if test -n "$PYTHON"; then | 
|  | 18204 | echo "$as_me:$LINENO: result: $PYTHON" >&5 | 
|  | 18205 | echo "${ECHO_T}$PYTHON" >&6 | 
|  | 18206 | else | 
|  | 18207 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 18208 | echo "${ECHO_T}no" >&6 | 
|  | 18209 | fi | 
|  | 18210 |  | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 18211 | if test "$PYTHON" = "false" | 
| John Criswell | 39827c8 | 2003-09-23 15:28:52 +0000 | [diff] [blame] | 18212 | then | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 18213 | { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5 | 
|  | 18214 | echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;} | 
| John Criswell | 39827c8 | 2003-09-23 15:28:52 +0000 | [diff] [blame] | 18215 | fi | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 18216 | # Extract the first word of "qmtest", so it can be a program name with args. | 
|  | 18217 | set dummy qmtest; ac_word=$2 | 
|  | 18218 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 18219 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 18220 | if test "${ac_cv_path_QMTEST+set}" = set; then | 
|  | 18221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18222 | else | 
|  | 18223 | case $QMTEST in | 
|  | 18224 | [\\/]* | ?:[\\/]*) | 
|  | 18225 | ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path. | 
|  | 18226 | ;; | 
|  | 18227 | *) | 
|  | 18228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 18229 | for as_dir in $PATH | 
|  | 18230 | do | 
|  | 18231 | IFS=$as_save_IFS | 
|  | 18232 | test -z "$as_dir" && as_dir=. | 
|  | 18233 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 18234 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 18235 | ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext" | 
|  | 18236 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 18237 | break 2 | 
|  | 18238 | fi | 
|  | 18239 | done | 
|  | 18240 | done | 
|  | 18241 |  | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 18242 | test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest" | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 18243 | ;; | 
|  | 18244 | esac | 
|  | 18245 | fi | 
|  | 18246 | QMTEST=$ac_cv_path_QMTEST | 
|  | 18247 |  | 
|  | 18248 | if test -n "$QMTEST"; then | 
|  | 18249 | echo "$as_me:$LINENO: result: $QMTEST" >&5 | 
|  | 18250 | echo "${ECHO_T}$QMTEST" >&6 | 
|  | 18251 | else | 
|  | 18252 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 18253 | echo "${ECHO_T}no" >&6 | 
|  | 18254 | fi | 
|  | 18255 |  | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 18256 | if test "$QMTEST" = "false" | 
| John Criswell | 39827c8 | 2003-09-23 15:28:52 +0000 | [diff] [blame] | 18257 | then | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 18258 | { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5 | 
|  | 18259 | echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;} | 
| John Criswell | 39827c8 | 2003-09-23 15:28:52 +0000 | [diff] [blame] | 18260 | fi | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 18261 |  | 
|  | 18262 | pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2` | 
|  | 18263 | pymajor=`echo $pyversion | cut -d. -f1` | 
|  | 18264 | pyminor=`echo $pyversion | cut -d. -f2` | 
|  | 18265 |  | 
|  | 18266 | if test "$pymajor" -ge "2" | 
|  | 18267 | then | 
|  | 18268 | if test "$pymajor" -eq "2" | 
|  | 18269 | then | 
|  | 18270 | if test "$pyminor" -lt "2" | 
|  | 18271 | then | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 18272 | { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5 | 
|  | 18273 | echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;} | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 18274 | fi | 
|  | 18275 | fi | 
|  | 18276 | else | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 18277 | { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5 | 
|  | 18278 | echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;} | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 18279 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18280 |  | 
|  | 18281 |  | 
|  | 18282 |  | 
|  | 18283 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18284 | echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 | 
|  | 18285 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 | 
|  | 18286 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then | 
|  | 18287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18288 | else | 
|  | 18289 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18290 | LIBS="-lelf  $LIBS" | 
|  | 18291 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18292 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18293 | /* confdefs.h.  */ | 
|  | 18294 | _ACEOF | 
|  | 18295 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18296 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18297 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18298 |  | 
|  | 18299 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 18300 | #ifdef __cplusplus | 
|  | 18301 | extern "C" | 
|  | 18302 | #endif | 
|  | 18303 | /* We use char because int might match the return type of a gcc2 | 
|  | 18304 | builtin and then its argument prototype would still apply.  */ | 
|  | 18305 | char elf_begin (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18306 | int | 
|  | 18307 | main () | 
|  | 18308 | { | 
|  | 18309 | elf_begin (); | 
|  | 18310 | ; | 
|  | 18311 | return 0; | 
|  | 18312 | } | 
|  | 18313 | _ACEOF | 
|  | 18314 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18315 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 18316 | (eval $ac_link) 2>&5 | 
|  | 18317 | ac_status=$? | 
|  | 18318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18319 | (exit $ac_status); } && | 
|  | 18320 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 18322 | (eval $ac_try) 2>&5 | 
|  | 18323 | ac_status=$? | 
|  | 18324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18325 | (exit $ac_status); }; }; then | 
|  | 18326 | ac_cv_lib_elf_elf_begin=yes | 
|  | 18327 | else | 
|  | 18328 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18329 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18330 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18331 | ac_cv_lib_elf_elf_begin=no | 
|  | 18332 | fi | 
|  | 18333 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 18334 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18335 | fi | 
|  | 18336 | echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 | 
|  | 18337 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 | 
|  | 18338 | if test $ac_cv_lib_elf_elf_begin = yes; then | 
|  | 18339 | cat >>confdefs.h <<_ACEOF | 
|  | 18340 | #define HAVE_LIBELF 1 | 
|  | 18341 | _ACEOF | 
|  | 18342 |  | 
|  | 18343 | LIBS="-lelf $LIBS" | 
|  | 18344 |  | 
|  | 18345 | fi | 
|  | 18346 |  | 
|  | 18347 |  | 
|  | 18348 | echo "$as_me:$LINENO: checking for library containing dlopen" >&5 | 
|  | 18349 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6 | 
|  | 18350 | if test "${ac_cv_search_dlopen+set}" = set; then | 
|  | 18351 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18352 | else | 
|  | 18353 | ac_func_search_save_LIBS=$LIBS | 
|  | 18354 | ac_cv_search_dlopen=no | 
|  | 18355 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18356 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18357 | /* confdefs.h.  */ | 
|  | 18358 | _ACEOF | 
|  | 18359 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18360 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18361 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18362 |  | 
|  | 18363 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 18364 | #ifdef __cplusplus | 
|  | 18365 | extern "C" | 
|  | 18366 | #endif | 
|  | 18367 | /* We use char because int might match the return type of a gcc2 | 
|  | 18368 | builtin and then its argument prototype would still apply.  */ | 
|  | 18369 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18370 | int | 
|  | 18371 | main () | 
|  | 18372 | { | 
|  | 18373 | dlopen (); | 
|  | 18374 | ; | 
|  | 18375 | return 0; | 
|  | 18376 | } | 
|  | 18377 | _ACEOF | 
|  | 18378 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18379 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 18380 | (eval $ac_link) 2>&5 | 
|  | 18381 | ac_status=$? | 
|  | 18382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18383 | (exit $ac_status); } && | 
|  | 18384 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 18386 | (eval $ac_try) 2>&5 | 
|  | 18387 | ac_status=$? | 
|  | 18388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18389 | (exit $ac_status); }; }; then | 
|  | 18390 | ac_cv_search_dlopen="none required" | 
|  | 18391 | else | 
|  | 18392 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18393 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18394 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18395 | fi | 
|  | 18396 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 18397 | if test "$ac_cv_search_dlopen" = no; then | 
|  | 18398 | for ac_lib in dl; do | 
|  | 18399 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 18400 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18401 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18402 | /* confdefs.h.  */ | 
|  | 18403 | _ACEOF | 
|  | 18404 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18405 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18406 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18407 |  | 
|  | 18408 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 18409 | #ifdef __cplusplus | 
|  | 18410 | extern "C" | 
|  | 18411 | #endif | 
|  | 18412 | /* We use char because int might match the return type of a gcc2 | 
|  | 18413 | builtin and then its argument prototype would still apply.  */ | 
|  | 18414 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18415 | int | 
|  | 18416 | main () | 
|  | 18417 | { | 
|  | 18418 | dlopen (); | 
|  | 18419 | ; | 
|  | 18420 | return 0; | 
|  | 18421 | } | 
|  | 18422 | _ACEOF | 
|  | 18423 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18424 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 18425 | (eval $ac_link) 2>&5 | 
|  | 18426 | ac_status=$? | 
|  | 18427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18428 | (exit $ac_status); } && | 
|  | 18429 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 18431 | (eval $ac_try) 2>&5 | 
|  | 18432 | ac_status=$? | 
|  | 18433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18434 | (exit $ac_status); }; }; then | 
|  | 18435 | ac_cv_search_dlopen="-l$ac_lib" | 
|  | 18436 | break | 
|  | 18437 | else | 
|  | 18438 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18439 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18440 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18441 | fi | 
|  | 18442 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 18443 | done | 
|  | 18444 | fi | 
|  | 18445 | LIBS=$ac_func_search_save_LIBS | 
|  | 18446 | fi | 
|  | 18447 | echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 | 
|  | 18448 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6 | 
|  | 18449 | if test "$ac_cv_search_dlopen" != no; then | 
|  | 18450 | test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS" | 
| John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 18451 |  | 
|  | 18452 | cat >>confdefs.h <<\_ACEOF | 
| Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 18453 | #define HAVE_DLOPEN 1 | 
|  | 18454 | _ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18455 |  | 
|  | 18456 | else | 
| Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 18457 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 | 
|  | 18458 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18459 | fi | 
|  | 18460 |  | 
|  | 18461 |  | 
|  | 18462 | echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 | 
|  | 18463 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6 | 
|  | 18464 | if test "${ac_cv_search_mallinfo+set}" = set; then | 
|  | 18465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18466 | else | 
|  | 18467 | ac_func_search_save_LIBS=$LIBS | 
|  | 18468 | ac_cv_search_mallinfo=no | 
|  | 18469 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18470 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18471 | /* confdefs.h.  */ | 
|  | 18472 | _ACEOF | 
|  | 18473 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18474 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18475 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18476 |  | 
|  | 18477 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 18478 | #ifdef __cplusplus | 
|  | 18479 | extern "C" | 
|  | 18480 | #endif | 
|  | 18481 | /* We use char because int might match the return type of a gcc2 | 
|  | 18482 | builtin and then its argument prototype would still apply.  */ | 
|  | 18483 | char mallinfo (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18484 | int | 
|  | 18485 | main () | 
|  | 18486 | { | 
|  | 18487 | mallinfo (); | 
|  | 18488 | ; | 
|  | 18489 | return 0; | 
|  | 18490 | } | 
|  | 18491 | _ACEOF | 
|  | 18492 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18493 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 18494 | (eval $ac_link) 2>&5 | 
|  | 18495 | ac_status=$? | 
|  | 18496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18497 | (exit $ac_status); } && | 
|  | 18498 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 18500 | (eval $ac_try) 2>&5 | 
|  | 18501 | ac_status=$? | 
|  | 18502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18503 | (exit $ac_status); }; }; then | 
|  | 18504 | ac_cv_search_mallinfo="none required" | 
|  | 18505 | else | 
|  | 18506 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18507 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18508 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18509 | fi | 
|  | 18510 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 18511 | if test "$ac_cv_search_mallinfo" = no; then | 
|  | 18512 | for ac_lib in malloc; do | 
|  | 18513 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 18514 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18515 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18516 | /* confdefs.h.  */ | 
|  | 18517 | _ACEOF | 
|  | 18518 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18519 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18520 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18521 |  | 
|  | 18522 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 18523 | #ifdef __cplusplus | 
|  | 18524 | extern "C" | 
|  | 18525 | #endif | 
|  | 18526 | /* We use char because int might match the return type of a gcc2 | 
|  | 18527 | builtin and then its argument prototype would still apply.  */ | 
|  | 18528 | char mallinfo (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18529 | int | 
|  | 18530 | main () | 
|  | 18531 | { | 
|  | 18532 | mallinfo (); | 
|  | 18533 | ; | 
|  | 18534 | return 0; | 
|  | 18535 | } | 
|  | 18536 | _ACEOF | 
|  | 18537 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18538 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 18539 | (eval $ac_link) 2>&5 | 
|  | 18540 | ac_status=$? | 
|  | 18541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18542 | (exit $ac_status); } && | 
|  | 18543 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 18545 | (eval $ac_try) 2>&5 | 
|  | 18546 | ac_status=$? | 
|  | 18547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18548 | (exit $ac_status); }; }; then | 
|  | 18549 | ac_cv_search_mallinfo="-l$ac_lib" | 
|  | 18550 | break | 
|  | 18551 | else | 
|  | 18552 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18553 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18554 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18555 | fi | 
|  | 18556 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 18557 | done | 
|  | 18558 | fi | 
|  | 18559 | LIBS=$ac_func_search_save_LIBS | 
|  | 18560 | fi | 
|  | 18561 | echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 | 
|  | 18562 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6 | 
|  | 18563 | if test "$ac_cv_search_mallinfo" != no; then | 
|  | 18564 | test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS" | 
| John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 18565 |  | 
|  | 18566 | cat >>confdefs.h <<\_ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18567 | #define HAVE_MALLINFO 1 | 
|  | 18568 | _ACEOF | 
|  | 18569 |  | 
|  | 18570 | fi | 
|  | 18571 |  | 
|  | 18572 |  | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 18573 | echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 | 
|  | 18574 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6 | 
|  | 18575 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | 
|  | 18576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18577 | else | 
|  | 18578 | ac_func_search_save_LIBS=$LIBS | 
|  | 18579 | ac_cv_search_pthread_mutex_lock=no | 
|  | 18580 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18581 | #line $LINENO "configure" | 
|  | 18582 | /* confdefs.h.  */ | 
|  | 18583 | _ACEOF | 
|  | 18584 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18585 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18586 | /* end confdefs.h.  */ | 
|  | 18587 |  | 
|  | 18588 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 18589 | #ifdef __cplusplus | 
|  | 18590 | extern "C" | 
|  | 18591 | #endif | 
|  | 18592 | /* We use char because int might match the return type of a gcc2 | 
|  | 18593 | builtin and then its argument prototype would still apply.  */ | 
|  | 18594 | char pthread_mutex_lock (); | 
|  | 18595 | int | 
|  | 18596 | main () | 
|  | 18597 | { | 
|  | 18598 | pthread_mutex_lock (); | 
|  | 18599 | ; | 
|  | 18600 | return 0; | 
|  | 18601 | } | 
|  | 18602 | _ACEOF | 
|  | 18603 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18604 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 18605 | (eval $ac_link) 2>&5 | 
|  | 18606 | ac_status=$? | 
|  | 18607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18608 | (exit $ac_status); } && | 
|  | 18609 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 18611 | (eval $ac_try) 2>&5 | 
|  | 18612 | ac_status=$? | 
|  | 18613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18614 | (exit $ac_status); }; }; then | 
|  | 18615 | ac_cv_search_pthread_mutex_lock="none required" | 
|  | 18616 | else | 
|  | 18617 | echo "$as_me: failed program was:" >&5 | 
|  | 18618 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18619 |  | 
|  | 18620 | fi | 
|  | 18621 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 18622 | if test "$ac_cv_search_pthread_mutex_lock" = no; then | 
|  | 18623 | for ac_lib in pthread; do | 
|  | 18624 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 18625 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18626 | #line $LINENO "configure" | 
|  | 18627 | /* confdefs.h.  */ | 
|  | 18628 | _ACEOF | 
|  | 18629 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18630 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18631 | /* end confdefs.h.  */ | 
|  | 18632 |  | 
|  | 18633 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 18634 | #ifdef __cplusplus | 
|  | 18635 | extern "C" | 
|  | 18636 | #endif | 
|  | 18637 | /* We use char because int might match the return type of a gcc2 | 
|  | 18638 | builtin and then its argument prototype would still apply.  */ | 
|  | 18639 | char pthread_mutex_lock (); | 
|  | 18640 | int | 
|  | 18641 | main () | 
|  | 18642 | { | 
|  | 18643 | pthread_mutex_lock (); | 
|  | 18644 | ; | 
|  | 18645 | return 0; | 
|  | 18646 | } | 
|  | 18647 | _ACEOF | 
|  | 18648 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18649 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 18650 | (eval $ac_link) 2>&5 | 
|  | 18651 | ac_status=$? | 
|  | 18652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18653 | (exit $ac_status); } && | 
|  | 18654 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 18656 | (eval $ac_try) 2>&5 | 
|  | 18657 | ac_status=$? | 
|  | 18658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18659 | (exit $ac_status); }; }; then | 
|  | 18660 | ac_cv_search_pthread_mutex_lock="-l$ac_lib" | 
|  | 18661 | break | 
|  | 18662 | else | 
|  | 18663 | echo "$as_me: failed program was:" >&5 | 
|  | 18664 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18665 |  | 
|  | 18666 | fi | 
|  | 18667 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 18668 | done | 
|  | 18669 | fi | 
|  | 18670 | LIBS=$ac_func_search_save_LIBS | 
|  | 18671 | fi | 
|  | 18672 | echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 | 
|  | 18673 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6 | 
|  | 18674 | if test "$ac_cv_search_pthread_mutex_lock" != no; then | 
|  | 18675 | test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS" | 
|  | 18676 |  | 
|  | 18677 | cat >>confdefs.h <<\_ACEOF | 
|  | 18678 | #define HAVE_PTHREAD_MUTEX_LOCK 1 | 
|  | 18679 | _ACEOF | 
|  | 18680 |  | 
|  | 18681 | fi | 
|  | 18682 |  | 
|  | 18683 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18684 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | 
|  | 18685 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | 
|  | 18686 | if test "${ac_cv_header_stdc+set}" = set; then | 
|  | 18687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18688 | else | 
|  | 18689 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18690 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18691 | /* confdefs.h.  */ | 
|  | 18692 | _ACEOF | 
|  | 18693 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18694 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18695 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18696 | #include <stdlib.h> | 
|  | 18697 | #include <stdarg.h> | 
|  | 18698 | #include <string.h> | 
|  | 18699 | #include <float.h> | 
|  | 18700 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18701 | int | 
|  | 18702 | main () | 
|  | 18703 | { | 
|  | 18704 |  | 
|  | 18705 | ; | 
|  | 18706 | return 0; | 
|  | 18707 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18708 | _ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18709 | rm -f conftest.$ac_objext | 
|  | 18710 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 18711 | (eval $ac_compile) 2>&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18712 | ac_status=$? | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18714 | (exit $ac_status); } && | 
|  | 18715 | { ac_try='test -s conftest.$ac_objext' | 
|  | 18716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 18717 | (eval $ac_try) 2>&5 | 
|  | 18718 | ac_status=$? | 
|  | 18719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18720 | (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18721 | ac_cv_header_stdc=yes | 
|  | 18722 | else | 
|  | 18723 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18724 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18725 |  | 
|  | 18726 | ac_cv_header_stdc=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18727 | fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18728 | rm -f conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18729 |  | 
|  | 18730 | if test $ac_cv_header_stdc = yes; then | 
|  | 18731 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
|  | 18732 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18733 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18734 | /* confdefs.h.  */ | 
|  | 18735 | _ACEOF | 
|  | 18736 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18737 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18738 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18739 | #include <string.h> | 
|  | 18740 |  | 
|  | 18741 | _ACEOF | 
|  | 18742 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18743 | $EGREP "memchr" >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18744 | : | 
|  | 18745 | else | 
|  | 18746 | ac_cv_header_stdc=no | 
|  | 18747 | fi | 
|  | 18748 | rm -f conftest* | 
|  | 18749 |  | 
|  | 18750 | fi | 
|  | 18751 |  | 
|  | 18752 | if test $ac_cv_header_stdc = yes; then | 
|  | 18753 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
|  | 18754 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18755 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18756 | /* confdefs.h.  */ | 
|  | 18757 | _ACEOF | 
|  | 18758 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18759 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18760 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18761 | #include <stdlib.h> | 
|  | 18762 |  | 
|  | 18763 | _ACEOF | 
|  | 18764 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18765 | $EGREP "free" >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18766 | : | 
|  | 18767 | else | 
|  | 18768 | ac_cv_header_stdc=no | 
|  | 18769 | fi | 
|  | 18770 | rm -f conftest* | 
|  | 18771 |  | 
|  | 18772 | fi | 
|  | 18773 |  | 
|  | 18774 | if test $ac_cv_header_stdc = yes; then | 
|  | 18775 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
|  | 18776 | if test "$cross_compiling" = yes; then | 
|  | 18777 | : | 
|  | 18778 | else | 
|  | 18779 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18780 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18781 | /* confdefs.h.  */ | 
|  | 18782 | _ACEOF | 
|  | 18783 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18784 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18785 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18786 | #include <ctype.h> | 
|  | 18787 | #if ((' ' & 0x0FF) == 0x020) | 
|  | 18788 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
|  | 18789 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
|  | 18790 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18791 | # define ISLOWER(c) \ | 
|  | 18792 | (('a' <= (c) && (c) <= 'i') \ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18793 | || ('j' <= (c) && (c) <= 'r') \ | 
|  | 18794 | || ('s' <= (c) && (c) <= 'z')) | 
|  | 18795 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
|  | 18796 | #endif | 
|  | 18797 |  | 
|  | 18798 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
|  | 18799 | int | 
|  | 18800 | main () | 
|  | 18801 | { | 
|  | 18802 | int i; | 
|  | 18803 | for (i = 0; i < 256; i++) | 
|  | 18804 | if (XOR (islower (i), ISLOWER (i)) | 
|  | 18805 | || toupper (i) != TOUPPER (i)) | 
|  | 18806 | exit(2); | 
|  | 18807 | exit (0); | 
|  | 18808 | } | 
|  | 18809 | _ACEOF | 
|  | 18810 | rm -f conftest$ac_exeext | 
|  | 18811 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 18812 | (eval $ac_link) 2>&5 | 
|  | 18813 | ac_status=$? | 
|  | 18814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18815 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 18816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 18817 | (eval $ac_try) 2>&5 | 
|  | 18818 | ac_status=$? | 
|  | 18819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18820 | (exit $ac_status); }; }; then | 
|  | 18821 | : | 
|  | 18822 | else | 
|  | 18823 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 18824 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18825 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18826 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18827 | ( exit $ac_status ) | 
|  | 18828 | ac_cv_header_stdc=no | 
|  | 18829 | fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18830 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18831 | fi | 
|  | 18832 | fi | 
|  | 18833 | fi | 
|  | 18834 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | 
|  | 18835 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | 
|  | 18836 | if test $ac_cv_header_stdc = yes; then | 
|  | 18837 |  | 
|  | 18838 | cat >>confdefs.h <<\_ACEOF | 
|  | 18839 | #define STDC_HEADERS 1 | 
|  | 18840 | _ACEOF | 
|  | 18841 |  | 
|  | 18842 | fi | 
|  | 18843 |  | 
|  | 18844 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 | 
|  | 18845 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 | 
|  | 18846 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | 
|  | 18847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18848 | else | 
|  | 18849 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18850 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18851 | /* confdefs.h.  */ | 
|  | 18852 | _ACEOF | 
|  | 18853 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18854 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18855 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18856 | #include <sys/types.h> | 
|  | 18857 | #include <sys/wait.h> | 
|  | 18858 | #ifndef WEXITSTATUS | 
|  | 18859 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | 
|  | 18860 | #endif | 
|  | 18861 | #ifndef WIFEXITED | 
|  | 18862 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | 
|  | 18863 | #endif | 
|  | 18864 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18865 | int | 
|  | 18866 | main () | 
|  | 18867 | { | 
|  | 18868 | int s; | 
|  | 18869 | wait (&s); | 
|  | 18870 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | 
|  | 18871 | ; | 
|  | 18872 | return 0; | 
|  | 18873 | } | 
|  | 18874 | _ACEOF | 
|  | 18875 | rm -f conftest.$ac_objext | 
|  | 18876 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 18877 | (eval $ac_compile) 2>&5 | 
|  | 18878 | ac_status=$? | 
|  | 18879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18880 | (exit $ac_status); } && | 
|  | 18881 | { ac_try='test -s conftest.$ac_objext' | 
|  | 18882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 18883 | (eval $ac_try) 2>&5 | 
|  | 18884 | ac_status=$? | 
|  | 18885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18886 | (exit $ac_status); }; }; then | 
|  | 18887 | ac_cv_header_sys_wait_h=yes | 
|  | 18888 | else | 
|  | 18889 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18890 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18891 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18892 | ac_cv_header_sys_wait_h=no | 
|  | 18893 | fi | 
|  | 18894 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 18895 | fi | 
|  | 18896 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 | 
|  | 18897 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 | 
|  | 18898 | if test $ac_cv_header_sys_wait_h = yes; then | 
|  | 18899 |  | 
|  | 18900 | cat >>confdefs.h <<\_ACEOF | 
|  | 18901 | #define HAVE_SYS_WAIT_H 1 | 
|  | 18902 | _ACEOF | 
|  | 18903 |  | 
|  | 18904 | fi | 
|  | 18905 |  | 
|  | 18906 |  | 
|  | 18907 |  | 
|  | 18908 |  | 
|  | 18909 |  | 
|  | 18910 |  | 
|  | 18911 |  | 
|  | 18912 |  | 
|  | 18913 |  | 
|  | 18914 |  | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 18915 |  | 
| Brian Gaeke | f526147 | 2004-02-20 06:40:57 +0000 | [diff] [blame^] | 18916 |  | 
|  | 18917 | for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h execinfo.h | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18918 | do | 
|  | 18919 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 18920 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 18921 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 18922 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 18923 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 18924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18925 | fi | 
|  | 18926 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 18927 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
|  | 18928 | else | 
|  | 18929 | # Is the header compilable? | 
|  | 18930 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 18931 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
|  | 18932 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18933 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18934 | /* confdefs.h.  */ | 
|  | 18935 | _ACEOF | 
|  | 18936 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18937 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18938 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18939 | $ac_includes_default | 
|  | 18940 | #include <$ac_header> | 
|  | 18941 | _ACEOF | 
|  | 18942 | rm -f conftest.$ac_objext | 
|  | 18943 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 18944 | (eval $ac_compile) 2>&5 | 
|  | 18945 | ac_status=$? | 
|  | 18946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18947 | (exit $ac_status); } && | 
|  | 18948 | { ac_try='test -s conftest.$ac_objext' | 
|  | 18949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 18950 | (eval $ac_try) 2>&5 | 
|  | 18951 | ac_status=$? | 
|  | 18952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18953 | (exit $ac_status); }; }; then | 
|  | 18954 | ac_header_compiler=yes | 
|  | 18955 | else | 
|  | 18956 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18957 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18958 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18959 | ac_header_compiler=no | 
|  | 18960 | fi | 
|  | 18961 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 18962 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 18963 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
|  | 18964 |  | 
|  | 18965 | # Is the header present? | 
|  | 18966 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 18967 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
|  | 18968 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18969 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18970 | /* confdefs.h.  */ | 
|  | 18971 | _ACEOF | 
|  | 18972 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18973 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18974 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18975 | #include <$ac_header> | 
|  | 18976 | _ACEOF | 
|  | 18977 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 18978 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 18979 | ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18980 | grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18981 | rm -f conftest.er1 | 
|  | 18982 | cat conftest.err >&5 | 
|  | 18983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18984 | (exit $ac_status); } >/dev/null; then | 
|  | 18985 | if test -s conftest.err; then | 
|  | 18986 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 18987 | else | 
|  | 18988 | ac_cpp_err= | 
|  | 18989 | fi | 
|  | 18990 | else | 
|  | 18991 | ac_cpp_err=yes | 
|  | 18992 | fi | 
|  | 18993 | if test -z "$ac_cpp_err"; then | 
|  | 18994 | ac_header_preproc=yes | 
|  | 18995 | else | 
|  | 18996 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18997 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18998 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18999 | ac_header_preproc=no | 
|  | 19000 | fi | 
|  | 19001 | rm -f conftest.err conftest.$ac_ext | 
|  | 19002 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 19003 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
|  | 19004 |  | 
|  | 19005 | # So?  What about this header? | 
|  | 19006 | case $ac_header_compiler:$ac_header_preproc in | 
|  | 19007 | yes:no ) | 
|  | 19008 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 19009 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 19010 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19011 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 19012 | ( | 
|  | 19013 | cat <<\_ASBOX | 
|  | 19014 | ## ------------------------------------ ## | 
|  | 19015 | ## Report this to bug-autoconf@gnu.org. ## | 
|  | 19016 | ## ------------------------------------ ## | 
|  | 19017 | _ASBOX | 
|  | 19018 | ) | | 
|  | 19019 | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 19020 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19021 | no:yes ) | 
|  | 19022 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 19023 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 19024 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | 
|  | 19025 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | 
|  | 19026 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19027 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 19028 | ( | 
|  | 19029 | cat <<\_ASBOX | 
|  | 19030 | ## ------------------------------------ ## | 
|  | 19031 | ## Report this to bug-autoconf@gnu.org. ## | 
|  | 19032 | ## ------------------------------------ ## | 
|  | 19033 | _ASBOX | 
|  | 19034 | ) | | 
|  | 19035 | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 19036 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19037 | esac | 
|  | 19038 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 19039 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 19040 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 19041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 19042 | else | 
|  | 19043 | eval "$as_ac_Header=$ac_header_preproc" | 
|  | 19044 | fi | 
|  | 19045 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 19046 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
|  | 19047 |  | 
|  | 19048 | fi | 
|  | 19049 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
|  | 19050 | cat >>confdefs.h <<_ACEOF | 
|  | 19051 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 19052 | _ACEOF | 
|  | 19053 |  | 
|  | 19054 | fi | 
|  | 19055 |  | 
|  | 19056 | done | 
|  | 19057 |  | 
|  | 19058 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19059 | echo "$as_me:$LINENO: checking for pid_t" >&5 | 
|  | 19060 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | 
|  | 19061 | if test "${ac_cv_type_pid_t+set}" = set; then | 
|  | 19062 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 19063 | else | 
|  | 19064 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19065 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19066 | /* confdefs.h.  */ | 
|  | 19067 | _ACEOF | 
|  | 19068 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19069 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 19070 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19071 | $ac_includes_default | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19072 | int | 
|  | 19073 | main () | 
|  | 19074 | { | 
|  | 19075 | if ((pid_t *) 0) | 
|  | 19076 | return 0; | 
|  | 19077 | if (sizeof (pid_t)) | 
|  | 19078 | return 0; | 
|  | 19079 | ; | 
|  | 19080 | return 0; | 
|  | 19081 | } | 
|  | 19082 | _ACEOF | 
|  | 19083 | rm -f conftest.$ac_objext | 
|  | 19084 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 19085 | (eval $ac_compile) 2>&5 | 
|  | 19086 | ac_status=$? | 
|  | 19087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19088 | (exit $ac_status); } && | 
|  | 19089 | { ac_try='test -s conftest.$ac_objext' | 
|  | 19090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 19091 | (eval $ac_try) 2>&5 | 
|  | 19092 | ac_status=$? | 
|  | 19093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19094 | (exit $ac_status); }; }; then | 
|  | 19095 | ac_cv_type_pid_t=yes | 
|  | 19096 | else | 
|  | 19097 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19098 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19099 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19100 | ac_cv_type_pid_t=no | 
|  | 19101 | fi | 
|  | 19102 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 19103 | fi | 
|  | 19104 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | 
|  | 19105 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | 
|  | 19106 | if test $ac_cv_type_pid_t = yes; then | 
|  | 19107 | : | 
|  | 19108 | else | 
|  | 19109 |  | 
|  | 19110 | cat >>confdefs.h <<_ACEOF | 
|  | 19111 | #define pid_t int | 
|  | 19112 | _ACEOF | 
|  | 19113 |  | 
|  | 19114 | fi | 
|  | 19115 |  | 
|  | 19116 | echo "$as_me:$LINENO: checking for size_t" >&5 | 
|  | 19117 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | 
|  | 19118 | if test "${ac_cv_type_size_t+set}" = set; then | 
|  | 19119 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 19120 | else | 
|  | 19121 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19122 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19123 | /* confdefs.h.  */ | 
|  | 19124 | _ACEOF | 
|  | 19125 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19126 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 19127 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19128 | $ac_includes_default | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19129 | int | 
|  | 19130 | main () | 
|  | 19131 | { | 
|  | 19132 | if ((size_t *) 0) | 
|  | 19133 | return 0; | 
|  | 19134 | if (sizeof (size_t)) | 
|  | 19135 | return 0; | 
|  | 19136 | ; | 
|  | 19137 | return 0; | 
|  | 19138 | } | 
|  | 19139 | _ACEOF | 
|  | 19140 | rm -f conftest.$ac_objext | 
|  | 19141 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 19142 | (eval $ac_compile) 2>&5 | 
|  | 19143 | ac_status=$? | 
|  | 19144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19145 | (exit $ac_status); } && | 
|  | 19146 | { ac_try='test -s conftest.$ac_objext' | 
|  | 19147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 19148 | (eval $ac_try) 2>&5 | 
|  | 19149 | ac_status=$? | 
|  | 19150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19151 | (exit $ac_status); }; }; then | 
|  | 19152 | ac_cv_type_size_t=yes | 
|  | 19153 | else | 
|  | 19154 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19155 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19156 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19157 | ac_cv_type_size_t=no | 
|  | 19158 | fi | 
|  | 19159 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 19160 | fi | 
|  | 19161 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | 
|  | 19162 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | 
|  | 19163 | if test $ac_cv_type_size_t = yes; then | 
|  | 19164 | : | 
|  | 19165 | else | 
|  | 19166 |  | 
|  | 19167 | cat >>confdefs.h <<_ACEOF | 
|  | 19168 | #define size_t unsigned | 
|  | 19169 | _ACEOF | 
|  | 19170 |  | 
|  | 19171 | fi | 
|  | 19172 |  | 
|  | 19173 | echo "$as_me:$LINENO: checking for int64_t" >&5 | 
|  | 19174 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 | 
|  | 19175 | if test "${ac_cv_type_int64_t+set}" = set; then | 
|  | 19176 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 19177 | else | 
|  | 19178 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19179 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19180 | /* confdefs.h.  */ | 
|  | 19181 | _ACEOF | 
|  | 19182 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19183 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 19184 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19185 | $ac_includes_default | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19186 | int | 
|  | 19187 | main () | 
|  | 19188 | { | 
|  | 19189 | if ((int64_t *) 0) | 
|  | 19190 | return 0; | 
|  | 19191 | if (sizeof (int64_t)) | 
|  | 19192 | return 0; | 
|  | 19193 | ; | 
|  | 19194 | return 0; | 
|  | 19195 | } | 
|  | 19196 | _ACEOF | 
|  | 19197 | rm -f conftest.$ac_objext | 
|  | 19198 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 19199 | (eval $ac_compile) 2>&5 | 
|  | 19200 | ac_status=$? | 
|  | 19201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19202 | (exit $ac_status); } && | 
|  | 19203 | { ac_try='test -s conftest.$ac_objext' | 
|  | 19204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 19205 | (eval $ac_try) 2>&5 | 
|  | 19206 | ac_status=$? | 
|  | 19207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19208 | (exit $ac_status); }; }; then | 
|  | 19209 | ac_cv_type_int64_t=yes | 
|  | 19210 | else | 
|  | 19211 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19212 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19213 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19214 | ac_cv_type_int64_t=no | 
|  | 19215 | fi | 
|  | 19216 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 19217 | fi | 
|  | 19218 | echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 | 
|  | 19219 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6 | 
|  | 19220 | if test $ac_cv_type_int64_t = yes; then | 
|  | 19221 |  | 
|  | 19222 | cat >>confdefs.h <<_ACEOF | 
|  | 19223 | #define HAVE_INT64_T 1 | 
|  | 19224 | _ACEOF | 
|  | 19225 |  | 
|  | 19226 |  | 
|  | 19227 | else | 
|  | 19228 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 | 
|  | 19229 | echo "$as_me: error: Type int64_t required but not found" >&2;} | 
|  | 19230 | { (exit 1); exit 1; }; } | 
|  | 19231 | fi | 
|  | 19232 |  | 
|  | 19233 | echo "$as_me:$LINENO: checking for uint64_t" >&5 | 
|  | 19234 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | 
|  | 19235 | if test "${ac_cv_type_uint64_t+set}" = set; then | 
|  | 19236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 19237 | else | 
|  | 19238 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19239 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19240 | /* confdefs.h.  */ | 
|  | 19241 | _ACEOF | 
|  | 19242 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19243 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 19244 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19245 | $ac_includes_default | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19246 | int | 
|  | 19247 | main () | 
|  | 19248 | { | 
|  | 19249 | if ((uint64_t *) 0) | 
|  | 19250 | return 0; | 
|  | 19251 | if (sizeof (uint64_t)) | 
|  | 19252 | return 0; | 
|  | 19253 | ; | 
|  | 19254 | return 0; | 
|  | 19255 | } | 
|  | 19256 | _ACEOF | 
|  | 19257 | rm -f conftest.$ac_objext | 
|  | 19258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 19259 | (eval $ac_compile) 2>&5 | 
|  | 19260 | ac_status=$? | 
|  | 19261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19262 | (exit $ac_status); } && | 
|  | 19263 | { ac_try='test -s conftest.$ac_objext' | 
|  | 19264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 19265 | (eval $ac_try) 2>&5 | 
|  | 19266 | ac_status=$? | 
|  | 19267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19268 | (exit $ac_status); }; }; then | 
|  | 19269 | ac_cv_type_uint64_t=yes | 
|  | 19270 | else | 
|  | 19271 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19272 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19273 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19274 | ac_cv_type_uint64_t=no | 
|  | 19275 | fi | 
|  | 19276 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 19277 | fi | 
|  | 19278 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 | 
|  | 19279 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | 
|  | 19280 | if test $ac_cv_type_uint64_t = yes; then | 
|  | 19281 |  | 
|  | 19282 | cat >>confdefs.h <<_ACEOF | 
|  | 19283 | #define HAVE_UINT64_T 1 | 
|  | 19284 | _ACEOF | 
|  | 19285 |  | 
|  | 19286 |  | 
|  | 19287 | else | 
|  | 19288 | { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5 | 
|  | 19289 | echo "$as_me: error: Type uint64_t required but not found" >&2;} | 
|  | 19290 | { (exit 1); exit 1; }; } | 
|  | 19291 | fi | 
|  | 19292 |  | 
|  | 19293 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | 
|  | 19294 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | 
|  | 19295 | if test "${ac_cv_header_time+set}" = set; then | 
|  | 19296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 19297 | else | 
|  | 19298 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19299 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19300 | /* confdefs.h.  */ | 
|  | 19301 | _ACEOF | 
|  | 19302 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19303 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 19304 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19305 | #include <sys/types.h> | 
|  | 19306 | #include <sys/time.h> | 
|  | 19307 | #include <time.h> | 
|  | 19308 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19309 | int | 
|  | 19310 | main () | 
|  | 19311 | { | 
|  | 19312 | if ((struct tm *) 0) | 
|  | 19313 | return 0; | 
|  | 19314 | ; | 
|  | 19315 | return 0; | 
|  | 19316 | } | 
|  | 19317 | _ACEOF | 
|  | 19318 | rm -f conftest.$ac_objext | 
|  | 19319 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 19320 | (eval $ac_compile) 2>&5 | 
|  | 19321 | ac_status=$? | 
|  | 19322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19323 | (exit $ac_status); } && | 
|  | 19324 | { ac_try='test -s conftest.$ac_objext' | 
|  | 19325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 19326 | (eval $ac_try) 2>&5 | 
|  | 19327 | ac_status=$? | 
|  | 19328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19329 | (exit $ac_status); }; }; then | 
|  | 19330 | ac_cv_header_time=yes | 
|  | 19331 | else | 
|  | 19332 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19333 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19334 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19335 | ac_cv_header_time=no | 
|  | 19336 | fi | 
|  | 19337 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 19338 | fi | 
|  | 19339 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 | 
|  | 19340 | echo "${ECHO_T}$ac_cv_header_time" >&6 | 
|  | 19341 | if test $ac_cv_header_time = yes; then | 
|  | 19342 |  | 
|  | 19343 | cat >>confdefs.h <<\_ACEOF | 
|  | 19344 | #define TIME_WITH_SYS_TIME 1 | 
|  | 19345 | _ACEOF | 
|  | 19346 |  | 
|  | 19347 | fi | 
|  | 19348 |  | 
|  | 19349 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 | 
|  | 19350 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 | 
|  | 19351 | if test "${ac_cv_struct_tm+set}" = set; then | 
|  | 19352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 19353 | else | 
|  | 19354 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19355 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19356 | /* confdefs.h.  */ | 
|  | 19357 | _ACEOF | 
|  | 19358 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19359 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 19360 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19361 | #include <sys/types.h> | 
|  | 19362 | #include <time.h> | 
|  | 19363 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19364 | int | 
|  | 19365 | main () | 
|  | 19366 | { | 
|  | 19367 | struct tm *tp; tp->tm_sec; | 
|  | 19368 | ; | 
|  | 19369 | return 0; | 
|  | 19370 | } | 
|  | 19371 | _ACEOF | 
|  | 19372 | rm -f conftest.$ac_objext | 
|  | 19373 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 19374 | (eval $ac_compile) 2>&5 | 
|  | 19375 | ac_status=$? | 
|  | 19376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19377 | (exit $ac_status); } && | 
|  | 19378 | { ac_try='test -s conftest.$ac_objext' | 
|  | 19379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 19380 | (eval $ac_try) 2>&5 | 
|  | 19381 | ac_status=$? | 
|  | 19382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19383 | (exit $ac_status); }; }; then | 
|  | 19384 | ac_cv_struct_tm=time.h | 
|  | 19385 | else | 
|  | 19386 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19387 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19388 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19389 | ac_cv_struct_tm=sys/time.h | 
|  | 19390 | fi | 
|  | 19391 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 19392 | fi | 
|  | 19393 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 | 
|  | 19394 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 | 
|  | 19395 | if test $ac_cv_struct_tm = sys/time.h; then | 
|  | 19396 |  | 
|  | 19397 | cat >>confdefs.h <<\_ACEOF | 
|  | 19398 | #define TM_IN_SYS_TIME 1 | 
|  | 19399 | _ACEOF | 
|  | 19400 |  | 
|  | 19401 | fi | 
|  | 19402 |  | 
|  | 19403 |  | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 19404 |  | 
|  | 19405 |  | 
|  | 19406 |  | 
|  | 19407 | ac_ext=c | 
|  | 19408 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 19409 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19410 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19411 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 19412 |  | 
|  | 19413 | if test "$cross_compiling" = yes; then | 
|  | 19414 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | 
|  | 19415 | See \`config.log' for more details." >&5 | 
|  | 19416 | echo "$as_me: error: cannot run test program while cross compiling | 
|  | 19417 | See \`config.log' for more details." >&2;} | 
|  | 19418 | { (exit 1); exit 1; }; } | 
|  | 19419 | else | 
|  | 19420 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19421 | #line $LINENO "configure" | 
|  | 19422 | /* confdefs.h.  */ | 
|  | 19423 | _ACEOF | 
|  | 19424 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19425 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 19426 | /* end confdefs.h.  */ | 
|  | 19427 | #include <stdio.h> | 
|  | 19428 | #include <stdlib.h> | 
|  | 19429 | int | 
|  | 19430 | main () | 
|  | 19431 | { | 
|  | 19432 |  | 
|  | 19433 | volatile double A, B; | 
|  | 19434 | char Buffer[100]; | 
|  | 19435 | A = 1; | 
|  | 19436 | A /= 10.0; | 
|  | 19437 | sprintf(Buffer, "%a", A); | 
|  | 19438 | B = atof(Buffer); | 
|  | 19439 | if (A != B) | 
|  | 19440 | return (1); | 
|  | 19441 | if (A != 0x1.999999999999ap-4) | 
|  | 19442 | return (1); | 
|  | 19443 | return (0); | 
|  | 19444 | ; | 
|  | 19445 | return 0; | 
|  | 19446 | } | 
|  | 19447 | _ACEOF | 
|  | 19448 | rm -f conftest$ac_exeext | 
|  | 19449 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 19450 | (eval $ac_link) 2>&5 | 
|  | 19451 | ac_status=$? | 
|  | 19452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19453 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 19454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 19455 | (eval $ac_try) 2>&5 | 
|  | 19456 | ac_status=$? | 
|  | 19457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19458 | (exit $ac_status); }; }; then | 
|  | 19459 | ac_c_printf_a=yes | 
|  | 19460 | else | 
|  | 19461 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 19462 | echo "$as_me: failed program was:" >&5 | 
|  | 19463 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19464 |  | 
|  | 19465 | ( exit $ac_status ) | 
|  | 19466 | ac_c_printf_a=no | 
|  | 19467 | fi | 
|  | 19468 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
|  | 19469 | fi | 
|  | 19470 | ac_ext=c | 
|  | 19471 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 19472 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19473 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19474 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 19475 |  | 
|  | 19476 | if test "$ac_c_printf_a" = "yes"; then | 
|  | 19477 |  | 
|  | 19478 | cat >>confdefs.h <<\_ACEOF | 
|  | 19479 | #define HAVE_PRINTF_A 1 | 
|  | 19480 | _ACEOF | 
|  | 19481 |  | 
|  | 19482 | fi | 
|  | 19483 |  | 
|  | 19484 |  | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 19485 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | 
|  | 19486 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | 
|  | 19487 | if test "${ac_cv_c_bigendian+set}" = set; then | 
|  | 19488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 19489 | else | 
|  | 19490 | # See if sys/param.h defines the BYTE_ORDER macro. | 
|  | 19491 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19492 | #line $LINENO "configure" | 
|  | 19493 | /* confdefs.h.  */ | 
|  | 19494 | _ACEOF | 
|  | 19495 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19496 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 19497 | /* end confdefs.h.  */ | 
|  | 19498 | #include <sys/types.h> | 
|  | 19499 | #include <sys/param.h> | 
|  | 19500 |  | 
|  | 19501 | int | 
|  | 19502 | main () | 
|  | 19503 | { | 
|  | 19504 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | 
|  | 19505 | bogus endian macros | 
|  | 19506 | #endif | 
|  | 19507 |  | 
|  | 19508 | ; | 
|  | 19509 | return 0; | 
|  | 19510 | } | 
|  | 19511 | _ACEOF | 
|  | 19512 | rm -f conftest.$ac_objext | 
|  | 19513 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 19514 | (eval $ac_compile) 2>&5 | 
|  | 19515 | ac_status=$? | 
|  | 19516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19517 | (exit $ac_status); } && | 
|  | 19518 | { ac_try='test -s conftest.$ac_objext' | 
|  | 19519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 19520 | (eval $ac_try) 2>&5 | 
|  | 19521 | ac_status=$? | 
|  | 19522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19523 | (exit $ac_status); }; }; then | 
|  | 19524 | # It does; now see whether it defined to BIG_ENDIAN or not. | 
|  | 19525 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19526 | #line $LINENO "configure" | 
|  | 19527 | /* confdefs.h.  */ | 
|  | 19528 | _ACEOF | 
|  | 19529 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19530 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 19531 | /* end confdefs.h.  */ | 
|  | 19532 | #include <sys/types.h> | 
|  | 19533 | #include <sys/param.h> | 
|  | 19534 |  | 
|  | 19535 | int | 
|  | 19536 | main () | 
|  | 19537 | { | 
|  | 19538 | #if BYTE_ORDER != BIG_ENDIAN | 
|  | 19539 | not big endian | 
|  | 19540 | #endif | 
|  | 19541 |  | 
|  | 19542 | ; | 
|  | 19543 | return 0; | 
|  | 19544 | } | 
|  | 19545 | _ACEOF | 
|  | 19546 | rm -f conftest.$ac_objext | 
|  | 19547 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 19548 | (eval $ac_compile) 2>&5 | 
|  | 19549 | ac_status=$? | 
|  | 19550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19551 | (exit $ac_status); } && | 
|  | 19552 | { ac_try='test -s conftest.$ac_objext' | 
|  | 19553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 19554 | (eval $ac_try) 2>&5 | 
|  | 19555 | ac_status=$? | 
|  | 19556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19557 | (exit $ac_status); }; }; then | 
|  | 19558 | ac_cv_c_bigendian=yes | 
|  | 19559 | else | 
|  | 19560 | echo "$as_me: failed program was:" >&5 | 
|  | 19561 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19562 |  | 
|  | 19563 | ac_cv_c_bigendian=no | 
|  | 19564 | fi | 
|  | 19565 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 19566 | else | 
|  | 19567 | echo "$as_me: failed program was:" >&5 | 
|  | 19568 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19569 |  | 
|  | 19570 | # It does not; compile a test program. | 
|  | 19571 | if test "$cross_compiling" = yes; then | 
|  | 19572 | # try to guess the endianness by grepping values into an object file | 
|  | 19573 | ac_cv_c_bigendian=unknown | 
|  | 19574 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19575 | #line $LINENO "configure" | 
|  | 19576 | /* confdefs.h.  */ | 
|  | 19577 | _ACEOF | 
|  | 19578 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19579 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 19580 | /* end confdefs.h.  */ | 
|  | 19581 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | 
|  | 19582 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | 
|  | 19583 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | 
|  | 19584 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | 
|  | 19585 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | 
|  | 19586 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | 
|  | 19587 | int | 
|  | 19588 | main () | 
|  | 19589 | { | 
|  | 19590 | _ascii (); _ebcdic (); | 
|  | 19591 | ; | 
|  | 19592 | return 0; | 
|  | 19593 | } | 
|  | 19594 | _ACEOF | 
|  | 19595 | rm -f conftest.$ac_objext | 
|  | 19596 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 19597 | (eval $ac_compile) 2>&5 | 
|  | 19598 | ac_status=$? | 
|  | 19599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19600 | (exit $ac_status); } && | 
|  | 19601 | { ac_try='test -s conftest.$ac_objext' | 
|  | 19602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 19603 | (eval $ac_try) 2>&5 | 
|  | 19604 | ac_status=$? | 
|  | 19605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19606 | (exit $ac_status); }; }; then | 
|  | 19607 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | 
|  | 19608 | ac_cv_c_bigendian=yes | 
|  | 19609 | fi | 
|  | 19610 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | 
|  | 19611 | if test "$ac_cv_c_bigendian" = unknown; then | 
|  | 19612 | ac_cv_c_bigendian=no | 
|  | 19613 | else | 
|  | 19614 | # finding both strings is unlikely to happen, but who knows? | 
|  | 19615 | ac_cv_c_bigendian=unknown | 
|  | 19616 | fi | 
|  | 19617 | fi | 
|  | 19618 | else | 
|  | 19619 | echo "$as_me: failed program was:" >&5 | 
|  | 19620 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19621 |  | 
|  | 19622 | fi | 
|  | 19623 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 19624 | else | 
|  | 19625 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19626 | #line $LINENO "configure" | 
|  | 19627 | /* confdefs.h.  */ | 
|  | 19628 | _ACEOF | 
|  | 19629 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19630 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 19631 | /* end confdefs.h.  */ | 
|  | 19632 | int | 
|  | 19633 | main () | 
|  | 19634 | { | 
|  | 19635 | /* Are we little or big endian?  From Harbison&Steele.  */ | 
|  | 19636 | union | 
|  | 19637 | { | 
|  | 19638 | long l; | 
|  | 19639 | char c[sizeof (long)]; | 
|  | 19640 | } u; | 
|  | 19641 | u.l = 1; | 
|  | 19642 | exit (u.c[sizeof (long) - 1] == 1); | 
|  | 19643 | } | 
|  | 19644 | _ACEOF | 
|  | 19645 | rm -f conftest$ac_exeext | 
|  | 19646 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 19647 | (eval $ac_link) 2>&5 | 
|  | 19648 | ac_status=$? | 
|  | 19649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19650 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 19651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 19652 | (eval $ac_try) 2>&5 | 
|  | 19653 | ac_status=$? | 
|  | 19654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19655 | (exit $ac_status); }; }; then | 
|  | 19656 | ac_cv_c_bigendian=no | 
|  | 19657 | else | 
|  | 19658 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 19659 | echo "$as_me: failed program was:" >&5 | 
|  | 19660 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19661 |  | 
|  | 19662 | ( exit $ac_status ) | 
|  | 19663 | ac_cv_c_bigendian=yes | 
|  | 19664 | fi | 
|  | 19665 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
|  | 19666 | fi | 
|  | 19667 | fi | 
|  | 19668 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 19669 | fi | 
|  | 19670 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | 
|  | 19671 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | 
|  | 19672 | case $ac_cv_c_bigendian in | 
|  | 19673 | yes) | 
|  | 19674 | ENDIAN=big | 
|  | 19675 | ;; | 
|  | 19676 | no) | 
|  | 19677 | ENDIAN=little | 
|  | 19678 | ;; | 
|  | 19679 | *) | 
|  | 19680 | { { echo "$as_me:$LINENO: error: unknown endianness | 
|  | 19681 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | 
|  | 19682 | echo "$as_me: error: unknown endianness | 
|  | 19683 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | 
|  | 19684 | { (exit 1); exit 1; }; } ;; | 
|  | 19685 | esac | 
|  | 19686 |  | 
|  | 19687 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19688 | echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 | 
|  | 19689 | echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6 | 
|  | 19690 | if test "${ac_cv_cxx_namespaces+set}" = set; then | 
|  | 19691 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 19692 | else | 
|  | 19693 |  | 
|  | 19694 |  | 
|  | 19695 | ac_ext=cc | 
|  | 19696 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 19697 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19698 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19699 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 19700 |  | 
|  | 19701 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19702 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19703 | /* confdefs.h.  */ | 
|  | 19704 | _ACEOF | 
|  | 19705 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19706 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 19707 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19708 | namespace Outer { namespace Inner { int i = 0; }} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19709 | int | 
|  | 19710 | main () | 
|  | 19711 | { | 
|  | 19712 | using namespace Outer::Inner; return i; | 
|  | 19713 | ; | 
|  | 19714 | return 0; | 
|  | 19715 | } | 
|  | 19716 | _ACEOF | 
|  | 19717 | rm -f conftest.$ac_objext | 
|  | 19718 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 19719 | (eval $ac_compile) 2>&5 | 
|  | 19720 | ac_status=$? | 
|  | 19721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19722 | (exit $ac_status); } && | 
|  | 19723 | { ac_try='test -s conftest.$ac_objext' | 
|  | 19724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 19725 | (eval $ac_try) 2>&5 | 
|  | 19726 | ac_status=$? | 
|  | 19727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19728 | (exit $ac_status); }; }; then | 
|  | 19729 | ac_cv_cxx_namespaces=yes | 
|  | 19730 | else | 
|  | 19731 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19732 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19733 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19734 | ac_cv_cxx_namespaces=no | 
|  | 19735 | fi | 
|  | 19736 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 19737 | ac_ext=c | 
|  | 19738 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 19739 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19740 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19741 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 19742 |  | 
|  | 19743 |  | 
|  | 19744 | fi | 
|  | 19745 | echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 | 
|  | 19746 | echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6 | 
|  | 19747 | if test "$ac_cv_cxx_namespaces" = yes; then | 
|  | 19748 |  | 
|  | 19749 | cat >>confdefs.h <<\_ACEOF | 
|  | 19750 | #define HAVE_NAMESPACES | 
|  | 19751 | _ACEOF | 
|  | 19752 |  | 
|  | 19753 | fi | 
|  | 19754 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19755 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5 | 
|  | 19756 | echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6 | 
|  | 19757 | if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 19759 | else | 
|  | 19760 |  | 
|  | 19761 |  | 
|  | 19762 |  | 
|  | 19763 | ac_ext=cc | 
|  | 19764 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 19765 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19766 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19767 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 19768 |  | 
|  | 19769 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19770 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19771 | /* confdefs.h.  */ | 
|  | 19772 | _ACEOF | 
|  | 19773 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19774 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 19775 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19776 | #include <ext/hash_map> | 
|  | 19777 | #ifdef HAVE_NAMESPACES | 
|  | 19778 | using namespace std; | 
|  | 19779 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19780 | int | 
|  | 19781 | main () | 
|  | 19782 | { | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19783 | hash_map<int, int> t; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19784 | ; | 
|  | 19785 | return 0; | 
|  | 19786 | } | 
|  | 19787 | _ACEOF | 
|  | 19788 | rm -f conftest.$ac_objext | 
|  | 19789 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 19790 | (eval $ac_compile) 2>&5 | 
|  | 19791 | ac_status=$? | 
|  | 19792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19793 | (exit $ac_status); } && | 
|  | 19794 | { ac_try='test -s conftest.$ac_objext' | 
|  | 19795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 19796 | (eval $ac_try) 2>&5 | 
|  | 19797 | ac_status=$? | 
|  | 19798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19799 | (exit $ac_status); }; }; then | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19800 | ac_cv_cxx_have_std_ext_hash_map=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19801 | else | 
|  | 19802 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19803 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19804 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19805 | ac_cv_cxx_have_std_ext_hash_map=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19806 | fi | 
|  | 19807 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 19808 | ac_ext=c | 
|  | 19809 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 19810 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19811 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19812 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 19813 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19814 | fi | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19815 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5 | 
|  | 19816 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6 | 
|  | 19817 | if test "$ac_cv_cxx_have_std_ext_hash_map" = yes; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19818 |  | 
|  | 19819 | cat >>confdefs.h <<\_ACEOF | 
|  | 19820 | #define HAVE_STD_EXT_HASH_MAP | 
|  | 19821 | _ACEOF | 
|  | 19822 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19823 | fi | 
|  | 19824 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5 | 
|  | 19825 | echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6 | 
|  | 19826 | if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then | 
|  | 19827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 19828 | else | 
|  | 19829 |  | 
|  | 19830 |  | 
|  | 19831 |  | 
|  | 19832 | ac_ext=cc | 
|  | 19833 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 19834 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19835 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19836 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 19837 |  | 
|  | 19838 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19839 | #line $LINENO "configure" | 
|  | 19840 | /* confdefs.h.  */ | 
|  | 19841 | _ACEOF | 
|  | 19842 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19843 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 19844 | /* end confdefs.h.  */ | 
|  | 19845 | #include <ext/hash_map> | 
|  | 19846 | #ifdef HAVE_NAMESPACES | 
|  | 19847 | using namespace __gnu_cxx; | 
|  | 19848 | #endif | 
|  | 19849 | int | 
|  | 19850 | main () | 
|  | 19851 | { | 
|  | 19852 | hash_map<int,int> t; | 
|  | 19853 | ; | 
|  | 19854 | return 0; | 
|  | 19855 | } | 
|  | 19856 | _ACEOF | 
|  | 19857 | rm -f conftest.$ac_objext | 
|  | 19858 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 19859 | (eval $ac_compile) 2>&5 | 
|  | 19860 | ac_status=$? | 
|  | 19861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19862 | (exit $ac_status); } && | 
|  | 19863 | { ac_try='test -s conftest.$ac_objext' | 
|  | 19864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 19865 | (eval $ac_try) 2>&5 | 
|  | 19866 | ac_status=$? | 
|  | 19867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19868 | (exit $ac_status); }; }; then | 
|  | 19869 | ac_cv_cxx_have_gnu_ext_hash_map=yes | 
|  | 19870 | else | 
|  | 19871 | echo "$as_me: failed program was:" >&5 | 
|  | 19872 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19873 |  | 
|  | 19874 | ac_cv_cxx_have_gnu_ext_hash_map=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19875 | fi | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19876 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 19877 | ac_ext=c | 
|  | 19878 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 19879 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19880 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19881 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 19882 |  | 
|  | 19883 | fi | 
|  | 19884 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5 | 
|  | 19885 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6 | 
|  | 19886 | if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19887 |  | 
|  | 19888 | cat >>confdefs.h <<\_ACEOF | 
|  | 19889 | #define HAVE_GNU_EXT_HASH_MAP | 
|  | 19890 | _ACEOF | 
|  | 19891 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19892 | fi | 
|  | 19893 | echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5 | 
|  | 19894 | echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6 | 
|  | 19895 | if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then | 
|  | 19896 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 19897 | else | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19898 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19899 |  | 
|  | 19900 |  | 
|  | 19901 | ac_ext=cc | 
|  | 19902 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 19903 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19904 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19905 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 19906 |  | 
|  | 19907 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19908 | #line $LINENO "configure" | 
|  | 19909 | /* confdefs.h.  */ | 
|  | 19910 | _ACEOF | 
|  | 19911 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19912 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 19913 | /* end confdefs.h.  */ | 
|  | 19914 | #include <hash_map> | 
|  | 19915 | int | 
|  | 19916 | main () | 
|  | 19917 | { | 
|  | 19918 | hash_map<int,int> t; | 
|  | 19919 | ; | 
|  | 19920 | return 0; | 
|  | 19921 | } | 
|  | 19922 | _ACEOF | 
|  | 19923 | rm -f conftest.$ac_objext | 
|  | 19924 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 19925 | (eval $ac_compile) 2>&5 | 
|  | 19926 | ac_status=$? | 
|  | 19927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19928 | (exit $ac_status); } && | 
|  | 19929 | { ac_try='test -s conftest.$ac_objext' | 
|  | 19930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 19931 | (eval $ac_try) 2>&5 | 
|  | 19932 | ac_status=$? | 
|  | 19933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19934 | (exit $ac_status); }; }; then | 
|  | 19935 | ac_cv_cxx_have_global_hash_map=yes | 
|  | 19936 | else | 
|  | 19937 | echo "$as_me: failed program was:" >&5 | 
|  | 19938 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19939 |  | 
|  | 19940 | ac_cv_cxx_have_global_hash_map=no | 
|  | 19941 | fi | 
|  | 19942 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 19943 | ac_ext=c | 
|  | 19944 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 19945 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19946 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19947 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 19948 |  | 
|  | 19949 | fi | 
|  | 19950 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5 | 
|  | 19951 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6 | 
|  | 19952 | if test "$ac_cv_cxx_have_global_hash_map" = yes; then | 
|  | 19953 |  | 
|  | 19954 | cat >>confdefs.h <<\_ACEOF | 
|  | 19955 | #define HAVE_GLOBAL_HASH_MAP | 
|  | 19956 | _ACEOF | 
|  | 19957 |  | 
|  | 19958 | fi | 
|  | 19959 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5 | 
|  | 19960 | echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6 | 
|  | 19961 | if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 19963 | else | 
|  | 19964 |  | 
|  | 19965 |  | 
|  | 19966 |  | 
|  | 19967 | ac_ext=cc | 
|  | 19968 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 19969 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19970 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19971 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 19972 |  | 
|  | 19973 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19974 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19975 | /* confdefs.h.  */ | 
|  | 19976 | _ACEOF | 
|  | 19977 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19978 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 19979 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19980 | #include <ext/hash_set> | 
|  | 19981 | #ifdef HAVE_NAMESPACES | 
|  | 19982 | using namespace std; | 
|  | 19983 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19984 | int | 
|  | 19985 | main () | 
|  | 19986 | { | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19987 | hash_set<int> t; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19988 | ; | 
|  | 19989 | return 0; | 
|  | 19990 | } | 
|  | 19991 | _ACEOF | 
|  | 19992 | rm -f conftest.$ac_objext | 
|  | 19993 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 19994 | (eval $ac_compile) 2>&5 | 
|  | 19995 | ac_status=$? | 
|  | 19996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19997 | (exit $ac_status); } && | 
|  | 19998 | { ac_try='test -s conftest.$ac_objext' | 
|  | 19999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 20000 | (eval $ac_try) 2>&5 | 
|  | 20001 | ac_status=$? | 
|  | 20002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20003 | (exit $ac_status); }; }; then | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 20004 | ac_cv_cxx_have_std_ext_hash_set=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20005 | else | 
|  | 20006 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20007 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20008 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 20009 | ac_cv_cxx_have_std_ext_hash_set=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20010 | fi | 
|  | 20011 | rm -f conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 20012 | ac_ext=c | 
|  | 20013 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 20014 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20015 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20016 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 20017 |  | 
|  | 20018 | fi | 
|  | 20019 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5 | 
|  | 20020 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6 | 
|  | 20021 | if test "$ac_cv_cxx_have_std_ext_hash_set" = yes; then | 
|  | 20022 |  | 
|  | 20023 | cat >>confdefs.h <<\_ACEOF | 
|  | 20024 | #define HAVE_STD_EXT_HASH_SET | 
|  | 20025 | _ACEOF | 
|  | 20026 |  | 
|  | 20027 | fi | 
|  | 20028 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5 | 
|  | 20029 | echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6 | 
|  | 20030 | if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then | 
|  | 20031 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20032 | else | 
|  | 20033 |  | 
|  | 20034 |  | 
|  | 20035 |  | 
|  | 20036 | ac_ext=cc | 
|  | 20037 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 20038 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20039 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20040 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 20041 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20042 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20043 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20044 | /* confdefs.h.  */ | 
|  | 20045 | _ACEOF | 
|  | 20046 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20047 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 20048 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20049 | #include <ext/hash_set> | 
|  | 20050 | #ifdef HAVE_NAMESPACES | 
|  | 20051 | using namespace __gnu_cxx; | 
|  | 20052 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20053 | int | 
|  | 20054 | main () | 
|  | 20055 | { | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 20056 | hash_set<int> t; | 
|  | 20057 | ; | 
|  | 20058 | return 0; | 
|  | 20059 | } | 
|  | 20060 | _ACEOF | 
|  | 20061 | rm -f conftest.$ac_objext | 
|  | 20062 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 20063 | (eval $ac_compile) 2>&5 | 
|  | 20064 | ac_status=$? | 
|  | 20065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20066 | (exit $ac_status); } && | 
|  | 20067 | { ac_try='test -s conftest.$ac_objext' | 
|  | 20068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 20069 | (eval $ac_try) 2>&5 | 
|  | 20070 | ac_status=$? | 
|  | 20071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20072 | (exit $ac_status); }; }; then | 
|  | 20073 | ac_cv_cxx_have_gnu_ext_hash_set=yes | 
|  | 20074 | else | 
|  | 20075 | echo "$as_me: failed program was:" >&5 | 
|  | 20076 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20077 |  | 
|  | 20078 | ac_cv_cxx_have_gnu_ext_hash_set=no | 
|  | 20079 | fi | 
|  | 20080 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 20081 | ac_ext=c | 
|  | 20082 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 20083 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20084 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20085 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 20086 |  | 
|  | 20087 | fi | 
|  | 20088 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5 | 
|  | 20089 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6 | 
|  | 20090 | if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes; then | 
|  | 20091 |  | 
|  | 20092 | cat >>confdefs.h <<\_ACEOF | 
|  | 20093 | #define HAVE_GNU_EXT_HASH_SET | 
|  | 20094 | _ACEOF | 
|  | 20095 |  | 
|  | 20096 | fi | 
|  | 20097 | echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5 | 
|  | 20098 | echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6 | 
|  | 20099 | if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then | 
|  | 20100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20101 | else | 
|  | 20102 |  | 
|  | 20103 |  | 
|  | 20104 |  | 
|  | 20105 | ac_ext=cc | 
|  | 20106 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 20107 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20108 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20109 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 20110 |  | 
|  | 20111 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20112 | #line $LINENO "configure" | 
|  | 20113 | /* confdefs.h.  */ | 
|  | 20114 | _ACEOF | 
|  | 20115 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20116 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 20117 | /* end confdefs.h.  */ | 
|  | 20118 | #include <hash_set> | 
|  | 20119 | int | 
|  | 20120 | main () | 
|  | 20121 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20122 | hash_set<int> t; return 0; | 
|  | 20123 | ; | 
|  | 20124 | return 0; | 
|  | 20125 | } | 
|  | 20126 | _ACEOF | 
|  | 20127 | rm -f conftest.$ac_objext | 
|  | 20128 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 20129 | (eval $ac_compile) 2>&5 | 
|  | 20130 | ac_status=$? | 
|  | 20131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20132 | (exit $ac_status); } && | 
|  | 20133 | { ac_try='test -s conftest.$ac_objext' | 
|  | 20134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 20135 | (eval $ac_try) 2>&5 | 
|  | 20136 | ac_status=$? | 
|  | 20137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20138 | (exit $ac_status); }; }; then | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 20139 | ac_cv_cxx_have_global_hash_set=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20140 | else | 
|  | 20141 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20142 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20143 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 20144 | ac_cv_cxx_have_global_hash_set=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20145 | fi | 
|  | 20146 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 20147 | ac_ext=c | 
|  | 20148 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 20149 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20150 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20151 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 20152 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20153 | fi | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 20154 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5 | 
|  | 20155 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6 | 
|  | 20156 | if test "$ac_cv_cxx_have_global_hash_set" = yes; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20157 |  | 
|  | 20158 | cat >>confdefs.h <<\_ACEOF | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 20159 | #define HAVE_GLOBAL_HASH_SET | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20160 | _ACEOF | 
|  | 20161 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 20162 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20163 | echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5 | 
|  | 20164 | echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6 | 
|  | 20165 | if test "${ac_cv_cxx_have_ext_slist+set}" = set; then | 
|  | 20166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20167 | else | 
|  | 20168 |  | 
|  | 20169 |  | 
|  | 20170 |  | 
|  | 20171 | ac_ext=cc | 
|  | 20172 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 20173 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20174 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20175 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 20176 |  | 
|  | 20177 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20178 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20179 | /* confdefs.h.  */ | 
|  | 20180 | _ACEOF | 
|  | 20181 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20182 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 20183 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20184 | #include <ext/slist> | 
|  | 20185 | #ifdef HAVE_NAMESPACES | 
|  | 20186 | using namespace std; | 
|  | 20187 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20188 | int | 
|  | 20189 | main () | 
|  | 20190 | { | 
|  | 20191 | slist<int> s; return 0; | 
|  | 20192 | ; | 
|  | 20193 | return 0; | 
|  | 20194 | } | 
|  | 20195 | _ACEOF | 
|  | 20196 | rm -f conftest.$ac_objext | 
|  | 20197 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 20198 | (eval $ac_compile) 2>&5 | 
|  | 20199 | ac_status=$? | 
|  | 20200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20201 | (exit $ac_status); } && | 
|  | 20202 | { ac_try='test -s conftest.$ac_objext' | 
|  | 20203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 20204 | (eval $ac_try) 2>&5 | 
|  | 20205 | ac_status=$? | 
|  | 20206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20207 | (exit $ac_status); }; }; then | 
|  | 20208 | ac_cv_cxx_have_ext_slist=std | 
|  | 20209 | else | 
|  | 20210 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20211 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20212 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20213 | ac_cv_cxx_have_ext_slist=no | 
|  | 20214 | fi | 
|  | 20215 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 20216 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20217 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20218 | /* confdefs.h.  */ | 
|  | 20219 | _ACEOF | 
|  | 20220 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20221 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 20222 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20223 | #include <ext/slist> | 
|  | 20224 | #ifdef HAVE_NAMESPACES | 
|  | 20225 | using namespace __gnu_cxx; | 
|  | 20226 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20227 | int | 
|  | 20228 | main () | 
|  | 20229 | { | 
|  | 20230 | slist<int> s; return 0; | 
|  | 20231 | ; | 
|  | 20232 | return 0; | 
|  | 20233 | } | 
|  | 20234 | _ACEOF | 
|  | 20235 | rm -f conftest.$ac_objext | 
|  | 20236 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 20237 | (eval $ac_compile) 2>&5 | 
|  | 20238 | ac_status=$? | 
|  | 20239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20240 | (exit $ac_status); } && | 
|  | 20241 | { ac_try='test -s conftest.$ac_objext' | 
|  | 20242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 20243 | (eval $ac_try) 2>&5 | 
|  | 20244 | ac_status=$? | 
|  | 20245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20246 | (exit $ac_status); }; }; then | 
|  | 20247 | ac_cv_cxx_have_ext_slist=gnu | 
|  | 20248 | else | 
|  | 20249 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20250 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20251 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20252 | ac_cv_cxx_have_ext_slist=no | 
|  | 20253 | fi | 
|  | 20254 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 20255 |  | 
|  | 20256 | ac_ext=c | 
|  | 20257 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 20258 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20259 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20260 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 20261 |  | 
|  | 20262 |  | 
|  | 20263 | fi | 
|  | 20264 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5 | 
|  | 20265 | echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6 | 
|  | 20266 | if test "$ac_cv_cxx_have_ext_slist" = std; then | 
|  | 20267 |  | 
|  | 20268 | cat >>confdefs.h <<\_ACEOF | 
|  | 20269 | #define HAVE_EXT_SLIST std | 
|  | 20270 | _ACEOF | 
|  | 20271 |  | 
|  | 20272 | fi | 
|  | 20273 | if test "$ac_cv_cxx_have_ext_slist" = gnu; then | 
|  | 20274 |  | 
|  | 20275 | cat >>confdefs.h <<\_ACEOF | 
|  | 20276 | #define HAVE_EXT_SLIST gnu | 
|  | 20277 | _ACEOF | 
|  | 20278 |  | 
|  | 20279 | fi | 
|  | 20280 |  | 
|  | 20281 | echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 | 
|  | 20282 | echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6 | 
|  | 20283 | if test "${ac_cv_cxx_have_std_iterator+set}" = set; then | 
|  | 20284 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20285 | else | 
|  | 20286 |  | 
|  | 20287 |  | 
|  | 20288 |  | 
|  | 20289 | ac_ext=cc | 
|  | 20290 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 20291 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20292 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20293 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 20294 |  | 
|  | 20295 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20296 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20297 | /* confdefs.h.  */ | 
|  | 20298 | _ACEOF | 
|  | 20299 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20300 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 20301 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20302 | #include <iterator> | 
|  | 20303 | #ifdef HAVE_NAMESPACES | 
|  | 20304 | using namespace std; | 
|  | 20305 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20306 | int | 
|  | 20307 | main () | 
|  | 20308 | { | 
|  | 20309 | iterator<int,int,int> t; return 0; | 
|  | 20310 | ; | 
|  | 20311 | return 0; | 
|  | 20312 | } | 
|  | 20313 | _ACEOF | 
|  | 20314 | rm -f conftest.$ac_objext | 
|  | 20315 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 20316 | (eval $ac_compile) 2>&5 | 
|  | 20317 | ac_status=$? | 
|  | 20318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20319 | (exit $ac_status); } && | 
|  | 20320 | { ac_try='test -s conftest.$ac_objext' | 
|  | 20321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 20322 | (eval $ac_try) 2>&5 | 
|  | 20323 | ac_status=$? | 
|  | 20324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20325 | (exit $ac_status); }; }; then | 
|  | 20326 | ac_cv_cxx_have_std_iterator=yes | 
|  | 20327 | else | 
|  | 20328 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20329 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20330 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20331 | ac_cv_cxx_have_std_iterator=no | 
|  | 20332 | fi | 
|  | 20333 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 20334 | ac_ext=c | 
|  | 20335 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 20336 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20337 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20338 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 20339 |  | 
|  | 20340 |  | 
|  | 20341 | fi | 
|  | 20342 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 | 
|  | 20343 | echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6 | 
|  | 20344 | if test "$ac_cv_cxx_have_std_iterator" = yes; then | 
|  | 20345 |  | 
|  | 20346 | cat >>confdefs.h <<\_ACEOF | 
|  | 20347 | #define HAVE_STD_ITERATOR | 
|  | 20348 | _ACEOF | 
|  | 20349 |  | 
|  | 20350 | fi | 
|  | 20351 |  | 
|  | 20352 | echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 | 
|  | 20353 | echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6 | 
|  | 20354 | if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then | 
|  | 20355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20356 | else | 
|  | 20357 |  | 
|  | 20358 |  | 
|  | 20359 |  | 
|  | 20360 | ac_ext=cc | 
|  | 20361 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 20362 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20363 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20364 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 20365 |  | 
|  | 20366 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20367 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20368 | /* confdefs.h.  */ | 
|  | 20369 | _ACEOF | 
|  | 20370 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20371 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 20372 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20373 | #include <iterator> | 
|  | 20374 | #ifdef HAVE_NAMESPACES | 
|  | 20375 | using namespace std; | 
|  | 20376 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20377 | int | 
|  | 20378 | main () | 
|  | 20379 | { | 
| John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 20380 | bidirectional_iterator<int,int> t; return 0; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20381 | ; | 
|  | 20382 | return 0; | 
|  | 20383 | } | 
|  | 20384 | _ACEOF | 
|  | 20385 | rm -f conftest.$ac_objext | 
|  | 20386 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 20387 | (eval $ac_compile) 2>&5 | 
|  | 20388 | ac_status=$? | 
|  | 20389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20390 | (exit $ac_status); } && | 
|  | 20391 | { ac_try='test -s conftest.$ac_objext' | 
|  | 20392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 20393 | (eval $ac_try) 2>&5 | 
|  | 20394 | ac_status=$? | 
|  | 20395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20396 | (exit $ac_status); }; }; then | 
|  | 20397 | ac_cv_cxx_have_bi_iterator=yes | 
|  | 20398 | else | 
|  | 20399 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20400 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20401 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20402 | ac_cv_cxx_have_bi_iterator=no | 
|  | 20403 | fi | 
|  | 20404 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 20405 | ac_ext=c | 
|  | 20406 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 20407 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20408 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20409 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 20410 |  | 
|  | 20411 |  | 
|  | 20412 | fi | 
|  | 20413 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 | 
|  | 20414 | echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6 | 
|  | 20415 | if test "$ac_cv_cxx_have_bi_iterator" = yes; then | 
|  | 20416 |  | 
|  | 20417 | cat >>confdefs.h <<\_ACEOF | 
|  | 20418 | #define HAVE_BI_ITERATOR | 
|  | 20419 | _ACEOF | 
|  | 20420 |  | 
|  | 20421 | fi | 
|  | 20422 |  | 
|  | 20423 | echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 | 
|  | 20424 | echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6 | 
|  | 20425 | if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then | 
|  | 20426 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20427 | else | 
|  | 20428 |  | 
|  | 20429 |  | 
|  | 20430 |  | 
|  | 20431 | ac_ext=cc | 
|  | 20432 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 20433 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20434 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20435 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 20436 |  | 
|  | 20437 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20438 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20439 | /* confdefs.h.  */ | 
|  | 20440 | _ACEOF | 
|  | 20441 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20442 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 20443 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20444 | #include <iterator> | 
|  | 20445 | #ifdef HAVE_NAMESPACES | 
|  | 20446 | using namespace std; | 
|  | 20447 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20448 | int | 
|  | 20449 | main () | 
|  | 20450 | { | 
| John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 20451 | forward_iterator<int,int> t; return 0; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20452 | ; | 
|  | 20453 | return 0; | 
|  | 20454 | } | 
|  | 20455 | _ACEOF | 
|  | 20456 | rm -f conftest.$ac_objext | 
|  | 20457 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 20458 | (eval $ac_compile) 2>&5 | 
|  | 20459 | ac_status=$? | 
|  | 20460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20461 | (exit $ac_status); } && | 
|  | 20462 | { ac_try='test -s conftest.$ac_objext' | 
|  | 20463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 20464 | (eval $ac_try) 2>&5 | 
|  | 20465 | ac_status=$? | 
|  | 20466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20467 | (exit $ac_status); }; }; then | 
|  | 20468 | ac_cv_cxx_have_fwd_iterator=yes | 
|  | 20469 | else | 
|  | 20470 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20471 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20472 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20473 | ac_cv_cxx_have_fwd_iterator=no | 
|  | 20474 | fi | 
|  | 20475 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 20476 | ac_ext=c | 
|  | 20477 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 20478 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20479 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20480 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 20481 |  | 
|  | 20482 |  | 
|  | 20483 | fi | 
|  | 20484 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 | 
|  | 20485 | echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6 | 
|  | 20486 | if test "$ac_cv_cxx_have_fwd_iterator" = yes; then | 
|  | 20487 |  | 
|  | 20488 | cat >>confdefs.h <<\_ACEOF | 
|  | 20489 | #define HAVE_FWD_ITERATOR | 
|  | 20490 | _ACEOF | 
|  | 20491 |  | 
|  | 20492 | fi | 
|  | 20493 |  | 
|  | 20494 |  | 
|  | 20495 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | 
|  | 20496 | # for constant arguments.  Useless! | 
|  | 20497 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 | 
|  | 20498 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | 
|  | 20499 | if test "${ac_cv_working_alloca_h+set}" = set; then | 
|  | 20500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20501 | else | 
|  | 20502 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20503 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20504 | /* confdefs.h.  */ | 
|  | 20505 | _ACEOF | 
|  | 20506 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20507 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 20508 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20509 | #include <alloca.h> | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20510 | int | 
|  | 20511 | main () | 
|  | 20512 | { | 
|  | 20513 | char *p = (char *) alloca (2 * sizeof (int)); | 
|  | 20514 | ; | 
|  | 20515 | return 0; | 
|  | 20516 | } | 
|  | 20517 | _ACEOF | 
|  | 20518 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 20519 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 20520 | (eval $ac_link) 2>&5 | 
|  | 20521 | ac_status=$? | 
|  | 20522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20523 | (exit $ac_status); } && | 
|  | 20524 | { ac_try='test -s conftest$ac_exeext' | 
|  | 20525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 20526 | (eval $ac_try) 2>&5 | 
|  | 20527 | ac_status=$? | 
|  | 20528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20529 | (exit $ac_status); }; }; then | 
|  | 20530 | ac_cv_working_alloca_h=yes | 
|  | 20531 | else | 
|  | 20532 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20533 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20534 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20535 | ac_cv_working_alloca_h=no | 
|  | 20536 | fi | 
|  | 20537 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 20538 | fi | 
|  | 20539 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | 
|  | 20540 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | 
|  | 20541 | if test $ac_cv_working_alloca_h = yes; then | 
|  | 20542 |  | 
|  | 20543 | cat >>confdefs.h <<\_ACEOF | 
|  | 20544 | #define HAVE_ALLOCA_H 1 | 
|  | 20545 | _ACEOF | 
|  | 20546 |  | 
|  | 20547 | fi | 
|  | 20548 |  | 
|  | 20549 | echo "$as_me:$LINENO: checking for alloca" >&5 | 
|  | 20550 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | 
|  | 20551 | if test "${ac_cv_func_alloca_works+set}" = set; then | 
|  | 20552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20553 | else | 
|  | 20554 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20555 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20556 | /* confdefs.h.  */ | 
|  | 20557 | _ACEOF | 
|  | 20558 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20559 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 20560 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20561 | #ifdef __GNUC__ | 
|  | 20562 | # define alloca __builtin_alloca | 
|  | 20563 | #else | 
|  | 20564 | # ifdef _MSC_VER | 
|  | 20565 | #  include <malloc.h> | 
|  | 20566 | #  define alloca _alloca | 
|  | 20567 | # else | 
|  | 20568 | #  if HAVE_ALLOCA_H | 
|  | 20569 | #   include <alloca.h> | 
|  | 20570 | #  else | 
|  | 20571 | #   ifdef _AIX | 
|  | 20572 | #pragma alloca | 
|  | 20573 | #   else | 
|  | 20574 | #    ifndef alloca /* predefined by HP cc +Olibcalls */ | 
|  | 20575 | char *alloca (); | 
|  | 20576 | #    endif | 
|  | 20577 | #   endif | 
|  | 20578 | #  endif | 
|  | 20579 | # endif | 
|  | 20580 | #endif | 
|  | 20581 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20582 | int | 
|  | 20583 | main () | 
|  | 20584 | { | 
|  | 20585 | char *p = (char *) alloca (1); | 
|  | 20586 | ; | 
|  | 20587 | return 0; | 
|  | 20588 | } | 
|  | 20589 | _ACEOF | 
|  | 20590 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 20591 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 20592 | (eval $ac_link) 2>&5 | 
|  | 20593 | ac_status=$? | 
|  | 20594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20595 | (exit $ac_status); } && | 
|  | 20596 | { ac_try='test -s conftest$ac_exeext' | 
|  | 20597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 20598 | (eval $ac_try) 2>&5 | 
|  | 20599 | ac_status=$? | 
|  | 20600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20601 | (exit $ac_status); }; }; then | 
|  | 20602 | ac_cv_func_alloca_works=yes | 
|  | 20603 | else | 
|  | 20604 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20605 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20606 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20607 | ac_cv_func_alloca_works=no | 
|  | 20608 | fi | 
|  | 20609 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 20610 | fi | 
|  | 20611 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 | 
|  | 20612 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | 
|  | 20613 |  | 
|  | 20614 | if test $ac_cv_func_alloca_works = yes; then | 
|  | 20615 |  | 
|  | 20616 | cat >>confdefs.h <<\_ACEOF | 
|  | 20617 | #define HAVE_ALLOCA 1 | 
|  | 20618 | _ACEOF | 
|  | 20619 |  | 
|  | 20620 | else | 
|  | 20621 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | 
|  | 20622 | # that cause trouble.  Some versions do not even contain alloca or | 
|  | 20623 | # contain a buggy version.  If you still want to use their alloca, | 
|  | 20624 | # use ar to extract alloca.o from them instead of compiling alloca.c. | 
|  | 20625 |  | 
|  | 20626 | ALLOCA=alloca.$ac_objext | 
|  | 20627 |  | 
|  | 20628 | cat >>confdefs.h <<\_ACEOF | 
|  | 20629 | #define C_ALLOCA 1 | 
|  | 20630 | _ACEOF | 
|  | 20631 |  | 
|  | 20632 |  | 
|  | 20633 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | 
|  | 20634 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | 
|  | 20635 | if test "${ac_cv_os_cray+set}" = set; then | 
|  | 20636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20637 | else | 
|  | 20638 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20639 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20640 | /* confdefs.h.  */ | 
|  | 20641 | _ACEOF | 
|  | 20642 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20643 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 20644 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20645 | #if defined(CRAY) && ! defined(CRAY2) | 
|  | 20646 | webecray | 
|  | 20647 | #else | 
|  | 20648 | wenotbecray | 
|  | 20649 | #endif | 
|  | 20650 |  | 
|  | 20651 | _ACEOF | 
|  | 20652 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20653 | $EGREP "webecray" >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20654 | ac_cv_os_cray=yes | 
|  | 20655 | else | 
|  | 20656 | ac_cv_os_cray=no | 
|  | 20657 | fi | 
|  | 20658 | rm -f conftest* | 
|  | 20659 |  | 
|  | 20660 | fi | 
|  | 20661 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 | 
|  | 20662 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | 
|  | 20663 | if test $ac_cv_os_cray = yes; then | 
|  | 20664 | for ac_func in _getb67 GETB67 getb67; do | 
|  | 20665 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 20666 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 20667 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
|  | 20668 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
|  | 20669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20670 | else | 
|  | 20671 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20672 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20673 | /* confdefs.h.  */ | 
|  | 20674 | _ACEOF | 
|  | 20675 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20676 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 20677 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20678 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20679 | which can conflict with char $ac_func (); below. | 
|  | 20680 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 20681 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 20682 | #ifdef __STDC__ | 
|  | 20683 | # include <limits.h> | 
|  | 20684 | #else | 
|  | 20685 | # include <assert.h> | 
|  | 20686 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20687 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 20688 | #ifdef __cplusplus | 
|  | 20689 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20690 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20691 | #endif | 
|  | 20692 | /* We use char because int might match the return type of a gcc2 | 
|  | 20693 | builtin and then its argument prototype would still apply.  */ | 
|  | 20694 | char $ac_func (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20695 | /* The GNU C library defines this for functions which it implements | 
|  | 20696 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 20697 | something starting with __ and the normal name is an alias.  */ | 
|  | 20698 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|  | 20699 | choke me | 
|  | 20700 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20701 | char (*f) () = $ac_func; | 
|  | 20702 | #endif | 
|  | 20703 | #ifdef __cplusplus | 
|  | 20704 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20705 | #endif | 
|  | 20706 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20707 | int | 
|  | 20708 | main () | 
|  | 20709 | { | 
|  | 20710 | return f != $ac_func; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20711 | ; | 
|  | 20712 | return 0; | 
|  | 20713 | } | 
|  | 20714 | _ACEOF | 
|  | 20715 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 20716 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 20717 | (eval $ac_link) 2>&5 | 
|  | 20718 | ac_status=$? | 
|  | 20719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20720 | (exit $ac_status); } && | 
|  | 20721 | { ac_try='test -s conftest$ac_exeext' | 
|  | 20722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 20723 | (eval $ac_try) 2>&5 | 
|  | 20724 | ac_status=$? | 
|  | 20725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20726 | (exit $ac_status); }; }; then | 
|  | 20727 | eval "$as_ac_var=yes" | 
|  | 20728 | else | 
|  | 20729 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20730 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20731 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20732 | eval "$as_ac_var=no" | 
|  | 20733 | fi | 
|  | 20734 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 20735 | fi | 
|  | 20736 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
|  | 20737 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
|  | 20738 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
|  | 20739 |  | 
|  | 20740 | cat >>confdefs.h <<_ACEOF | 
|  | 20741 | #define CRAY_STACKSEG_END $ac_func | 
|  | 20742 | _ACEOF | 
|  | 20743 |  | 
|  | 20744 | break | 
|  | 20745 | fi | 
|  | 20746 |  | 
|  | 20747 | done | 
|  | 20748 | fi | 
|  | 20749 |  | 
|  | 20750 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 | 
|  | 20751 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | 
|  | 20752 | if test "${ac_cv_c_stack_direction+set}" = set; then | 
|  | 20753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20754 | else | 
|  | 20755 | if test "$cross_compiling" = yes; then | 
|  | 20756 | ac_cv_c_stack_direction=0 | 
|  | 20757 | else | 
|  | 20758 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20759 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20760 | /* confdefs.h.  */ | 
|  | 20761 | _ACEOF | 
|  | 20762 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20763 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 20764 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20765 | int | 
|  | 20766 | find_stack_direction () | 
|  | 20767 | { | 
|  | 20768 | static char *addr = 0; | 
|  | 20769 | auto char dummy; | 
|  | 20770 | if (addr == 0) | 
|  | 20771 | { | 
|  | 20772 | addr = &dummy; | 
|  | 20773 | return find_stack_direction (); | 
|  | 20774 | } | 
|  | 20775 | else | 
|  | 20776 | return (&dummy > addr) ? 1 : -1; | 
|  | 20777 | } | 
|  | 20778 |  | 
|  | 20779 | int | 
|  | 20780 | main () | 
|  | 20781 | { | 
|  | 20782 | exit (find_stack_direction () < 0); | 
|  | 20783 | } | 
|  | 20784 | _ACEOF | 
|  | 20785 | rm -f conftest$ac_exeext | 
|  | 20786 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 20787 | (eval $ac_link) 2>&5 | 
|  | 20788 | ac_status=$? | 
|  | 20789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20790 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 20791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 20792 | (eval $ac_try) 2>&5 | 
|  | 20793 | ac_status=$? | 
|  | 20794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20795 | (exit $ac_status); }; }; then | 
|  | 20796 | ac_cv_c_stack_direction=1 | 
|  | 20797 | else | 
|  | 20798 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 20799 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20800 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20801 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20802 | ( exit $ac_status ) | 
|  | 20803 | ac_cv_c_stack_direction=-1 | 
|  | 20804 | fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20805 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20806 | fi | 
|  | 20807 | fi | 
|  | 20808 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 | 
|  | 20809 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | 
|  | 20810 |  | 
|  | 20811 | cat >>confdefs.h <<_ACEOF | 
|  | 20812 | #define STACK_DIRECTION $ac_cv_c_stack_direction | 
|  | 20813 | _ACEOF | 
|  | 20814 |  | 
|  | 20815 |  | 
|  | 20816 | fi | 
|  | 20817 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20818 |  | 
|  | 20819 |  | 
|  | 20820 | for ac_header in stdlib.h unistd.h | 
|  | 20821 | do | 
|  | 20822 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 20823 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 20824 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 20825 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 20826 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 20827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20828 | fi | 
|  | 20829 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 20830 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
|  | 20831 | else | 
|  | 20832 | # Is the header compilable? | 
|  | 20833 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 20834 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
|  | 20835 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20836 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20837 | /* confdefs.h.  */ | 
|  | 20838 | _ACEOF | 
|  | 20839 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20840 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 20841 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20842 | $ac_includes_default | 
|  | 20843 | #include <$ac_header> | 
|  | 20844 | _ACEOF | 
|  | 20845 | rm -f conftest.$ac_objext | 
|  | 20846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 20847 | (eval $ac_compile) 2>&5 | 
|  | 20848 | ac_status=$? | 
|  | 20849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20850 | (exit $ac_status); } && | 
|  | 20851 | { ac_try='test -s conftest.$ac_objext' | 
|  | 20852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 20853 | (eval $ac_try) 2>&5 | 
|  | 20854 | ac_status=$? | 
|  | 20855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20856 | (exit $ac_status); }; }; then | 
|  | 20857 | ac_header_compiler=yes | 
|  | 20858 | else | 
|  | 20859 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20860 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20861 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20862 | ac_header_compiler=no | 
|  | 20863 | fi | 
|  | 20864 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 20865 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 20866 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
|  | 20867 |  | 
|  | 20868 | # Is the header present? | 
|  | 20869 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 20870 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
|  | 20871 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20872 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20873 | /* confdefs.h.  */ | 
|  | 20874 | _ACEOF | 
|  | 20875 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20876 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 20877 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20878 | #include <$ac_header> | 
|  | 20879 | _ACEOF | 
|  | 20880 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 20881 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 20882 | ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20883 | grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20884 | rm -f conftest.er1 | 
|  | 20885 | cat conftest.err >&5 | 
|  | 20886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20887 | (exit $ac_status); } >/dev/null; then | 
|  | 20888 | if test -s conftest.err; then | 
|  | 20889 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 20890 | else | 
|  | 20891 | ac_cpp_err= | 
|  | 20892 | fi | 
|  | 20893 | else | 
|  | 20894 | ac_cpp_err=yes | 
|  | 20895 | fi | 
|  | 20896 | if test -z "$ac_cpp_err"; then | 
|  | 20897 | ac_header_preproc=yes | 
|  | 20898 | else | 
|  | 20899 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20900 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20901 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20902 | ac_header_preproc=no | 
|  | 20903 | fi | 
|  | 20904 | rm -f conftest.err conftest.$ac_ext | 
|  | 20905 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 20906 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
|  | 20907 |  | 
|  | 20908 | # So?  What about this header? | 
|  | 20909 | case $ac_header_compiler:$ac_header_preproc in | 
|  | 20910 | yes:no ) | 
|  | 20911 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 20912 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 20913 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20914 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 20915 | ( | 
|  | 20916 | cat <<\_ASBOX | 
|  | 20917 | ## ------------------------------------ ## | 
|  | 20918 | ## Report this to bug-autoconf@gnu.org. ## | 
|  | 20919 | ## ------------------------------------ ## | 
|  | 20920 | _ASBOX | 
|  | 20921 | ) | | 
|  | 20922 | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 20923 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20924 | no:yes ) | 
|  | 20925 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 20926 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 20927 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | 
|  | 20928 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | 
|  | 20929 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20930 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 20931 | ( | 
|  | 20932 | cat <<\_ASBOX | 
|  | 20933 | ## ------------------------------------ ## | 
|  | 20934 | ## Report this to bug-autoconf@gnu.org. ## | 
|  | 20935 | ## ------------------------------------ ## | 
|  | 20936 | _ASBOX | 
|  | 20937 | ) | | 
|  | 20938 | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 20939 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20940 | esac | 
|  | 20941 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 20942 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 20943 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 20944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20945 | else | 
|  | 20946 | eval "$as_ac_Header=$ac_header_preproc" | 
|  | 20947 | fi | 
|  | 20948 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 20949 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
|  | 20950 |  | 
|  | 20951 | fi | 
|  | 20952 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
|  | 20953 | cat >>confdefs.h <<_ACEOF | 
|  | 20954 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 20955 | _ACEOF | 
|  | 20956 |  | 
|  | 20957 | fi | 
|  | 20958 |  | 
|  | 20959 | done | 
|  | 20960 |  | 
|  | 20961 |  | 
|  | 20962 | for ac_func in getpagesize | 
|  | 20963 | do | 
|  | 20964 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 20965 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 20966 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
|  | 20967 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
|  | 20968 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20969 | else | 
|  | 20970 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20971 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20972 | /* confdefs.h.  */ | 
|  | 20973 | _ACEOF | 
|  | 20974 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20975 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 20976 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20977 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20978 | which can conflict with char $ac_func (); below. | 
|  | 20979 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 20980 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 20981 | #ifdef __STDC__ | 
|  | 20982 | # include <limits.h> | 
|  | 20983 | #else | 
|  | 20984 | # include <assert.h> | 
|  | 20985 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20986 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 20987 | #ifdef __cplusplus | 
|  | 20988 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20989 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20990 | #endif | 
|  | 20991 | /* We use char because int might match the return type of a gcc2 | 
|  | 20992 | builtin and then its argument prototype would still apply.  */ | 
|  | 20993 | char $ac_func (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20994 | /* The GNU C library defines this for functions which it implements | 
|  | 20995 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 20996 | something starting with __ and the normal name is an alias.  */ | 
|  | 20997 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|  | 20998 | choke me | 
|  | 20999 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21000 | char (*f) () = $ac_func; | 
|  | 21001 | #endif | 
|  | 21002 | #ifdef __cplusplus | 
|  | 21003 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21004 | #endif | 
|  | 21005 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21006 | int | 
|  | 21007 | main () | 
|  | 21008 | { | 
|  | 21009 | return f != $ac_func; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21010 | ; | 
|  | 21011 | return 0; | 
|  | 21012 | } | 
|  | 21013 | _ACEOF | 
|  | 21014 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 21015 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 21016 | (eval $ac_link) 2>&5 | 
|  | 21017 | ac_status=$? | 
|  | 21018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21019 | (exit $ac_status); } && | 
|  | 21020 | { ac_try='test -s conftest$ac_exeext' | 
|  | 21021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 21022 | (eval $ac_try) 2>&5 | 
|  | 21023 | ac_status=$? | 
|  | 21024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21025 | (exit $ac_status); }; }; then | 
|  | 21026 | eval "$as_ac_var=yes" | 
|  | 21027 | else | 
|  | 21028 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21029 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 21030 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21031 | eval "$as_ac_var=no" | 
|  | 21032 | fi | 
|  | 21033 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 21034 | fi | 
|  | 21035 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
|  | 21036 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
|  | 21037 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
|  | 21038 | cat >>confdefs.h <<_ACEOF | 
|  | 21039 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 21040 | _ACEOF | 
|  | 21041 |  | 
|  | 21042 | fi | 
|  | 21043 | done | 
|  | 21044 |  | 
|  | 21045 | echo "$as_me:$LINENO: checking for working mmap" >&5 | 
|  | 21046 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | 
|  | 21047 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | 
|  | 21048 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 21049 | else | 
|  | 21050 | if test "$cross_compiling" = yes; then | 
|  | 21051 | ac_cv_func_mmap_fixed_mapped=no | 
|  | 21052 | else | 
|  | 21053 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 21054 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21055 | /* confdefs.h.  */ | 
|  | 21056 | _ACEOF | 
|  | 21057 | cat confdefs.h >>conftest.$ac_ext | 
|  | 21058 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 21059 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21060 | $ac_includes_default | 
|  | 21061 | /* malloc might have been renamed as rpl_malloc. */ | 
|  | 21062 | #undef malloc | 
|  | 21063 |  | 
|  | 21064 | /* Thanks to Mike Haertel and Jim Avera for this test. | 
|  | 21065 | Here is a matrix of mmap possibilities: | 
|  | 21066 | mmap private not fixed | 
|  | 21067 | mmap private fixed at somewhere currently unmapped | 
|  | 21068 | mmap private fixed at somewhere already mapped | 
|  | 21069 | mmap shared not fixed | 
|  | 21070 | mmap shared fixed at somewhere currently unmapped | 
|  | 21071 | mmap shared fixed at somewhere already mapped | 
|  | 21072 | For private mappings, we should verify that changes cannot be read() | 
|  | 21073 | back from the file, nor mmap's back from the file at a different | 
|  | 21074 | address.  (There have been systems where private was not correctly | 
|  | 21075 | implemented like the infamous i386 svr4.0, and systems where the | 
|  | 21076 | VM page cache was not coherent with the file system buffer cache | 
|  | 21077 | like early versions of FreeBSD and possibly contemporary NetBSD.) | 
|  | 21078 | For shared mappings, we should conversely verify that changes get | 
|  | 21079 | propagated back to all the places they're supposed to be. | 
|  | 21080 |  | 
|  | 21081 | Grep wants private fixed already mapped. | 
|  | 21082 | The main things grep needs to know about mmap are: | 
|  | 21083 | * does it exist and is it safe to write into the mmap'd area | 
|  | 21084 | * how to use it (BSD variants)  */ | 
|  | 21085 |  | 
|  | 21086 | #include <fcntl.h> | 
|  | 21087 | #include <sys/mman.h> | 
|  | 21088 |  | 
|  | 21089 | #if !STDC_HEADERS && !HAVE_STDLIB_H | 
|  | 21090 | char *malloc (); | 
|  | 21091 | #endif | 
|  | 21092 |  | 
|  | 21093 | /* This mess was copied from the GNU getpagesize.h.  */ | 
|  | 21094 | #if !HAVE_GETPAGESIZE | 
|  | 21095 | /* Assume that all systems that can run configure have sys/param.h.  */ | 
|  | 21096 | # if !HAVE_SYS_PARAM_H | 
|  | 21097 | #  define HAVE_SYS_PARAM_H 1 | 
|  | 21098 | # endif | 
|  | 21099 |  | 
|  | 21100 | # ifdef _SC_PAGESIZE | 
|  | 21101 | #  define getpagesize() sysconf(_SC_PAGESIZE) | 
|  | 21102 | # else /* no _SC_PAGESIZE */ | 
|  | 21103 | #  if HAVE_SYS_PARAM_H | 
|  | 21104 | #   include <sys/param.h> | 
|  | 21105 | #   ifdef EXEC_PAGESIZE | 
|  | 21106 | #    define getpagesize() EXEC_PAGESIZE | 
|  | 21107 | #   else /* no EXEC_PAGESIZE */ | 
|  | 21108 | #    ifdef NBPG | 
|  | 21109 | #     define getpagesize() NBPG * CLSIZE | 
|  | 21110 | #     ifndef CLSIZE | 
|  | 21111 | #      define CLSIZE 1 | 
|  | 21112 | #     endif /* no CLSIZE */ | 
|  | 21113 | #    else /* no NBPG */ | 
|  | 21114 | #     ifdef NBPC | 
|  | 21115 | #      define getpagesize() NBPC | 
|  | 21116 | #     else /* no NBPC */ | 
|  | 21117 | #      ifdef PAGESIZE | 
|  | 21118 | #       define getpagesize() PAGESIZE | 
|  | 21119 | #      endif /* PAGESIZE */ | 
|  | 21120 | #     endif /* no NBPC */ | 
|  | 21121 | #    endif /* no NBPG */ | 
|  | 21122 | #   endif /* no EXEC_PAGESIZE */ | 
|  | 21123 | #  else /* no HAVE_SYS_PARAM_H */ | 
|  | 21124 | #   define getpagesize() 8192	/* punt totally */ | 
|  | 21125 | #  endif /* no HAVE_SYS_PARAM_H */ | 
|  | 21126 | # endif /* no _SC_PAGESIZE */ | 
|  | 21127 |  | 
|  | 21128 | #endif /* no HAVE_GETPAGESIZE */ | 
|  | 21129 |  | 
|  | 21130 | int | 
|  | 21131 | main () | 
|  | 21132 | { | 
|  | 21133 | char *data, *data2, *data3; | 
|  | 21134 | int i, pagesize; | 
|  | 21135 | int fd; | 
|  | 21136 |  | 
|  | 21137 | pagesize = getpagesize (); | 
|  | 21138 |  | 
|  | 21139 | /* First, make a file with some known garbage in it. */ | 
|  | 21140 | data = (char *) malloc (pagesize); | 
|  | 21141 | if (!data) | 
|  | 21142 | exit (1); | 
|  | 21143 | for (i = 0; i < pagesize; ++i) | 
|  | 21144 | *(data + i) = rand (); | 
|  | 21145 | umask (0); | 
|  | 21146 | fd = creat ("conftest.mmap", 0600); | 
|  | 21147 | if (fd < 0) | 
|  | 21148 | exit (1); | 
|  | 21149 | if (write (fd, data, pagesize) != pagesize) | 
|  | 21150 | exit (1); | 
|  | 21151 | close (fd); | 
|  | 21152 |  | 
|  | 21153 | /* Next, try to mmap the file at a fixed address which already has | 
|  | 21154 | something else allocated at it.  If we can, also make sure that | 
|  | 21155 | we see the same garbage.  */ | 
|  | 21156 | fd = open ("conftest.mmap", O_RDWR); | 
|  | 21157 | if (fd < 0) | 
|  | 21158 | exit (1); | 
|  | 21159 | data2 = (char *) malloc (2 * pagesize); | 
|  | 21160 | if (!data2) | 
|  | 21161 | exit (1); | 
|  | 21162 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | 
|  | 21163 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | 
|  | 21164 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | 
|  | 21165 | exit (1); | 
|  | 21166 | for (i = 0; i < pagesize; ++i) | 
|  | 21167 | if (*(data + i) != *(data2 + i)) | 
|  | 21168 | exit (1); | 
|  | 21169 |  | 
|  | 21170 | /* Finally, make sure that changes to the mapped area do not | 
|  | 21171 | percolate back to the file as seen by read().  (This is a bug on | 
|  | 21172 | some variants of i386 svr4.0.)  */ | 
|  | 21173 | for (i = 0; i < pagesize; ++i) | 
|  | 21174 | *(data2 + i) = *(data2 + i) + 1; | 
|  | 21175 | data3 = (char *) malloc (pagesize); | 
|  | 21176 | if (!data3) | 
|  | 21177 | exit (1); | 
|  | 21178 | if (read (fd, data3, pagesize) != pagesize) | 
|  | 21179 | exit (1); | 
|  | 21180 | for (i = 0; i < pagesize; ++i) | 
|  | 21181 | if (*(data + i) != *(data3 + i)) | 
|  | 21182 | exit (1); | 
|  | 21183 | close (fd); | 
|  | 21184 | exit (0); | 
|  | 21185 | } | 
|  | 21186 | _ACEOF | 
|  | 21187 | rm -f conftest$ac_exeext | 
|  | 21188 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 21189 | (eval $ac_link) 2>&5 | 
|  | 21190 | ac_status=$? | 
|  | 21191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21192 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 21193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 21194 | (eval $ac_try) 2>&5 | 
|  | 21195 | ac_status=$? | 
|  | 21196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21197 | (exit $ac_status); }; }; then | 
|  | 21198 | ac_cv_func_mmap_fixed_mapped=yes | 
|  | 21199 | else | 
|  | 21200 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 21201 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21202 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 21203 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21204 | ( exit $ac_status ) | 
|  | 21205 | ac_cv_func_mmap_fixed_mapped=no | 
|  | 21206 | fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21207 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21208 | fi | 
|  | 21209 | fi | 
|  | 21210 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | 
|  | 21211 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | 
|  | 21212 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | 
|  | 21213 |  | 
|  | 21214 | cat >>confdefs.h <<\_ACEOF | 
|  | 21215 | #define HAVE_MMAP 1 | 
|  | 21216 | _ACEOF | 
|  | 21217 |  | 
|  | 21218 | fi | 
|  | 21219 | rm -f conftest.mmap | 
|  | 21220 |  | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 21221 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" | 
|  | 21222 | then | 
|  | 21223 | { { echo "$as_me:$LINENO: error: mmap() required but not found" >&5 | 
|  | 21224 | echo "$as_me: error: mmap() required but not found" >&2;} | 
|  | 21225 | { (exit 1); exit 1; }; } | 
|  | 21226 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21227 | echo "$as_me:$LINENO: checking for mmap of files" >&5 | 
|  | 21228 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6 | 
|  | 21229 | if test "${ac_cv_func_mmap_file+set}" = set; then | 
|  | 21230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 21231 | else | 
|  | 21232 |  | 
|  | 21233 |  | 
|  | 21234 | ac_ext=c | 
|  | 21235 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 21236 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 21237 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 21238 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 21239 |  | 
|  | 21240 | if test "$cross_compiling" = yes; then | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21241 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | 
|  | 21242 | See \`config.log' for more details." >&5 | 
|  | 21243 | echo "$as_me: error: cannot run test program while cross compiling | 
|  | 21244 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21245 | { (exit 1); exit 1; }; } | 
|  | 21246 | else | 
|  | 21247 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 21248 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21249 | /* confdefs.h.  */ | 
|  | 21250 | _ACEOF | 
|  | 21251 | cat confdefs.h >>conftest.$ac_ext | 
|  | 21252 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 21253 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21254 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21255 | #ifdef HAVE_SYS_TYPES_H | 
|  | 21256 | #include <sys/types.h> | 
|  | 21257 | #endif | 
|  | 21258 |  | 
| John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 21259 | #ifdef HAVE_SYS_MMAN_H | 
|  | 21260 | #include <sys/mman.h> | 
|  | 21261 | #endif | 
|  | 21262 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21263 | #ifdef HAVE_FCNTL_H | 
|  | 21264 | #include <fcntl.h> | 
|  | 21265 | #endif | 
|  | 21266 |  | 
|  | 21267 | int fd; | 
|  | 21268 | int main () { | 
| John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 21269 | fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21270 | _ACEOF | 
|  | 21271 | rm -f conftest$ac_exeext | 
|  | 21272 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 21273 | (eval $ac_link) 2>&5 | 
|  | 21274 | ac_status=$? | 
|  | 21275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21276 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 21277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 21278 | (eval $ac_try) 2>&5 | 
|  | 21279 | ac_status=$? | 
|  | 21280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21281 | (exit $ac_status); }; }; then | 
|  | 21282 | ac_cv_func_mmap_file=yes | 
|  | 21283 | else | 
|  | 21284 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 21285 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21286 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 21287 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21288 | ( exit $ac_status ) | 
|  | 21289 | ac_cv_func_mmap_file=no | 
|  | 21290 | fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21291 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21292 | fi | 
|  | 21293 | ac_ext=c | 
|  | 21294 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 21295 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 21296 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 21297 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 21298 |  | 
|  | 21299 |  | 
|  | 21300 | fi | 
|  | 21301 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 | 
|  | 21302 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6 | 
|  | 21303 | if test "$ac_cv_func_mmap_file" = yes; then | 
| John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 21304 |  | 
|  | 21305 | cat >>confdefs.h <<\_ACEOF | 
|  | 21306 | #define HAVE_MMAP_FILE | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21307 | _ACEOF | 
|  | 21308 |  | 
|  | 21309 | MMAP_FILE=yes | 
|  | 21310 |  | 
|  | 21311 | fi | 
|  | 21312 |  | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 21313 | if test "$ac_cv_func_mmap_file" = "no" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21314 | then | 
|  | 21315 | { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5 | 
|  | 21316 | echo "$as_me: error: mmap() of files required but not found" >&2;} | 
|  | 21317 | { (exit 1); exit 1; }; } | 
|  | 21318 | fi | 
|  | 21319 | echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 | 
|  | 21320 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6 | 
|  | 21321 | if test "${ac_cv_header_mmap_anon+set}" = set; then | 
|  | 21322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 21323 | else | 
|  | 21324 |  | 
|  | 21325 |  | 
|  | 21326 | ac_ext=c | 
|  | 21327 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 21328 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 21329 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 21330 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 21331 |  | 
|  | 21332 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 21333 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21334 | /* confdefs.h.  */ | 
|  | 21335 | _ACEOF | 
|  | 21336 | cat confdefs.h >>conftest.$ac_ext | 
|  | 21337 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 21338 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21339 | #include <sys/mman.h> | 
|  | 21340 | #include <unistd.h> | 
|  | 21341 | #include <fcntl.h> | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21342 | int | 
|  | 21343 | main () | 
|  | 21344 | { | 
|  | 21345 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); | 
|  | 21346 | ; | 
|  | 21347 | return 0; | 
|  | 21348 | } | 
|  | 21349 | _ACEOF | 
|  | 21350 | rm -f conftest.$ac_objext | 
|  | 21351 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 21352 | (eval $ac_compile) 2>&5 | 
|  | 21353 | ac_status=$? | 
|  | 21354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21355 | (exit $ac_status); } && | 
|  | 21356 | { ac_try='test -s conftest.$ac_objext' | 
|  | 21357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 21358 | (eval $ac_try) 2>&5 | 
|  | 21359 | ac_status=$? | 
|  | 21360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21361 | (exit $ac_status); }; }; then | 
|  | 21362 | ac_cv_header_mmap_anon=yes | 
|  | 21363 | else | 
|  | 21364 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21365 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 21366 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21367 | ac_cv_header_mmap_anon=no | 
|  | 21368 | fi | 
|  | 21369 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 21370 | ac_ext=c | 
|  | 21371 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 21372 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 21373 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 21374 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 21375 |  | 
|  | 21376 |  | 
|  | 21377 | fi | 
|  | 21378 | echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 | 
|  | 21379 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6 | 
|  | 21380 | if test "$ac_cv_header_mmap_anon" = yes; then | 
| John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 21381 |  | 
|  | 21382 | cat >>confdefs.h <<\_ACEOF | 
|  | 21383 | #define HAVE_MMAP_ANONYMOUS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21384 | _ACEOF | 
|  | 21385 |  | 
|  | 21386 | fi | 
|  | 21387 |  | 
|  | 21388 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 | 
|  | 21389 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | 
|  | 21390 | if test "${ac_cv_type_signal+set}" = set; then | 
|  | 21391 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 21392 | else | 
|  | 21393 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 21394 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21395 | /* confdefs.h.  */ | 
|  | 21396 | _ACEOF | 
|  | 21397 | cat confdefs.h >>conftest.$ac_ext | 
|  | 21398 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 21399 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21400 | #include <sys/types.h> | 
|  | 21401 | #include <signal.h> | 
|  | 21402 | #ifdef signal | 
|  | 21403 | # undef signal | 
|  | 21404 | #endif | 
|  | 21405 | #ifdef __cplusplus | 
|  | 21406 | extern "C" void (*signal (int, void (*)(int)))(int); | 
|  | 21407 | #else | 
|  | 21408 | void (*signal ()) (); | 
|  | 21409 | #endif | 
|  | 21410 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21411 | int | 
|  | 21412 | main () | 
|  | 21413 | { | 
|  | 21414 | int i; | 
|  | 21415 | ; | 
|  | 21416 | return 0; | 
|  | 21417 | } | 
|  | 21418 | _ACEOF | 
|  | 21419 | rm -f conftest.$ac_objext | 
|  | 21420 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 21421 | (eval $ac_compile) 2>&5 | 
|  | 21422 | ac_status=$? | 
|  | 21423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21424 | (exit $ac_status); } && | 
|  | 21425 | { ac_try='test -s conftest.$ac_objext' | 
|  | 21426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 21427 | (eval $ac_try) 2>&5 | 
|  | 21428 | ac_status=$? | 
|  | 21429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21430 | (exit $ac_status); }; }; then | 
|  | 21431 | ac_cv_type_signal=void | 
|  | 21432 | else | 
|  | 21433 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21434 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 21435 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21436 | ac_cv_type_signal=int | 
|  | 21437 | fi | 
|  | 21438 | rm -f conftest.$ac_objext conftest.$ac_ext | 
|  | 21439 | fi | 
|  | 21440 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 | 
|  | 21441 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | 
|  | 21442 |  | 
|  | 21443 | cat >>confdefs.h <<_ACEOF | 
|  | 21444 | #define RETSIGTYPE $ac_cv_type_signal | 
|  | 21445 | _ACEOF | 
|  | 21446 |  | 
|  | 21447 |  | 
|  | 21448 |  | 
|  | 21449 |  | 
|  | 21450 |  | 
|  | 21451 |  | 
|  | 21452 |  | 
| Brian Gaeke | f526147 | 2004-02-20 06:40:57 +0000 | [diff] [blame^] | 21453 |  | 
|  | 21454 | for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21455 | do | 
|  | 21456 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 21457 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 21458 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
|  | 21459 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
|  | 21460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 21461 | else | 
|  | 21462 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 21463 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21464 | /* confdefs.h.  */ | 
|  | 21465 | _ACEOF | 
|  | 21466 | cat confdefs.h >>conftest.$ac_ext | 
|  | 21467 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 21468 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21469 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21470 | which can conflict with char $ac_func (); below. | 
|  | 21471 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 21472 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 21473 | #ifdef __STDC__ | 
|  | 21474 | # include <limits.h> | 
|  | 21475 | #else | 
|  | 21476 | # include <assert.h> | 
|  | 21477 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21478 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 21479 | #ifdef __cplusplus | 
|  | 21480 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21481 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21482 | #endif | 
|  | 21483 | /* We use char because int might match the return type of a gcc2 | 
|  | 21484 | builtin and then its argument prototype would still apply.  */ | 
|  | 21485 | char $ac_func (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21486 | /* The GNU C library defines this for functions which it implements | 
|  | 21487 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 21488 | something starting with __ and the normal name is an alias.  */ | 
|  | 21489 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|  | 21490 | choke me | 
|  | 21491 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21492 | char (*f) () = $ac_func; | 
|  | 21493 | #endif | 
|  | 21494 | #ifdef __cplusplus | 
|  | 21495 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21496 | #endif | 
|  | 21497 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21498 | int | 
|  | 21499 | main () | 
|  | 21500 | { | 
|  | 21501 | return f != $ac_func; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21502 | ; | 
|  | 21503 | return 0; | 
|  | 21504 | } | 
|  | 21505 | _ACEOF | 
|  | 21506 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 21507 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 21508 | (eval $ac_link) 2>&5 | 
|  | 21509 | ac_status=$? | 
|  | 21510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21511 | (exit $ac_status); } && | 
|  | 21512 | { ac_try='test -s conftest$ac_exeext' | 
|  | 21513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 21514 | (eval $ac_try) 2>&5 | 
|  | 21515 | ac_status=$? | 
|  | 21516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21517 | (exit $ac_status); }; }; then | 
|  | 21518 | eval "$as_ac_var=yes" | 
|  | 21519 | else | 
|  | 21520 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21521 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 21522 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21523 | eval "$as_ac_var=no" | 
|  | 21524 | fi | 
|  | 21525 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 21526 | fi | 
|  | 21527 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
|  | 21528 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
|  | 21529 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
|  | 21530 | cat >>confdefs.h <<_ACEOF | 
|  | 21531 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 21532 | _ACEOF | 
|  | 21533 |  | 
|  | 21534 | fi | 
|  | 21535 | done | 
|  | 21536 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21537 | echo "$as_me:$LINENO: checking for mprotect" >&5 | 
|  | 21538 | echo $ECHO_N "checking for mprotect... $ECHO_C" >&6 | 
|  | 21539 | if test "${ac_cv_func_mprotect+set}" = set; then | 
|  | 21540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 21541 | else | 
|  | 21542 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 21543 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21544 | /* confdefs.h.  */ | 
|  | 21545 | _ACEOF | 
|  | 21546 | cat confdefs.h >>conftest.$ac_ext | 
|  | 21547 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 21548 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21549 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21550 | which can conflict with char mprotect (); below. | 
|  | 21551 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 21552 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 21553 | #ifdef __STDC__ | 
|  | 21554 | # include <limits.h> | 
|  | 21555 | #else | 
|  | 21556 | # include <assert.h> | 
|  | 21557 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21558 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 21559 | #ifdef __cplusplus | 
|  | 21560 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21561 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21562 | #endif | 
|  | 21563 | /* We use char because int might match the return type of a gcc2 | 
|  | 21564 | builtin and then its argument prototype would still apply.  */ | 
|  | 21565 | char mprotect (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21566 | /* The GNU C library defines this for functions which it implements | 
|  | 21567 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 21568 | something starting with __ and the normal name is an alias.  */ | 
|  | 21569 | #if defined (__stub_mprotect) || defined (__stub___mprotect) | 
|  | 21570 | choke me | 
|  | 21571 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21572 | char (*f) () = mprotect; | 
|  | 21573 | #endif | 
|  | 21574 | #ifdef __cplusplus | 
|  | 21575 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21576 | #endif | 
|  | 21577 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21578 | int | 
|  | 21579 | main () | 
|  | 21580 | { | 
|  | 21581 | return f != mprotect; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21582 | ; | 
|  | 21583 | return 0; | 
|  | 21584 | } | 
|  | 21585 | _ACEOF | 
|  | 21586 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 21587 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 21588 | (eval $ac_link) 2>&5 | 
|  | 21589 | ac_status=$? | 
|  | 21590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21591 | (exit $ac_status); } && | 
|  | 21592 | { ac_try='test -s conftest$ac_exeext' | 
|  | 21593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 21594 | (eval $ac_try) 2>&5 | 
|  | 21595 | ac_status=$? | 
|  | 21596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21597 | (exit $ac_status); }; }; then | 
|  | 21598 | ac_cv_func_mprotect=yes | 
|  | 21599 | else | 
|  | 21600 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21601 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 21602 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21603 | ac_cv_func_mprotect=no | 
|  | 21604 | fi | 
|  | 21605 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
|  | 21606 | fi | 
|  | 21607 | echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5 | 
|  | 21608 | echo "${ECHO_T}$ac_cv_func_mprotect" >&6 | 
|  | 21609 | if test $ac_cv_func_mprotect = yes; then | 
|  | 21610 | : | 
|  | 21611 | else | 
|  | 21612 | { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5 | 
|  | 21613 | echo "$as_me: error: Function mprotect() required but not found" >&2;} | 
|  | 21614 | { (exit 1); exit 1; }; } | 
|  | 21615 | fi | 
|  | 21616 |  | 
|  | 21617 |  | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21618 |  | 
| John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 21619 |  | 
|  | 21620 |  | 
|  | 21621 | ac_ext=c | 
|  | 21622 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 21623 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 21624 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 21625 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 21626 |  | 
| Brian Gaeke | f91a15c | 2003-11-18 06:20:41 +0000 | [diff] [blame] | 21627 | oldcflags="$CFLAGS" | 
|  | 21628 | CFLAGS="$CFLAGS -Wl,-R." | 
| John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 21629 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | f91a15c | 2003-11-18 06:20:41 +0000 | [diff] [blame] | 21630 | int main() { return 0; } | 
| John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 21631 | _ACEOF | 
|  | 21632 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 21633 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 21634 | (eval $ac_link) 2>&5 | 
|  | 21635 | ac_status=$? | 
|  | 21636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21637 | (exit $ac_status); } && | 
|  | 21638 | { ac_try='test -s conftest$ac_exeext' | 
|  | 21639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 21640 | (eval $ac_try) 2>&5 | 
|  | 21641 | ac_status=$? | 
|  | 21642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21643 | (exit $ac_status); }; }; then | 
|  | 21644 | ac_cv_link_use_r=yes | 
|  | 21645 | else | 
|  | 21646 | echo "$as_me: failed program was:" >&5 | 
|  | 21647 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 21648 |  | 
| Brian Gaeke | f91a15c | 2003-11-18 06:20:41 +0000 | [diff] [blame] | 21649 | ac_cv_link_use_r=no | 
| John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 21650 | fi | 
|  | 21651 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
| Brian Gaeke | f91a15c | 2003-11-18 06:20:41 +0000 | [diff] [blame] | 21652 | CFLAGS="$oldcflags" | 
| John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 21653 | ac_ext=c | 
|  | 21654 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 21655 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 21656 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 21657 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 21658 |  | 
| Brian Gaeke | f91a15c | 2003-11-18 06:20:41 +0000 | [diff] [blame] | 21659 | if test "$ac_cv_link_use_r" = yes | 
| John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 21660 | then | 
| Brian Gaeke | f91a15c | 2003-11-18 06:20:41 +0000 | [diff] [blame] | 21661 |  | 
|  | 21662 | cat >>confdefs.h <<\_ACEOF | 
| John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 21663 | #define HAVE_LINK_R 1 | 
|  | 21664 | _ACEOF | 
|  | 21665 |  | 
|  | 21666 | fi | 
|  | 21667 |  | 
|  | 21668 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21669 | # Check whether --enable-optimized or --disable-optimized was given. | 
|  | 21670 | if test "${enable_optimized+set}" = set; then | 
|  | 21671 | enableval="$enable_optimized" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21672 |  | 
|  | 21673 | else | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21674 | enableval=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21675 | fi; | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21676 | if test ${enableval} = "no" | 
|  | 21677 | then | 
|  | 21678 | ENABLE_OPTIMIZED= | 
|  | 21679 |  | 
|  | 21680 | else | 
|  | 21681 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 | 
|  | 21682 |  | 
|  | 21683 | fi | 
|  | 21684 |  | 
| John Criswell | 5512659 | 2003-10-07 21:57:39 +0000 | [diff] [blame] | 21685 | # Check whether --enable-spec2000 or --disable-spec2000 was given. | 
|  | 21686 | if test "${enable_spec2000+set}" = set; then | 
|  | 21687 | enableval="$enable_spec2000" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21688 |  | 
|  | 21689 | else | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21690 | enableval=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21691 | fi; | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21692 | if test ${enableval} = "no" | 
|  | 21693 | then | 
| John Criswell | 5512659 | 2003-10-07 21:57:39 +0000 | [diff] [blame] | 21694 | if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec | 
|  | 21695 | then | 
|  | 21696 | SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21697 |  | 
| John Criswell | 5512659 | 2003-10-07 21:57:39 +0000 | [diff] [blame] | 21698 | USE_SPEC=USE_SPEC=1 | 
|  | 21699 |  | 
|  | 21700 | else | 
|  | 21701 | USE_SPEC= | 
|  | 21702 |  | 
|  | 21703 |  | 
|  | 21704 | fi | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21705 | else | 
| John Criswell | 5512659 | 2003-10-07 21:57:39 +0000 | [diff] [blame] | 21706 | if test ${enableval} = "" | 
|  | 21707 | then | 
|  | 21708 | SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec | 
|  | 21709 |  | 
|  | 21710 | else | 
|  | 21711 | SPEC_ROOT=${enableval} | 
|  | 21712 |  | 
|  | 21713 | fi | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21714 | USE_SPEC=USE_SPEC=1 | 
|  | 21715 |  | 
|  | 21716 | fi | 
|  | 21717 |  | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 21718 | # Check whether --enable-spec95 or --disable-spec95 was given. | 
|  | 21719 | if test "${enable_spec95+set}" = set; then | 
|  | 21720 | enableval="$enable_spec95" | 
|  | 21721 |  | 
|  | 21722 | else | 
|  | 21723 | enableval=no | 
|  | 21724 | fi; | 
|  | 21725 | if test ${enableval} = "no" | 
|  | 21726 | then | 
| John Criswell | 542af5f | 2004-02-16 14:55:18 +0000 | [diff] [blame] | 21727 | if test -d /home/vadve/shared/benchmarks/spec95/benchspec | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 21728 | then | 
| John Criswell | 542af5f | 2004-02-16 14:55:18 +0000 | [diff] [blame] | 21729 | SPEC95_ROOT=/home/vadve/shared/benchmarks/spec95/benchspec | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 21730 |  | 
|  | 21731 | USE_SPEC95=USE_SPEC95=1 | 
|  | 21732 |  | 
|  | 21733 | else | 
|  | 21734 | USE_SPEC95= | 
|  | 21735 |  | 
|  | 21736 |  | 
|  | 21737 | fi | 
|  | 21738 | else | 
|  | 21739 | if test ${enableval} = "" | 
|  | 21740 | then | 
| John Criswell | 542af5f | 2004-02-16 14:55:18 +0000 | [diff] [blame] | 21741 | SPEC95_ROOT=/home/vadve/shared/benchmarks/spec95/benchspec | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 21742 |  | 
|  | 21743 | else | 
|  | 21744 | SPEC95_ROOT=${enableval} | 
|  | 21745 |  | 
|  | 21746 | fi | 
|  | 21747 | USE_SPEC95=USE_SPEC95=1 | 
|  | 21748 |  | 
|  | 21749 | fi | 
|  | 21750 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21751 | # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given. | 
|  | 21752 | if test "${enable_precompiled_bytecode+set}" = set; then | 
|  | 21753 | enableval="$enable_precompiled_bytecode" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21754 |  | 
|  | 21755 | else | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21756 | enableval=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21757 | fi; | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21758 | if test ${enableval} = "no" | 
|  | 21759 | then | 
|  | 21760 | UPB= | 
| John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 21761 |  | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21762 | else | 
|  | 21763 | UPB=USE_PRECOMPILED_BYTECODE=1 | 
|  | 21764 |  | 
|  | 21765 | fi | 
| John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 21766 |  | 
| John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 21767 | # Check whether --enable-llc_diffs or --disable-llc_diffs was given. | 
|  | 21768 | if test "${enable_llc_diffs+set}" = set; then | 
|  | 21769 | enableval="$enable_llc_diffs" | 
| John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 21770 |  | 
|  | 21771 | else | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21772 | enableval=yes | 
| John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 21773 | fi; | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21774 | if test ${enableval} = "no" | 
|  | 21775 | then | 
|  | 21776 | DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1 | 
| John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 21777 |  | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21778 | else | 
|  | 21779 | DISABLE_LLC_DIFFS= | 
|  | 21780 |  | 
|  | 21781 | fi | 
|  | 21782 |  | 
|  | 21783 | # Check whether --enable-jit or --disable-jit was given. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21784 | if test "${enable_jit+set}" = set; then | 
|  | 21785 | enableval="$enable_jit" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21786 |  | 
|  | 21787 | else | 
| John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 21788 | enableval=default | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21789 | fi; | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21790 | if test ${enableval} = "no" | 
|  | 21791 | then | 
|  | 21792 | JIT= | 
|  | 21793 |  | 
|  | 21794 | else | 
| John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 21795 | case $target in | 
|  | 21796 | *i*86*) | 
|  | 21797 | JIT=TARGET_HAS_JIT=1 | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21798 |  | 
| John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 21799 | ;; | 
|  | 21800 | *sparc*) | 
|  | 21801 | JIT=TARGET_HAS_JIT=1 | 
|  | 21802 |  | 
|  | 21803 | ;; | 
|  | 21804 | *) | 
|  | 21805 | JIT= | 
|  | 21806 |  | 
|  | 21807 | ;; | 
|  | 21808 | esac | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21809 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21810 |  | 
|  | 21811 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21812 | # Check whether --with-llvmgccdir or --without-llvmgccdir was given. | 
|  | 21813 | if test "${with_llvmgccdir+set}" = set; then | 
|  | 21814 | withval="$with_llvmgccdir" | 
|  | 21815 | LLVMGCCDIR=$withval | 
|  | 21816 |  | 
|  | 21817 | fi; | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 21818 | echo "$as_me:$LINENO: checking for llvm-gcc" >&5 | 
|  | 21819 | echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6 | 
|  | 21820 | LLVM_GCC_CHECK=no | 
|  | 21821 | if test -d "$LLVMGCCDIR" | 
|  | 21822 | then | 
|  | 21823 | if test -x "$LLVMGCCDIR/bin/gcc" | 
|  | 21824 | then | 
|  | 21825 | LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc" | 
|  | 21826 | fi | 
|  | 21827 | fi | 
|  | 21828 | llvmgccwarn=no | 
|  | 21829 | echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5 | 
|  | 21830 | echo "${ECHO_T}$LLVM_GCC_CHECK" >&6 | 
|  | 21831 | if test "$LLVM_GCC_CHECK" = "no" | 
|  | 21832 | then | 
|  | 21833 | llvmgccwarn=yes | 
|  | 21834 | fi | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 21835 | echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 | 
|  | 21836 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6 | 
|  | 21837 | LLVM_GCC_SANE=no | 
|  | 21838 | if test -x "$LLVM_GCC_CHECK" | 
|  | 21839 | then | 
|  | 21840 | cp /dev/null conftest.c | 
|  | 21841 | "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1 | 
|  | 21842 | if test $? -eq 0 | 
|  | 21843 | then | 
|  | 21844 | LLVM_GCC_SANE=yes | 
|  | 21845 | fi | 
|  | 21846 | rm conftest.c | 
| Brian Gaeke | 2f50a04 | 2004-01-16 21:31:21 +0000 | [diff] [blame] | 21847 | llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1` | 
| Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 21848 | LLVMCC1=$llvmcc1path | 
| Brian Gaeke | 2f50a04 | 2004-01-16 21:31:21 +0000 | [diff] [blame] | 21849 |  | 
|  | 21850 | llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus` | 
| Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 21851 | LLVMCC1PLUS=$llvmcc1pluspath | 
| Brian Gaeke | 2f50a04 | 2004-01-16 21:31:21 +0000 | [diff] [blame] | 21852 |  | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 21853 | fi | 
|  | 21854 | echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5 | 
|  | 21855 | echo "${ECHO_T}$LLVM_GCC_SANE" >&6 | 
|  | 21856 | if test "$LLVM_GCC_SANE" = "no" | 
|  | 21857 | then | 
|  | 21858 | llvmgccwarn=yes | 
|  | 21859 | fi | 
|  | 21860 |  | 
| John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 21861 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21862 | # Check whether --with-bcrepos or --without-bcrepos was given. | 
|  | 21863 | if test "${with_bcrepos+set}" = set; then | 
|  | 21864 | withval="$with_bcrepos" | 
|  | 21865 | BCR=$withval | 
|  | 21866 |  | 
|  | 21867 | else | 
|  | 21868 | BCR=/home/vadve/lattner/LLVMPrograms | 
|  | 21869 |  | 
|  | 21870 | fi; | 
|  | 21871 |  | 
| John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 21872 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21873 | # Check whether --with-papi or --without-papi was given. | 
|  | 21874 | if test "${with_papi+set}" = set; then | 
|  | 21875 | withval="$with_papi" | 
|  | 21876 | PAPIDIR=$withval | 
|  | 21877 |  | 
|  | 21878 | else | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 21879 | PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21880 |  | 
|  | 21881 | fi; | 
|  | 21882 |  | 
| Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 21883 | echo "$as_me:$LINENO: checking for shared library suffix" >&5 | 
|  | 21884 | echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6 | 
|  | 21885 | eval "SHLIBEXT=$shrext" | 
|  | 21886 | echo "$as_me:$LINENO: result: $SHLIBEXT" >&5 | 
|  | 21887 | echo "${ECHO_T}$SHLIBEXT" >&6 | 
|  | 21888 | SHLIBEXT=$SHLIBEXT | 
|  | 21889 |  | 
|  | 21890 |  | 
|  | 21891 | cat >>confdefs.h <<_ACEOF | 
|  | 21892 | #define SHLIBEXT "$SHLIBEXT" | 
|  | 21893 | _ACEOF | 
|  | 21894 |  | 
|  | 21895 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21896 | ac_config_files="$ac_config_files Makefile.config" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21897 | cat >confcache <<\_ACEOF | 
|  | 21898 | # This file is a shell script that caches the results of configure | 
|  | 21899 | # tests run on this system so they can be shared between configure | 
|  | 21900 | # scripts and configure runs, see configure's option --config-cache. | 
|  | 21901 | # It is not useful on other systems.  If it contains results you don't | 
|  | 21902 | # want to keep, you may remove or edit it. | 
|  | 21903 | # | 
|  | 21904 | # config.status only pays attention to the cache file if you give it | 
|  | 21905 | # the --recheck option to rerun configure. | 
|  | 21906 | # | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21907 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21908 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | 
|  | 21909 | # following values. | 
|  | 21910 |  | 
|  | 21911 | _ACEOF | 
|  | 21912 |  | 
|  | 21913 | # The following way of writing the cache mishandles newlines in values, | 
|  | 21914 | # but we know of no workaround that is simple, portable, and efficient. | 
|  | 21915 | # So, don't put newlines in cache variables' values. | 
|  | 21916 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
|  | 21917 | # and sets the high bit in the cache file unless we assign to the vars. | 
|  | 21918 | { | 
|  | 21919 | (set) 2>&1 | | 
|  | 21920 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | 
|  | 21921 | *ac_space=\ *) | 
|  | 21922 | # `set' does not quote correctly, so add quotes (double-quote | 
|  | 21923 | # substitution turns \\\\ into \\, and sed turns \\ into \). | 
|  | 21924 | sed -n \ | 
|  | 21925 | "s/'/'\\\\''/g; | 
|  | 21926 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 
|  | 21927 | ;; | 
|  | 21928 | *) | 
|  | 21929 | # `set' quotes correctly as required by POSIX, so do not add quotes. | 
|  | 21930 | sed -n \ | 
|  | 21931 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | 
|  | 21932 | ;; | 
|  | 21933 | esac; | 
|  | 21934 | } | | 
|  | 21935 | sed ' | 
|  | 21936 | t clear | 
|  | 21937 | : clear | 
|  | 21938 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | 
|  | 21939 | t end | 
|  | 21940 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 
|  | 21941 | : end' >>confcache | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21942 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21943 | if test -w $cache_file; then | 
|  | 21944 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | 
|  | 21945 | cat confcache >$cache_file | 
|  | 21946 | else | 
|  | 21947 | echo "not updating unwritable cache $cache_file" | 
|  | 21948 | fi | 
|  | 21949 | fi | 
|  | 21950 | rm -f confcache | 
|  | 21951 |  | 
|  | 21952 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
|  | 21953 | # Let make expand exec_prefix. | 
|  | 21954 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
|  | 21955 |  | 
|  | 21956 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | 
|  | 21957 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | 
|  | 21958 | # trailing colons and then remove the whole line if VPATH becomes empty | 
|  | 21959 | # (actually we leave an empty line to preserve line numbers). | 
|  | 21960 | if test "x$srcdir" = x.; then | 
|  | 21961 | ac_vpsub='/^[ 	]*VPATH[ 	]*=/{ | 
|  | 21962 | s/:*\$(srcdir):*/:/; | 
|  | 21963 | s/:*\${srcdir}:*/:/; | 
|  | 21964 | s/:*@srcdir@:*/:/; | 
|  | 21965 | s/^\([^=]*=[ 	]*\):*/\1/; | 
|  | 21966 | s/:*$//; | 
|  | 21967 | s/^[^=]*=[ 	]*$//; | 
|  | 21968 | }' | 
|  | 21969 | fi | 
|  | 21970 |  | 
|  | 21971 | DEFS=-DHAVE_CONFIG_H | 
|  | 21972 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21973 | ac_libobjs= | 
|  | 21974 | ac_ltlibobjs= | 
|  | 21975 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 
|  | 21976 | # 1. Remove the extension, and $U if already installed. | 
|  | 21977 | ac_i=`echo "$ac_i" | | 
|  | 21978 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | 
|  | 21979 | # 2. Add them. | 
|  | 21980 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | 
|  | 21981 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | 
|  | 21982 | done | 
|  | 21983 | LIBOBJS=$ac_libobjs | 
|  | 21984 |  | 
|  | 21985 | LTLIBOBJS=$ac_ltlibobjs | 
|  | 21986 |  | 
|  | 21987 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21988 |  | 
|  | 21989 | : ${CONFIG_STATUS=./config.status} | 
|  | 21990 | ac_clean_files_save=$ac_clean_files | 
|  | 21991 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 
|  | 21992 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | 
|  | 21993 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | 
|  | 21994 | cat >$CONFIG_STATUS <<_ACEOF | 
|  | 21995 | #! $SHELL | 
|  | 21996 | # Generated by $as_me. | 
|  | 21997 | # Run this file to recreate the current configuration. | 
|  | 21998 | # Compiler output produced by configure, useful for debugging | 
|  | 21999 | # configure, is in config.log if it exists. | 
|  | 22000 |  | 
|  | 22001 | debug=false | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22002 | ac_cs_recheck=false | 
|  | 22003 | ac_cs_silent=false | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22004 | SHELL=\${CONFIG_SHELL-$SHELL} | 
|  | 22005 | _ACEOF | 
|  | 22006 |  | 
|  | 22007 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22008 | ## --------------------- ## | 
|  | 22009 | ## M4sh Initialization.  ## | 
|  | 22010 | ## --------------------- ## | 
|  | 22011 |  | 
|  | 22012 | # Be Bourne compatible | 
|  | 22013 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | 
|  | 22014 | emulate sh | 
|  | 22015 | NULLCMD=: | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22016 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | 
|  | 22017 | # is contrary to our usage.  Disable this feature. | 
|  | 22018 | alias -g '${1+"$@"}'='"$@"' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22019 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | 
|  | 22020 | set -o posix | 
|  | 22021 | fi | 
|  | 22022 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22023 | # Support unset when possible. | 
|  | 22024 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | 
|  | 22025 | as_unset=unset | 
|  | 22026 | else | 
|  | 22027 | as_unset=false | 
|  | 22028 | fi | 
|  | 22029 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22030 |  | 
|  | 22031 | # Work around bugs in pre-3.0 UWIN ksh. | 
|  | 22032 | $as_unset ENV MAIL MAILPATH | 
|  | 22033 | PS1='$ ' | 
|  | 22034 | PS2='> ' | 
|  | 22035 | PS4='+ ' | 
|  | 22036 |  | 
|  | 22037 | # NLS nuisances. | 
|  | 22038 | for as_var in \ | 
|  | 22039 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | 
|  | 22040 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | 
|  | 22041 | LC_TELEPHONE LC_TIME | 
|  | 22042 | do | 
|  | 22043 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then | 
|  | 22044 | eval $as_var=C; export $as_var | 
|  | 22045 | else | 
|  | 22046 | $as_unset $as_var | 
|  | 22047 | fi | 
|  | 22048 | done | 
|  | 22049 |  | 
|  | 22050 | # Required to use basename. | 
|  | 22051 | if expr a : '\(a\)' >/dev/null 2>&1; then | 
|  | 22052 | as_expr=expr | 
|  | 22053 | else | 
|  | 22054 | as_expr=false | 
|  | 22055 | fi | 
|  | 22056 |  | 
|  | 22057 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | 
|  | 22058 | as_basename=basename | 
|  | 22059 | else | 
|  | 22060 | as_basename=false | 
|  | 22061 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22062 |  | 
|  | 22063 |  | 
|  | 22064 | # Name of the executable. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22065 | as_me=`$as_basename "$0" || | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22066 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
|  | 22067 | X"$0" : 'X\(//\)$' \| \ | 
|  | 22068 | X"$0" : 'X\(/\)$' \| \ | 
|  | 22069 | .     : '\(.\)' 2>/dev/null || | 
|  | 22070 | echo X/"$0" | | 
|  | 22071 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | 
|  | 22072 | /^X\/\(\/\/\)$/{ s//\1/; q; } | 
|  | 22073 | /^X\/\(\/\).*/{ s//\1/; q; } | 
|  | 22074 | s/.*/./; q'` | 
|  | 22075 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22076 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22077 | # PATH needs CR, and LINENO needs CR and PATH. | 
|  | 22078 | # Avoid depending upon Character Ranges. | 
|  | 22079 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
|  | 22080 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
|  | 22081 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
|  | 22082 | as_cr_digits='0123456789' | 
|  | 22083 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
|  | 22084 |  | 
|  | 22085 | # The user is always right. | 
|  | 22086 | if test "${PATH_SEPARATOR+set}" != set; then | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22087 | echo "#! /bin/sh" >conf$$.sh | 
|  | 22088 | echo  "exit 0"   >>conf$$.sh | 
|  | 22089 | chmod +x conf$$.sh | 
|  | 22090 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22091 | PATH_SEPARATOR=';' | 
|  | 22092 | else | 
|  | 22093 | PATH_SEPARATOR=: | 
|  | 22094 | fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22095 | rm -f conf$$.sh | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22096 | fi | 
|  | 22097 |  | 
|  | 22098 |  | 
|  | 22099 | as_lineno_1=$LINENO | 
|  | 22100 | as_lineno_2=$LINENO | 
|  | 22101 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | 
|  | 22102 | test "x$as_lineno_1" != "x$as_lineno_2" && | 
|  | 22103 | test "x$as_lineno_3"  = "x$as_lineno_2"  || { | 
|  | 22104 | # Find who we are.  Look in the path if we contain no path at all | 
|  | 22105 | # relative or not. | 
|  | 22106 | case $0 in | 
|  | 22107 | *[\\/]* ) as_myself=$0 ;; | 
|  | 22108 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 22109 | for as_dir in $PATH | 
|  | 22110 | do | 
|  | 22111 | IFS=$as_save_IFS | 
|  | 22112 | test -z "$as_dir" && as_dir=. | 
|  | 22113 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
|  | 22114 | done | 
|  | 22115 |  | 
|  | 22116 | ;; | 
|  | 22117 | esac | 
|  | 22118 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
|  | 22119 | # in which case we are not to be found in the path. | 
|  | 22120 | if test "x$as_myself" = x; then | 
|  | 22121 | as_myself=$0 | 
|  | 22122 | fi | 
|  | 22123 | if test ! -f "$as_myself"; then | 
|  | 22124 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | 
|  | 22125 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | 
|  | 22126 | { (exit 1); exit 1; }; } | 
|  | 22127 | fi | 
|  | 22128 | case $CONFIG_SHELL in | 
|  | 22129 | '') | 
|  | 22130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 22131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | 
|  | 22132 | do | 
|  | 22133 | IFS=$as_save_IFS | 
|  | 22134 | test -z "$as_dir" && as_dir=. | 
|  | 22135 | for as_base in sh bash ksh sh5; do | 
|  | 22136 | case $as_dir in | 
|  | 22137 | /*) | 
|  | 22138 | if ("$as_dir/$as_base" -c ' | 
|  | 22139 | as_lineno_1=$LINENO | 
|  | 22140 | as_lineno_2=$LINENO | 
|  | 22141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | 
|  | 22142 | test "x$as_lineno_1" != "x$as_lineno_2" && | 
|  | 22143 | test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | 
|  | 22145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22146 | CONFIG_SHELL=$as_dir/$as_base | 
|  | 22147 | export CONFIG_SHELL | 
|  | 22148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | 
|  | 22149 | fi;; | 
|  | 22150 | esac | 
|  | 22151 | done | 
|  | 22152 | done | 
|  | 22153 | ;; | 
|  | 22154 | esac | 
|  | 22155 |  | 
|  | 22156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | 
|  | 22157 | # uniformly replaced by the line number.  The first 'sed' inserts a | 
|  | 22158 | # line-number line before each line; the second 'sed' does the real | 
|  | 22159 | # work.  The second script uses 'N' to pair each line-number line | 
|  | 22160 | # with the numbered line, and appends trailing '-' during | 
|  | 22161 | # substitution so that $LINENO is not a special case at line end. | 
|  | 22162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | 
|  | 22163 | # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-) | 
|  | 22164 | sed '=' <$as_myself | | 
|  | 22165 | sed ' | 
|  | 22166 | N | 
|  | 22167 | s,$,-, | 
|  | 22168 | : loop | 
|  | 22169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | 
|  | 22170 | t loop | 
|  | 22171 | s,-$,, | 
|  | 22172 | s,^['$as_cr_digits']*\n,, | 
|  | 22173 | ' >$as_me.lineno && | 
|  | 22174 | chmod +x $as_me.lineno || | 
|  | 22175 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | 
|  | 22176 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | 
|  | 22177 | { (exit 1); exit 1; }; } | 
|  | 22178 |  | 
|  | 22179 | # Don't try to exec as it changes $[0], causing all sort of problems | 
|  | 22180 | # (the dirname of $[0] is not the place where we might find the | 
|  | 22181 | # original and so on.  Autoconf is especially sensible to this). | 
|  | 22182 | . ./$as_me.lineno | 
|  | 22183 | # Exit status is that of the last command. | 
|  | 22184 | exit | 
|  | 22185 | } | 
|  | 22186 |  | 
|  | 22187 |  | 
|  | 22188 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | 
|  | 22189 | *c*,-n*) ECHO_N= ECHO_C=' | 
|  | 22190 | ' ECHO_T='	' ;; | 
|  | 22191 | *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;; | 
|  | 22192 | *)       ECHO_N= ECHO_C='\c' ECHO_T= ;; | 
|  | 22193 | esac | 
|  | 22194 |  | 
|  | 22195 | if expr a : '\(a\)' >/dev/null 2>&1; then | 
|  | 22196 | as_expr=expr | 
|  | 22197 | else | 
|  | 22198 | as_expr=false | 
|  | 22199 | fi | 
|  | 22200 |  | 
|  | 22201 | rm -f conf$$ conf$$.exe conf$$.file | 
|  | 22202 | echo >conf$$.file | 
|  | 22203 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
|  | 22204 | # We could just check for DJGPP; but this test a) works b) is more generic | 
|  | 22205 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | 
|  | 22206 | if test -f conf$$.exe; then | 
|  | 22207 | # Don't use ln at all; we don't have any links | 
|  | 22208 | as_ln_s='cp -p' | 
|  | 22209 | else | 
|  | 22210 | as_ln_s='ln -s' | 
|  | 22211 | fi | 
|  | 22212 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
|  | 22213 | as_ln_s=ln | 
|  | 22214 | else | 
|  | 22215 | as_ln_s='cp -p' | 
|  | 22216 | fi | 
|  | 22217 | rm -f conf$$ conf$$.exe conf$$.file | 
|  | 22218 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22219 | if mkdir -p . 2>/dev/null; then | 
|  | 22220 | as_mkdir_p=: | 
|  | 22221 | else | 
|  | 22222 | as_mkdir_p=false | 
|  | 22223 | fi | 
|  | 22224 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22225 | as_executable_p="test -f" | 
|  | 22226 |  | 
|  | 22227 | # Sed expression to map a string onto a valid CPP name. | 
|  | 22228 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | 
|  | 22229 |  | 
|  | 22230 | # Sed expression to map a string onto a valid variable name. | 
|  | 22231 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | 
|  | 22232 |  | 
|  | 22233 |  | 
|  | 22234 | # IFS | 
|  | 22235 | # We need space, tab and new line, in precisely that order. | 
|  | 22236 | as_nl=' | 
|  | 22237 | ' | 
|  | 22238 | IFS=" 	$as_nl" | 
|  | 22239 |  | 
|  | 22240 | # CDPATH. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22241 | $as_unset CDPATH | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22242 |  | 
|  | 22243 | exec 6>&1 | 
|  | 22244 |  | 
|  | 22245 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | 
|  | 22246 | # report actual input values of CONFIG_FILES etc. instead of their | 
|  | 22247 | # values after options handling.  Logging --version etc. is OK. | 
|  | 22248 | exec 5>>config.log | 
|  | 22249 | { | 
|  | 22250 | echo | 
|  | 22251 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | 
|  | 22252 | ## Running $as_me. ## | 
|  | 22253 | _ASBOX | 
|  | 22254 | } >&5 | 
|  | 22255 | cat >&5 <<_CSEOF | 
|  | 22256 |  | 
| John Criswell | d000e1d | 2003-12-18 16:43:17 +0000 | [diff] [blame] | 22257 | This file was extended by [LLVM] $as_me [1.1], which was | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22258 | generated by GNU Autoconf 2.57.  Invocation command line was | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22259 |  | 
|  | 22260 | CONFIG_FILES    = $CONFIG_FILES | 
|  | 22261 | CONFIG_HEADERS  = $CONFIG_HEADERS | 
|  | 22262 | CONFIG_LINKS    = $CONFIG_LINKS | 
|  | 22263 | CONFIG_COMMANDS = $CONFIG_COMMANDS | 
|  | 22264 | $ $0 $@ | 
|  | 22265 |  | 
|  | 22266 | _CSEOF | 
|  | 22267 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | 
|  | 22268 | echo >&5 | 
|  | 22269 | _ACEOF | 
|  | 22270 |  | 
|  | 22271 | # Files that config.status was made for. | 
|  | 22272 | if test -n "$ac_config_files"; then | 
|  | 22273 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | 
|  | 22274 | fi | 
|  | 22275 |  | 
|  | 22276 | if test -n "$ac_config_headers"; then | 
|  | 22277 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | 
|  | 22278 | fi | 
|  | 22279 |  | 
|  | 22280 | if test -n "$ac_config_links"; then | 
|  | 22281 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | 
|  | 22282 | fi | 
|  | 22283 |  | 
|  | 22284 | if test -n "$ac_config_commands"; then | 
|  | 22285 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | 
|  | 22286 | fi | 
|  | 22287 |  | 
|  | 22288 | cat >>$CONFIG_STATUS <<\_ACEOF | 
|  | 22289 |  | 
|  | 22290 | ac_cs_usage="\ | 
|  | 22291 | \`$as_me' instantiates files from templates according to the | 
|  | 22292 | current configuration. | 
|  | 22293 |  | 
|  | 22294 | Usage: $0 [OPTIONS] [FILE]... | 
|  | 22295 |  | 
|  | 22296 | -h, --help       print this help, then exit | 
|  | 22297 | -V, --version    print version number, then exit | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22298 | -q, --quiet      do not print progress messages | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22299 | -d, --debug      don't remove temporary files | 
|  | 22300 | --recheck    update $as_me by reconfiguring in the same conditions | 
|  | 22301 | --file=FILE[:TEMPLATE] | 
|  | 22302 | instantiate the configuration file FILE | 
|  | 22303 | --header=FILE[:TEMPLATE] | 
|  | 22304 | instantiate the configuration header FILE | 
|  | 22305 |  | 
|  | 22306 | Configuration files: | 
|  | 22307 | $config_files | 
|  | 22308 |  | 
|  | 22309 | Configuration headers: | 
|  | 22310 | $config_headers | 
|  | 22311 |  | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22312 | Configuration commands: | 
|  | 22313 | $config_commands | 
|  | 22314 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22315 | Report bugs to <bug-autoconf@gnu.org>." | 
|  | 22316 | _ACEOF | 
|  | 22317 |  | 
|  | 22318 | cat >>$CONFIG_STATUS <<_ACEOF | 
|  | 22319 | ac_cs_version="\\ | 
| John Criswell | d000e1d | 2003-12-18 16:43:17 +0000 | [diff] [blame] | 22320 | [LLVM] config.status [1.1] | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22321 | configured by $0, generated by GNU Autoconf 2.57, | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22322 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | 
|  | 22323 |  | 
|  | 22324 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | 
|  | 22325 | Free Software Foundation, Inc. | 
|  | 22326 | This config.status script is free software; the Free Software Foundation | 
|  | 22327 | gives unlimited permission to copy, distribute and modify it." | 
|  | 22328 | srcdir=$srcdir | 
|  | 22329 | INSTALL="$INSTALL" | 
|  | 22330 | _ACEOF | 
|  | 22331 |  | 
|  | 22332 | cat >>$CONFIG_STATUS <<\_ACEOF | 
|  | 22333 | # If no file are specified by the user, then we need to provide default | 
|  | 22334 | # value.  By we need to know if files were specified by the user. | 
|  | 22335 | ac_need_defaults=: | 
|  | 22336 | while test $# != 0 | 
|  | 22337 | do | 
|  | 22338 | case $1 in | 
|  | 22339 | --*=*) | 
|  | 22340 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | 
|  | 22341 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22342 | ac_shift=: | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22343 | ;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22344 | -*) | 
|  | 22345 | ac_option=$1 | 
|  | 22346 | ac_optarg=$2 | 
|  | 22347 | ac_shift=shift | 
|  | 22348 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22349 | *) # This is not an option, so the user has probably given explicit | 
|  | 22350 | # arguments. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22351 | ac_option=$1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22352 | ac_need_defaults=false;; | 
|  | 22353 | esac | 
|  | 22354 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22355 | case $ac_option in | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22356 | # Handling of the options. | 
|  | 22357 | _ACEOF | 
| John Criswell | d9cd144 | 2003-09-09 20:52:17 +0000 | [diff] [blame] | 22358 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22359 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
|  | 22360 | ac_cs_recheck=: ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22361 | --version | --vers* | -V ) | 
|  | 22362 | echo "$ac_cs_version"; exit 0 ;; | 
|  | 22363 | --he | --h) | 
|  | 22364 | # Conflict between --help and --header | 
|  | 22365 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | 
|  | 22366 | Try \`$0 --help' for more information." >&5 | 
|  | 22367 | echo "$as_me: error: ambiguous option: $1 | 
|  | 22368 | Try \`$0 --help' for more information." >&2;} | 
|  | 22369 | { (exit 1); exit 1; }; };; | 
|  | 22370 | --help | --hel | -h ) | 
|  | 22371 | echo "$ac_cs_usage"; exit 0 ;; | 
|  | 22372 | --debug | --d* | -d ) | 
|  | 22373 | debug=: ;; | 
|  | 22374 | --file | --fil | --fi | --f ) | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22375 | $ac_shift | 
|  | 22376 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22377 | ac_need_defaults=false;; | 
|  | 22378 | --header | --heade | --head | --hea ) | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22379 | $ac_shift | 
|  | 22380 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22381 | ac_need_defaults=false;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22382 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 22383 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | 
|  | 22384 | ac_cs_silent=: ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22385 |  | 
|  | 22386 | # This is an error. | 
|  | 22387 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | 
|  | 22388 | Try \`$0 --help' for more information." >&5 | 
|  | 22389 | echo "$as_me: error: unrecognized option: $1 | 
|  | 22390 | Try \`$0 --help' for more information." >&2;} | 
|  | 22391 | { (exit 1); exit 1; }; } ;; | 
|  | 22392 |  | 
|  | 22393 | *) ac_config_targets="$ac_config_targets $1" ;; | 
|  | 22394 |  | 
|  | 22395 | esac | 
|  | 22396 | shift | 
|  | 22397 | done | 
|  | 22398 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22399 | ac_configure_extra_args= | 
|  | 22400 |  | 
|  | 22401 | if $ac_cs_silent; then | 
|  | 22402 | exec 6>/dev/null | 
|  | 22403 | ac_configure_extra_args="$ac_configure_extra_args --silent" | 
|  | 22404 | fi | 
|  | 22405 |  | 
|  | 22406 | _ACEOF | 
|  | 22407 | cat >>$CONFIG_STATUS <<_ACEOF | 
|  | 22408 | if \$ac_cs_recheck; then | 
|  | 22409 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | 
|  | 22410 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | 
|  | 22411 | fi | 
|  | 22412 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22413 | _ACEOF | 
|  | 22414 |  | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22415 | cat >>$CONFIG_STATUS <<_ACEOF | 
|  | 22416 | # | 
|  | 22417 | # INIT-COMMANDS section. | 
|  | 22418 | # | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22419 |  | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22420 | ${srcdir}/autoconf/mkinstalldirs `dirname Makefile` | 
|  | 22421 | ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22422 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22423 | ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22424 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile` | 
|  | 22425 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests` | 
| John Criswell | f424d74 | 2003-10-07 21:13:47 +0000 | [diff] [blame] | 22426 | ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py` | 
|  | 22427 | ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22428 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile` | 
|  | 22429 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs` | 
|  | 22430 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile` | 
|  | 22431 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report` | 
|  | 22432 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report` | 
|  | 22433 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report` | 
|  | 22434 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile` | 
|  | 22435 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile` | 
|  | 22436 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile` | 
|  | 22437 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile` | 
|  | 22438 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report` | 
|  | 22439 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile` | 
|  | 22440 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report` | 
|  | 22441 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile` | 
|  | 22442 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot` | 
|  | 22443 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile` | 
|  | 22444 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile` | 
|  | 22445 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile` | 
| John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 22446 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec` | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 22447 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22448 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile` | 
|  | 22449 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc` | 
| Misha Brukman | 811ce9f | 2003-11-12 22:16:51 +0000 | [diff] [blame] | 22450 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in` | 
|  | 22451 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile` | 
|  | 22452 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in` | 
|  | 22453 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile` | 
|  | 22454 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in` | 
|  | 22455 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile` | 
|  | 22456 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in` | 
|  | 22457 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile` | 
|  | 22458 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in` | 
|  | 22459 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile` | 
|  | 22460 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in` | 
|  | 22461 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile` | 
|  | 22462 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22463 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile` | 
|  | 22464 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22465 | ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile` | 
| Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 22466 | ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22467 | ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22468 |  | 
|  | 22469 | _ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22470 |  | 
|  | 22471 |  | 
|  | 22472 |  | 
|  | 22473 | cat >>$CONFIG_STATUS <<\_ACEOF | 
|  | 22474 | for ac_config_target in $ac_config_targets | 
|  | 22475 | do | 
|  | 22476 | case "$ac_config_target" in | 
|  | 22477 | # Handling of arguments. | 
|  | 22478 | "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22479 | "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; | 
|  | 22480 | "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22481 | "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22482 | "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22483 | "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; | 
|  | 22484 | "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; | 
| John Criswell | f424d74 | 2003-10-07 21:13:47 +0000 | [diff] [blame] | 22485 | "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;; | 
|  | 22486 | "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22487 | "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;; | 
|  | 22488 | "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;; | 
|  | 22489 | "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;; | 
|  | 22490 | "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;; | 
|  | 22491 | "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;; | 
|  | 22492 | "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;; | 
|  | 22493 | "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;; | 
|  | 22494 | "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;; | 
|  | 22495 | "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;; | 
|  | 22496 | "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;; | 
|  | 22497 | "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;; | 
|  | 22498 | "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;; | 
|  | 22499 | "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;; | 
|  | 22500 | "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;; | 
|  | 22501 | "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;; | 
|  | 22502 | "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;; | 
|  | 22503 | "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;; | 
|  | 22504 | "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;; | 
| John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 22505 | "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;; | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 22506 | "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22507 | "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;; | 
|  | 22508 | "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;; | 
| Misha Brukman | 811ce9f | 2003-11-12 22:16:51 +0000 | [diff] [blame] | 22509 | "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;; | 
|  | 22510 | "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;; | 
|  | 22511 | "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;; | 
|  | 22512 | "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;; | 
|  | 22513 | "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;; | 
|  | 22514 | "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;; | 
|  | 22515 | "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;; | 
|  | 22516 | "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;; | 
|  | 22517 | "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;; | 
|  | 22518 | "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;; | 
|  | 22519 | "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;; | 
|  | 22520 | "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;; | 
|  | 22521 | "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22522 | "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;; | 
|  | 22523 | "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22524 | "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; | 
| Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 22525 | "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22526 | "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22527 | "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;; | 
|  | 22528 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | 
|  | 22529 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | 
|  | 22530 | { (exit 1); exit 1; }; };; | 
|  | 22531 | esac | 
|  | 22532 | done | 
|  | 22533 |  | 
|  | 22534 | # If the user did not use the arguments to specify the items to instantiate, | 
|  | 22535 | # then the envvar interface is used.  Set only those that are not. | 
|  | 22536 | # We use the long form for the default assignment because of an extremely | 
|  | 22537 | # bizarre bug on SunOS 4.1.3. | 
|  | 22538 | if $ac_need_defaults; then | 
|  | 22539 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 
|  | 22540 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22541 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22542 | fi | 
|  | 22543 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22544 | # Have a temporary directory for convenience.  Make it in the build tree | 
|  | 22545 | # simply because there is no reason to put it here, and in addition, | 
|  | 22546 | # creating and moving files from /tmp can sometimes cause problems. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22547 | # Create a temporary directory, and hook for its removal unless debugging. | 
|  | 22548 | $debug || | 
|  | 22549 | { | 
|  | 22550 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | 
|  | 22551 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | 
|  | 22552 | } | 
|  | 22553 |  | 
|  | 22554 | # Create a (secure) tmp directory for tmp files. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22555 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22556 | { | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22557 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22558 | test -n "$tmp" && test -d "$tmp" | 
|  | 22559 | }  || | 
|  | 22560 | { | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22561 | tmp=./confstat$$-$RANDOM | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22562 | (umask 077 && mkdir $tmp) | 
|  | 22563 | } || | 
|  | 22564 | { | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22565 | echo "$me: cannot create a temporary directory in ." >&2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22566 | { (exit 1); exit 1; } | 
|  | 22567 | } | 
|  | 22568 |  | 
|  | 22569 | _ACEOF | 
|  | 22570 |  | 
|  | 22571 | cat >>$CONFIG_STATUS <<_ACEOF | 
|  | 22572 |  | 
|  | 22573 | # | 
|  | 22574 | # CONFIG_FILES section. | 
|  | 22575 | # | 
|  | 22576 |  | 
|  | 22577 | # No need to generate the scripts if there are no CONFIG_FILES. | 
|  | 22578 | # This happens for instance when ./config.status config.h | 
|  | 22579 | if test -n "\$CONFIG_FILES"; then | 
|  | 22580 | # Protect against being on the right side of a sed subst in config.status. | 
|  | 22581 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | 
|  | 22582 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | 
|  | 22583 | s,@SHELL@,$SHELL,;t t | 
|  | 22584 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | 
|  | 22585 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | 
|  | 22586 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | 
|  | 22587 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | 
|  | 22588 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | 
|  | 22589 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | 
|  | 22590 | s,@exec_prefix@,$exec_prefix,;t t | 
|  | 22591 | s,@prefix@,$prefix,;t t | 
|  | 22592 | s,@program_transform_name@,$program_transform_name,;t t | 
|  | 22593 | s,@bindir@,$bindir,;t t | 
|  | 22594 | s,@sbindir@,$sbindir,;t t | 
|  | 22595 | s,@libexecdir@,$libexecdir,;t t | 
|  | 22596 | s,@datadir@,$datadir,;t t | 
|  | 22597 | s,@sysconfdir@,$sysconfdir,;t t | 
|  | 22598 | s,@sharedstatedir@,$sharedstatedir,;t t | 
|  | 22599 | s,@localstatedir@,$localstatedir,;t t | 
|  | 22600 | s,@libdir@,$libdir,;t t | 
|  | 22601 | s,@includedir@,$includedir,;t t | 
|  | 22602 | s,@oldincludedir@,$oldincludedir,;t t | 
|  | 22603 | s,@infodir@,$infodir,;t t | 
|  | 22604 | s,@mandir@,$mandir,;t t | 
|  | 22605 | s,@build_alias@,$build_alias,;t t | 
|  | 22606 | s,@host_alias@,$host_alias,;t t | 
|  | 22607 | s,@target_alias@,$target_alias,;t t | 
|  | 22608 | s,@DEFS@,$DEFS,;t t | 
|  | 22609 | s,@ECHO_C@,$ECHO_C,;t t | 
|  | 22610 | s,@ECHO_N@,$ECHO_N,;t t | 
|  | 22611 | s,@ECHO_T@,$ECHO_T,;t t | 
|  | 22612 | s,@LIBS@,$LIBS,;t t | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22613 | s,@subdirs@,$subdirs,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22614 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | 
|  | 22615 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | 
|  | 22616 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | 
|  | 22617 | s,@build@,$build,;t t | 
|  | 22618 | s,@build_cpu@,$build_cpu,;t t | 
|  | 22619 | s,@build_vendor@,$build_vendor,;t t | 
|  | 22620 | s,@build_os@,$build_os,;t t | 
|  | 22621 | s,@host@,$host,;t t | 
|  | 22622 | s,@host_cpu@,$host_cpu,;t t | 
|  | 22623 | s,@host_vendor@,$host_vendor,;t t | 
|  | 22624 | s,@host_os@,$host_os,;t t | 
|  | 22625 | s,@target@,$target,;t t | 
|  | 22626 | s,@target_cpu@,$target_cpu,;t t | 
|  | 22627 | s,@target_vendor@,$target_vendor,;t t | 
|  | 22628 | s,@target_os@,$target_os,;t t | 
|  | 22629 | s,@OS@,$OS,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22630 | s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t | 
| John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 22631 | s,@ARCH@,$ARCH,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22632 | s,@CXX@,$CXX,;t t | 
|  | 22633 | s,@CXXFLAGS@,$CXXFLAGS,;t t | 
|  | 22634 | s,@LDFLAGS@,$LDFLAGS,;t t | 
|  | 22635 | s,@CPPFLAGS@,$CPPFLAGS,;t t | 
|  | 22636 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | 
|  | 22637 | s,@EXEEXT@,$EXEEXT,;t t | 
|  | 22638 | s,@OBJEXT@,$OBJEXT,;t t | 
|  | 22639 | s,@CC@,$CC,;t t | 
|  | 22640 | s,@CFLAGS@,$CFLAGS,;t t | 
|  | 22641 | s,@ac_ct_CC@,$ac_ct_CC,;t t | 
|  | 22642 | s,@CPP@,$CPP,;t t | 
|  | 22643 | s,@ifGNUmake@,$ifGNUmake,;t t | 
|  | 22644 | s,@LEX@,$LEX,;t t | 
|  | 22645 | s,@LEXLIB@,$LEXLIB,;t t | 
|  | 22646 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t | 
|  | 22647 | s,@YACC@,$YACC,;t t | 
| Brian Gaeke | 1281063 | 2004-01-13 06:52:10 +0000 | [diff] [blame] | 22648 | s,@BISON@,$BISON,;t t | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22649 | s,@EGREP@,$EGREP,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22650 | s,@LN_S@,$LN_S,;t t | 
|  | 22651 | s,@ECHO@,$ECHO,;t t | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22652 | s,@AR@,$AR,;t t | 
|  | 22653 | s,@ac_ct_AR@,$ac_ct_AR,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22654 | s,@RANLIB@,$RANLIB,;t t | 
|  | 22655 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | 
|  | 22656 | s,@STRIP@,$STRIP,;t t | 
|  | 22657 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22658 | s,@CXXCPP@,$CXXCPP,;t t | 
|  | 22659 | s,@F77@,$F77,;t t | 
|  | 22660 | s,@FFLAGS@,$FFLAGS,;t t | 
|  | 22661 | s,@ac_ct_F77@,$ac_ct_F77,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22662 | s,@LIBTOOL@,$LIBTOOL,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22663 | s,@DOT@,$DOT,;t t | 
|  | 22664 | s,@ETAGS@,$ETAGS,;t t | 
| Brian Gaeke | afa3fbf | 2004-01-22 21:55:02 +0000 | [diff] [blame] | 22665 | s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 22666 | s,@PYTHON@,$PYTHON,;t t | 
|  | 22667 | s,@QMTEST@,$QMTEST,;t t | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 22668 | s,@ENDIAN@,$ENDIAN,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22669 | s,@ALLOCA@,$ALLOCA,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22670 | s,@MMAP_FILE@,$MMAP_FILE,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22671 | s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t | 
| John Criswell | 5512659 | 2003-10-07 21:57:39 +0000 | [diff] [blame] | 22672 | s,@SPEC_ROOT@,$SPEC_ROOT,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22673 | s,@USE_SPEC@,$USE_SPEC,;t t | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 22674 | s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t | 
|  | 22675 | s,@USE_SPEC95@,$USE_SPEC95,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22676 | s,@UPB@,$UPB,;t t | 
| John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 22677 | s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22678 | s,@JIT@,$JIT,;t t | 
| Brian Gaeke | 2f50a04 | 2004-01-16 21:31:21 +0000 | [diff] [blame] | 22679 | s,@LLVMCC1@,$LLVMCC1,;t t | 
|  | 22680 | s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22681 | s,@BCR@,$BCR,;t t | 
|  | 22682 | s,@PAPIDIR@,$PAPIDIR,;t t | 
| Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 22683 | s,@SHLIBEXT@,$SHLIBEXT,;t t | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 22684 | s,@LIBOBJS@,$LIBOBJS,;t t | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22685 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22686 | CEOF | 
|  | 22687 |  | 
|  | 22688 | _ACEOF | 
|  | 22689 |  | 
|  | 22690 | cat >>$CONFIG_STATUS <<\_ACEOF | 
|  | 22691 | # Split the substitutions into bite-sized pieces for seds with | 
|  | 22692 | # small command number limits, like on Digital OSF/1 and HP-UX. | 
|  | 22693 | ac_max_sed_lines=48 | 
|  | 22694 | ac_sed_frag=1 # Number of current file. | 
|  | 22695 | ac_beg=1 # First line for current file. | 
|  | 22696 | ac_end=$ac_max_sed_lines # Line after last line for current file. | 
|  | 22697 | ac_more_lines=: | 
|  | 22698 | ac_sed_cmds= | 
|  | 22699 | while $ac_more_lines; do | 
|  | 22700 | if test $ac_beg -gt 1; then | 
|  | 22701 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | 
|  | 22702 | else | 
|  | 22703 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | 
|  | 22704 | fi | 
|  | 22705 | if test ! -s $tmp/subs.frag; then | 
|  | 22706 | ac_more_lines=false | 
|  | 22707 | else | 
|  | 22708 | # The purpose of the label and of the branching condition is to | 
|  | 22709 | # speed up the sed processing (if there are no `@' at all, there | 
|  | 22710 | # is no need to browse any of the substitutions). | 
|  | 22711 | # These are the two extra sed commands mentioned above. | 
|  | 22712 | (echo ':t | 
|  | 22713 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | 
|  | 22714 | if test -z "$ac_sed_cmds"; then | 
|  | 22715 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | 
|  | 22716 | else | 
|  | 22717 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | 
|  | 22718 | fi | 
|  | 22719 | ac_sed_frag=`expr $ac_sed_frag + 1` | 
|  | 22720 | ac_beg=$ac_end | 
|  | 22721 | ac_end=`expr $ac_end + $ac_max_sed_lines` | 
|  | 22722 | fi | 
|  | 22723 | done | 
|  | 22724 | if test -z "$ac_sed_cmds"; then | 
|  | 22725 | ac_sed_cmds=cat | 
|  | 22726 | fi | 
|  | 22727 | fi # test -n "$CONFIG_FILES" | 
|  | 22728 |  | 
|  | 22729 | _ACEOF | 
|  | 22730 | cat >>$CONFIG_STATUS <<\_ACEOF | 
|  | 22731 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | 
|  | 22732 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 
|  | 22733 | case $ac_file in | 
|  | 22734 | - | *:- | *:-:* ) # input from stdin | 
|  | 22735 | cat >$tmp/stdin | 
|  | 22736 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
|  | 22737 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | 
|  | 22738 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
|  | 22739 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | 
|  | 22740 | * )   ac_file_in=$ac_file.in ;; | 
|  | 22741 | esac | 
|  | 22742 |  | 
|  | 22743 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | 
|  | 22744 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | 
|  | 22745 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 22746 | X"$ac_file" : 'X\(//\)[^/]' \| \ | 
|  | 22747 | X"$ac_file" : 'X\(//\)$' \| \ | 
|  | 22748 | X"$ac_file" : 'X\(/\)' \| \ | 
|  | 22749 | .     : '\(.\)' 2>/dev/null || | 
|  | 22750 | echo X"$ac_file" | | 
|  | 22751 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
|  | 22752 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
|  | 22753 | /^X\(\/\/\)$/{ s//\1/; q; } | 
|  | 22754 | /^X\(\/\).*/{ s//\1/; q; } | 
|  | 22755 | s/.*/./; q'` | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22756 | { if $as_mkdir_p; then | 
|  | 22757 | mkdir -p "$ac_dir" | 
|  | 22758 | else | 
|  | 22759 | as_dir="$ac_dir" | 
|  | 22760 | as_dirs= | 
|  | 22761 | while test ! -d "$as_dir"; do | 
|  | 22762 | as_dirs="$as_dir $as_dirs" | 
|  | 22763 | as_dir=`(dirname "$as_dir") 2>/dev/null || | 
|  | 22764 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 22765 | X"$as_dir" : 'X\(//\)[^/]' \| \ | 
|  | 22766 | X"$as_dir" : 'X\(//\)$' \| \ | 
|  | 22767 | X"$as_dir" : 'X\(/\)' \| \ | 
|  | 22768 | .     : '\(.\)' 2>/dev/null || | 
|  | 22769 | echo X"$as_dir" | | 
|  | 22770 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
|  | 22771 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
|  | 22772 | /^X\(\/\/\)$/{ s//\1/; q; } | 
|  | 22773 | /^X\(\/\).*/{ s//\1/; q; } | 
|  | 22774 | s/.*/./; q'` | 
|  | 22775 | done | 
|  | 22776 | test ! -n "$as_dirs" || mkdir $as_dirs | 
|  | 22777 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | 
|  | 22778 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | 
|  | 22779 | { (exit 1); exit 1; }; }; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22780 |  | 
|  | 22781 | ac_builddir=. | 
|  | 22782 |  | 
|  | 22783 | if test "$ac_dir" != .; then | 
|  | 22784 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
|  | 22785 | # A "../" for each directory in $ac_dir_suffix. | 
|  | 22786 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
|  | 22787 | else | 
|  | 22788 | ac_dir_suffix= ac_top_builddir= | 
|  | 22789 | fi | 
|  | 22790 |  | 
|  | 22791 | case $srcdir in | 
|  | 22792 | .)  # No --srcdir option.  We are building in place. | 
|  | 22793 | ac_srcdir=. | 
|  | 22794 | if test -z "$ac_top_builddir"; then | 
|  | 22795 | ac_top_srcdir=. | 
|  | 22796 | else | 
|  | 22797 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
|  | 22798 | fi ;; | 
|  | 22799 | [\\/]* | ?:[\\/]* )  # Absolute path. | 
|  | 22800 | ac_srcdir=$srcdir$ac_dir_suffix; | 
|  | 22801 | ac_top_srcdir=$srcdir ;; | 
|  | 22802 | *) # Relative path. | 
|  | 22803 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
|  | 22804 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
|  | 22805 | esac | 
|  | 22806 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | 
|  | 22807 | # absolute. | 
|  | 22808 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22809 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22810 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | 
|  | 22811 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | 
|  | 22812 |  | 
|  | 22813 |  | 
|  | 22814 | case $INSTALL in | 
|  | 22815 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | 
|  | 22816 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | 
|  | 22817 | esac | 
|  | 22818 |  | 
|  | 22819 | if test x"$ac_file" != x-; then | 
|  | 22820 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | 
|  | 22821 | echo "$as_me: creating $ac_file" >&6;} | 
|  | 22822 | rm -f "$ac_file" | 
|  | 22823 | fi | 
|  | 22824 | # Let's still pretend it is `configure' which instantiates (i.e., don't | 
|  | 22825 | # use $as_me), people would be surprised to read: | 
|  | 22826 | #    /* config.h.  Generated by config.status.  */ | 
|  | 22827 | if test x"$ac_file" = x-; then | 
|  | 22828 | configure_input= | 
|  | 22829 | else | 
|  | 22830 | configure_input="$ac_file.  " | 
|  | 22831 | fi | 
|  | 22832 | configure_input=$configure_input"Generated from `echo $ac_file_in | | 
|  | 22833 | sed 's,.*/,,'` by configure." | 
|  | 22834 |  | 
|  | 22835 | # First look for the input files in the build tree, otherwise in the | 
|  | 22836 | # src tree. | 
|  | 22837 | ac_file_inputs=`IFS=: | 
|  | 22838 | for f in $ac_file_in; do | 
|  | 22839 | case $f in | 
|  | 22840 | -) echo $tmp/stdin ;; | 
|  | 22841 | [\\/$]*) | 
|  | 22842 | # Absolute (can't be DOS-style, as IFS=:) | 
|  | 22843 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | 
|  | 22844 | echo "$as_me: error: cannot find input file: $f" >&2;} | 
|  | 22845 | { (exit 1); exit 1; }; } | 
|  | 22846 | echo $f;; | 
|  | 22847 | *) # Relative | 
|  | 22848 | if test -f "$f"; then | 
|  | 22849 | # Build tree | 
|  | 22850 | echo $f | 
|  | 22851 | elif test -f "$srcdir/$f"; then | 
|  | 22852 | # Source tree | 
|  | 22853 | echo $srcdir/$f | 
|  | 22854 | else | 
|  | 22855 | # /dev/null tree | 
|  | 22856 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | 
|  | 22857 | echo "$as_me: error: cannot find input file: $f" >&2;} | 
|  | 22858 | { (exit 1); exit 1; }; } | 
|  | 22859 | fi;; | 
|  | 22860 | esac | 
|  | 22861 | done` || { (exit 1); exit 1; } | 
|  | 22862 | _ACEOF | 
|  | 22863 | cat >>$CONFIG_STATUS <<_ACEOF | 
|  | 22864 | sed "$ac_vpsub | 
|  | 22865 | $extrasub | 
|  | 22866 | _ACEOF | 
|  | 22867 | cat >>$CONFIG_STATUS <<\_ACEOF | 
|  | 22868 | :t | 
|  | 22869 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
|  | 22870 | s,@configure_input@,$configure_input,;t t | 
|  | 22871 | s,@srcdir@,$ac_srcdir,;t t | 
|  | 22872 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | 
|  | 22873 | s,@top_srcdir@,$ac_top_srcdir,;t t | 
|  | 22874 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | 
|  | 22875 | s,@builddir@,$ac_builddir,;t t | 
|  | 22876 | s,@abs_builddir@,$ac_abs_builddir,;t t | 
|  | 22877 | s,@top_builddir@,$ac_top_builddir,;t t | 
|  | 22878 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | 
|  | 22879 | s,@INSTALL@,$ac_INSTALL,;t t | 
|  | 22880 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | 
|  | 22881 | rm -f $tmp/stdin | 
|  | 22882 | if test x"$ac_file" != x-; then | 
|  | 22883 | mv $tmp/out $ac_file | 
|  | 22884 | else | 
|  | 22885 | cat $tmp/out | 
|  | 22886 | rm -f $tmp/out | 
|  | 22887 | fi | 
|  | 22888 |  | 
|  | 22889 | done | 
|  | 22890 | _ACEOF | 
|  | 22891 | cat >>$CONFIG_STATUS <<\_ACEOF | 
|  | 22892 |  | 
|  | 22893 | # | 
|  | 22894 | # CONFIG_HEADER section. | 
|  | 22895 | # | 
|  | 22896 |  | 
|  | 22897 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | 
|  | 22898 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | 
|  | 22899 | # | 
|  | 22900 | # ac_d sets the value in "#define NAME VALUE" lines. | 
|  | 22901 | ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)' | 
|  | 22902 | ac_dB='[ 	].*$,\1#\2' | 
|  | 22903 | ac_dC=' ' | 
|  | 22904 | ac_dD=',;t' | 
|  | 22905 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | 
|  | 22906 | ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)' | 
|  | 22907 | ac_uB='$,\1#\2define\3' | 
|  | 22908 | ac_uC=' ' | 
|  | 22909 | ac_uD=',;t' | 
|  | 22910 |  | 
|  | 22911 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | 
|  | 22912 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 
|  | 22913 | case $ac_file in | 
|  | 22914 | - | *:- | *:-:* ) # input from stdin | 
|  | 22915 | cat >$tmp/stdin | 
|  | 22916 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
|  | 22917 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | 
|  | 22918 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
|  | 22919 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | 
|  | 22920 | * )   ac_file_in=$ac_file.in ;; | 
|  | 22921 | esac | 
|  | 22922 |  | 
|  | 22923 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | 
|  | 22924 | echo "$as_me: creating $ac_file" >&6;} | 
|  | 22925 |  | 
|  | 22926 | # First look for the input files in the build tree, otherwise in the | 
|  | 22927 | # src tree. | 
|  | 22928 | ac_file_inputs=`IFS=: | 
|  | 22929 | for f in $ac_file_in; do | 
|  | 22930 | case $f in | 
|  | 22931 | -) echo $tmp/stdin ;; | 
|  | 22932 | [\\/$]*) | 
|  | 22933 | # Absolute (can't be DOS-style, as IFS=:) | 
|  | 22934 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | 
|  | 22935 | echo "$as_me: error: cannot find input file: $f" >&2;} | 
|  | 22936 | { (exit 1); exit 1; }; } | 
|  | 22937 | echo $f;; | 
|  | 22938 | *) # Relative | 
|  | 22939 | if test -f "$f"; then | 
|  | 22940 | # Build tree | 
|  | 22941 | echo $f | 
|  | 22942 | elif test -f "$srcdir/$f"; then | 
|  | 22943 | # Source tree | 
|  | 22944 | echo $srcdir/$f | 
|  | 22945 | else | 
|  | 22946 | # /dev/null tree | 
|  | 22947 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | 
|  | 22948 | echo "$as_me: error: cannot find input file: $f" >&2;} | 
|  | 22949 | { (exit 1); exit 1; }; } | 
|  | 22950 | fi;; | 
|  | 22951 | esac | 
|  | 22952 | done` || { (exit 1); exit 1; } | 
|  | 22953 | # Remove the trailing spaces. | 
|  | 22954 | sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in | 
|  | 22955 |  | 
|  | 22956 | _ACEOF | 
|  | 22957 |  | 
|  | 22958 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | 
|  | 22959 | # `conftest.undefs', that substitutes the proper values into | 
|  | 22960 | # config.h.in to produce config.h.  The first handles `#define' | 
|  | 22961 | # templates, and the second `#undef' templates. | 
|  | 22962 | # And first: Protect against being on the right side of a sed subst in | 
|  | 22963 | # config.status.  Protect against being in an unquoted here document | 
|  | 22964 | # in config.status. | 
|  | 22965 | rm -f conftest.defines conftest.undefs | 
|  | 22966 | # Using a here document instead of a string reduces the quoting nightmare. | 
|  | 22967 | # Putting comments in sed scripts is not portable. | 
|  | 22968 | # | 
|  | 22969 | # `end' is used to avoid that the second main sed command (meant for | 
|  | 22970 | # 0-ary CPP macros) applies to n-ary macro definitions. | 
|  | 22971 | # See the Autoconf documentation for `clear'. | 
|  | 22972 | cat >confdef2sed.sed <<\_ACEOF | 
|  | 22973 | s/[\\&,]/\\&/g | 
|  | 22974 | s,[\\$`],\\&,g | 
|  | 22975 | t clear | 
|  | 22976 | : clear | 
|  | 22977 | s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | 
|  | 22978 | t end | 
|  | 22979 | s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | 
|  | 22980 | : end | 
|  | 22981 | _ACEOF | 
|  | 22982 | # If some macros were called several times there might be several times | 
|  | 22983 | # the same #defines, which is useless.  Nevertheless, we may not want to | 
|  | 22984 | # sort them, since we want the *last* AC-DEFINE to be honored. | 
|  | 22985 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | 
|  | 22986 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | 
|  | 22987 | rm -f confdef2sed.sed | 
|  | 22988 |  | 
|  | 22989 | # This sed command replaces #undef with comments.  This is necessary, for | 
|  | 22990 | # example, in the case of _POSIX_SOURCE, which is predefined and required | 
|  | 22991 | # on some systems where configure will not decide to define it. | 
|  | 22992 | cat >>conftest.undefs <<\_ACEOF | 
|  | 22993 | s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | 
|  | 22994 | _ACEOF | 
|  | 22995 |  | 
|  | 22996 | # Break up conftest.defines because some shells have a limit on the size | 
|  | 22997 | # of here documents, and old seds have small limits too (100 cmds). | 
|  | 22998 | echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22999 | echo '  if grep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23000 | echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | 
|  | 23001 | echo '  :' >>$CONFIG_STATUS | 
|  | 23002 | rm -f conftest.tail | 
|  | 23003 | while grep . conftest.defines >/dev/null | 
|  | 23004 | do | 
|  | 23005 | # Write a limited-size here document to $tmp/defines.sed. | 
|  | 23006 | echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | 
|  | 23007 | # Speed up: don't consider the non `#define' lines. | 
|  | 23008 | echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS | 
|  | 23009 | # Work around the forget-to-reset-the-flag bug. | 
|  | 23010 | echo 't clr' >>$CONFIG_STATUS | 
|  | 23011 | echo ': clr' >>$CONFIG_STATUS | 
|  | 23012 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | 
|  | 23013 | echo 'CEOF | 
|  | 23014 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | 
|  | 23015 | rm -f $tmp/in | 
|  | 23016 | mv $tmp/out $tmp/in | 
|  | 23017 | ' >>$CONFIG_STATUS | 
|  | 23018 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | 
|  | 23019 | rm -f conftest.defines | 
|  | 23020 | mv conftest.tail conftest.defines | 
|  | 23021 | done | 
|  | 23022 | rm -f conftest.defines | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23023 | echo '  fi # grep' >>$CONFIG_STATUS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23024 | echo >>$CONFIG_STATUS | 
|  | 23025 |  | 
|  | 23026 | # Break up conftest.undefs because some shells have a limit on the size | 
|  | 23027 | # of here documents, and old seds have small limits too (100 cmds). | 
|  | 23028 | echo '  # Handle all the #undef templates' >>$CONFIG_STATUS | 
|  | 23029 | rm -f conftest.tail | 
|  | 23030 | while grep . conftest.undefs >/dev/null | 
|  | 23031 | do | 
|  | 23032 | # Write a limited-size here document to $tmp/undefs.sed. | 
|  | 23033 | echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | 
|  | 23034 | # Speed up: don't consider the non `#undef' | 
|  | 23035 | echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS | 
|  | 23036 | # Work around the forget-to-reset-the-flag bug. | 
|  | 23037 | echo 't clr' >>$CONFIG_STATUS | 
|  | 23038 | echo ': clr' >>$CONFIG_STATUS | 
|  | 23039 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | 
|  | 23040 | echo 'CEOF | 
|  | 23041 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | 
|  | 23042 | rm -f $tmp/in | 
|  | 23043 | mv $tmp/out $tmp/in | 
|  | 23044 | ' >>$CONFIG_STATUS | 
|  | 23045 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | 
|  | 23046 | rm -f conftest.undefs | 
|  | 23047 | mv conftest.tail conftest.undefs | 
|  | 23048 | done | 
|  | 23049 | rm -f conftest.undefs | 
|  | 23050 |  | 
|  | 23051 | cat >>$CONFIG_STATUS <<\_ACEOF | 
|  | 23052 | # Let's still pretend it is `configure' which instantiates (i.e., don't | 
|  | 23053 | # use $as_me), people would be surprised to read: | 
|  | 23054 | #    /* config.h.  Generated by config.status.  */ | 
|  | 23055 | if test x"$ac_file" = x-; then | 
|  | 23056 | echo "/* Generated by configure.  */" >$tmp/config.h | 
|  | 23057 | else | 
|  | 23058 | echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h | 
|  | 23059 | fi | 
|  | 23060 | cat $tmp/in >>$tmp/config.h | 
|  | 23061 | rm -f $tmp/in | 
|  | 23062 | if test x"$ac_file" != x-; then | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23063 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23064 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | 
|  | 23065 | echo "$as_me: $ac_file is unchanged" >&6;} | 
|  | 23066 | else | 
|  | 23067 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | 
|  | 23068 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 23069 | X"$ac_file" : 'X\(//\)[^/]' \| \ | 
|  | 23070 | X"$ac_file" : 'X\(//\)$' \| \ | 
|  | 23071 | X"$ac_file" : 'X\(/\)' \| \ | 
|  | 23072 | .     : '\(.\)' 2>/dev/null || | 
|  | 23073 | echo X"$ac_file" | | 
|  | 23074 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
|  | 23075 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
|  | 23076 | /^X\(\/\/\)$/{ s//\1/; q; } | 
|  | 23077 | /^X\(\/\).*/{ s//\1/; q; } | 
|  | 23078 | s/.*/./; q'` | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23079 | { if $as_mkdir_p; then | 
|  | 23080 | mkdir -p "$ac_dir" | 
|  | 23081 | else | 
|  | 23082 | as_dir="$ac_dir" | 
|  | 23083 | as_dirs= | 
|  | 23084 | while test ! -d "$as_dir"; do | 
|  | 23085 | as_dirs="$as_dir $as_dirs" | 
|  | 23086 | as_dir=`(dirname "$as_dir") 2>/dev/null || | 
|  | 23087 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 23088 | X"$as_dir" : 'X\(//\)[^/]' \| \ | 
|  | 23089 | X"$as_dir" : 'X\(//\)$' \| \ | 
|  | 23090 | X"$as_dir" : 'X\(/\)' \| \ | 
|  | 23091 | .     : '\(.\)' 2>/dev/null || | 
|  | 23092 | echo X"$as_dir" | | 
|  | 23093 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
|  | 23094 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
|  | 23095 | /^X\(\/\/\)$/{ s//\1/; q; } | 
|  | 23096 | /^X\(\/\).*/{ s//\1/; q; } | 
|  | 23097 | s/.*/./; q'` | 
|  | 23098 | done | 
|  | 23099 | test ! -n "$as_dirs" || mkdir $as_dirs | 
|  | 23100 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | 
|  | 23101 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | 
|  | 23102 | { (exit 1); exit 1; }; }; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23103 |  | 
|  | 23104 | rm -f $ac_file | 
|  | 23105 | mv $tmp/config.h $ac_file | 
|  | 23106 | fi | 
|  | 23107 | else | 
|  | 23108 | cat $tmp/config.h | 
|  | 23109 | rm -f $tmp/config.h | 
|  | 23110 | fi | 
|  | 23111 | done | 
|  | 23112 | _ACEOF | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23113 | cat >>$CONFIG_STATUS <<\_ACEOF | 
|  | 23114 |  | 
|  | 23115 | # | 
|  | 23116 | # CONFIG_COMMANDS section. | 
|  | 23117 | # | 
|  | 23118 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | 
|  | 23119 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | 
|  | 23120 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
|  | 23121 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | 
|  | 23122 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 23123 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | 
|  | 23124 | X"$ac_dest" : 'X\(//\)$' \| \ | 
|  | 23125 | X"$ac_dest" : 'X\(/\)' \| \ | 
|  | 23126 | .     : '\(.\)' 2>/dev/null || | 
|  | 23127 | echo X"$ac_dest" | | 
|  | 23128 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
|  | 23129 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
|  | 23130 | /^X\(\/\/\)$/{ s//\1/; q; } | 
|  | 23131 | /^X\(\/\).*/{ s//\1/; q; } | 
|  | 23132 | s/.*/./; q'` | 
|  | 23133 | ac_builddir=. | 
|  | 23134 |  | 
|  | 23135 | if test "$ac_dir" != .; then | 
|  | 23136 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
|  | 23137 | # A "../" for each directory in $ac_dir_suffix. | 
|  | 23138 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
|  | 23139 | else | 
|  | 23140 | ac_dir_suffix= ac_top_builddir= | 
|  | 23141 | fi | 
|  | 23142 |  | 
|  | 23143 | case $srcdir in | 
|  | 23144 | .)  # No --srcdir option.  We are building in place. | 
|  | 23145 | ac_srcdir=. | 
|  | 23146 | if test -z "$ac_top_builddir"; then | 
|  | 23147 | ac_top_srcdir=. | 
|  | 23148 | else | 
|  | 23149 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
|  | 23150 | fi ;; | 
|  | 23151 | [\\/]* | ?:[\\/]* )  # Absolute path. | 
|  | 23152 | ac_srcdir=$srcdir$ac_dir_suffix; | 
|  | 23153 | ac_top_srcdir=$srcdir ;; | 
|  | 23154 | *) # Relative path. | 
|  | 23155 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
|  | 23156 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
|  | 23157 | esac | 
|  | 23158 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | 
|  | 23159 | # absolute. | 
|  | 23160 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23161 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23162 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | 
|  | 23163 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | 
|  | 23164 |  | 
|  | 23165 |  | 
|  | 23166 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | 
|  | 23167 | echo "$as_me: executing $ac_dest commands" >&6;} | 
|  | 23168 | case $ac_dest in | 
|  | 23169 | Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;; | 
|  | 23170 | Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23171 | lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23172 | runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23173 | test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;; | 
|  | 23174 | test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; | 
| John Criswell | f424d74 | 2003-10-07 21:13:47 +0000 | [diff] [blame] | 23175 | test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;; | 
|  | 23176 | test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23177 | test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;; | 
|  | 23178 | test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;; | 
|  | 23179 | test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;; | 
|  | 23180 | test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;; | 
|  | 23181 | test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;; | 
|  | 23182 | test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;; | 
|  | 23183 | test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;; | 
|  | 23184 | test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;; | 
|  | 23185 | test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;; | 
|  | 23186 | test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;; | 
|  | 23187 | test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;; | 
|  | 23188 | test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;; | 
|  | 23189 | test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;; | 
|  | 23190 | test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;; | 
|  | 23191 | test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;; | 
|  | 23192 | test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;; | 
|  | 23193 | test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;; | 
|  | 23194 | test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;; | 
| John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 23195 | test/Programs/External/SPEC/Makefile.spec ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec test/Programs/External/SPEC/Makefile.spec ;; | 
| John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 23196 | test/Programs/External/SPEC/Makefile.spec95 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec95 test/Programs/External/SPEC/Makefile.spec95 ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23197 | test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;; | 
|  | 23198 | test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;; | 
| Misha Brukman | 811ce9f | 2003-11-12 22:16:51 +0000 | [diff] [blame] | 23199 | test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ;; | 
|  | 23200 | test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ;; | 
|  | 23201 | test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ;; | 
|  | 23202 | test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ;; | 
|  | 23203 | test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ;; | 
|  | 23204 | test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ;; | 
|  | 23205 | test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ;; | 
|  | 23206 | test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ;; | 
|  | 23207 | test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ;; | 
|  | 23208 | test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ;; | 
|  | 23209 | test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ;; | 
|  | 23210 | test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ;; | 
|  | 23211 | test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23212 | test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;; | 
|  | 23213 | test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23214 | tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;; | 
| Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 23215 | utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23216 | projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23217 | esac | 
|  | 23218 | done | 
|  | 23219 | _ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23220 |  | 
|  | 23221 | cat >>$CONFIG_STATUS <<\_ACEOF | 
|  | 23222 |  | 
|  | 23223 | { (exit 0); exit 0; } | 
|  | 23224 | _ACEOF | 
|  | 23225 | chmod +x $CONFIG_STATUS | 
|  | 23226 | ac_clean_files=$ac_clean_files_save | 
|  | 23227 |  | 
|  | 23228 |  | 
|  | 23229 | # configure is writing to config.log, and then calls config.status. | 
|  | 23230 | # config.status does its own redirection, appending to config.log. | 
|  | 23231 | # Unfortunately, on DOS this fails, as config.log is still kept open | 
|  | 23232 | # by configure, so config.status won't be able to write to it; its | 
|  | 23233 | # output is simply discarded.  So we exec the FD to /dev/null, | 
|  | 23234 | # effectively closing config.log, so it can be properly (re)opened and | 
|  | 23235 | # appended to by config.status.  When coming back to configure, we | 
|  | 23236 | # need to make the FD available again. | 
|  | 23237 | if test "$no_create" != yes; then | 
|  | 23238 | ac_cs_success=: | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23239 | ac_config_status_args= | 
|  | 23240 | test "$silent" = yes && | 
|  | 23241 | ac_config_status_args="$ac_config_status_args --quiet" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23242 | exec 5>/dev/null | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23243 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23244 | exec 5>>config.log | 
|  | 23245 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 
|  | 23246 | # would make configure fail if this is the last instruction. | 
|  | 23247 | $ac_cs_success || { (exit 1); exit 1; } | 
|  | 23248 | fi | 
|  | 23249 |  | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 23250 | # | 
|  | 23251 | # CONFIG_SUBDIRS section. | 
|  | 23252 | # | 
|  | 23253 | if test "$no_recursion" != yes; then | 
|  | 23254 |  | 
|  | 23255 | # Remove --cache-file and --srcdir arguments so they do not pile up. | 
|  | 23256 | ac_sub_configure_args= | 
|  | 23257 | ac_prev= | 
|  | 23258 | for ac_arg in $ac_configure_args; do | 
|  | 23259 | if test -n "$ac_prev"; then | 
|  | 23260 | ac_prev= | 
|  | 23261 | continue | 
|  | 23262 | fi | 
|  | 23263 | case $ac_arg in | 
|  | 23264 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
|  | 23265 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
|  | 23266 | ac_prev=cache_file ;; | 
|  | 23267 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
|  | 23268 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | 
|  | 23269 | | --c=*) | 
|  | 23270 | ;; | 
|  | 23271 | --config-cache | -C) | 
|  | 23272 | ;; | 
|  | 23273 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
|  | 23274 | ac_prev=srcdir ;; | 
|  | 23275 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
|  | 23276 | ;; | 
|  | 23277 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
|  | 23278 | ac_prev=prefix ;; | 
|  | 23279 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
|  | 23280 | ;; | 
|  | 23281 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | 
|  | 23282 | esac | 
|  | 23283 | done | 
|  | 23284 |  | 
|  | 23285 | # Always prepend --prefix to ensure using the same prefix | 
|  | 23286 | # in subdir configurations. | 
|  | 23287 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | 
|  | 23288 |  | 
|  | 23289 | ac_popdir=`pwd` | 
|  | 23290 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | 
|  | 23291 |  | 
|  | 23292 | # Do not complain, so a configure script can configure whichever | 
|  | 23293 | # parts of a large source tree are present. | 
|  | 23294 | test -d $srcdir/$ac_dir || continue | 
|  | 23295 |  | 
|  | 23296 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | 
|  | 23297 | echo "$as_me: configuring in $ac_dir" >&6;} | 
|  | 23298 | { if $as_mkdir_p; then | 
|  | 23299 | mkdir -p "$ac_dir" | 
|  | 23300 | else | 
|  | 23301 | as_dir="$ac_dir" | 
|  | 23302 | as_dirs= | 
|  | 23303 | while test ! -d "$as_dir"; do | 
|  | 23304 | as_dirs="$as_dir $as_dirs" | 
|  | 23305 | as_dir=`(dirname "$as_dir") 2>/dev/null || | 
|  | 23306 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 23307 | X"$as_dir" : 'X\(//\)[^/]' \| \ | 
|  | 23308 | X"$as_dir" : 'X\(//\)$' \| \ | 
|  | 23309 | X"$as_dir" : 'X\(/\)' \| \ | 
|  | 23310 | .     : '\(.\)' 2>/dev/null || | 
|  | 23311 | echo X"$as_dir" | | 
|  | 23312 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
|  | 23313 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
|  | 23314 | /^X\(\/\/\)$/{ s//\1/; q; } | 
|  | 23315 | /^X\(\/\).*/{ s//\1/; q; } | 
|  | 23316 | s/.*/./; q'` | 
|  | 23317 | done | 
|  | 23318 | test ! -n "$as_dirs" || mkdir $as_dirs | 
|  | 23319 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | 
|  | 23320 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | 
|  | 23321 | { (exit 1); exit 1; }; }; } | 
|  | 23322 |  | 
|  | 23323 | ac_builddir=. | 
|  | 23324 |  | 
|  | 23325 | if test "$ac_dir" != .; then | 
|  | 23326 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
|  | 23327 | # A "../" for each directory in $ac_dir_suffix. | 
|  | 23328 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
|  | 23329 | else | 
|  | 23330 | ac_dir_suffix= ac_top_builddir= | 
|  | 23331 | fi | 
|  | 23332 |  | 
|  | 23333 | case $srcdir in | 
|  | 23334 | .)  # No --srcdir option.  We are building in place. | 
|  | 23335 | ac_srcdir=. | 
|  | 23336 | if test -z "$ac_top_builddir"; then | 
|  | 23337 | ac_top_srcdir=. | 
|  | 23338 | else | 
|  | 23339 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
|  | 23340 | fi ;; | 
|  | 23341 | [\\/]* | ?:[\\/]* )  # Absolute path. | 
|  | 23342 | ac_srcdir=$srcdir$ac_dir_suffix; | 
|  | 23343 | ac_top_srcdir=$srcdir ;; | 
|  | 23344 | *) # Relative path. | 
|  | 23345 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
|  | 23346 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
|  | 23347 | esac | 
|  | 23348 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | 
|  | 23349 | # absolute. | 
|  | 23350 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | 
|  | 23351 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | 
|  | 23352 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | 
|  | 23353 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | 
|  | 23354 |  | 
|  | 23355 |  | 
|  | 23356 | cd $ac_dir | 
|  | 23357 |  | 
|  | 23358 | # Check for guested configure; otherwise get Cygnus style configure. | 
|  | 23359 | if test -f $ac_srcdir/configure.gnu; then | 
|  | 23360 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | 
|  | 23361 | elif test -f $ac_srcdir/configure; then | 
|  | 23362 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | 
|  | 23363 | elif test -f $ac_srcdir/configure.in; then | 
|  | 23364 | ac_sub_configure=$ac_configure | 
|  | 23365 | else | 
|  | 23366 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | 
|  | 23367 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | 
|  | 23368 | ac_sub_configure= | 
|  | 23369 | fi | 
|  | 23370 |  | 
|  | 23371 | # The recursion is here. | 
|  | 23372 | if test -n "$ac_sub_configure"; then | 
|  | 23373 | # Make the cache file name correct relative to the subdirectory. | 
|  | 23374 | case $cache_file in | 
|  | 23375 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | 
|  | 23376 | *) # Relative path. | 
|  | 23377 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; | 
|  | 23378 | esac | 
|  | 23379 |  | 
|  | 23380 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | 
|  | 23381 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | 
|  | 23382 | # The eval makes quoting arguments work. | 
|  | 23383 | eval $ac_sub_configure $ac_sub_configure_args \ | 
|  | 23384 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || | 
|  | 23385 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | 
|  | 23386 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | 
|  | 23387 | { (exit 1); exit 1; }; } | 
|  | 23388 | fi | 
|  | 23389 |  | 
|  | 23390 | cd $ac_popdir | 
|  | 23391 | done | 
|  | 23392 | fi | 
|  | 23393 |  | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 23394 |  | 
|  | 23395 | if test $llvmgccwarn = yes | 
|  | 23396 | then | 
|  | 23397 | { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5 | 
|  | 23398 | echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;} | 
|  | 23399 | { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5 | 
|  | 23400 | echo "$as_me: WARNING: ***** appear to be working." >&2;} | 
|  | 23401 | { echo "$as_me:$LINENO: WARNING: ***** " >&5 | 
|  | 23402 | echo "$as_me: WARNING: ***** " >&2;} | 
|  | 23403 | { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5 | 
|  | 23404 | echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;} | 
|  | 23405 | { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5 | 
|  | 23406 | echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;} | 
|  | 23407 | { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5 | 
|  | 23408 | echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;} | 
|  | 23409 | fi | 
| Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 23410 |  |