| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1 | #! /bin/sh | 
 | 2 | # Guess values for system-dependent variables and create Makefiles. | 
| Reid Spencer | 57d3725 | 2006-04-14 03:01:27 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.59 for llvm 1.8cvs. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4 | # | 
 | 5 | # Report bugs to <llvmbugs@cs.uiuc.edu>. | 
 | 6 | # | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7 | # Copyright (C) 2003 Free Software Foundation, Inc. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8 | # This configure script is free software; the Free Software Foundation | 
 | 9 | # gives unlimited permission to copy, distribute and modify it. | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 10 | # | 
| John Criswell | c0c186d | 2005-11-08 21:11:33 +0000 | [diff] [blame] | 11 | # Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12 | ## --------------------- ## | 
 | 13 | ## M4sh Initialization.  ## | 
 | 14 | ## --------------------- ## | 
 | 15 |  | 
 | 16 | # Be Bourne compatible | 
 | 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | 
 | 18 |   emulate sh | 
 | 19 |   NULLCMD=: | 
 | 20 |   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | 
 | 21 |   # is contrary to our usage.  Disable this feature. | 
 | 22 |   alias -g '${1+"$@"}'='"$@"' | 
 | 23 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | 
 | 24 |   set -o posix | 
 | 25 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26 | DUALCASE=1; export DUALCASE # for MKS sh | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27 |  | 
 | 28 | # Support unset when possible. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30 |   as_unset=unset | 
 | 31 | else | 
 | 32 |   as_unset=false | 
 | 33 | fi | 
 | 34 |  | 
 | 35 |  | 
 | 36 | # Work around bugs in pre-3.0 UWIN ksh. | 
 | 37 | $as_unset ENV MAIL MAILPATH | 
 | 38 | PS1='$ ' | 
 | 39 | PS2='> ' | 
 | 40 | PS4='+ ' | 
 | 41 |  | 
 | 42 | # NLS nuisances. | 
 | 43 | for as_var in \ | 
 | 44 |   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | 
 | 45 |   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | 
 | 46 |   LC_TELEPHONE LC_TIME | 
 | 47 | do | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 48 |   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 49 |     eval $as_var=C; export $as_var | 
 | 50 |   else | 
 | 51 |     $as_unset $as_var | 
 | 52 |   fi | 
 | 53 | done | 
 | 54 |  | 
 | 55 | # Required to use basename. | 
 | 56 | if expr a : '\(a\)' >/dev/null 2>&1; then | 
 | 57 |   as_expr=expr | 
 | 58 | else | 
 | 59 |   as_expr=false | 
 | 60 | fi | 
 | 61 |  | 
 | 62 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | 
 | 63 |   as_basename=basename | 
 | 64 | else | 
 | 65 |   as_basename=false | 
 | 66 | fi | 
 | 67 |  | 
 | 68 |  | 
 | 69 | # Name of the executable. | 
 | 70 | as_me=`$as_basename "$0" || | 
 | 71 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
 | 72 | 	 X"$0" : 'X\(//\)$' \| \ | 
 | 73 | 	 X"$0" : 'X\(/\)$' \| \ | 
 | 74 | 	 .     : '\(.\)' 2>/dev/null || | 
 | 75 | echo X/"$0" | | 
 | 76 |     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | 
 | 77 |   	  /^X\/\(\/\/\)$/{ s//\1/; q; } | 
 | 78 |   	  /^X\/\(\/\).*/{ s//\1/; q; } | 
 | 79 |   	  s/.*/./; q'` | 
 | 80 |  | 
 | 81 |  | 
 | 82 | # PATH needs CR, and LINENO needs CR and PATH. | 
 | 83 | # Avoid depending upon Character Ranges. | 
 | 84 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
 | 85 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
 | 86 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
 | 87 | as_cr_digits='0123456789' | 
 | 88 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
 | 89 |  | 
 | 90 | # The user is always right. | 
 | 91 | if test "${PATH_SEPARATOR+set}" != set; then | 
 | 92 |   echo "#! /bin/sh" >conf$$.sh | 
 | 93 |   echo  "exit 0"   >>conf$$.sh | 
 | 94 |   chmod +x conf$$.sh | 
 | 95 |   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | 
 | 96 |     PATH_SEPARATOR=';' | 
 | 97 |   else | 
 | 98 |     PATH_SEPARATOR=: | 
 | 99 |   fi | 
 | 100 |   rm -f conf$$.sh | 
 | 101 | fi | 
 | 102 |  | 
 | 103 |  | 
 | 104 |   as_lineno_1=$LINENO | 
 | 105 |   as_lineno_2=$LINENO | 
 | 106 |   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | 
 | 107 |   test "x$as_lineno_1" != "x$as_lineno_2" && | 
 | 108 |   test "x$as_lineno_3"  = "x$as_lineno_2"  || { | 
 | 109 |   # Find who we are.  Look in the path if we contain no path at all | 
 | 110 |   # relative or not. | 
 | 111 |   case $0 in | 
 | 112 |     *[\\/]* ) as_myself=$0 ;; | 
 | 113 |     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 114 | for as_dir in $PATH | 
 | 115 | do | 
 | 116 |   IFS=$as_save_IFS | 
 | 117 |   test -z "$as_dir" && as_dir=. | 
 | 118 |   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
 | 119 | done | 
 | 120 |  | 
 | 121 |        ;; | 
 | 122 |   esac | 
 | 123 |   # We did not find ourselves, most probably we were run as `sh COMMAND' | 
 | 124 |   # in which case we are not to be found in the path. | 
 | 125 |   if test "x$as_myself" = x; then | 
 | 126 |     as_myself=$0 | 
 | 127 |   fi | 
 | 128 |   if test ! -f "$as_myself"; then | 
 | 129 |     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | 
 | 130 |    { (exit 1); exit 1; }; } | 
 | 131 |   fi | 
 | 132 |   case $CONFIG_SHELL in | 
 | 133 |   '') | 
 | 134 |     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 135 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | 
 | 136 | do | 
 | 137 |   IFS=$as_save_IFS | 
 | 138 |   test -z "$as_dir" && as_dir=. | 
 | 139 |   for as_base in sh bash ksh sh5; do | 
 | 140 | 	 case $as_dir in | 
 | 141 | 	 /*) | 
 | 142 | 	   if ("$as_dir/$as_base" -c ' | 
 | 143 |   as_lineno_1=$LINENO | 
 | 144 |   as_lineno_2=$LINENO | 
 | 145 |   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | 
 | 146 |   test "x$as_lineno_1" != "x$as_lineno_2" && | 
 | 147 |   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then | 
 | 148 | 	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | 
 | 149 | 	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | 
 | 150 | 	     CONFIG_SHELL=$as_dir/$as_base | 
 | 151 | 	     export CONFIG_SHELL | 
 | 152 | 	     exec "$CONFIG_SHELL" "$0" ${1+"$@"} | 
 | 153 | 	   fi;; | 
 | 154 | 	 esac | 
 | 155 |        done | 
 | 156 | done | 
 | 157 | ;; | 
 | 158 |   esac | 
 | 159 |  | 
 | 160 |   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | 
 | 161 |   # uniformly replaced by the line number.  The first 'sed' inserts a | 
 | 162 |   # line-number line before each line; the second 'sed' does the real | 
 | 163 |   # work.  The second script uses 'N' to pair each line-number line | 
 | 164 |   # with the numbered line, and appends trailing '-' during | 
 | 165 |   # substitution so that $LINENO is not a special case at line end. | 
 | 166 |   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | 
 | 167 |   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-) | 
 | 168 |   sed '=' <$as_myself | | 
 | 169 |     sed ' | 
 | 170 |       N | 
 | 171 |       s,$,-, | 
 | 172 |       : loop | 
 | 173 |       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | 
 | 174 |       t loop | 
 | 175 |       s,-$,, | 
 | 176 |       s,^['$as_cr_digits']*\n,, | 
 | 177 |     ' >$as_me.lineno && | 
 | 178 |   chmod +x $as_me.lineno || | 
 | 179 |     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | 
 | 180 |    { (exit 1); exit 1; }; } | 
 | 181 |  | 
 | 182 |   # Don't try to exec as it changes $[0], causing all sort of problems | 
 | 183 |   # (the dirname of $[0] is not the place where we might find the | 
 | 184 |   # original and so on.  Autoconf is especially sensible to this). | 
 | 185 |   . ./$as_me.lineno | 
 | 186 |   # Exit status is that of the last command. | 
 | 187 |   exit | 
 | 188 | } | 
 | 189 |  | 
 | 190 |  | 
 | 191 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | 
 | 192 |   *c*,-n*) ECHO_N= ECHO_C=' | 
 | 193 | ' ECHO_T='	' ;; | 
 | 194 |   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;; | 
 | 195 |   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;; | 
 | 196 | esac | 
 | 197 |  | 
 | 198 | if expr a : '\(a\)' >/dev/null 2>&1; then | 
 | 199 |   as_expr=expr | 
 | 200 | else | 
 | 201 |   as_expr=false | 
 | 202 | fi | 
 | 203 |  | 
 | 204 | rm -f conf$$ conf$$.exe conf$$.file | 
 | 205 | echo >conf$$.file | 
 | 206 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
 | 207 |   # We could just check for DJGPP; but this test a) works b) is more generic | 
 | 208 |   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | 
 | 209 |   if test -f conf$$.exe; then | 
 | 210 |     # Don't use ln at all; we don't have any links | 
 | 211 |     as_ln_s='cp -p' | 
 | 212 |   else | 
 | 213 |     as_ln_s='ln -s' | 
 | 214 |   fi | 
 | 215 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
 | 216 |   as_ln_s=ln | 
 | 217 | else | 
 | 218 |   as_ln_s='cp -p' | 
 | 219 | fi | 
 | 220 | rm -f conf$$ conf$$.exe conf$$.file | 
 | 221 |  | 
 | 222 | if mkdir -p . 2>/dev/null; then | 
 | 223 |   as_mkdir_p=: | 
 | 224 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 225 |   test -d ./-p && rmdir ./-p | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 226 |   as_mkdir_p=false | 
 | 227 | fi | 
 | 228 |  | 
 | 229 | as_executable_p="test -f" | 
 | 230 |  | 
 | 231 | # Sed expression to map a string onto a valid CPP name. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 232 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 233 |  | 
 | 234 | # Sed expression to map a string onto a valid variable name. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 235 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 236 |  | 
 | 237 |  | 
 | 238 | # IFS | 
 | 239 | # We need space, tab and new line, in precisely that order. | 
 | 240 | as_nl=' | 
 | 241 | ' | 
 | 242 | IFS=" 	$as_nl" | 
 | 243 |  | 
 | 244 | # CDPATH. | 
 | 245 | $as_unset CDPATH | 
 | 246 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 247 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 248 |  | 
 | 249 | # Check that we are running under the correct shell. | 
 | 250 | SHELL=${CONFIG_SHELL-/bin/sh} | 
 | 251 |  | 
 | 252 | case X$ECHO in | 
 | 253 | X*--fallback-echo) | 
 | 254 |   # Remove one level of quotation (which was required for Make). | 
 | 255 |   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` | 
 | 256 |   ;; | 
 | 257 | esac | 
 | 258 |  | 
 | 259 | echo=${ECHO-echo} | 
 | 260 | if test "X$1" = X--no-reexec; then | 
 | 261 |   # Discard the --no-reexec flag, and continue. | 
 | 262 |   shift | 
 | 263 | elif test "X$1" = X--fallback-echo; then | 
 | 264 |   # Avoid inline document here, it may be left over | 
 | 265 |   : | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 266 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 267 |   # Yippee, $echo works! | 
 | 268 |   : | 
 | 269 | else | 
 | 270 |   # Restart under the correct shell. | 
 | 271 |   exec $SHELL "$0" --no-reexec ${1+"$@"} | 
 | 272 | fi | 
 | 273 |  | 
 | 274 | if test "X$1" = X--fallback-echo; then | 
 | 275 |   # used as fallback echo | 
 | 276 |   shift | 
 | 277 |   cat <<EOF | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 278 | $* | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 279 | EOF | 
 | 280 |   exit 0 | 
 | 281 | fi | 
 | 282 |  | 
 | 283 | # The HP-UX ksh and POSIX shell print the target directory to stdout | 
 | 284 | # if CDPATH is set. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 285 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 286 |  | 
 | 287 | if test -z "$ECHO"; then | 
 | 288 | if test "X${echo_test_string+set}" != Xset; then | 
 | 289 | # find a string as large as possible, as long as the shell can cope with it | 
 | 290 |   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | 
 | 291 |     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | 
 | 292 |     if (echo_test_string="`eval $cmd`") 2>/dev/null && | 
 | 293 |        echo_test_string="`eval $cmd`" && | 
 | 294 |        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | 
 | 295 |     then | 
 | 296 |       break | 
 | 297 |     fi | 
 | 298 |   done | 
 | 299 | fi | 
 | 300 |  | 
 | 301 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | 
 | 302 |    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | 
 | 303 |    test "X$echo_testing_string" = "X$echo_test_string"; then | 
 | 304 |   : | 
 | 305 | else | 
 | 306 |   # The Solaris, AIX, and Digital Unix default echo programs unquote | 
 | 307 |   # backslashes.  This makes it impossible to quote backslashes using | 
 | 308 |   #   echo "$something" | sed 's/\\/\\\\/g' | 
 | 309 |   # | 
 | 310 |   # So, first we look for a working echo in the user's PATH. | 
 | 311 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 312 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 313 |   for dir in $PATH /usr/ucb; do | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 314 |     IFS="$lt_save_ifs" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 315 |     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | 
 | 316 |        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | 
 | 317 |        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | 
 | 318 |        test "X$echo_testing_string" = "X$echo_test_string"; then | 
 | 319 |       echo="$dir/echo" | 
 | 320 |       break | 
 | 321 |     fi | 
 | 322 |   done | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 323 |   IFS="$lt_save_ifs" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 324 |  | 
 | 325 |   if test "X$echo" = Xecho; then | 
 | 326 |     # We didn't find a better echo, so look for alternatives. | 
 | 327 |     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | 
 | 328 |        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | 
 | 329 |        test "X$echo_testing_string" = "X$echo_test_string"; then | 
 | 330 |       # This shell has a builtin print -r that does the trick. | 
 | 331 |       echo='print -r' | 
 | 332 |     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | 
 | 333 | 	 test "X$CONFIG_SHELL" != X/bin/ksh; then | 
 | 334 |       # If we have ksh, try running configure again with it. | 
 | 335 |       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | 
 | 336 |       export ORIGINAL_CONFIG_SHELL | 
 | 337 |       CONFIG_SHELL=/bin/ksh | 
 | 338 |       export CONFIG_SHELL | 
 | 339 |       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | 
 | 340 |     else | 
 | 341 |       # Try using printf. | 
 | 342 |       echo='printf %s\n' | 
 | 343 |       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | 
 | 344 | 	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | 
 | 345 | 	 test "X$echo_testing_string" = "X$echo_test_string"; then | 
 | 346 | 	# Cool, printf works | 
 | 347 | 	: | 
 | 348 |       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | 
 | 349 | 	   test "X$echo_testing_string" = 'X\t' && | 
 | 350 | 	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | 
 | 351 | 	   test "X$echo_testing_string" = "X$echo_test_string"; then | 
 | 352 | 	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | 
 | 353 | 	export CONFIG_SHELL | 
 | 354 | 	SHELL="$CONFIG_SHELL" | 
 | 355 | 	export SHELL | 
 | 356 | 	echo="$CONFIG_SHELL $0 --fallback-echo" | 
 | 357 |       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | 
 | 358 | 	   test "X$echo_testing_string" = 'X\t' && | 
 | 359 | 	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | 
 | 360 | 	   test "X$echo_testing_string" = "X$echo_test_string"; then | 
 | 361 | 	echo="$CONFIG_SHELL $0 --fallback-echo" | 
 | 362 |       else | 
 | 363 | 	# maybe with a smaller string... | 
 | 364 | 	prev=: | 
 | 365 |  | 
 | 366 | 	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | 
 | 367 | 	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | 
 | 368 | 	  then | 
 | 369 | 	    break | 
 | 370 | 	  fi | 
 | 371 | 	  prev="$cmd" | 
 | 372 | 	done | 
 | 373 |  | 
 | 374 | 	if test "$prev" != 'sed 50q "$0"'; then | 
 | 375 | 	  echo_test_string=`eval $prev` | 
 | 376 | 	  export echo_test_string | 
 | 377 | 	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | 
 | 378 | 	else | 
 | 379 | 	  # Oops.  We lost completely, so just stick with echo. | 
 | 380 | 	  echo=echo | 
 | 381 | 	fi | 
 | 382 |       fi | 
 | 383 |     fi | 
 | 384 |   fi | 
 | 385 | fi | 
 | 386 | fi | 
 | 387 |  | 
 | 388 | # Copy echo and quote the copy suitably for passing to libtool from | 
 | 389 | # the Makefile, instead of quoting the original, which is used later. | 
 | 390 | ECHO=$echo | 
 | 391 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | 
 | 392 |    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | 
 | 393 | fi | 
 | 394 |  | 
 | 395 |  | 
 | 396 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 397 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 398 | tagnames=${tagnames+${tagnames},}CXX | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 399 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 400 | tagnames=${tagnames+${tagnames},}F77 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 401 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 402 | # Name of the host. | 
 | 403 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | 
 | 404 | # so uname gets run too. | 
 | 405 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 406 |  | 
 | 407 | exec 6>&1 | 
 | 408 |  | 
 | 409 | # | 
 | 410 | # Initializations. | 
 | 411 | # | 
 | 412 | ac_default_prefix=/usr/local | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 413 | ac_config_libobj_dir=. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 414 | cross_compiling=no | 
 | 415 | subdirs= | 
 | 416 | MFLAGS= | 
 | 417 | MAKEFLAGS= | 
 | 418 | SHELL=${CONFIG_SHELL-/bin/sh} | 
 | 419 |  | 
 | 420 | # Maximum number of lines to put in a shell here document. | 
 | 421 | # This variable seems obsolete.  It should probably be removed, and | 
 | 422 | # only ac_max_sed_lines should be used. | 
 | 423 | : ${ac_max_here_lines=38} | 
 | 424 |  | 
 | 425 | # Identity of this package. | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 426 | PACKAGE_NAME='llvm' | 
| Reid Spencer | 2b51a08 | 2004-08-04 00:34:49 +0000 | [diff] [blame] | 427 | PACKAGE_TARNAME='-llvm-' | 
| Reid Spencer | 57d3725 | 2006-04-14 03:01:27 +0000 | [diff] [blame] | 428 | PACKAGE_VERSION='1.8cvs' | 
 | 429 | PACKAGE_STRING='llvm 1.8cvs' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 430 | PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu' | 
 | 431 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 432 | ac_unique_file="lib/VMCore/Module.cpp" | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 433 | ac_subdirs_all="$ac_subdirs_all projects/sample" | 
 | 434 | ac_subdirs_all="$ac_subdirs_all projects/Stacker" | 
 | 435 | ac_subdirs_all="$ac_subdirs_all projects/llvm-test" | 
 | 436 | ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt" | 
 | 437 | ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc" | 
| Alkis Evlogimenos | eadc9ef | 2005-01-05 17:57:28 +0000 | [diff] [blame] | 438 | ac_subdirs_all="$ac_subdirs_all projects/llvm-java" | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 439 | ac_subdirs_all="$ac_subdirs_all projects/llvm-tv" | 
| Chris Lattner | c6cf2fb | 2005-02-11 04:46:58 +0000 | [diff] [blame] | 440 | ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc" | 
| John Criswell | 241116f | 2005-12-19 20:27:24 +0000 | [diff] [blame] | 441 | ac_subdirs_all="$ac_subdirs_all projects/llvm-kernel" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 442 | # Factoring default headers for most tests. | 
 | 443 | ac_includes_default="\ | 
 | 444 | #include <stdio.h> | 
 | 445 | #if HAVE_SYS_TYPES_H | 
 | 446 | # include <sys/types.h> | 
 | 447 | #endif | 
 | 448 | #if HAVE_SYS_STAT_H | 
 | 449 | # include <sys/stat.h> | 
 | 450 | #endif | 
 | 451 | #if STDC_HEADERS | 
 | 452 | # include <stdlib.h> | 
 | 453 | # include <stddef.h> | 
 | 454 | #else | 
 | 455 | # if HAVE_STDLIB_H | 
 | 456 | #  include <stdlib.h> | 
 | 457 | # endif | 
 | 458 | #endif | 
 | 459 | #if HAVE_STRING_H | 
 | 460 | # if !STDC_HEADERS && HAVE_MEMORY_H | 
 | 461 | #  include <memory.h> | 
 | 462 | # endif | 
 | 463 | # include <string.h> | 
 | 464 | #endif | 
 | 465 | #if HAVE_STRINGS_H | 
 | 466 | # include <strings.h> | 
 | 467 | #endif | 
 | 468 | #if HAVE_INTTYPES_H | 
 | 469 | # include <inttypes.h> | 
 | 470 | #else | 
 | 471 | # if HAVE_STDINT_H | 
 | 472 | #  include <stdint.h> | 
 | 473 | # endif | 
 | 474 | #endif | 
 | 475 | #if HAVE_UNISTD_H | 
 | 476 | # include <unistd.h> | 
 | 477 | #endif" | 
 | 478 |  | 
| Reid Spencer | c28ccd8 | 2006-04-09 20:42:14 +0000 | [diff] [blame] | 479 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CVSBUILD ENABLE_OPTIMIZED DISABLE_ASSERTIONS DEBUG_RUNTIME JIT TARGET_HAS_JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ GV PERL HAVE_PERL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR LLVMGCC_VERSION LLVMGCC_MAJVERS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS' | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 480 | ac_subst_files='' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 481 |  | 
 | 482 | # Initialize some variables set by options. | 
 | 483 | ac_init_help= | 
 | 484 | ac_init_version=false | 
 | 485 | # The variables have the same names as the options, with | 
 | 486 | # dashes changed to underlines. | 
 | 487 | cache_file=/dev/null | 
 | 488 | exec_prefix=NONE | 
 | 489 | no_create= | 
 | 490 | no_recursion= | 
 | 491 | prefix=NONE | 
 | 492 | program_prefix=NONE | 
 | 493 | program_suffix=NONE | 
 | 494 | program_transform_name=s,x,x, | 
 | 495 | silent= | 
 | 496 | site= | 
 | 497 | srcdir= | 
 | 498 | verbose= | 
 | 499 | x_includes=NONE | 
 | 500 | x_libraries=NONE | 
 | 501 |  | 
 | 502 | # Installation directory options. | 
 | 503 | # These are left unexpanded so users can "make install exec_prefix=/foo" | 
 | 504 | # and all the variables that are supposed to be based on exec_prefix | 
 | 505 | # by default will actually change. | 
 | 506 | # Use braces instead of parens because sh, perl, etc. also accept them. | 
 | 507 | bindir='${exec_prefix}/bin' | 
 | 508 | sbindir='${exec_prefix}/sbin' | 
 | 509 | libexecdir='${exec_prefix}/libexec' | 
 | 510 | datadir='${prefix}/share' | 
 | 511 | sysconfdir='${prefix}/etc' | 
 | 512 | sharedstatedir='${prefix}/com' | 
 | 513 | localstatedir='${prefix}/var' | 
 | 514 | libdir='${exec_prefix}/lib' | 
 | 515 | includedir='${prefix}/include' | 
 | 516 | oldincludedir='/usr/include' | 
 | 517 | infodir='${prefix}/info' | 
 | 518 | mandir='${prefix}/man' | 
 | 519 |  | 
 | 520 | ac_prev= | 
 | 521 | for ac_option | 
 | 522 | do | 
 | 523 |   # If the previous option needs an argument, assign it. | 
 | 524 |   if test -n "$ac_prev"; then | 
 | 525 |     eval "$ac_prev=\$ac_option" | 
 | 526 |     ac_prev= | 
 | 527 |     continue | 
 | 528 |   fi | 
 | 529 |  | 
 | 530 |   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | 
 | 531 |  | 
 | 532 |   # Accept the important Cygnus configure options, so we can diagnose typos. | 
 | 533 |  | 
 | 534 |   case $ac_option in | 
 | 535 |  | 
 | 536 |   -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
 | 537 |     ac_prev=bindir ;; | 
 | 538 |   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
 | 539 |     bindir=$ac_optarg ;; | 
 | 540 |  | 
 | 541 |   -build | --build | --buil | --bui | --bu) | 
 | 542 |     ac_prev=build_alias ;; | 
 | 543 |   -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
 | 544 |     build_alias=$ac_optarg ;; | 
 | 545 |  | 
 | 546 |   -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
 | 547 |   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
 | 548 |     ac_prev=cache_file ;; | 
 | 549 |   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
 | 550 |   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
 | 551 |     cache_file=$ac_optarg ;; | 
 | 552 |  | 
 | 553 |   --config-cache | -C) | 
 | 554 |     cache_file=config.cache ;; | 
 | 555 |  | 
 | 556 |   -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | 
 | 557 |     ac_prev=datadir ;; | 
 | 558 |   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | 
 | 559 |   | --da=*) | 
 | 560 |     datadir=$ac_optarg ;; | 
 | 561 |  | 
 | 562 |   -disable-* | --disable-*) | 
 | 563 |     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 
 | 564 |     # Reject names that are not valid shell variable names. | 
 | 565 |     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
 | 566 |       { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | 
 | 567 |    { (exit 1); exit 1; }; } | 
 | 568 |     ac_feature=`echo $ac_feature | sed 's/-/_/g'` | 
 | 569 |     eval "enable_$ac_feature=no" ;; | 
 | 570 |  | 
 | 571 |   -enable-* | --enable-*) | 
 | 572 |     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 
 | 573 |     # Reject names that are not valid shell variable names. | 
 | 574 |     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
 | 575 |       { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | 
 | 576 |    { (exit 1); exit 1; }; } | 
 | 577 |     ac_feature=`echo $ac_feature | sed 's/-/_/g'` | 
 | 578 |     case $ac_option in | 
 | 579 |       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | 
 | 580 |       *) ac_optarg=yes ;; | 
 | 581 |     esac | 
 | 582 |     eval "enable_$ac_feature='$ac_optarg'" ;; | 
 | 583 |  | 
 | 584 |   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
 | 585 |   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
 | 586 |   | --exec | --exe | --ex) | 
 | 587 |     ac_prev=exec_prefix ;; | 
 | 588 |   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
 | 589 |   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
 | 590 |   | --exec=* | --exe=* | --ex=*) | 
 | 591 |     exec_prefix=$ac_optarg ;; | 
 | 592 |  | 
 | 593 |   -gas | --gas | --ga | --g) | 
 | 594 |     # Obsolete; use --with-gas. | 
 | 595 |     with_gas=yes ;; | 
 | 596 |  | 
 | 597 |   -help | --help | --hel | --he | -h) | 
 | 598 |     ac_init_help=long ;; | 
 | 599 |   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | 
 | 600 |     ac_init_help=recursive ;; | 
 | 601 |   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | 
 | 602 |     ac_init_help=short ;; | 
 | 603 |  | 
 | 604 |   -host | --host | --hos | --ho) | 
 | 605 |     ac_prev=host_alias ;; | 
 | 606 |   -host=* | --host=* | --hos=* | --ho=*) | 
 | 607 |     host_alias=$ac_optarg ;; | 
 | 608 |  | 
 | 609 |   -includedir | --includedir | --includedi | --included | --include \ | 
 | 610 |   | --includ | --inclu | --incl | --inc) | 
 | 611 |     ac_prev=includedir ;; | 
 | 612 |   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
 | 613 |   | --includ=* | --inclu=* | --incl=* | --inc=*) | 
 | 614 |     includedir=$ac_optarg ;; | 
 | 615 |  | 
 | 616 |   -infodir | --infodir | --infodi | --infod | --info | --inf) | 
 | 617 |     ac_prev=infodir ;; | 
 | 618 |   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
 | 619 |     infodir=$ac_optarg ;; | 
 | 620 |  | 
 | 621 |   -libdir | --libdir | --libdi | --libd) | 
 | 622 |     ac_prev=libdir ;; | 
 | 623 |   -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
 | 624 |     libdir=$ac_optarg ;; | 
 | 625 |  | 
 | 626 |   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
 | 627 |   | --libexe | --libex | --libe) | 
 | 628 |     ac_prev=libexecdir ;; | 
 | 629 |   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
 | 630 |   | --libexe=* | --libex=* | --libe=*) | 
 | 631 |     libexecdir=$ac_optarg ;; | 
 | 632 |  | 
 | 633 |   -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
 | 634 |   | --localstate | --localstat | --localsta | --localst \ | 
 | 635 |   | --locals | --local | --loca | --loc | --lo) | 
 | 636 |     ac_prev=localstatedir ;; | 
 | 637 |   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
 | 638 |   | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | 
 | 639 |   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | 
 | 640 |     localstatedir=$ac_optarg ;; | 
 | 641 |  | 
 | 642 |   -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
 | 643 |     ac_prev=mandir ;; | 
 | 644 |   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
 | 645 |     mandir=$ac_optarg ;; | 
 | 646 |  | 
 | 647 |   -nfp | --nfp | --nf) | 
 | 648 |     # Obsolete; use --without-fp. | 
 | 649 |     with_fp=no ;; | 
 | 650 |  | 
 | 651 |   -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
 | 652 |   | --no-cr | --no-c | -n) | 
 | 653 |     no_create=yes ;; | 
 | 654 |  | 
 | 655 |   -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
 | 656 |   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
 | 657 |     no_recursion=yes ;; | 
 | 658 |  | 
 | 659 |   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
 | 660 |   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
 | 661 |   | --oldin | --oldi | --old | --ol | --o) | 
 | 662 |     ac_prev=oldincludedir ;; | 
 | 663 |   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
 | 664 |   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
 | 665 |   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
 | 666 |     oldincludedir=$ac_optarg ;; | 
 | 667 |  | 
 | 668 |   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
 | 669 |     ac_prev=prefix ;; | 
 | 670 |   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
 | 671 |     prefix=$ac_optarg ;; | 
 | 672 |  | 
 | 673 |   -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
 | 674 |   | --program-pre | --program-pr | --program-p) | 
 | 675 |     ac_prev=program_prefix ;; | 
 | 676 |   -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
 | 677 |   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
 | 678 |     program_prefix=$ac_optarg ;; | 
 | 679 |  | 
 | 680 |   -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
 | 681 |   | --program-suf | --program-su | --program-s) | 
 | 682 |     ac_prev=program_suffix ;; | 
 | 683 |   -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
 | 684 |   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
 | 685 |     program_suffix=$ac_optarg ;; | 
 | 686 |  | 
 | 687 |   -program-transform-name | --program-transform-name \ | 
 | 688 |   | --program-transform-nam | --program-transform-na \ | 
 | 689 |   | --program-transform-n | --program-transform- \ | 
 | 690 |   | --program-transform | --program-transfor \ | 
 | 691 |   | --program-transfo | --program-transf \ | 
 | 692 |   | --program-trans | --program-tran \ | 
 | 693 |   | --progr-tra | --program-tr | --program-t) | 
 | 694 |     ac_prev=program_transform_name ;; | 
 | 695 |   -program-transform-name=* | --program-transform-name=* \ | 
 | 696 |   | --program-transform-nam=* | --program-transform-na=* \ | 
 | 697 |   | --program-transform-n=* | --program-transform-=* \ | 
 | 698 |   | --program-transform=* | --program-transfor=* \ | 
 | 699 |   | --program-transfo=* | --program-transf=* \ | 
 | 700 |   | --program-trans=* | --program-tran=* \ | 
 | 701 |   | --progr-tra=* | --program-tr=* | --program-t=*) | 
 | 702 |     program_transform_name=$ac_optarg ;; | 
 | 703 |  | 
 | 704 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 705 |   | -silent | --silent | --silen | --sile | --sil) | 
 | 706 |     silent=yes ;; | 
 | 707 |  | 
 | 708 |   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
 | 709 |     ac_prev=sbindir ;; | 
 | 710 |   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
 | 711 |   | --sbi=* | --sb=*) | 
 | 712 |     sbindir=$ac_optarg ;; | 
 | 713 |  | 
 | 714 |   -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
 | 715 |   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
 | 716 |   | --sharedst | --shareds | --shared | --share | --shar \ | 
 | 717 |   | --sha | --sh) | 
 | 718 |     ac_prev=sharedstatedir ;; | 
 | 719 |   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
 | 720 |   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
 | 721 |   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
 | 722 |   | --sha=* | --sh=*) | 
 | 723 |     sharedstatedir=$ac_optarg ;; | 
 | 724 |  | 
 | 725 |   -site | --site | --sit) | 
 | 726 |     ac_prev=site ;; | 
 | 727 |   -site=* | --site=* | --sit=*) | 
 | 728 |     site=$ac_optarg ;; | 
 | 729 |  | 
 | 730 |   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
 | 731 |     ac_prev=srcdir ;; | 
 | 732 |   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
 | 733 |     srcdir=$ac_optarg ;; | 
 | 734 |  | 
 | 735 |   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
 | 736 |   | --syscon | --sysco | --sysc | --sys | --sy) | 
 | 737 |     ac_prev=sysconfdir ;; | 
 | 738 |   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
 | 739 |   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
 | 740 |     sysconfdir=$ac_optarg ;; | 
 | 741 |  | 
 | 742 |   -target | --target | --targe | --targ | --tar | --ta | --t) | 
 | 743 |     ac_prev=target_alias ;; | 
 | 744 |   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
 | 745 |     target_alias=$ac_optarg ;; | 
 | 746 |  | 
 | 747 |   -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
 | 748 |     verbose=yes ;; | 
 | 749 |  | 
 | 750 |   -version | --version | --versio | --versi | --vers | -V) | 
 | 751 |     ac_init_version=: ;; | 
 | 752 |  | 
 | 753 |   -with-* | --with-*) | 
 | 754 |     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 
 | 755 |     # Reject names that are not valid shell variable names. | 
 | 756 |     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
 | 757 |       { echo "$as_me: error: invalid package name: $ac_package" >&2 | 
 | 758 |    { (exit 1); exit 1; }; } | 
 | 759 |     ac_package=`echo $ac_package| sed 's/-/_/g'` | 
 | 760 |     case $ac_option in | 
 | 761 |       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | 
 | 762 |       *) ac_optarg=yes ;; | 
 | 763 |     esac | 
 | 764 |     eval "with_$ac_package='$ac_optarg'" ;; | 
 | 765 |  | 
 | 766 |   -without-* | --without-*) | 
 | 767 |     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 
 | 768 |     # Reject names that are not valid shell variable names. | 
 | 769 |     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
 | 770 |       { echo "$as_me: error: invalid package name: $ac_package" >&2 | 
 | 771 |    { (exit 1); exit 1; }; } | 
 | 772 |     ac_package=`echo $ac_package | sed 's/-/_/g'` | 
 | 773 |     eval "with_$ac_package=no" ;; | 
 | 774 |  | 
 | 775 |   --x) | 
 | 776 |     # Obsolete; use --with-x. | 
 | 777 |     with_x=yes ;; | 
 | 778 |  | 
 | 779 |   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
 | 780 |   | --x-incl | --x-inc | --x-in | --x-i) | 
 | 781 |     ac_prev=x_includes ;; | 
 | 782 |   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
 | 783 |   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
 | 784 |     x_includes=$ac_optarg ;; | 
 | 785 |  | 
 | 786 |   -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
 | 787 |   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
 | 788 |     ac_prev=x_libraries ;; | 
 | 789 |   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
 | 790 |   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | 
 | 791 |     x_libraries=$ac_optarg ;; | 
 | 792 |  | 
 | 793 |   -*) { echo "$as_me: error: unrecognized option: $ac_option | 
 | 794 | Try \`$0 --help' for more information." >&2 | 
 | 795 |    { (exit 1); exit 1; }; } | 
 | 796 |     ;; | 
 | 797 |  | 
 | 798 |   *=*) | 
 | 799 |     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | 
 | 800 |     # Reject names that are not valid shell variable names. | 
 | 801 |     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | 
 | 802 |       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | 
 | 803 |    { (exit 1); exit 1; }; } | 
 | 804 |     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | 
 | 805 |     eval "$ac_envvar='$ac_optarg'" | 
 | 806 |     export $ac_envvar ;; | 
 | 807 |  | 
 | 808 |   *) | 
 | 809 |     # FIXME: should be removed in autoconf 3.0. | 
 | 810 |     echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | 
 | 811 |     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | 
 | 812 |       echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | 
 | 813 |     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | 
 | 814 |     ;; | 
 | 815 |  | 
 | 816 |   esac | 
 | 817 | done | 
 | 818 |  | 
 | 819 | if test -n "$ac_prev"; then | 
 | 820 |   ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 
 | 821 |   { echo "$as_me: error: missing argument to $ac_option" >&2 | 
 | 822 |    { (exit 1); exit 1; }; } | 
 | 823 | fi | 
 | 824 |  | 
 | 825 | # Be sure to have absolute paths. | 
 | 826 | for ac_var in exec_prefix prefix | 
 | 827 | do | 
 | 828 |   eval ac_val=$`echo $ac_var` | 
 | 829 |   case $ac_val in | 
 | 830 |     [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | 
 | 831 |     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | 
 | 832 |    { (exit 1); exit 1; }; };; | 
 | 833 |   esac | 
 | 834 | done | 
 | 835 |  | 
 | 836 | # Be sure to have absolute paths. | 
 | 837 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 838 | 	      localstatedir libdir includedir oldincludedir infodir mandir | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 839 | do | 
 | 840 |   eval ac_val=$`echo $ac_var` | 
 | 841 |   case $ac_val in | 
 | 842 |     [\\/$]* | ?:[\\/]* ) ;; | 
 | 843 |     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | 
 | 844 |    { (exit 1); exit 1; }; };; | 
 | 845 |   esac | 
 | 846 | done | 
 | 847 |  | 
 | 848 | # There might be people who depend on the old broken behavior: `$host' | 
 | 849 | # used to hold the argument of --host etc. | 
 | 850 | # FIXME: To remove some day. | 
 | 851 | build=$build_alias | 
 | 852 | host=$host_alias | 
 | 853 | target=$target_alias | 
 | 854 |  | 
 | 855 | # FIXME: To remove some day. | 
 | 856 | if test "x$host_alias" != x; then | 
 | 857 |   if test "x$build_alias" = x; then | 
 | 858 |     cross_compiling=maybe | 
 | 859 |     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | 
 | 860 |     If a cross compiler is detected then cross compile mode will be used." >&2 | 
 | 861 |   elif test "x$build_alias" != "x$host_alias"; then | 
 | 862 |     cross_compiling=yes | 
 | 863 |   fi | 
 | 864 | fi | 
 | 865 |  | 
 | 866 | ac_tool_prefix= | 
 | 867 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | 
 | 868 |  | 
 | 869 | test "$silent" = yes && exec 6>/dev/null | 
 | 870 |  | 
 | 871 |  | 
 | 872 | # Find the source files, if location was not specified. | 
 | 873 | if test -z "$srcdir"; then | 
 | 874 |   ac_srcdir_defaulted=yes | 
 | 875 |   # Try the directory containing this script, then its parent. | 
 | 876 |   ac_confdir=`(dirname "$0") 2>/dev/null || | 
 | 877 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 878 | 	 X"$0" : 'X\(//\)[^/]' \| \ | 
 | 879 | 	 X"$0" : 'X\(//\)$' \| \ | 
 | 880 | 	 X"$0" : 'X\(/\)' \| \ | 
 | 881 | 	 .     : '\(.\)' 2>/dev/null || | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 882 | echo X"$0" | | 
 | 883 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 884 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 885 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 886 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 887 |   	  s/.*/./; q'` | 
 | 888 |   srcdir=$ac_confdir | 
 | 889 |   if test ! -r $srcdir/$ac_unique_file; then | 
 | 890 |     srcdir=.. | 
 | 891 |   fi | 
 | 892 | else | 
 | 893 |   ac_srcdir_defaulted=no | 
 | 894 | fi | 
 | 895 | if test ! -r $srcdir/$ac_unique_file; then | 
 | 896 |   if test "$ac_srcdir_defaulted" = yes; then | 
 | 897 |     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | 
 | 898 |    { (exit 1); exit 1; }; } | 
 | 899 |   else | 
 | 900 |     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | 
 | 901 |    { (exit 1); exit 1; }; } | 
 | 902 |   fi | 
 | 903 | fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 904 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | 
 | 905 |   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | 
 | 906 |    { (exit 1); exit 1; }; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 907 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | 
 | 908 | ac_env_build_alias_set=${build_alias+set} | 
 | 909 | ac_env_build_alias_value=$build_alias | 
 | 910 | ac_cv_env_build_alias_set=${build_alias+set} | 
 | 911 | ac_cv_env_build_alias_value=$build_alias | 
 | 912 | ac_env_host_alias_set=${host_alias+set} | 
 | 913 | ac_env_host_alias_value=$host_alias | 
 | 914 | ac_cv_env_host_alias_set=${host_alias+set} | 
 | 915 | ac_cv_env_host_alias_value=$host_alias | 
 | 916 | ac_env_target_alias_set=${target_alias+set} | 
 | 917 | ac_env_target_alias_value=$target_alias | 
 | 918 | ac_cv_env_target_alias_set=${target_alias+set} | 
 | 919 | ac_cv_env_target_alias_value=$target_alias | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 920 | ac_env_CC_set=${CC+set} | 
 | 921 | ac_env_CC_value=$CC | 
 | 922 | ac_cv_env_CC_set=${CC+set} | 
 | 923 | ac_cv_env_CC_value=$CC | 
 | 924 | ac_env_CFLAGS_set=${CFLAGS+set} | 
 | 925 | ac_env_CFLAGS_value=$CFLAGS | 
 | 926 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | 
 | 927 | ac_cv_env_CFLAGS_value=$CFLAGS | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 928 | ac_env_LDFLAGS_set=${LDFLAGS+set} | 
 | 929 | ac_env_LDFLAGS_value=$LDFLAGS | 
 | 930 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | 
 | 931 | ac_cv_env_LDFLAGS_value=$LDFLAGS | 
 | 932 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | 
 | 933 | ac_env_CPPFLAGS_value=$CPPFLAGS | 
 | 934 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | 
 | 935 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 936 | ac_env_CPP_set=${CPP+set} | 
 | 937 | ac_env_CPP_value=$CPP | 
 | 938 | ac_cv_env_CPP_set=${CPP+set} | 
 | 939 | ac_cv_env_CPP_value=$CPP | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 940 | ac_env_CXX_set=${CXX+set} | 
 | 941 | ac_env_CXX_value=$CXX | 
 | 942 | ac_cv_env_CXX_set=${CXX+set} | 
 | 943 | ac_cv_env_CXX_value=$CXX | 
 | 944 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | 
 | 945 | ac_env_CXXFLAGS_value=$CXXFLAGS | 
 | 946 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | 
 | 947 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 948 | ac_env_CXXCPP_set=${CXXCPP+set} | 
 | 949 | ac_env_CXXCPP_value=$CXXCPP | 
 | 950 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | 
 | 951 | ac_cv_env_CXXCPP_value=$CXXCPP | 
 | 952 | ac_env_F77_set=${F77+set} | 
 | 953 | ac_env_F77_value=$F77 | 
 | 954 | ac_cv_env_F77_set=${F77+set} | 
 | 955 | ac_cv_env_F77_value=$F77 | 
 | 956 | ac_env_FFLAGS_set=${FFLAGS+set} | 
 | 957 | ac_env_FFLAGS_value=$FFLAGS | 
 | 958 | ac_cv_env_FFLAGS_set=${FFLAGS+set} | 
 | 959 | ac_cv_env_FFLAGS_value=$FFLAGS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 960 |  | 
 | 961 | # | 
 | 962 | # Report the --help message. | 
 | 963 | # | 
 | 964 | if test "$ac_init_help" = "long"; then | 
 | 965 |   # Omit some internal or obsolete options to make the list less imposing. | 
 | 966 |   # This message is too long to be a string in the A/UX 3.1 sh. | 
 | 967 |   cat <<_ACEOF | 
| Reid Spencer | 57d3725 | 2006-04-14 03:01:27 +0000 | [diff] [blame] | 968 | \`configure' configures llvm 1.8cvs to adapt to many kinds of systems. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 969 |  | 
 | 970 | Usage: $0 [OPTION]... [VAR=VALUE]... | 
 | 971 |  | 
 | 972 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | 
 | 973 | VAR=VALUE.  See below for descriptions of some of the useful variables. | 
 | 974 |  | 
 | 975 | Defaults for the options are specified in brackets. | 
 | 976 |  | 
 | 977 | Configuration: | 
 | 978 |   -h, --help              display this help and exit | 
 | 979 |       --help=short        display options specific to this package | 
 | 980 |       --help=recursive    display the short help of all the included packages | 
 | 981 |   -V, --version           display version information and exit | 
 | 982 |   -q, --quiet, --silent   do not print \`checking...' messages | 
 | 983 |       --cache-file=FILE   cache test results in FILE [disabled] | 
 | 984 |   -C, --config-cache      alias for \`--cache-file=config.cache' | 
 | 985 |   -n, --no-create         do not create output files | 
 | 986 |       --srcdir=DIR        find the sources in DIR [configure dir or \`..'] | 
 | 987 |  | 
 | 988 | _ACEOF | 
 | 989 |  | 
 | 990 |   cat <<_ACEOF | 
 | 991 | Installation directories: | 
 | 992 |   --prefix=PREFIX         install architecture-independent files in PREFIX | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 993 | 			  [$ac_default_prefix] | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 994 |   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 995 | 			  [PREFIX] | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 996 |  | 
 | 997 | By default, \`make install' will install all the files in | 
 | 998 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify | 
 | 999 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | 
 | 1000 | for instance \`--prefix=\$HOME'. | 
 | 1001 |  | 
 | 1002 | For better control, use the options below. | 
 | 1003 |  | 
 | 1004 | Fine tuning of the installation directories: | 
 | 1005 |   --bindir=DIR           user executables [EPREFIX/bin] | 
 | 1006 |   --sbindir=DIR          system admin executables [EPREFIX/sbin] | 
 | 1007 |   --libexecdir=DIR       program executables [EPREFIX/libexec] | 
 | 1008 |   --datadir=DIR          read-only architecture-independent data [PREFIX/share] | 
 | 1009 |   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc] | 
 | 1010 |   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com] | 
 | 1011 |   --localstatedir=DIR    modifiable single-machine data [PREFIX/var] | 
 | 1012 |   --libdir=DIR           object code libraries [EPREFIX/lib] | 
 | 1013 |   --includedir=DIR       C header files [PREFIX/include] | 
 | 1014 |   --oldincludedir=DIR    C header files for non-gcc [/usr/include] | 
 | 1015 |   --infodir=DIR          info documentation [PREFIX/info] | 
 | 1016 |   --mandir=DIR           man documentation [PREFIX/man] | 
 | 1017 | _ACEOF | 
 | 1018 |  | 
 | 1019 |   cat <<\_ACEOF | 
 | 1020 |  | 
 | 1021 | System types: | 
 | 1022 |   --build=BUILD     configure for building on BUILD [guessed] | 
 | 1023 |   --host=HOST       cross-compile to build programs to run on HOST [BUILD] | 
 | 1024 |   --target=TARGET   configure for building compilers for TARGET [HOST] | 
 | 1025 | _ACEOF | 
 | 1026 | fi | 
 | 1027 |  | 
 | 1028 | if test -n "$ac_init_help"; then | 
 | 1029 |   case $ac_init_help in | 
| Reid Spencer | 57d3725 | 2006-04-14 03:01:27 +0000 | [diff] [blame] | 1030 |      short | recursive ) echo "Configuration of llvm 1.8cvs:";; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1031 |    esac | 
 | 1032 |   cat <<\_ACEOF | 
 | 1033 |  | 
 | 1034 | Optional Features: | 
 | 1035 |   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
 | 1036 |   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1037 |   --enable-optimized | 
| Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 1038 |   --enable-assertions | 
| Reid Spencer | 6e96d81 | 2005-12-21 03:31:53 +0000 | [diff] [blame] | 1039 |   --enable-debug-runtime | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1040 |   --enable-jit            Enable Just In Time Compiling (default is YES) | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1041 |   --enable-doxygen        Build doxygen documentation (default is NO) | 
| Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 1042 |   --enable-threads        Use threads if available (default is YES) | 
| Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 1043 |   --enable-target         Build specific host targets: | 
 | 1044 |                           all,host-only,{target-name} (default=all) | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1045 |   --enable-ltdl-install   install libltdl | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1046 |   --enable-shared[=PKGS] | 
 | 1047 |                           build shared libraries [default=yes] | 
 | 1048 |   --enable-static[=PKGS] | 
 | 1049 |                           build static libraries [default=yes] | 
 | 1050 |   --enable-fast-install[=PKGS] | 
 | 1051 |                           optimize for fast installation [default=yes] | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1052 |   --disable-libtool-lock  avoid locking (might break parallel builds) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1053 |  | 
 | 1054 | Optional Packages: | 
 | 1055 |   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
 | 1056 |   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 1057 |   --with-llvmgccdir       Specify location of llvm-gcc install dir (default | 
 | 1058 |                           searches PATH) | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1059 |   --with-tclinclude       directory where tcl headers are | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1060 |   --with-gnu-ld           assume the C compiler uses GNU ld [default=no] | 
 | 1061 |   --with-pic              try to use only PIC/non-PIC objects [default=use | 
 | 1062 |                           both] | 
 | 1063 |   --with-tags[=TAGS] | 
 | 1064 |                           include additional configurations [automatic] | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1065 |  | 
 | 1066 | Some influential environment variables: | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1067 |   CC          C compiler command | 
 | 1068 |   CFLAGS      C compiler flags | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1069 |   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a | 
 | 1070 |               nonstandard directory <lib dir> | 
 | 1071 |   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have | 
 | 1072 |               headers in a nonstandard directory <include dir> | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1073 |   CPP         C preprocessor | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1074 |   CXX         C++ compiler command | 
 | 1075 |   CXXFLAGS    C++ compiler flags | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1076 |   CXXCPP      C++ preprocessor | 
 | 1077 |   F77         Fortran 77 compiler command | 
 | 1078 |   FFLAGS      Fortran 77 compiler flags | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1079 |  | 
 | 1080 | Use these variables to override the choices made by `configure' or to help | 
 | 1081 | it to find libraries and programs with nonstandard names/locations. | 
 | 1082 |  | 
 | 1083 | Report bugs to <llvmbugs@cs.uiuc.edu>. | 
 | 1084 | _ACEOF | 
 | 1085 | fi | 
 | 1086 |  | 
 | 1087 | if test "$ac_init_help" = "recursive"; then | 
 | 1088 |   # If there are subdirs, report their specific --help. | 
 | 1089 |   ac_popdir=`pwd` | 
 | 1090 |   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | 
 | 1091 |     test -d $ac_dir || continue | 
 | 1092 |     ac_builddir=. | 
 | 1093 |  | 
 | 1094 | if test "$ac_dir" != .; then | 
 | 1095 |   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
 | 1096 |   # A "../" for each directory in $ac_dir_suffix. | 
 | 1097 |   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
 | 1098 | else | 
 | 1099 |   ac_dir_suffix= ac_top_builddir= | 
 | 1100 | fi | 
 | 1101 |  | 
 | 1102 | case $srcdir in | 
 | 1103 |   .)  # No --srcdir option.  We are building in place. | 
 | 1104 |     ac_srcdir=. | 
 | 1105 |     if test -z "$ac_top_builddir"; then | 
 | 1106 |        ac_top_srcdir=. | 
 | 1107 |     else | 
 | 1108 |        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
 | 1109 |     fi ;; | 
 | 1110 |   [\\/]* | ?:[\\/]* )  # Absolute path. | 
 | 1111 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
 | 1112 |     ac_top_srcdir=$srcdir ;; | 
 | 1113 |   *) # Relative path. | 
 | 1114 |     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
 | 1115 |     ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
 | 1116 | esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1117 |  | 
 | 1118 | # Do not use `cd foo && pwd` to compute absolute paths, because | 
 | 1119 | # the directories may not exist. | 
 | 1120 | case `pwd` in | 
 | 1121 | .) ac_abs_builddir="$ac_dir";; | 
 | 1122 | *) | 
 | 1123 |   case "$ac_dir" in | 
 | 1124 |   .) ac_abs_builddir=`pwd`;; | 
 | 1125 |   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | 
 | 1126 |   *) ac_abs_builddir=`pwd`/"$ac_dir";; | 
 | 1127 |   esac;; | 
 | 1128 | esac | 
 | 1129 | case $ac_abs_builddir in | 
 | 1130 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 1131 | *) | 
 | 1132 |   case ${ac_top_builddir}. in | 
 | 1133 |   .) ac_abs_top_builddir=$ac_abs_builddir;; | 
 | 1134 |   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 1135 |   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | 
 | 1136 |   esac;; | 
 | 1137 | esac | 
 | 1138 | case $ac_abs_builddir in | 
 | 1139 | .) ac_abs_srcdir=$ac_srcdir;; | 
 | 1140 | *) | 
 | 1141 |   case $ac_srcdir in | 
 | 1142 |   .) ac_abs_srcdir=$ac_abs_builddir;; | 
 | 1143 |   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | 
 | 1144 |   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | 
 | 1145 |   esac;; | 
 | 1146 | esac | 
 | 1147 | case $ac_abs_builddir in | 
 | 1148 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 1149 | *) | 
 | 1150 |   case $ac_top_srcdir in | 
 | 1151 |   .) ac_abs_top_srcdir=$ac_abs_builddir;; | 
 | 1152 |   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 1153 |   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | 
 | 1154 |   esac;; | 
 | 1155 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1156 |  | 
 | 1157 |     cd $ac_dir | 
 | 1158 |     # Check for guested configure; otherwise get Cygnus style configure. | 
 | 1159 |     if test -f $ac_srcdir/configure.gnu; then | 
 | 1160 |       echo | 
 | 1161 |       $SHELL $ac_srcdir/configure.gnu  --help=recursive | 
 | 1162 |     elif test -f $ac_srcdir/configure; then | 
 | 1163 |       echo | 
 | 1164 |       $SHELL $ac_srcdir/configure  --help=recursive | 
 | 1165 |     elif test -f $ac_srcdir/configure.ac || | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1166 | 	   test -f $ac_srcdir/configure.in; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1167 |       echo | 
 | 1168 |       $ac_configure --help | 
 | 1169 |     else | 
 | 1170 |       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | 
 | 1171 |     fi | 
 | 1172 |     cd $ac_popdir | 
 | 1173 |   done | 
 | 1174 | fi | 
 | 1175 |  | 
 | 1176 | test -n "$ac_init_help" && exit 0 | 
 | 1177 | if $ac_init_version; then | 
 | 1178 |   cat <<\_ACEOF | 
| Reid Spencer | 57d3725 | 2006-04-14 03:01:27 +0000 | [diff] [blame] | 1179 | llvm configure 1.8cvs | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1180 | generated by GNU Autoconf 2.59 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1181 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1182 | Copyright (C) 2003 Free Software Foundation, Inc. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1183 | This configure script is free software; the Free Software Foundation | 
 | 1184 | gives unlimited permission to copy, distribute and modify it. | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1185 |  | 
| John Criswell | c0c186d | 2005-11-08 21:11:33 +0000 | [diff] [blame] | 1186 | Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1187 | _ACEOF | 
 | 1188 |   exit 0 | 
 | 1189 | fi | 
 | 1190 | exec 5>config.log | 
 | 1191 | cat >&5 <<_ACEOF | 
 | 1192 | This file contains any messages produced by compilers while | 
 | 1193 | running configure, to aid debugging if configure makes a mistake. | 
 | 1194 |  | 
| Reid Spencer | 57d3725 | 2006-04-14 03:01:27 +0000 | [diff] [blame] | 1195 | It was created by llvm $as_me 1.8cvs, which was | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1196 | generated by GNU Autoconf 2.59.  Invocation command line was | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1197 |  | 
 | 1198 |   $ $0 $@ | 
 | 1199 |  | 
 | 1200 | _ACEOF | 
 | 1201 | { | 
 | 1202 | cat <<_ASUNAME | 
 | 1203 | ## --------- ## | 
 | 1204 | ## Platform. ## | 
 | 1205 | ## --------- ## | 
 | 1206 |  | 
 | 1207 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 1208 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | 
 | 1209 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | 
 | 1210 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | 
 | 1211 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | 
 | 1212 |  | 
 | 1213 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | 
 | 1214 | /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown` | 
 | 1215 |  | 
 | 1216 | /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown` | 
 | 1217 | /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown` | 
 | 1218 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | 
 | 1219 | hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown` | 
 | 1220 | /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown` | 
 | 1221 | /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown` | 
 | 1222 | /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown` | 
 | 1223 |  | 
 | 1224 | _ASUNAME | 
 | 1225 |  | 
 | 1226 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 1227 | for as_dir in $PATH | 
 | 1228 | do | 
 | 1229 |   IFS=$as_save_IFS | 
 | 1230 |   test -z "$as_dir" && as_dir=. | 
 | 1231 |   echo "PATH: $as_dir" | 
 | 1232 | done | 
 | 1233 |  | 
 | 1234 | } >&5 | 
 | 1235 |  | 
 | 1236 | cat >&5 <<_ACEOF | 
 | 1237 |  | 
 | 1238 |  | 
 | 1239 | ## ----------- ## | 
 | 1240 | ## Core tests. ## | 
 | 1241 | ## ----------- ## | 
 | 1242 |  | 
 | 1243 | _ACEOF | 
 | 1244 |  | 
 | 1245 |  | 
 | 1246 | # Keep a trace of the command line. | 
 | 1247 | # 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] | 1248 | # 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] | 1249 | # Also quote any args containing shell meta-characters. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1250 | # Make two passes to allow for proper duplicate-argument suppression. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1251 | ac_configure_args= | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1252 | ac_configure_args0= | 
 | 1253 | ac_configure_args1= | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1254 | ac_sep= | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1255 | ac_must_keep_next=false | 
 | 1256 | for ac_pass in 1 2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1257 | do | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1258 |   for ac_arg | 
 | 1259 |   do | 
 | 1260 |     case $ac_arg in | 
 | 1261 |     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | 
 | 1262 |     -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 1263 |     | -silent | --silent | --silen | --sile | --sil) | 
 | 1264 |       continue ;; | 
 | 1265 |     *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | 
 | 1266 |       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
 | 1267 |     esac | 
 | 1268 |     case $ac_pass in | 
 | 1269 |     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | 
 | 1270 |     2) | 
 | 1271 |       ac_configure_args1="$ac_configure_args1 '$ac_arg'" | 
 | 1272 |       if test $ac_must_keep_next = true; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1273 | 	ac_must_keep_next=false # Got value, back to normal. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1274 |       else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1275 | 	case $ac_arg in | 
 | 1276 | 	  *=* | --config-cache | -C | -disable-* | --disable-* \ | 
 | 1277 | 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | 
 | 1278 | 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | 
 | 1279 | 	  | -with-* | --with-* | -without-* | --without-* | --x) | 
 | 1280 | 	    case "$ac_configure_args0 " in | 
 | 1281 | 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | 
 | 1282 | 	    esac | 
 | 1283 | 	    ;; | 
 | 1284 | 	  -* ) ac_must_keep_next=true ;; | 
 | 1285 | 	esac | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1286 |       fi | 
 | 1287 |       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | 
 | 1288 |       # Get rid of the leading space. | 
 | 1289 |       ac_sep=" " | 
 | 1290 |       ;; | 
 | 1291 |     esac | 
 | 1292 |   done | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1293 | done | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1294 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | 
 | 1295 | $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] | 1296 |  | 
 | 1297 | # When interrupted or exit'd, cleanup temporary files, and complete | 
 | 1298 | # config.log.  We remove comments because anyway the quotes in there | 
 | 1299 | # would cause problems or look ugly. | 
 | 1300 | # WARNING: Be sure not to use single quotes in there, as some shells, | 
 | 1301 | # such as our DU 5.0 friend, will then `close' the trap. | 
 | 1302 | trap 'exit_status=$? | 
 | 1303 |   # Save into config.log some information that might help in debugging. | 
 | 1304 |   { | 
 | 1305 |     echo | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1306 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1307 |     cat <<\_ASBOX | 
 | 1308 | ## ---------------- ## | 
 | 1309 | ## Cache variables. ## | 
 | 1310 | ## ---------------- ## | 
 | 1311 | _ASBOX | 
 | 1312 |     echo | 
 | 1313 |     # The following way of writing the cache mishandles newlines in values, | 
 | 1314 | { | 
 | 1315 |   (set) 2>&1 | | 
 | 1316 |     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | 
 | 1317 |     *ac_space=\ *) | 
 | 1318 |       sed -n \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1319 | 	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | 
 | 1320 | 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1321 |       ;; | 
 | 1322 |     *) | 
 | 1323 |       sed -n \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1324 | 	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1325 |       ;; | 
 | 1326 |     esac; | 
 | 1327 | } | 
 | 1328 |     echo | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1329 |  | 
 | 1330 |     cat <<\_ASBOX | 
 | 1331 | ## ----------------- ## | 
 | 1332 | ## Output variables. ## | 
 | 1333 | ## ----------------- ## | 
 | 1334 | _ASBOX | 
 | 1335 |     echo | 
 | 1336 |     for ac_var in $ac_subst_vars | 
 | 1337 |     do | 
 | 1338 |       eval ac_val=$`echo $ac_var` | 
 | 1339 |       echo "$ac_var='"'"'$ac_val'"'"'" | 
 | 1340 |     done | sort | 
 | 1341 |     echo | 
 | 1342 |  | 
 | 1343 |     if test -n "$ac_subst_files"; then | 
 | 1344 |       cat <<\_ASBOX | 
 | 1345 | ## ------------- ## | 
 | 1346 | ## Output files. ## | 
 | 1347 | ## ------------- ## | 
 | 1348 | _ASBOX | 
 | 1349 |       echo | 
 | 1350 |       for ac_var in $ac_subst_files | 
 | 1351 |       do | 
 | 1352 | 	eval ac_val=$`echo $ac_var` | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1353 | 	echo "$ac_var='"'"'$ac_val'"'"'" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1354 |       done | sort | 
 | 1355 |       echo | 
 | 1356 |     fi | 
 | 1357 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1358 |     if test -s confdefs.h; then | 
 | 1359 |       cat <<\_ASBOX | 
 | 1360 | ## ----------- ## | 
 | 1361 | ## confdefs.h. ## | 
 | 1362 | ## ----------- ## | 
 | 1363 | _ASBOX | 
 | 1364 |       echo | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1365 |       sed "/^$/d" confdefs.h | sort | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1366 |       echo | 
 | 1367 |     fi | 
 | 1368 |     test "$ac_signal" != 0 && | 
 | 1369 |       echo "$as_me: caught signal $ac_signal" | 
 | 1370 |     echo "$as_me: exit $exit_status" | 
 | 1371 |   } >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1372 |   rm -f core *.core && | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1373 |   rm -rf conftest* confdefs* conf$$* $ac_clean_files && | 
 | 1374 |     exit $exit_status | 
 | 1375 |      ' 0 | 
 | 1376 | for ac_signal in 1 2 13 15; do | 
 | 1377 |   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | 
 | 1378 | done | 
 | 1379 | ac_signal=0 | 
 | 1380 |  | 
 | 1381 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
 | 1382 | rm -rf conftest* confdefs.h | 
 | 1383 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | 
 | 1384 | echo >confdefs.h | 
 | 1385 |  | 
 | 1386 | # Predefined preprocessor variables. | 
 | 1387 |  | 
 | 1388 | cat >>confdefs.h <<_ACEOF | 
 | 1389 | #define PACKAGE_NAME "$PACKAGE_NAME" | 
 | 1390 | _ACEOF | 
 | 1391 |  | 
 | 1392 |  | 
 | 1393 | cat >>confdefs.h <<_ACEOF | 
 | 1394 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | 
 | 1395 | _ACEOF | 
 | 1396 |  | 
 | 1397 |  | 
 | 1398 | cat >>confdefs.h <<_ACEOF | 
 | 1399 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | 
 | 1400 | _ACEOF | 
 | 1401 |  | 
 | 1402 |  | 
 | 1403 | cat >>confdefs.h <<_ACEOF | 
 | 1404 | #define PACKAGE_STRING "$PACKAGE_STRING" | 
 | 1405 | _ACEOF | 
 | 1406 |  | 
 | 1407 |  | 
 | 1408 | cat >>confdefs.h <<_ACEOF | 
 | 1409 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | 
 | 1410 | _ACEOF | 
 | 1411 |  | 
 | 1412 |  | 
 | 1413 | # Let the site file select an alternate cache file if it wants to. | 
 | 1414 | # Prefer explicitly selected file to automatically selected ones. | 
 | 1415 | if test -z "$CONFIG_SITE"; then | 
 | 1416 |   if test "x$prefix" != xNONE; then | 
 | 1417 |     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | 
 | 1418 |   else | 
 | 1419 |     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | 
 | 1420 |   fi | 
 | 1421 | fi | 
 | 1422 | for ac_site_file in $CONFIG_SITE; do | 
 | 1423 |   if test -r "$ac_site_file"; then | 
 | 1424 |     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | 
 | 1425 | echo "$as_me: loading site script $ac_site_file" >&6;} | 
 | 1426 |     sed 's/^/| /' "$ac_site_file" >&5 | 
 | 1427 |     . "$ac_site_file" | 
 | 1428 |   fi | 
 | 1429 | done | 
 | 1430 |  | 
 | 1431 | if test -r "$cache_file"; then | 
 | 1432 |   # Some versions of bash will fail to source /dev/null (special | 
 | 1433 |   # files actually), so we avoid doing that. | 
 | 1434 |   if test -f "$cache_file"; then | 
 | 1435 |     { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | 
 | 1436 | echo "$as_me: loading cache $cache_file" >&6;} | 
 | 1437 |     case $cache_file in | 
 | 1438 |       [\\/]* | ?:[\\/]* ) . $cache_file;; | 
 | 1439 |       *)                      . ./$cache_file;; | 
 | 1440 |     esac | 
 | 1441 |   fi | 
 | 1442 | else | 
 | 1443 |   { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | 
 | 1444 | echo "$as_me: creating cache $cache_file" >&6;} | 
 | 1445 |   >$cache_file | 
 | 1446 | fi | 
 | 1447 |  | 
 | 1448 | # Check that the precious variables saved in the cache have kept the same | 
 | 1449 | # value. | 
 | 1450 | ac_cache_corrupted=false | 
 | 1451 | for ac_var in `(set) 2>&1 | | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1452 | 	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1453 |   eval ac_old_set=\$ac_cv_env_${ac_var}_set | 
 | 1454 |   eval ac_new_set=\$ac_env_${ac_var}_set | 
 | 1455 |   eval ac_old_val="\$ac_cv_env_${ac_var}_value" | 
 | 1456 |   eval ac_new_val="\$ac_env_${ac_var}_value" | 
 | 1457 |   case $ac_old_set,$ac_new_set in | 
 | 1458 |     set,) | 
 | 1459 |       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | 
 | 1460 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | 
 | 1461 |       ac_cache_corrupted=: ;; | 
 | 1462 |     ,set) | 
 | 1463 |       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | 
 | 1464 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | 
 | 1465 |       ac_cache_corrupted=: ;; | 
 | 1466 |     ,);; | 
 | 1467 |     *) | 
 | 1468 |       if test "x$ac_old_val" != "x$ac_new_val"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1469 | 	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1470 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1471 | 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1472 | echo "$as_me:   former value:  $ac_old_val" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1473 | 	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1474 | echo "$as_me:   current value: $ac_new_val" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1475 | 	ac_cache_corrupted=: | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1476 |       fi;; | 
 | 1477 |   esac | 
 | 1478 |   # Pass precious variables to config.status. | 
 | 1479 |   if test "$ac_new_set" = set; then | 
 | 1480 |     case $ac_new_val in | 
 | 1481 |     *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | 
 | 1482 |       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | 
 | 1483 |     *) ac_arg=$ac_var=$ac_new_val ;; | 
 | 1484 |     esac | 
 | 1485 |     case " $ac_configure_args " in | 
 | 1486 |       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy. | 
 | 1487 |       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | 
 | 1488 |     esac | 
 | 1489 |   fi | 
 | 1490 | done | 
 | 1491 | if $ac_cache_corrupted; then | 
 | 1492 |   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | 
 | 1493 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | 
 | 1494 |   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | 
 | 1495 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | 
 | 1496 |    { (exit 1); exit 1; }; } | 
 | 1497 | fi | 
 | 1498 |  | 
 | 1499 | ac_ext=c | 
 | 1500 | ac_cpp='$CPP $CPPFLAGS' | 
 | 1501 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 1502 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 1503 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 1504 |  | 
 | 1505 |  | 
 | 1506 |  | 
 | 1507 |  | 
 | 1508 |  | 
 | 1509 |  | 
 | 1510 |  | 
 | 1511 |  | 
 | 1512 |  | 
 | 1513 |  | 
 | 1514 |  | 
 | 1515 |  | 
 | 1516 |  | 
 | 1517 |  | 
 | 1518 |  | 
 | 1519 |  | 
 | 1520 |  | 
 | 1521 |  | 
 | 1522 |  | 
 | 1523 |  | 
 | 1524 |  | 
 | 1525 |  | 
 | 1526 |  | 
 | 1527 |  | 
 | 1528 |  | 
 | 1529 |  | 
 | 1530 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1531 |  | 
| Misha Brukman | 19098e5 | 2005-05-12 22:15:34 +0000 | [diff] [blame] | 1532 | LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign." | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1533 |  | 
 | 1534 |  | 
 | 1535 |  | 
 | 1536 |  | 
 | 1537 |  | 
 | 1538 |  | 
 | 1539 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1540 | ac_aux_dir= | 
| John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1541 | for ac_dir in autoconf $srcdir/autoconf; do | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1542 |   if test -f $ac_dir/install-sh; then | 
 | 1543 |     ac_aux_dir=$ac_dir | 
 | 1544 |     ac_install_sh="$ac_aux_dir/install-sh -c" | 
 | 1545 |     break | 
 | 1546 |   elif test -f $ac_dir/install.sh; then | 
 | 1547 |     ac_aux_dir=$ac_dir | 
 | 1548 |     ac_install_sh="$ac_aux_dir/install.sh -c" | 
 | 1549 |     break | 
 | 1550 |   elif test -f $ac_dir/shtool; then | 
 | 1551 |     ac_aux_dir=$ac_dir | 
 | 1552 |     ac_install_sh="$ac_aux_dir/shtool install -c" | 
 | 1553 |     break | 
 | 1554 |   fi | 
 | 1555 | done | 
 | 1556 | if test -z "$ac_aux_dir"; then | 
| John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1557 |   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 | 
 | 1558 | 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] | 1559 |    { (exit 1); exit 1; }; } | 
 | 1560 | fi | 
 | 1561 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | 
 | 1562 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | 
 | 1563 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | 
 | 1564 |  | 
| John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1565 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1566 | if test ${srcdir} != "." ; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1567 |   if test -f ${srcdir}/include/llvm/Config/config.h ; then | 
 | 1568 |     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 | 
| John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1569 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} | 
 | 1570 |    { (exit 1); exit 1; }; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1571 |   fi | 
| John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1572 | fi | 
 | 1573 |  | 
| John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1574 | for i in `ls ${srcdir}/projects` | 
 | 1575 | do | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1576 |   if test -d ${srcdir}/projects/${i} ; then | 
 | 1577 |     case ${i} in | 
 | 1578 |       "CVS") ;; | 
 | 1579 |       "sample") | 
| John Criswell | 7ec78aa | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1580 |  | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1581 | subdirs="$subdirs projects/sample" | 
 | 1582 |     ;; | 
 | 1583 |       "Stacker") | 
| John Criswell | 7ec78aa | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1584 |  | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1585 | subdirs="$subdirs projects/Stacker" | 
 | 1586 |    ;; | 
 | 1587 |       "llvm-test") | 
| John Criswell | 7ec78aa | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1588 |  | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1589 | subdirs="$subdirs projects/llvm-test" | 
 | 1590 |  ;; | 
 | 1591 |       "llvm-reopt") | 
 | 1592 |  | 
 | 1593 | subdirs="$subdirs projects/llvm-reopt" | 
 | 1594 | ;; | 
 | 1595 |       "llvm-gcc") | 
 | 1596 |  | 
 | 1597 | subdirs="$subdirs projects/llvm-gcc" | 
 | 1598 |   ;; | 
| Alkis Evlogimenos | 7bd1ede | 2005-01-16 09:44:58 +0000 | [diff] [blame] | 1599 |       "llvm-java") | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1600 |  | 
| Alkis Evlogimenos | ae192d3 | 2005-01-14 07:52:28 +0000 | [diff] [blame] | 1601 | subdirs="$subdirs projects/llvm-java" | 
| Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 1602 |  ;; | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1603 |       "llvm-tv") | 
 | 1604 |  | 
 | 1605 | subdirs="$subdirs projects/llvm-tv" | 
 | 1606 |    ;; | 
| Chris Lattner | c6cf2fb | 2005-02-11 04:46:58 +0000 | [diff] [blame] | 1607 |       "llvm-poolalloc") | 
| John Criswell | e96aa1c | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 1608 |  | 
| Chris Lattner | c6cf2fb | 2005-02-11 04:46:58 +0000 | [diff] [blame] | 1609 | subdirs="$subdirs projects/llvm-poolalloc" | 
| John Criswell | e96aa1c | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 1610 |  ;; | 
| John Criswell | 241116f | 2005-12-19 20:27:24 +0000 | [diff] [blame] | 1611 |       "llvm-kernel") | 
 | 1612 |  | 
 | 1613 | subdirs="$subdirs projects/llvm-kernel" | 
 | 1614 |  ;; | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1615 |       *) | 
| Alkis Evlogimenos | a281b6fa | 2004-09-27 07:35:19 +0000 | [diff] [blame] | 1616 |         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 | 
 | 1617 | echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} | 
| Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 1618 |         ;; | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1619 |     esac | 
| John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1620 |   fi | 
 | 1621 | done | 
| John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 1622 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1623 |  | 
 | 1624 | # Make sure we can run config.sub. | 
 | 1625 | $ac_config_sub sun4 >/dev/null 2>&1 || | 
 | 1626 |   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | 
 | 1627 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | 
 | 1628 |    { (exit 1); exit 1; }; } | 
 | 1629 |  | 
 | 1630 | echo "$as_me:$LINENO: checking build system type" >&5 | 
 | 1631 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | 
 | 1632 | if test "${ac_cv_build+set}" = set; then | 
 | 1633 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1634 | else | 
 | 1635 |   ac_cv_build_alias=$build_alias | 
 | 1636 | test -z "$ac_cv_build_alias" && | 
 | 1637 |   ac_cv_build_alias=`$ac_config_guess` | 
 | 1638 | test -z "$ac_cv_build_alias" && | 
 | 1639 |   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | 
 | 1640 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | 
 | 1641 |    { (exit 1); exit 1; }; } | 
 | 1642 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | 
 | 1643 |   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | 
 | 1644 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | 
 | 1645 |    { (exit 1); exit 1; }; } | 
 | 1646 |  | 
 | 1647 | fi | 
 | 1648 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | 
 | 1649 | echo "${ECHO_T}$ac_cv_build" >&6 | 
 | 1650 | build=$ac_cv_build | 
 | 1651 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
 | 1652 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
 | 1653 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
 | 1654 |  | 
 | 1655 |  | 
 | 1656 | echo "$as_me:$LINENO: checking host system type" >&5 | 
 | 1657 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | 
 | 1658 | if test "${ac_cv_host+set}" = set; then | 
 | 1659 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1660 | else | 
 | 1661 |   ac_cv_host_alias=$host_alias | 
 | 1662 | test -z "$ac_cv_host_alias" && | 
 | 1663 |   ac_cv_host_alias=$ac_cv_build_alias | 
 | 1664 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | 
 | 1665 |   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | 
 | 1666 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | 
 | 1667 |    { (exit 1); exit 1; }; } | 
 | 1668 |  | 
 | 1669 | fi | 
 | 1670 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | 
 | 1671 | echo "${ECHO_T}$ac_cv_host" >&6 | 
 | 1672 | host=$ac_cv_host | 
 | 1673 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
 | 1674 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
 | 1675 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
 | 1676 |  | 
 | 1677 |  | 
 | 1678 | echo "$as_me:$LINENO: checking target system type" >&5 | 
 | 1679 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | 
 | 1680 | if test "${ac_cv_target+set}" = set; then | 
 | 1681 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1682 | else | 
 | 1683 |   ac_cv_target_alias=$target_alias | 
 | 1684 | test "x$ac_cv_target_alias" = "x" && | 
 | 1685 |   ac_cv_target_alias=$ac_cv_host_alias | 
 | 1686 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | 
 | 1687 |   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | 
 | 1688 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | 
 | 1689 |    { (exit 1); exit 1; }; } | 
 | 1690 |  | 
 | 1691 | fi | 
 | 1692 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | 
 | 1693 | echo "${ECHO_T}$ac_cv_target" >&6 | 
 | 1694 | target=$ac_cv_target | 
 | 1695 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
 | 1696 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
 | 1697 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
 | 1698 |  | 
 | 1699 |  | 
 | 1700 | # The aliases save the names the user supplied, while $host etc. | 
 | 1701 | # will get canonicalized. | 
 | 1702 | test -n "$target_alias" && | 
 | 1703 |   test "$program_prefix$program_suffix$program_transform_name" = \ | 
 | 1704 |     NONENONEs,x,x, && | 
 | 1705 |   program_prefix=${target_alias}- | 
 | 1706 |  | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1707 | echo "$as_me:$LINENO: checking type of operating system we're on" >&5 | 
 | 1708 | echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6 | 
 | 1709 | if test "${llvm_cv_os_type+set}" = set; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1710 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1711 | else | 
 | 1712 |   case $build in | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1713 |   *-*-aix*) | 
 | 1714 |     llvm_cv_os_type="AIX" | 
 | 1715 |     llvm_cv_platform_type="Unix" ;; | 
 | 1716 |   *-*-cygwin*) | 
 | 1717 |     llvm_cv_os_type="Cygwin" | 
 | 1718 |     llvm_cv_platform_type="Unix" ;; | 
 | 1719 |   *-*-darwin*) | 
 | 1720 |     llvm_cv_os_type="Darwin" | 
 | 1721 |     llvm_cv_platform_type="Unix" ;; | 
 | 1722 |   *-*-freebsd*) | 
 | 1723 |     llvm_cv_os_type="FreeBSD" | 
 | 1724 |     llvm_cv_platform_type="Unix" ;; | 
| Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 1725 |   *-*-openbsd*) | 
 | 1726 |     llvm_cv_os_type="OpenBSD" | 
 | 1727 |     llvm_cv_platform_type="Unix" ;; | 
| Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 1728 |   *-*-hpux*) | 
 | 1729 |     llvm_cv_os_type="HP-UX" | 
 | 1730 |     llvm_cv_platform_type="Unix" ;; | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1731 |   *-*-interix*) | 
 | 1732 |     llvm_cv_os_type="Interix" | 
 | 1733 |     llvm_cv_platform_type="Unix" ;; | 
 | 1734 |   *-*-linux*) | 
 | 1735 |     llvm_cv_os_type="Linux" | 
 | 1736 |     llvm_cv_platform_type="Unix" ;; | 
 | 1737 |   *-*-solaris*) | 
 | 1738 |     llvm_cv_os_type="SunOS" | 
 | 1739 |     llvm_cv_platform_type="Unix" ;; | 
 | 1740 |   *-*-win32*) | 
 | 1741 |     llvm_cv_os_type="Win32" | 
 | 1742 |     llvm_cv_platform_type="Win32" ;; | 
 | 1743 |   *-*-mingw*) | 
 | 1744 |     llvm_cv_os_type="MingW" | 
 | 1745 |     llvm_cv_platform_type="Win32" ;; | 
 | 1746 |   *) | 
 | 1747 |     llvm_cv_os_type="Unknown" | 
 | 1748 |     llvm_cv_platform_type="Unknown" ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1749 | esac | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1750 | fi | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1751 | echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 | 
 | 1752 | echo "${ECHO_T}$llvm_cv_os_type" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1753 |  | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1754 | if test "$llvm_cv_os_type" = "Unknown" ; then | 
 | 1755 |   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 | 
 | 1756 | echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} | 
| Reid Spencer | 886e951 | 2004-08-31 01:34:10 +0000 | [diff] [blame] | 1757 |    { (exit 1); exit 1; }; } | 
 | 1758 | fi | 
 | 1759 |  | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1760 | OS=$llvm_cv_os_type | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1761 |  | 
 | 1762 |  | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1763 | case $llvm_cv_platform_type in | 
 | 1764 |   Unix) | 
 | 1765 |  | 
 | 1766 | cat >>confdefs.h <<\_ACEOF | 
 | 1767 | #define LLVM_ON_UNIX 1 | 
 | 1768 | _ACEOF | 
 | 1769 |  | 
| Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 1770 |     LLVM_ON_UNIX=1 | 
 | 1771 |  | 
 | 1772 |     LLVM_ON_WIN32=0 | 
 | 1773 |  | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1774 |     ;; | 
 | 1775 |   Win32) | 
 | 1776 |  | 
 | 1777 | cat >>confdefs.h <<\_ACEOF | 
 | 1778 | #define LLVM_ON_WIN32 1 | 
 | 1779 | _ACEOF | 
 | 1780 |  | 
| Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 1781 |     LLVM_ON_UNIX=0 | 
 | 1782 |  | 
 | 1783 |     LLVM_ON_WIN32=1 | 
 | 1784 |  | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1785 |     ;; | 
 | 1786 | esac | 
 | 1787 |  | 
| Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1788 | echo "$as_me:$LINENO: checking target architecture" >&5 | 
 | 1789 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1790 | if test "${llvm_cv_target_arch+set}" = set; then | 
 | 1791 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1792 | else | 
 | 1793 |   case $target in | 
| Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 1794 |   i?86-*)                 llvm_cv_target_arch="x86" ;; | 
| Reid Spencer | 2dc6586 | 2004-12-28 07:56:14 +0000 | [diff] [blame] | 1795 |   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;; | 
| Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 1796 |   sparc*-*)               llvm_cv_target_arch="Sparc" ;; | 
 | 1797 |   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;; | 
| Andrew Lenharth | 501cb27 | 2005-01-24 17:25:41 +0000 | [diff] [blame] | 1798 |   alpha*-*)               llvm_cv_target_arch="Alpha" ;; | 
| Misha Brukman | 1edb190 | 2005-03-17 20:56:22 +0000 | [diff] [blame] | 1799 |   ia64-*)                 llvm_cv_target_arch="IA64" ;; | 
| Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 1800 |   *)                      llvm_cv_target_arch="Unknown" ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1801 | esac | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1802 | fi | 
 | 1803 | echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 | 
 | 1804 | echo "${ECHO_T}$llvm_cv_target_arch" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1805 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1806 | if test "$llvm_cv_target_arch" = "Unknown" ; then | 
 | 1807 |   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 | 
 | 1808 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} | 
 | 1809 | fi | 
| John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 1810 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1811 | ARCH=$llvm_cv_target_arch | 
| Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1812 |  | 
| Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1813 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1814 | ac_ext=c | 
 | 1815 | ac_cpp='$CPP $CPPFLAGS' | 
 | 1816 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 1817 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 1818 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1819 | if test -n "$ac_tool_prefix"; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1820 |   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | 
 | 1821 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | 
 | 1822 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 1823 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 1824 | if test "${ac_cv_prog_CC+set}" = set; then | 
 | 1825 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1826 | else | 
 | 1827 |   if test -n "$CC"; then | 
 | 1828 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 1829 | else | 
 | 1830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 1831 | for as_dir in $PATH | 
 | 1832 | do | 
 | 1833 |   IFS=$as_save_IFS | 
 | 1834 |   test -z "$as_dir" && as_dir=. | 
 | 1835 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 1836 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 1837 |     ac_cv_prog_CC="${ac_tool_prefix}gcc" | 
 | 1838 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 1839 |     break 2 | 
 | 1840 |   fi | 
 | 1841 | done | 
 | 1842 | done | 
 | 1843 |  | 
 | 1844 | fi | 
 | 1845 | fi | 
 | 1846 | CC=$ac_cv_prog_CC | 
 | 1847 | if test -n "$CC"; then | 
 | 1848 |   echo "$as_me:$LINENO: result: $CC" >&5 | 
 | 1849 | echo "${ECHO_T}$CC" >&6 | 
 | 1850 | else | 
 | 1851 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 1852 | echo "${ECHO_T}no" >&6 | 
 | 1853 | fi | 
 | 1854 |  | 
 | 1855 | fi | 
 | 1856 | if test -z "$ac_cv_prog_CC"; then | 
 | 1857 |   ac_ct_CC=$CC | 
 | 1858 |   # Extract the first word of "gcc", so it can be a program name with args. | 
 | 1859 | set dummy gcc; ac_word=$2 | 
 | 1860 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 1861 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 1862 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | 
 | 1863 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1864 | else | 
 | 1865 |   if test -n "$ac_ct_CC"; then | 
 | 1866 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
 | 1867 | else | 
 | 1868 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 1869 | for as_dir in $PATH | 
 | 1870 | do | 
 | 1871 |   IFS=$as_save_IFS | 
 | 1872 |   test -z "$as_dir" && as_dir=. | 
 | 1873 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 1874 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 1875 |     ac_cv_prog_ac_ct_CC="gcc" | 
 | 1876 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 1877 |     break 2 | 
 | 1878 |   fi | 
 | 1879 | done | 
 | 1880 | done | 
 | 1881 |  | 
 | 1882 | fi | 
 | 1883 | fi | 
 | 1884 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 1885 | if test -n "$ac_ct_CC"; then | 
 | 1886 |   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | 
 | 1887 | echo "${ECHO_T}$ac_ct_CC" >&6 | 
 | 1888 | else | 
 | 1889 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 1890 | echo "${ECHO_T}no" >&6 | 
 | 1891 | fi | 
 | 1892 |  | 
 | 1893 |   CC=$ac_ct_CC | 
 | 1894 | else | 
 | 1895 |   CC="$ac_cv_prog_CC" | 
 | 1896 | fi | 
 | 1897 |  | 
 | 1898 | if test -z "$CC"; then | 
 | 1899 |   if test -n "$ac_tool_prefix"; then | 
 | 1900 |   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | 
 | 1901 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | 
 | 1902 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 1903 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 1904 | if test "${ac_cv_prog_CC+set}" = set; then | 
 | 1905 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1906 | else | 
 | 1907 |   if test -n "$CC"; then | 
 | 1908 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 1909 | else | 
 | 1910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 1911 | for as_dir in $PATH | 
 | 1912 | do | 
 | 1913 |   IFS=$as_save_IFS | 
 | 1914 |   test -z "$as_dir" && as_dir=. | 
 | 1915 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 1916 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 1917 |     ac_cv_prog_CC="${ac_tool_prefix}cc" | 
 | 1918 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 1919 |     break 2 | 
 | 1920 |   fi | 
 | 1921 | done | 
 | 1922 | done | 
 | 1923 |  | 
 | 1924 | fi | 
 | 1925 | fi | 
 | 1926 | CC=$ac_cv_prog_CC | 
 | 1927 | if test -n "$CC"; then | 
 | 1928 |   echo "$as_me:$LINENO: result: $CC" >&5 | 
 | 1929 | echo "${ECHO_T}$CC" >&6 | 
 | 1930 | else | 
 | 1931 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 1932 | echo "${ECHO_T}no" >&6 | 
 | 1933 | fi | 
 | 1934 |  | 
 | 1935 | fi | 
 | 1936 | if test -z "$ac_cv_prog_CC"; then | 
 | 1937 |   ac_ct_CC=$CC | 
 | 1938 |   # Extract the first word of "cc", so it can be a program name with args. | 
 | 1939 | set dummy cc; ac_word=$2 | 
 | 1940 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 1941 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 1942 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | 
 | 1943 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1944 | else | 
 | 1945 |   if test -n "$ac_ct_CC"; then | 
 | 1946 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
 | 1947 | else | 
 | 1948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 1949 | for as_dir in $PATH | 
 | 1950 | do | 
 | 1951 |   IFS=$as_save_IFS | 
 | 1952 |   test -z "$as_dir" && as_dir=. | 
 | 1953 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 1954 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 1955 |     ac_cv_prog_ac_ct_CC="cc" | 
 | 1956 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 1957 |     break 2 | 
 | 1958 |   fi | 
 | 1959 | done | 
 | 1960 | done | 
 | 1961 |  | 
 | 1962 | fi | 
 | 1963 | fi | 
 | 1964 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 1965 | if test -n "$ac_ct_CC"; then | 
 | 1966 |   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | 
 | 1967 | echo "${ECHO_T}$ac_ct_CC" >&6 | 
 | 1968 | else | 
 | 1969 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 1970 | echo "${ECHO_T}no" >&6 | 
 | 1971 | fi | 
 | 1972 |  | 
 | 1973 |   CC=$ac_ct_CC | 
 | 1974 | else | 
 | 1975 |   CC="$ac_cv_prog_CC" | 
 | 1976 | fi | 
 | 1977 |  | 
 | 1978 | fi | 
 | 1979 | if test -z "$CC"; then | 
 | 1980 |   # Extract the first word of "cc", so it can be a program name with args. | 
 | 1981 | set dummy cc; ac_word=$2 | 
 | 1982 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 1983 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 1984 | if test "${ac_cv_prog_CC+set}" = set; then | 
 | 1985 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1986 | else | 
 | 1987 |   if test -n "$CC"; then | 
 | 1988 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 1989 | else | 
 | 1990 |   ac_prog_rejected=no | 
 | 1991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 1992 | for as_dir in $PATH | 
 | 1993 | do | 
 | 1994 |   IFS=$as_save_IFS | 
 | 1995 |   test -z "$as_dir" && as_dir=. | 
 | 1996 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 1997 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 1998 |     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 
 | 1999 |        ac_prog_rejected=yes | 
 | 2000 |        continue | 
 | 2001 |      fi | 
 | 2002 |     ac_cv_prog_CC="cc" | 
 | 2003 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 2004 |     break 2 | 
 | 2005 |   fi | 
 | 2006 | done | 
 | 2007 | done | 
 | 2008 |  | 
 | 2009 | if test $ac_prog_rejected = yes; then | 
 | 2010 |   # We found a bogon in the path, so make sure we never use it. | 
 | 2011 |   set dummy $ac_cv_prog_CC | 
 | 2012 |   shift | 
 | 2013 |   if test $# != 0; then | 
 | 2014 |     # We chose a different compiler from the bogus one. | 
 | 2015 |     # However, it has the same basename, so the bogon will be chosen | 
 | 2016 |     # first if we set CC to just the basename; use the full file name. | 
 | 2017 |     shift | 
 | 2018 |     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | 
 | 2019 |   fi | 
 | 2020 | fi | 
 | 2021 | fi | 
 | 2022 | fi | 
 | 2023 | CC=$ac_cv_prog_CC | 
 | 2024 | if test -n "$CC"; then | 
 | 2025 |   echo "$as_me:$LINENO: result: $CC" >&5 | 
 | 2026 | echo "${ECHO_T}$CC" >&6 | 
 | 2027 | else | 
 | 2028 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 2029 | echo "${ECHO_T}no" >&6 | 
 | 2030 | fi | 
 | 2031 |  | 
 | 2032 | fi | 
 | 2033 | if test -z "$CC"; then | 
 | 2034 |   if test -n "$ac_tool_prefix"; then | 
 | 2035 |   for ac_prog in cl | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2036 |   do | 
 | 2037 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 2038 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
 | 2039 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 2040 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2041 | if test "${ac_cv_prog_CC+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2042 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2043 | else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2044 |   if test -n "$CC"; then | 
 | 2045 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2046 | else | 
 | 2047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 2048 | for as_dir in $PATH | 
 | 2049 | do | 
 | 2050 |   IFS=$as_save_IFS | 
 | 2051 |   test -z "$as_dir" && as_dir=. | 
 | 2052 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 2053 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2054 |     ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2055 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 2056 |     break 2 | 
 | 2057 |   fi | 
 | 2058 | done | 
 | 2059 | done | 
 | 2060 |  | 
 | 2061 | fi | 
 | 2062 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2063 | CC=$ac_cv_prog_CC | 
 | 2064 | if test -n "$CC"; then | 
 | 2065 |   echo "$as_me:$LINENO: result: $CC" >&5 | 
 | 2066 | echo "${ECHO_T}$CC" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2067 | else | 
 | 2068 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 2069 | echo "${ECHO_T}no" >&6 | 
 | 2070 | fi | 
 | 2071 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2072 |     test -n "$CC" && break | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2073 |   done | 
 | 2074 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2075 | if test -z "$CC"; then | 
 | 2076 |   ac_ct_CC=$CC | 
 | 2077 |   for ac_prog in cl | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2078 | do | 
 | 2079 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 2080 | set dummy $ac_prog; ac_word=$2 | 
 | 2081 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 2082 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2083 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2084 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2085 | else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2086 |   if test -n "$ac_ct_CC"; then | 
 | 2087 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2088 | else | 
 | 2089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 2090 | for as_dir in $PATH | 
 | 2091 | do | 
 | 2092 |   IFS=$as_save_IFS | 
 | 2093 |   test -z "$as_dir" && as_dir=. | 
 | 2094 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 2095 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2096 |     ac_cv_prog_ac_ct_CC="$ac_prog" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2097 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 2098 |     break 2 | 
 | 2099 |   fi | 
 | 2100 | done | 
 | 2101 | done | 
 | 2102 |  | 
 | 2103 | fi | 
 | 2104 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2105 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 2106 | if test -n "$ac_ct_CC"; then | 
 | 2107 |   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | 
 | 2108 | echo "${ECHO_T}$ac_ct_CC" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2109 | else | 
 | 2110 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 2111 | echo "${ECHO_T}no" >&6 | 
 | 2112 | fi | 
 | 2113 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2114 |   test -n "$ac_ct_CC" && break | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2115 | done | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2116 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2117 |   CC=$ac_ct_CC | 
 | 2118 | fi | 
 | 2119 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2120 | fi | 
 | 2121 |  | 
 | 2122 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2123 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | 
 | 2124 | See \`config.log' for more details." >&5 | 
 | 2125 | echo "$as_me: error: no acceptable C compiler found in \$PATH | 
 | 2126 | See \`config.log' for more details." >&2;} | 
 | 2127 |    { (exit 1); exit 1; }; } | 
 | 2128 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2129 | # Provide some information about the compiler. | 
 | 2130 | echo "$as_me:$LINENO:" \ | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2131 |      "checking for C compiler version" >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2132 | ac_compiler=`set X $ac_compile; echo $2` | 
 | 2133 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | 
 | 2134 |   (eval $ac_compiler --version </dev/null >&5) 2>&5 | 
 | 2135 |   ac_status=$? | 
 | 2136 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2137 |   (exit $ac_status); } | 
 | 2138 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | 
 | 2139 |   (eval $ac_compiler -v </dev/null >&5) 2>&5 | 
 | 2140 |   ac_status=$? | 
 | 2141 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2142 |   (exit $ac_status); } | 
 | 2143 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | 
 | 2144 |   (eval $ac_compiler -V </dev/null >&5) 2>&5 | 
 | 2145 |   ac_status=$? | 
 | 2146 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2147 |   (exit $ac_status); } | 
 | 2148 |  | 
 | 2149 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2150 | /* confdefs.h.  */ | 
 | 2151 | _ACEOF | 
 | 2152 | cat confdefs.h >>conftest.$ac_ext | 
 | 2153 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2154 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2155 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2156 | int | 
 | 2157 | main () | 
 | 2158 | { | 
 | 2159 |  | 
 | 2160 |   ; | 
 | 2161 |   return 0; | 
 | 2162 | } | 
 | 2163 | _ACEOF | 
 | 2164 | ac_clean_files_save=$ac_clean_files | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2165 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2166 | # Try to create an executable without -o first, disregard a.out. | 
 | 2167 | # It will help us diagnose broken compilers, and finding out an intuition | 
 | 2168 | # of exeext. | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2169 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | 
 | 2170 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2171 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 
 | 2172 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | 
 | 2173 |   (eval $ac_link_default) 2>&5 | 
 | 2174 |   ac_status=$? | 
 | 2175 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2176 |   (exit $ac_status); }; then | 
 | 2177 |   # Find the output, starting from the most likely.  This scheme is | 
 | 2178 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | 
 | 2179 | # resort. | 
 | 2180 |  | 
 | 2181 | # Be careful to initialize this variable, since it used to be cached. | 
 | 2182 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | 
 | 2183 | ac_cv_exeext= | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2184 | # b.out is created by i960 compilers. | 
 | 2185 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | 
 | 2186 | do | 
 | 2187 |   test -f "$ac_file" || continue | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 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 | *.o | *.obj ) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2190 | 	;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2191 |     conftest.$ac_ext ) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2192 | 	# This is the source file. | 
 | 2193 | 	;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2194 |     [ab].out ) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2195 | 	# We found the default executable, but exeext='' is most | 
 | 2196 | 	# certainly right. | 
 | 2197 | 	break;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2198 |     *.* ) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2199 | 	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
 | 2200 | 	# FIXME: I believe we export ac_cv_exeext for Libtool, | 
 | 2201 | 	# but it would be cool to find out if it's true.  Does anybody | 
 | 2202 | 	# maintain Libtool? --akim. | 
 | 2203 | 	export ac_cv_exeext | 
 | 2204 | 	break;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2205 |     * ) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2206 | 	break;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2207 |   esac | 
 | 2208 | done | 
 | 2209 | else | 
 | 2210 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2211 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2212 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2213 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2214 | See \`config.log' for more details." >&5 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2215 | echo "$as_me: error: C compiler cannot create executables | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2216 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2217 |    { (exit 77); exit 77; }; } | 
 | 2218 | fi | 
 | 2219 |  | 
 | 2220 | ac_exeext=$ac_cv_exeext | 
 | 2221 | echo "$as_me:$LINENO: result: $ac_file" >&5 | 
 | 2222 | echo "${ECHO_T}$ac_file" >&6 | 
 | 2223 |  | 
 | 2224 | # Check the compiler produces executables we can run.  If not, either | 
 | 2225 | # the compiler is broken, or we cross compile. | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2226 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | 
 | 2227 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2228 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | 
 | 2229 | # If not cross compiling, check that we can run a simple program. | 
 | 2230 | if test "$cross_compiling" != yes; then | 
 | 2231 |   if { ac_try='./$ac_file' | 
 | 2232 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2233 |   (eval $ac_try) 2>&5 | 
 | 2234 |   ac_status=$? | 
 | 2235 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2236 |   (exit $ac_status); }; }; then | 
 | 2237 |     cross_compiling=no | 
 | 2238 |   else | 
 | 2239 |     if test "$cross_compiling" = maybe; then | 
 | 2240 | 	cross_compiling=yes | 
 | 2241 |     else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2242 | 	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2243 | If you meant to cross compile, use \`--host'. | 
 | 2244 | See \`config.log' for more details." >&5 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2245 | echo "$as_me: error: cannot run C compiled programs. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2246 | If you meant to cross compile, use \`--host'. | 
 | 2247 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2248 |    { (exit 1); exit 1; }; } | 
 | 2249 |     fi | 
 | 2250 |   fi | 
 | 2251 | fi | 
 | 2252 | echo "$as_me:$LINENO: result: yes" >&5 | 
 | 2253 | echo "${ECHO_T}yes" >&6 | 
 | 2254 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2255 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2256 | ac_clean_files=$ac_clean_files_save | 
 | 2257 | # Check the compiler produces executables we can run.  If not, either | 
 | 2258 | # the compiler is broken, or we cross compile. | 
 | 2259 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | 
 | 2260 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | 
 | 2261 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | 
 | 2262 | echo "${ECHO_T}$cross_compiling" >&6 | 
 | 2263 |  | 
 | 2264 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | 
 | 2265 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | 
 | 2266 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 2267 |   (eval $ac_link) 2>&5 | 
 | 2268 |   ac_status=$? | 
 | 2269 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2270 |   (exit $ac_status); }; then | 
 | 2271 |   # If both `conftest.exe' and `conftest' are `present' (well, observable) | 
 | 2272 | # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will | 
 | 2273 | # work properly (i.e., refer to `conftest.exe'), while it won't with | 
 | 2274 | # `rm'. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2275 | for ac_file in conftest.exe conftest conftest.*; do | 
 | 2276 |   test -f "$ac_file" || continue | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2277 |   case $ac_file in | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2278 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2279 |     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2280 | 	  export ac_cv_exeext | 
 | 2281 | 	  break;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2282 |     * ) break;; | 
 | 2283 |   esac | 
 | 2284 | done | 
 | 2285 | else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2286 |   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | 
 | 2287 | See \`config.log' for more details." >&5 | 
 | 2288 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | 
 | 2289 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2290 |    { (exit 1); exit 1; }; } | 
 | 2291 | fi | 
 | 2292 |  | 
 | 2293 | rm -f conftest$ac_cv_exeext | 
 | 2294 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | 
 | 2295 | echo "${ECHO_T}$ac_cv_exeext" >&6 | 
 | 2296 |  | 
 | 2297 | rm -f conftest.$ac_ext | 
 | 2298 | EXEEXT=$ac_cv_exeext | 
 | 2299 | ac_exeext=$EXEEXT | 
 | 2300 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | 
 | 2301 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | 
 | 2302 | if test "${ac_cv_objext+set}" = set; then | 
 | 2303 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2304 | else | 
 | 2305 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2306 | /* confdefs.h.  */ | 
 | 2307 | _ACEOF | 
 | 2308 | cat confdefs.h >>conftest.$ac_ext | 
 | 2309 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2310 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2311 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2312 | int | 
 | 2313 | main () | 
 | 2314 | { | 
 | 2315 |  | 
 | 2316 |   ; | 
 | 2317 |   return 0; | 
 | 2318 | } | 
 | 2319 | _ACEOF | 
 | 2320 | rm -f conftest.o conftest.obj | 
 | 2321 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 2322 |   (eval $ac_compile) 2>&5 | 
 | 2323 |   ac_status=$? | 
 | 2324 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2325 |   (exit $ac_status); }; then | 
 | 2326 |   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | 
 | 2327 |   case $ac_file in | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2328 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2329 |     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 
 | 2330 |        break;; | 
 | 2331 |   esac | 
 | 2332 | done | 
 | 2333 | else | 
 | 2334 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2335 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2336 |  | 
 | 2337 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | 
 | 2338 | See \`config.log' for more details." >&5 | 
 | 2339 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | 
 | 2340 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2341 |    { (exit 1); exit 1; }; } | 
 | 2342 | fi | 
 | 2343 |  | 
 | 2344 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 
 | 2345 | fi | 
 | 2346 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | 
 | 2347 | echo "${ECHO_T}$ac_cv_objext" >&6 | 
 | 2348 | OBJEXT=$ac_cv_objext | 
 | 2349 | ac_objext=$OBJEXT | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2350 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | 
 | 2351 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | 
 | 2352 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2353 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2354 | else | 
 | 2355 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2356 | /* confdefs.h.  */ | 
 | 2357 | _ACEOF | 
 | 2358 | cat confdefs.h >>conftest.$ac_ext | 
 | 2359 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2360 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2361 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2362 | int | 
 | 2363 | main () | 
 | 2364 | { | 
 | 2365 | #ifndef __GNUC__ | 
 | 2366 |        choke me | 
 | 2367 | #endif | 
 | 2368 |  | 
 | 2369 |   ; | 
 | 2370 |   return 0; | 
 | 2371 | } | 
 | 2372 | _ACEOF | 
 | 2373 | rm -f conftest.$ac_objext | 
 | 2374 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2375 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2376 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2377 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2378 |   rm -f conftest.er1 | 
 | 2379 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2380 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2381 |   (exit $ac_status); } && | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2382 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2383 | 			 || test ! -s conftest.err' | 
 | 2384 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2385 |   (eval $ac_try) 2>&5 | 
 | 2386 |   ac_status=$? | 
 | 2387 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2388 |   (exit $ac_status); }; } && | 
 | 2389 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2390 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2391 |   (eval $ac_try) 2>&5 | 
 | 2392 |   ac_status=$? | 
 | 2393 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2394 |   (exit $ac_status); }; }; then | 
 | 2395 |   ac_compiler_gnu=yes | 
 | 2396 | else | 
 | 2397 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2398 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2399 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2400 | ac_compiler_gnu=no | 
 | 2401 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2402 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2403 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2404 |  | 
 | 2405 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2406 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | 
 | 2407 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | 
 | 2408 | GCC=`test $ac_compiler_gnu = yes && echo yes` | 
 | 2409 | ac_test_CFLAGS=${CFLAGS+set} | 
 | 2410 | ac_save_CFLAGS=$CFLAGS | 
 | 2411 | CFLAGS="-g" | 
 | 2412 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | 
 | 2413 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | 
 | 2414 | if test "${ac_cv_prog_cc_g+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2415 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2416 | else | 
 | 2417 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2418 | /* confdefs.h.  */ | 
 | 2419 | _ACEOF | 
 | 2420 | cat confdefs.h >>conftest.$ac_ext | 
 | 2421 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2422 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2423 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2424 | int | 
 | 2425 | main () | 
 | 2426 | { | 
 | 2427 |  | 
 | 2428 |   ; | 
 | 2429 |   return 0; | 
 | 2430 | } | 
 | 2431 | _ACEOF | 
 | 2432 | rm -f conftest.$ac_objext | 
 | 2433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2434 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2435 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2436 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2437 |   rm -f conftest.er1 | 
 | 2438 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2439 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2440 |   (exit $ac_status); } && | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2441 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2442 | 			 || test ! -s conftest.err' | 
 | 2443 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2444 |   (eval $ac_try) 2>&5 | 
 | 2445 |   ac_status=$? | 
 | 2446 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2447 |   (exit $ac_status); }; } && | 
 | 2448 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2449 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2450 |   (eval $ac_try) 2>&5 | 
 | 2451 |   ac_status=$? | 
 | 2452 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2453 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2454 |   ac_cv_prog_cc_g=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2455 | else | 
 | 2456 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2457 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2458 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2459 | ac_cv_prog_cc_g=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2460 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2461 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2462 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2463 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | 
 | 2464 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | 
 | 2465 | if test "$ac_test_CFLAGS" = set; then | 
 | 2466 |   CFLAGS=$ac_save_CFLAGS | 
 | 2467 | elif test $ac_cv_prog_cc_g = yes; then | 
 | 2468 |   if test "$GCC" = yes; then | 
 | 2469 |     CFLAGS="-g -O2" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2470 |   else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2471 |     CFLAGS="-g" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2472 |   fi | 
 | 2473 | else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2474 |   if test "$GCC" = yes; then | 
 | 2475 |     CFLAGS="-O2" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2476 |   else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2477 |     CFLAGS= | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2478 |   fi | 
 | 2479 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2480 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | 
 | 2481 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | 
 | 2482 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | 
 | 2483 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2484 | else | 
 | 2485 |   ac_cv_prog_cc_stdc=no | 
 | 2486 | ac_save_CC=$CC | 
 | 2487 | cat >conftest.$ac_ext <<_ACEOF | 
 | 2488 | /* confdefs.h.  */ | 
 | 2489 | _ACEOF | 
 | 2490 | cat confdefs.h >>conftest.$ac_ext | 
 | 2491 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2492 | /* end confdefs.h.  */ | 
 | 2493 | #include <stdarg.h> | 
 | 2494 | #include <stdio.h> | 
 | 2495 | #include <sys/types.h> | 
 | 2496 | #include <sys/stat.h> | 
 | 2497 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
 | 2498 | struct buf { int x; }; | 
 | 2499 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
 | 2500 | static char *e (p, i) | 
 | 2501 |      char **p; | 
 | 2502 |      int i; | 
 | 2503 | { | 
 | 2504 |   return p[i]; | 
 | 2505 | } | 
 | 2506 | static char *f (char * (*g) (char **, int), char **p, ...) | 
 | 2507 | { | 
 | 2508 |   char *s; | 
 | 2509 |   va_list v; | 
 | 2510 |   va_start (v,p); | 
 | 2511 |   s = g (p, va_arg (v,int)); | 
 | 2512 |   va_end (v); | 
 | 2513 |   return s; | 
 | 2514 | } | 
 | 2515 |  | 
 | 2516 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
 | 2517 |    function prototypes and stuff, but not '\xHH' hex character constants. | 
 | 2518 |    These don't provoke an error unfortunately, instead are silently treated | 
 | 2519 |    as 'x'.  The following induces an error, until -std1 is added to get | 
 | 2520 |    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
 | 2521 |    array size at least.  It's necessary to write '\x00'==0 to get something | 
 | 2522 |    that's true only with -std1.  */ | 
 | 2523 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
 | 2524 |  | 
 | 2525 | int test (int i, double x); | 
 | 2526 | struct s1 {int (*f) (int a);}; | 
 | 2527 | struct s2 {int (*f) (double a);}; | 
 | 2528 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
 | 2529 | int argc; | 
 | 2530 | char **argv; | 
 | 2531 | int | 
 | 2532 | main () | 
 | 2533 | { | 
 | 2534 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
 | 2535 |   ; | 
 | 2536 |   return 0; | 
 | 2537 | } | 
 | 2538 | _ACEOF | 
 | 2539 | # Don't try gcc -ansi; that turns off useful extensions and | 
 | 2540 | # breaks some systems' header files. | 
 | 2541 | # AIX			-qlanglvl=ansi | 
 | 2542 | # Ultrix and OSF/1	-std1 | 
 | 2543 | # HP-UX 10.20 and later	-Ae | 
 | 2544 | # HP-UX older versions	-Aa -D_HPUX_SOURCE | 
 | 2545 | # SVR4			-Xc -D__EXTENSIONS__ | 
 | 2546 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
 | 2547 | do | 
 | 2548 |   CC="$ac_save_CC $ac_arg" | 
 | 2549 |   rm -f conftest.$ac_objext | 
 | 2550 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 2551 |   (eval $ac_compile) 2>conftest.er1 | 
 | 2552 |   ac_status=$? | 
 | 2553 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2554 |   rm -f conftest.er1 | 
 | 2555 |   cat conftest.err >&5 | 
 | 2556 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2557 |   (exit $ac_status); } && | 
 | 2558 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 2559 | 			 || test ! -s conftest.err' | 
 | 2560 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2561 |   (eval $ac_try) 2>&5 | 
 | 2562 |   ac_status=$? | 
 | 2563 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2564 |   (exit $ac_status); }; } && | 
 | 2565 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 2566 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2567 |   (eval $ac_try) 2>&5 | 
 | 2568 |   ac_status=$? | 
 | 2569 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2570 |   (exit $ac_status); }; }; then | 
 | 2571 |   ac_cv_prog_cc_stdc=$ac_arg | 
 | 2572 | break | 
 | 2573 | else | 
 | 2574 |   echo "$as_me: failed program was:" >&5 | 
 | 2575 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2576 |  | 
 | 2577 | fi | 
 | 2578 | rm -f conftest.err conftest.$ac_objext | 
 | 2579 | done | 
 | 2580 | rm -f conftest.$ac_ext conftest.$ac_objext | 
 | 2581 | CC=$ac_save_CC | 
 | 2582 |  | 
 | 2583 | fi | 
 | 2584 |  | 
 | 2585 | case "x$ac_cv_prog_cc_stdc" in | 
 | 2586 |   x|xno) | 
 | 2587 |     echo "$as_me:$LINENO: result: none needed" >&5 | 
 | 2588 | echo "${ECHO_T}none needed" >&6 ;; | 
 | 2589 |   *) | 
 | 2590 |     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | 
 | 2591 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | 
 | 2592 |     CC="$CC $ac_cv_prog_cc_stdc" ;; | 
 | 2593 | esac | 
 | 2594 |  | 
 | 2595 | # Some people use a C++ compiler to compile C.  Since we use `exit', | 
 | 2596 | # in C++ we need to declare it.  In case someone uses the same compiler | 
 | 2597 | # for both compiling C and C++ we need to have the C++ compiler decide | 
 | 2598 | # the declaration of exit, since it's the most demanding environment. | 
 | 2599 | cat >conftest.$ac_ext <<_ACEOF | 
 | 2600 | #ifndef __cplusplus | 
 | 2601 |   choke me | 
 | 2602 | #endif | 
 | 2603 | _ACEOF | 
 | 2604 | rm -f conftest.$ac_objext | 
 | 2605 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 2606 |   (eval $ac_compile) 2>conftest.er1 | 
 | 2607 |   ac_status=$? | 
 | 2608 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2609 |   rm -f conftest.er1 | 
 | 2610 |   cat conftest.err >&5 | 
 | 2611 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2612 |   (exit $ac_status); } && | 
 | 2613 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 2614 | 			 || test ! -s conftest.err' | 
 | 2615 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2616 |   (eval $ac_try) 2>&5 | 
 | 2617 |   ac_status=$? | 
 | 2618 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2619 |   (exit $ac_status); }; } && | 
 | 2620 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 2621 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2622 |   (eval $ac_try) 2>&5 | 
 | 2623 |   ac_status=$? | 
 | 2624 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2625 |   (exit $ac_status); }; }; then | 
 | 2626 |   for ac_declaration in \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2627 |    '' \ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2628 |    'extern "C" void std::exit (int) throw (); using std::exit;' \ | 
 | 2629 |    'extern "C" void std::exit (int); using std::exit;' \ | 
 | 2630 |    'extern "C" void exit (int) throw ();' \ | 
 | 2631 |    'extern "C" void exit (int);' \ | 
 | 2632 |    'void exit (int);' | 
 | 2633 | do | 
 | 2634 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2635 | /* confdefs.h.  */ | 
 | 2636 | _ACEOF | 
 | 2637 | cat confdefs.h >>conftest.$ac_ext | 
 | 2638 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2639 | /* end confdefs.h.  */ | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 2640 | $ac_declaration | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2641 | #include <stdlib.h> | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2642 | int | 
 | 2643 | main () | 
 | 2644 | { | 
 | 2645 | exit (42); | 
 | 2646 |   ; | 
 | 2647 |   return 0; | 
 | 2648 | } | 
 | 2649 | _ACEOF | 
 | 2650 | rm -f conftest.$ac_objext | 
 | 2651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2652 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2653 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2654 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2655 |   rm -f conftest.er1 | 
 | 2656 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2657 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2658 |   (exit $ac_status); } && | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2659 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2660 | 			 || test ! -s conftest.err' | 
 | 2661 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2662 |   (eval $ac_try) 2>&5 | 
 | 2663 |   ac_status=$? | 
 | 2664 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2665 |   (exit $ac_status); }; } && | 
 | 2666 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2667 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2668 |   (eval $ac_try) 2>&5 | 
 | 2669 |   ac_status=$? | 
 | 2670 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2671 |   (exit $ac_status); }; }; then | 
 | 2672 |   : | 
 | 2673 | else | 
 | 2674 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2675 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2676 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2677 | continue | 
 | 2678 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2679 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2680 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2681 | /* confdefs.h.  */ | 
 | 2682 | _ACEOF | 
 | 2683 | cat confdefs.h >>conftest.$ac_ext | 
 | 2684 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2685 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2686 | $ac_declaration | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2687 | int | 
 | 2688 | main () | 
 | 2689 | { | 
 | 2690 | exit (42); | 
 | 2691 |   ; | 
 | 2692 |   return 0; | 
 | 2693 | } | 
 | 2694 | _ACEOF | 
 | 2695 | rm -f conftest.$ac_objext | 
 | 2696 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2697 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2698 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2699 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2700 |   rm -f conftest.er1 | 
 | 2701 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2702 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2703 |   (exit $ac_status); } && | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2704 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2705 | 			 || test ! -s conftest.err' | 
 | 2706 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2707 |   (eval $ac_try) 2>&5 | 
 | 2708 |   ac_status=$? | 
 | 2709 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2710 |   (exit $ac_status); }; } && | 
 | 2711 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2712 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2713 |   (eval $ac_try) 2>&5 | 
 | 2714 |   ac_status=$? | 
 | 2715 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2716 |   (exit $ac_status); }; }; then | 
 | 2717 |   break | 
 | 2718 | else | 
 | 2719 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2720 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2721 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2722 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2723 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2724 | done | 
 | 2725 | rm -f conftest* | 
 | 2726 | if test -n "$ac_declaration"; then | 
 | 2727 |   echo '#ifdef __cplusplus' >>confdefs.h | 
 | 2728 |   echo $ac_declaration      >>confdefs.h | 
 | 2729 |   echo '#endif'             >>confdefs.h | 
 | 2730 | fi | 
 | 2731 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2732 | else | 
 | 2733 |   echo "$as_me: failed program was:" >&5 | 
 | 2734 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2735 |  | 
 | 2736 | fi | 
 | 2737 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2738 | ac_ext=c | 
 | 2739 | ac_cpp='$CPP $CPPFLAGS' | 
 | 2740 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 2741 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 2742 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 2743 |  | 
 | 2744 |  | 
 | 2745 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | 
 | 2746 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | 
 | 2747 | if test "${ac_cv_c_bigendian+set}" = set; then | 
 | 2748 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2749 | else | 
 | 2750 |   # See if sys/param.h defines the BYTE_ORDER macro. | 
 | 2751 | cat >conftest.$ac_ext <<_ACEOF | 
 | 2752 | /* confdefs.h.  */ | 
 | 2753 | _ACEOF | 
 | 2754 | cat confdefs.h >>conftest.$ac_ext | 
 | 2755 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2756 | /* end confdefs.h.  */ | 
 | 2757 | #include <sys/types.h> | 
 | 2758 | #include <sys/param.h> | 
 | 2759 |  | 
 | 2760 | int | 
 | 2761 | main () | 
 | 2762 | { | 
 | 2763 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | 
 | 2764 |  bogus endian macros | 
 | 2765 | #endif | 
 | 2766 |  | 
 | 2767 |   ; | 
 | 2768 |   return 0; | 
 | 2769 | } | 
 | 2770 | _ACEOF | 
 | 2771 | rm -f conftest.$ac_objext | 
 | 2772 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 2773 |   (eval $ac_compile) 2>conftest.er1 | 
 | 2774 |   ac_status=$? | 
 | 2775 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2776 |   rm -f conftest.er1 | 
 | 2777 |   cat conftest.err >&5 | 
 | 2778 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2779 |   (exit $ac_status); } && | 
 | 2780 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 2781 | 			 || test ! -s conftest.err' | 
 | 2782 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2783 |   (eval $ac_try) 2>&5 | 
 | 2784 |   ac_status=$? | 
 | 2785 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2786 |   (exit $ac_status); }; } && | 
 | 2787 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 2788 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2789 |   (eval $ac_try) 2>&5 | 
 | 2790 |   ac_status=$? | 
 | 2791 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2792 |   (exit $ac_status); }; }; then | 
 | 2793 |   # It does; now see whether it defined to BIG_ENDIAN or not. | 
 | 2794 | cat >conftest.$ac_ext <<_ACEOF | 
 | 2795 | /* confdefs.h.  */ | 
 | 2796 | _ACEOF | 
 | 2797 | cat confdefs.h >>conftest.$ac_ext | 
 | 2798 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2799 | /* end confdefs.h.  */ | 
 | 2800 | #include <sys/types.h> | 
 | 2801 | #include <sys/param.h> | 
 | 2802 |  | 
 | 2803 | int | 
 | 2804 | main () | 
 | 2805 | { | 
 | 2806 | #if BYTE_ORDER != BIG_ENDIAN | 
 | 2807 |  not big endian | 
 | 2808 | #endif | 
 | 2809 |  | 
 | 2810 |   ; | 
 | 2811 |   return 0; | 
 | 2812 | } | 
 | 2813 | _ACEOF | 
 | 2814 | rm -f conftest.$ac_objext | 
 | 2815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 2816 |   (eval $ac_compile) 2>conftest.er1 | 
 | 2817 |   ac_status=$? | 
 | 2818 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2819 |   rm -f conftest.er1 | 
 | 2820 |   cat conftest.err >&5 | 
 | 2821 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2822 |   (exit $ac_status); } && | 
 | 2823 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 2824 | 			 || test ! -s conftest.err' | 
 | 2825 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2826 |   (eval $ac_try) 2>&5 | 
 | 2827 |   ac_status=$? | 
 | 2828 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2829 |   (exit $ac_status); }; } && | 
 | 2830 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 2831 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2832 |   (eval $ac_try) 2>&5 | 
 | 2833 |   ac_status=$? | 
 | 2834 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2835 |   (exit $ac_status); }; }; then | 
 | 2836 |   ac_cv_c_bigendian=yes | 
 | 2837 | else | 
 | 2838 |   echo "$as_me: failed program was:" >&5 | 
 | 2839 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2840 |  | 
 | 2841 | ac_cv_c_bigendian=no | 
 | 2842 | fi | 
 | 2843 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2844 | else | 
 | 2845 |   echo "$as_me: failed program was:" >&5 | 
 | 2846 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2847 |  | 
 | 2848 | # It does not; compile a test program. | 
 | 2849 | if test "$cross_compiling" = yes; then | 
 | 2850 |   # try to guess the endianness by grepping values into an object file | 
 | 2851 |   ac_cv_c_bigendian=unknown | 
 | 2852 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 2853 | /* confdefs.h.  */ | 
 | 2854 | _ACEOF | 
 | 2855 | cat confdefs.h >>conftest.$ac_ext | 
 | 2856 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2857 | /* end confdefs.h.  */ | 
 | 2858 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | 
 | 2859 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | 
 | 2860 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | 
 | 2861 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | 
 | 2862 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | 
 | 2863 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | 
 | 2864 | int | 
 | 2865 | main () | 
 | 2866 | { | 
 | 2867 |  _ascii (); _ebcdic (); | 
 | 2868 |   ; | 
 | 2869 |   return 0; | 
 | 2870 | } | 
 | 2871 | _ACEOF | 
 | 2872 | rm -f conftest.$ac_objext | 
 | 2873 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 2874 |   (eval $ac_compile) 2>conftest.er1 | 
 | 2875 |   ac_status=$? | 
 | 2876 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2877 |   rm -f conftest.er1 | 
 | 2878 |   cat conftest.err >&5 | 
 | 2879 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2880 |   (exit $ac_status); } && | 
 | 2881 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 2882 | 			 || test ! -s conftest.err' | 
 | 2883 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2884 |   (eval $ac_try) 2>&5 | 
 | 2885 |   ac_status=$? | 
 | 2886 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2887 |   (exit $ac_status); }; } && | 
 | 2888 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 2889 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2890 |   (eval $ac_try) 2>&5 | 
 | 2891 |   ac_status=$? | 
 | 2892 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2893 |   (exit $ac_status); }; }; then | 
 | 2894 |   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | 
 | 2895 |   ac_cv_c_bigendian=yes | 
 | 2896 | fi | 
 | 2897 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | 
 | 2898 |   if test "$ac_cv_c_bigendian" = unknown; then | 
 | 2899 |     ac_cv_c_bigendian=no | 
 | 2900 |   else | 
 | 2901 |     # finding both strings is unlikely to happen, but who knows? | 
 | 2902 |     ac_cv_c_bigendian=unknown | 
 | 2903 |   fi | 
 | 2904 | fi | 
 | 2905 | else | 
 | 2906 |   echo "$as_me: failed program was:" >&5 | 
 | 2907 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2908 |  | 
 | 2909 | fi | 
 | 2910 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2911 | else | 
 | 2912 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 2913 | /* confdefs.h.  */ | 
 | 2914 | _ACEOF | 
 | 2915 | cat confdefs.h >>conftest.$ac_ext | 
 | 2916 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2917 | /* end confdefs.h.  */ | 
 | 2918 | int | 
 | 2919 | main () | 
 | 2920 | { | 
 | 2921 |   /* Are we little or big endian?  From Harbison&Steele.  */ | 
 | 2922 |   union | 
 | 2923 |   { | 
 | 2924 |     long l; | 
 | 2925 |     char c[sizeof (long)]; | 
 | 2926 |   } u; | 
 | 2927 |   u.l = 1; | 
 | 2928 |   exit (u.c[sizeof (long) - 1] == 1); | 
 | 2929 | } | 
 | 2930 | _ACEOF | 
 | 2931 | rm -f conftest$ac_exeext | 
 | 2932 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 2933 |   (eval $ac_link) 2>&5 | 
 | 2934 |   ac_status=$? | 
 | 2935 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2936 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
 | 2937 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2938 |   (eval $ac_try) 2>&5 | 
 | 2939 |   ac_status=$? | 
 | 2940 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2941 |   (exit $ac_status); }; }; then | 
 | 2942 |   ac_cv_c_bigendian=no | 
 | 2943 | else | 
 | 2944 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 2945 | echo "$as_me: failed program was:" >&5 | 
 | 2946 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2947 |  | 
 | 2948 | ( exit $ac_status ) | 
 | 2949 | ac_cv_c_bigendian=yes | 
 | 2950 | fi | 
 | 2951 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
 | 2952 | fi | 
 | 2953 | fi | 
 | 2954 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2955 | fi | 
 | 2956 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | 
 | 2957 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | 
 | 2958 | case $ac_cv_c_bigendian in | 
 | 2959 |   yes) | 
 | 2960 |     ENDIAN=big | 
 | 2961 |  ;; | 
 | 2962 |   no) | 
 | 2963 |     ENDIAN=little | 
 | 2964 |  ;; | 
 | 2965 |   *) | 
 | 2966 |     { { echo "$as_me:$LINENO: error: unknown endianness | 
 | 2967 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | 
 | 2968 | echo "$as_me: error: unknown endianness | 
 | 2969 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | 
 | 2970 |    { (exit 1); exit 1; }; } ;; | 
 | 2971 | esac | 
 | 2972 |  | 
 | 2973 |  | 
| Reid Spencer | 4ebf331 | 2006-04-08 01:41:26 +0000 | [diff] [blame] | 2974 | if test -d "CVS" -o -d "${srcdir}/CVS"; then | 
| Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 2975 |   cvsbuild="yes" | 
 | 2976 |   optimize="no" | 
| Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 2977 |   CVSBUILD=CVSBUILD=1 | 
 | 2978 |  | 
 | 2979 | else | 
 | 2980 |   cvsbuild="no" | 
 | 2981 |   optimize="yes" | 
| Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 2982 | fi | 
 | 2983 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2984 |  | 
 | 2985 | # Check whether --enable-optimized or --disable-optimized was given. | 
 | 2986 | if test "${enable_optimized+set}" = set; then | 
 | 2987 |   enableval="$enable_optimized" | 
 | 2988 |  | 
 | 2989 | else | 
| Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 2990 |   enableval=$optimize | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2991 | fi; | 
 | 2992 | if test ${enableval} = "no" ; then | 
 | 2993 |   ENABLE_OPTIMIZED= | 
 | 2994 |  | 
 | 2995 | else | 
 | 2996 |   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 | 
 | 2997 |  | 
 | 2998 | fi | 
 | 2999 |  | 
| Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 3000 | # Check whether --enable-assertions or --disable-assertions was given. | 
 | 3001 | if test "${enable_assertions+set}" = set; then | 
 | 3002 |   enableval="$enable_assertions" | 
 | 3003 |  | 
 | 3004 | else | 
| Reid Spencer | c28ccd8 | 2006-04-09 20:42:14 +0000 | [diff] [blame] | 3005 |   enableval="yes" | 
| Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 3006 | fi; | 
| Reid Spencer | c28ccd8 | 2006-04-09 20:42:14 +0000 | [diff] [blame] | 3007 | if test ${enableval} = "yes" ; then | 
 | 3008 |   DISABLE_ASSERTIONS= | 
| Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 3009 |  | 
 | 3010 | else | 
| Reid Spencer | c28ccd8 | 2006-04-09 20:42:14 +0000 | [diff] [blame] | 3011 |   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 | 
| Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 3012 |  | 
 | 3013 | fi | 
 | 3014 |  | 
| Reid Spencer | 6e96d81 | 2005-12-21 03:31:53 +0000 | [diff] [blame] | 3015 | # Check whether --enable-debug-runtime or --disable-debug-runtime was given. | 
 | 3016 | if test "${enable_debug_runtime+set}" = set; then | 
 | 3017 |   enableval="$enable_debug_runtime" | 
 | 3018 |  | 
 | 3019 | else | 
 | 3020 |   enableval=no | 
 | 3021 | fi; | 
 | 3022 | if test ${enableval} = "no" ; then | 
 | 3023 |   DEBUG_RUNTIME= | 
 | 3024 |  | 
 | 3025 | else | 
 | 3026 |   DEBUG_RUNTIME=DEBUG_RUNTIME=1 | 
 | 3027 |  | 
 | 3028 | fi | 
 | 3029 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3030 | # Check whether --enable-jit or --disable-jit was given. | 
 | 3031 | if test "${enable_jit+set}" = set; then | 
 | 3032 |   enableval="$enable_jit" | 
 | 3033 |  | 
 | 3034 | else | 
 | 3035 |   enableval=default | 
 | 3036 | fi; | 
 | 3037 | if test ${enableval} = "no" | 
 | 3038 | then | 
 | 3039 |   JIT= | 
 | 3040 |  | 
 | 3041 | else | 
| Reid Spencer | efbe40a | 2004-11-25 07:28:19 +0000 | [diff] [blame] | 3042 |   case "$llvm_cv_target_arch" in | 
| Reid Spencer | b195d9d | 2006-03-23 23:21:29 +0000 | [diff] [blame] | 3043 |     x86)     TARGET_HAS_JIT=1 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3044 |  ;; | 
| Reid Spencer | b195d9d | 2006-03-23 23:21:29 +0000 | [diff] [blame] | 3045 |     Sparc)   TARGET_HAS_JIT=1 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3046 |  ;; | 
| Reid Spencer | b195d9d | 2006-03-23 23:21:29 +0000 | [diff] [blame] | 3047 |     PowerPC) TARGET_HAS_JIT=1 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3048 |  ;; | 
| Reid Spencer | b195d9d | 2006-03-23 23:21:29 +0000 | [diff] [blame] | 3049 |     x86_64)  TARGET_HAS_JIT=0 | 
| Reid Spencer | 95ed843 | 2004-12-23 06:22:33 +0000 | [diff] [blame] | 3050 |  ;; | 
| Reid Spencer | b195d9d | 2006-03-23 23:21:29 +0000 | [diff] [blame] | 3051 |     Alpha)   TARGET_HAS_JIT=1 | 
| Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 3052 |  ;; | 
| Reid Spencer | b195d9d | 2006-03-23 23:21:29 +0000 | [diff] [blame] | 3053 |     IA64)    TARGET_HAS_JIT=0 | 
| Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 3054 |  ;; | 
| Reid Spencer | b195d9d | 2006-03-23 23:21:29 +0000 | [diff] [blame] | 3055 |     *)       TARGET_HAS_JIT=0 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3056 |  ;; | 
 | 3057 |   esac | 
 | 3058 | fi | 
 | 3059 |  | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 3060 | # Check whether --enable-doxygen or --disable-doxygen was given. | 
 | 3061 | if test "${enable_doxygen+set}" = set; then | 
 | 3062 |   enableval="$enable_doxygen" | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3063 |  | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 3064 | else | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3065 |   enableval=default | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 3066 | fi; | 
 | 3067 | case "$enableval" in | 
 | 3068 |   yes) ENABLE_DOXYGEN=1 | 
 | 3069 |  ;; | 
 | 3070 |   no)  ENABLE_DOXYGEN=0 | 
 | 3071 |  ;; | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3072 |   default) ENABLE_DOXYGEN=0 | 
 | 3073 |  ;; | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 3074 |   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 | 
 | 3075 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} | 
 | 3076 |    { (exit 1); exit 1; }; } ;; | 
 | 3077 | esac | 
 | 3078 |  | 
| Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 3079 | # Check whether --enable-threads or --disable-threads was given. | 
 | 3080 | if test "${enable_threads+set}" = set; then | 
 | 3081 |   enableval="$enable_threads" | 
 | 3082 |  | 
 | 3083 | else | 
 | 3084 |   enableval=yes | 
 | 3085 | fi; | 
 | 3086 | case "$enableval" in | 
 | 3087 |   yes) ENABLE_THREADS=1 | 
 | 3088 |  ;; | 
 | 3089 |   no)  ENABLE_THREADS=0 | 
 | 3090 |  ;; | 
 | 3091 |   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 | 
 | 3092 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} | 
 | 3093 |    { (exit 1); exit 1; }; } ;; | 
 | 3094 | esac | 
 | 3095 |  | 
 | 3096 | cat >>confdefs.h <<_ACEOF | 
 | 3097 | #define ENABLE_THREADS $ENABLE_THREADS | 
 | 3098 | _ACEOF | 
 | 3099 |  | 
 | 3100 |  | 
| Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 3101 | TARGETS_TO_BUILD="" | 
| Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 3102 | # Check whether --enable-targets or --disable-targets was given. | 
 | 3103 | if test "${enable_targets+set}" = set; then | 
 | 3104 |   enableval="$enable_targets" | 
| Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 3105 |  | 
 | 3106 | else | 
| Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 3107 |   enableval=all | 
| Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 3108 | fi; | 
| Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 3109 | case "$enableval" in | 
| Rafael Espindola | 7bc59bc | 2006-05-14 22:18:28 +0000 | [diff] [blame] | 3110 |   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;; | 
| Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 3111 |   host-only) | 
 | 3112 |     case "$llvm_cv_target_arch" in | 
 | 3113 |       x86)     TARGETS_TO_BUILD="X86" ;; | 
 | 3114 |       x86_64)  TARGETS_TO_BUILD="X86" ;; | 
| Chris Lattner | 7df583e | 2006-04-20 17:01:19 +0000 | [diff] [blame] | 3115 |       Sparc)   TARGETS_TO_BUILD="Sparc" ;; | 
| Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 3116 |       PowerPC) TARGETS_TO_BUILD="PowerPC" ;; | 
 | 3117 |       Alpha)   TARGETS_TO_BUILD="Alpha" ;; | 
 | 3118 |       IA64)    TARGETS_TO_BUILD="IA64" ;; | 
 | 3119 |       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 | 
| Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 3120 | echo "$as_me: error: Can not set target to build" >&2;} | 
 | 3121 |    { (exit 1); exit 1; }; } ;; | 
| Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 3122 |     esac | 
 | 3123 |     ;; | 
 | 3124 |   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do | 
 | 3125 |       case "$a_target" in | 
 | 3126 |         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; | 
 | 3127 |         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; | 
| Chris Lattner | 7df583e | 2006-04-20 17:01:19 +0000 | [diff] [blame] | 3128 |         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; | 
| Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 3129 |         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; | 
 | 3130 |         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; | 
 | 3131 |         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;; | 
| Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 3132 |         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 | 
 | 3133 | echo "$as_me: error: Unrecognized target $a_target" >&2;} | 
 | 3134 |    { (exit 1); exit 1; }; } ;; | 
 | 3135 |       esac | 
 | 3136 |   done | 
 | 3137 |   ;; | 
 | 3138 | esac | 
| Reid Spencer | 675f092 | 2005-04-22 17:06:18 +0000 | [diff] [blame] | 3139 | TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" | 
| Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 3140 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD | 
 | 3141 |  | 
 | 3142 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3143 |  | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 3144 | # Check whether --with-llvmgccdir or --without-llvmgccdir was given. | 
 | 3145 | if test "${with_llvmgccdir+set}" = set; then | 
 | 3146 |   withval="$with_llvmgccdir" | 
 | 3147 |  | 
 | 3148 | else | 
 | 3149 |   withval=default | 
 | 3150 | fi; | 
 | 3151 | case "$withval" in | 
 | 3152 |   default) WITH_LLVMGCCDIR=default ;; | 
| Reid Spencer | 0fa145d | 2006-05-21 10:40:20 +0000 | [diff] [blame] | 3153 |   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;; | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 3154 |   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 | 
 | 3155 | echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} | 
 | 3156 |    { (exit 1); exit 1; }; } ;; | 
 | 3157 | esac | 
 | 3158 |  | 
 | 3159 |  | 
| Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 3160 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3161 | ac_ext=c | 
 | 3162 | ac_cpp='$CPP $CPPFLAGS' | 
 | 3163 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 3164 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 3165 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 3166 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | 
 | 3167 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | 
 | 3168 | # On Suns, sometimes $CPP names a directory. | 
 | 3169 | if test -n "$CPP" && test -d "$CPP"; then | 
 | 3170 |   CPP= | 
 | 3171 | fi | 
 | 3172 | if test -z "$CPP"; then | 
 | 3173 |   if test "${ac_cv_prog_CPP+set}" = set; then | 
 | 3174 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3175 | else | 
 | 3176 |       # Double quotes because CPP needs to be expanded | 
 | 3177 |     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
 | 3178 |     do | 
 | 3179 |       ac_preproc_ok=false | 
 | 3180 | for ac_c_preproc_warn_flag in '' yes | 
 | 3181 | do | 
 | 3182 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 3183 |   # with a fresh cross-compiler works. | 
 | 3184 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 3185 |   # <limits.h> exists even on freestanding compilers. | 
 | 3186 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 3187 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 3188 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 3189 | /* confdefs.h.  */ | 
 | 3190 | _ACEOF | 
 | 3191 | cat confdefs.h >>conftest.$ac_ext | 
 | 3192 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3193 | /* end confdefs.h.  */ | 
 | 3194 | #ifdef __STDC__ | 
 | 3195 | # include <limits.h> | 
 | 3196 | #else | 
 | 3197 | # include <assert.h> | 
 | 3198 | #endif | 
 | 3199 | 		     Syntax error | 
 | 3200 | _ACEOF | 
 | 3201 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 3202 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 3203 |   ac_status=$? | 
 | 3204 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 3205 |   rm -f conftest.er1 | 
 | 3206 |   cat conftest.err >&5 | 
 | 3207 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3208 |   (exit $ac_status); } >/dev/null; then | 
 | 3209 |   if test -s conftest.err; then | 
 | 3210 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 3211 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 3212 |   else | 
 | 3213 |     ac_cpp_err= | 
 | 3214 |   fi | 
 | 3215 | else | 
 | 3216 |   ac_cpp_err=yes | 
 | 3217 | fi | 
 | 3218 | if test -z "$ac_cpp_err"; then | 
 | 3219 |   : | 
 | 3220 | else | 
 | 3221 |   echo "$as_me: failed program was:" >&5 | 
 | 3222 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3223 |  | 
 | 3224 |   # Broken: fails on valid input. | 
 | 3225 | continue | 
 | 3226 | fi | 
 | 3227 | rm -f conftest.err conftest.$ac_ext | 
 | 3228 |  | 
 | 3229 |   # OK, works on sane cases.  Now check whether non-existent headers | 
 | 3230 |   # can be detected and how. | 
 | 3231 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 3232 | /* confdefs.h.  */ | 
 | 3233 | _ACEOF | 
 | 3234 | cat confdefs.h >>conftest.$ac_ext | 
 | 3235 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3236 | /* end confdefs.h.  */ | 
 | 3237 | #include <ac_nonexistent.h> | 
 | 3238 | _ACEOF | 
 | 3239 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 3240 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 3241 |   ac_status=$? | 
 | 3242 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 3243 |   rm -f conftest.er1 | 
 | 3244 |   cat conftest.err >&5 | 
 | 3245 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3246 |   (exit $ac_status); } >/dev/null; then | 
 | 3247 |   if test -s conftest.err; then | 
 | 3248 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 3249 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 3250 |   else | 
 | 3251 |     ac_cpp_err= | 
 | 3252 |   fi | 
 | 3253 | else | 
 | 3254 |   ac_cpp_err=yes | 
 | 3255 | fi | 
 | 3256 | if test -z "$ac_cpp_err"; then | 
 | 3257 |   # Broken: success on invalid input. | 
 | 3258 | continue | 
 | 3259 | else | 
 | 3260 |   echo "$as_me: failed program was:" >&5 | 
 | 3261 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3262 |  | 
 | 3263 |   # Passes both tests. | 
 | 3264 | ac_preproc_ok=: | 
 | 3265 | break | 
 | 3266 | fi | 
 | 3267 | rm -f conftest.err conftest.$ac_ext | 
 | 3268 |  | 
 | 3269 | done | 
 | 3270 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
 | 3271 | rm -f conftest.err conftest.$ac_ext | 
 | 3272 | if $ac_preproc_ok; then | 
 | 3273 |   break | 
 | 3274 | fi | 
 | 3275 |  | 
 | 3276 |     done | 
 | 3277 |     ac_cv_prog_CPP=$CPP | 
 | 3278 |  | 
 | 3279 | fi | 
 | 3280 |   CPP=$ac_cv_prog_CPP | 
 | 3281 | else | 
 | 3282 |   ac_cv_prog_CPP=$CPP | 
 | 3283 | fi | 
 | 3284 | echo "$as_me:$LINENO: result: $CPP" >&5 | 
 | 3285 | echo "${ECHO_T}$CPP" >&6 | 
 | 3286 | ac_preproc_ok=false | 
 | 3287 | for ac_c_preproc_warn_flag in '' yes | 
 | 3288 | do | 
 | 3289 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 3290 |   # with a fresh cross-compiler works. | 
 | 3291 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 3292 |   # <limits.h> exists even on freestanding compilers. | 
 | 3293 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 3294 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 3295 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 3296 | /* confdefs.h.  */ | 
 | 3297 | _ACEOF | 
 | 3298 | cat confdefs.h >>conftest.$ac_ext | 
 | 3299 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3300 | /* end confdefs.h.  */ | 
 | 3301 | #ifdef __STDC__ | 
 | 3302 | # include <limits.h> | 
 | 3303 | #else | 
 | 3304 | # include <assert.h> | 
 | 3305 | #endif | 
 | 3306 | 		     Syntax error | 
 | 3307 | _ACEOF | 
 | 3308 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 3309 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 3310 |   ac_status=$? | 
 | 3311 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 3312 |   rm -f conftest.er1 | 
 | 3313 |   cat conftest.err >&5 | 
 | 3314 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3315 |   (exit $ac_status); } >/dev/null; then | 
 | 3316 |   if test -s conftest.err; then | 
 | 3317 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 3318 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 3319 |   else | 
 | 3320 |     ac_cpp_err= | 
 | 3321 |   fi | 
 | 3322 | else | 
 | 3323 |   ac_cpp_err=yes | 
 | 3324 | fi | 
 | 3325 | if test -z "$ac_cpp_err"; then | 
 | 3326 |   : | 
 | 3327 | else | 
 | 3328 |   echo "$as_me: failed program was:" >&5 | 
 | 3329 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3330 |  | 
 | 3331 |   # Broken: fails on valid input. | 
 | 3332 | continue | 
 | 3333 | fi | 
 | 3334 | rm -f conftest.err conftest.$ac_ext | 
 | 3335 |  | 
 | 3336 |   # OK, works on sane cases.  Now check whether non-existent headers | 
 | 3337 |   # can be detected and how. | 
 | 3338 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 3339 | /* confdefs.h.  */ | 
 | 3340 | _ACEOF | 
 | 3341 | cat confdefs.h >>conftest.$ac_ext | 
 | 3342 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3343 | /* end confdefs.h.  */ | 
 | 3344 | #include <ac_nonexistent.h> | 
 | 3345 | _ACEOF | 
 | 3346 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 3347 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 3348 |   ac_status=$? | 
 | 3349 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 3350 |   rm -f conftest.er1 | 
 | 3351 |   cat conftest.err >&5 | 
 | 3352 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3353 |   (exit $ac_status); } >/dev/null; then | 
 | 3354 |   if test -s conftest.err; then | 
 | 3355 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 3356 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 3357 |   else | 
 | 3358 |     ac_cpp_err= | 
 | 3359 |   fi | 
 | 3360 | else | 
 | 3361 |   ac_cpp_err=yes | 
 | 3362 | fi | 
 | 3363 | if test -z "$ac_cpp_err"; then | 
 | 3364 |   # Broken: success on invalid input. | 
 | 3365 | continue | 
 | 3366 | else | 
 | 3367 |   echo "$as_me: failed program was:" >&5 | 
 | 3368 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3369 |  | 
 | 3370 |   # Passes both tests. | 
 | 3371 | ac_preproc_ok=: | 
 | 3372 | break | 
 | 3373 | fi | 
 | 3374 | rm -f conftest.err conftest.$ac_ext | 
 | 3375 |  | 
 | 3376 | done | 
 | 3377 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
 | 3378 | rm -f conftest.err conftest.$ac_ext | 
 | 3379 | if $ac_preproc_ok; then | 
 | 3380 |   : | 
 | 3381 | else | 
 | 3382 |   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | 
 | 3383 | See \`config.log' for more details." >&5 | 
 | 3384 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | 
 | 3385 | See \`config.log' for more details." >&2;} | 
 | 3386 |    { (exit 1); exit 1; }; } | 
 | 3387 | fi | 
 | 3388 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3389 | ac_ext=c | 
 | 3390 | ac_cpp='$CPP $CPPFLAGS' | 
 | 3391 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 3392 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 3393 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 3394 |  | 
 | 3395 | ac_ext=c | 
 | 3396 | ac_cpp='$CPP $CPPFLAGS' | 
 | 3397 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 3398 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 3399 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 3400 | if test -n "$ac_tool_prefix"; then | 
 | 3401 |   for ac_prog in gcc | 
 | 3402 |   do | 
 | 3403 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 3404 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
 | 3405 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 3406 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 3407 | if test "${ac_cv_prog_CC+set}" = set; then | 
 | 3408 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3409 | else | 
 | 3410 |   if test -n "$CC"; then | 
 | 3411 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3412 | else | 
 | 3413 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3414 | for as_dir in $PATH | 
 | 3415 | do | 
 | 3416 |   IFS=$as_save_IFS | 
 | 3417 |   test -z "$as_dir" && as_dir=. | 
 | 3418 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 3419 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 3420 |     ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
 | 3421 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 3422 |     break 2 | 
 | 3423 |   fi | 
 | 3424 | done | 
 | 3425 | done | 
 | 3426 |  | 
 | 3427 | fi | 
 | 3428 | fi | 
 | 3429 | CC=$ac_cv_prog_CC | 
 | 3430 | if test -n "$CC"; then | 
 | 3431 |   echo "$as_me:$LINENO: result: $CC" >&5 | 
 | 3432 | echo "${ECHO_T}$CC" >&6 | 
 | 3433 | else | 
 | 3434 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 3435 | echo "${ECHO_T}no" >&6 | 
 | 3436 | fi | 
 | 3437 |  | 
 | 3438 |     test -n "$CC" && break | 
 | 3439 |   done | 
 | 3440 | fi | 
 | 3441 | if test -z "$CC"; then | 
 | 3442 |   ac_ct_CC=$CC | 
 | 3443 |   for ac_prog in gcc | 
 | 3444 | do | 
 | 3445 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 3446 | set dummy $ac_prog; ac_word=$2 | 
 | 3447 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 3448 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 3449 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | 
 | 3450 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3451 | else | 
 | 3452 |   if test -n "$ac_ct_CC"; then | 
 | 3453 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
 | 3454 | else | 
 | 3455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3456 | for as_dir in $PATH | 
 | 3457 | do | 
 | 3458 |   IFS=$as_save_IFS | 
 | 3459 |   test -z "$as_dir" && as_dir=. | 
 | 3460 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 3461 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 3462 |     ac_cv_prog_ac_ct_CC="$ac_prog" | 
 | 3463 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 3464 |     break 2 | 
 | 3465 |   fi | 
 | 3466 | done | 
 | 3467 | done | 
 | 3468 |  | 
 | 3469 | fi | 
 | 3470 | fi | 
 | 3471 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 3472 | if test -n "$ac_ct_CC"; then | 
 | 3473 |   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | 
 | 3474 | echo "${ECHO_T}$ac_ct_CC" >&6 | 
 | 3475 | else | 
 | 3476 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 3477 | echo "${ECHO_T}no" >&6 | 
 | 3478 | fi | 
 | 3479 |  | 
 | 3480 |   test -n "$ac_ct_CC" && break | 
 | 3481 | done | 
 | 3482 |  | 
 | 3483 |   CC=$ac_ct_CC | 
 | 3484 | fi | 
 | 3485 |  | 
 | 3486 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3487 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | 
 | 3488 | See \`config.log' for more details." >&5 | 
 | 3489 | echo "$as_me: error: no acceptable C compiler found in \$PATH | 
 | 3490 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3491 |    { (exit 1); exit 1; }; } | 
 | 3492 |  | 
 | 3493 | # Provide some information about the compiler. | 
 | 3494 | echo "$as_me:$LINENO:" \ | 
 | 3495 |      "checking for C compiler version" >&5 | 
 | 3496 | ac_compiler=`set X $ac_compile; echo $2` | 
 | 3497 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | 
 | 3498 |   (eval $ac_compiler --version </dev/null >&5) 2>&5 | 
 | 3499 |   ac_status=$? | 
 | 3500 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3501 |   (exit $ac_status); } | 
 | 3502 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | 
 | 3503 |   (eval $ac_compiler -v </dev/null >&5) 2>&5 | 
 | 3504 |   ac_status=$? | 
 | 3505 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3506 |   (exit $ac_status); } | 
 | 3507 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | 
 | 3508 |   (eval $ac_compiler -V </dev/null >&5) 2>&5 | 
 | 3509 |   ac_status=$? | 
 | 3510 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3511 |   (exit $ac_status); } | 
 | 3512 |  | 
 | 3513 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | 
 | 3514 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | 
 | 3515 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | 
 | 3516 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3517 | else | 
 | 3518 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3519 | /* confdefs.h.  */ | 
 | 3520 | _ACEOF | 
 | 3521 | cat confdefs.h >>conftest.$ac_ext | 
 | 3522 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3523 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3524 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3525 | int | 
 | 3526 | main () | 
 | 3527 | { | 
 | 3528 | #ifndef __GNUC__ | 
 | 3529 |        choke me | 
 | 3530 | #endif | 
 | 3531 |  | 
 | 3532 |   ; | 
 | 3533 |   return 0; | 
 | 3534 | } | 
 | 3535 | _ACEOF | 
 | 3536 | rm -f conftest.$ac_objext | 
 | 3537 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3538 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3539 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3540 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 3541 |   rm -f conftest.er1 | 
 | 3542 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3543 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3544 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3545 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 3546 | 			 || test ! -s conftest.err' | 
 | 3547 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3548 |   (eval $ac_try) 2>&5 | 
 | 3549 |   ac_status=$? | 
 | 3550 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3551 |   (exit $ac_status); }; } && | 
 | 3552 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3553 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3554 |   (eval $ac_try) 2>&5 | 
 | 3555 |   ac_status=$? | 
 | 3556 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3557 |   (exit $ac_status); }; }; then | 
 | 3558 |   ac_compiler_gnu=yes | 
 | 3559 | else | 
 | 3560 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3561 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3562 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3563 | ac_compiler_gnu=no | 
 | 3564 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3565 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3566 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
 | 3567 |  | 
 | 3568 | fi | 
 | 3569 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | 
 | 3570 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | 
 | 3571 | GCC=`test $ac_compiler_gnu = yes && echo yes` | 
 | 3572 | ac_test_CFLAGS=${CFLAGS+set} | 
 | 3573 | ac_save_CFLAGS=$CFLAGS | 
 | 3574 | CFLAGS="-g" | 
 | 3575 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | 
 | 3576 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | 
 | 3577 | if test "${ac_cv_prog_cc_g+set}" = set; then | 
 | 3578 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3579 | else | 
 | 3580 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3581 | /* confdefs.h.  */ | 
 | 3582 | _ACEOF | 
 | 3583 | cat confdefs.h >>conftest.$ac_ext | 
 | 3584 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3585 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3586 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3587 | int | 
 | 3588 | main () | 
 | 3589 | { | 
 | 3590 |  | 
 | 3591 |   ; | 
 | 3592 |   return 0; | 
 | 3593 | } | 
 | 3594 | _ACEOF | 
 | 3595 | rm -f conftest.$ac_objext | 
 | 3596 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3597 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3598 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3599 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 3600 |   rm -f conftest.er1 | 
 | 3601 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3602 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3603 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3604 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 3605 | 			 || test ! -s conftest.err' | 
 | 3606 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3607 |   (eval $ac_try) 2>&5 | 
 | 3608 |   ac_status=$? | 
 | 3609 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3610 |   (exit $ac_status); }; } && | 
 | 3611 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3612 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3613 |   (eval $ac_try) 2>&5 | 
 | 3614 |   ac_status=$? | 
 | 3615 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3616 |   (exit $ac_status); }; }; then | 
 | 3617 |   ac_cv_prog_cc_g=yes | 
 | 3618 | else | 
 | 3619 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3620 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3621 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3622 | ac_cv_prog_cc_g=no | 
 | 3623 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3624 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3625 | fi | 
 | 3626 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | 
 | 3627 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | 
 | 3628 | if test "$ac_test_CFLAGS" = set; then | 
 | 3629 |   CFLAGS=$ac_save_CFLAGS | 
 | 3630 | elif test $ac_cv_prog_cc_g = yes; then | 
 | 3631 |   if test "$GCC" = yes; then | 
 | 3632 |     CFLAGS="-g -O2" | 
 | 3633 |   else | 
 | 3634 |     CFLAGS="-g" | 
 | 3635 |   fi | 
 | 3636 | else | 
 | 3637 |   if test "$GCC" = yes; then | 
 | 3638 |     CFLAGS="-O2" | 
 | 3639 |   else | 
 | 3640 |     CFLAGS= | 
 | 3641 |   fi | 
 | 3642 | fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3643 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | 
 | 3644 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | 
 | 3645 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | 
 | 3646 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3647 | else | 
 | 3648 |   ac_cv_prog_cc_stdc=no | 
 | 3649 | ac_save_CC=$CC | 
 | 3650 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3651 | /* confdefs.h.  */ | 
 | 3652 | _ACEOF | 
 | 3653 | cat confdefs.h >>conftest.$ac_ext | 
 | 3654 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3655 | /* end confdefs.h.  */ | 
 | 3656 | #include <stdarg.h> | 
 | 3657 | #include <stdio.h> | 
 | 3658 | #include <sys/types.h> | 
 | 3659 | #include <sys/stat.h> | 
 | 3660 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
 | 3661 | struct buf { int x; }; | 
 | 3662 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
 | 3663 | static char *e (p, i) | 
 | 3664 |      char **p; | 
 | 3665 |      int i; | 
 | 3666 | { | 
 | 3667 |   return p[i]; | 
 | 3668 | } | 
 | 3669 | static char *f (char * (*g) (char **, int), char **p, ...) | 
 | 3670 | { | 
 | 3671 |   char *s; | 
 | 3672 |   va_list v; | 
 | 3673 |   va_start (v,p); | 
 | 3674 |   s = g (p, va_arg (v,int)); | 
 | 3675 |   va_end (v); | 
 | 3676 |   return s; | 
 | 3677 | } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3678 |  | 
 | 3679 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
 | 3680 |    function prototypes and stuff, but not '\xHH' hex character constants. | 
 | 3681 |    These don't provoke an error unfortunately, instead are silently treated | 
 | 3682 |    as 'x'.  The following induces an error, until -std1 is added to get | 
 | 3683 |    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
 | 3684 |    array size at least.  It's necessary to write '\x00'==0 to get something | 
 | 3685 |    that's true only with -std1.  */ | 
 | 3686 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
 | 3687 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3688 | int test (int i, double x); | 
 | 3689 | struct s1 {int (*f) (int a);}; | 
 | 3690 | struct s2 {int (*f) (double a);}; | 
 | 3691 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
 | 3692 | int argc; | 
 | 3693 | char **argv; | 
 | 3694 | int | 
 | 3695 | main () | 
 | 3696 | { | 
 | 3697 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
 | 3698 |   ; | 
 | 3699 |   return 0; | 
 | 3700 | } | 
 | 3701 | _ACEOF | 
 | 3702 | # Don't try gcc -ansi; that turns off useful extensions and | 
 | 3703 | # breaks some systems' header files. | 
 | 3704 | # AIX			-qlanglvl=ansi | 
 | 3705 | # Ultrix and OSF/1	-std1 | 
 | 3706 | # HP-UX 10.20 and later	-Ae | 
 | 3707 | # HP-UX older versions	-Aa -D_HPUX_SOURCE | 
 | 3708 | # SVR4			-Xc -D__EXTENSIONS__ | 
 | 3709 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
 | 3710 | do | 
 | 3711 |   CC="$ac_save_CC $ac_arg" | 
 | 3712 |   rm -f conftest.$ac_objext | 
 | 3713 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3714 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3715 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3716 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 3717 |   rm -f conftest.er1 | 
 | 3718 |   cat conftest.err >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3719 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3720 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3721 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 3722 | 			 || test ! -s conftest.err' | 
 | 3723 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3724 |   (eval $ac_try) 2>&5 | 
 | 3725 |   ac_status=$? | 
 | 3726 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3727 |   (exit $ac_status); }; } && | 
 | 3728 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3729 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3730 |   (eval $ac_try) 2>&5 | 
 | 3731 |   ac_status=$? | 
 | 3732 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3733 |   (exit $ac_status); }; }; then | 
 | 3734 |   ac_cv_prog_cc_stdc=$ac_arg | 
 | 3735 | break | 
 | 3736 | else | 
 | 3737 |   echo "$as_me: failed program was:" >&5 | 
 | 3738 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3739 |  | 
 | 3740 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3741 | rm -f conftest.err conftest.$ac_objext | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3742 | done | 
 | 3743 | rm -f conftest.$ac_ext conftest.$ac_objext | 
 | 3744 | CC=$ac_save_CC | 
 | 3745 |  | 
 | 3746 | fi | 
 | 3747 |  | 
 | 3748 | case "x$ac_cv_prog_cc_stdc" in | 
 | 3749 |   x|xno) | 
 | 3750 |     echo "$as_me:$LINENO: result: none needed" >&5 | 
 | 3751 | echo "${ECHO_T}none needed" >&6 ;; | 
 | 3752 |   *) | 
 | 3753 |     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | 
 | 3754 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | 
 | 3755 |     CC="$CC $ac_cv_prog_cc_stdc" ;; | 
 | 3756 | esac | 
 | 3757 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3758 | # Some people use a C++ compiler to compile C.  Since we use `exit', | 
 | 3759 | # in C++ we need to declare it.  In case someone uses the same compiler | 
 | 3760 | # for both compiling C and C++ we need to have the C++ compiler decide | 
 | 3761 | # the declaration of exit, since it's the most demanding environment. | 
 | 3762 | cat >conftest.$ac_ext <<_ACEOF | 
 | 3763 | #ifndef __cplusplus | 
 | 3764 |   choke me | 
 | 3765 | #endif | 
 | 3766 | _ACEOF | 
 | 3767 | rm -f conftest.$ac_objext | 
 | 3768 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3769 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3770 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3771 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 3772 |   rm -f conftest.er1 | 
 | 3773 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3774 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3775 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3776 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 3777 | 			 || test ! -s conftest.err' | 
 | 3778 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3779 |   (eval $ac_try) 2>&5 | 
 | 3780 |   ac_status=$? | 
 | 3781 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3782 |   (exit $ac_status); }; } && | 
 | 3783 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3784 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3785 |   (eval $ac_try) 2>&5 | 
 | 3786 |   ac_status=$? | 
 | 3787 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3788 |   (exit $ac_status); }; }; then | 
 | 3789 |   for ac_declaration in \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3790 |    '' \ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3791 |    'extern "C" void std::exit (int) throw (); using std::exit;' \ | 
 | 3792 |    'extern "C" void std::exit (int); using std::exit;' \ | 
 | 3793 |    'extern "C" void exit (int) throw ();' \ | 
 | 3794 |    'extern "C" void exit (int);' \ | 
 | 3795 |    'void exit (int);' | 
 | 3796 | do | 
 | 3797 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3798 | /* confdefs.h.  */ | 
 | 3799 | _ACEOF | 
 | 3800 | cat confdefs.h >>conftest.$ac_ext | 
 | 3801 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3802 | /* end confdefs.h.  */ | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 3803 | $ac_declaration | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3804 | #include <stdlib.h> | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3805 | int | 
 | 3806 | main () | 
 | 3807 | { | 
 | 3808 | exit (42); | 
 | 3809 |   ; | 
 | 3810 |   return 0; | 
 | 3811 | } | 
 | 3812 | _ACEOF | 
 | 3813 | rm -f conftest.$ac_objext | 
 | 3814 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3815 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3816 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3817 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 3818 |   rm -f conftest.er1 | 
 | 3819 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3820 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3821 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3822 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 3823 | 			 || test ! -s conftest.err' | 
 | 3824 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3825 |   (eval $ac_try) 2>&5 | 
 | 3826 |   ac_status=$? | 
 | 3827 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3828 |   (exit $ac_status); }; } && | 
 | 3829 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3830 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3831 |   (eval $ac_try) 2>&5 | 
 | 3832 |   ac_status=$? | 
 | 3833 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3834 |   (exit $ac_status); }; }; then | 
 | 3835 |   : | 
 | 3836 | else | 
 | 3837 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3838 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3839 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3840 | continue | 
 | 3841 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3842 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3843 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3844 | /* confdefs.h.  */ | 
 | 3845 | _ACEOF | 
 | 3846 | cat confdefs.h >>conftest.$ac_ext | 
 | 3847 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3848 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3849 | $ac_declaration | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3850 | int | 
 | 3851 | main () | 
 | 3852 | { | 
 | 3853 | exit (42); | 
 | 3854 |   ; | 
 | 3855 |   return 0; | 
 | 3856 | } | 
 | 3857 | _ACEOF | 
 | 3858 | rm -f conftest.$ac_objext | 
 | 3859 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3860 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3861 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3862 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 3863 |   rm -f conftest.er1 | 
 | 3864 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3865 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3866 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3867 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 3868 | 			 || test ! -s conftest.err' | 
 | 3869 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3870 |   (eval $ac_try) 2>&5 | 
 | 3871 |   ac_status=$? | 
 | 3872 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3873 |   (exit $ac_status); }; } && | 
 | 3874 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3875 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3876 |   (eval $ac_try) 2>&5 | 
 | 3877 |   ac_status=$? | 
 | 3878 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3879 |   (exit $ac_status); }; }; then | 
 | 3880 |   break | 
 | 3881 | else | 
 | 3882 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3883 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3884 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3885 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3886 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3887 | done | 
 | 3888 | rm -f conftest* | 
 | 3889 | if test -n "$ac_declaration"; then | 
 | 3890 |   echo '#ifdef __cplusplus' >>confdefs.h | 
 | 3891 |   echo $ac_declaration      >>confdefs.h | 
 | 3892 |   echo '#endif'             >>confdefs.h | 
 | 3893 | fi | 
 | 3894 |  | 
 | 3895 | else | 
 | 3896 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3897 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3898 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3899 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3900 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3901 | ac_ext=c | 
 | 3902 | ac_cpp='$CPP $CPPFLAGS' | 
 | 3903 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 3904 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 3905 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 3906 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3907 | ac_ext=cc | 
 | 3908 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 3909 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 3910 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 3911 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 3912 | if test -n "$ac_tool_prefix"; then | 
 | 3913 |   for ac_prog in $CCC g++ | 
 | 3914 |   do | 
 | 3915 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 3916 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
 | 3917 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 3918 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 3919 | if test "${ac_cv_prog_CXX+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3920 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3921 | else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3922 |   if test -n "$CXX"; then | 
 | 3923 |   ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
 | 3924 | else | 
 | 3925 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3926 | for as_dir in $PATH | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3927 | do | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3928 |   IFS=$as_save_IFS | 
 | 3929 |   test -z "$as_dir" && as_dir=. | 
 | 3930 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 3931 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 3932 |     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | 
 | 3933 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 3934 |     break 2 | 
 | 3935 |   fi | 
 | 3936 | done | 
 | 3937 | done | 
 | 3938 |  | 
 | 3939 | fi | 
 | 3940 | fi | 
 | 3941 | CXX=$ac_cv_prog_CXX | 
 | 3942 | if test -n "$CXX"; then | 
 | 3943 |   echo "$as_me:$LINENO: result: $CXX" >&5 | 
 | 3944 | echo "${ECHO_T}$CXX" >&6 | 
 | 3945 | else | 
 | 3946 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 3947 | echo "${ECHO_T}no" >&6 | 
 | 3948 | fi | 
 | 3949 |  | 
 | 3950 |     test -n "$CXX" && break | 
 | 3951 |   done | 
 | 3952 | fi | 
 | 3953 | if test -z "$CXX"; then | 
 | 3954 |   ac_ct_CXX=$CXX | 
 | 3955 |   for ac_prog in $CCC g++ | 
 | 3956 | do | 
 | 3957 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 3958 | set dummy $ac_prog; ac_word=$2 | 
 | 3959 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 3960 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 3961 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | 
 | 3962 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3963 | else | 
 | 3964 |   if test -n "$ac_ct_CXX"; then | 
 | 3965 |   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | 
 | 3966 | else | 
 | 3967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3968 | for as_dir in $PATH | 
 | 3969 | do | 
 | 3970 |   IFS=$as_save_IFS | 
 | 3971 |   test -z "$as_dir" && as_dir=. | 
 | 3972 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 3973 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 3974 |     ac_cv_prog_ac_ct_CXX="$ac_prog" | 
 | 3975 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 3976 |     break 2 | 
 | 3977 |   fi | 
 | 3978 | done | 
 | 3979 | done | 
 | 3980 |  | 
 | 3981 | fi | 
 | 3982 | fi | 
 | 3983 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | 
 | 3984 | if test -n "$ac_ct_CXX"; then | 
 | 3985 |   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | 
 | 3986 | echo "${ECHO_T}$ac_ct_CXX" >&6 | 
 | 3987 | else | 
 | 3988 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 3989 | echo "${ECHO_T}no" >&6 | 
 | 3990 | fi | 
 | 3991 |  | 
 | 3992 |   test -n "$ac_ct_CXX" && break | 
 | 3993 | done | 
 | 3994 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | 
 | 3995 |  | 
 | 3996 |   CXX=$ac_ct_CXX | 
 | 3997 | fi | 
 | 3998 |  | 
 | 3999 |  | 
 | 4000 | # Provide some information about the compiler. | 
 | 4001 | echo "$as_me:$LINENO:" \ | 
 | 4002 |      "checking for C++ compiler version" >&5 | 
 | 4003 | ac_compiler=`set X $ac_compile; echo $2` | 
 | 4004 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | 
 | 4005 |   (eval $ac_compiler --version </dev/null >&5) 2>&5 | 
 | 4006 |   ac_status=$? | 
 | 4007 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4008 |   (exit $ac_status); } | 
 | 4009 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | 
 | 4010 |   (eval $ac_compiler -v </dev/null >&5) 2>&5 | 
 | 4011 |   ac_status=$? | 
 | 4012 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4013 |   (exit $ac_status); } | 
 | 4014 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | 
 | 4015 |   (eval $ac_compiler -V </dev/null >&5) 2>&5 | 
 | 4016 |   ac_status=$? | 
 | 4017 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4018 |   (exit $ac_status); } | 
 | 4019 |  | 
 | 4020 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | 
 | 4021 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | 
 | 4022 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | 
 | 4023 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4024 | else | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4025 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4026 | /* confdefs.h.  */ | 
 | 4027 | _ACEOF | 
 | 4028 | cat confdefs.h >>conftest.$ac_ext | 
 | 4029 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4030 | /* end confdefs.h.  */ | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4031 |  | 
 | 4032 | int | 
 | 4033 | main () | 
 | 4034 | { | 
 | 4035 | #ifndef __GNUC__ | 
 | 4036 |        choke me | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4037 | #endif | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4038 |  | 
 | 4039 |   ; | 
 | 4040 |   return 0; | 
 | 4041 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4042 | _ACEOF | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4043 | rm -f conftest.$ac_objext | 
 | 4044 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 4045 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4046 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4047 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4048 |   rm -f conftest.er1 | 
 | 4049 |   cat conftest.err >&5 | 
 | 4050 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4051 |   (exit $ac_status); } && | 
 | 4052 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 4053 | 			 || test ! -s conftest.err' | 
 | 4054 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4055 |   (eval $ac_try) 2>&5 | 
 | 4056 |   ac_status=$? | 
 | 4057 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4058 |   (exit $ac_status); }; } && | 
 | 4059 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 4060 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4061 |   (eval $ac_try) 2>&5 | 
 | 4062 |   ac_status=$? | 
 | 4063 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4064 |   (exit $ac_status); }; }; then | 
 | 4065 |   ac_compiler_gnu=yes | 
 | 4066 | else | 
 | 4067 |   echo "$as_me: failed program was:" >&5 | 
 | 4068 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4069 |  | 
 | 4070 | ac_compiler_gnu=no | 
 | 4071 | fi | 
 | 4072 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 4073 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | 
 | 4074 |  | 
 | 4075 | fi | 
 | 4076 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | 
 | 4077 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | 
 | 4078 | GXX=`test $ac_compiler_gnu = yes && echo yes` | 
 | 4079 | ac_test_CXXFLAGS=${CXXFLAGS+set} | 
 | 4080 | ac_save_CXXFLAGS=$CXXFLAGS | 
 | 4081 | CXXFLAGS="-g" | 
 | 4082 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | 
 | 4083 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | 
 | 4084 | if test "${ac_cv_prog_cxx_g+set}" = set; then | 
 | 4085 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4086 | else | 
 | 4087 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 4088 | /* confdefs.h.  */ | 
 | 4089 | _ACEOF | 
 | 4090 | cat confdefs.h >>conftest.$ac_ext | 
 | 4091 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4092 | /* end confdefs.h.  */ | 
 | 4093 |  | 
 | 4094 | int | 
 | 4095 | main () | 
 | 4096 | { | 
 | 4097 |  | 
 | 4098 |   ; | 
 | 4099 |   return 0; | 
 | 4100 | } | 
 | 4101 | _ACEOF | 
 | 4102 | rm -f conftest.$ac_objext | 
 | 4103 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 4104 |   (eval $ac_compile) 2>conftest.er1 | 
 | 4105 |   ac_status=$? | 
 | 4106 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 4107 |   rm -f conftest.er1 | 
 | 4108 |   cat conftest.err >&5 | 
 | 4109 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4110 |   (exit $ac_status); } && | 
 | 4111 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 4112 | 			 || test ! -s conftest.err' | 
 | 4113 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4114 |   (eval $ac_try) 2>&5 | 
 | 4115 |   ac_status=$? | 
 | 4116 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4117 |   (exit $ac_status); }; } && | 
 | 4118 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 4119 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4120 |   (eval $ac_try) 2>&5 | 
 | 4121 |   ac_status=$? | 
 | 4122 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4123 |   (exit $ac_status); }; }; then | 
 | 4124 |   ac_cv_prog_cxx_g=yes | 
 | 4125 | else | 
 | 4126 |   echo "$as_me: failed program was:" >&5 | 
 | 4127 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4128 |  | 
 | 4129 | ac_cv_prog_cxx_g=no | 
 | 4130 | fi | 
 | 4131 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 4132 | fi | 
 | 4133 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | 
 | 4134 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | 
 | 4135 | if test "$ac_test_CXXFLAGS" = set; then | 
 | 4136 |   CXXFLAGS=$ac_save_CXXFLAGS | 
 | 4137 | elif test $ac_cv_prog_cxx_g = yes; then | 
 | 4138 |   if test "$GXX" = yes; then | 
 | 4139 |     CXXFLAGS="-g -O2" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4140 |   else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4141 |     CXXFLAGS="-g" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4142 |   fi | 
 | 4143 | else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4144 |   if test "$GXX" = yes; then | 
 | 4145 |     CXXFLAGS="-O2" | 
 | 4146 |   else | 
 | 4147 |     CXXFLAGS= | 
 | 4148 |   fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4149 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4150 | for ac_declaration in \ | 
 | 4151 |    '' \ | 
 | 4152 |    'extern "C" void std::exit (int) throw (); using std::exit;' \ | 
 | 4153 |    'extern "C" void std::exit (int); using std::exit;' \ | 
 | 4154 |    'extern "C" void exit (int) throw ();' \ | 
 | 4155 |    'extern "C" void exit (int);' \ | 
 | 4156 |    'void exit (int);' | 
 | 4157 | do | 
 | 4158 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 4159 | /* confdefs.h.  */ | 
 | 4160 | _ACEOF | 
 | 4161 | cat confdefs.h >>conftest.$ac_ext | 
 | 4162 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4163 | /* end confdefs.h.  */ | 
 | 4164 | $ac_declaration | 
 | 4165 | #include <stdlib.h> | 
 | 4166 | int | 
 | 4167 | main () | 
 | 4168 | { | 
 | 4169 | exit (42); | 
 | 4170 |   ; | 
 | 4171 |   return 0; | 
 | 4172 | } | 
 | 4173 | _ACEOF | 
 | 4174 | rm -f conftest.$ac_objext | 
 | 4175 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 4176 |   (eval $ac_compile) 2>conftest.er1 | 
 | 4177 |   ac_status=$? | 
 | 4178 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 4179 |   rm -f conftest.er1 | 
 | 4180 |   cat conftest.err >&5 | 
 | 4181 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4182 |   (exit $ac_status); } && | 
 | 4183 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 4184 | 			 || test ! -s conftest.err' | 
 | 4185 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4186 |   (eval $ac_try) 2>&5 | 
 | 4187 |   ac_status=$? | 
 | 4188 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4189 |   (exit $ac_status); }; } && | 
 | 4190 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 4191 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4192 |   (eval $ac_try) 2>&5 | 
 | 4193 |   ac_status=$? | 
 | 4194 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4195 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4196 |   : | 
 | 4197 | else | 
 | 4198 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4199 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4200 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4201 | continue | 
 | 4202 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4203 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4204 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4205 | /* confdefs.h.  */ | 
 | 4206 | _ACEOF | 
 | 4207 | cat confdefs.h >>conftest.$ac_ext | 
 | 4208 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4209 | /* end confdefs.h.  */ | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4210 | $ac_declaration | 
 | 4211 | int | 
 | 4212 | main () | 
 | 4213 | { | 
 | 4214 | exit (42); | 
 | 4215 |   ; | 
 | 4216 |   return 0; | 
 | 4217 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4218 | _ACEOF | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4219 | rm -f conftest.$ac_objext | 
 | 4220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 4221 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4222 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4223 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4224 |   rm -f conftest.er1 | 
 | 4225 |   cat conftest.err >&5 | 
 | 4226 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4227 |   (exit $ac_status); } && | 
 | 4228 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 4229 | 			 || test ! -s conftest.err' | 
 | 4230 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4231 |   (eval $ac_try) 2>&5 | 
 | 4232 |   ac_status=$? | 
 | 4233 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4234 |   (exit $ac_status); }; } && | 
 | 4235 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 4236 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4237 |   (eval $ac_try) 2>&5 | 
 | 4238 |   ac_status=$? | 
 | 4239 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4240 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4241 |   break | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4242 | else | 
 | 4243 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4244 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4245 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4246 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4247 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4248 | done | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4249 | rm -f conftest* | 
 | 4250 | if test -n "$ac_declaration"; then | 
 | 4251 |   echo '#ifdef __cplusplus' >>confdefs.h | 
 | 4252 |   echo $ac_declaration      >>confdefs.h | 
 | 4253 |   echo '#endif'             >>confdefs.h | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4254 | fi | 
 | 4255 |  | 
 | 4256 | ac_ext=c | 
 | 4257 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4258 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4259 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4260 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 4261 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4262 | echo "$as_me:$LINENO: checking " >&5 | 
 | 4263 | echo $ECHO_N "checking ... $ECHO_C" >&6 | 
 | 4264 | if test "${ac_cv_has_flex+set}" = set; then | 
 | 4265 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4266 | else | 
 | 4267 |   for ac_prog in flex lex | 
 | 4268 | do | 
 | 4269 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 4270 | set dummy $ac_prog; ac_word=$2 | 
 | 4271 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 4272 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 4273 | if test "${ac_cv_prog_LEX+set}" = set; then | 
 | 4274 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4275 | else | 
 | 4276 |   if test -n "$LEX"; then | 
 | 4277 |   ac_cv_prog_LEX="$LEX" # Let the user override the test. | 
 | 4278 | else | 
 | 4279 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4280 | for as_dir in $PATH | 
 | 4281 | do | 
 | 4282 |   IFS=$as_save_IFS | 
 | 4283 |   test -z "$as_dir" && as_dir=. | 
 | 4284 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4285 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4286 |     ac_cv_prog_LEX="$ac_prog" | 
 | 4287 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4288 |     break 2 | 
 | 4289 |   fi | 
 | 4290 | done | 
 | 4291 | done | 
 | 4292 |  | 
 | 4293 | fi | 
 | 4294 | fi | 
 | 4295 | LEX=$ac_cv_prog_LEX | 
 | 4296 | if test -n "$LEX"; then | 
 | 4297 |   echo "$as_me:$LINENO: result: $LEX" >&5 | 
 | 4298 | echo "${ECHO_T}$LEX" >&6 | 
 | 4299 | else | 
 | 4300 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 4301 | echo "${ECHO_T}no" >&6 | 
 | 4302 | fi | 
 | 4303 |  | 
 | 4304 |   test -n "$LEX" && break | 
 | 4305 | done | 
 | 4306 | test -n "$LEX" || LEX=":" | 
 | 4307 |  | 
 | 4308 | if test -z "$LEXLIB" | 
 | 4309 | then | 
 | 4310 |   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 | 
 | 4311 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 | 
 | 4312 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then | 
 | 4313 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4314 | else | 
 | 4315 |   ac_check_lib_save_LIBS=$LIBS | 
 | 4316 | LIBS="-lfl  $LIBS" | 
 | 4317 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4318 | /* confdefs.h.  */ | 
 | 4319 | _ACEOF | 
 | 4320 | cat confdefs.h >>conftest.$ac_ext | 
 | 4321 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4322 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4323 |  | 
 | 4324 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 4325 | #ifdef __cplusplus | 
 | 4326 | extern "C" | 
 | 4327 | #endif | 
 | 4328 | /* We use char because int might match the return type of a gcc2 | 
 | 4329 |    builtin and then its argument prototype would still apply.  */ | 
 | 4330 | char yywrap (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4331 | int | 
 | 4332 | main () | 
 | 4333 | { | 
 | 4334 | yywrap (); | 
 | 4335 |   ; | 
 | 4336 |   return 0; | 
 | 4337 | } | 
 | 4338 | _ACEOF | 
 | 4339 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 4340 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4341 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4342 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4343 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 4344 |   rm -f conftest.er1 | 
 | 4345 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4346 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4347 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4348 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 4349 | 			 || test ! -s conftest.err' | 
 | 4350 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4351 |   (eval $ac_try) 2>&5 | 
 | 4352 |   ac_status=$? | 
 | 4353 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4354 |   (exit $ac_status); }; } && | 
 | 4355 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4356 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4357 |   (eval $ac_try) 2>&5 | 
 | 4358 |   ac_status=$? | 
 | 4359 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4360 |   (exit $ac_status); }; }; then | 
 | 4361 |   ac_cv_lib_fl_yywrap=yes | 
 | 4362 | else | 
 | 4363 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4364 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4365 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4366 | ac_cv_lib_fl_yywrap=no | 
 | 4367 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4368 | rm -f conftest.err conftest.$ac_objext \ | 
 | 4369 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4370 | LIBS=$ac_check_lib_save_LIBS | 
 | 4371 | fi | 
 | 4372 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 | 
 | 4373 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 | 
 | 4374 | if test $ac_cv_lib_fl_yywrap = yes; then | 
 | 4375 |   LEXLIB="-lfl" | 
 | 4376 | else | 
 | 4377 |   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 | 
 | 4378 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 | 
 | 4379 | if test "${ac_cv_lib_l_yywrap+set}" = set; then | 
 | 4380 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4381 | else | 
 | 4382 |   ac_check_lib_save_LIBS=$LIBS | 
 | 4383 | LIBS="-ll  $LIBS" | 
 | 4384 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4385 | /* confdefs.h.  */ | 
 | 4386 | _ACEOF | 
 | 4387 | cat confdefs.h >>conftest.$ac_ext | 
 | 4388 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4389 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4390 |  | 
 | 4391 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 4392 | #ifdef __cplusplus | 
 | 4393 | extern "C" | 
 | 4394 | #endif | 
 | 4395 | /* We use char because int might match the return type of a gcc2 | 
 | 4396 |    builtin and then its argument prototype would still apply.  */ | 
 | 4397 | char yywrap (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4398 | int | 
 | 4399 | main () | 
 | 4400 | { | 
 | 4401 | yywrap (); | 
 | 4402 |   ; | 
 | 4403 |   return 0; | 
 | 4404 | } | 
 | 4405 | _ACEOF | 
 | 4406 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 4407 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4408 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4409 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4410 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 4411 |   rm -f conftest.er1 | 
 | 4412 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4413 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4414 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4415 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 4416 | 			 || test ! -s conftest.err' | 
 | 4417 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4418 |   (eval $ac_try) 2>&5 | 
 | 4419 |   ac_status=$? | 
 | 4420 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4421 |   (exit $ac_status); }; } && | 
 | 4422 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4423 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4424 |   (eval $ac_try) 2>&5 | 
 | 4425 |   ac_status=$? | 
 | 4426 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4427 |   (exit $ac_status); }; }; then | 
 | 4428 |   ac_cv_lib_l_yywrap=yes | 
 | 4429 | else | 
 | 4430 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4431 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4432 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4433 | ac_cv_lib_l_yywrap=no | 
 | 4434 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4435 | rm -f conftest.err conftest.$ac_objext \ | 
 | 4436 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4437 | LIBS=$ac_check_lib_save_LIBS | 
 | 4438 | fi | 
 | 4439 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 | 
 | 4440 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 | 
 | 4441 | if test $ac_cv_lib_l_yywrap = yes; then | 
 | 4442 |   LEXLIB="-ll" | 
 | 4443 | fi | 
 | 4444 |  | 
 | 4445 | fi | 
 | 4446 |  | 
 | 4447 | fi | 
 | 4448 |  | 
 | 4449 | if test "x$LEX" != "x:"; then | 
 | 4450 |   echo "$as_me:$LINENO: checking lex output file root" >&5 | 
 | 4451 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 | 
 | 4452 | if test "${ac_cv_prog_lex_root+set}" = set; then | 
 | 4453 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4454 | else | 
 | 4455 |   # The minimal lex program is just a single line: %%.  But some broken lexes | 
 | 4456 | # (Solaris, I think it was) want two %% lines, so accommodate them. | 
 | 4457 | cat >conftest.l <<_ACEOF | 
 | 4458 | %% | 
 | 4459 | %% | 
 | 4460 | _ACEOF | 
 | 4461 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 | 
 | 4462 |   (eval $LEX conftest.l) 2>&5 | 
 | 4463 |   ac_status=$? | 
 | 4464 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4465 |   (exit $ac_status); } | 
 | 4466 | if test -f lex.yy.c; then | 
 | 4467 |   ac_cv_prog_lex_root=lex.yy | 
 | 4468 | elif test -f lexyy.c; then | 
 | 4469 |   ac_cv_prog_lex_root=lexyy | 
 | 4470 | else | 
 | 4471 |   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 | 
 | 4472 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} | 
 | 4473 |    { (exit 1); exit 1; }; } | 
 | 4474 | fi | 
 | 4475 | fi | 
 | 4476 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 | 
 | 4477 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 | 
 | 4478 | rm -f conftest.l | 
 | 4479 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | 
 | 4480 |  | 
 | 4481 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 | 
 | 4482 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 | 
 | 4483 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then | 
 | 4484 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4485 | else | 
 | 4486 |   # POSIX says lex can declare yytext either as a pointer or an array; the | 
 | 4487 | # default is implementation-dependent. Figure out which it is, since | 
 | 4488 | # not all implementations provide the %pointer and %array declarations. | 
 | 4489 | ac_cv_prog_lex_yytext_pointer=no | 
 | 4490 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | 
 | 4491 | ac_save_LIBS=$LIBS | 
 | 4492 | LIBS="$LIBS $LEXLIB" | 
 | 4493 | cat >conftest.$ac_ext <<_ACEOF | 
 | 4494 | `cat $LEX_OUTPUT_ROOT.c` | 
 | 4495 | _ACEOF | 
 | 4496 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 4497 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4498 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4499 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4500 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 4501 |   rm -f conftest.er1 | 
 | 4502 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4503 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4504 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4505 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 4506 | 			 || test ! -s conftest.err' | 
 | 4507 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4508 |   (eval $ac_try) 2>&5 | 
 | 4509 |   ac_status=$? | 
 | 4510 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4511 |   (exit $ac_status); }; } && | 
 | 4512 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4513 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4514 |   (eval $ac_try) 2>&5 | 
 | 4515 |   ac_status=$? | 
 | 4516 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4517 |   (exit $ac_status); }; }; then | 
 | 4518 |   ac_cv_prog_lex_yytext_pointer=yes | 
 | 4519 | else | 
 | 4520 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4521 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4522 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4523 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4524 | rm -f conftest.err conftest.$ac_objext \ | 
 | 4525 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4526 | LIBS=$ac_save_LIBS | 
 | 4527 | rm -f "${LEX_OUTPUT_ROOT}.c" | 
 | 4528 |  | 
 | 4529 | fi | 
 | 4530 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 | 
 | 4531 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 | 
 | 4532 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | 
 | 4533 |  | 
 | 4534 | cat >>confdefs.h <<\_ACEOF | 
 | 4535 | #define YYTEXT_POINTER 1 | 
 | 4536 | _ACEOF | 
 | 4537 |  | 
 | 4538 | fi | 
 | 4539 |  | 
 | 4540 | fi | 
 | 4541 |  | 
 | 4542 | fi | 
 | 4543 | echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5 | 
 | 4544 | echo "${ECHO_T}$ac_cv_has_flex" >&6 | 
 | 4545 | if test "$LEX" != "flex"; then | 
 | 4546 |   { { echo "$as_me:$LINENO: error: flex not found but required" >&5 | 
 | 4547 | echo "$as_me: error: flex not found but required" >&2;} | 
 | 4548 |    { (exit 1); exit 1; }; } | 
| Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 4549 | else | 
 | 4550 |   FLEX=flex | 
 | 4551 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4552 | fi | 
 | 4553 |  | 
 | 4554 | echo "$as_me:$LINENO: checking " >&5 | 
 | 4555 | echo $ECHO_N "checking ... $ECHO_C" >&6 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4556 | if test "${llvm_cv_has_bison+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4557 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4558 | else | 
 | 4559 |   for ac_prog in 'bison -y' byacc | 
 | 4560 | do | 
 | 4561 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 4562 | set dummy $ac_prog; ac_word=$2 | 
 | 4563 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 4564 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 4565 | if test "${ac_cv_prog_YACC+set}" = set; then | 
 | 4566 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4567 | else | 
 | 4568 |   if test -n "$YACC"; then | 
 | 4569 |   ac_cv_prog_YACC="$YACC" # Let the user override the test. | 
 | 4570 | else | 
 | 4571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4572 | for as_dir in $PATH | 
 | 4573 | do | 
 | 4574 |   IFS=$as_save_IFS | 
 | 4575 |   test -z "$as_dir" && as_dir=. | 
 | 4576 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4577 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4578 |     ac_cv_prog_YACC="$ac_prog" | 
 | 4579 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4580 |     break 2 | 
 | 4581 |   fi | 
 | 4582 | done | 
 | 4583 | done | 
 | 4584 |  | 
 | 4585 | fi | 
 | 4586 | fi | 
 | 4587 | YACC=$ac_cv_prog_YACC | 
 | 4588 | if test -n "$YACC"; then | 
 | 4589 |   echo "$as_me:$LINENO: result: $YACC" >&5 | 
 | 4590 | echo "${ECHO_T}$YACC" >&6 | 
 | 4591 | else | 
 | 4592 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 4593 | echo "${ECHO_T}no" >&6 | 
 | 4594 | fi | 
 | 4595 |  | 
 | 4596 |   test -n "$YACC" && break | 
 | 4597 | done | 
 | 4598 | test -n "$YACC" || YACC="yacc" | 
 | 4599 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4600 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4601 | echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5 | 
 | 4602 | echo "${ECHO_T}$llvm_cv_has_bison" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4603 | if test "$YACC" != "bison -y"; then | 
 | 4604 |   { { echo "$as_me:$LINENO: error: bison not found but required" >&5 | 
 | 4605 | echo "$as_me: error: bison not found but required" >&2;} | 
 | 4606 |    { (exit 1); exit 1; }; } | 
 | 4607 | else | 
| Brian Gaeke | 1281063 | 2004-01-13 06:52:10 +0000 | [diff] [blame] | 4608 |   BISON=bison | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4609 |  | 
 | 4610 | fi | 
 | 4611 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4612 | echo "$as_me:$LINENO: checking for GNU make" >&5 | 
 | 4613 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6 | 
 | 4614 | if test "${llvm_cv_gnu_make_command+set}" = set; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4615 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4616 | else | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4617 |   llvm_cv_gnu_make_command='' | 
 | 4618 |  for a in "$MAKE" make gmake gnumake ; do | 
 | 4619 |   if test -z "$a" ; then continue ; fi ; | 
 | 4620 |   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) | 
 | 4621 |   then | 
 | 4622 |    llvm_cv_gnu_make_command=$a ; | 
 | 4623 |    break; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4624 |   fi | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4625 |  done | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4626 | fi | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4627 | echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 | 
 | 4628 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6 | 
 | 4629 |  if test "x$llvm_cv_gnu_make_command" != "x"  ; then | 
 | 4630 |    ifGNUmake='' ; | 
 | 4631 |  else | 
 | 4632 |    ifGNUmake='#' ; | 
 | 4633 |    echo "$as_me:$LINENO: result: \"Not found\"" >&5 | 
 | 4634 | echo "${ECHO_T}\"Not found\"" >&6; | 
 | 4635 |  fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4636 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4637 |  | 
 | 4638 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | 
 | 4639 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | 
 | 4640 | LN_S=$as_ln_s | 
 | 4641 | if test "$LN_S" = "ln -s"; then | 
 | 4642 |   echo "$as_me:$LINENO: result: yes" >&5 | 
 | 4643 | echo "${ECHO_T}yes" >&6 | 
 | 4644 | else | 
 | 4645 |   echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | 
 | 4646 | echo "${ECHO_T}no, using $LN_S" >&6 | 
 | 4647 | fi | 
 | 4648 |  | 
| Reid Spencer | 8a2d471 | 2004-12-16 17:48:14 +0000 | [diff] [blame] | 4649 | # Extract the first word of "cmp", so it can be a program name with args. | 
 | 4650 | set dummy cmp; ac_word=$2 | 
 | 4651 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 4652 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 4653 | if test "${ac_cv_path_CMP+set}" = set; then | 
 | 4654 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4655 | else | 
 | 4656 |   case $CMP in | 
 | 4657 |   [\\/]* | ?:[\\/]*) | 
 | 4658 |   ac_cv_path_CMP="$CMP" # Let the user override the test with a path. | 
 | 4659 |   ;; | 
 | 4660 |   *) | 
 | 4661 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4662 | for as_dir in $PATH | 
 | 4663 | do | 
 | 4664 |   IFS=$as_save_IFS | 
 | 4665 |   test -z "$as_dir" && as_dir=. | 
 | 4666 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4667 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4668 |     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" | 
 | 4669 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4670 |     break 2 | 
 | 4671 |   fi | 
 | 4672 | done | 
 | 4673 | done | 
 | 4674 |  | 
 | 4675 |   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" | 
 | 4676 |   ;; | 
 | 4677 | esac | 
 | 4678 | fi | 
 | 4679 | CMP=$ac_cv_path_CMP | 
 | 4680 |  | 
 | 4681 | if test -n "$CMP"; then | 
 | 4682 |   echo "$as_me:$LINENO: result: $CMP" >&5 | 
 | 4683 | echo "${ECHO_T}$CMP" >&6 | 
 | 4684 | else | 
 | 4685 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 4686 | echo "${ECHO_T}no" >&6 | 
 | 4687 | fi | 
 | 4688 |  | 
 | 4689 | # Extract the first word of "cp", so it can be a program name with args. | 
 | 4690 | set dummy cp; ac_word=$2 | 
 | 4691 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 4692 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 4693 | if test "${ac_cv_path_CP+set}" = set; then | 
 | 4694 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4695 | else | 
 | 4696 |   case $CP in | 
 | 4697 |   [\\/]* | ?:[\\/]*) | 
 | 4698 |   ac_cv_path_CP="$CP" # Let the user override the test with a path. | 
 | 4699 |   ;; | 
 | 4700 |   *) | 
 | 4701 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4702 | for as_dir in $PATH | 
 | 4703 | do | 
 | 4704 |   IFS=$as_save_IFS | 
 | 4705 |   test -z "$as_dir" && as_dir=. | 
 | 4706 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4707 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4708 |     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" | 
 | 4709 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4710 |     break 2 | 
 | 4711 |   fi | 
 | 4712 | done | 
 | 4713 | done | 
 | 4714 |  | 
 | 4715 |   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" | 
 | 4716 |   ;; | 
 | 4717 | esac | 
 | 4718 | fi | 
 | 4719 | CP=$ac_cv_path_CP | 
 | 4720 |  | 
 | 4721 | if test -n "$CP"; then | 
 | 4722 |   echo "$as_me:$LINENO: result: $CP" >&5 | 
 | 4723 | echo "${ECHO_T}$CP" >&6 | 
 | 4724 | else | 
 | 4725 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 4726 | echo "${ECHO_T}no" >&6 | 
 | 4727 | fi | 
 | 4728 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4729 | # Extract the first word of "date", so it can be a program name with args. | 
 | 4730 | set dummy date; ac_word=$2 | 
 | 4731 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 4732 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 4733 | if test "${ac_cv_path_DATE+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4734 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4735 | else | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4736 |   case $DATE in | 
 | 4737 |   [\\/]* | ?:[\\/]*) | 
 | 4738 |   ac_cv_path_DATE="$DATE" # Let the user override the test with a path. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4739 |   ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4740 |   *) | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4741 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4742 | for as_dir in $PATH | 
 | 4743 | do | 
 | 4744 |   IFS=$as_save_IFS | 
 | 4745 |   test -z "$as_dir" && as_dir=. | 
 | 4746 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4747 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4748 |     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" | 
 | 4749 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4750 |     break 2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4751 |   fi | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4752 | done | 
 | 4753 | done | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4754 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4755 |   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4756 |   ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4757 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4758 | fi | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4759 | DATE=$ac_cv_path_DATE | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4760 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4761 | if test -n "$DATE"; then | 
 | 4762 |   echo "$as_me:$LINENO: result: $DATE" >&5 | 
 | 4763 | echo "${ECHO_T}$DATE" >&6 | 
 | 4764 | else | 
 | 4765 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 4766 | echo "${ECHO_T}no" >&6 | 
 | 4767 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4768 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4769 | # Extract the first word of "find", so it can be a program name with args. | 
 | 4770 | set dummy find; ac_word=$2 | 
 | 4771 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 4772 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 4773 | if test "${ac_cv_path_FIND+set}" = set; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4774 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4775 | else | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4776 |   case $FIND in | 
 | 4777 |   [\\/]* | ?:[\\/]*) | 
 | 4778 |   ac_cv_path_FIND="$FIND" # Let the user override the test with a path. | 
 | 4779 |   ;; | 
 | 4780 |   *) | 
 | 4781 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4782 | for as_dir in $PATH | 
 | 4783 | do | 
 | 4784 |   IFS=$as_save_IFS | 
 | 4785 |   test -z "$as_dir" && as_dir=. | 
 | 4786 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4787 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4788 |     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" | 
 | 4789 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4790 |     break 2 | 
 | 4791 |   fi | 
 | 4792 | done | 
 | 4793 | done | 
 | 4794 |  | 
 | 4795 |   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" | 
 | 4796 |   ;; | 
 | 4797 | esac | 
 | 4798 | fi | 
 | 4799 | FIND=$ac_cv_path_FIND | 
 | 4800 |  | 
 | 4801 | if test -n "$FIND"; then | 
 | 4802 |   echo "$as_me:$LINENO: result: $FIND" >&5 | 
 | 4803 | echo "${ECHO_T}$FIND" >&6 | 
 | 4804 | else | 
 | 4805 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 4806 | echo "${ECHO_T}no" >&6 | 
 | 4807 | fi | 
 | 4808 |  | 
 | 4809 | # Extract the first word of "grep", so it can be a program name with args. | 
 | 4810 | set dummy grep; ac_word=$2 | 
 | 4811 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 4812 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 4813 | if test "${ac_cv_path_GREP+set}" = set; then | 
 | 4814 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4815 | else | 
 | 4816 |   case $GREP in | 
 | 4817 |   [\\/]* | ?:[\\/]*) | 
 | 4818 |   ac_cv_path_GREP="$GREP" # Let the user override the test with a path. | 
 | 4819 |   ;; | 
 | 4820 |   *) | 
 | 4821 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4822 | for as_dir in $PATH | 
 | 4823 | do | 
 | 4824 |   IFS=$as_save_IFS | 
 | 4825 |   test -z "$as_dir" && as_dir=. | 
 | 4826 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4827 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4828 |     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" | 
 | 4829 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4830 |     break 2 | 
 | 4831 |   fi | 
 | 4832 | done | 
 | 4833 | done | 
 | 4834 |  | 
 | 4835 |   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" | 
 | 4836 |   ;; | 
 | 4837 | esac | 
 | 4838 | fi | 
 | 4839 | GREP=$ac_cv_path_GREP | 
 | 4840 |  | 
 | 4841 | if test -n "$GREP"; then | 
 | 4842 |   echo "$as_me:$LINENO: result: $GREP" >&5 | 
 | 4843 | echo "${ECHO_T}$GREP" >&6 | 
 | 4844 | else | 
 | 4845 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 4846 | echo "${ECHO_T}no" >&6 | 
 | 4847 | fi | 
 | 4848 |  | 
 | 4849 | # Extract the first word of "mkdir", so it can be a program name with args. | 
 | 4850 | set dummy mkdir; ac_word=$2 | 
 | 4851 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 4852 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 4853 | if test "${ac_cv_path_MKDIR+set}" = set; then | 
 | 4854 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4855 | else | 
 | 4856 |   case $MKDIR in | 
 | 4857 |   [\\/]* | ?:[\\/]*) | 
 | 4858 |   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. | 
 | 4859 |   ;; | 
 | 4860 |   *) | 
 | 4861 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4862 | for as_dir in $PATH | 
 | 4863 | do | 
 | 4864 |   IFS=$as_save_IFS | 
 | 4865 |   test -z "$as_dir" && as_dir=. | 
 | 4866 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4867 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4868 |     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" | 
 | 4869 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4870 |     break 2 | 
 | 4871 |   fi | 
 | 4872 | done | 
 | 4873 | done | 
 | 4874 |  | 
 | 4875 |   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" | 
 | 4876 |   ;; | 
 | 4877 | esac | 
 | 4878 | fi | 
 | 4879 | MKDIR=$ac_cv_path_MKDIR | 
 | 4880 |  | 
 | 4881 | if test -n "$MKDIR"; then | 
 | 4882 |   echo "$as_me:$LINENO: result: $MKDIR" >&5 | 
 | 4883 | echo "${ECHO_T}$MKDIR" >&6 | 
 | 4884 | else | 
 | 4885 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 4886 | echo "${ECHO_T}no" >&6 | 
 | 4887 | fi | 
 | 4888 |  | 
 | 4889 | # Extract the first word of "mv", so it can be a program name with args. | 
 | 4890 | set dummy mv; ac_word=$2 | 
 | 4891 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 4892 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 4893 | if test "${ac_cv_path_MV+set}" = set; then | 
 | 4894 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4895 | else | 
 | 4896 |   case $MV in | 
 | 4897 |   [\\/]* | ?:[\\/]*) | 
 | 4898 |   ac_cv_path_MV="$MV" # Let the user override the test with a path. | 
 | 4899 |   ;; | 
 | 4900 |   *) | 
 | 4901 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4902 | for as_dir in $PATH | 
 | 4903 | do | 
 | 4904 |   IFS=$as_save_IFS | 
 | 4905 |   test -z "$as_dir" && as_dir=. | 
 | 4906 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4907 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4908 |     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" | 
 | 4909 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4910 |     break 2 | 
 | 4911 |   fi | 
 | 4912 | done | 
 | 4913 | done | 
 | 4914 |  | 
 | 4915 |   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" | 
 | 4916 |   ;; | 
 | 4917 | esac | 
 | 4918 | fi | 
 | 4919 | MV=$ac_cv_path_MV | 
 | 4920 |  | 
 | 4921 | if test -n "$MV"; then | 
 | 4922 |   echo "$as_me:$LINENO: result: $MV" >&5 | 
 | 4923 | echo "${ECHO_T}$MV" >&6 | 
 | 4924 | else | 
 | 4925 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 4926 | echo "${ECHO_T}no" >&6 | 
 | 4927 | fi | 
 | 4928 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4929 | if test -n "$ac_tool_prefix"; then | 
 | 4930 |   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
 | 4931 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
 | 4932 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 4933 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 4934 | if test "${ac_cv_prog_RANLIB+set}" = set; then | 
 | 4935 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4936 | else | 
 | 4937 |   if test -n "$RANLIB"; then | 
 | 4938 |   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
 | 4939 | else | 
 | 4940 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4941 | for as_dir in $PATH | 
 | 4942 | do | 
 | 4943 |   IFS=$as_save_IFS | 
 | 4944 |   test -z "$as_dir" && as_dir=. | 
 | 4945 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4946 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4947 |     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
 | 4948 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4949 |     break 2 | 
 | 4950 |   fi | 
 | 4951 | done | 
 | 4952 | done | 
 | 4953 |  | 
 | 4954 | fi | 
 | 4955 | fi | 
 | 4956 | RANLIB=$ac_cv_prog_RANLIB | 
 | 4957 | if test -n "$RANLIB"; then | 
 | 4958 |   echo "$as_me:$LINENO: result: $RANLIB" >&5 | 
 | 4959 | echo "${ECHO_T}$RANLIB" >&6 | 
 | 4960 | else | 
 | 4961 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 4962 | echo "${ECHO_T}no" >&6 | 
 | 4963 | fi | 
 | 4964 |  | 
 | 4965 | fi | 
 | 4966 | if test -z "$ac_cv_prog_RANLIB"; then | 
 | 4967 |   ac_ct_RANLIB=$RANLIB | 
 | 4968 |   # Extract the first word of "ranlib", so it can be a program name with args. | 
 | 4969 | set dummy ranlib; ac_word=$2 | 
 | 4970 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 4971 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 4972 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | 
 | 4973 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4974 | else | 
 | 4975 |   if test -n "$ac_ct_RANLIB"; then | 
 | 4976 |   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
 | 4977 | else | 
 | 4978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4979 | for as_dir in $PATH | 
 | 4980 | do | 
 | 4981 |   IFS=$as_save_IFS | 
 | 4982 |   test -z "$as_dir" && as_dir=. | 
 | 4983 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4984 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4985 |     ac_cv_prog_ac_ct_RANLIB="ranlib" | 
 | 4986 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4987 |     break 2 | 
 | 4988 |   fi | 
 | 4989 | done | 
 | 4990 | done | 
 | 4991 |  | 
 | 4992 |   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | 
 | 4993 | fi | 
 | 4994 | fi | 
 | 4995 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
 | 4996 | if test -n "$ac_ct_RANLIB"; then | 
 | 4997 |   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | 
 | 4998 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | 
 | 4999 | else | 
 | 5000 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5001 | echo "${ECHO_T}no" >&6 | 
 | 5002 | fi | 
 | 5003 |  | 
 | 5004 |   RANLIB=$ac_ct_RANLIB | 
 | 5005 | else | 
 | 5006 |   RANLIB="$ac_cv_prog_RANLIB" | 
 | 5007 | fi | 
 | 5008 |  | 
 | 5009 | # Extract the first word of "rm", so it can be a program name with args. | 
 | 5010 | set dummy rm; ac_word=$2 | 
 | 5011 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5012 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5013 | if test "${ac_cv_path_RM+set}" = set; then | 
 | 5014 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5015 | else | 
 | 5016 |   case $RM in | 
 | 5017 |   [\\/]* | ?:[\\/]*) | 
 | 5018 |   ac_cv_path_RM="$RM" # Let the user override the test with a path. | 
 | 5019 |   ;; | 
 | 5020 |   *) | 
 | 5021 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5022 | for as_dir in $PATH | 
 | 5023 | do | 
 | 5024 |   IFS=$as_save_IFS | 
 | 5025 |   test -z "$as_dir" && as_dir=. | 
 | 5026 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5027 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5028 |     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" | 
 | 5029 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5030 |     break 2 | 
 | 5031 |   fi | 
 | 5032 | done | 
 | 5033 | done | 
 | 5034 |  | 
 | 5035 |   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" | 
 | 5036 |   ;; | 
 | 5037 | esac | 
 | 5038 | fi | 
 | 5039 | RM=$ac_cv_path_RM | 
 | 5040 |  | 
 | 5041 | if test -n "$RM"; then | 
 | 5042 |   echo "$as_me:$LINENO: result: $RM" >&5 | 
 | 5043 | echo "${ECHO_T}$RM" >&6 | 
 | 5044 | else | 
 | 5045 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5046 | echo "${ECHO_T}no" >&6 | 
 | 5047 | fi | 
 | 5048 |  | 
 | 5049 | # Extract the first word of "sed", so it can be a program name with args. | 
 | 5050 | set dummy sed; ac_word=$2 | 
 | 5051 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5052 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5053 | if test "${ac_cv_path_SED+set}" = set; then | 
 | 5054 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5055 | else | 
 | 5056 |   case $SED in | 
 | 5057 |   [\\/]* | ?:[\\/]*) | 
 | 5058 |   ac_cv_path_SED="$SED" # Let the user override the test with a path. | 
 | 5059 |   ;; | 
 | 5060 |   *) | 
 | 5061 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5062 | for as_dir in $PATH | 
 | 5063 | do | 
 | 5064 |   IFS=$as_save_IFS | 
 | 5065 |   test -z "$as_dir" && as_dir=. | 
 | 5066 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5067 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5068 |     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | 
 | 5069 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5070 |     break 2 | 
 | 5071 |   fi | 
 | 5072 | done | 
 | 5073 | done | 
 | 5074 |  | 
 | 5075 |   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" | 
 | 5076 |   ;; | 
 | 5077 | esac | 
 | 5078 | fi | 
 | 5079 | SED=$ac_cv_path_SED | 
 | 5080 |  | 
 | 5081 | if test -n "$SED"; then | 
 | 5082 |   echo "$as_me:$LINENO: result: $SED" >&5 | 
 | 5083 | echo "${ECHO_T}$SED" >&6 | 
 | 5084 | else | 
 | 5085 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5086 | echo "${ECHO_T}no" >&6 | 
 | 5087 | fi | 
 | 5088 |  | 
 | 5089 | # Extract the first word of "tar", so it can be a program name with args. | 
 | 5090 | set dummy tar; ac_word=$2 | 
 | 5091 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5092 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5093 | if test "${ac_cv_path_TAR+set}" = set; then | 
 | 5094 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5095 | else | 
 | 5096 |   case $TAR in | 
 | 5097 |   [\\/]* | ?:[\\/]*) | 
 | 5098 |   ac_cv_path_TAR="$TAR" # Let the user override the test with a path. | 
 | 5099 |   ;; | 
 | 5100 |   *) | 
 | 5101 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5102 | for as_dir in $PATH | 
 | 5103 | do | 
 | 5104 |   IFS=$as_save_IFS | 
 | 5105 |   test -z "$as_dir" && as_dir=. | 
 | 5106 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5107 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5108 |     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" | 
 | 5109 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5110 |     break 2 | 
 | 5111 |   fi | 
 | 5112 | done | 
 | 5113 | done | 
 | 5114 |  | 
 | 5115 |   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" | 
 | 5116 |   ;; | 
 | 5117 | esac | 
 | 5118 | fi | 
 | 5119 | TAR=$ac_cv_path_TAR | 
 | 5120 |  | 
 | 5121 | if test -n "$TAR"; then | 
 | 5122 |   echo "$as_me:$LINENO: result: $TAR" >&5 | 
 | 5123 | echo "${ECHO_T}$TAR" >&6 | 
 | 5124 | else | 
 | 5125 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5126 | echo "${ECHO_T}no" >&6 | 
 | 5127 | fi | 
 | 5128 |  | 
| Reid Spencer | 8a2246f | 2005-07-13 03:20:14 +0000 | [diff] [blame] | 5129 | # Extract the first word of "Graphviz", so it can be a program name with args. | 
 | 5130 | set dummy Graphviz; ac_word=$2 | 
 | 5131 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5132 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5133 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then | 
 | 5134 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5135 | else | 
 | 5136 |   case $GRAPHVIZ in | 
 | 5137 |   [\\/]* | ?:[\\/]*) | 
 | 5138 |   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. | 
 | 5139 |   ;; | 
 | 5140 |   *) | 
 | 5141 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5142 | for as_dir in $PATH | 
 | 5143 | do | 
 | 5144 |   IFS=$as_save_IFS | 
 | 5145 |   test -z "$as_dir" && as_dir=. | 
 | 5146 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5147 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5148 |     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" | 
 | 5149 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5150 |     break 2 | 
 | 5151 |   fi | 
 | 5152 | done | 
 | 5153 | done | 
 | 5154 |  | 
| Reid Spencer | c232a65 | 2005-07-14 02:25:12 +0000 | [diff] [blame] | 5155 |   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" | 
| Reid Spencer | 8a2246f | 2005-07-13 03:20:14 +0000 | [diff] [blame] | 5156 |   ;; | 
 | 5157 | esac | 
 | 5158 | fi | 
 | 5159 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ | 
 | 5160 |  | 
 | 5161 | if test -n "$GRAPHVIZ"; then | 
 | 5162 |   echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 | 
 | 5163 | echo "${ECHO_T}$GRAPHVIZ" >&6 | 
 | 5164 | else | 
 | 5165 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5166 | echo "${ECHO_T}no" >&6 | 
 | 5167 | fi | 
 | 5168 |  | 
| Reid Spencer | c232a65 | 2005-07-14 02:25:12 +0000 | [diff] [blame] | 5169 | if test "$GRAPHVIZ" != "echo Graphviz" ; then | 
| Reid Spencer | 8a2246f | 2005-07-13 03:20:14 +0000 | [diff] [blame] | 5170 |  | 
 | 5171 | cat >>confdefs.h <<\_ACEOF | 
 | 5172 | #define HAVE_GRAPHVIZ 1 | 
 | 5173 | _ACEOF | 
 | 5174 |  | 
| Reid Spencer | c232a65 | 2005-07-14 02:25:12 +0000 | [diff] [blame] | 5175 |  | 
| Reid Spencer | be13028 | 2005-07-14 05:19:12 +0000 | [diff] [blame] | 5176 | cat >>confdefs.h <<_ACEOF | 
| Reid Spencer | c232a65 | 2005-07-14 02:25:12 +0000 | [diff] [blame] | 5177 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ" | 
 | 5178 | _ACEOF | 
 | 5179 |  | 
| Reid Spencer | 8a2246f | 2005-07-13 03:20:14 +0000 | [diff] [blame] | 5180 | fi | 
| Reid Spencer | be13028 | 2005-07-14 05:19:12 +0000 | [diff] [blame] | 5181 | # Extract the first word of "gv", so it can be a program name with args. | 
 | 5182 | set dummy gv; ac_word=$2 | 
 | 5183 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5184 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5185 | if test "${ac_cv_path_GV+set}" = set; then | 
 | 5186 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5187 | else | 
 | 5188 |   case $GV in | 
 | 5189 |   [\\/]* | ?:[\\/]*) | 
 | 5190 |   ac_cv_path_GV="$GV" # Let the user override the test with a path. | 
 | 5191 |   ;; | 
 | 5192 |   *) | 
 | 5193 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5194 | for as_dir in $PATH | 
 | 5195 | do | 
 | 5196 |   IFS=$as_save_IFS | 
 | 5197 |   test -z "$as_dir" && as_dir=. | 
 | 5198 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5199 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5200 |     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" | 
 | 5201 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5202 |     break 2 | 
 | 5203 |   fi | 
 | 5204 | done | 
 | 5205 | done | 
 | 5206 |  | 
 | 5207 |   test -z "$ac_cv_path_GV" && ac_cv_path_GV="echo gv" | 
 | 5208 |   ;; | 
 | 5209 | esac | 
 | 5210 | fi | 
 | 5211 | GV=$ac_cv_path_GV | 
 | 5212 |  | 
 | 5213 | if test -n "$GV"; then | 
 | 5214 |   echo "$as_me:$LINENO: result: $GV" >&5 | 
 | 5215 | echo "${ECHO_T}$GV" >&6 | 
 | 5216 | else | 
 | 5217 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5218 | echo "${ECHO_T}no" >&6 | 
 | 5219 | fi | 
 | 5220 |  | 
| Misha Brukman | f83d406 | 2005-11-01 21:00:49 +0000 | [diff] [blame] | 5221 | if test "$GV" != "echo gv" ; then | 
| Reid Spencer | be13028 | 2005-07-14 05:19:12 +0000 | [diff] [blame] | 5222 |  | 
 | 5223 | cat >>confdefs.h <<\_ACEOF | 
 | 5224 | #define HAVE_GV 1 | 
 | 5225 | _ACEOF | 
 | 5226 |  | 
 | 5227 |  | 
 | 5228 | cat >>confdefs.h <<_ACEOF | 
 | 5229 | #define LLVM_PATH_GV "$GV" | 
 | 5230 | _ACEOF | 
 | 5231 |  | 
 | 5232 | fi | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5233 |  | 
| Reid Spencer | b195d9d | 2006-03-23 23:21:29 +0000 | [diff] [blame] | 5234 |  | 
 | 5235 | # Extract the first word of "perl", so it can be a program name with args. | 
 | 5236 | set dummy perl; ac_word=$2 | 
 | 5237 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5238 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5239 | if test "${ac_cv_path_PERL+set}" = set; then | 
 | 5240 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5241 | else | 
 | 5242 |   case $PERL in | 
 | 5243 |   [\\/]* | ?:[\\/]*) | 
 | 5244 |   ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | 
 | 5245 |   ;; | 
 | 5246 |   *) | 
 | 5247 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5248 | for as_dir in $PATH | 
 | 5249 | do | 
 | 5250 |   IFS=$as_save_IFS | 
 | 5251 |   test -z "$as_dir" && as_dir=. | 
 | 5252 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5253 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5254 |     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | 
 | 5255 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5256 |     break 2 | 
 | 5257 |   fi | 
 | 5258 | done | 
 | 5259 | done | 
 | 5260 |  | 
 | 5261 |   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" | 
 | 5262 |   ;; | 
 | 5263 | esac | 
 | 5264 | fi | 
 | 5265 | PERL=$ac_cv_path_PERL | 
 | 5266 |  | 
 | 5267 | if test -n "$PERL"; then | 
 | 5268 |   echo "$as_me:$LINENO: result: $PERL" >&5 | 
 | 5269 | echo "${ECHO_T}$PERL" >&6 | 
 | 5270 | else | 
 | 5271 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5272 | echo "${ECHO_T}no" >&6 | 
 | 5273 | fi | 
 | 5274 |  | 
 | 5275 | if test "$PERL" != "none"; then | 
 | 5276 |   echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 | 
 | 5277 | echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6 | 
 | 5278 |   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then | 
 | 5279 |     echo "$as_me:$LINENO: result: yes" >&5 | 
 | 5280 | echo "${ECHO_T}yes" >&6 | 
 | 5281 |   else | 
 | 5282 |     PERL=none | 
 | 5283 |     echo "$as_me:$LINENO: result: not found" >&5 | 
 | 5284 | echo "${ECHO_T}not found" >&6 | 
 | 5285 |   fi | 
 | 5286 | fi | 
 | 5287 |  | 
 | 5288 |  | 
 | 5289 | if test x"$PERL" = xnone; then | 
 | 5290 |    HAVE_PERL=0 | 
 | 5291 |  | 
 | 5292 | else | 
 | 5293 |    HAVE_PERL=1 | 
 | 5294 |  | 
 | 5295 | fi | 
 | 5296 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5297 | # Find a good install program.  We prefer a C program (faster), | 
 | 5298 | # so one script is as good as another.  But avoid the broken or | 
 | 5299 | # incompatible versions: | 
 | 5300 | # SysV /etc/install, /usr/sbin/install | 
 | 5301 | # SunOS /usr/etc/install | 
 | 5302 | # IRIX /sbin/install | 
 | 5303 | # AIX /bin/install | 
 | 5304 | # AmigaOS /C/install, which installs bootblocks on floppy discs | 
 | 5305 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
 | 5306 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
 | 5307 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
 | 5308 | # OS/2's system install, which has a completely different semantic | 
 | 5309 | # ./install, which can be erroneously created by make from ./install.sh. | 
 | 5310 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | 
 | 5311 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | 
 | 5312 | if test -z "$INSTALL"; then | 
 | 5313 | if test "${ac_cv_path_install+set}" = set; then | 
 | 5314 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5315 | else | 
 | 5316 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5317 | for as_dir in $PATH | 
 | 5318 | do | 
 | 5319 |   IFS=$as_save_IFS | 
 | 5320 |   test -z "$as_dir" && as_dir=. | 
 | 5321 |   # Account for people who put trailing slashes in PATH elements. | 
 | 5322 | case $as_dir/ in | 
 | 5323 |   ./ | .// | /cC/* | \ | 
 | 5324 |   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 
 | 5325 |   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | 
 | 5326 |   /usr/ucb/* ) ;; | 
 | 5327 |   *) | 
 | 5328 |     # OSF1 and SCO ODT 3.0 have their own names for install. | 
 | 5329 |     # Don't use installbsd from OSF since it installs stuff as root | 
 | 5330 |     # by default. | 
 | 5331 |     for ac_prog in ginstall scoinst install; do | 
 | 5332 |       for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5333 | 	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | 
 | 5334 | 	  if test $ac_prog = install && | 
 | 5335 | 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
 | 5336 | 	    # AIX install.  It has an incompatible calling convention. | 
 | 5337 | 	    : | 
 | 5338 | 	  elif test $ac_prog = install && | 
 | 5339 | 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
 | 5340 | 	    # program-specific install script used by HP pwplus--don't use. | 
 | 5341 | 	    : | 
 | 5342 | 	  else | 
 | 5343 | 	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | 
 | 5344 | 	    break 3 | 
 | 5345 | 	  fi | 
 | 5346 | 	fi | 
 | 5347 |       done | 
 | 5348 |     done | 
 | 5349 |     ;; | 
 | 5350 | esac | 
 | 5351 | done | 
 | 5352 |  | 
 | 5353 |  | 
 | 5354 | fi | 
 | 5355 |   if test "${ac_cv_path_install+set}" = set; then | 
 | 5356 |     INSTALL=$ac_cv_path_install | 
 | 5357 |   else | 
 | 5358 |     # As a last resort, use the slow shell script.  We don't cache a | 
 | 5359 |     # path for INSTALL within a source directory, because that will | 
 | 5360 |     # break other packages using the cache if that directory is | 
 | 5361 |     # removed, or if the path is relative. | 
 | 5362 |     INSTALL=$ac_install_sh | 
 | 5363 |   fi | 
 | 5364 | fi | 
 | 5365 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | 
 | 5366 | echo "${ECHO_T}$INSTALL" >&6 | 
 | 5367 |  | 
 | 5368 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
 | 5369 | # It thinks the first close brace ends the variable substitution. | 
 | 5370 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
 | 5371 |  | 
 | 5372 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | 
 | 5373 |  | 
 | 5374 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
 | 5375 |  | 
 | 5376 |  | 
 | 5377 | # Extract the first word of "bzip2", so it can be a program name with args. | 
 | 5378 | set dummy bzip2; ac_word=$2 | 
 | 5379 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5380 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5381 | if test "${ac_cv_path_BZIP2+set}" = set; then | 
 | 5382 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5383 | else | 
 | 5384 |   case $BZIP2 in | 
 | 5385 |   [\\/]* | ?:[\\/]*) | 
 | 5386 |   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. | 
 | 5387 |   ;; | 
 | 5388 |   *) | 
 | 5389 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5390 | for as_dir in $PATH | 
 | 5391 | do | 
 | 5392 |   IFS=$as_save_IFS | 
 | 5393 |   test -z "$as_dir" && as_dir=. | 
 | 5394 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5395 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5396 |     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" | 
 | 5397 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5398 |     break 2 | 
 | 5399 |   fi | 
 | 5400 | done | 
 | 5401 | done | 
 | 5402 |  | 
| Reid Spencer | f9b458c | 2006-04-27 07:49:24 +0000 | [diff] [blame] | 5403 |   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found"" | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5404 |   ;; | 
 | 5405 | esac | 
 | 5406 | fi | 
 | 5407 | BZIP2=$ac_cv_path_BZIP2 | 
 | 5408 |  | 
 | 5409 | if test -n "$BZIP2"; then | 
 | 5410 |   echo "$as_me:$LINENO: result: $BZIP2" >&5 | 
 | 5411 | echo "${ECHO_T}$BZIP2" >&6 | 
 | 5412 | else | 
 | 5413 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5414 | echo "${ECHO_T}no" >&6 | 
 | 5415 | fi | 
 | 5416 |  | 
 | 5417 | # Extract the first word of "dot", so it can be a program name with args. | 
 | 5418 | set dummy dot; ac_word=$2 | 
 | 5419 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5420 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5421 | if test "${ac_cv_path_DOT+set}" = set; then | 
 | 5422 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5423 | else | 
 | 5424 |   case $DOT in | 
 | 5425 |   [\\/]* | ?:[\\/]*) | 
 | 5426 |   ac_cv_path_DOT="$DOT" # Let the user override the test with a path. | 
 | 5427 |   ;; | 
 | 5428 |   *) | 
 | 5429 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5430 | for as_dir in $PATH | 
 | 5431 | do | 
 | 5432 |   IFS=$as_save_IFS | 
 | 5433 |   test -z "$as_dir" && as_dir=. | 
 | 5434 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5435 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5436 |     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" | 
 | 5437 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5438 |     break 2 | 
 | 5439 |   fi | 
 | 5440 | done | 
 | 5441 | done | 
 | 5442 |  | 
| Reid Spencer | f9b458c | 2006-04-27 07:49:24 +0000 | [diff] [blame] | 5443 |   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo "Skipped: dot not found"" | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5444 |   ;; | 
 | 5445 | esac | 
 | 5446 | fi | 
 | 5447 | DOT=$ac_cv_path_DOT | 
 | 5448 |  | 
 | 5449 | if test -n "$DOT"; then | 
 | 5450 |   echo "$as_me:$LINENO: result: $DOT" >&5 | 
 | 5451 | echo "${ECHO_T}$DOT" >&6 | 
 | 5452 | else | 
 | 5453 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5454 | echo "${ECHO_T}no" >&6 | 
 | 5455 | fi | 
 | 5456 |  | 
 | 5457 | # Extract the first word of "doxygen", so it can be a program name with args. | 
 | 5458 | set dummy doxygen; ac_word=$2 | 
 | 5459 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5460 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5461 | if test "${ac_cv_path_DOXYGEN+set}" = set; then | 
 | 5462 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5463 | else | 
 | 5464 |   case $DOXYGEN in | 
 | 5465 |   [\\/]* | ?:[\\/]*) | 
 | 5466 |   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. | 
 | 5467 |   ;; | 
 | 5468 |   *) | 
 | 5469 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5470 | for as_dir in $PATH | 
 | 5471 | do | 
 | 5472 |   IFS=$as_save_IFS | 
 | 5473 |   test -z "$as_dir" && as_dir=. | 
 | 5474 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5475 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5476 |     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" | 
 | 5477 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5478 |     break 2 | 
 | 5479 |   fi | 
 | 5480 | done | 
 | 5481 | done | 
 | 5482 |  | 
| Reid Spencer | f9b458c | 2006-04-27 07:49:24 +0000 | [diff] [blame] | 5483 |   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found"" | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5484 |   ;; | 
 | 5485 | esac | 
 | 5486 | fi | 
 | 5487 | DOXYGEN=$ac_cv_path_DOXYGEN | 
 | 5488 |  | 
 | 5489 | if test -n "$DOXYGEN"; then | 
 | 5490 |   echo "$as_me:$LINENO: result: $DOXYGEN" >&5 | 
 | 5491 | echo "${ECHO_T}$DOXYGEN" >&6 | 
 | 5492 | else | 
 | 5493 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5494 | echo "${ECHO_T}no" >&6 | 
 | 5495 | fi | 
 | 5496 |  | 
 | 5497 | # Extract the first word of "etags", so it can be a program name with args. | 
 | 5498 | set dummy etags; ac_word=$2 | 
 | 5499 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5500 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5501 | if test "${ac_cv_path_ETAGS+set}" = set; then | 
 | 5502 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5503 | else | 
 | 5504 |   case $ETAGS in | 
 | 5505 |   [\\/]* | ?:[\\/]*) | 
 | 5506 |   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path. | 
 | 5507 |   ;; | 
 | 5508 |   *) | 
 | 5509 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5510 | for as_dir in $PATH | 
 | 5511 | do | 
 | 5512 |   IFS=$as_save_IFS | 
 | 5513 |   test -z "$as_dir" && as_dir=. | 
 | 5514 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5515 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5516 |     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext" | 
 | 5517 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5518 |     break 2 | 
 | 5519 |   fi | 
 | 5520 | done | 
 | 5521 | done | 
 | 5522 |  | 
| Reid Spencer | f9b458c | 2006-04-27 07:49:24 +0000 | [diff] [blame] | 5523 |   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="echo "Skipped: etags not found"" | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5524 |   ;; | 
 | 5525 | esac | 
 | 5526 | fi | 
 | 5527 | ETAGS=$ac_cv_path_ETAGS | 
 | 5528 |  | 
 | 5529 | if test -n "$ETAGS"; then | 
 | 5530 |   echo "$as_me:$LINENO: result: $ETAGS" >&5 | 
 | 5531 | echo "${ECHO_T}$ETAGS" >&6 | 
 | 5532 | else | 
 | 5533 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5534 | echo "${ECHO_T}no" >&6 | 
 | 5535 | fi | 
 | 5536 |  | 
 | 5537 | # Extract the first word of "groff", so it can be a program name with args. | 
 | 5538 | set dummy groff; ac_word=$2 | 
 | 5539 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5540 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5541 | if test "${ac_cv_path_GROFF+set}" = set; then | 
 | 5542 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5543 | else | 
 | 5544 |   case $GROFF in | 
 | 5545 |   [\\/]* | ?:[\\/]*) | 
 | 5546 |   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. | 
 | 5547 |   ;; | 
 | 5548 |   *) | 
 | 5549 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5550 | for as_dir in $PATH | 
 | 5551 | do | 
 | 5552 |   IFS=$as_save_IFS | 
 | 5553 |   test -z "$as_dir" && as_dir=. | 
 | 5554 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5555 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5556 |     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" | 
 | 5557 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5558 |     break 2 | 
 | 5559 |   fi | 
 | 5560 | done | 
 | 5561 | done | 
 | 5562 |  | 
| Reid Spencer | f9b458c | 2006-04-27 07:49:24 +0000 | [diff] [blame] | 5563 |   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found"" | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5564 |   ;; | 
 | 5565 | esac | 
 | 5566 | fi | 
 | 5567 | GROFF=$ac_cv_path_GROFF | 
 | 5568 |  | 
 | 5569 | if test -n "$GROFF"; then | 
 | 5570 |   echo "$as_me:$LINENO: result: $GROFF" >&5 | 
 | 5571 | echo "${ECHO_T}$GROFF" >&6 | 
 | 5572 | else | 
 | 5573 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5574 | echo "${ECHO_T}no" >&6 | 
 | 5575 | fi | 
 | 5576 |  | 
 | 5577 | # Extract the first word of "gzip", so it can be a program name with args. | 
 | 5578 | set dummy gzip; ac_word=$2 | 
 | 5579 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5580 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5581 | if test "${ac_cv_path_GZIP+set}" = set; then | 
 | 5582 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5583 | else | 
 | 5584 |   case $GZIP in | 
 | 5585 |   [\\/]* | ?:[\\/]*) | 
 | 5586 |   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. | 
 | 5587 |   ;; | 
 | 5588 |   *) | 
 | 5589 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5590 | for as_dir in $PATH | 
 | 5591 | do | 
 | 5592 |   IFS=$as_save_IFS | 
 | 5593 |   test -z "$as_dir" && as_dir=. | 
 | 5594 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5595 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5596 |     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" | 
 | 5597 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5598 |     break 2 | 
 | 5599 |   fi | 
 | 5600 | done | 
 | 5601 | done | 
 | 5602 |  | 
| Reid Spencer | f9b458c | 2006-04-27 07:49:24 +0000 | [diff] [blame] | 5603 |   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found"" | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5604 |   ;; | 
 | 5605 | esac | 
 | 5606 | fi | 
 | 5607 | GZIP=$ac_cv_path_GZIP | 
 | 5608 |  | 
 | 5609 | if test -n "$GZIP"; then | 
 | 5610 |   echo "$as_me:$LINENO: result: $GZIP" >&5 | 
 | 5611 | echo "${ECHO_T}$GZIP" >&6 | 
 | 5612 | else | 
 | 5613 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5614 | echo "${ECHO_T}no" >&6 | 
 | 5615 | fi | 
 | 5616 |  | 
 | 5617 | # Extract the first word of "pod2html", so it can be a program name with args. | 
 | 5618 | set dummy pod2html; ac_word=$2 | 
 | 5619 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5620 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5621 | if test "${ac_cv_path_POD2HTML+set}" = set; then | 
 | 5622 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5623 | else | 
 | 5624 |   case $POD2HTML in | 
 | 5625 |   [\\/]* | ?:[\\/]*) | 
 | 5626 |   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. | 
 | 5627 |   ;; | 
 | 5628 |   *) | 
 | 5629 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5630 | for as_dir in $PATH | 
 | 5631 | do | 
 | 5632 |   IFS=$as_save_IFS | 
 | 5633 |   test -z "$as_dir" && as_dir=. | 
 | 5634 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5635 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5636 |     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" | 
 | 5637 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5638 |     break 2 | 
 | 5639 |   fi | 
 | 5640 | done | 
 | 5641 | done | 
 | 5642 |  | 
| Reid Spencer | f9b458c | 2006-04-27 07:49:24 +0000 | [diff] [blame] | 5643 |   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found"" | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5644 |   ;; | 
 | 5645 | esac | 
 | 5646 | fi | 
 | 5647 | POD2HTML=$ac_cv_path_POD2HTML | 
 | 5648 |  | 
 | 5649 | if test -n "$POD2HTML"; then | 
 | 5650 |   echo "$as_me:$LINENO: result: $POD2HTML" >&5 | 
 | 5651 | echo "${ECHO_T}$POD2HTML" >&6 | 
 | 5652 | else | 
 | 5653 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5654 | echo "${ECHO_T}no" >&6 | 
 | 5655 | fi | 
 | 5656 |  | 
 | 5657 | # Extract the first word of "pod2man", so it can be a program name with args. | 
 | 5658 | set dummy pod2man; ac_word=$2 | 
 | 5659 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5660 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5661 | if test "${ac_cv_path_POD2MAN+set}" = set; then | 
 | 5662 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5663 | else | 
 | 5664 |   case $POD2MAN in | 
 | 5665 |   [\\/]* | ?:[\\/]*) | 
 | 5666 |   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. | 
 | 5667 |   ;; | 
 | 5668 |   *) | 
 | 5669 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5670 | for as_dir in $PATH | 
 | 5671 | do | 
 | 5672 |   IFS=$as_save_IFS | 
 | 5673 |   test -z "$as_dir" && as_dir=. | 
 | 5674 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5675 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5676 |     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" | 
 | 5677 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5678 |     break 2 | 
 | 5679 |   fi | 
 | 5680 | done | 
 | 5681 | done | 
 | 5682 |  | 
| Reid Spencer | f9b458c | 2006-04-27 07:49:24 +0000 | [diff] [blame] | 5683 |   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found"" | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5684 |   ;; | 
 | 5685 | esac | 
 | 5686 | fi | 
 | 5687 | POD2MAN=$ac_cv_path_POD2MAN | 
 | 5688 |  | 
 | 5689 | if test -n "$POD2MAN"; then | 
 | 5690 |   echo "$as_me:$LINENO: result: $POD2MAN" >&5 | 
 | 5691 | echo "${ECHO_T}$POD2MAN" >&6 | 
 | 5692 | else | 
 | 5693 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5694 | echo "${ECHO_T}no" >&6 | 
 | 5695 | fi | 
 | 5696 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5697 | # Extract the first word of "runtest", so it can be a program name with args. | 
 | 5698 | set dummy runtest; ac_word=$2 | 
 | 5699 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5700 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5701 | if test "${ac_cv_path_RUNTEST+set}" = set; then | 
 | 5702 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5703 | else | 
 | 5704 |   case $RUNTEST in | 
 | 5705 |   [\\/]* | ?:[\\/]*) | 
 | 5706 |   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. | 
 | 5707 |   ;; | 
 | 5708 |   *) | 
 | 5709 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5710 | for as_dir in $PATH | 
 | 5711 | do | 
 | 5712 |   IFS=$as_save_IFS | 
 | 5713 |   test -z "$as_dir" && as_dir=. | 
 | 5714 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5715 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5716 |     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" | 
 | 5717 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5718 |     break 2 | 
 | 5719 |   fi | 
 | 5720 | done | 
 | 5721 | done | 
 | 5722 |  | 
| Reid Spencer | f9b458c | 2006-04-27 07:49:24 +0000 | [diff] [blame] | 5723 |   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found"" | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5724 |   ;; | 
 | 5725 | esac | 
 | 5726 | fi | 
 | 5727 | RUNTEST=$ac_cv_path_RUNTEST | 
 | 5728 |  | 
 | 5729 | if test -n "$RUNTEST"; then | 
 | 5730 |   echo "$as_me:$LINENO: result: $RUNTEST" >&5 | 
 | 5731 | echo "${ECHO_T}$RUNTEST" >&6 | 
 | 5732 | else | 
 | 5733 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5734 | echo "${ECHO_T}no" >&6 | 
 | 5735 | fi | 
 | 5736 |  | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5737 |  | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5738 | no_itcl=true | 
| Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5739 | echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 | 
 | 5740 | echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6 | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5741 |  | 
 | 5742 | # Check whether --with-tclinclude or --without-tclinclude was given. | 
 | 5743 | if test "${with_tclinclude+set}" = set; then | 
 | 5744 |   withval="$with_tclinclude" | 
 | 5745 |   with_tclinclude=${withval} | 
| Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5746 | else | 
 | 5747 |   with_tclinclude='' | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5748 | fi; | 
 | 5749 | if test "${ac_cv_path_tclsh+set}" = set; then | 
 | 5750 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5751 | else | 
 | 5752 |  | 
 | 5753 | if test x"${with_tclinclude}" != x ; then | 
 | 5754 |   if test -f ${with_tclinclude}/tclsh ; then | 
 | 5755 |     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` | 
 | 5756 |   elif test -f ${with_tclinclude}/src/tclsh ; then | 
 | 5757 |     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` | 
 | 5758 |   else | 
 | 5759 |     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 | 
 | 5760 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} | 
 | 5761 |    { (exit 1); exit 1; }; } | 
 | 5762 |   fi | 
 | 5763 | fi | 
 | 5764 |  | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5765 | if test x"${ac_cv_path_tclsh}" = x ; then | 
| Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5766 |   echo "$as_me:$LINENO: result: none" >&5 | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5767 | echo "${ECHO_T}none" >&6 | 
| Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 5768 |   for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh | 
| Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5769 | do | 
 | 5770 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 5771 | set dummy $ac_prog; ac_word=$2 | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5772 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5773 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
| Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5774 | if test "${ac_cv_path_TCLSH+set}" = set; then | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5775 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5776 | else | 
| Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5777 |   case $TCLSH in | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5778 |   [\\/]* | ?:[\\/]*) | 
| Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5779 |   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5780 |   ;; | 
 | 5781 |   *) | 
 | 5782 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5783 | for as_dir in $PATH | 
 | 5784 | do | 
 | 5785 |   IFS=$as_save_IFS | 
 | 5786 |   test -z "$as_dir" && as_dir=. | 
 | 5787 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5788 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5789 |     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5790 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5791 |     break 2 | 
 | 5792 |   fi | 
 | 5793 | done | 
 | 5794 | done | 
 | 5795 |  | 
 | 5796 |   ;; | 
 | 5797 | esac | 
 | 5798 | fi | 
| Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5799 | TCLSH=$ac_cv_path_TCLSH | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5800 |  | 
| Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5801 | if test -n "$TCLSH"; then | 
 | 5802 |   echo "$as_me:$LINENO: result: $TCLSH" >&5 | 
 | 5803 | echo "${ECHO_T}$TCLSH" >&6 | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5804 | else | 
 | 5805 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5806 | echo "${ECHO_T}no" >&6 | 
 | 5807 | fi | 
 | 5808 |  | 
| Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5809 |   test -n "$TCLSH" && break | 
 | 5810 | done | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5811 |  | 
| Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5812 |   if test x"${TCLSH}" = x ; then | 
 | 5813 |     ac_cv_path_tclsh=''; | 
 | 5814 |   else | 
 | 5815 |     ac_cv_path_tclsh="${TCLSH}"; | 
 | 5816 |   fi | 
 | 5817 | else | 
 | 5818 |   echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 | 
 | 5819 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6 | 
 | 5820 |   TCLSH="${ac_cv_path_tclsh}" | 
 | 5821 |  | 
 | 5822 | fi | 
 | 5823 |  | 
 | 5824 | fi | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5825 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5826 | # Extract the first word of "zip", so it can be a program name with args. | 
 | 5827 | set dummy zip; ac_word=$2 | 
 | 5828 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5829 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5830 | if test "${ac_cv_path_ZIP+set}" = set; then | 
 | 5831 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5832 | else | 
 | 5833 |   case $ZIP in | 
 | 5834 |   [\\/]* | ?:[\\/]*) | 
 | 5835 |   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. | 
 | 5836 |   ;; | 
 | 5837 |   *) | 
 | 5838 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5839 | for as_dir in $PATH | 
 | 5840 | do | 
 | 5841 |   IFS=$as_save_IFS | 
 | 5842 |   test -z "$as_dir" && as_dir=. | 
 | 5843 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5844 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5845 |     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" | 
 | 5846 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5847 |     break 2 | 
 | 5848 |   fi | 
 | 5849 | done | 
 | 5850 | done | 
 | 5851 |  | 
| Reid Spencer | f9b458c | 2006-04-27 07:49:24 +0000 | [diff] [blame] | 5852 |   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found"" | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5853 |   ;; | 
 | 5854 | esac | 
 | 5855 | fi | 
 | 5856 | ZIP=$ac_cv_path_ZIP | 
 | 5857 |  | 
 | 5858 | if test -n "$ZIP"; then | 
 | 5859 |   echo "$as_me:$LINENO: result: $ZIP" >&5 | 
 | 5860 | echo "${ECHO_T}$ZIP" >&6 | 
 | 5861 | else | 
 | 5862 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5863 | echo "${ECHO_T}no" >&6 | 
 | 5864 | fi | 
 | 5865 |  | 
 | 5866 |  | 
 | 5867 | echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 | 
 | 5868 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6 | 
 | 5869 | if test "${llvm_cv_link_use_r+set}" = set; then | 
 | 5870 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5871 | else | 
 | 5872 |    ac_ext=c | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5873 | ac_cpp='$CPP $CPPFLAGS' | 
 | 5874 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 5875 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 5876 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 5877 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5878 |   oldcflags="$CFLAGS" | 
 | 5879 |   CFLAGS="$CFLAGS -Wl,-R." | 
 | 5880 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5881 | /* confdefs.h.  */ | 
 | 5882 | _ACEOF | 
 | 5883 | cat confdefs.h >>conftest.$ac_ext | 
 | 5884 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 5885 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5886 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5887 | int | 
 | 5888 | main () | 
 | 5889 | { | 
 | 5890 | int main() { return 0; } | 
 | 5891 |   ; | 
 | 5892 |   return 0; | 
 | 5893 | } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5894 | _ACEOF | 
 | 5895 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 5896 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5897 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5898 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5899 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 5900 |   rm -f conftest.er1 | 
 | 5901 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5902 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5903 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5904 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 5905 | 			 || test ! -s conftest.err' | 
 | 5906 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 5907 |   (eval $ac_try) 2>&5 | 
 | 5908 |   ac_status=$? | 
 | 5909 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5910 |   (exit $ac_status); }; } && | 
 | 5911 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5912 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 5913 |   (eval $ac_try) 2>&5 | 
 | 5914 |   ac_status=$? | 
 | 5915 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5916 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5917 |   llvm_cv_link_use_r=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5918 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5919 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5920 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 5921 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5922 | llvm_cv_link_use_r=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5923 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5924 | rm -f conftest.err conftest.$ac_objext \ | 
 | 5925 |       conftest$ac_exeext conftest.$ac_ext | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5926 |   CFLAGS="$oldcflags" | 
 | 5927 |   ac_ext=c | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5928 | ac_cpp='$CPP $CPPFLAGS' | 
 | 5929 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 5930 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 5931 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 5932 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5933 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5934 | fi | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5935 | echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 | 
 | 5936 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6 | 
 | 5937 | if test "$llvm_cv_link_use_r" = yes ; then | 
 | 5938 |  | 
 | 5939 | cat >>confdefs.h <<\_ACEOF | 
 | 5940 | #define HAVE_LINK_R 1 | 
 | 5941 | _ACEOF | 
 | 5942 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5943 |   fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5944 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5945 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5946 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5947 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5948 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | 
 | 5949 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | 
 | 5950 | if test "${ac_cv_c_const+set}" = set; then | 
 | 5951 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5952 | else | 
 | 5953 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 5954 | /* confdefs.h.  */ | 
 | 5955 | _ACEOF | 
 | 5956 | cat confdefs.h >>conftest.$ac_ext | 
 | 5957 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 5958 | /* end confdefs.h.  */ | 
 | 5959 |  | 
 | 5960 | int | 
 | 5961 | main () | 
 | 5962 | { | 
 | 5963 | /* FIXME: Include the comments suggested by Paul. */ | 
 | 5964 | #ifndef __cplusplus | 
 | 5965 |   /* Ultrix mips cc rejects this.  */ | 
 | 5966 |   typedef int charset[2]; | 
 | 5967 |   const charset x; | 
 | 5968 |   /* SunOS 4.1.1 cc rejects this.  */ | 
 | 5969 |   char const *const *ccp; | 
 | 5970 |   char **p; | 
 | 5971 |   /* NEC SVR4.0.2 mips cc rejects this.  */ | 
 | 5972 |   struct point {int x, y;}; | 
 | 5973 |   static struct point const zero = {0,0}; | 
 | 5974 |   /* AIX XL C 1.02.0.0 rejects this. | 
 | 5975 |      It does not let you subtract one const X* pointer from another in | 
 | 5976 |      an arm of an if-expression whose if-part is not a constant | 
 | 5977 |      expression */ | 
 | 5978 |   const char *g = "string"; | 
 | 5979 |   ccp = &g + (g ? g-g : 0); | 
 | 5980 |   /* HPUX 7.0 cc rejects these. */ | 
 | 5981 |   ++ccp; | 
 | 5982 |   p = (char**) ccp; | 
 | 5983 |   ccp = (char const *const *) p; | 
 | 5984 |   { /* SCO 3.2v4 cc rejects this.  */ | 
 | 5985 |     char *t; | 
 | 5986 |     char const *s = 0 ? (char *) 0 : (char const *) 0; | 
 | 5987 |  | 
 | 5988 |     *t++ = 0; | 
 | 5989 |   } | 
 | 5990 |   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */ | 
 | 5991 |     int x[] = {25, 17}; | 
 | 5992 |     const int *foo = &x[0]; | 
 | 5993 |     ++foo; | 
 | 5994 |   } | 
 | 5995 |   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | 
 | 5996 |     typedef const int *iptr; | 
 | 5997 |     iptr p = 0; | 
 | 5998 |     ++p; | 
 | 5999 |   } | 
 | 6000 |   { /* AIX XL C 1.02.0.0 rejects this saying | 
 | 6001 |        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | 
 | 6002 |     struct s { int j; const int *ap[3]; }; | 
 | 6003 |     struct s *b; b->j = 5; | 
 | 6004 |   } | 
 | 6005 |   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 
 | 6006 |     const int foo = 10; | 
 | 6007 |   } | 
 | 6008 | #endif | 
 | 6009 |  | 
 | 6010 |   ; | 
 | 6011 |   return 0; | 
 | 6012 | } | 
 | 6013 | _ACEOF | 
 | 6014 | rm -f conftest.$ac_objext | 
 | 6015 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 6016 |   (eval $ac_compile) 2>conftest.er1 | 
 | 6017 |   ac_status=$? | 
 | 6018 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 6019 |   rm -f conftest.er1 | 
 | 6020 |   cat conftest.err >&5 | 
 | 6021 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6022 |   (exit $ac_status); } && | 
 | 6023 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 6024 | 			 || test ! -s conftest.err' | 
 | 6025 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6026 |   (eval $ac_try) 2>&5 | 
 | 6027 |   ac_status=$? | 
 | 6028 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6029 |   (exit $ac_status); }; } && | 
 | 6030 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 6031 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6032 |   (eval $ac_try) 2>&5 | 
 | 6033 |   ac_status=$? | 
 | 6034 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6035 |   (exit $ac_status); }; }; then | 
 | 6036 |   ac_cv_c_const=yes | 
 | 6037 | else | 
 | 6038 |   echo "$as_me: failed program was:" >&5 | 
 | 6039 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 6040 |  | 
 | 6041 | ac_cv_c_const=no | 
 | 6042 | fi | 
 | 6043 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 6044 | fi | 
 | 6045 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | 
 | 6046 | echo "${ECHO_T}$ac_cv_c_const" >&6 | 
 | 6047 | if test $ac_cv_c_const = no; then | 
 | 6048 |  | 
 | 6049 | cat >>confdefs.h <<\_ACEOF | 
 | 6050 | #define const | 
 | 6051 | _ACEOF | 
 | 6052 |  | 
 | 6053 | fi | 
 | 6054 |  | 
 | 6055 |  | 
 | 6056 | echo "$as_me:$LINENO: checking for egrep" >&5 | 
 | 6057 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | 
 | 6058 | if test "${ac_cv_prog_egrep+set}" = set; then | 
 | 6059 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 6060 | else | 
 | 6061 |   if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | 
 | 6062 |     then ac_cv_prog_egrep='grep -E' | 
 | 6063 |     else ac_cv_prog_egrep='egrep' | 
 | 6064 |     fi | 
 | 6065 | fi | 
 | 6066 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | 
 | 6067 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | 
 | 6068 |  EGREP=$ac_cv_prog_egrep | 
 | 6069 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6070 |  | 
 | 6071 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | 
 | 6072 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | 
 | 6073 | if test "${ac_cv_header_stdc+set}" = set; then | 
 | 6074 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 6075 | else | 
 | 6076 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6077 | /* confdefs.h.  */ | 
 | 6078 | _ACEOF | 
 | 6079 | cat confdefs.h >>conftest.$ac_ext | 
 | 6080 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 6081 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6082 | #include <stdlib.h> | 
 | 6083 | #include <stdarg.h> | 
 | 6084 | #include <string.h> | 
 | 6085 | #include <float.h> | 
 | 6086 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6087 | int | 
 | 6088 | main () | 
 | 6089 | { | 
 | 6090 |  | 
 | 6091 |   ; | 
 | 6092 |   return 0; | 
 | 6093 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6094 | _ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6095 | rm -f conftest.$ac_objext | 
 | 6096 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6097 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6098 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6099 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 6100 |   rm -f conftest.er1 | 
 | 6101 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6102 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6103 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6104 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 6105 | 			 || test ! -s conftest.err' | 
 | 6106 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6107 |   (eval $ac_try) 2>&5 | 
 | 6108 |   ac_status=$? | 
 | 6109 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6110 |   (exit $ac_status); }; } && | 
 | 6111 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6112 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6113 |   (eval $ac_try) 2>&5 | 
 | 6114 |   ac_status=$? | 
 | 6115 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6116 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6117 |   ac_cv_header_stdc=yes | 
 | 6118 | else | 
 | 6119 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6120 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 6121 |  | 
 | 6122 | ac_cv_header_stdc=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6123 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6124 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6125 |  | 
 | 6126 | if test $ac_cv_header_stdc = yes; then | 
 | 6127 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
 | 6128 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6129 | /* confdefs.h.  */ | 
 | 6130 | _ACEOF | 
 | 6131 | cat confdefs.h >>conftest.$ac_ext | 
 | 6132 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 6133 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6134 | #include <string.h> | 
 | 6135 |  | 
 | 6136 | _ACEOF | 
 | 6137 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6138 |   $EGREP "memchr" >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6139 |   : | 
 | 6140 | else | 
 | 6141 |   ac_cv_header_stdc=no | 
 | 6142 | fi | 
 | 6143 | rm -f conftest* | 
 | 6144 |  | 
 | 6145 | fi | 
 | 6146 |  | 
 | 6147 | if test $ac_cv_header_stdc = yes; then | 
 | 6148 |   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
 | 6149 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6150 | /* confdefs.h.  */ | 
 | 6151 | _ACEOF | 
 | 6152 | cat confdefs.h >>conftest.$ac_ext | 
 | 6153 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 6154 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6155 | #include <stdlib.h> | 
 | 6156 |  | 
 | 6157 | _ACEOF | 
 | 6158 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6159 |   $EGREP "free" >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6160 |   : | 
 | 6161 | else | 
 | 6162 |   ac_cv_header_stdc=no | 
 | 6163 | fi | 
 | 6164 | rm -f conftest* | 
 | 6165 |  | 
 | 6166 | fi | 
 | 6167 |  | 
 | 6168 | if test $ac_cv_header_stdc = yes; then | 
 | 6169 |   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
 | 6170 |   if test "$cross_compiling" = yes; then | 
 | 6171 |   : | 
 | 6172 | else | 
 | 6173 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6174 | /* confdefs.h.  */ | 
 | 6175 | _ACEOF | 
 | 6176 | cat confdefs.h >>conftest.$ac_ext | 
 | 6177 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 6178 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6179 | #include <ctype.h> | 
 | 6180 | #if ((' ' & 0x0FF) == 0x020) | 
 | 6181 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 6182 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
 | 6183 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6184 | # define ISLOWER(c) \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6185 | 		   (('a' <= (c) && (c) <= 'i') \ | 
 | 6186 | 		     || ('j' <= (c) && (c) <= 'r') \ | 
 | 6187 | 		     || ('s' <= (c) && (c) <= 'z')) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6188 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
 | 6189 | #endif | 
 | 6190 |  | 
 | 6191 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
 | 6192 | int | 
 | 6193 | main () | 
 | 6194 | { | 
 | 6195 |   int i; | 
 | 6196 |   for (i = 0; i < 256; i++) | 
 | 6197 |     if (XOR (islower (i), ISLOWER (i)) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6198 | 	|| toupper (i) != TOUPPER (i)) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6199 |       exit(2); | 
 | 6200 |   exit (0); | 
 | 6201 | } | 
 | 6202 | _ACEOF | 
 | 6203 | rm -f conftest$ac_exeext | 
 | 6204 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 6205 |   (eval $ac_link) 2>&5 | 
 | 6206 |   ac_status=$? | 
 | 6207 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6208 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
 | 6209 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6210 |   (eval $ac_try) 2>&5 | 
 | 6211 |   ac_status=$? | 
 | 6212 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6213 |   (exit $ac_status); }; }; then | 
 | 6214 |   : | 
 | 6215 | else | 
 | 6216 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 6217 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6218 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 6219 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6220 | ( exit $ac_status ) | 
 | 6221 | ac_cv_header_stdc=no | 
 | 6222 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6223 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6224 | fi | 
 | 6225 | fi | 
 | 6226 | fi | 
 | 6227 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | 
 | 6228 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | 
 | 6229 | if test $ac_cv_header_stdc = yes; then | 
 | 6230 |  | 
 | 6231 | cat >>confdefs.h <<\_ACEOF | 
 | 6232 | #define STDC_HEADERS 1 | 
 | 6233 | _ACEOF | 
 | 6234 |  | 
 | 6235 | fi | 
 | 6236 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 6237 |  | 
 | 6238 |  | 
 | 6239 |  | 
 | 6240 |  | 
 | 6241 |  | 
 | 6242 | ac_header_dirent=no | 
 | 6243 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | 
 | 6244 |   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | 
 | 6245 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | 
 | 6246 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | 
 | 6247 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 6248 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 6249 | else | 
 | 6250 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 6251 | /* confdefs.h.  */ | 
 | 6252 | _ACEOF | 
 | 6253 | cat confdefs.h >>conftest.$ac_ext | 
 | 6254 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 6255 | /* end confdefs.h.  */ | 
 | 6256 | #include <sys/types.h> | 
 | 6257 | #include <$ac_hdr> | 
 | 6258 |  | 
 | 6259 | int | 
 | 6260 | main () | 
 | 6261 | { | 
 | 6262 | if ((DIR *) 0) | 
 | 6263 | return 0; | 
 | 6264 |   ; | 
 | 6265 |   return 0; | 
 | 6266 | } | 
 | 6267 | _ACEOF | 
 | 6268 | rm -f conftest.$ac_objext | 
 | 6269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 6270 |   (eval $ac_compile) 2>conftest.er1 | 
 | 6271 |   ac_status=$? | 
 | 6272 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 6273 |   rm -f conftest.er1 | 
 | 6274 |   cat conftest.err >&5 | 
 | 6275 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6276 |   (exit $ac_status); } && | 
 | 6277 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 6278 | 			 || test ! -s conftest.err' | 
 | 6279 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6280 |   (eval $ac_try) 2>&5 | 
 | 6281 |   ac_status=$? | 
 | 6282 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6283 |   (exit $ac_status); }; } && | 
 | 6284 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 6285 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6286 |   (eval $ac_try) 2>&5 | 
 | 6287 |   ac_status=$? | 
 | 6288 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6289 |   (exit $ac_status); }; }; then | 
 | 6290 |   eval "$as_ac_Header=yes" | 
 | 6291 | else | 
 | 6292 |   echo "$as_me: failed program was:" >&5 | 
 | 6293 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 6294 |  | 
 | 6295 | eval "$as_ac_Header=no" | 
 | 6296 | fi | 
 | 6297 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 6298 | fi | 
 | 6299 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 6300 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 6301 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 6302 |   cat >>confdefs.h <<_ACEOF | 
 | 6303 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | 
 | 6304 | _ACEOF | 
 | 6305 |  | 
 | 6306 | ac_header_dirent=$ac_hdr; break | 
 | 6307 | fi | 
 | 6308 |  | 
 | 6309 | done | 
 | 6310 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
 | 6311 | if test $ac_header_dirent = dirent.h; then | 
 | 6312 |   echo "$as_me:$LINENO: checking for library containing opendir" >&5 | 
 | 6313 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | 
 | 6314 | if test "${ac_cv_search_opendir+set}" = set; then | 
 | 6315 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 6316 | else | 
 | 6317 |   ac_func_search_save_LIBS=$LIBS | 
 | 6318 | ac_cv_search_opendir=no | 
 | 6319 | cat >conftest.$ac_ext <<_ACEOF | 
 | 6320 | /* confdefs.h.  */ | 
 | 6321 | _ACEOF | 
 | 6322 | cat confdefs.h >>conftest.$ac_ext | 
 | 6323 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 6324 | /* end confdefs.h.  */ | 
 | 6325 |  | 
 | 6326 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 6327 | #ifdef __cplusplus | 
 | 6328 | extern "C" | 
 | 6329 | #endif | 
 | 6330 | /* We use char because int might match the return type of a gcc2 | 
 | 6331 |    builtin and then its argument prototype would still apply.  */ | 
 | 6332 | char opendir (); | 
 | 6333 | int | 
 | 6334 | main () | 
 | 6335 | { | 
 | 6336 | opendir (); | 
 | 6337 |   ; | 
 | 6338 |   return 0; | 
 | 6339 | } | 
 | 6340 | _ACEOF | 
 | 6341 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 6342 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 6343 |   (eval $ac_link) 2>conftest.er1 | 
 | 6344 |   ac_status=$? | 
 | 6345 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 6346 |   rm -f conftest.er1 | 
 | 6347 |   cat conftest.err >&5 | 
 | 6348 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6349 |   (exit $ac_status); } && | 
 | 6350 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 6351 | 			 || test ! -s conftest.err' | 
 | 6352 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6353 |   (eval $ac_try) 2>&5 | 
 | 6354 |   ac_status=$? | 
 | 6355 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6356 |   (exit $ac_status); }; } && | 
 | 6357 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 6358 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6359 |   (eval $ac_try) 2>&5 | 
 | 6360 |   ac_status=$? | 
 | 6361 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6362 |   (exit $ac_status); }; }; then | 
 | 6363 |   ac_cv_search_opendir="none required" | 
 | 6364 | else | 
 | 6365 |   echo "$as_me: failed program was:" >&5 | 
 | 6366 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 6367 |  | 
 | 6368 | fi | 
 | 6369 | rm -f conftest.err conftest.$ac_objext \ | 
 | 6370 |       conftest$ac_exeext conftest.$ac_ext | 
 | 6371 | if test "$ac_cv_search_opendir" = no; then | 
 | 6372 |   for ac_lib in dir; do | 
 | 6373 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
 | 6374 |     cat >conftest.$ac_ext <<_ACEOF | 
 | 6375 | /* confdefs.h.  */ | 
 | 6376 | _ACEOF | 
 | 6377 | cat confdefs.h >>conftest.$ac_ext | 
 | 6378 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 6379 | /* end confdefs.h.  */ | 
 | 6380 |  | 
 | 6381 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 6382 | #ifdef __cplusplus | 
 | 6383 | extern "C" | 
 | 6384 | #endif | 
 | 6385 | /* We use char because int might match the return type of a gcc2 | 
 | 6386 |    builtin and then its argument prototype would still apply.  */ | 
 | 6387 | char opendir (); | 
 | 6388 | int | 
 | 6389 | main () | 
 | 6390 | { | 
 | 6391 | opendir (); | 
 | 6392 |   ; | 
 | 6393 |   return 0; | 
 | 6394 | } | 
 | 6395 | _ACEOF | 
 | 6396 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 6397 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 6398 |   (eval $ac_link) 2>conftest.er1 | 
 | 6399 |   ac_status=$? | 
 | 6400 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 6401 |   rm -f conftest.er1 | 
 | 6402 |   cat conftest.err >&5 | 
 | 6403 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6404 |   (exit $ac_status); } && | 
 | 6405 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 6406 | 			 || test ! -s conftest.err' | 
 | 6407 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6408 |   (eval $ac_try) 2>&5 | 
 | 6409 |   ac_status=$? | 
 | 6410 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6411 |   (exit $ac_status); }; } && | 
 | 6412 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 6413 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6414 |   (eval $ac_try) 2>&5 | 
 | 6415 |   ac_status=$? | 
 | 6416 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6417 |   (exit $ac_status); }; }; then | 
 | 6418 |   ac_cv_search_opendir="-l$ac_lib" | 
 | 6419 | break | 
 | 6420 | else | 
 | 6421 |   echo "$as_me: failed program was:" >&5 | 
 | 6422 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 6423 |  | 
 | 6424 | fi | 
 | 6425 | rm -f conftest.err conftest.$ac_objext \ | 
 | 6426 |       conftest$ac_exeext conftest.$ac_ext | 
 | 6427 |   done | 
 | 6428 | fi | 
 | 6429 | LIBS=$ac_func_search_save_LIBS | 
 | 6430 | fi | 
 | 6431 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | 
 | 6432 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | 
 | 6433 | if test "$ac_cv_search_opendir" != no; then | 
 | 6434 |   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | 
 | 6435 |  | 
 | 6436 | fi | 
 | 6437 |  | 
 | 6438 | else | 
 | 6439 |   echo "$as_me:$LINENO: checking for library containing opendir" >&5 | 
 | 6440 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | 
 | 6441 | if test "${ac_cv_search_opendir+set}" = set; then | 
 | 6442 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 6443 | else | 
 | 6444 |   ac_func_search_save_LIBS=$LIBS | 
 | 6445 | ac_cv_search_opendir=no | 
 | 6446 | cat >conftest.$ac_ext <<_ACEOF | 
 | 6447 | /* confdefs.h.  */ | 
 | 6448 | _ACEOF | 
 | 6449 | cat confdefs.h >>conftest.$ac_ext | 
 | 6450 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 6451 | /* end confdefs.h.  */ | 
 | 6452 |  | 
 | 6453 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 6454 | #ifdef __cplusplus | 
 | 6455 | extern "C" | 
 | 6456 | #endif | 
 | 6457 | /* We use char because int might match the return type of a gcc2 | 
 | 6458 |    builtin and then its argument prototype would still apply.  */ | 
 | 6459 | char opendir (); | 
 | 6460 | int | 
 | 6461 | main () | 
 | 6462 | { | 
 | 6463 | opendir (); | 
 | 6464 |   ; | 
 | 6465 |   return 0; | 
 | 6466 | } | 
 | 6467 | _ACEOF | 
 | 6468 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 6469 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 6470 |   (eval $ac_link) 2>conftest.er1 | 
 | 6471 |   ac_status=$? | 
 | 6472 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 6473 |   rm -f conftest.er1 | 
 | 6474 |   cat conftest.err >&5 | 
 | 6475 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6476 |   (exit $ac_status); } && | 
 | 6477 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 6478 | 			 || test ! -s conftest.err' | 
 | 6479 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6480 |   (eval $ac_try) 2>&5 | 
 | 6481 |   ac_status=$? | 
 | 6482 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6483 |   (exit $ac_status); }; } && | 
 | 6484 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 6485 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6486 |   (eval $ac_try) 2>&5 | 
 | 6487 |   ac_status=$? | 
 | 6488 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6489 |   (exit $ac_status); }; }; then | 
 | 6490 |   ac_cv_search_opendir="none required" | 
 | 6491 | else | 
 | 6492 |   echo "$as_me: failed program was:" >&5 | 
 | 6493 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 6494 |  | 
 | 6495 | fi | 
 | 6496 | rm -f conftest.err conftest.$ac_objext \ | 
 | 6497 |       conftest$ac_exeext conftest.$ac_ext | 
 | 6498 | if test "$ac_cv_search_opendir" = no; then | 
 | 6499 |   for ac_lib in x; do | 
 | 6500 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
 | 6501 |     cat >conftest.$ac_ext <<_ACEOF | 
 | 6502 | /* confdefs.h.  */ | 
 | 6503 | _ACEOF | 
 | 6504 | cat confdefs.h >>conftest.$ac_ext | 
 | 6505 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 6506 | /* end confdefs.h.  */ | 
 | 6507 |  | 
 | 6508 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 6509 | #ifdef __cplusplus | 
 | 6510 | extern "C" | 
 | 6511 | #endif | 
 | 6512 | /* We use char because int might match the return type of a gcc2 | 
 | 6513 |    builtin and then its argument prototype would still apply.  */ | 
 | 6514 | char opendir (); | 
 | 6515 | int | 
 | 6516 | main () | 
 | 6517 | { | 
 | 6518 | opendir (); | 
 | 6519 |   ; | 
 | 6520 |   return 0; | 
 | 6521 | } | 
 | 6522 | _ACEOF | 
 | 6523 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 6524 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 6525 |   (eval $ac_link) 2>conftest.er1 | 
 | 6526 |   ac_status=$? | 
 | 6527 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 6528 |   rm -f conftest.er1 | 
 | 6529 |   cat conftest.err >&5 | 
 | 6530 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6531 |   (exit $ac_status); } && | 
 | 6532 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 6533 | 			 || test ! -s conftest.err' | 
 | 6534 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6535 |   (eval $ac_try) 2>&5 | 
 | 6536 |   ac_status=$? | 
 | 6537 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6538 |   (exit $ac_status); }; } && | 
 | 6539 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 6540 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6541 |   (eval $ac_try) 2>&5 | 
 | 6542 |   ac_status=$? | 
 | 6543 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6544 |   (exit $ac_status); }; }; then | 
 | 6545 |   ac_cv_search_opendir="-l$ac_lib" | 
 | 6546 | break | 
 | 6547 | else | 
 | 6548 |   echo "$as_me: failed program was:" >&5 | 
 | 6549 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 6550 |  | 
 | 6551 | fi | 
 | 6552 | rm -f conftest.err conftest.$ac_objext \ | 
 | 6553 |       conftest$ac_exeext conftest.$ac_ext | 
 | 6554 |   done | 
 | 6555 | fi | 
 | 6556 | LIBS=$ac_func_search_save_LIBS | 
 | 6557 | fi | 
 | 6558 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | 
 | 6559 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | 
 | 6560 | if test "$ac_cv_search_opendir" != no; then | 
 | 6561 |   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | 
 | 6562 |  | 
 | 6563 | fi | 
 | 6564 |  | 
 | 6565 | fi | 
 | 6566 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6567 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 
 | 6568 |  | 
 | 6569 |  | 
 | 6570 |  | 
 | 6571 |  | 
 | 6572 |  | 
 | 6573 |  | 
 | 6574 |  | 
 | 6575 |  | 
 | 6576 |  | 
 | 6577 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6578 | 		  inttypes.h stdint.h unistd.h | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6579 | do | 
 | 6580 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 6581 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 6582 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 6583 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 6584 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 6585 | else | 
 | 6586 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6587 | /* confdefs.h.  */ | 
 | 6588 | _ACEOF | 
 | 6589 | cat confdefs.h >>conftest.$ac_ext | 
 | 6590 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 6591 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6592 | $ac_includes_default | 
 | 6593 |  | 
 | 6594 | #include <$ac_header> | 
 | 6595 | _ACEOF | 
 | 6596 | rm -f conftest.$ac_objext | 
 | 6597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6598 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6599 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6600 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 6601 |   rm -f conftest.er1 | 
 | 6602 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6603 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6604 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6605 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 6606 | 			 || test ! -s conftest.err' | 
 | 6607 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6608 |   (eval $ac_try) 2>&5 | 
 | 6609 |   ac_status=$? | 
 | 6610 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6611 |   (exit $ac_status); }; } && | 
 | 6612 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6613 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6614 |   (eval $ac_try) 2>&5 | 
 | 6615 |   ac_status=$? | 
 | 6616 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6617 |   (exit $ac_status); }; }; then | 
 | 6618 |   eval "$as_ac_Header=yes" | 
 | 6619 | else | 
 | 6620 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6621 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 6622 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6623 | eval "$as_ac_Header=no" | 
 | 6624 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6625 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6626 | fi | 
 | 6627 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 6628 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 6629 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 6630 |   cat >>confdefs.h <<_ACEOF | 
 | 6631 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 6632 | _ACEOF | 
 | 6633 |  | 
 | 6634 | fi | 
 | 6635 |  | 
 | 6636 | done | 
 | 6637 |  | 
 | 6638 |  | 
 | 6639 |  | 
 | 6640 | for ac_header in dlfcn.h | 
 | 6641 | do | 
 | 6642 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6643 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 6644 |   echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6645 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 6646 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 6647 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6648 | fi | 
 | 6649 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 6650 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6651 | else | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6652 |   # Is the header compilable? | 
 | 6653 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 6654 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
 | 6655 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6656 | /* confdefs.h.  */ | 
 | 6657 | _ACEOF | 
 | 6658 | cat confdefs.h >>conftest.$ac_ext | 
 | 6659 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 6660 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6661 | $ac_includes_default | 
 | 6662 | #include <$ac_header> | 
 | 6663 | _ACEOF | 
 | 6664 | rm -f conftest.$ac_objext | 
 | 6665 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6666 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6667 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6668 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 6669 |   rm -f conftest.er1 | 
 | 6670 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6671 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6672 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6673 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 6674 | 			 || test ! -s conftest.err' | 
 | 6675 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6676 |   (eval $ac_try) 2>&5 | 
 | 6677 |   ac_status=$? | 
 | 6678 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6679 |   (exit $ac_status); }; } && | 
 | 6680 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6681 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6682 |   (eval $ac_try) 2>&5 | 
 | 6683 |   ac_status=$? | 
 | 6684 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6685 |   (exit $ac_status); }; }; then | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6686 |   ac_header_compiler=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6687 | else | 
 | 6688 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6689 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 6690 |  | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6691 | ac_header_compiler=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6692 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6693 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6694 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 6695 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
 | 6696 |  | 
 | 6697 | # Is the header present? | 
 | 6698 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 6699 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
 | 6700 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6701 | /* confdefs.h.  */ | 
 | 6702 | _ACEOF | 
 | 6703 | cat confdefs.h >>conftest.$ac_ext | 
 | 6704 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 6705 | /* end confdefs.h.  */ | 
 | 6706 | #include <$ac_header> | 
 | 6707 | _ACEOF | 
 | 6708 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 6709 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 6710 |   ac_status=$? | 
 | 6711 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 6712 |   rm -f conftest.er1 | 
 | 6713 |   cat conftest.err >&5 | 
 | 6714 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6715 |   (exit $ac_status); } >/dev/null; then | 
 | 6716 |   if test -s conftest.err; then | 
 | 6717 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6718 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6719 |   else | 
 | 6720 |     ac_cpp_err= | 
 | 6721 |   fi | 
 | 6722 | else | 
 | 6723 |   ac_cpp_err=yes | 
 | 6724 | fi | 
 | 6725 | if test -z "$ac_cpp_err"; then | 
 | 6726 |   ac_header_preproc=yes | 
 | 6727 | else | 
 | 6728 |   echo "$as_me: failed program was:" >&5 | 
 | 6729 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 6730 |  | 
 | 6731 |   ac_header_preproc=no | 
 | 6732 | fi | 
 | 6733 | rm -f conftest.err conftest.$ac_ext | 
 | 6734 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 6735 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
 | 6736 |  | 
 | 6737 | # So?  What about this header? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6738 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 6739 |   yes:no: ) | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6740 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 6741 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6742 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 6743 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
 | 6744 |     ac_header_preproc=yes | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6745 |     ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6746 |   no:yes:* ) | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6747 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 6748 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6749 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 6750 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 6751 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 6752 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 6753 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 6754 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6755 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 6756 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6757 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 6758 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6759 |     ( | 
 | 6760 |       cat <<\_ASBOX | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6761 | ## ----------------------------------- ## | 
 | 6762 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 6763 | ## ----------------------------------- ## | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6764 | _ASBOX | 
 | 6765 |     ) | | 
 | 6766 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 6767 |     ;; | 
 | 6768 | esac | 
 | 6769 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 6770 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 6771 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 6772 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 6773 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6774 |   eval "$as_ac_Header=\$ac_header_preproc" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6775 | fi | 
 | 6776 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 6777 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6778 |  | 
 | 6779 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6780 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 6781 |   cat >>confdefs.h <<_ACEOF | 
 | 6782 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 6783 | _ACEOF | 
 | 6784 |  | 
 | 6785 | fi | 
 | 6786 |  | 
 | 6787 | done | 
 | 6788 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 6789 | # Check whether --enable-ltdl-install or --disable-ltdl-install was given. | 
 | 6790 | if test "${enable_ltdl_install+set}" = set; then | 
 | 6791 |   enableval="$enable_ltdl_install" | 
 | 6792 |  | 
 | 6793 | fi; | 
 | 6794 |  | 
 | 6795 |  | 
 | 6796 |  | 
 | 6797 | if test x"${enable_ltdl_install-no}" != xno; then | 
 | 6798 |   INSTALL_LTDL_TRUE= | 
 | 6799 |   INSTALL_LTDL_FALSE='#' | 
 | 6800 | else | 
 | 6801 |   INSTALL_LTDL_TRUE='#' | 
 | 6802 |   INSTALL_LTDL_FALSE= | 
 | 6803 | fi | 
 | 6804 |  | 
 | 6805 |  | 
 | 6806 |  | 
 | 6807 | if test x"${enable_ltdl_convenience-no}" != xno; then | 
 | 6808 |   CONVENIENCE_LTDL_TRUE= | 
 | 6809 |   CONVENIENCE_LTDL_FALSE='#' | 
 | 6810 | else | 
 | 6811 |   CONVENIENCE_LTDL_TRUE='#' | 
 | 6812 |   CONVENIENCE_LTDL_FALSE= | 
 | 6813 | fi | 
 | 6814 |  | 
 | 6815 |  | 
 | 6816 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
 | 6817 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 
 | 6818 | library_names_spec= | 
 | 6819 | libname_spec='lib$name' | 
 | 6820 | soname_spec= | 
 | 6821 | shrext_cmds=".so" | 
 | 6822 | postinstall_cmds= | 
 | 6823 | postuninstall_cmds= | 
 | 6824 | finish_cmds= | 
 | 6825 | finish_eval= | 
 | 6826 | shlibpath_var= | 
 | 6827 | shlibpath_overrides_runpath=unknown | 
 | 6828 | version_type=none | 
 | 6829 | dynamic_linker="$host_os ld.so" | 
 | 6830 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
 | 6831 | if test "$GCC" = yes; then | 
 | 6832 |   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 6833 |   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
 | 6834 |     # if the path contains ";" then we assume it to be the separator | 
 | 6835 |     # otherwise default to the standard path separator (i.e. ":") - it is | 
 | 6836 |     # assumed that no part of a normal pathname contains ";" but that should | 
 | 6837 |     # okay in the real world where ";" in dirpaths is itself problematic. | 
 | 6838 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 6839 |   else | 
 | 6840 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 6841 |   fi | 
 | 6842 | else | 
 | 6843 |   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
 | 6844 | fi | 
 | 6845 | need_lib_prefix=unknown | 
 | 6846 | hardcode_into_libs=no | 
 | 6847 |  | 
 | 6848 | # when you set need_version to no, make sure it does not cause -set_version | 
 | 6849 | # flags to be left without arguments | 
 | 6850 | need_version=unknown | 
 | 6851 |  | 
 | 6852 | case $host_os in | 
 | 6853 | aix3*) | 
 | 6854 |   version_type=linux | 
 | 6855 |   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
 | 6856 |   shlibpath_var=LIBPATH | 
 | 6857 |  | 
 | 6858 |   # AIX 3 has no versioning support, so we append a major version to the name. | 
 | 6859 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 6860 |   ;; | 
 | 6861 |  | 
 | 6862 | aix4* | aix5*) | 
 | 6863 |   version_type=linux | 
 | 6864 |   need_lib_prefix=no | 
 | 6865 |   need_version=no | 
 | 6866 |   hardcode_into_libs=yes | 
 | 6867 |   if test "$host_cpu" = ia64; then | 
 | 6868 |     # AIX 5 supports IA64 | 
 | 6869 |     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
 | 6870 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 6871 |   else | 
 | 6872 |     # With GCC up to 2.95.x, collect2 would create an import file | 
 | 6873 |     # for dependence libraries.  The import file would start with | 
 | 6874 |     # the line `#! .'.  This would cause the generated library to | 
 | 6875 |     # depend on `.', always an invalid library.  This was fixed in | 
 | 6876 |     # development snapshots of GCC prior to 3.0. | 
 | 6877 |     case $host_os in | 
 | 6878 |       aix4 | aix4.[01] | aix4.[01].*) | 
 | 6879 |       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
 | 6880 | 	   echo ' yes ' | 
 | 6881 | 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
 | 6882 | 	: | 
 | 6883 |       else | 
 | 6884 | 	can_build_shared=no | 
 | 6885 |       fi | 
 | 6886 |       ;; | 
 | 6887 |     esac | 
 | 6888 |     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
 | 6889 |     # soname into executable. Probably we can add versioning support to | 
 | 6890 |     # collect2, so additional links can be useful in future. | 
 | 6891 |     if test "$aix_use_runtimelinking" = yes; then | 
 | 6892 |       # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
 | 6893 |       # instead of lib<name>.a to let people know that these are not | 
 | 6894 |       # typical AIX shared libraries. | 
 | 6895 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 6896 |     else | 
 | 6897 |       # We preserve .a as extension for shared libraries through AIX4.2 | 
 | 6898 |       # and later when we are not doing run time linking. | 
 | 6899 |       library_names_spec='${libname}${release}.a $libname.a' | 
 | 6900 |       soname_spec='${libname}${release}${shared_ext}$major' | 
 | 6901 |     fi | 
 | 6902 |     shlibpath_var=LIBPATH | 
 | 6903 |   fi | 
 | 6904 |   ;; | 
 | 6905 |  | 
 | 6906 | amigaos*) | 
 | 6907 |   library_names_spec='$libname.ixlibrary $libname.a' | 
 | 6908 |   # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
 | 6909 |   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' | 
 | 6910 |   ;; | 
 | 6911 |  | 
 | 6912 | beos*) | 
 | 6913 |   library_names_spec='${libname}${shared_ext}' | 
 | 6914 |   dynamic_linker="$host_os ld.so" | 
 | 6915 |   shlibpath_var=LIBRARY_PATH | 
 | 6916 |   ;; | 
 | 6917 |  | 
 | 6918 | bsdi[45]*) | 
 | 6919 |   version_type=linux | 
 | 6920 |   need_version=no | 
 | 6921 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 6922 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 6923 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
 | 6924 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 6925 |   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
 | 6926 |   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
 | 6927 |   # the default ld.so.conf also contains /usr/contrib/lib and | 
 | 6928 |   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
 | 6929 |   # libtool to hard-code these into programs | 
 | 6930 |   ;; | 
 | 6931 |  | 
 | 6932 | cygwin* | mingw* | pw32*) | 
 | 6933 |   version_type=windows | 
 | 6934 |   shrext_cmds=".dll" | 
 | 6935 |   need_version=no | 
 | 6936 |   need_lib_prefix=no | 
 | 6937 |  | 
 | 6938 |   case $GCC,$host_os in | 
 | 6939 |   yes,cygwin* | yes,mingw* | yes,pw32*) | 
 | 6940 |     library_names_spec='$libname.dll.a' | 
 | 6941 |     # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
 | 6942 |     postinstall_cmds='base_file=`basename \${file}`~ | 
 | 6943 |       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
 | 6944 |       dldir=$destdir/`dirname \$dlpath`~ | 
 | 6945 |       test -d \$dldir || mkdir -p \$dldir~ | 
 | 6946 |       $install_prog $dir/$dlname \$dldir/$dlname' | 
 | 6947 |     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
 | 6948 |       dlpath=$dir/\$dldll~ | 
 | 6949 |        $rm \$dlpath' | 
 | 6950 |     shlibpath_overrides_runpath=yes | 
 | 6951 |  | 
 | 6952 |     case $host_os in | 
 | 6953 |     cygwin*) | 
 | 6954 |       # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
 | 6955 |       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 6956 |       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | 
 | 6957 |       ;; | 
 | 6958 |     mingw*) | 
 | 6959 |       # MinGW DLLs use traditional 'lib' prefix | 
 | 6960 |       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 6961 |       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 6962 |       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
 | 6963 |         # It is most probably a Windows format PATH printed by | 
 | 6964 |         # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
 | 6965 |         # path with ; separators, and with drive letters. We can handle the | 
 | 6966 |         # drive letters (cygwin fileutils understands them), so leave them, | 
 | 6967 |         # especially as we might pass files found there to a mingw objdump, | 
 | 6968 |         # which wouldn't understand a cygwinified path. Ahh. | 
 | 6969 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 6970 |       else | 
 | 6971 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 6972 |       fi | 
 | 6973 |       ;; | 
 | 6974 |     pw32*) | 
 | 6975 |       # pw32 DLLs use 'pw' prefix rather than 'lib' | 
 | 6976 |       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | 
 | 6977 |       ;; | 
 | 6978 |     esac | 
 | 6979 |     ;; | 
 | 6980 |  | 
 | 6981 |   *) | 
 | 6982 |     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
 | 6983 |     ;; | 
 | 6984 |   esac | 
 | 6985 |   dynamic_linker='Win32 ld.exe' | 
 | 6986 |   # FIXME: first we should search . and the directory the executable is in | 
 | 6987 |   shlibpath_var=PATH | 
 | 6988 |   ;; | 
 | 6989 |  | 
 | 6990 | darwin* | rhapsody*) | 
 | 6991 |   dynamic_linker="$host_os dyld" | 
 | 6992 |   version_type=darwin | 
 | 6993 |   need_lib_prefix=no | 
 | 6994 |   need_version=no | 
 | 6995 |   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | 
 | 6996 |   soname_spec='${libname}${release}${major}$shared_ext' | 
 | 6997 |   shlibpath_overrides_runpath=yes | 
 | 6998 |   shlibpath_var=DYLD_LIBRARY_PATH | 
 | 6999 |   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | 
 | 7000 |   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | 
 | 7001 |   if test "$GCC" = yes; then | 
 | 7002 |     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"` | 
 | 7003 |   else | 
 | 7004 |     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | 
 | 7005 |   fi | 
 | 7006 |   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
 | 7007 |   ;; | 
 | 7008 |  | 
 | 7009 | dgux*) | 
 | 7010 |   version_type=linux | 
 | 7011 |   need_lib_prefix=no | 
 | 7012 |   need_version=no | 
 | 7013 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
 | 7014 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7015 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7016 |   ;; | 
 | 7017 |  | 
 | 7018 | freebsd1*) | 
 | 7019 |   dynamic_linker=no | 
 | 7020 |   ;; | 
 | 7021 |  | 
 | 7022 | kfreebsd*-gnu) | 
 | 7023 |   version_type=linux | 
 | 7024 |   need_lib_prefix=no | 
 | 7025 |   need_version=no | 
 | 7026 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 7027 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7028 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7029 |   shlibpath_overrides_runpath=no | 
 | 7030 |   hardcode_into_libs=yes | 
 | 7031 |   dynamic_linker='GNU ld.so' | 
 | 7032 |   ;; | 
 | 7033 |  | 
 | 7034 | freebsd*) | 
 | 7035 |   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | 
 | 7036 |   version_type=freebsd-$objformat | 
 | 7037 |   case $version_type in | 
 | 7038 |     freebsd-elf*) | 
 | 7039 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 7040 |       need_version=no | 
 | 7041 |       need_lib_prefix=no | 
 | 7042 |       ;; | 
 | 7043 |     freebsd-*) | 
 | 7044 |       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
 | 7045 |       need_version=yes | 
 | 7046 |       ;; | 
 | 7047 |   esac | 
 | 7048 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7049 |   case $host_os in | 
 | 7050 |   freebsd2*) | 
 | 7051 |     shlibpath_overrides_runpath=yes | 
 | 7052 |     ;; | 
 | 7053 |   freebsd3.01* | freebsdelf3.01*) | 
 | 7054 |     shlibpath_overrides_runpath=yes | 
 | 7055 |     hardcode_into_libs=yes | 
 | 7056 |     ;; | 
 | 7057 |   *) # from 3.2 on | 
 | 7058 |     shlibpath_overrides_runpath=no | 
 | 7059 |     hardcode_into_libs=yes | 
 | 7060 |     ;; | 
 | 7061 |   esac | 
 | 7062 |   ;; | 
 | 7063 |  | 
 | 7064 | gnu*) | 
 | 7065 |   version_type=linux | 
 | 7066 |   need_lib_prefix=no | 
 | 7067 |   need_version=no | 
 | 7068 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
 | 7069 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7070 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7071 |   hardcode_into_libs=yes | 
 | 7072 |   ;; | 
 | 7073 |  | 
 | 7074 | hpux9* | hpux10* | hpux11*) | 
 | 7075 |   # Give a soname corresponding to the major version so that dld.sl refuses to | 
 | 7076 |   # link against other versions. | 
 | 7077 |   version_type=sunos | 
 | 7078 |   need_lib_prefix=no | 
 | 7079 |   need_version=no | 
 | 7080 |   case "$host_cpu" in | 
 | 7081 |   ia64*) | 
 | 7082 |     shrext_cmds='.so' | 
 | 7083 |     hardcode_into_libs=yes | 
 | 7084 |     dynamic_linker="$host_os dld.so" | 
 | 7085 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 7086 |     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 7087 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7088 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7089 |     if test "X$HPUX_IA64_MODE" = X32; then | 
 | 7090 |       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
 | 7091 |     else | 
 | 7092 |       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
 | 7093 |     fi | 
 | 7094 |     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 7095 |     ;; | 
 | 7096 |    hppa*64*) | 
 | 7097 |      shrext_cmds='.sl' | 
 | 7098 |      hardcode_into_libs=yes | 
 | 7099 |      dynamic_linker="$host_os dld.sl" | 
 | 7100 |      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
 | 7101 |      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 7102 |      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7103 |      soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7104 |      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
 | 7105 |      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 7106 |      ;; | 
 | 7107 |    *) | 
 | 7108 |     shrext_cmds='.sl' | 
 | 7109 |     dynamic_linker="$host_os dld.sl" | 
 | 7110 |     shlibpath_var=SHLIB_PATH | 
 | 7111 |     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
 | 7112 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7113 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7114 |     ;; | 
 | 7115 |   esac | 
 | 7116 |   # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
 | 7117 |   postinstall_cmds='chmod 555 $lib' | 
 | 7118 |   ;; | 
 | 7119 |  | 
 | 7120 | irix5* | irix6* | nonstopux*) | 
 | 7121 |   case $host_os in | 
 | 7122 |     nonstopux*) version_type=nonstopux ;; | 
 | 7123 |     *) | 
 | 7124 | 	if test "$lt_cv_prog_gnu_ld" = yes; then | 
 | 7125 | 		version_type=linux | 
 | 7126 | 	else | 
 | 7127 | 		version_type=irix | 
 | 7128 | 	fi ;; | 
 | 7129 |   esac | 
 | 7130 |   need_lib_prefix=no | 
 | 7131 |   need_version=no | 
 | 7132 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7133 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 7134 |   case $host_os in | 
 | 7135 |   irix5* | nonstopux*) | 
 | 7136 |     libsuff= shlibsuff= | 
 | 7137 |     ;; | 
 | 7138 |   *) | 
 | 7139 |     case $LD in # libtool.m4 will add one of these switches to LD | 
 | 7140 |     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
 | 7141 |       libsuff= shlibsuff= libmagic=32-bit;; | 
 | 7142 |     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
 | 7143 |       libsuff=32 shlibsuff=N32 libmagic=N32;; | 
 | 7144 |     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
 | 7145 |       libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
 | 7146 |     *) libsuff= shlibsuff= libmagic=never-match;; | 
 | 7147 |     esac | 
 | 7148 |     ;; | 
 | 7149 |   esac | 
 | 7150 |   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
 | 7151 |   shlibpath_overrides_runpath=no | 
 | 7152 |   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
 | 7153 |   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
 | 7154 |   hardcode_into_libs=yes | 
 | 7155 |   ;; | 
 | 7156 |  | 
 | 7157 | # No shared lib support for Linux oldld, aout, or coff. | 
 | 7158 | linux*oldld* | linux*aout* | linux*coff*) | 
 | 7159 |   dynamic_linker=no | 
 | 7160 |   ;; | 
 | 7161 |  | 
 | 7162 | # This must be Linux ELF. | 
 | 7163 | linux*) | 
 | 7164 |   version_type=linux | 
 | 7165 |   need_lib_prefix=no | 
 | 7166 |   need_version=no | 
 | 7167 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7168 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7169 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
 | 7170 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7171 |   shlibpath_overrides_runpath=no | 
 | 7172 |   # This implies no fast_install, which is unacceptable. | 
 | 7173 |   # Some rework will be needed to allow for fast_install | 
 | 7174 |   # before this can be enabled. | 
 | 7175 |   hardcode_into_libs=yes | 
 | 7176 |  | 
 | 7177 |   # Append ld.so.conf contents to the search path | 
 | 7178 |   if test -f /etc/ld.so.conf; then | 
 | 7179 |     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` | 
 | 7180 |     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 
 | 7181 |   fi | 
 | 7182 |  | 
 | 7183 |   # We used to test for /lib/ld.so.1 and disable shared libraries on | 
 | 7184 |   # powerpc, because MkLinux only supported shared libraries with the | 
 | 7185 |   # GNU dynamic linker.  Since this was broken with cross compilers, | 
 | 7186 |   # most powerpc-linux boxes support dynamic linking these days and | 
 | 7187 |   # people can always --disable-shared, the test was removed, and we | 
 | 7188 |   # assume the GNU/Linux dynamic linker is in use. | 
 | 7189 |   dynamic_linker='GNU/Linux ld.so' | 
 | 7190 |   ;; | 
 | 7191 |  | 
 | 7192 | knetbsd*-gnu) | 
 | 7193 |   version_type=linux | 
 | 7194 |   need_lib_prefix=no | 
 | 7195 |   need_version=no | 
 | 7196 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 7197 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7198 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7199 |   shlibpath_overrides_runpath=no | 
 | 7200 |   hardcode_into_libs=yes | 
 | 7201 |   dynamic_linker='GNU ld.so' | 
 | 7202 |   ;; | 
 | 7203 |  | 
 | 7204 | netbsd*) | 
 | 7205 |   version_type=sunos | 
 | 7206 |   need_lib_prefix=no | 
 | 7207 |   need_version=no | 
 | 7208 |   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 7209 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 7210 |     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 7211 |     dynamic_linker='NetBSD (a.out) ld.so' | 
 | 7212 |   else | 
 | 7213 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 7214 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7215 |     dynamic_linker='NetBSD ld.elf_so' | 
 | 7216 |   fi | 
 | 7217 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7218 |   shlibpath_overrides_runpath=yes | 
 | 7219 |   hardcode_into_libs=yes | 
 | 7220 |   ;; | 
 | 7221 |  | 
 | 7222 | newsos6) | 
 | 7223 |   version_type=linux | 
 | 7224 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7225 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7226 |   shlibpath_overrides_runpath=yes | 
 | 7227 |   ;; | 
 | 7228 |  | 
 | 7229 | nto-qnx*) | 
 | 7230 |   version_type=linux | 
 | 7231 |   need_lib_prefix=no | 
 | 7232 |   need_version=no | 
 | 7233 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7234 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7235 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7236 |   shlibpath_overrides_runpath=yes | 
 | 7237 |   ;; | 
 | 7238 |  | 
 | 7239 | openbsd*) | 
 | 7240 |   version_type=sunos | 
 | 7241 |   need_lib_prefix=no | 
 | 7242 |   need_version=no | 
 | 7243 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 7244 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 7245 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7246 |   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 7247 |     case $host_os in | 
 | 7248 |       openbsd2.[89] | openbsd2.[89].*) | 
 | 7249 | 	shlibpath_overrides_runpath=no | 
 | 7250 | 	;; | 
 | 7251 |       *) | 
 | 7252 | 	shlibpath_overrides_runpath=yes | 
 | 7253 | 	;; | 
 | 7254 |       esac | 
 | 7255 |   else | 
 | 7256 |     shlibpath_overrides_runpath=yes | 
 | 7257 |   fi | 
 | 7258 |   ;; | 
 | 7259 |  | 
 | 7260 | os2*) | 
 | 7261 |   libname_spec='$name' | 
 | 7262 |   shrext_cmds=".dll" | 
 | 7263 |   need_lib_prefix=no | 
 | 7264 |   library_names_spec='$libname${shared_ext} $libname.a' | 
 | 7265 |   dynamic_linker='OS/2 ld.exe' | 
 | 7266 |   shlibpath_var=LIBPATH | 
 | 7267 |   ;; | 
 | 7268 |  | 
 | 7269 | osf3* | osf4* | osf5*) | 
 | 7270 |   version_type=osf | 
 | 7271 |   need_lib_prefix=no | 
 | 7272 |   need_version=no | 
 | 7273 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7274 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7275 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7276 |   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
 | 7277 |   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
 | 7278 |   ;; | 
 | 7279 |  | 
 | 7280 | sco3.2v5*) | 
 | 7281 |   version_type=osf | 
 | 7282 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7283 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7284 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7285 |   ;; | 
 | 7286 |  | 
 | 7287 | solaris*) | 
 | 7288 |   version_type=linux | 
 | 7289 |   need_lib_prefix=no | 
 | 7290 |   need_version=no | 
 | 7291 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7292 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7293 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7294 |   shlibpath_overrides_runpath=yes | 
 | 7295 |   hardcode_into_libs=yes | 
 | 7296 |   # ldd complains unless libraries are executable | 
 | 7297 |   postinstall_cmds='chmod +x $lib' | 
 | 7298 |   ;; | 
 | 7299 |  | 
 | 7300 | sunos4*) | 
 | 7301 |   version_type=sunos | 
 | 7302 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 7303 |   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
 | 7304 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7305 |   shlibpath_overrides_runpath=yes | 
 | 7306 |   if test "$with_gnu_ld" = yes; then | 
 | 7307 |     need_lib_prefix=no | 
 | 7308 |   fi | 
 | 7309 |   need_version=yes | 
 | 7310 |   ;; | 
 | 7311 |  | 
 | 7312 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 7313 |   version_type=linux | 
 | 7314 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7315 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7316 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7317 |   case $host_vendor in | 
 | 7318 |     sni) | 
 | 7319 |       shlibpath_overrides_runpath=no | 
 | 7320 |       need_lib_prefix=no | 
 | 7321 |       export_dynamic_flag_spec='${wl}-Blargedynsym' | 
 | 7322 |       runpath_var=LD_RUN_PATH | 
 | 7323 |       ;; | 
 | 7324 |     siemens) | 
 | 7325 |       need_lib_prefix=no | 
 | 7326 |       ;; | 
 | 7327 |     motorola) | 
 | 7328 |       need_lib_prefix=no | 
 | 7329 |       need_version=no | 
 | 7330 |       shlibpath_overrides_runpath=no | 
 | 7331 |       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
 | 7332 |       ;; | 
 | 7333 |   esac | 
 | 7334 |   ;; | 
 | 7335 |  | 
 | 7336 | sysv4*MP*) | 
 | 7337 |   if test -d /usr/nec ;then | 
 | 7338 |     version_type=linux | 
 | 7339 |     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
 | 7340 |     soname_spec='$libname${shared_ext}.$major' | 
 | 7341 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 7342 |   fi | 
 | 7343 |   ;; | 
 | 7344 |  | 
 | 7345 | uts4*) | 
 | 7346 |   version_type=linux | 
 | 7347 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7348 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7349 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7350 |   ;; | 
 | 7351 |  | 
 | 7352 | *) | 
 | 7353 |   dynamic_linker=no | 
 | 7354 |   ;; | 
 | 7355 | esac | 
 | 7356 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
 | 7357 | echo "${ECHO_T}$dynamic_linker" >&6 | 
 | 7358 | test "$dynamic_linker" = no && can_build_shared=no | 
 | 7359 |  | 
 | 7360 |  | 
 | 7361 | echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 | 
 | 7362 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6 | 
 | 7363 | if test "${libltdl_cv_shlibext+set}" = set; then | 
 | 7364 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7365 | else | 
 | 7366 |  | 
 | 7367 | module=yes | 
 | 7368 | eval libltdl_cv_shlibext=$shrext_cmds | 
 | 7369 |  | 
 | 7370 | fi | 
 | 7371 | echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 | 
 | 7372 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6 | 
 | 7373 | if test -n "$libltdl_cv_shlibext"; then | 
 | 7374 |  | 
 | 7375 | cat >>confdefs.h <<_ACEOF | 
 | 7376 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" | 
 | 7377 | _ACEOF | 
 | 7378 |  | 
 | 7379 | fi | 
 | 7380 |  | 
 | 7381 |  | 
 | 7382 | echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 | 
 | 7383 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6 | 
 | 7384 | if test "${libltdl_cv_shlibpath_var+set}" = set; then | 
 | 7385 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7386 | else | 
 | 7387 |   libltdl_cv_shlibpath_var="$shlibpath_var" | 
 | 7388 | fi | 
 | 7389 | echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 | 
 | 7390 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6 | 
 | 7391 | if test -n "$libltdl_cv_shlibpath_var"; then | 
 | 7392 |  | 
 | 7393 | cat >>confdefs.h <<_ACEOF | 
 | 7394 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" | 
 | 7395 | _ACEOF | 
 | 7396 |  | 
 | 7397 | fi | 
 | 7398 |  | 
 | 7399 |  | 
 | 7400 | echo "$as_me:$LINENO: checking for the default library search path" >&5 | 
 | 7401 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6 | 
 | 7402 | if test "${libltdl_cv_sys_search_path+set}" = set; then | 
 | 7403 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7404 | else | 
 | 7405 |   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" | 
 | 7406 | fi | 
 | 7407 | echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 | 
 | 7408 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6 | 
 | 7409 | if test -n "$libltdl_cv_sys_search_path"; then | 
 | 7410 |   sys_search_path= | 
 | 7411 |   for dir in $libltdl_cv_sys_search_path; do | 
 | 7412 |     if test -z "$sys_search_path"; then | 
 | 7413 |       sys_search_path="$dir" | 
 | 7414 |     else | 
 | 7415 |       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" | 
 | 7416 |     fi | 
 | 7417 |   done | 
 | 7418 |  | 
 | 7419 | cat >>confdefs.h <<_ACEOF | 
 | 7420 | #define LTDL_SYSSEARCHPATH "$sys_search_path" | 
 | 7421 | _ACEOF | 
 | 7422 |  | 
 | 7423 | fi | 
 | 7424 |  | 
 | 7425 | echo "$as_me:$LINENO: checking for objdir" >&5 | 
 | 7426 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | 
 | 7427 | if test "${libltdl_cv_objdir+set}" = set; then | 
 | 7428 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7429 | else | 
 | 7430 |   libltdl_cv_objdir="$objdir" | 
 | 7431 |   if test -n "$objdir"; then | 
 | 7432 |     : | 
 | 7433 |   else | 
 | 7434 |     rm -f .libs 2>/dev/null | 
 | 7435 |     mkdir .libs 2>/dev/null | 
 | 7436 |     if test -d .libs; then | 
 | 7437 |       libltdl_cv_objdir=.libs | 
 | 7438 |     else | 
 | 7439 |       # MS-DOS does not allow filenames that begin with a dot. | 
 | 7440 |       libltdl_cv_objdir=_libs | 
 | 7441 |     fi | 
 | 7442 |   rmdir .libs 2>/dev/null | 
 | 7443 |   fi | 
 | 7444 |  | 
 | 7445 | fi | 
 | 7446 | echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 | 
 | 7447 | echo "${ECHO_T}$libltdl_cv_objdir" >&6 | 
 | 7448 |  | 
 | 7449 | cat >>confdefs.h <<_ACEOF | 
 | 7450 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" | 
 | 7451 | _ACEOF | 
 | 7452 |  | 
 | 7453 |  | 
 | 7454 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | 
 | 7455 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | 
 | 7456 | if test "${lt_cv_path_NM+set}" = set; then | 
 | 7457 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7458 | else | 
 | 7459 |   if test -n "$NM"; then | 
 | 7460 |   # Let the user override the test. | 
 | 7461 |   lt_cv_path_NM="$NM" | 
 | 7462 | else | 
 | 7463 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
 | 7464 |   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | 
 | 7465 |     IFS="$lt_save_ifs" | 
 | 7466 |     test -z "$ac_dir" && ac_dir=. | 
 | 7467 |     tmp_nm="$ac_dir/${ac_tool_prefix}nm" | 
 | 7468 |     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | 
 | 7469 |       # Check to see if the nm accepts a BSD-compat flag. | 
 | 7470 |       # Adding the `sed 1q' prevents false positives on HP-UX, which says: | 
 | 7471 |       #   nm: unknown option "B" ignored | 
 | 7472 |       # Tru64's nm complains that /dev/null is an invalid object file | 
 | 7473 |       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | 
 | 7474 |       */dev/null* | *'Invalid file or object type'*) | 
 | 7475 | 	lt_cv_path_NM="$tmp_nm -B" | 
 | 7476 | 	break | 
 | 7477 |         ;; | 
 | 7478 |       *) | 
 | 7479 | 	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | 
 | 7480 | 	*/dev/null*) | 
 | 7481 | 	  lt_cv_path_NM="$tmp_nm -p" | 
 | 7482 | 	  break | 
 | 7483 | 	  ;; | 
 | 7484 | 	*) | 
 | 7485 | 	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | 
 | 7486 | 	  continue # so that we can try to find one that supports BSD flags | 
 | 7487 | 	  ;; | 
 | 7488 | 	esac | 
 | 7489 |       esac | 
 | 7490 |     fi | 
 | 7491 |   done | 
 | 7492 |   IFS="$lt_save_ifs" | 
 | 7493 |   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | 
 | 7494 | fi | 
 | 7495 | fi | 
 | 7496 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | 
 | 7497 | echo "${ECHO_T}$lt_cv_path_NM" >&6 | 
 | 7498 | NM="$lt_cv_path_NM" | 
 | 7499 |  | 
 | 7500 |  | 
 | 7501 |  | 
 | 7502 |  | 
 | 7503 |  | 
 | 7504 | # Check for command to grab the raw symbol name followed by C symbol from nm. | 
 | 7505 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | 
 | 7506 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | 
 | 7507 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | 
 | 7508 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7509 | else | 
 | 7510 |  | 
 | 7511 | # These are sane defaults that work on at least a few old systems. | 
 | 7512 | # [They come from Ultrix.  What could be older than Ultrix?!! ;)] | 
 | 7513 |  | 
 | 7514 | # Character class describing NM global symbol codes. | 
 | 7515 | symcode='[BCDEGRST]' | 
 | 7516 |  | 
 | 7517 | # Regexp to match symbols that can be accessed directly from C. | 
 | 7518 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | 
 | 7519 |  | 
 | 7520 | # Transform the above into a raw symbol and a C symbol. | 
 | 7521 | symxfrm='\1 \2\3 \3' | 
 | 7522 |  | 
 | 7523 | # Transform an extracted symbol line into a proper C declaration | 
 | 7524 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | 
 | 7525 |  | 
 | 7526 | # Transform an extracted symbol line into symbol name and symbol address | 
 | 7527 | 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'" | 
 | 7528 |  | 
 | 7529 | # Define system-specific variables. | 
 | 7530 | case $host_os in | 
 | 7531 | aix*) | 
 | 7532 |   symcode='[BCDT]' | 
 | 7533 |   ;; | 
 | 7534 | cygwin* | mingw* | pw32*) | 
 | 7535 |   symcode='[ABCDGISTW]' | 
 | 7536 |   ;; | 
 | 7537 | hpux*) # Its linker distinguishes data from code symbols | 
 | 7538 |   if test "$host_cpu" = ia64; then | 
 | 7539 |     symcode='[ABCDEGRST]' | 
 | 7540 |   fi | 
 | 7541 |   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 
 | 7542 |   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'" | 
 | 7543 |   ;; | 
 | 7544 | linux*) | 
 | 7545 |   if test "$host_cpu" = ia64; then | 
 | 7546 |     symcode='[ABCDGIRSTW]' | 
 | 7547 |     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 
 | 7548 |     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'" | 
 | 7549 |   fi | 
 | 7550 |   ;; | 
 | 7551 | irix* | nonstopux*) | 
 | 7552 |   symcode='[BCDEGRST]' | 
 | 7553 |   ;; | 
 | 7554 | osf*) | 
 | 7555 |   symcode='[BCDEGQRST]' | 
 | 7556 |   ;; | 
 | 7557 | solaris* | sysv5*) | 
 | 7558 |   symcode='[BDRT]' | 
 | 7559 |   ;; | 
 | 7560 | sysv4) | 
 | 7561 |   symcode='[DFNSTU]' | 
 | 7562 |   ;; | 
 | 7563 | esac | 
 | 7564 |  | 
 | 7565 | # Handle CRLF in mingw tool chain | 
 | 7566 | opt_cr= | 
 | 7567 | case $build_os in | 
 | 7568 | mingw*) | 
 | 7569 |   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | 
 | 7570 |   ;; | 
 | 7571 | esac | 
 | 7572 |  | 
 | 7573 | # If we're using GNU nm, then use its standard symbol codes. | 
 | 7574 | case `$NM -V 2>&1` in | 
 | 7575 | *GNU* | *'with BFD'*) | 
 | 7576 |   symcode='[ABCDGIRSTW]' ;; | 
 | 7577 | esac | 
 | 7578 |  | 
 | 7579 | # Try without a prefix undercore, then with it. | 
 | 7580 | for ac_symprfx in "" "_"; do | 
 | 7581 |  | 
 | 7582 |   # Write the raw and C identifiers. | 
 | 7583 |   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" | 
 | 7584 |  | 
 | 7585 |   # Check to see that the pipe works correctly. | 
 | 7586 |   pipe_works=no | 
 | 7587 |  | 
 | 7588 |   rm -f conftest* | 
 | 7589 |   cat > conftest.$ac_ext <<EOF | 
 | 7590 | #ifdef __cplusplus | 
 | 7591 | extern "C" { | 
 | 7592 | #endif | 
 | 7593 | char nm_test_var; | 
 | 7594 | void nm_test_func(){} | 
 | 7595 | #ifdef __cplusplus | 
 | 7596 | } | 
 | 7597 | #endif | 
 | 7598 | int main(){nm_test_var='a';nm_test_func();return(0);} | 
 | 7599 | EOF | 
 | 7600 |  | 
 | 7601 |   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 7602 |   (eval $ac_compile) 2>&5 | 
 | 7603 |   ac_status=$? | 
 | 7604 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7605 |   (exit $ac_status); }; then | 
 | 7606 |     # Now try to grab the symbols. | 
 | 7607 |     nlist=conftest.nm | 
 | 7608 |     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | 
 | 7609 |   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | 
 | 7610 |   ac_status=$? | 
 | 7611 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7612 |   (exit $ac_status); } && test -s "$nlist"; then | 
 | 7613 |       # Try sorting and uniquifying the output. | 
 | 7614 |       if sort "$nlist" | uniq > "$nlist"T; then | 
 | 7615 | 	mv -f "$nlist"T "$nlist" | 
 | 7616 |       else | 
 | 7617 | 	rm -f "$nlist"T | 
 | 7618 |       fi | 
 | 7619 |  | 
 | 7620 |       # Make sure that we snagged all the symbols we need. | 
 | 7621 |       if grep ' nm_test_var$' "$nlist" >/dev/null; then | 
 | 7622 | 	if grep ' nm_test_func$' "$nlist" >/dev/null; then | 
 | 7623 | 	  cat <<EOF > conftest.$ac_ext | 
 | 7624 | #ifdef __cplusplus | 
 | 7625 | extern "C" { | 
 | 7626 | #endif | 
 | 7627 |  | 
 | 7628 | EOF | 
 | 7629 | 	  # Now generate the symbol file. | 
 | 7630 | 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | 
 | 7631 |  | 
 | 7632 | 	  cat <<EOF >> conftest.$ac_ext | 
 | 7633 | #if defined (__STDC__) && __STDC__ | 
 | 7634 | # define lt_ptr_t void * | 
 | 7635 | #else | 
 | 7636 | # define lt_ptr_t char * | 
 | 7637 | # define const | 
 | 7638 | #endif | 
 | 7639 |  | 
 | 7640 | /* The mapping between symbol names and symbols. */ | 
 | 7641 | const struct { | 
 | 7642 |   const char *name; | 
 | 7643 |   lt_ptr_t address; | 
 | 7644 | } | 
 | 7645 | lt_preloaded_symbols[] = | 
 | 7646 | { | 
 | 7647 | EOF | 
 | 7648 | 	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | 
 | 7649 | 	  cat <<\EOF >> conftest.$ac_ext | 
 | 7650 |   {0, (lt_ptr_t) 0} | 
 | 7651 | }; | 
 | 7652 |  | 
 | 7653 | #ifdef __cplusplus | 
 | 7654 | } | 
 | 7655 | #endif | 
 | 7656 | EOF | 
 | 7657 | 	  # Now try linking the two files. | 
 | 7658 | 	  mv conftest.$ac_objext conftstm.$ac_objext | 
 | 7659 | 	  lt_save_LIBS="$LIBS" | 
 | 7660 | 	  lt_save_CFLAGS="$CFLAGS" | 
 | 7661 | 	  LIBS="conftstm.$ac_objext" | 
 | 7662 | 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | 
 | 7663 | 	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 7664 |   (eval $ac_link) 2>&5 | 
 | 7665 |   ac_status=$? | 
 | 7666 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7667 |   (exit $ac_status); } && test -s conftest${ac_exeext}; then | 
 | 7668 | 	    pipe_works=yes | 
 | 7669 | 	  fi | 
 | 7670 | 	  LIBS="$lt_save_LIBS" | 
 | 7671 | 	  CFLAGS="$lt_save_CFLAGS" | 
 | 7672 | 	else | 
 | 7673 | 	  echo "cannot find nm_test_func in $nlist" >&5 | 
 | 7674 | 	fi | 
 | 7675 |       else | 
 | 7676 | 	echo "cannot find nm_test_var in $nlist" >&5 | 
 | 7677 |       fi | 
 | 7678 |     else | 
 | 7679 |       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | 
 | 7680 |     fi | 
 | 7681 |   else | 
 | 7682 |     echo "$progname: failed program was:" >&5 | 
 | 7683 |     cat conftest.$ac_ext >&5 | 
 | 7684 |   fi | 
 | 7685 |   rm -f conftest* conftst* | 
 | 7686 |  | 
 | 7687 |   # Do not use the global_symbol_pipe unless it works. | 
 | 7688 |   if test "$pipe_works" = yes; then | 
 | 7689 |     break | 
 | 7690 |   else | 
 | 7691 |     lt_cv_sys_global_symbol_pipe= | 
 | 7692 |   fi | 
 | 7693 | done | 
 | 7694 |  | 
 | 7695 | fi | 
 | 7696 |  | 
 | 7697 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | 
 | 7698 |   lt_cv_sys_global_symbol_to_cdecl= | 
 | 7699 | fi | 
 | 7700 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | 
 | 7701 |   echo "$as_me:$LINENO: result: failed" >&5 | 
 | 7702 | echo "${ECHO_T}failed" >&6 | 
 | 7703 | else | 
 | 7704 |   echo "$as_me:$LINENO: result: ok" >&5 | 
 | 7705 | echo "${ECHO_T}ok" >&6 | 
 | 7706 | fi | 
 | 7707 |  | 
 | 7708 |  | 
 | 7709 | echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 | 
 | 7710 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6 | 
 | 7711 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then | 
 | 7712 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7713 | else | 
 | 7714 |   if test -n "$lt_cv_sys_global_symbol_pipe"; then | 
 | 7715 |     libltdl_cv_preloaded_symbols=yes | 
 | 7716 |   else | 
 | 7717 |     libltdl_cv_preloaded_symbols=no | 
 | 7718 |   fi | 
 | 7719 |  | 
 | 7720 | fi | 
 | 7721 | echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 | 
 | 7722 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6 | 
 | 7723 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then | 
 | 7724 |  | 
 | 7725 | cat >>confdefs.h <<\_ACEOF | 
 | 7726 | #define HAVE_PRELOADED_SYMBOLS 1 | 
 | 7727 | _ACEOF | 
 | 7728 |  | 
 | 7729 | fi | 
 | 7730 |  | 
 | 7731 | LIBADD_DL= | 
 | 7732 |  | 
 | 7733 | ac_ext=c | 
 | 7734 | ac_cpp='$CPP $CPPFLAGS' | 
 | 7735 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 7736 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 7737 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 7738 |  | 
 | 7739 |  | 
 | 7740 | echo "$as_me:$LINENO: checking for shl_load" >&5 | 
 | 7741 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | 
 | 7742 | if test "${ac_cv_func_shl_load+set}" = set; then | 
 | 7743 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7744 | else | 
 | 7745 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 7746 | /* confdefs.h.  */ | 
 | 7747 | _ACEOF | 
 | 7748 | cat confdefs.h >>conftest.$ac_ext | 
 | 7749 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 7750 | /* end confdefs.h.  */ | 
 | 7751 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | 
 | 7752 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 7753 | #define shl_load innocuous_shl_load | 
 | 7754 |  | 
 | 7755 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 7756 |     which can conflict with char shl_load (); below. | 
 | 7757 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 7758 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 7759 |  | 
 | 7760 | #ifdef __STDC__ | 
 | 7761 | # include <limits.h> | 
 | 7762 | #else | 
 | 7763 | # include <assert.h> | 
 | 7764 | #endif | 
 | 7765 |  | 
 | 7766 | #undef shl_load | 
 | 7767 |  | 
 | 7768 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 7769 | #ifdef __cplusplus | 
 | 7770 | extern "C" | 
 | 7771 | { | 
 | 7772 | #endif | 
 | 7773 | /* We use char because int might match the return type of a gcc2 | 
 | 7774 |    builtin and then its argument prototype would still apply.  */ | 
 | 7775 | char shl_load (); | 
 | 7776 | /* The GNU C library defines this for functions which it implements | 
 | 7777 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 7778 |     something starting with __ and the normal name is an alias.  */ | 
 | 7779 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | 
 | 7780 | choke me | 
 | 7781 | #else | 
 | 7782 | char (*f) () = shl_load; | 
 | 7783 | #endif | 
 | 7784 | #ifdef __cplusplus | 
 | 7785 | } | 
 | 7786 | #endif | 
 | 7787 |  | 
 | 7788 | int | 
 | 7789 | main () | 
 | 7790 | { | 
 | 7791 | return f != shl_load; | 
 | 7792 |   ; | 
 | 7793 |   return 0; | 
 | 7794 | } | 
 | 7795 | _ACEOF | 
 | 7796 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 7797 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 7798 |   (eval $ac_link) 2>conftest.er1 | 
 | 7799 |   ac_status=$? | 
 | 7800 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 7801 |   rm -f conftest.er1 | 
 | 7802 |   cat conftest.err >&5 | 
 | 7803 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7804 |   (exit $ac_status); } && | 
 | 7805 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 7806 | 			 || test ! -s conftest.err' | 
 | 7807 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 7808 |   (eval $ac_try) 2>&5 | 
 | 7809 |   ac_status=$? | 
 | 7810 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7811 |   (exit $ac_status); }; } && | 
 | 7812 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 7813 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 7814 |   (eval $ac_try) 2>&5 | 
 | 7815 |   ac_status=$? | 
 | 7816 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7817 |   (exit $ac_status); }; }; then | 
 | 7818 |   ac_cv_func_shl_load=yes | 
 | 7819 | else | 
 | 7820 |   echo "$as_me: failed program was:" >&5 | 
 | 7821 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 7822 |  | 
 | 7823 | ac_cv_func_shl_load=no | 
 | 7824 | fi | 
 | 7825 | rm -f conftest.err conftest.$ac_objext \ | 
 | 7826 |       conftest$ac_exeext conftest.$ac_ext | 
 | 7827 | fi | 
 | 7828 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | 
 | 7829 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | 
 | 7830 | if test $ac_cv_func_shl_load = yes; then | 
 | 7831 |  | 
 | 7832 | cat >>confdefs.h <<\_ACEOF | 
 | 7833 | #define HAVE_SHL_LOAD 1 | 
 | 7834 | _ACEOF | 
 | 7835 |  | 
 | 7836 | else | 
 | 7837 |   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | 
 | 7838 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | 
 | 7839 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | 
 | 7840 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7841 | else | 
 | 7842 |   ac_check_lib_save_LIBS=$LIBS | 
 | 7843 | LIBS="-ldld  $LIBS" | 
 | 7844 | cat >conftest.$ac_ext <<_ACEOF | 
 | 7845 | /* confdefs.h.  */ | 
 | 7846 | _ACEOF | 
 | 7847 | cat confdefs.h >>conftest.$ac_ext | 
 | 7848 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 7849 | /* end confdefs.h.  */ | 
 | 7850 |  | 
 | 7851 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 7852 | #ifdef __cplusplus | 
 | 7853 | extern "C" | 
 | 7854 | #endif | 
 | 7855 | /* We use char because int might match the return type of a gcc2 | 
 | 7856 |    builtin and then its argument prototype would still apply.  */ | 
 | 7857 | char shl_load (); | 
 | 7858 | int | 
 | 7859 | main () | 
 | 7860 | { | 
 | 7861 | shl_load (); | 
 | 7862 |   ; | 
 | 7863 |   return 0; | 
 | 7864 | } | 
 | 7865 | _ACEOF | 
 | 7866 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 7867 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 7868 |   (eval $ac_link) 2>conftest.er1 | 
 | 7869 |   ac_status=$? | 
 | 7870 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 7871 |   rm -f conftest.er1 | 
 | 7872 |   cat conftest.err >&5 | 
 | 7873 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7874 |   (exit $ac_status); } && | 
 | 7875 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 7876 | 			 || test ! -s conftest.err' | 
 | 7877 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 7878 |   (eval $ac_try) 2>&5 | 
 | 7879 |   ac_status=$? | 
 | 7880 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7881 |   (exit $ac_status); }; } && | 
 | 7882 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 7883 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 7884 |   (eval $ac_try) 2>&5 | 
 | 7885 |   ac_status=$? | 
 | 7886 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7887 |   (exit $ac_status); }; }; then | 
 | 7888 |   ac_cv_lib_dld_shl_load=yes | 
 | 7889 | else | 
 | 7890 |   echo "$as_me: failed program was:" >&5 | 
 | 7891 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 7892 |  | 
 | 7893 | ac_cv_lib_dld_shl_load=no | 
 | 7894 | fi | 
 | 7895 | rm -f conftest.err conftest.$ac_objext \ | 
 | 7896 |       conftest$ac_exeext conftest.$ac_ext | 
 | 7897 | LIBS=$ac_check_lib_save_LIBS | 
 | 7898 | fi | 
 | 7899 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | 
 | 7900 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | 
 | 7901 | if test $ac_cv_lib_dld_shl_load = yes; then | 
 | 7902 |  | 
 | 7903 | cat >>confdefs.h <<\_ACEOF | 
 | 7904 | #define HAVE_SHL_LOAD 1 | 
 | 7905 | _ACEOF | 
 | 7906 |  | 
 | 7907 | 	LIBADD_DL="$LIBADD_DL -ldld" | 
 | 7908 | else | 
 | 7909 |   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
 | 7910 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
 | 7911 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
 | 7912 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7913 | else | 
 | 7914 |   ac_check_lib_save_LIBS=$LIBS | 
 | 7915 | LIBS="-ldl  $LIBS" | 
 | 7916 | cat >conftest.$ac_ext <<_ACEOF | 
 | 7917 | /* confdefs.h.  */ | 
 | 7918 | _ACEOF | 
 | 7919 | cat confdefs.h >>conftest.$ac_ext | 
 | 7920 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 7921 | /* end confdefs.h.  */ | 
 | 7922 |  | 
 | 7923 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 7924 | #ifdef __cplusplus | 
 | 7925 | extern "C" | 
 | 7926 | #endif | 
 | 7927 | /* We use char because int might match the return type of a gcc2 | 
 | 7928 |    builtin and then its argument prototype would still apply.  */ | 
 | 7929 | char dlopen (); | 
 | 7930 | int | 
 | 7931 | main () | 
 | 7932 | { | 
 | 7933 | dlopen (); | 
 | 7934 |   ; | 
 | 7935 |   return 0; | 
 | 7936 | } | 
 | 7937 | _ACEOF | 
 | 7938 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 7939 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 7940 |   (eval $ac_link) 2>conftest.er1 | 
 | 7941 |   ac_status=$? | 
 | 7942 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 7943 |   rm -f conftest.er1 | 
 | 7944 |   cat conftest.err >&5 | 
 | 7945 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7946 |   (exit $ac_status); } && | 
 | 7947 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 7948 | 			 || test ! -s conftest.err' | 
 | 7949 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 7950 |   (eval $ac_try) 2>&5 | 
 | 7951 |   ac_status=$? | 
 | 7952 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7953 |   (exit $ac_status); }; } && | 
 | 7954 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 7955 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 7956 |   (eval $ac_try) 2>&5 | 
 | 7957 |   ac_status=$? | 
 | 7958 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7959 |   (exit $ac_status); }; }; then | 
 | 7960 |   ac_cv_lib_dl_dlopen=yes | 
 | 7961 | else | 
 | 7962 |   echo "$as_me: failed program was:" >&5 | 
 | 7963 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 7964 |  | 
 | 7965 | ac_cv_lib_dl_dlopen=no | 
 | 7966 | fi | 
 | 7967 | rm -f conftest.err conftest.$ac_objext \ | 
 | 7968 |       conftest$ac_exeext conftest.$ac_ext | 
 | 7969 | LIBS=$ac_check_lib_save_LIBS | 
 | 7970 | fi | 
 | 7971 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 7972 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
 | 7973 | if test $ac_cv_lib_dl_dlopen = yes; then | 
 | 7974 |  | 
 | 7975 | cat >>confdefs.h <<\_ACEOF | 
 | 7976 | #define HAVE_LIBDL 1 | 
 | 7977 | _ACEOF | 
 | 7978 |  | 
 | 7979 | 	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" | 
 | 7980 | else | 
 | 7981 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 7982 | /* confdefs.h.  */ | 
 | 7983 | _ACEOF | 
 | 7984 | cat confdefs.h >>conftest.$ac_ext | 
 | 7985 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 7986 | /* end confdefs.h.  */ | 
 | 7987 | #if HAVE_DLFCN_H | 
 | 7988 | #  include <dlfcn.h> | 
 | 7989 | #endif | 
 | 7990 |  | 
 | 7991 | int | 
 | 7992 | main () | 
 | 7993 | { | 
 | 7994 | dlopen(0, 0); | 
 | 7995 |   ; | 
 | 7996 |   return 0; | 
 | 7997 | } | 
 | 7998 | _ACEOF | 
 | 7999 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 8000 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 8001 |   (eval $ac_link) 2>conftest.er1 | 
 | 8002 |   ac_status=$? | 
 | 8003 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 8004 |   rm -f conftest.er1 | 
 | 8005 |   cat conftest.err >&5 | 
 | 8006 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8007 |   (exit $ac_status); } && | 
 | 8008 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 8009 | 			 || test ! -s conftest.err' | 
 | 8010 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8011 |   (eval $ac_try) 2>&5 | 
 | 8012 |   ac_status=$? | 
 | 8013 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8014 |   (exit $ac_status); }; } && | 
 | 8015 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 8016 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8017 |   (eval $ac_try) 2>&5 | 
 | 8018 |   ac_status=$? | 
 | 8019 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8020 |   (exit $ac_status); }; }; then | 
 | 8021 |  | 
 | 8022 | cat >>confdefs.h <<\_ACEOF | 
 | 8023 | #define HAVE_LIBDL 1 | 
 | 8024 | _ACEOF | 
 | 8025 |  libltdl_cv_func_dlopen="yes" | 
 | 8026 | else | 
 | 8027 |   echo "$as_me: failed program was:" >&5 | 
 | 8028 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8029 |  | 
 | 8030 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | 
 | 8031 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | 
 | 8032 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | 
 | 8033 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8034 | else | 
 | 8035 |   ac_check_lib_save_LIBS=$LIBS | 
 | 8036 | LIBS="-lsvld  $LIBS" | 
 | 8037 | cat >conftest.$ac_ext <<_ACEOF | 
 | 8038 | /* confdefs.h.  */ | 
 | 8039 | _ACEOF | 
 | 8040 | cat confdefs.h >>conftest.$ac_ext | 
 | 8041 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 8042 | /* end confdefs.h.  */ | 
 | 8043 |  | 
 | 8044 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 8045 | #ifdef __cplusplus | 
 | 8046 | extern "C" | 
 | 8047 | #endif | 
 | 8048 | /* We use char because int might match the return type of a gcc2 | 
 | 8049 |    builtin and then its argument prototype would still apply.  */ | 
 | 8050 | char dlopen (); | 
 | 8051 | int | 
 | 8052 | main () | 
 | 8053 | { | 
 | 8054 | dlopen (); | 
 | 8055 |   ; | 
 | 8056 |   return 0; | 
 | 8057 | } | 
 | 8058 | _ACEOF | 
 | 8059 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 8060 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 8061 |   (eval $ac_link) 2>conftest.er1 | 
 | 8062 |   ac_status=$? | 
 | 8063 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 8064 |   rm -f conftest.er1 | 
 | 8065 |   cat conftest.err >&5 | 
 | 8066 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8067 |   (exit $ac_status); } && | 
 | 8068 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 8069 | 			 || test ! -s conftest.err' | 
 | 8070 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8071 |   (eval $ac_try) 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 | 
 | 8084 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8085 |  | 
 | 8086 | ac_cv_lib_svld_dlopen=no | 
 | 8087 | fi | 
 | 8088 | rm -f conftest.err conftest.$ac_objext \ | 
 | 8089 |       conftest$ac_exeext conftest.$ac_ext | 
 | 8090 | LIBS=$ac_check_lib_save_LIBS | 
 | 8091 | fi | 
 | 8092 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | 
 | 8093 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | 
 | 8094 | if test $ac_cv_lib_svld_dlopen = yes; then | 
 | 8095 |  | 
 | 8096 | cat >>confdefs.h <<\_ACEOF | 
 | 8097 | #define HAVE_LIBDL 1 | 
 | 8098 | _ACEOF | 
 | 8099 |  | 
 | 8100 | 	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" | 
 | 8101 | else | 
 | 8102 |   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | 
 | 8103 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | 
 | 8104 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | 
 | 8105 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8106 | else | 
 | 8107 |   ac_check_lib_save_LIBS=$LIBS | 
 | 8108 | LIBS="-ldld  $LIBS" | 
 | 8109 | cat >conftest.$ac_ext <<_ACEOF | 
 | 8110 | /* confdefs.h.  */ | 
 | 8111 | _ACEOF | 
 | 8112 | cat confdefs.h >>conftest.$ac_ext | 
 | 8113 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 8114 | /* end confdefs.h.  */ | 
 | 8115 |  | 
 | 8116 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 8117 | #ifdef __cplusplus | 
 | 8118 | extern "C" | 
 | 8119 | #endif | 
 | 8120 | /* We use char because int might match the return type of a gcc2 | 
 | 8121 |    builtin and then its argument prototype would still apply.  */ | 
 | 8122 | char dld_link (); | 
 | 8123 | int | 
 | 8124 | main () | 
 | 8125 | { | 
 | 8126 | dld_link (); | 
 | 8127 |   ; | 
 | 8128 |   return 0; | 
 | 8129 | } | 
 | 8130 | _ACEOF | 
 | 8131 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 8132 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 8133 |   (eval $ac_link) 2>conftest.er1 | 
 | 8134 |   ac_status=$? | 
 | 8135 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 8136 |   rm -f conftest.er1 | 
 | 8137 |   cat conftest.err >&5 | 
 | 8138 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8139 |   (exit $ac_status); } && | 
 | 8140 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 8141 | 			 || test ! -s conftest.err' | 
 | 8142 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8143 |   (eval $ac_try) 2>&5 | 
 | 8144 |   ac_status=$? | 
 | 8145 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8146 |   (exit $ac_status); }; } && | 
 | 8147 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 8148 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8149 |   (eval $ac_try) 2>&5 | 
 | 8150 |   ac_status=$? | 
 | 8151 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8152 |   (exit $ac_status); }; }; then | 
 | 8153 |   ac_cv_lib_dld_dld_link=yes | 
 | 8154 | else | 
 | 8155 |   echo "$as_me: failed program was:" >&5 | 
 | 8156 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8157 |  | 
 | 8158 | ac_cv_lib_dld_dld_link=no | 
 | 8159 | fi | 
 | 8160 | rm -f conftest.err conftest.$ac_objext \ | 
 | 8161 |       conftest$ac_exeext conftest.$ac_ext | 
 | 8162 | LIBS=$ac_check_lib_save_LIBS | 
 | 8163 | fi | 
 | 8164 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | 
 | 8165 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | 
 | 8166 | if test $ac_cv_lib_dld_dld_link = yes; then | 
 | 8167 |  | 
 | 8168 | cat >>confdefs.h <<\_ACEOF | 
 | 8169 | #define HAVE_DLD 1 | 
 | 8170 | _ACEOF | 
 | 8171 |  | 
 | 8172 | 	 	LIBADD_DL="$LIBADD_DL -ldld" | 
 | 8173 | else | 
 | 8174 |   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 | 
 | 8175 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6 | 
 | 8176 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then | 
 | 8177 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8178 | else | 
 | 8179 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 8180 | /* confdefs.h.  */ | 
 | 8181 | _ACEOF | 
 | 8182 | cat confdefs.h >>conftest.$ac_ext | 
 | 8183 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 8184 | /* end confdefs.h.  */ | 
 | 8185 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. | 
 | 8186 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 8187 | #define _dyld_func_lookup innocuous__dyld_func_lookup | 
 | 8188 |  | 
 | 8189 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 8190 |     which can conflict with char _dyld_func_lookup (); below. | 
 | 8191 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 8192 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 8193 |  | 
 | 8194 | #ifdef __STDC__ | 
 | 8195 | # include <limits.h> | 
 | 8196 | #else | 
 | 8197 | # include <assert.h> | 
 | 8198 | #endif | 
 | 8199 |  | 
 | 8200 | #undef _dyld_func_lookup | 
 | 8201 |  | 
 | 8202 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 8203 | #ifdef __cplusplus | 
 | 8204 | extern "C" | 
 | 8205 | { | 
 | 8206 | #endif | 
 | 8207 | /* We use char because int might match the return type of a gcc2 | 
 | 8208 |    builtin and then its argument prototype would still apply.  */ | 
 | 8209 | char _dyld_func_lookup (); | 
 | 8210 | /* The GNU C library defines this for functions which it implements | 
 | 8211 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 8212 |     something starting with __ and the normal name is an alias.  */ | 
 | 8213 | #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup) | 
 | 8214 | choke me | 
 | 8215 | #else | 
 | 8216 | char (*f) () = _dyld_func_lookup; | 
 | 8217 | #endif | 
 | 8218 | #ifdef __cplusplus | 
 | 8219 | } | 
 | 8220 | #endif | 
 | 8221 |  | 
 | 8222 | int | 
 | 8223 | main () | 
 | 8224 | { | 
 | 8225 | return f != _dyld_func_lookup; | 
 | 8226 |   ; | 
 | 8227 |   return 0; | 
 | 8228 | } | 
 | 8229 | _ACEOF | 
 | 8230 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 8231 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 8232 |   (eval $ac_link) 2>conftest.er1 | 
 | 8233 |   ac_status=$? | 
 | 8234 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 8235 |   rm -f conftest.er1 | 
 | 8236 |   cat conftest.err >&5 | 
 | 8237 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8238 |   (exit $ac_status); } && | 
 | 8239 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 8240 | 			 || test ! -s conftest.err' | 
 | 8241 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8242 |   (eval $ac_try) 2>&5 | 
 | 8243 |   ac_status=$? | 
 | 8244 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8245 |   (exit $ac_status); }; } && | 
 | 8246 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 8247 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8248 |   (eval $ac_try) 2>&5 | 
 | 8249 |   ac_status=$? | 
 | 8250 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8251 |   (exit $ac_status); }; }; then | 
 | 8252 |   ac_cv_func__dyld_func_lookup=yes | 
 | 8253 | else | 
 | 8254 |   echo "$as_me: failed program was:" >&5 | 
 | 8255 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8256 |  | 
 | 8257 | ac_cv_func__dyld_func_lookup=no | 
 | 8258 | fi | 
 | 8259 | rm -f conftest.err conftest.$ac_objext \ | 
 | 8260 |       conftest$ac_exeext conftest.$ac_ext | 
 | 8261 | fi | 
 | 8262 | echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 | 
 | 8263 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6 | 
 | 8264 | if test $ac_cv_func__dyld_func_lookup = yes; then | 
 | 8265 |  | 
 | 8266 | cat >>confdefs.h <<\_ACEOF | 
 | 8267 | #define HAVE_DYLD 1 | 
 | 8268 | _ACEOF | 
 | 8269 |  | 
 | 8270 | fi | 
 | 8271 |  | 
 | 8272 |  | 
 | 8273 | fi | 
 | 8274 |  | 
 | 8275 |  | 
 | 8276 | fi | 
 | 8277 |  | 
 | 8278 |  | 
 | 8279 | fi | 
 | 8280 | rm -f conftest.err conftest.$ac_objext \ | 
 | 8281 |       conftest$ac_exeext conftest.$ac_ext | 
 | 8282 |  | 
 | 8283 | fi | 
 | 8284 |  | 
 | 8285 |  | 
 | 8286 | fi | 
 | 8287 |  | 
 | 8288 |  | 
 | 8289 | fi | 
 | 8290 |  | 
 | 8291 |  | 
 | 8292 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes | 
 | 8293 | then | 
 | 8294 |   lt_save_LIBS="$LIBS" | 
 | 8295 |   LIBS="$LIBS $LIBADD_DL" | 
 | 8296 |  | 
 | 8297 | for ac_func in dlerror | 
 | 8298 | do | 
 | 8299 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 8300 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 8301 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
 | 8302 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
 | 8303 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8304 | else | 
 | 8305 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 8306 | /* confdefs.h.  */ | 
 | 8307 | _ACEOF | 
 | 8308 | cat confdefs.h >>conftest.$ac_ext | 
 | 8309 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 8310 | /* end confdefs.h.  */ | 
 | 8311 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 8312 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 8313 | #define $ac_func innocuous_$ac_func | 
 | 8314 |  | 
 | 8315 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 8316 |     which can conflict with char $ac_func (); below. | 
 | 8317 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 8318 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 8319 |  | 
 | 8320 | #ifdef __STDC__ | 
 | 8321 | # include <limits.h> | 
 | 8322 | #else | 
 | 8323 | # include <assert.h> | 
 | 8324 | #endif | 
 | 8325 |  | 
 | 8326 | #undef $ac_func | 
 | 8327 |  | 
 | 8328 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 8329 | #ifdef __cplusplus | 
 | 8330 | extern "C" | 
 | 8331 | { | 
 | 8332 | #endif | 
 | 8333 | /* We use char because int might match the return type of a gcc2 | 
 | 8334 |    builtin and then its argument prototype would still apply.  */ | 
 | 8335 | char $ac_func (); | 
 | 8336 | /* The GNU C library defines this for functions which it implements | 
 | 8337 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 8338 |     something starting with __ and the normal name is an alias.  */ | 
 | 8339 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 8340 | choke me | 
 | 8341 | #else | 
 | 8342 | char (*f) () = $ac_func; | 
 | 8343 | #endif | 
 | 8344 | #ifdef __cplusplus | 
 | 8345 | } | 
 | 8346 | #endif | 
 | 8347 |  | 
 | 8348 | int | 
 | 8349 | main () | 
 | 8350 | { | 
 | 8351 | return f != $ac_func; | 
 | 8352 |   ; | 
 | 8353 |   return 0; | 
 | 8354 | } | 
 | 8355 | _ACEOF | 
 | 8356 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 8357 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 8358 |   (eval $ac_link) 2>conftest.er1 | 
 | 8359 |   ac_status=$? | 
 | 8360 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 8361 |   rm -f conftest.er1 | 
 | 8362 |   cat conftest.err >&5 | 
 | 8363 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8364 |   (exit $ac_status); } && | 
 | 8365 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 8366 | 			 || test ! -s conftest.err' | 
 | 8367 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8368 |   (eval $ac_try) 2>&5 | 
 | 8369 |   ac_status=$? | 
 | 8370 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8371 |   (exit $ac_status); }; } && | 
 | 8372 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 8373 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8374 |   (eval $ac_try) 2>&5 | 
 | 8375 |   ac_status=$? | 
 | 8376 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8377 |   (exit $ac_status); }; }; then | 
 | 8378 |   eval "$as_ac_var=yes" | 
 | 8379 | else | 
 | 8380 |   echo "$as_me: failed program was:" >&5 | 
 | 8381 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8382 |  | 
 | 8383 | eval "$as_ac_var=no" | 
 | 8384 | fi | 
 | 8385 | rm -f conftest.err conftest.$ac_objext \ | 
 | 8386 |       conftest$ac_exeext conftest.$ac_ext | 
 | 8387 | fi | 
 | 8388 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
 | 8389 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
 | 8390 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 8391 |   cat >>confdefs.h <<_ACEOF | 
 | 8392 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 8393 | _ACEOF | 
 | 8394 |  | 
 | 8395 | fi | 
 | 8396 | done | 
 | 8397 |  | 
 | 8398 |   LIBS="$lt_save_LIBS" | 
 | 8399 | fi | 
 | 8400 | ac_ext=c | 
 | 8401 | ac_cpp='$CPP $CPPFLAGS' | 
 | 8402 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 8403 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 8404 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 8405 |  | 
 | 8406 |  | 
 | 8407 |  | 
 | 8408 | echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 | 
 | 8409 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6 | 
 | 8410 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then | 
 | 8411 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8412 | else | 
 | 8413 |   ac_cv_sys_symbol_underscore=no | 
 | 8414 |   cat > conftest.$ac_ext <<EOF | 
 | 8415 | void nm_test_func(){} | 
 | 8416 | int main(){nm_test_func;return 0;} | 
 | 8417 | EOF | 
 | 8418 |   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 8419 |   (eval $ac_compile) 2>&5 | 
 | 8420 |   ac_status=$? | 
 | 8421 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8422 |   (exit $ac_status); }; then | 
 | 8423 |     # Now try to grab the symbols. | 
 | 8424 |     ac_nlist=conftest.nm | 
 | 8425 |     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 | 
 | 8426 |   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 | 
 | 8427 |   ac_status=$? | 
 | 8428 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8429 |   (exit $ac_status); } && test -s "$ac_nlist"; then | 
 | 8430 |       # See whether the symbols have a leading underscore. | 
 | 8431 |       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then | 
 | 8432 |         ac_cv_sys_symbol_underscore=yes | 
 | 8433 |       else | 
 | 8434 |         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then | 
 | 8435 | 	  : | 
 | 8436 |         else | 
 | 8437 | 	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5 | 
 | 8438 |         fi | 
 | 8439 |       fi | 
 | 8440 |     else | 
 | 8441 |       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 | 
 | 8442 |     fi | 
 | 8443 |   else | 
 | 8444 |     echo "configure: failed program was:" >&5 | 
 | 8445 |     cat conftest.c >&5 | 
 | 8446 |   fi | 
 | 8447 |   rm -rf conftest* | 
 | 8448 |  | 
 | 8449 | fi | 
 | 8450 | echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 | 
 | 8451 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6 | 
 | 8452 |  | 
 | 8453 |  | 
 | 8454 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then | 
 | 8455 |   if test x"$libltdl_cv_func_dlopen" = xyes || | 
 | 8456 |      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then | 
 | 8457 | 	echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 | 
 | 8458 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6 | 
 | 8459 | if test "${libltdl_cv_need_uscore+set}" = set; then | 
 | 8460 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8461 | else | 
 | 8462 |   libltdl_cv_need_uscore=unknown | 
 | 8463 |           save_LIBS="$LIBS" | 
 | 8464 |           LIBS="$LIBS $LIBADD_DL" | 
 | 8465 | 	  if test "$cross_compiling" = yes; then : | 
 | 8466 |   libltdl_cv_need_uscore=cross | 
 | 8467 | else | 
 | 8468 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
 | 8469 |   lt_status=$lt_dlunknown | 
 | 8470 |   cat > conftest.$ac_ext <<EOF | 
| Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 8471 | #line 8471 "configure" | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8472 | #include "confdefs.h" | 
 | 8473 |  | 
 | 8474 | #if HAVE_DLFCN_H | 
 | 8475 | #include <dlfcn.h> | 
 | 8476 | #endif | 
 | 8477 |  | 
 | 8478 | #include <stdio.h> | 
 | 8479 |  | 
 | 8480 | #ifdef RTLD_GLOBAL | 
 | 8481 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 8482 | #else | 
 | 8483 | #  ifdef DL_GLOBAL | 
 | 8484 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 8485 | #  else | 
 | 8486 | #    define LT_DLGLOBAL		0 | 
 | 8487 | #  endif | 
 | 8488 | #endif | 
 | 8489 |  | 
 | 8490 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 8491 |    find out it does not work in some platform. */ | 
 | 8492 | #ifndef LT_DLLAZY_OR_NOW | 
 | 8493 | #  ifdef RTLD_LAZY | 
 | 8494 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 8495 | #  else | 
 | 8496 | #    ifdef DL_LAZY | 
 | 8497 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 8498 | #    else | 
 | 8499 | #      ifdef RTLD_NOW | 
 | 8500 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 8501 | #      else | 
 | 8502 | #        ifdef DL_NOW | 
 | 8503 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 8504 | #        else | 
 | 8505 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 8506 | #        endif | 
 | 8507 | #      endif | 
 | 8508 | #    endif | 
 | 8509 | #  endif | 
 | 8510 | #endif | 
 | 8511 |  | 
 | 8512 | #ifdef __cplusplus | 
 | 8513 | extern "C" void exit (int); | 
 | 8514 | #endif | 
 | 8515 |  | 
 | 8516 | void fnord() { int i=42;} | 
 | 8517 | int main () | 
 | 8518 | { | 
 | 8519 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 8520 |   int status = $lt_dlunknown; | 
 | 8521 |  | 
 | 8522 |   if (self) | 
 | 8523 |     { | 
 | 8524 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
 | 8525 |       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
 | 8526 |       /* dlclose (self); */ | 
 | 8527 |     } | 
 | 8528 |  | 
 | 8529 |     exit (status); | 
 | 8530 | } | 
 | 8531 | EOF | 
 | 8532 |   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 8533 |   (eval $ac_link) 2>&5 | 
 | 8534 |   ac_status=$? | 
 | 8535 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8536 |   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
 | 8537 |     (./conftest; exit; ) 2>/dev/null | 
 | 8538 |     lt_status=$? | 
 | 8539 |     case x$lt_status in | 
 | 8540 |       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; | 
 | 8541 |       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; | 
 | 8542 |       x$lt_unknown|x*)  ;; | 
 | 8543 |     esac | 
 | 8544 |   else : | 
 | 8545 |     # compilation failed | 
 | 8546 |  | 
 | 8547 |   fi | 
 | 8548 | fi | 
 | 8549 | rm -fr conftest* | 
 | 8550 |  | 
 | 8551 | 	  LIBS="$save_LIBS" | 
 | 8552 |  | 
 | 8553 | fi | 
 | 8554 | echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 | 
 | 8555 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6 | 
 | 8556 |   fi | 
 | 8557 | fi | 
 | 8558 |  | 
 | 8559 | if test x"$libltdl_cv_need_uscore" = xyes; then | 
 | 8560 |  | 
 | 8561 | cat >>confdefs.h <<\_ACEOF | 
 | 8562 | #define NEED_USCORE 1 | 
 | 8563 | _ACEOF | 
 | 8564 |  | 
 | 8565 | fi | 
 | 8566 |  | 
 | 8567 |  | 
 | 8568 | echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 | 
 | 8569 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6 | 
 | 8570 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then | 
 | 8571 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8572 | else | 
 | 8573 |   # PORTME does your system automatically load deplibs for dlopen? | 
 | 8574 |   # or its logical equivalent (e.g. shl_load for HP-UX < 11) | 
 | 8575 |   # For now, we just catch OSes we know something about -- in the | 
 | 8576 |   # future, we'll try test this programmatically. | 
 | 8577 |   libltdl_cv_sys_dlopen_deplibs=unknown | 
 | 8578 |   case "$host_os" in | 
 | 8579 |   aix3*|aix4.1.*|aix4.2.*) | 
 | 8580 |     # Unknown whether this is true for these versions of AIX, but | 
 | 8581 |     # we want this `case' here to explicitly catch those versions. | 
 | 8582 |     libltdl_cv_sys_dlopen_deplibs=unknown | 
 | 8583 |     ;; | 
 | 8584 |   aix[45]*) | 
 | 8585 |     libltdl_cv_sys_dlopen_deplibs=yes | 
 | 8586 |     ;; | 
 | 8587 |   darwin*) | 
 | 8588 |     # Assuming the user has installed a libdl from somewhere, this is true | 
 | 8589 |     # If you are looking for one http://www.opendarwin.org/projects/dlcompat | 
 | 8590 |     libltdl_cv_sys_dlopen_deplibs=yes | 
 | 8591 |     ;; | 
 | 8592 |   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) | 
 | 8593 |     # GNU and its variants, using gnu ld.so (Glibc) | 
 | 8594 |     libltdl_cv_sys_dlopen_deplibs=yes | 
 | 8595 |     ;; | 
 | 8596 |   hpux10*|hpux11*) | 
 | 8597 |     libltdl_cv_sys_dlopen_deplibs=yes | 
 | 8598 |     ;; | 
 | 8599 |   irix[12345]*|irix6.[01]*) | 
 | 8600 |     # Catch all versions of IRIX before 6.2, and indicate that we don't | 
 | 8601 |     # know how it worked for any of those versions. | 
 | 8602 |     libltdl_cv_sys_dlopen_deplibs=unknown | 
 | 8603 |     ;; | 
 | 8604 |   irix*) | 
 | 8605 |     # The case above catches anything before 6.2, and it's known that | 
 | 8606 |     # at 6.2 and later dlopen does load deplibs. | 
 | 8607 |     libltdl_cv_sys_dlopen_deplibs=yes | 
 | 8608 |     ;; | 
 | 8609 |   netbsd*) | 
 | 8610 |     libltdl_cv_sys_dlopen_deplibs=yes | 
 | 8611 |     ;; | 
 | 8612 |   openbsd*) | 
 | 8613 |     libltdl_cv_sys_dlopen_deplibs=yes | 
 | 8614 |     ;; | 
 | 8615 |   osf[1234]*) | 
 | 8616 |     # dlopen did load deplibs (at least at 4.x), but until the 5.x series, | 
 | 8617 |     # it did *not* use an RPATH in a shared library to find objects the | 
 | 8618 |     # library depends on, so we explictly say `no'. | 
 | 8619 |     libltdl_cv_sys_dlopen_deplibs=no | 
 | 8620 |     ;; | 
 | 8621 |   osf5.0|osf5.0a|osf5.1) | 
 | 8622 |     # dlopen *does* load deplibs and with the right loader patch applied | 
 | 8623 |     # it even uses RPATH in a shared library to search for shared objects | 
 | 8624 |     # that the library depends on, but there's no easy way to know if that | 
 | 8625 |     # patch is installed.  Since this is the case, all we can really | 
 | 8626 |     # say is unknown -- it depends on the patch being installed.  If | 
 | 8627 |     # it is, this changes to `yes'.  Without it, it would be `no'. | 
 | 8628 |     libltdl_cv_sys_dlopen_deplibs=unknown | 
 | 8629 |     ;; | 
 | 8630 |   osf*) | 
 | 8631 |     # the two cases above should catch all versions of osf <= 5.1.  Read | 
 | 8632 |     # the comments above for what we know about them. | 
 | 8633 |     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library | 
 | 8634 |     # is used to find them so we can finally say `yes'. | 
 | 8635 |     libltdl_cv_sys_dlopen_deplibs=yes | 
 | 8636 |     ;; | 
 | 8637 |   solaris*) | 
 | 8638 |     libltdl_cv_sys_dlopen_deplibs=yes | 
 | 8639 |     ;; | 
 | 8640 |   esac | 
 | 8641 |  | 
 | 8642 | fi | 
 | 8643 | echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 | 
 | 8644 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6 | 
 | 8645 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then | 
 | 8646 |  | 
 | 8647 | cat >>confdefs.h <<\_ACEOF | 
 | 8648 | #define LTDL_DLOPEN_DEPLIBS 1 | 
 | 8649 | _ACEOF | 
 | 8650 |  | 
 | 8651 | fi | 
 | 8652 |  | 
 | 8653 |  | 
 | 8654 | for ac_header in argz.h | 
 | 8655 | do | 
 | 8656 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 8657 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 8658 |   echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 8659 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 8660 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 8661 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8662 | fi | 
 | 8663 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 8664 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 8665 | else | 
 | 8666 |   # Is the header compilable? | 
 | 8667 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 8668 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
 | 8669 | cat >conftest.$ac_ext <<_ACEOF | 
 | 8670 | /* confdefs.h.  */ | 
 | 8671 | _ACEOF | 
 | 8672 | cat confdefs.h >>conftest.$ac_ext | 
 | 8673 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 8674 | /* end confdefs.h.  */ | 
 | 8675 | $ac_includes_default | 
 | 8676 | #include <$ac_header> | 
 | 8677 | _ACEOF | 
 | 8678 | rm -f conftest.$ac_objext | 
 | 8679 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 8680 |   (eval $ac_compile) 2>conftest.er1 | 
 | 8681 |   ac_status=$? | 
 | 8682 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 8683 |   rm -f conftest.er1 | 
 | 8684 |   cat conftest.err >&5 | 
 | 8685 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8686 |   (exit $ac_status); } && | 
 | 8687 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 8688 | 			 || test ! -s conftest.err' | 
 | 8689 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8690 |   (eval $ac_try) 2>&5 | 
 | 8691 |   ac_status=$? | 
 | 8692 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8693 |   (exit $ac_status); }; } && | 
 | 8694 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 8695 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8696 |   (eval $ac_try) 2>&5 | 
 | 8697 |   ac_status=$? | 
 | 8698 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8699 |   (exit $ac_status); }; }; then | 
 | 8700 |   ac_header_compiler=yes | 
 | 8701 | else | 
 | 8702 |   echo "$as_me: failed program was:" >&5 | 
 | 8703 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8704 |  | 
 | 8705 | ac_header_compiler=no | 
 | 8706 | fi | 
 | 8707 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 8708 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 8709 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
 | 8710 |  | 
 | 8711 | # Is the header present? | 
 | 8712 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 8713 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
 | 8714 | cat >conftest.$ac_ext <<_ACEOF | 
 | 8715 | /* confdefs.h.  */ | 
 | 8716 | _ACEOF | 
 | 8717 | cat confdefs.h >>conftest.$ac_ext | 
 | 8718 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 8719 | /* end confdefs.h.  */ | 
 | 8720 | #include <$ac_header> | 
 | 8721 | _ACEOF | 
 | 8722 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 8723 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 8724 |   ac_status=$? | 
 | 8725 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 8726 |   rm -f conftest.er1 | 
 | 8727 |   cat conftest.err >&5 | 
 | 8728 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8729 |   (exit $ac_status); } >/dev/null; then | 
 | 8730 |   if test -s conftest.err; then | 
 | 8731 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 8732 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 8733 |   else | 
 | 8734 |     ac_cpp_err= | 
 | 8735 |   fi | 
 | 8736 | else | 
 | 8737 |   ac_cpp_err=yes | 
 | 8738 | fi | 
 | 8739 | if test -z "$ac_cpp_err"; then | 
 | 8740 |   ac_header_preproc=yes | 
 | 8741 | else | 
 | 8742 |   echo "$as_me: failed program was:" >&5 | 
 | 8743 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8744 |  | 
 | 8745 |   ac_header_preproc=no | 
 | 8746 | fi | 
 | 8747 | rm -f conftest.err conftest.$ac_ext | 
 | 8748 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 8749 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
 | 8750 |  | 
 | 8751 | # So?  What about this header? | 
 | 8752 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 8753 |   yes:no: ) | 
 | 8754 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 8755 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 8756 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 8757 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
 | 8758 |     ac_header_preproc=yes | 
 | 8759 |     ;; | 
 | 8760 |   no:yes:* ) | 
 | 8761 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 8762 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
 | 8763 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 8764 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 8765 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 8766 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 8767 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 8768 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 8769 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 8770 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
 | 8771 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 8772 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
 | 8773 |     ( | 
 | 8774 |       cat <<\_ASBOX | 
 | 8775 | ## ----------------------------------- ## | 
 | 8776 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 8777 | ## ----------------------------------- ## | 
 | 8778 | _ASBOX | 
 | 8779 |     ) | | 
 | 8780 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 8781 |     ;; | 
 | 8782 | esac | 
 | 8783 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 8784 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 8785 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 8786 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8787 | else | 
 | 8788 |   eval "$as_ac_Header=\$ac_header_preproc" | 
 | 8789 | fi | 
 | 8790 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 8791 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 8792 |  | 
 | 8793 | fi | 
 | 8794 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 8795 |   cat >>confdefs.h <<_ACEOF | 
 | 8796 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 8797 | _ACEOF | 
 | 8798 |  | 
 | 8799 | fi | 
 | 8800 |  | 
 | 8801 | done | 
 | 8802 |  | 
 | 8803 |  | 
 | 8804 | echo "$as_me:$LINENO: checking for error_t" >&5 | 
 | 8805 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6 | 
 | 8806 | if test "${ac_cv_type_error_t+set}" = set; then | 
 | 8807 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8808 | else | 
 | 8809 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 8810 | /* confdefs.h.  */ | 
 | 8811 | _ACEOF | 
 | 8812 | cat confdefs.h >>conftest.$ac_ext | 
 | 8813 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 8814 | /* end confdefs.h.  */ | 
 | 8815 | #if HAVE_ARGZ_H | 
 | 8816 | #  include <argz.h> | 
 | 8817 | #endif | 
 | 8818 |  | 
 | 8819 | int | 
 | 8820 | main () | 
 | 8821 | { | 
 | 8822 | if ((error_t *) 0) | 
 | 8823 |   return 0; | 
 | 8824 | if (sizeof (error_t)) | 
 | 8825 |   return 0; | 
 | 8826 |   ; | 
 | 8827 |   return 0; | 
 | 8828 | } | 
 | 8829 | _ACEOF | 
 | 8830 | rm -f conftest.$ac_objext | 
 | 8831 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 8832 |   (eval $ac_compile) 2>conftest.er1 | 
 | 8833 |   ac_status=$? | 
 | 8834 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 8835 |   rm -f conftest.er1 | 
 | 8836 |   cat conftest.err >&5 | 
 | 8837 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8838 |   (exit $ac_status); } && | 
 | 8839 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 8840 | 			 || test ! -s conftest.err' | 
 | 8841 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8842 |   (eval $ac_try) 2>&5 | 
 | 8843 |   ac_status=$? | 
 | 8844 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8845 |   (exit $ac_status); }; } && | 
 | 8846 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 8847 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8848 |   (eval $ac_try) 2>&5 | 
 | 8849 |   ac_status=$? | 
 | 8850 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8851 |   (exit $ac_status); }; }; then | 
 | 8852 |   ac_cv_type_error_t=yes | 
 | 8853 | else | 
 | 8854 |   echo "$as_me: failed program was:" >&5 | 
 | 8855 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8856 |  | 
 | 8857 | ac_cv_type_error_t=no | 
 | 8858 | fi | 
 | 8859 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 8860 | fi | 
 | 8861 | echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 | 
 | 8862 | echo "${ECHO_T}$ac_cv_type_error_t" >&6 | 
 | 8863 | if test $ac_cv_type_error_t = yes; then | 
 | 8864 |  | 
 | 8865 | cat >>confdefs.h <<_ACEOF | 
 | 8866 | #define HAVE_ERROR_T 1 | 
 | 8867 | _ACEOF | 
 | 8868 |  | 
 | 8869 |  | 
 | 8870 | else | 
 | 8871 |  | 
 | 8872 | cat >>confdefs.h <<\_ACEOF | 
 | 8873 | #define error_t int | 
 | 8874 | _ACEOF | 
 | 8875 |  | 
 | 8876 | fi | 
 | 8877 |  | 
 | 8878 |  | 
 | 8879 |  | 
 | 8880 |  | 
 | 8881 |  | 
 | 8882 |  | 
 | 8883 |  | 
 | 8884 | for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify | 
 | 8885 | do | 
 | 8886 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 8887 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 8888 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
 | 8889 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
 | 8890 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8891 | else | 
 | 8892 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 8893 | /* confdefs.h.  */ | 
 | 8894 | _ACEOF | 
 | 8895 | cat confdefs.h >>conftest.$ac_ext | 
 | 8896 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 8897 | /* end confdefs.h.  */ | 
 | 8898 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 8899 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 8900 | #define $ac_func innocuous_$ac_func | 
 | 8901 |  | 
 | 8902 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 8903 |     which can conflict with char $ac_func (); below. | 
 | 8904 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 8905 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 8906 |  | 
 | 8907 | #ifdef __STDC__ | 
 | 8908 | # include <limits.h> | 
 | 8909 | #else | 
 | 8910 | # include <assert.h> | 
 | 8911 | #endif | 
 | 8912 |  | 
 | 8913 | #undef $ac_func | 
 | 8914 |  | 
 | 8915 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 8916 | #ifdef __cplusplus | 
 | 8917 | extern "C" | 
 | 8918 | { | 
 | 8919 | #endif | 
 | 8920 | /* We use char because int might match the return type of a gcc2 | 
 | 8921 |    builtin and then its argument prototype would still apply.  */ | 
 | 8922 | char $ac_func (); | 
 | 8923 | /* The GNU C library defines this for functions which it implements | 
 | 8924 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 8925 |     something starting with __ and the normal name is an alias.  */ | 
 | 8926 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 8927 | choke me | 
 | 8928 | #else | 
 | 8929 | char (*f) () = $ac_func; | 
 | 8930 | #endif | 
 | 8931 | #ifdef __cplusplus | 
 | 8932 | } | 
 | 8933 | #endif | 
 | 8934 |  | 
 | 8935 | int | 
 | 8936 | main () | 
 | 8937 | { | 
 | 8938 | return f != $ac_func; | 
 | 8939 |   ; | 
 | 8940 |   return 0; | 
 | 8941 | } | 
 | 8942 | _ACEOF | 
 | 8943 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 8944 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 8945 |   (eval $ac_link) 2>conftest.er1 | 
 | 8946 |   ac_status=$? | 
 | 8947 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 8948 |   rm -f conftest.er1 | 
 | 8949 |   cat conftest.err >&5 | 
 | 8950 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8951 |   (exit $ac_status); } && | 
 | 8952 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 8953 | 			 || test ! -s conftest.err' | 
 | 8954 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8955 |   (eval $ac_try) 2>&5 | 
 | 8956 |   ac_status=$? | 
 | 8957 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8958 |   (exit $ac_status); }; } && | 
 | 8959 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 8960 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8961 |   (eval $ac_try) 2>&5 | 
 | 8962 |   ac_status=$? | 
 | 8963 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8964 |   (exit $ac_status); }; }; then | 
 | 8965 |   eval "$as_ac_var=yes" | 
 | 8966 | else | 
 | 8967 |   echo "$as_me: failed program was:" >&5 | 
 | 8968 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8969 |  | 
 | 8970 | eval "$as_ac_var=no" | 
 | 8971 | fi | 
 | 8972 | rm -f conftest.err conftest.$ac_objext \ | 
 | 8973 |       conftest$ac_exeext conftest.$ac_ext | 
 | 8974 | fi | 
 | 8975 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
 | 8976 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
 | 8977 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 8978 |   cat >>confdefs.h <<_ACEOF | 
 | 8979 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 8980 | _ACEOF | 
 | 8981 |  | 
 | 8982 | fi | 
 | 8983 | done | 
 | 8984 |  | 
 | 8985 |  | 
 | 8986 |  | 
 | 8987 |  | 
 | 8988 |  | 
 | 8989 |  | 
 | 8990 |  | 
 | 8991 |  | 
 | 8992 |  | 
 | 8993 |  | 
 | 8994 |  | 
 | 8995 |  | 
 | 8996 |  | 
 | 8997 |  | 
 | 8998 |  | 
 | 8999 |  | 
 | 9000 |  | 
 | 9001 |  | 
 | 9002 |  | 
 | 9003 |  | 
 | 9004 |  | 
 | 9005 |  | 
 | 9006 |  | 
 | 9007 |  | 
 | 9008 |  | 
 | 9009 |  | 
 | 9010 |  | 
 | 9011 |  | 
 | 9012 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ | 
 | 9013 | 		  stdio.h unistd.h | 
 | 9014 | do | 
 | 9015 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 9016 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 9017 |   echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 9018 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 9019 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 9020 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 9021 | fi | 
 | 9022 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 9023 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 9024 | else | 
 | 9025 |   # Is the header compilable? | 
 | 9026 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 9027 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
 | 9028 | cat >conftest.$ac_ext <<_ACEOF | 
 | 9029 | /* confdefs.h.  */ | 
 | 9030 | _ACEOF | 
 | 9031 | cat confdefs.h >>conftest.$ac_ext | 
 | 9032 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 9033 | /* end confdefs.h.  */ | 
 | 9034 | $ac_includes_default | 
 | 9035 | #include <$ac_header> | 
 | 9036 | _ACEOF | 
 | 9037 | rm -f conftest.$ac_objext | 
 | 9038 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 9039 |   (eval $ac_compile) 2>conftest.er1 | 
 | 9040 |   ac_status=$? | 
 | 9041 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 9042 |   rm -f conftest.er1 | 
 | 9043 |   cat conftest.err >&5 | 
 | 9044 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9045 |   (exit $ac_status); } && | 
 | 9046 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 9047 | 			 || test ! -s conftest.err' | 
 | 9048 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9049 |   (eval $ac_try) 2>&5 | 
 | 9050 |   ac_status=$? | 
 | 9051 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9052 |   (exit $ac_status); }; } && | 
 | 9053 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 9054 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9055 |   (eval $ac_try) 2>&5 | 
 | 9056 |   ac_status=$? | 
 | 9057 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9058 |   (exit $ac_status); }; }; then | 
 | 9059 |   ac_header_compiler=yes | 
 | 9060 | else | 
 | 9061 |   echo "$as_me: failed program was:" >&5 | 
 | 9062 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 9063 |  | 
 | 9064 | ac_header_compiler=no | 
 | 9065 | fi | 
 | 9066 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 9067 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 9068 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
 | 9069 |  | 
 | 9070 | # Is the header present? | 
 | 9071 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 9072 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
 | 9073 | cat >conftest.$ac_ext <<_ACEOF | 
 | 9074 | /* confdefs.h.  */ | 
 | 9075 | _ACEOF | 
 | 9076 | cat confdefs.h >>conftest.$ac_ext | 
 | 9077 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 9078 | /* end confdefs.h.  */ | 
 | 9079 | #include <$ac_header> | 
 | 9080 | _ACEOF | 
 | 9081 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 9082 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 9083 |   ac_status=$? | 
 | 9084 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 9085 |   rm -f conftest.er1 | 
 | 9086 |   cat conftest.err >&5 | 
 | 9087 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9088 |   (exit $ac_status); } >/dev/null; then | 
 | 9089 |   if test -s conftest.err; then | 
 | 9090 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 9091 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 9092 |   else | 
 | 9093 |     ac_cpp_err= | 
 | 9094 |   fi | 
 | 9095 | else | 
 | 9096 |   ac_cpp_err=yes | 
 | 9097 | fi | 
 | 9098 | if test -z "$ac_cpp_err"; then | 
 | 9099 |   ac_header_preproc=yes | 
 | 9100 | else | 
 | 9101 |   echo "$as_me: failed program was:" >&5 | 
 | 9102 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 9103 |  | 
 | 9104 |   ac_header_preproc=no | 
 | 9105 | fi | 
 | 9106 | rm -f conftest.err conftest.$ac_ext | 
 | 9107 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 9108 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
 | 9109 |  | 
 | 9110 | # So?  What about this header? | 
 | 9111 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 9112 |   yes:no: ) | 
 | 9113 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 9114 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 9115 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 9116 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
 | 9117 |     ac_header_preproc=yes | 
 | 9118 |     ;; | 
 | 9119 |   no:yes:* ) | 
 | 9120 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 9121 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
 | 9122 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 9123 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 9124 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 9125 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 9126 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 9127 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 9128 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 9129 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
 | 9130 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 9131 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
 | 9132 |     ( | 
 | 9133 |       cat <<\_ASBOX | 
 | 9134 | ## ----------------------------------- ## | 
 | 9135 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 9136 | ## ----------------------------------- ## | 
 | 9137 | _ASBOX | 
 | 9138 |     ) | | 
 | 9139 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 9140 |     ;; | 
 | 9141 | esac | 
 | 9142 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 9143 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 9144 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 9145 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 9146 | else | 
 | 9147 |   eval "$as_ac_Header=\$ac_header_preproc" | 
 | 9148 | fi | 
 | 9149 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 9150 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 9151 |  | 
 | 9152 | fi | 
 | 9153 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 9154 |   cat >>confdefs.h <<_ACEOF | 
 | 9155 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 9156 | _ACEOF | 
 | 9157 |  | 
 | 9158 | fi | 
 | 9159 |  | 
 | 9160 | done | 
 | 9161 |  | 
 | 9162 |  | 
 | 9163 |  | 
 | 9164 |  | 
 | 9165 |  | 
 | 9166 | for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h | 
 | 9167 | do | 
 | 9168 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 9169 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 9170 |   echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 9171 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 9172 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 9173 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 9174 | fi | 
 | 9175 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 9176 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 9177 | else | 
 | 9178 |   # Is the header compilable? | 
 | 9179 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 9180 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
 | 9181 | cat >conftest.$ac_ext <<_ACEOF | 
 | 9182 | /* confdefs.h.  */ | 
 | 9183 | _ACEOF | 
 | 9184 | cat confdefs.h >>conftest.$ac_ext | 
 | 9185 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 9186 | /* end confdefs.h.  */ | 
 | 9187 | $ac_includes_default | 
 | 9188 | #include <$ac_header> | 
 | 9189 | _ACEOF | 
 | 9190 | rm -f conftest.$ac_objext | 
 | 9191 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 9192 |   (eval $ac_compile) 2>conftest.er1 | 
 | 9193 |   ac_status=$? | 
 | 9194 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 9195 |   rm -f conftest.er1 | 
 | 9196 |   cat conftest.err >&5 | 
 | 9197 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9198 |   (exit $ac_status); } && | 
 | 9199 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 9200 | 			 || test ! -s conftest.err' | 
 | 9201 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9202 |   (eval $ac_try) 2>&5 | 
 | 9203 |   ac_status=$? | 
 | 9204 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9205 |   (exit $ac_status); }; } && | 
 | 9206 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 9207 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9208 |   (eval $ac_try) 2>&5 | 
 | 9209 |   ac_status=$? | 
 | 9210 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9211 |   (exit $ac_status); }; }; then | 
 | 9212 |   ac_header_compiler=yes | 
 | 9213 | else | 
 | 9214 |   echo "$as_me: failed program was:" >&5 | 
 | 9215 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 9216 |  | 
 | 9217 | ac_header_compiler=no | 
 | 9218 | fi | 
 | 9219 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 9220 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 9221 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
 | 9222 |  | 
 | 9223 | # Is the header present? | 
 | 9224 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 9225 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
 | 9226 | cat >conftest.$ac_ext <<_ACEOF | 
 | 9227 | /* confdefs.h.  */ | 
 | 9228 | _ACEOF | 
 | 9229 | cat confdefs.h >>conftest.$ac_ext | 
 | 9230 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 9231 | /* end confdefs.h.  */ | 
 | 9232 | #include <$ac_header> | 
 | 9233 | _ACEOF | 
 | 9234 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 9235 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 9236 |   ac_status=$? | 
 | 9237 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 9238 |   rm -f conftest.er1 | 
 | 9239 |   cat conftest.err >&5 | 
 | 9240 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9241 |   (exit $ac_status); } >/dev/null; then | 
 | 9242 |   if test -s conftest.err; then | 
 | 9243 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 9244 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 9245 |   else | 
 | 9246 |     ac_cpp_err= | 
 | 9247 |   fi | 
 | 9248 | else | 
 | 9249 |   ac_cpp_err=yes | 
 | 9250 | fi | 
 | 9251 | if test -z "$ac_cpp_err"; then | 
 | 9252 |   ac_header_preproc=yes | 
 | 9253 | else | 
 | 9254 |   echo "$as_me: failed program was:" >&5 | 
 | 9255 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 9256 |  | 
 | 9257 |   ac_header_preproc=no | 
 | 9258 | fi | 
 | 9259 | rm -f conftest.err conftest.$ac_ext | 
 | 9260 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 9261 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
 | 9262 |  | 
 | 9263 | # So?  What about this header? | 
 | 9264 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 9265 |   yes:no: ) | 
 | 9266 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 9267 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 9268 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 9269 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
 | 9270 |     ac_header_preproc=yes | 
 | 9271 |     ;; | 
 | 9272 |   no:yes:* ) | 
 | 9273 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 9274 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
 | 9275 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 9276 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 9277 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 9278 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 9279 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 9280 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 9281 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 9282 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
 | 9283 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 9284 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
 | 9285 |     ( | 
 | 9286 |       cat <<\_ASBOX | 
 | 9287 | ## ----------------------------------- ## | 
 | 9288 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 9289 | ## ----------------------------------- ## | 
 | 9290 | _ASBOX | 
 | 9291 |     ) | | 
 | 9292 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 9293 |     ;; | 
 | 9294 | esac | 
 | 9295 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 9296 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 9297 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 9298 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 9299 | else | 
 | 9300 |   eval "$as_ac_Header=\$ac_header_preproc" | 
 | 9301 | fi | 
 | 9302 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 9303 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 9304 |  | 
 | 9305 | fi | 
 | 9306 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 9307 |   cat >>confdefs.h <<_ACEOF | 
 | 9308 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 9309 | _ACEOF | 
 | 9310 |  | 
 | 9311 | fi | 
 | 9312 |  | 
 | 9313 | done | 
 | 9314 |  | 
 | 9315 |  | 
 | 9316 |  | 
 | 9317 | for ac_header in string.h strings.h | 
 | 9318 | do | 
 | 9319 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 9320 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 9321 |   echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 9322 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 9323 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 9324 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 9325 | fi | 
 | 9326 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 9327 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 9328 | else | 
 | 9329 |   # Is the header compilable? | 
 | 9330 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 9331 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
 | 9332 | cat >conftest.$ac_ext <<_ACEOF | 
 | 9333 | /* confdefs.h.  */ | 
 | 9334 | _ACEOF | 
 | 9335 | cat confdefs.h >>conftest.$ac_ext | 
 | 9336 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 9337 | /* end confdefs.h.  */ | 
 | 9338 | $ac_includes_default | 
 | 9339 | #include <$ac_header> | 
 | 9340 | _ACEOF | 
 | 9341 | rm -f conftest.$ac_objext | 
 | 9342 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 9343 |   (eval $ac_compile) 2>conftest.er1 | 
 | 9344 |   ac_status=$? | 
 | 9345 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 9346 |   rm -f conftest.er1 | 
 | 9347 |   cat conftest.err >&5 | 
 | 9348 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9349 |   (exit $ac_status); } && | 
 | 9350 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 9351 | 			 || test ! -s conftest.err' | 
 | 9352 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9353 |   (eval $ac_try) 2>&5 | 
 | 9354 |   ac_status=$? | 
 | 9355 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9356 |   (exit $ac_status); }; } && | 
 | 9357 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 9358 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9359 |   (eval $ac_try) 2>&5 | 
 | 9360 |   ac_status=$? | 
 | 9361 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9362 |   (exit $ac_status); }; }; then | 
 | 9363 |   ac_header_compiler=yes | 
 | 9364 | else | 
 | 9365 |   echo "$as_me: failed program was:" >&5 | 
 | 9366 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 9367 |  | 
 | 9368 | ac_header_compiler=no | 
 | 9369 | fi | 
 | 9370 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 9371 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 9372 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
 | 9373 |  | 
 | 9374 | # Is the header present? | 
 | 9375 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 9376 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
 | 9377 | cat >conftest.$ac_ext <<_ACEOF | 
 | 9378 | /* confdefs.h.  */ | 
 | 9379 | _ACEOF | 
 | 9380 | cat confdefs.h >>conftest.$ac_ext | 
 | 9381 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 9382 | /* end confdefs.h.  */ | 
 | 9383 | #include <$ac_header> | 
 | 9384 | _ACEOF | 
 | 9385 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 9386 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 9387 |   ac_status=$? | 
 | 9388 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 9389 |   rm -f conftest.er1 | 
 | 9390 |   cat conftest.err >&5 | 
 | 9391 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9392 |   (exit $ac_status); } >/dev/null; then | 
 | 9393 |   if test -s conftest.err; then | 
 | 9394 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 9395 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 9396 |   else | 
 | 9397 |     ac_cpp_err= | 
 | 9398 |   fi | 
 | 9399 | else | 
 | 9400 |   ac_cpp_err=yes | 
 | 9401 | fi | 
 | 9402 | if test -z "$ac_cpp_err"; then | 
 | 9403 |   ac_header_preproc=yes | 
 | 9404 | else | 
 | 9405 |   echo "$as_me: failed program was:" >&5 | 
 | 9406 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 9407 |  | 
 | 9408 |   ac_header_preproc=no | 
 | 9409 | fi | 
 | 9410 | rm -f conftest.err conftest.$ac_ext | 
 | 9411 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 9412 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
 | 9413 |  | 
 | 9414 | # So?  What about this header? | 
 | 9415 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 9416 |   yes:no: ) | 
 | 9417 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 9418 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 9419 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 9420 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
 | 9421 |     ac_header_preproc=yes | 
 | 9422 |     ;; | 
 | 9423 |   no:yes:* ) | 
 | 9424 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 9425 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
 | 9426 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 9427 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 9428 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 9429 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 9430 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 9431 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 9432 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 9433 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
 | 9434 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 9435 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
 | 9436 |     ( | 
 | 9437 |       cat <<\_ASBOX | 
 | 9438 | ## ----------------------------------- ## | 
 | 9439 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 9440 | ## ----------------------------------- ## | 
 | 9441 | _ASBOX | 
 | 9442 |     ) | | 
 | 9443 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 9444 |     ;; | 
 | 9445 | esac | 
 | 9446 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 9447 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 9448 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 9449 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 9450 | else | 
 | 9451 |   eval "$as_ac_Header=\$ac_header_preproc" | 
 | 9452 | fi | 
 | 9453 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 9454 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 9455 |  | 
 | 9456 | fi | 
 | 9457 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 9458 |   cat >>confdefs.h <<_ACEOF | 
 | 9459 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 9460 | _ACEOF | 
 | 9461 |  break | 
 | 9462 | fi | 
 | 9463 |  | 
 | 9464 | done | 
 | 9465 |  | 
 | 9466 |  | 
 | 9467 |  | 
 | 9468 |  | 
 | 9469 | for ac_func in strchr index | 
 | 9470 | do | 
 | 9471 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 9472 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 9473 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
 | 9474 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
 | 9475 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 9476 | else | 
 | 9477 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 9478 | /* confdefs.h.  */ | 
 | 9479 | _ACEOF | 
 | 9480 | cat confdefs.h >>conftest.$ac_ext | 
 | 9481 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 9482 | /* end confdefs.h.  */ | 
 | 9483 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 9484 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 9485 | #define $ac_func innocuous_$ac_func | 
 | 9486 |  | 
 | 9487 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 9488 |     which can conflict with char $ac_func (); below. | 
 | 9489 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 9490 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 9491 |  | 
 | 9492 | #ifdef __STDC__ | 
 | 9493 | # include <limits.h> | 
 | 9494 | #else | 
 | 9495 | # include <assert.h> | 
 | 9496 | #endif | 
 | 9497 |  | 
 | 9498 | #undef $ac_func | 
 | 9499 |  | 
 | 9500 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 9501 | #ifdef __cplusplus | 
 | 9502 | extern "C" | 
 | 9503 | { | 
 | 9504 | #endif | 
 | 9505 | /* We use char because int might match the return type of a gcc2 | 
 | 9506 |    builtin and then its argument prototype would still apply.  */ | 
 | 9507 | char $ac_func (); | 
 | 9508 | /* The GNU C library defines this for functions which it implements | 
 | 9509 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 9510 |     something starting with __ and the normal name is an alias.  */ | 
 | 9511 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 9512 | choke me | 
 | 9513 | #else | 
 | 9514 | char (*f) () = $ac_func; | 
 | 9515 | #endif | 
 | 9516 | #ifdef __cplusplus | 
 | 9517 | } | 
 | 9518 | #endif | 
 | 9519 |  | 
 | 9520 | int | 
 | 9521 | main () | 
 | 9522 | { | 
 | 9523 | return f != $ac_func; | 
 | 9524 |   ; | 
 | 9525 |   return 0; | 
 | 9526 | } | 
 | 9527 | _ACEOF | 
 | 9528 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 9529 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 9530 |   (eval $ac_link) 2>conftest.er1 | 
 | 9531 |   ac_status=$? | 
 | 9532 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 9533 |   rm -f conftest.er1 | 
 | 9534 |   cat conftest.err >&5 | 
 | 9535 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9536 |   (exit $ac_status); } && | 
 | 9537 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 9538 | 			 || test ! -s conftest.err' | 
 | 9539 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9540 |   (eval $ac_try) 2>&5 | 
 | 9541 |   ac_status=$? | 
 | 9542 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9543 |   (exit $ac_status); }; } && | 
 | 9544 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 9545 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9546 |   (eval $ac_try) 2>&5 | 
 | 9547 |   ac_status=$? | 
 | 9548 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9549 |   (exit $ac_status); }; }; then | 
 | 9550 |   eval "$as_ac_var=yes" | 
 | 9551 | else | 
 | 9552 |   echo "$as_me: failed program was:" >&5 | 
 | 9553 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 9554 |  | 
 | 9555 | eval "$as_ac_var=no" | 
 | 9556 | fi | 
 | 9557 | rm -f conftest.err conftest.$ac_objext \ | 
 | 9558 |       conftest$ac_exeext conftest.$ac_ext | 
 | 9559 | fi | 
 | 9560 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
 | 9561 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
 | 9562 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 9563 |   cat >>confdefs.h <<_ACEOF | 
 | 9564 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 9565 | _ACEOF | 
 | 9566 |  break | 
 | 9567 | fi | 
 | 9568 | done | 
 | 9569 |  | 
 | 9570 |  | 
 | 9571 |  | 
 | 9572 | for ac_func in strrchr rindex | 
 | 9573 | do | 
 | 9574 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 9575 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 9576 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
 | 9577 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
 | 9578 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 9579 | else | 
 | 9580 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 9581 | /* confdefs.h.  */ | 
 | 9582 | _ACEOF | 
 | 9583 | cat confdefs.h >>conftest.$ac_ext | 
 | 9584 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 9585 | /* end confdefs.h.  */ | 
 | 9586 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 9587 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 9588 | #define $ac_func innocuous_$ac_func | 
 | 9589 |  | 
 | 9590 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 9591 |     which can conflict with char $ac_func (); below. | 
 | 9592 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 9593 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 9594 |  | 
 | 9595 | #ifdef __STDC__ | 
 | 9596 | # include <limits.h> | 
 | 9597 | #else | 
 | 9598 | # include <assert.h> | 
 | 9599 | #endif | 
 | 9600 |  | 
 | 9601 | #undef $ac_func | 
 | 9602 |  | 
 | 9603 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 9604 | #ifdef __cplusplus | 
 | 9605 | extern "C" | 
 | 9606 | { | 
 | 9607 | #endif | 
 | 9608 | /* We use char because int might match the return type of a gcc2 | 
 | 9609 |    builtin and then its argument prototype would still apply.  */ | 
 | 9610 | char $ac_func (); | 
 | 9611 | /* The GNU C library defines this for functions which it implements | 
 | 9612 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 9613 |     something starting with __ and the normal name is an alias.  */ | 
 | 9614 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 9615 | choke me | 
 | 9616 | #else | 
 | 9617 | char (*f) () = $ac_func; | 
 | 9618 | #endif | 
 | 9619 | #ifdef __cplusplus | 
 | 9620 | } | 
 | 9621 | #endif | 
 | 9622 |  | 
 | 9623 | int | 
 | 9624 | main () | 
 | 9625 | { | 
 | 9626 | return f != $ac_func; | 
 | 9627 |   ; | 
 | 9628 |   return 0; | 
 | 9629 | } | 
 | 9630 | _ACEOF | 
 | 9631 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 9632 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 9633 |   (eval $ac_link) 2>conftest.er1 | 
 | 9634 |   ac_status=$? | 
 | 9635 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 9636 |   rm -f conftest.er1 | 
 | 9637 |   cat conftest.err >&5 | 
 | 9638 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9639 |   (exit $ac_status); } && | 
 | 9640 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 9641 | 			 || test ! -s conftest.err' | 
 | 9642 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9643 |   (eval $ac_try) 2>&5 | 
 | 9644 |   ac_status=$? | 
 | 9645 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9646 |   (exit $ac_status); }; } && | 
 | 9647 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 9648 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9649 |   (eval $ac_try) 2>&5 | 
 | 9650 |   ac_status=$? | 
 | 9651 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9652 |   (exit $ac_status); }; }; then | 
 | 9653 |   eval "$as_ac_var=yes" | 
 | 9654 | else | 
 | 9655 |   echo "$as_me: failed program was:" >&5 | 
 | 9656 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 9657 |  | 
 | 9658 | eval "$as_ac_var=no" | 
 | 9659 | fi | 
 | 9660 | rm -f conftest.err conftest.$ac_objext \ | 
 | 9661 |       conftest$ac_exeext conftest.$ac_ext | 
 | 9662 | fi | 
 | 9663 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
 | 9664 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
 | 9665 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 9666 |   cat >>confdefs.h <<_ACEOF | 
 | 9667 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 9668 | _ACEOF | 
 | 9669 |  break | 
 | 9670 | fi | 
 | 9671 | done | 
 | 9672 |  | 
 | 9673 |  | 
 | 9674 |  | 
 | 9675 | for ac_func in memcpy bcopy | 
 | 9676 | do | 
 | 9677 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 9678 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 9679 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
 | 9680 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
 | 9681 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 9682 | else | 
 | 9683 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 9684 | /* confdefs.h.  */ | 
 | 9685 | _ACEOF | 
 | 9686 | cat confdefs.h >>conftest.$ac_ext | 
 | 9687 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 9688 | /* end confdefs.h.  */ | 
 | 9689 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 9690 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 9691 | #define $ac_func innocuous_$ac_func | 
 | 9692 |  | 
 | 9693 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 9694 |     which can conflict with char $ac_func (); below. | 
 | 9695 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 9696 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 9697 |  | 
 | 9698 | #ifdef __STDC__ | 
 | 9699 | # include <limits.h> | 
 | 9700 | #else | 
 | 9701 | # include <assert.h> | 
 | 9702 | #endif | 
 | 9703 |  | 
 | 9704 | #undef $ac_func | 
 | 9705 |  | 
 | 9706 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 9707 | #ifdef __cplusplus | 
 | 9708 | extern "C" | 
 | 9709 | { | 
 | 9710 | #endif | 
 | 9711 | /* We use char because int might match the return type of a gcc2 | 
 | 9712 |    builtin and then its argument prototype would still apply.  */ | 
 | 9713 | char $ac_func (); | 
 | 9714 | /* The GNU C library defines this for functions which it implements | 
 | 9715 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 9716 |     something starting with __ and the normal name is an alias.  */ | 
 | 9717 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 9718 | choke me | 
 | 9719 | #else | 
 | 9720 | char (*f) () = $ac_func; | 
 | 9721 | #endif | 
 | 9722 | #ifdef __cplusplus | 
 | 9723 | } | 
 | 9724 | #endif | 
 | 9725 |  | 
 | 9726 | int | 
 | 9727 | main () | 
 | 9728 | { | 
 | 9729 | return f != $ac_func; | 
 | 9730 |   ; | 
 | 9731 |   return 0; | 
 | 9732 | } | 
 | 9733 | _ACEOF | 
 | 9734 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 9735 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 9736 |   (eval $ac_link) 2>conftest.er1 | 
 | 9737 |   ac_status=$? | 
 | 9738 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 9739 |   rm -f conftest.er1 | 
 | 9740 |   cat conftest.err >&5 | 
 | 9741 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9742 |   (exit $ac_status); } && | 
 | 9743 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 9744 | 			 || test ! -s conftest.err' | 
 | 9745 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9746 |   (eval $ac_try) 2>&5 | 
 | 9747 |   ac_status=$? | 
 | 9748 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9749 |   (exit $ac_status); }; } && | 
 | 9750 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 9751 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9752 |   (eval $ac_try) 2>&5 | 
 | 9753 |   ac_status=$? | 
 | 9754 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9755 |   (exit $ac_status); }; }; then | 
 | 9756 |   eval "$as_ac_var=yes" | 
 | 9757 | else | 
 | 9758 |   echo "$as_me: failed program was:" >&5 | 
 | 9759 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 9760 |  | 
 | 9761 | eval "$as_ac_var=no" | 
 | 9762 | fi | 
 | 9763 | rm -f conftest.err conftest.$ac_objext \ | 
 | 9764 |       conftest$ac_exeext conftest.$ac_ext | 
 | 9765 | fi | 
 | 9766 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
 | 9767 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
 | 9768 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 9769 |   cat >>confdefs.h <<_ACEOF | 
 | 9770 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 9771 | _ACEOF | 
 | 9772 |  break | 
 | 9773 | fi | 
 | 9774 | done | 
 | 9775 |  | 
 | 9776 |  | 
 | 9777 |  | 
 | 9778 | for ac_func in memmove strcmp | 
 | 9779 | do | 
 | 9780 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 9781 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 9782 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
 | 9783 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
 | 9784 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 9785 | else | 
 | 9786 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 9787 | /* confdefs.h.  */ | 
 | 9788 | _ACEOF | 
 | 9789 | cat confdefs.h >>conftest.$ac_ext | 
 | 9790 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 9791 | /* end confdefs.h.  */ | 
 | 9792 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 9793 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 9794 | #define $ac_func innocuous_$ac_func | 
 | 9795 |  | 
 | 9796 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 9797 |     which can conflict with char $ac_func (); below. | 
 | 9798 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 9799 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 9800 |  | 
 | 9801 | #ifdef __STDC__ | 
 | 9802 | # include <limits.h> | 
 | 9803 | #else | 
 | 9804 | # include <assert.h> | 
 | 9805 | #endif | 
 | 9806 |  | 
 | 9807 | #undef $ac_func | 
 | 9808 |  | 
 | 9809 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 9810 | #ifdef __cplusplus | 
 | 9811 | extern "C" | 
 | 9812 | { | 
 | 9813 | #endif | 
 | 9814 | /* We use char because int might match the return type of a gcc2 | 
 | 9815 |    builtin and then its argument prototype would still apply.  */ | 
 | 9816 | char $ac_func (); | 
 | 9817 | /* The GNU C library defines this for functions which it implements | 
 | 9818 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 9819 |     something starting with __ and the normal name is an alias.  */ | 
 | 9820 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 9821 | choke me | 
 | 9822 | #else | 
 | 9823 | char (*f) () = $ac_func; | 
 | 9824 | #endif | 
 | 9825 | #ifdef __cplusplus | 
 | 9826 | } | 
 | 9827 | #endif | 
 | 9828 |  | 
 | 9829 | int | 
 | 9830 | main () | 
 | 9831 | { | 
 | 9832 | return f != $ac_func; | 
 | 9833 |   ; | 
 | 9834 |   return 0; | 
 | 9835 | } | 
 | 9836 | _ACEOF | 
 | 9837 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 9838 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 9839 |   (eval $ac_link) 2>conftest.er1 | 
 | 9840 |   ac_status=$? | 
 | 9841 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 9842 |   rm -f conftest.er1 | 
 | 9843 |   cat conftest.err >&5 | 
 | 9844 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9845 |   (exit $ac_status); } && | 
 | 9846 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 9847 | 			 || test ! -s conftest.err' | 
 | 9848 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9849 |   (eval $ac_try) 2>&5 | 
 | 9850 |   ac_status=$? | 
 | 9851 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9852 |   (exit $ac_status); }; } && | 
 | 9853 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 9854 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9855 |   (eval $ac_try) 2>&5 | 
 | 9856 |   ac_status=$? | 
 | 9857 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9858 |   (exit $ac_status); }; }; then | 
 | 9859 |   eval "$as_ac_var=yes" | 
 | 9860 | else | 
 | 9861 |   echo "$as_me: failed program was:" >&5 | 
 | 9862 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 9863 |  | 
 | 9864 | eval "$as_ac_var=no" | 
 | 9865 | fi | 
 | 9866 | rm -f conftest.err conftest.$ac_objext \ | 
 | 9867 |       conftest$ac_exeext conftest.$ac_ext | 
 | 9868 | fi | 
 | 9869 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
 | 9870 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
 | 9871 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 9872 |   cat >>confdefs.h <<_ACEOF | 
 | 9873 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 9874 | _ACEOF | 
 | 9875 |  | 
 | 9876 | fi | 
 | 9877 | done | 
 | 9878 |  | 
 | 9879 |  | 
 | 9880 |  | 
 | 9881 |  | 
 | 9882 | for ac_func in closedir opendir readdir | 
 | 9883 | do | 
 | 9884 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 9885 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 9886 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
 | 9887 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
 | 9888 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 9889 | else | 
 | 9890 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 9891 | /* confdefs.h.  */ | 
 | 9892 | _ACEOF | 
 | 9893 | cat confdefs.h >>conftest.$ac_ext | 
 | 9894 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 9895 | /* end confdefs.h.  */ | 
 | 9896 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 9897 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 9898 | #define $ac_func innocuous_$ac_func | 
 | 9899 |  | 
 | 9900 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 9901 |     which can conflict with char $ac_func (); below. | 
 | 9902 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 9903 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 9904 |  | 
 | 9905 | #ifdef __STDC__ | 
 | 9906 | # include <limits.h> | 
 | 9907 | #else | 
 | 9908 | # include <assert.h> | 
 | 9909 | #endif | 
 | 9910 |  | 
 | 9911 | #undef $ac_func | 
 | 9912 |  | 
 | 9913 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 9914 | #ifdef __cplusplus | 
 | 9915 | extern "C" | 
 | 9916 | { | 
 | 9917 | #endif | 
 | 9918 | /* We use char because int might match the return type of a gcc2 | 
 | 9919 |    builtin and then its argument prototype would still apply.  */ | 
 | 9920 | char $ac_func (); | 
 | 9921 | /* The GNU C library defines this for functions which it implements | 
 | 9922 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 9923 |     something starting with __ and the normal name is an alias.  */ | 
 | 9924 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 9925 | choke me | 
 | 9926 | #else | 
 | 9927 | char (*f) () = $ac_func; | 
 | 9928 | #endif | 
 | 9929 | #ifdef __cplusplus | 
 | 9930 | } | 
 | 9931 | #endif | 
 | 9932 |  | 
 | 9933 | int | 
 | 9934 | main () | 
 | 9935 | { | 
 | 9936 | return f != $ac_func; | 
 | 9937 |   ; | 
 | 9938 |   return 0; | 
 | 9939 | } | 
 | 9940 | _ACEOF | 
 | 9941 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 9942 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 9943 |   (eval $ac_link) 2>conftest.er1 | 
 | 9944 |   ac_status=$? | 
 | 9945 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 9946 |   rm -f conftest.er1 | 
 | 9947 |   cat conftest.err >&5 | 
 | 9948 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9949 |   (exit $ac_status); } && | 
 | 9950 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 9951 | 			 || test ! -s conftest.err' | 
 | 9952 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9953 |   (eval $ac_try) 2>&5 | 
 | 9954 |   ac_status=$? | 
 | 9955 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9956 |   (exit $ac_status); }; } && | 
 | 9957 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 9958 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9959 |   (eval $ac_try) 2>&5 | 
 | 9960 |   ac_status=$? | 
 | 9961 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9962 |   (exit $ac_status); }; }; then | 
 | 9963 |   eval "$as_ac_var=yes" | 
 | 9964 | else | 
 | 9965 |   echo "$as_me: failed program was:" >&5 | 
 | 9966 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 9967 |  | 
 | 9968 | eval "$as_ac_var=no" | 
 | 9969 | fi | 
 | 9970 | rm -f conftest.err conftest.$ac_objext \ | 
 | 9971 |       conftest$ac_exeext conftest.$ac_ext | 
 | 9972 | fi | 
 | 9973 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
 | 9974 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
 | 9975 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 9976 |   cat >>confdefs.h <<_ACEOF | 
 | 9977 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 9978 | _ACEOF | 
 | 9979 |  | 
 | 9980 | fi | 
 | 9981 | done | 
 | 9982 |  | 
 | 9983 |  | 
 | 9984 | # Check whether --enable-shared or --disable-shared was given. | 
 | 9985 | if test "${enable_shared+set}" = set; then | 
 | 9986 |   enableval="$enable_shared" | 
 | 9987 |   p=${PACKAGE-default} | 
 | 9988 |     case $enableval in | 
 | 9989 |     yes) enable_shared=yes ;; | 
 | 9990 |     no) enable_shared=no ;; | 
 | 9991 |     *) | 
 | 9992 |       enable_shared=no | 
 | 9993 |       # Look at the argument we got.  We use all the common list separators. | 
 | 9994 |       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
 | 9995 |       for pkg in $enableval; do | 
 | 9996 | 	IFS="$lt_save_ifs" | 
 | 9997 | 	if test "X$pkg" = "X$p"; then | 
 | 9998 | 	  enable_shared=yes | 
 | 9999 | 	fi | 
 | 10000 |       done | 
 | 10001 |       IFS="$lt_save_ifs" | 
 | 10002 |       ;; | 
 | 10003 |     esac | 
 | 10004 | else | 
 | 10005 |   enable_shared=yes | 
 | 10006 | fi; | 
 | 10007 |  | 
 | 10008 | # Check whether --enable-static or --disable-static was given. | 
 | 10009 | if test "${enable_static+set}" = set; then | 
 | 10010 |   enableval="$enable_static" | 
 | 10011 |   p=${PACKAGE-default} | 
 | 10012 |     case $enableval in | 
 | 10013 |     yes) enable_static=yes ;; | 
 | 10014 |     no) enable_static=no ;; | 
 | 10015 |     *) | 
 | 10016 |      enable_static=no | 
 | 10017 |       # Look at the argument we got.  We use all the common list separators. | 
 | 10018 |       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
 | 10019 |       for pkg in $enableval; do | 
 | 10020 | 	IFS="$lt_save_ifs" | 
 | 10021 | 	if test "X$pkg" = "X$p"; then | 
 | 10022 | 	  enable_static=yes | 
 | 10023 | 	fi | 
 | 10024 |       done | 
 | 10025 |       IFS="$lt_save_ifs" | 
 | 10026 |       ;; | 
 | 10027 |     esac | 
 | 10028 | else | 
 | 10029 |   enable_static=yes | 
 | 10030 | fi; | 
 | 10031 |  | 
 | 10032 | # Check whether --enable-fast-install or --disable-fast-install was given. | 
 | 10033 | if test "${enable_fast_install+set}" = set; then | 
 | 10034 |   enableval="$enable_fast_install" | 
 | 10035 |   p=${PACKAGE-default} | 
 | 10036 |     case $enableval in | 
 | 10037 |     yes) enable_fast_install=yes ;; | 
 | 10038 |     no) enable_fast_install=no ;; | 
 | 10039 |     *) | 
 | 10040 |       enable_fast_install=no | 
 | 10041 |       # Look at the argument we got.  We use all the common list separators. | 
 | 10042 |       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
 | 10043 |       for pkg in $enableval; do | 
 | 10044 | 	IFS="$lt_save_ifs" | 
 | 10045 | 	if test "X$pkg" = "X$p"; then | 
 | 10046 | 	  enable_fast_install=yes | 
 | 10047 | 	fi | 
 | 10048 |       done | 
 | 10049 |       IFS="$lt_save_ifs" | 
 | 10050 |       ;; | 
 | 10051 |     esac | 
 | 10052 | else | 
 | 10053 |   enable_fast_install=yes | 
 | 10054 | fi; | 
 | 10055 |  | 
 | 10056 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | 
 | 10057 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 | 
 | 10058 | if test "${lt_cv_path_SED+set}" = set; then | 
 | 10059 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 10060 | else | 
 | 10061 |   # Loop through the user's path and test for sed and gsed. | 
 | 10062 | # Then use that list of sed's as ones to test for truncation. | 
 | 10063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 10064 | for as_dir in $PATH | 
 | 10065 | do | 
 | 10066 |   IFS=$as_save_IFS | 
 | 10067 |   test -z "$as_dir" && as_dir=. | 
 | 10068 |   for lt_ac_prog in sed gsed; do | 
 | 10069 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 10070 |       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | 
 | 10071 |         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | 
 | 10072 |       fi | 
 | 10073 |     done | 
 | 10074 |   done | 
 | 10075 | done | 
 | 10076 | lt_ac_max=0 | 
 | 10077 | lt_ac_count=0 | 
 | 10078 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | 
 | 10079 | # along with /bin/sed that truncates output. | 
 | 10080 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | 
 | 10081 |   test ! -f $lt_ac_sed && break | 
 | 10082 |   cat /dev/null > conftest.in | 
 | 10083 |   lt_ac_count=0 | 
 | 10084 |   echo $ECHO_N "0123456789$ECHO_C" >conftest.in | 
 | 10085 |   # Check for GNU sed and select it if it is found. | 
 | 10086 |   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | 
 | 10087 |     lt_cv_path_SED=$lt_ac_sed | 
 | 10088 |     break | 
 | 10089 |   fi | 
 | 10090 |   while true; do | 
 | 10091 |     cat conftest.in conftest.in >conftest.tmp | 
 | 10092 |     mv conftest.tmp conftest.in | 
 | 10093 |     cp conftest.in conftest.nl | 
 | 10094 |     echo >>conftest.nl | 
 | 10095 |     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | 
 | 10096 |     cmp -s conftest.out conftest.nl || break | 
 | 10097 |     # 10000 chars as input seems more than enough | 
 | 10098 |     test $lt_ac_count -gt 10 && break | 
 | 10099 |     lt_ac_count=`expr $lt_ac_count + 1` | 
 | 10100 |     if test $lt_ac_count -gt $lt_ac_max; then | 
 | 10101 |       lt_ac_max=$lt_ac_count | 
 | 10102 |       lt_cv_path_SED=$lt_ac_sed | 
 | 10103 |     fi | 
 | 10104 |   done | 
 | 10105 | done | 
 | 10106 |  | 
 | 10107 | fi | 
 | 10108 |  | 
 | 10109 | SED=$lt_cv_path_SED | 
 | 10110 | echo "$as_me:$LINENO: result: $SED" >&5 | 
 | 10111 | echo "${ECHO_T}$SED" >&6 | 
 | 10112 |  | 
 | 10113 |  | 
 | 10114 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | 
 | 10115 | if test "${with_gnu_ld+set}" = set; then | 
 | 10116 |   withval="$with_gnu_ld" | 
 | 10117 |   test "$withval" = no || with_gnu_ld=yes | 
 | 10118 | else | 
 | 10119 |   with_gnu_ld=no | 
 | 10120 | fi; | 
 | 10121 | ac_prog=ld | 
 | 10122 | if test "$GCC" = yes; then | 
 | 10123 |   # Check if gcc -print-prog-name=ld gives a path. | 
 | 10124 |   echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | 
 | 10125 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | 
 | 10126 |   case $host in | 
 | 10127 |   *-*-mingw*) | 
 | 10128 |     # gcc leaves a trailing carriage return which upsets mingw | 
 | 10129 |     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | 
 | 10130 |   *) | 
 | 10131 |     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | 
 | 10132 |   esac | 
 | 10133 |   case $ac_prog in | 
 | 10134 |     # Accept absolute paths. | 
 | 10135 |     [\\/]* | ?:[\\/]*) | 
 | 10136 |       re_direlt='/[^/][^/]*/\.\./' | 
 | 10137 |       # Canonicalize the pathname of ld | 
 | 10138 |       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | 
 | 10139 |       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | 
 | 10140 | 	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | 
 | 10141 |       done | 
 | 10142 |       test -z "$LD" && LD="$ac_prog" | 
 | 10143 |       ;; | 
 | 10144 |   "") | 
 | 10145 |     # If it fails, then pretend we aren't using GCC. | 
 | 10146 |     ac_prog=ld | 
 | 10147 |     ;; | 
 | 10148 |   *) | 
 | 10149 |     # If it is relative, then search for the first ld in PATH. | 
 | 10150 |     with_gnu_ld=unknown | 
 | 10151 |     ;; | 
 | 10152 |   esac | 
 | 10153 | elif test "$with_gnu_ld" = yes; then | 
 | 10154 |   echo "$as_me:$LINENO: checking for GNU ld" >&5 | 
 | 10155 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | 
 | 10156 | else | 
 | 10157 |   echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | 
 | 10158 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | 
 | 10159 | fi | 
 | 10160 | if test "${lt_cv_path_LD+set}" = set; then | 
 | 10161 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 10162 | else | 
 | 10163 |   if test -z "$LD"; then | 
 | 10164 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
 | 10165 |   for ac_dir in $PATH; do | 
 | 10166 |     IFS="$lt_save_ifs" | 
 | 10167 |     test -z "$ac_dir" && ac_dir=. | 
 | 10168 |     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | 
 | 10169 |       lt_cv_path_LD="$ac_dir/$ac_prog" | 
 | 10170 |       # Check to see if the program is GNU ld.  I'd rather use --version, | 
 | 10171 |       # but apparently some GNU ld's only accept -v. | 
 | 10172 |       # Break only if it was the GNU/non-GNU ld that we prefer. | 
 | 10173 |       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | 
 | 10174 |       *GNU* | *'with BFD'*) | 
 | 10175 | 	test "$with_gnu_ld" != no && break | 
 | 10176 | 	;; | 
 | 10177 |       *) | 
 | 10178 | 	test "$with_gnu_ld" != yes && break | 
 | 10179 | 	;; | 
 | 10180 |       esac | 
 | 10181 |     fi | 
 | 10182 |   done | 
 | 10183 |   IFS="$lt_save_ifs" | 
 | 10184 | else | 
 | 10185 |   lt_cv_path_LD="$LD" # Let the user override the test with a path. | 
 | 10186 | fi | 
 | 10187 | fi | 
 | 10188 |  | 
 | 10189 | LD="$lt_cv_path_LD" | 
 | 10190 | if test -n "$LD"; then | 
 | 10191 |   echo "$as_me:$LINENO: result: $LD" >&5 | 
 | 10192 | echo "${ECHO_T}$LD" >&6 | 
 | 10193 | else | 
 | 10194 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 10195 | echo "${ECHO_T}no" >&6 | 
 | 10196 | fi | 
 | 10197 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | 
 | 10198 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | 
 | 10199 |    { (exit 1); exit 1; }; } | 
 | 10200 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | 
 | 10201 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | 
 | 10202 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | 
 | 10203 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 10204 | else | 
 | 10205 |   # I'd rather use --version here, but apparently some GNU ld's only accept -v. | 
 | 10206 | case `$LD -v 2>&1 </dev/null` in | 
 | 10207 | *GNU* | *'with BFD'*) | 
 | 10208 |   lt_cv_prog_gnu_ld=yes | 
 | 10209 |   ;; | 
 | 10210 | *) | 
 | 10211 |   lt_cv_prog_gnu_ld=no | 
 | 10212 |   ;; | 
 | 10213 | esac | 
 | 10214 | fi | 
 | 10215 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | 
 | 10216 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | 
 | 10217 | with_gnu_ld=$lt_cv_prog_gnu_ld | 
 | 10218 |  | 
 | 10219 |  | 
 | 10220 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | 
 | 10221 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | 
 | 10222 | if test "${lt_cv_ld_reload_flag+set}" = set; then | 
 | 10223 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 10224 | else | 
 | 10225 |   lt_cv_ld_reload_flag='-r' | 
 | 10226 | fi | 
 | 10227 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | 
 | 10228 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | 
 | 10229 | reload_flag=$lt_cv_ld_reload_flag | 
 | 10230 | case $reload_flag in | 
 | 10231 | "" | " "*) ;; | 
 | 10232 | *) reload_flag=" $reload_flag" ;; | 
 | 10233 | esac | 
 | 10234 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | 
 | 10235 | case $host_os in | 
 | 10236 |   darwin*) | 
 | 10237 |     if test "$GCC" = yes; then | 
| Chris Lattner | b6f9341 | 2006-04-19 18:38:19 +0000 | [diff] [blame] | 10238 |       reload_cmds='$CC -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs' | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10239 |     else | 
 | 10240 |       reload_cmds='$LD$reload_flag -o $output$reload_objs' | 
 | 10241 |     fi | 
 | 10242 |     ;; | 
 | 10243 | esac | 
 | 10244 |  | 
 | 10245 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 | 
 | 10246 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 | 
 | 10247 | if test "${lt_cv_deplibs_check_method+set}" = set; then | 
 | 10248 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 10249 | else | 
 | 10250 |   lt_cv_file_magic_cmd='$MAGIC_CMD' | 
 | 10251 | lt_cv_file_magic_test_file= | 
 | 10252 | lt_cv_deplibs_check_method='unknown' | 
 | 10253 | # Need to set the preceding variable on all platforms that support | 
 | 10254 | # interlibrary dependencies. | 
 | 10255 | # 'none' -- dependencies not supported. | 
 | 10256 | # `unknown' -- same as none, but documents that we really don't know. | 
 | 10257 | # 'pass_all' -- all dependencies passed with no checks. | 
 | 10258 | # 'test_compile' -- check by making test program. | 
 | 10259 | # 'file_magic [[regex]]' -- check by looking for files in library path | 
 | 10260 | # which responds to the $file_magic_cmd with a given extended regex. | 
 | 10261 | # If you have `file' or equivalent on your system and you're not sure | 
 | 10262 | # whether `pass_all' will *always* work, you probably want this one. | 
 | 10263 |  | 
 | 10264 | case $host_os in | 
 | 10265 | aix4* | aix5*) | 
 | 10266 |   lt_cv_deplibs_check_method=pass_all | 
 | 10267 |   ;; | 
 | 10268 |  | 
 | 10269 | beos*) | 
 | 10270 |   lt_cv_deplibs_check_method=pass_all | 
 | 10271 |   ;; | 
 | 10272 |  | 
 | 10273 | bsdi[45]*) | 
 | 10274 |   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | 
 | 10275 |   lt_cv_file_magic_cmd='/usr/bin/file -L' | 
 | 10276 |   lt_cv_file_magic_test_file=/shlib/libc.so | 
 | 10277 |   ;; | 
 | 10278 |  | 
 | 10279 | cygwin*) | 
 | 10280 |   # func_win32_libid is a shell function defined in ltmain.sh | 
 | 10281 |   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | 
 | 10282 |   lt_cv_file_magic_cmd='func_win32_libid' | 
 | 10283 |   ;; | 
 | 10284 |  | 
 | 10285 | mingw* | pw32*) | 
 | 10286 |   # Base MSYS/MinGW do not provide the 'file' command needed by | 
 | 10287 |   # func_win32_libid shell function, so use a weaker test based on 'objdump'. | 
 | 10288 |   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | 
 | 10289 |   lt_cv_file_magic_cmd='$OBJDUMP -f' | 
 | 10290 |   ;; | 
 | 10291 |  | 
 | 10292 | darwin* | rhapsody*) | 
 | 10293 |   lt_cv_deplibs_check_method=pass_all | 
 | 10294 |   ;; | 
 | 10295 |  | 
 | 10296 | freebsd* | kfreebsd*-gnu) | 
 | 10297 |   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | 
 | 10298 |     case $host_cpu in | 
 | 10299 |     i*86 ) | 
 | 10300 |       # Not sure whether the presence of OpenBSD here was a mistake. | 
 | 10301 |       # Let's accept both of them until this is cleared up. | 
 | 10302 |       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | 
 | 10303 |       lt_cv_file_magic_cmd=/usr/bin/file | 
 | 10304 |       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | 
 | 10305 |       ;; | 
 | 10306 |     esac | 
 | 10307 |   else | 
 | 10308 |     lt_cv_deplibs_check_method=pass_all | 
 | 10309 |   fi | 
 | 10310 |   ;; | 
 | 10311 |  | 
 | 10312 | gnu*) | 
 | 10313 |   lt_cv_deplibs_check_method=pass_all | 
 | 10314 |   ;; | 
 | 10315 |  | 
 | 10316 | hpux10.20* | hpux11*) | 
 | 10317 |   lt_cv_file_magic_cmd=/usr/bin/file | 
 | 10318 |   case "$host_cpu" in | 
 | 10319 |   ia64*) | 
 | 10320 |     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | 
 | 10321 |     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | 
 | 10322 |     ;; | 
 | 10323 |   hppa*64*) | 
 | 10324 |     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]' | 
 | 10325 |     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | 
 | 10326 |     ;; | 
 | 10327 |   *) | 
 | 10328 |     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | 
 | 10329 |     lt_cv_file_magic_test_file=/usr/lib/libc.sl | 
 | 10330 |     ;; | 
 | 10331 |   esac | 
 | 10332 |   ;; | 
 | 10333 |  | 
 | 10334 | irix5* | irix6* | nonstopux*) | 
 | 10335 |   case $LD in | 
 | 10336 |   *-32|*"-32 ") libmagic=32-bit;; | 
 | 10337 |   *-n32|*"-n32 ") libmagic=N32;; | 
 | 10338 |   *-64|*"-64 ") libmagic=64-bit;; | 
 | 10339 |   *) libmagic=never-match;; | 
 | 10340 |   esac | 
 | 10341 |   lt_cv_deplibs_check_method=pass_all | 
 | 10342 |   ;; | 
 | 10343 |  | 
 | 10344 | # This must be Linux ELF. | 
 | 10345 | linux*) | 
 | 10346 |   lt_cv_deplibs_check_method=pass_all | 
 | 10347 |   ;; | 
 | 10348 |  | 
 | 10349 | netbsd*) | 
 | 10350 |   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | 
 | 10351 |     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | 
 | 10352 |   else | 
 | 10353 |     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | 
 | 10354 |   fi | 
 | 10355 |   ;; | 
 | 10356 |  | 
 | 10357 | newos6*) | 
 | 10358 |   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | 
 | 10359 |   lt_cv_file_magic_cmd=/usr/bin/file | 
 | 10360 |   lt_cv_file_magic_test_file=/usr/lib/libnls.so | 
 | 10361 |   ;; | 
 | 10362 |  | 
 | 10363 | nto-qnx*) | 
 | 10364 |   lt_cv_deplibs_check_method=unknown | 
 | 10365 |   ;; | 
 | 10366 |  | 
 | 10367 | openbsd*) | 
 | 10368 |   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 10369 |     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | 
 | 10370 |   else | 
 | 10371 |     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | 
 | 10372 |   fi | 
 | 10373 |   ;; | 
 | 10374 |  | 
 | 10375 | osf3* | osf4* | osf5*) | 
 | 10376 |   lt_cv_deplibs_check_method=pass_all | 
 | 10377 |   ;; | 
 | 10378 |  | 
 | 10379 | sco3.2v5*) | 
 | 10380 |   lt_cv_deplibs_check_method=pass_all | 
 | 10381 |   ;; | 
 | 10382 |  | 
 | 10383 | solaris*) | 
 | 10384 |   lt_cv_deplibs_check_method=pass_all | 
 | 10385 |   ;; | 
 | 10386 |  | 
 | 10387 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 10388 |   case $host_vendor in | 
 | 10389 |   motorola) | 
 | 10390 |     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]' | 
 | 10391 |     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | 
 | 10392 |     ;; | 
 | 10393 |   ncr) | 
 | 10394 |     lt_cv_deplibs_check_method=pass_all | 
 | 10395 |     ;; | 
 | 10396 |   sequent) | 
 | 10397 |     lt_cv_file_magic_cmd='/bin/file' | 
 | 10398 |     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | 
 | 10399 |     ;; | 
 | 10400 |   sni) | 
 | 10401 |     lt_cv_file_magic_cmd='/bin/file' | 
 | 10402 |     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | 
 | 10403 |     lt_cv_file_magic_test_file=/lib/libc.so | 
 | 10404 |     ;; | 
 | 10405 |   siemens) | 
 | 10406 |     lt_cv_deplibs_check_method=pass_all | 
 | 10407 |     ;; | 
 | 10408 |   esac | 
 | 10409 |   ;; | 
 | 10410 |  | 
 | 10411 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) | 
 | 10412 |   lt_cv_deplibs_check_method=pass_all | 
 | 10413 |   ;; | 
 | 10414 | esac | 
 | 10415 |  | 
 | 10416 | fi | 
 | 10417 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | 
 | 10418 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | 
 | 10419 | file_magic_cmd=$lt_cv_file_magic_cmd | 
 | 10420 | deplibs_check_method=$lt_cv_deplibs_check_method | 
 | 10421 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | 
 | 10422 |  | 
 | 10423 |  | 
 | 10424 |  | 
 | 10425 | # If no C compiler was specified, use CC. | 
 | 10426 | LTCC=${LTCC-"$CC"} | 
 | 10427 |  | 
 | 10428 | # Allow CC to be a program name with arguments. | 
 | 10429 | compiler=$CC | 
 | 10430 |  | 
 | 10431 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | 
 | 10432 | if test "${enable_libtool_lock+set}" = set; then | 
 | 10433 |   enableval="$enable_libtool_lock" | 
 | 10434 |  | 
 | 10435 | fi; | 
 | 10436 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | 
 | 10437 |  | 
 | 10438 | # Some flags need to be propagated to the compiler or linker for good | 
 | 10439 | # libtool support. | 
 | 10440 | case $host in | 
 | 10441 | ia64-*-hpux*) | 
 | 10442 |   # Find out which ABI we are using. | 
 | 10443 |   echo 'int i;' > conftest.$ac_ext | 
 | 10444 |   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 10445 |   (eval $ac_compile) 2>&5 | 
 | 10446 |   ac_status=$? | 
 | 10447 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10448 |   (exit $ac_status); }; then | 
 | 10449 |     case `/usr/bin/file conftest.$ac_objext` in | 
 | 10450 |     *ELF-32*) | 
 | 10451 |       HPUX_IA64_MODE="32" | 
 | 10452 |       ;; | 
 | 10453 |     *ELF-64*) | 
 | 10454 |       HPUX_IA64_MODE="64" | 
 | 10455 |       ;; | 
 | 10456 |     esac | 
 | 10457 |   fi | 
 | 10458 |   rm -rf conftest* | 
 | 10459 |   ;; | 
 | 10460 | *-*-irix6*) | 
 | 10461 |   # Find out which ABI we are using. | 
| Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 10462 |   echo '#line 10462 "configure"' > conftest.$ac_ext | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10463 |   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 10464 |   (eval $ac_compile) 2>&5 | 
 | 10465 |   ac_status=$? | 
 | 10466 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10467 |   (exit $ac_status); }; then | 
 | 10468 |    if test "$lt_cv_prog_gnu_ld" = yes; then | 
 | 10469 |     case `/usr/bin/file conftest.$ac_objext` in | 
 | 10470 |     *32-bit*) | 
 | 10471 |       LD="${LD-ld} -melf32bsmip" | 
 | 10472 |       ;; | 
 | 10473 |     *N32*) | 
 | 10474 |       LD="${LD-ld} -melf32bmipn32" | 
 | 10475 |       ;; | 
 | 10476 |     *64-bit*) | 
 | 10477 |       LD="${LD-ld} -melf64bmip" | 
 | 10478 |       ;; | 
 | 10479 |     esac | 
 | 10480 |    else | 
 | 10481 |     case `/usr/bin/file conftest.$ac_objext` in | 
 | 10482 |     *32-bit*) | 
 | 10483 |       LD="${LD-ld} -32" | 
 | 10484 |       ;; | 
 | 10485 |     *N32*) | 
 | 10486 |       LD="${LD-ld} -n32" | 
 | 10487 |       ;; | 
 | 10488 |     *64-bit*) | 
 | 10489 |       LD="${LD-ld} -64" | 
 | 10490 |       ;; | 
 | 10491 |     esac | 
 | 10492 |    fi | 
 | 10493 |   fi | 
 | 10494 |   rm -rf conftest* | 
 | 10495 |   ;; | 
 | 10496 |  | 
 | 10497 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | 
 | 10498 |   # Find out which ABI we are using. | 
 | 10499 |   echo 'int i;' > conftest.$ac_ext | 
 | 10500 |   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 10501 |   (eval $ac_compile) 2>&5 | 
 | 10502 |   ac_status=$? | 
 | 10503 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10504 |   (exit $ac_status); }; then | 
 | 10505 |     case "`/usr/bin/file conftest.o`" in | 
 | 10506 |     *32-bit*) | 
 | 10507 |       case $host in | 
 | 10508 |         x86_64-*linux*) | 
 | 10509 |           LD="${LD-ld} -m elf_i386" | 
 | 10510 |           ;; | 
 | 10511 |         ppc64-*linux*|powerpc64-*linux*) | 
 | 10512 |           LD="${LD-ld} -m elf32ppclinux" | 
 | 10513 |           ;; | 
 | 10514 |         s390x-*linux*) | 
 | 10515 |           LD="${LD-ld} -m elf_s390" | 
 | 10516 |           ;; | 
 | 10517 |         sparc64-*linux*) | 
 | 10518 |           LD="${LD-ld} -m elf32_sparc" | 
 | 10519 |           ;; | 
 | 10520 |       esac | 
 | 10521 |       ;; | 
 | 10522 |     *64-bit*) | 
 | 10523 |       case $host in | 
 | 10524 |         x86_64-*linux*) | 
 | 10525 |           LD="${LD-ld} -m elf_x86_64" | 
 | 10526 |           ;; | 
 | 10527 |         ppc*-*linux*|powerpc*-*linux*) | 
 | 10528 |           LD="${LD-ld} -m elf64ppc" | 
 | 10529 |           ;; | 
 | 10530 |         s390*-*linux*) | 
 | 10531 |           LD="${LD-ld} -m elf64_s390" | 
 | 10532 |           ;; | 
 | 10533 |         sparc*-*linux*) | 
 | 10534 |           LD="${LD-ld} -m elf64_sparc" | 
 | 10535 |           ;; | 
 | 10536 |       esac | 
 | 10537 |       ;; | 
 | 10538 |     esac | 
 | 10539 |   fi | 
 | 10540 |   rm -rf conftest* | 
 | 10541 |   ;; | 
 | 10542 |  | 
 | 10543 | *-*-sco3.2v5*) | 
 | 10544 |   # On SCO OpenServer 5, we need -belf to get full-featured binaries. | 
 | 10545 |   SAVE_CFLAGS="$CFLAGS" | 
 | 10546 |   CFLAGS="$CFLAGS -belf" | 
 | 10547 |   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | 
 | 10548 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | 
 | 10549 | if test "${lt_cv_cc_needs_belf+set}" = set; then | 
 | 10550 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 10551 | else | 
 | 10552 |   ac_ext=c | 
 | 10553 | ac_cpp='$CPP $CPPFLAGS' | 
 | 10554 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 10555 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 10556 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 10557 |  | 
 | 10558 |      cat >conftest.$ac_ext <<_ACEOF | 
 | 10559 | /* confdefs.h.  */ | 
 | 10560 | _ACEOF | 
 | 10561 | cat confdefs.h >>conftest.$ac_ext | 
 | 10562 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 10563 | /* end confdefs.h.  */ | 
 | 10564 |  | 
 | 10565 | _ACEOF | 
 | 10566 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 10567 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 10568 |   (eval $ac_link) 2>conftest.er1 | 
 | 10569 |   ac_status=$? | 
 | 10570 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 10571 |   rm -f conftest.er1 | 
 | 10572 |   cat conftest.err >&5 | 
 | 10573 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10574 |   (exit $ac_status); } && | 
 | 10575 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 10576 | 			 || test ! -s conftest.err' | 
 | 10577 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 10578 |   (eval $ac_try) 2>&5 | 
 | 10579 |   ac_status=$? | 
 | 10580 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10581 |   (exit $ac_status); }; } && | 
 | 10582 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 10583 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 10584 |   (eval $ac_try) 2>&5 | 
 | 10585 |   ac_status=$? | 
 | 10586 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10587 |   (exit $ac_status); }; }; then | 
 | 10588 |   lt_cv_cc_needs_belf=yes | 
 | 10589 | else | 
 | 10590 |   echo "$as_me: failed program was:" >&5 | 
 | 10591 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 10592 |  | 
 | 10593 | lt_cv_cc_needs_belf=no | 
 | 10594 | fi | 
 | 10595 | rm -f conftest.err conftest.$ac_objext \ | 
 | 10596 |       conftest$ac_exeext conftest.$ac_ext | 
 | 10597 |      ac_ext=c | 
 | 10598 | ac_cpp='$CPP $CPPFLAGS' | 
 | 10599 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 10600 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 10601 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 10602 |  | 
 | 10603 | fi | 
 | 10604 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | 
 | 10605 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | 
 | 10606 |   if test x"$lt_cv_cc_needs_belf" != x"yes"; then | 
 | 10607 |     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | 
 | 10608 |     CFLAGS="$SAVE_CFLAGS" | 
 | 10609 |   fi | 
 | 10610 |   ;; | 
 | 10611 |  | 
 | 10612 | esac | 
 | 10613 |  | 
 | 10614 | need_locks="$enable_libtool_lock" | 
 | 10615 |  | 
 | 10616 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10617 |  | 
 | 10618 |  | 
 | 10619 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | 
 | 10620 |     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | 
 | 10621 |     (test "X$CXX" != "Xg++"))) ; then | 
 | 10622 |   ac_ext=cc | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10623 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 10624 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 10625 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 10626 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 10627 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | 
 | 10628 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | 
 | 10629 | if test -z "$CXXCPP"; then | 
 | 10630 |   if test "${ac_cv_prog_CXXCPP+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10631 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 10632 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10633 |       # Double quotes because CXXCPP needs to be expanded | 
 | 10634 |     for CXXCPP in "$CXX -E" "/lib/cpp" | 
 | 10635 |     do | 
 | 10636 |       ac_preproc_ok=false | 
 | 10637 | for ac_cxx_preproc_warn_flag in '' yes | 
 | 10638 | do | 
 | 10639 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 10640 |   # with a fresh cross-compiler works. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10641 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 10642 |   # <limits.h> exists even on freestanding compilers. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10643 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 10644 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 10645 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10646 | /* confdefs.h.  */ | 
 | 10647 | _ACEOF | 
 | 10648 | cat confdefs.h >>conftest.$ac_ext | 
 | 10649 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 10650 | /* end confdefs.h.  */ | 
 | 10651 | #ifdef __STDC__ | 
 | 10652 | # include <limits.h> | 
 | 10653 | #else | 
 | 10654 | # include <assert.h> | 
 | 10655 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10656 | 		     Syntax error | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10657 | _ACEOF | 
 | 10658 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 10659 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 10660 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10661 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10662 |   rm -f conftest.er1 | 
 | 10663 |   cat conftest.err >&5 | 
 | 10664 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10665 |   (exit $ac_status); } >/dev/null; then | 
 | 10666 |   if test -s conftest.err; then | 
 | 10667 |     ac_cpp_err=$ac_cxx_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10668 |     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10669 |   else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10670 |     ac_cpp_err= | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10671 |   fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10672 | else | 
 | 10673 |   ac_cpp_err=yes | 
 | 10674 | fi | 
 | 10675 | if test -z "$ac_cpp_err"; then | 
 | 10676 |   : | 
 | 10677 | else | 
 | 10678 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10679 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 10680 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10681 |   # Broken: fails on valid input. | 
 | 10682 | continue | 
 | 10683 | fi | 
 | 10684 | rm -f conftest.err conftest.$ac_ext | 
 | 10685 |  | 
 | 10686 |   # OK, works on sane cases.  Now check whether non-existent headers | 
 | 10687 |   # can be detected and how. | 
 | 10688 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10689 | /* confdefs.h.  */ | 
 | 10690 | _ACEOF | 
 | 10691 | cat confdefs.h >>conftest.$ac_ext | 
 | 10692 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 10693 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10694 | #include <ac_nonexistent.h> | 
 | 10695 | _ACEOF | 
 | 10696 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 10697 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 10698 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10699 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10700 |   rm -f conftest.er1 | 
 | 10701 |   cat conftest.err >&5 | 
 | 10702 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10703 |   (exit $ac_status); } >/dev/null; then | 
 | 10704 |   if test -s conftest.err; then | 
 | 10705 |     ac_cpp_err=$ac_cxx_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10706 |     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10707 |   else | 
 | 10708 |     ac_cpp_err= | 
 | 10709 |   fi | 
 | 10710 | else | 
 | 10711 |   ac_cpp_err=yes | 
 | 10712 | fi | 
 | 10713 | if test -z "$ac_cpp_err"; then | 
 | 10714 |   # Broken: success on invalid input. | 
 | 10715 | continue | 
 | 10716 | else | 
 | 10717 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10718 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 10719 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10720 |   # Passes both tests. | 
 | 10721 | ac_preproc_ok=: | 
 | 10722 | break | 
 | 10723 | fi | 
 | 10724 | rm -f conftest.err conftest.$ac_ext | 
 | 10725 |  | 
 | 10726 | done | 
 | 10727 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
 | 10728 | rm -f conftest.err conftest.$ac_ext | 
 | 10729 | if $ac_preproc_ok; then | 
 | 10730 |   break | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10731 | fi | 
 | 10732 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10733 |     done | 
 | 10734 |     ac_cv_prog_CXXCPP=$CXXCPP | 
 | 10735 |  | 
 | 10736 | fi | 
 | 10737 |   CXXCPP=$ac_cv_prog_CXXCPP | 
 | 10738 | else | 
 | 10739 |   ac_cv_prog_CXXCPP=$CXXCPP | 
 | 10740 | fi | 
 | 10741 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | 
 | 10742 | echo "${ECHO_T}$CXXCPP" >&6 | 
 | 10743 | ac_preproc_ok=false | 
 | 10744 | for ac_cxx_preproc_warn_flag in '' yes | 
 | 10745 | do | 
 | 10746 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 10747 |   # with a fresh cross-compiler works. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10748 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 10749 |   # <limits.h> exists even on freestanding compilers. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10750 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 10751 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 10752 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10753 | /* confdefs.h.  */ | 
 | 10754 | _ACEOF | 
 | 10755 | cat confdefs.h >>conftest.$ac_ext | 
 | 10756 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 10757 | /* end confdefs.h.  */ | 
 | 10758 | #ifdef __STDC__ | 
 | 10759 | # include <limits.h> | 
 | 10760 | #else | 
 | 10761 | # include <assert.h> | 
 | 10762 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10763 | 		     Syntax error | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10764 | _ACEOF | 
 | 10765 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 10766 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 10767 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10768 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10769 |   rm -f conftest.er1 | 
 | 10770 |   cat conftest.err >&5 | 
 | 10771 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10772 |   (exit $ac_status); } >/dev/null; then | 
 | 10773 |   if test -s conftest.err; then | 
 | 10774 |     ac_cpp_err=$ac_cxx_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10775 |     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10776 |   else | 
 | 10777 |     ac_cpp_err= | 
 | 10778 |   fi | 
 | 10779 | else | 
 | 10780 |   ac_cpp_err=yes | 
 | 10781 | fi | 
 | 10782 | if test -z "$ac_cpp_err"; then | 
 | 10783 |   : | 
 | 10784 | else | 
 | 10785 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10786 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 10787 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10788 |   # Broken: fails on valid input. | 
 | 10789 | continue | 
 | 10790 | fi | 
 | 10791 | rm -f conftest.err conftest.$ac_ext | 
 | 10792 |  | 
 | 10793 |   # OK, works on sane cases.  Now check whether non-existent headers | 
 | 10794 |   # can be detected and how. | 
 | 10795 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10796 | /* confdefs.h.  */ | 
 | 10797 | _ACEOF | 
 | 10798 | cat confdefs.h >>conftest.$ac_ext | 
 | 10799 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 10800 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10801 | #include <ac_nonexistent.h> | 
 | 10802 | _ACEOF | 
 | 10803 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 10804 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 10805 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10806 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10807 |   rm -f conftest.er1 | 
 | 10808 |   cat conftest.err >&5 | 
 | 10809 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10810 |   (exit $ac_status); } >/dev/null; then | 
 | 10811 |   if test -s conftest.err; then | 
 | 10812 |     ac_cpp_err=$ac_cxx_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10813 |     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10814 |   else | 
 | 10815 |     ac_cpp_err= | 
 | 10816 |   fi | 
 | 10817 | else | 
 | 10818 |   ac_cpp_err=yes | 
 | 10819 | fi | 
 | 10820 | if test -z "$ac_cpp_err"; then | 
 | 10821 |   # Broken: success on invalid input. | 
 | 10822 | continue | 
 | 10823 | else | 
 | 10824 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10825 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 10826 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10827 |   # Passes both tests. | 
 | 10828 | ac_preproc_ok=: | 
 | 10829 | break | 
 | 10830 | fi | 
 | 10831 | rm -f conftest.err conftest.$ac_ext | 
 | 10832 |  | 
 | 10833 | done | 
 | 10834 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
 | 10835 | rm -f conftest.err conftest.$ac_ext | 
 | 10836 | if $ac_preproc_ok; then | 
 | 10837 |   : | 
 | 10838 | else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10839 |   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | 
 | 10840 | See \`config.log' for more details." >&5 | 
 | 10841 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | 
 | 10842 | See \`config.log' for more details." >&2;} | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10843 |    { (exit 1); exit 1; }; } | 
 | 10844 | fi | 
 | 10845 |  | 
 | 10846 | ac_ext=cc | 
 | 10847 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 10848 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 10849 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 10850 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 10851 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10852 | fi | 
 | 10853 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10854 |  | 
 | 10855 | ac_ext=f | 
 | 10856 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | 
 | 10857 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 10858 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | 
 | 10859 | if test -n "$ac_tool_prefix"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10860 |   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10861 |   do | 
 | 10862 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 10863 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
 | 10864 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 10865 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 10866 | if test "${ac_cv_prog_F77+set}" = set; then | 
 | 10867 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 10868 | else | 
 | 10869 |   if test -n "$F77"; then | 
 | 10870 |   ac_cv_prog_F77="$F77" # Let the user override the test. | 
 | 10871 | else | 
 | 10872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 10873 | for as_dir in $PATH | 
 | 10874 | do | 
 | 10875 |   IFS=$as_save_IFS | 
 | 10876 |   test -z "$as_dir" && as_dir=. | 
 | 10877 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 10878 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 10879 |     ac_cv_prog_F77="$ac_tool_prefix$ac_prog" | 
 | 10880 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 10881 |     break 2 | 
 | 10882 |   fi | 
 | 10883 | done | 
 | 10884 | done | 
 | 10885 |  | 
 | 10886 | fi | 
 | 10887 | fi | 
 | 10888 | F77=$ac_cv_prog_F77 | 
 | 10889 | if test -n "$F77"; then | 
 | 10890 |   echo "$as_me:$LINENO: result: $F77" >&5 | 
 | 10891 | echo "${ECHO_T}$F77" >&6 | 
 | 10892 | else | 
 | 10893 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 10894 | echo "${ECHO_T}no" >&6 | 
 | 10895 | fi | 
 | 10896 |  | 
 | 10897 |     test -n "$F77" && break | 
 | 10898 |   done | 
 | 10899 | fi | 
 | 10900 | if test -z "$F77"; then | 
 | 10901 |   ac_ct_F77=$F77 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10902 |   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10903 | do | 
 | 10904 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 10905 | set dummy $ac_prog; ac_word=$2 | 
 | 10906 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 10907 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 10908 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then | 
 | 10909 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 10910 | else | 
 | 10911 |   if test -n "$ac_ct_F77"; then | 
 | 10912 |   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. | 
 | 10913 | else | 
 | 10914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 10915 | for as_dir in $PATH | 
 | 10916 | do | 
 | 10917 |   IFS=$as_save_IFS | 
 | 10918 |   test -z "$as_dir" && as_dir=. | 
 | 10919 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 10920 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 10921 |     ac_cv_prog_ac_ct_F77="$ac_prog" | 
 | 10922 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 10923 |     break 2 | 
 | 10924 |   fi | 
 | 10925 | done | 
 | 10926 | done | 
 | 10927 |  | 
 | 10928 | fi | 
 | 10929 | fi | 
 | 10930 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 | 
 | 10931 | if test -n "$ac_ct_F77"; then | 
 | 10932 |   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 | 
 | 10933 | echo "${ECHO_T}$ac_ct_F77" >&6 | 
 | 10934 | else | 
 | 10935 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 10936 | echo "${ECHO_T}no" >&6 | 
 | 10937 | fi | 
 | 10938 |  | 
 | 10939 |   test -n "$ac_ct_F77" && break | 
 | 10940 | done | 
 | 10941 |  | 
 | 10942 |   F77=$ac_ct_F77 | 
 | 10943 | fi | 
 | 10944 |  | 
 | 10945 |  | 
 | 10946 | # Provide some information about the compiler. | 
| Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 10947 | echo "$as_me:10947:" \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10948 |      "checking for Fortran 77 compiler version" >&5 | 
 | 10949 | ac_compiler=`set X $ac_compile; echo $2` | 
 | 10950 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | 
 | 10951 |   (eval $ac_compiler --version </dev/null >&5) 2>&5 | 
 | 10952 |   ac_status=$? | 
 | 10953 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10954 |   (exit $ac_status); } | 
 | 10955 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | 
 | 10956 |   (eval $ac_compiler -v </dev/null >&5) 2>&5 | 
 | 10957 |   ac_status=$? | 
 | 10958 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10959 |   (exit $ac_status); } | 
 | 10960 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | 
 | 10961 |   (eval $ac_compiler -V </dev/null >&5) 2>&5 | 
 | 10962 |   ac_status=$? | 
 | 10963 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10964 |   (exit $ac_status); } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10965 | rm -f a.out | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10966 |  | 
 | 10967 | # If we don't use `.F' as extension, the preprocessor is not run on the | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10968 | # input file.  (Note that this only needs to work for GNU compilers.) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10969 | ac_save_ext=$ac_ext | 
 | 10970 | ac_ext=F | 
 | 10971 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 | 
 | 10972 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 | 
 | 10973 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then | 
 | 10974 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 10975 | else | 
 | 10976 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 10977 |       program main | 
 | 10978 | #ifndef __GNUC__ | 
 | 10979 |        choke me | 
 | 10980 | #endif | 
 | 10981 |  | 
 | 10982 |       end | 
 | 10983 | _ACEOF | 
 | 10984 | rm -f conftest.$ac_objext | 
 | 10985 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10986 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10987 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10988 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 10989 |   rm -f conftest.er1 | 
 | 10990 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10991 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10992 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10993 | 	 { ac_try='test -z "$ac_f77_werror_flag" | 
 | 10994 | 			 || test ! -s conftest.err' | 
 | 10995 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 10996 |   (eval $ac_try) 2>&5 | 
 | 10997 |   ac_status=$? | 
 | 10998 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10999 |   (exit $ac_status); }; } && | 
 | 11000 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11001 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 11002 |   (eval $ac_try) 2>&5 | 
 | 11003 |   ac_status=$? | 
 | 11004 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11005 |   (exit $ac_status); }; }; then | 
 | 11006 |   ac_compiler_gnu=yes | 
 | 11007 | else | 
 | 11008 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11009 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 11010 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11011 | ac_compiler_gnu=no | 
 | 11012 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11013 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11014 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu | 
 | 11015 |  | 
 | 11016 | fi | 
 | 11017 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 | 
 | 11018 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 | 
 | 11019 | ac_ext=$ac_save_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11020 | ac_test_FFLAGS=${FFLAGS+set} | 
 | 11021 | ac_save_FFLAGS=$FFLAGS | 
 | 11022 | FFLAGS= | 
 | 11023 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 | 
 | 11024 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 | 
 | 11025 | if test "${ac_cv_prog_f77_g+set}" = set; then | 
 | 11026 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11027 | else | 
 | 11028 |   FFLAGS=-g | 
 | 11029 | cat >conftest.$ac_ext <<_ACEOF | 
 | 11030 |       program main | 
 | 11031 |  | 
 | 11032 |       end | 
 | 11033 | _ACEOF | 
 | 11034 | rm -f conftest.$ac_objext | 
 | 11035 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11036 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11037 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11038 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 11039 |   rm -f conftest.er1 | 
 | 11040 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11041 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11042 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11043 | 	 { ac_try='test -z "$ac_f77_werror_flag" | 
 | 11044 | 			 || test ! -s conftest.err' | 
 | 11045 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 11046 |   (eval $ac_try) 2>&5 | 
 | 11047 |   ac_status=$? | 
 | 11048 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11049 |   (exit $ac_status); }; } && | 
 | 11050 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11051 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 11052 |   (eval $ac_try) 2>&5 | 
 | 11053 |   ac_status=$? | 
 | 11054 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11055 |   (exit $ac_status); }; }; then | 
 | 11056 |   ac_cv_prog_f77_g=yes | 
 | 11057 | else | 
 | 11058 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11059 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 11060 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11061 | ac_cv_prog_f77_g=no | 
 | 11062 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11063 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11064 |  | 
 | 11065 | fi | 
 | 11066 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 | 
 | 11067 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 | 
 | 11068 | if test "$ac_test_FFLAGS" = set; then | 
 | 11069 |   FFLAGS=$ac_save_FFLAGS | 
 | 11070 | elif test $ac_cv_prog_f77_g = yes; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11071 |   if test "x$ac_cv_f77_compiler_gnu" = xyes; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11072 |     FFLAGS="-g -O2" | 
 | 11073 |   else | 
 | 11074 |     FFLAGS="-g" | 
 | 11075 |   fi | 
 | 11076 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11077 |   if test "x$ac_cv_f77_compiler_gnu" = xyes; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11078 |     FFLAGS="-O2" | 
 | 11079 |   else | 
 | 11080 |     FFLAGS= | 
 | 11081 |   fi | 
 | 11082 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11083 |  | 
 | 11084 | G77=`test $ac_compiler_gnu = yes && echo yes` | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11085 | ac_ext=c | 
 | 11086 | ac_cpp='$CPP $CPPFLAGS' | 
 | 11087 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 11088 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 11089 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 11090 |  | 
 | 11091 |  | 
 | 11092 |  | 
 | 11093 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | 
 | 11094 |  | 
 | 11095 | # find the maximum length of command line arguments | 
 | 11096 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | 
 | 11097 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | 
 | 11098 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | 
 | 11099 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11100 | else | 
 | 11101 |     i=0 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11102 |   teststring="ABCD" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11103 |  | 
 | 11104 |   case $build_os in | 
 | 11105 |   msdosdjgpp*) | 
 | 11106 |     # On DJGPP, this test can blow up pretty badly due to problems in libc | 
 | 11107 |     # (any single argument exceeding 2000 bytes causes a buffer overrun | 
 | 11108 |     # during glob expansion).  Even if it were fixed, the result of this | 
 | 11109 |     # check would be larger than it should be. | 
 | 11110 |     lt_cv_sys_max_cmd_len=12288;    # 12K is about right | 
 | 11111 |     ;; | 
 | 11112 |  | 
 | 11113 |   gnu*) | 
 | 11114 |     # Under GNU Hurd, this test is not required because there is | 
 | 11115 |     # no limit to the length of command line arguments. | 
 | 11116 |     # Libtool will interpret -1 as no limit whatsoever | 
 | 11117 |     lt_cv_sys_max_cmd_len=-1; | 
 | 11118 |     ;; | 
 | 11119 |  | 
 | 11120 |   cygwin* | mingw*) | 
 | 11121 |     # On Win9x/ME, this test blows up -- it succeeds, but takes | 
 | 11122 |     # about 5 minutes as the teststring grows exponentially. | 
 | 11123 |     # Worse, since 9x/ME are not pre-emptively multitasking, | 
 | 11124 |     # you end up with a "frozen" computer, even though with patience | 
 | 11125 |     # the test eventually succeeds (with a max line length of 256k). | 
 | 11126 |     # Instead, let's just punt: use the minimum linelength reported by | 
 | 11127 |     # all of the supported platforms: 8192 (on NT/2K/XP). | 
 | 11128 |     lt_cv_sys_max_cmd_len=8192; | 
 | 11129 |     ;; | 
 | 11130 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11131 |   amigaos*) | 
 | 11132 |     # On AmigaOS with pdksh, this test takes hours, literally. | 
 | 11133 |     # So we just punt and use a minimum line length of 8192. | 
 | 11134 |     lt_cv_sys_max_cmd_len=8192; | 
 | 11135 |     ;; | 
 | 11136 |  | 
 | 11137 |   netbsd* | freebsd* | openbsd* | darwin* ) | 
 | 11138 |     # This has been around since 386BSD, at least.  Likely further. | 
 | 11139 |     if test -x /sbin/sysctl; then | 
 | 11140 |       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | 
 | 11141 |     elif test -x /usr/sbin/sysctl; then | 
 | 11142 |       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | 
 | 11143 |     else | 
 | 11144 |       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD | 
 | 11145 |     fi | 
 | 11146 |     # And add a safety zone | 
 | 11147 |     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | 
 | 11148 |     ;; | 
 | 11149 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11150 |  *) | 
 | 11151 |     # If test is not a shell built-in, we'll probably end up computing a | 
 | 11152 |     # maximum length that is only half of the actual maximum length, but | 
 | 11153 |     # we can't tell. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11154 |     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | 
 | 11155 |     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ | 
 | 11156 | 	       = "XX$teststring") >/dev/null 2>&1 && | 
 | 11157 | 	    new_result=`expr "X$teststring" : ".*" 2>&1` && | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11158 | 	    lt_cv_sys_max_cmd_len=$new_result && | 
 | 11159 | 	    test $i != 17 # 1/2 MB should be enough | 
 | 11160 |     do | 
 | 11161 |       i=`expr $i + 1` | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11162 |       teststring=$teststring$teststring | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11163 |     done | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11164 |     teststring= | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11165 |     # Add a significant safety factor because C++ compilers can tack on massive | 
 | 11166 |     # amounts of additional arguments before passing them to the linker. | 
 | 11167 |     # It appears as though 1/2 is a usable value. | 
 | 11168 |     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | 
 | 11169 |     ;; | 
 | 11170 |   esac | 
 | 11171 |  | 
 | 11172 | fi | 
 | 11173 |  | 
 | 11174 | if test -n $lt_cv_sys_max_cmd_len ; then | 
 | 11175 |   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | 
 | 11176 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | 
 | 11177 | else | 
 | 11178 |   echo "$as_me:$LINENO: result: none" >&5 | 
 | 11179 | echo "${ECHO_T}none" >&6 | 
 | 11180 | fi | 
 | 11181 |  | 
 | 11182 |  | 
 | 11183 |  | 
 | 11184 |  | 
 | 11185 | # Check for command to grab the raw symbol name followed by C symbol from nm. | 
 | 11186 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | 
 | 11187 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | 
 | 11188 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | 
 | 11189 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11190 | else | 
 | 11191 |  | 
 | 11192 | # These are sane defaults that work on at least a few old systems. | 
 | 11193 | # [They come from Ultrix.  What could be older than Ultrix?!! ;)] | 
 | 11194 |  | 
 | 11195 | # Character class describing NM global symbol codes. | 
 | 11196 | symcode='[BCDEGRST]' | 
 | 11197 |  | 
 | 11198 | # Regexp to match symbols that can be accessed directly from C. | 
 | 11199 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | 
 | 11200 |  | 
 | 11201 | # Transform the above into a raw symbol and a C symbol. | 
 | 11202 | symxfrm='\1 \2\3 \3' | 
 | 11203 |  | 
 | 11204 | # Transform an extracted symbol line into a proper C declaration | 
 | 11205 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | 
 | 11206 |  | 
 | 11207 | # Transform an extracted symbol line into symbol name and symbol address | 
 | 11208 | 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'" | 
 | 11209 |  | 
 | 11210 | # Define system-specific variables. | 
 | 11211 | case $host_os in | 
 | 11212 | aix*) | 
 | 11213 |   symcode='[BCDT]' | 
 | 11214 |   ;; | 
 | 11215 | cygwin* | mingw* | pw32*) | 
 | 11216 |   symcode='[ABCDGISTW]' | 
 | 11217 |   ;; | 
 | 11218 | hpux*) # Its linker distinguishes data from code symbols | 
 | 11219 |   if test "$host_cpu" = ia64; then | 
 | 11220 |     symcode='[ABCDEGRST]' | 
 | 11221 |   fi | 
 | 11222 |   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 
 | 11223 |   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'" | 
 | 11224 |   ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11225 | linux*) | 
 | 11226 |   if test "$host_cpu" = ia64; then | 
 | 11227 |     symcode='[ABCDGIRSTW]' | 
 | 11228 |     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 
 | 11229 |     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'" | 
 | 11230 |   fi | 
 | 11231 |   ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11232 | irix* | nonstopux*) | 
 | 11233 |   symcode='[BCDEGRST]' | 
 | 11234 |   ;; | 
 | 11235 | osf*) | 
 | 11236 |   symcode='[BCDEGQRST]' | 
 | 11237 |   ;; | 
 | 11238 | solaris* | sysv5*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11239 |   symcode='[BDRT]' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11240 |   ;; | 
 | 11241 | sysv4) | 
 | 11242 |   symcode='[DFNSTU]' | 
 | 11243 |   ;; | 
 | 11244 | esac | 
 | 11245 |  | 
 | 11246 | # Handle CRLF in mingw tool chain | 
 | 11247 | opt_cr= | 
 | 11248 | case $build_os in | 
 | 11249 | mingw*) | 
 | 11250 |   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | 
 | 11251 |   ;; | 
 | 11252 | esac | 
 | 11253 |  | 
 | 11254 | # If we're using GNU nm, then use its standard symbol codes. | 
 | 11255 | case `$NM -V 2>&1` in | 
 | 11256 | *GNU* | *'with BFD'*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11257 |   symcode='[ABCDGIRSTW]' ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11258 | esac | 
 | 11259 |  | 
 | 11260 | # Try without a prefix undercore, then with it. | 
 | 11261 | for ac_symprfx in "" "_"; do | 
 | 11262 |  | 
 | 11263 |   # Write the raw and C identifiers. | 
 | 11264 |   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" | 
 | 11265 |  | 
 | 11266 |   # Check to see that the pipe works correctly. | 
 | 11267 |   pipe_works=no | 
 | 11268 |  | 
 | 11269 |   rm -f conftest* | 
 | 11270 |   cat > conftest.$ac_ext <<EOF | 
 | 11271 | #ifdef __cplusplus | 
 | 11272 | extern "C" { | 
 | 11273 | #endif | 
 | 11274 | char nm_test_var; | 
 | 11275 | void nm_test_func(){} | 
 | 11276 | #ifdef __cplusplus | 
 | 11277 | } | 
 | 11278 | #endif | 
 | 11279 | int main(){nm_test_var='a';nm_test_func();return(0);} | 
 | 11280 | EOF | 
 | 11281 |  | 
 | 11282 |   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 11283 |   (eval $ac_compile) 2>&5 | 
 | 11284 |   ac_status=$? | 
 | 11285 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11286 |   (exit $ac_status); }; then | 
 | 11287 |     # Now try to grab the symbols. | 
 | 11288 |     nlist=conftest.nm | 
 | 11289 |     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | 
 | 11290 |   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | 
 | 11291 |   ac_status=$? | 
 | 11292 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11293 |   (exit $ac_status); } && test -s "$nlist"; then | 
 | 11294 |       # Try sorting and uniquifying the output. | 
 | 11295 |       if sort "$nlist" | uniq > "$nlist"T; then | 
 | 11296 | 	mv -f "$nlist"T "$nlist" | 
 | 11297 |       else | 
 | 11298 | 	rm -f "$nlist"T | 
 | 11299 |       fi | 
 | 11300 |  | 
 | 11301 |       # Make sure that we snagged all the symbols we need. | 
 | 11302 |       if grep ' nm_test_var$' "$nlist" >/dev/null; then | 
 | 11303 | 	if grep ' nm_test_func$' "$nlist" >/dev/null; then | 
 | 11304 | 	  cat <<EOF > conftest.$ac_ext | 
 | 11305 | #ifdef __cplusplus | 
 | 11306 | extern "C" { | 
 | 11307 | #endif | 
 | 11308 |  | 
 | 11309 | EOF | 
 | 11310 | 	  # Now generate the symbol file. | 
 | 11311 | 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | 
 | 11312 |  | 
 | 11313 | 	  cat <<EOF >> conftest.$ac_ext | 
 | 11314 | #if defined (__STDC__) && __STDC__ | 
 | 11315 | # define lt_ptr_t void * | 
 | 11316 | #else | 
 | 11317 | # define lt_ptr_t char * | 
 | 11318 | # define const | 
 | 11319 | #endif | 
 | 11320 |  | 
 | 11321 | /* The mapping between symbol names and symbols. */ | 
 | 11322 | const struct { | 
 | 11323 |   const char *name; | 
 | 11324 |   lt_ptr_t address; | 
 | 11325 | } | 
 | 11326 | lt_preloaded_symbols[] = | 
 | 11327 | { | 
 | 11328 | EOF | 
 | 11329 | 	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | 
 | 11330 | 	  cat <<\EOF >> conftest.$ac_ext | 
 | 11331 |   {0, (lt_ptr_t) 0} | 
 | 11332 | }; | 
 | 11333 |  | 
 | 11334 | #ifdef __cplusplus | 
 | 11335 | } | 
 | 11336 | #endif | 
 | 11337 | EOF | 
 | 11338 | 	  # Now try linking the two files. | 
 | 11339 | 	  mv conftest.$ac_objext conftstm.$ac_objext | 
 | 11340 | 	  lt_save_LIBS="$LIBS" | 
 | 11341 | 	  lt_save_CFLAGS="$CFLAGS" | 
 | 11342 | 	  LIBS="conftstm.$ac_objext" | 
 | 11343 | 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | 
 | 11344 | 	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 11345 |   (eval $ac_link) 2>&5 | 
 | 11346 |   ac_status=$? | 
 | 11347 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11348 |   (exit $ac_status); } && test -s conftest${ac_exeext}; then | 
 | 11349 | 	    pipe_works=yes | 
 | 11350 | 	  fi | 
 | 11351 | 	  LIBS="$lt_save_LIBS" | 
 | 11352 | 	  CFLAGS="$lt_save_CFLAGS" | 
 | 11353 | 	else | 
 | 11354 | 	  echo "cannot find nm_test_func in $nlist" >&5 | 
 | 11355 | 	fi | 
 | 11356 |       else | 
 | 11357 | 	echo "cannot find nm_test_var in $nlist" >&5 | 
 | 11358 |       fi | 
 | 11359 |     else | 
 | 11360 |       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | 
 | 11361 |     fi | 
 | 11362 |   else | 
 | 11363 |     echo "$progname: failed program was:" >&5 | 
 | 11364 |     cat conftest.$ac_ext >&5 | 
 | 11365 |   fi | 
 | 11366 |   rm -f conftest* conftst* | 
 | 11367 |  | 
 | 11368 |   # Do not use the global_symbol_pipe unless it works. | 
 | 11369 |   if test "$pipe_works" = yes; then | 
 | 11370 |     break | 
 | 11371 |   else | 
 | 11372 |     lt_cv_sys_global_symbol_pipe= | 
 | 11373 |   fi | 
 | 11374 | done | 
 | 11375 |  | 
 | 11376 | fi | 
 | 11377 |  | 
 | 11378 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | 
 | 11379 |   lt_cv_sys_global_symbol_to_cdecl= | 
 | 11380 | fi | 
 | 11381 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | 
 | 11382 |   echo "$as_me:$LINENO: result: failed" >&5 | 
 | 11383 | echo "${ECHO_T}failed" >&6 | 
 | 11384 | else | 
 | 11385 |   echo "$as_me:$LINENO: result: ok" >&5 | 
 | 11386 | echo "${ECHO_T}ok" >&6 | 
 | 11387 | fi | 
 | 11388 |  | 
 | 11389 | echo "$as_me:$LINENO: checking for objdir" >&5 | 
 | 11390 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | 
 | 11391 | if test "${lt_cv_objdir+set}" = set; then | 
 | 11392 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11393 | else | 
 | 11394 |   rm -f .libs 2>/dev/null | 
 | 11395 | mkdir .libs 2>/dev/null | 
 | 11396 | if test -d .libs; then | 
 | 11397 |   lt_cv_objdir=.libs | 
 | 11398 | else | 
 | 11399 |   # MS-DOS does not allow filenames that begin with a dot. | 
 | 11400 |   lt_cv_objdir=_libs | 
 | 11401 | fi | 
 | 11402 | rmdir .libs 2>/dev/null | 
 | 11403 | fi | 
 | 11404 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | 
 | 11405 | echo "${ECHO_T}$lt_cv_objdir" >&6 | 
 | 11406 | objdir=$lt_cv_objdir | 
 | 11407 |  | 
 | 11408 |  | 
 | 11409 |  | 
 | 11410 |  | 
 | 11411 |  | 
 | 11412 | case $host_os in | 
 | 11413 | aix3*) | 
 | 11414 |   # AIX sometimes has problems with the GCC collect2 program.  For some | 
 | 11415 |   # reason, if we set the COLLECT_NAMES environment variable, the problems | 
 | 11416 |   # vanish in a puff of smoke. | 
 | 11417 |   if test "X${COLLECT_NAMES+set}" != Xset; then | 
 | 11418 |     COLLECT_NAMES= | 
 | 11419 |     export COLLECT_NAMES | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11420 |   fi | 
 | 11421 |   ;; | 
 | 11422 | esac | 
 | 11423 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11424 | # Sed substitution that helps us do robust quoting.  It backslashifies | 
 | 11425 | # metacharacters that are still active within double-quoted strings. | 
 | 11426 | Xsed='sed -e s/^X//' | 
 | 11427 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | 
 | 11428 |  | 
 | 11429 | # Same as above, but do not quote variable references. | 
 | 11430 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' | 
 | 11431 |  | 
 | 11432 | # Sed substitution to delay expansion of an escaped shell variable in a | 
 | 11433 | # double_quote_subst'ed string. | 
 | 11434 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | 
 | 11435 |  | 
 | 11436 | # Sed substitution to avoid accidental globbing in evaled expressions | 
 | 11437 | no_glob_subst='s/\*/\\\*/g' | 
 | 11438 |  | 
 | 11439 | # Constants: | 
 | 11440 | rm="rm -f" | 
 | 11441 |  | 
 | 11442 | # Global variables: | 
| Reid Spencer | e4d18e4 | 2004-09-20 01:42:32 +0000 | [diff] [blame] | 11443 | default_ofile=mklib | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11444 | can_build_shared=yes | 
 | 11445 |  | 
 | 11446 | # All known linkers require a `.a' archive for static linking (except M$VC, | 
 | 11447 | # which needs '.lib'). | 
 | 11448 | libext=a | 
 | 11449 | ltmain="$ac_aux_dir/ltmain.sh" | 
 | 11450 | ofile="$default_ofile" | 
 | 11451 | with_gnu_ld="$lt_cv_prog_gnu_ld" | 
 | 11452 |  | 
 | 11453 | if test -n "$ac_tool_prefix"; then | 
 | 11454 |   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | 
 | 11455 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | 
 | 11456 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 11457 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 11458 | if test "${ac_cv_prog_AR+set}" = set; then | 
 | 11459 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11460 | else | 
 | 11461 |   if test -n "$AR"; then | 
 | 11462 |   ac_cv_prog_AR="$AR" # Let the user override the test. | 
 | 11463 | else | 
 | 11464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 11465 | for as_dir in $PATH | 
 | 11466 | do | 
 | 11467 |   IFS=$as_save_IFS | 
 | 11468 |   test -z "$as_dir" && as_dir=. | 
 | 11469 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 11470 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 11471 |     ac_cv_prog_AR="${ac_tool_prefix}ar" | 
 | 11472 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 11473 |     break 2 | 
 | 11474 |   fi | 
 | 11475 | done | 
 | 11476 | done | 
 | 11477 |  | 
 | 11478 | fi | 
 | 11479 | fi | 
 | 11480 | AR=$ac_cv_prog_AR | 
 | 11481 | if test -n "$AR"; then | 
 | 11482 |   echo "$as_me:$LINENO: result: $AR" >&5 | 
 | 11483 | echo "${ECHO_T}$AR" >&6 | 
 | 11484 | else | 
 | 11485 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 11486 | echo "${ECHO_T}no" >&6 | 
 | 11487 | fi | 
 | 11488 |  | 
 | 11489 | fi | 
 | 11490 | if test -z "$ac_cv_prog_AR"; then | 
 | 11491 |   ac_ct_AR=$AR | 
 | 11492 |   # Extract the first word of "ar", so it can be a program name with args. | 
 | 11493 | set dummy ar; ac_word=$2 | 
 | 11494 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 11495 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 11496 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | 
 | 11497 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11498 | else | 
 | 11499 |   if test -n "$ac_ct_AR"; then | 
 | 11500 |   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | 
 | 11501 | else | 
 | 11502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 11503 | for as_dir in $PATH | 
 | 11504 | do | 
 | 11505 |   IFS=$as_save_IFS | 
 | 11506 |   test -z "$as_dir" && as_dir=. | 
 | 11507 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 11508 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 11509 |     ac_cv_prog_ac_ct_AR="ar" | 
 | 11510 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 11511 |     break 2 | 
 | 11512 |   fi | 
 | 11513 | done | 
 | 11514 | done | 
 | 11515 |  | 
 | 11516 |   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" | 
 | 11517 | fi | 
 | 11518 | fi | 
 | 11519 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | 
 | 11520 | if test -n "$ac_ct_AR"; then | 
 | 11521 |   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | 
 | 11522 | echo "${ECHO_T}$ac_ct_AR" >&6 | 
 | 11523 | else | 
 | 11524 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 11525 | echo "${ECHO_T}no" >&6 | 
 | 11526 | fi | 
 | 11527 |  | 
 | 11528 |   AR=$ac_ct_AR | 
 | 11529 | else | 
 | 11530 |   AR="$ac_cv_prog_AR" | 
 | 11531 | fi | 
 | 11532 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11533 | if test -n "$ac_tool_prefix"; then | 
 | 11534 |   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
 | 11535 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
 | 11536 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 11537 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 11538 | if test "${ac_cv_prog_RANLIB+set}" = set; then | 
 | 11539 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11540 | else | 
 | 11541 |   if test -n "$RANLIB"; then | 
 | 11542 |   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
 | 11543 | else | 
 | 11544 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 11545 | for as_dir in $PATH | 
 | 11546 | do | 
 | 11547 |   IFS=$as_save_IFS | 
 | 11548 |   test -z "$as_dir" && as_dir=. | 
 | 11549 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 11550 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 11551 |     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
 | 11552 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 11553 |     break 2 | 
 | 11554 |   fi | 
 | 11555 | done | 
 | 11556 | done | 
 | 11557 |  | 
 | 11558 | fi | 
 | 11559 | fi | 
 | 11560 | RANLIB=$ac_cv_prog_RANLIB | 
 | 11561 | if test -n "$RANLIB"; then | 
 | 11562 |   echo "$as_me:$LINENO: result: $RANLIB" >&5 | 
 | 11563 | echo "${ECHO_T}$RANLIB" >&6 | 
 | 11564 | else | 
 | 11565 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 11566 | echo "${ECHO_T}no" >&6 | 
 | 11567 | fi | 
 | 11568 |  | 
 | 11569 | fi | 
 | 11570 | if test -z "$ac_cv_prog_RANLIB"; then | 
 | 11571 |   ac_ct_RANLIB=$RANLIB | 
 | 11572 |   # Extract the first word of "ranlib", so it can be a program name with args. | 
 | 11573 | set dummy ranlib; ac_word=$2 | 
 | 11574 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 11575 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 11576 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | 
 | 11577 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11578 | else | 
 | 11579 |   if test -n "$ac_ct_RANLIB"; then | 
 | 11580 |   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
 | 11581 | else | 
 | 11582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 11583 | for as_dir in $PATH | 
 | 11584 | do | 
 | 11585 |   IFS=$as_save_IFS | 
 | 11586 |   test -z "$as_dir" && as_dir=. | 
 | 11587 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 11588 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 11589 |     ac_cv_prog_ac_ct_RANLIB="ranlib" | 
 | 11590 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 11591 |     break 2 | 
 | 11592 |   fi | 
 | 11593 | done | 
 | 11594 | done | 
 | 11595 |  | 
 | 11596 |   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | 
 | 11597 | fi | 
 | 11598 | fi | 
 | 11599 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
 | 11600 | if test -n "$ac_ct_RANLIB"; then | 
 | 11601 |   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | 
 | 11602 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | 
 | 11603 | else | 
 | 11604 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 11605 | echo "${ECHO_T}no" >&6 | 
 | 11606 | fi | 
 | 11607 |  | 
 | 11608 |   RANLIB=$ac_ct_RANLIB | 
 | 11609 | else | 
 | 11610 |   RANLIB="$ac_cv_prog_RANLIB" | 
 | 11611 | fi | 
 | 11612 |  | 
 | 11613 | if test -n "$ac_tool_prefix"; then | 
 | 11614 |   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | 
 | 11615 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | 
 | 11616 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 11617 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 11618 | if test "${ac_cv_prog_STRIP+set}" = set; then | 
 | 11619 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11620 | else | 
 | 11621 |   if test -n "$STRIP"; then | 
 | 11622 |   ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | 
 | 11623 | else | 
 | 11624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 11625 | for as_dir in $PATH | 
 | 11626 | do | 
 | 11627 |   IFS=$as_save_IFS | 
 | 11628 |   test -z "$as_dir" && as_dir=. | 
 | 11629 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 11630 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 11631 |     ac_cv_prog_STRIP="${ac_tool_prefix}strip" | 
 | 11632 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 11633 |     break 2 | 
 | 11634 |   fi | 
 | 11635 | done | 
 | 11636 | done | 
 | 11637 |  | 
 | 11638 | fi | 
 | 11639 | fi | 
 | 11640 | STRIP=$ac_cv_prog_STRIP | 
 | 11641 | if test -n "$STRIP"; then | 
 | 11642 |   echo "$as_me:$LINENO: result: $STRIP" >&5 | 
 | 11643 | echo "${ECHO_T}$STRIP" >&6 | 
 | 11644 | else | 
 | 11645 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 11646 | echo "${ECHO_T}no" >&6 | 
 | 11647 | fi | 
 | 11648 |  | 
 | 11649 | fi | 
 | 11650 | if test -z "$ac_cv_prog_STRIP"; then | 
 | 11651 |   ac_ct_STRIP=$STRIP | 
 | 11652 |   # Extract the first word of "strip", so it can be a program name with args. | 
 | 11653 | set dummy strip; ac_word=$2 | 
 | 11654 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 11655 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 11656 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | 
 | 11657 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11658 | else | 
 | 11659 |   if test -n "$ac_ct_STRIP"; then | 
 | 11660 |   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | 
 | 11661 | else | 
 | 11662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 11663 | for as_dir in $PATH | 
 | 11664 | do | 
 | 11665 |   IFS=$as_save_IFS | 
 | 11666 |   test -z "$as_dir" && as_dir=. | 
 | 11667 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 11668 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 11669 |     ac_cv_prog_ac_ct_STRIP="strip" | 
 | 11670 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 11671 |     break 2 | 
 | 11672 |   fi | 
 | 11673 | done | 
 | 11674 | done | 
 | 11675 |  | 
 | 11676 |   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | 
 | 11677 | fi | 
 | 11678 | fi | 
 | 11679 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | 
 | 11680 | if test -n "$ac_ct_STRIP"; then | 
 | 11681 |   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | 
 | 11682 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | 
 | 11683 | else | 
 | 11684 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 11685 | echo "${ECHO_T}no" >&6 | 
 | 11686 | fi | 
 | 11687 |  | 
 | 11688 |   STRIP=$ac_ct_STRIP | 
 | 11689 | else | 
 | 11690 |   STRIP="$ac_cv_prog_STRIP" | 
 | 11691 | fi | 
 | 11692 |  | 
 | 11693 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11694 | old_CC="$CC" | 
 | 11695 | old_CFLAGS="$CFLAGS" | 
 | 11696 |  | 
 | 11697 | # Set sane defaults for various variables | 
 | 11698 | test -z "$AR" && AR=ar | 
 | 11699 | test -z "$AR_FLAGS" && AR_FLAGS=cru | 
 | 11700 | test -z "$AS" && AS=as | 
 | 11701 | test -z "$CC" && CC=cc | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11702 | test -z "$LTCC" && LTCC=$CC | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11703 | test -z "$DLLTOOL" && DLLTOOL=dlltool | 
 | 11704 | test -z "$LD" && LD=ld | 
 | 11705 | test -z "$LN_S" && LN_S="ln -s" | 
 | 11706 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | 
 | 11707 | test -z "$NM" && NM=nm | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11708 | test -z "$SED" && SED=sed | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11709 | test -z "$OBJDUMP" && OBJDUMP=objdump | 
 | 11710 | test -z "$RANLIB" && RANLIB=: | 
 | 11711 | test -z "$STRIP" && STRIP=: | 
 | 11712 | test -z "$ac_objext" && ac_objext=o | 
 | 11713 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11714 | # Determine commands to create old-style static archives. | 
 | 11715 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | 
 | 11716 | old_postinstall_cmds='chmod 644 $oldlib' | 
 | 11717 | old_postuninstall_cmds= | 
 | 11718 |  | 
 | 11719 | if test -n "$RANLIB"; then | 
 | 11720 |   case $host_os in | 
 | 11721 |   openbsd*) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 11722 |     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11723 |     ;; | 
 | 11724 |   *) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 11725 |     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11726 |     ;; | 
 | 11727 |   esac | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 11728 |   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11729 | fi | 
 | 11730 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11731 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | 
 | 11732 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11733 | # Only perform the check for file, if the check method requires it | 
 | 11734 | case $deplibs_check_method in | 
 | 11735 | file_magic*) | 
 | 11736 |   if test "$file_magic_cmd" = '$MAGIC_CMD'; then | 
 | 11737 |     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | 
 | 11738 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | 
 | 11739 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | 
 | 11740 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11741 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11742 |   case $MAGIC_CMD in | 
 | 11743 | [\\/*] |  ?:[\\/]*) | 
 | 11744 |   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | 
 | 11745 |   ;; | 
 | 11746 | *) | 
 | 11747 |   lt_save_MAGIC_CMD="$MAGIC_CMD" | 
 | 11748 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
 | 11749 |   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | 
 | 11750 |   for ac_dir in $ac_dummy; do | 
 | 11751 |     IFS="$lt_save_ifs" | 
 | 11752 |     test -z "$ac_dir" && ac_dir=. | 
 | 11753 |     if test -f $ac_dir/${ac_tool_prefix}file; then | 
 | 11754 |       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | 
 | 11755 |       if test -n "$file_magic_test_file"; then | 
 | 11756 | 	case $deplibs_check_method in | 
 | 11757 | 	"file_magic "*) | 
 | 11758 | 	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | 
 | 11759 | 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
 | 11760 | 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 
 | 11761 | 	    $EGREP "$file_magic_regex" > /dev/null; then | 
 | 11762 | 	    : | 
 | 11763 | 	  else | 
 | 11764 | 	    cat <<EOF 1>&2 | 
 | 11765 |  | 
 | 11766 | *** Warning: the command libtool uses to detect shared libraries, | 
 | 11767 | *** $file_magic_cmd, produces output that libtool cannot recognize. | 
 | 11768 | *** The result is that libtool may fail to recognize shared libraries | 
 | 11769 | *** as such.  This will affect the creation of libtool libraries that | 
 | 11770 | *** depend on shared libraries, but programs linked with such libtool | 
 | 11771 | *** libraries will work regardless of this problem.  Nevertheless, you | 
 | 11772 | *** may want to report the problem to your system manager and/or to | 
 | 11773 | *** bug-libtool@gnu.org | 
 | 11774 |  | 
 | 11775 | EOF | 
 | 11776 | 	  fi ;; | 
 | 11777 | 	esac | 
 | 11778 |       fi | 
 | 11779 |       break | 
 | 11780 |     fi | 
 | 11781 |   done | 
 | 11782 |   IFS="$lt_save_ifs" | 
 | 11783 |   MAGIC_CMD="$lt_save_MAGIC_CMD" | 
 | 11784 |   ;; | 
 | 11785 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11786 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11787 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11788 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
 | 11789 | if test -n "$MAGIC_CMD"; then | 
 | 11790 |   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | 
 | 11791 | echo "${ECHO_T}$MAGIC_CMD" >&6 | 
 | 11792 | else | 
 | 11793 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 11794 | echo "${ECHO_T}no" >&6 | 
 | 11795 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11796 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11797 | if test -z "$lt_cv_path_MAGIC_CMD"; then | 
 | 11798 |   if test -n "$ac_tool_prefix"; then | 
 | 11799 |     echo "$as_me:$LINENO: checking for file" >&5 | 
 | 11800 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | 
 | 11801 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | 
 | 11802 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11803 | else | 
 | 11804 |   case $MAGIC_CMD in | 
 | 11805 | [\\/*] |  ?:[\\/]*) | 
 | 11806 |   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | 
 | 11807 |   ;; | 
 | 11808 | *) | 
 | 11809 |   lt_save_MAGIC_CMD="$MAGIC_CMD" | 
 | 11810 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
 | 11811 |   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | 
 | 11812 |   for ac_dir in $ac_dummy; do | 
 | 11813 |     IFS="$lt_save_ifs" | 
 | 11814 |     test -z "$ac_dir" && ac_dir=. | 
 | 11815 |     if test -f $ac_dir/file; then | 
 | 11816 |       lt_cv_path_MAGIC_CMD="$ac_dir/file" | 
 | 11817 |       if test -n "$file_magic_test_file"; then | 
 | 11818 | 	case $deplibs_check_method in | 
 | 11819 | 	"file_magic "*) | 
 | 11820 | 	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | 
 | 11821 | 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
 | 11822 | 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 
 | 11823 | 	    $EGREP "$file_magic_regex" > /dev/null; then | 
 | 11824 | 	    : | 
 | 11825 | 	  else | 
 | 11826 | 	    cat <<EOF 1>&2 | 
 | 11827 |  | 
 | 11828 | *** Warning: the command libtool uses to detect shared libraries, | 
 | 11829 | *** $file_magic_cmd, produces output that libtool cannot recognize. | 
 | 11830 | *** The result is that libtool may fail to recognize shared libraries | 
 | 11831 | *** as such.  This will affect the creation of libtool libraries that | 
 | 11832 | *** depend on shared libraries, but programs linked with such libtool | 
 | 11833 | *** libraries will work regardless of this problem.  Nevertheless, you | 
 | 11834 | *** may want to report the problem to your system manager and/or to | 
 | 11835 | *** bug-libtool@gnu.org | 
 | 11836 |  | 
 | 11837 | EOF | 
 | 11838 | 	  fi ;; | 
 | 11839 | 	esac | 
 | 11840 |       fi | 
 | 11841 |       break | 
 | 11842 |     fi | 
 | 11843 |   done | 
 | 11844 |   IFS="$lt_save_ifs" | 
 | 11845 |   MAGIC_CMD="$lt_save_MAGIC_CMD" | 
 | 11846 |   ;; | 
 | 11847 | esac | 
 | 11848 | fi | 
 | 11849 |  | 
 | 11850 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
 | 11851 | if test -n "$MAGIC_CMD"; then | 
 | 11852 |   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | 
 | 11853 | echo "${ECHO_T}$MAGIC_CMD" >&6 | 
 | 11854 | else | 
 | 11855 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 11856 | echo "${ECHO_T}no" >&6 | 
 | 11857 | fi | 
 | 11858 |  | 
 | 11859 |   else | 
 | 11860 |     MAGIC_CMD=: | 
 | 11861 |   fi | 
 | 11862 | fi | 
 | 11863 |  | 
 | 11864 |   fi | 
 | 11865 |   ;; | 
 | 11866 | esac | 
 | 11867 |  | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 11868 | enable_dlopen=yes | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11869 | enable_win32_dll=no | 
 | 11870 |  | 
 | 11871 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | 
 | 11872 | if test "${enable_libtool_lock+set}" = set; then | 
 | 11873 |   enableval="$enable_libtool_lock" | 
 | 11874 |  | 
 | 11875 | fi; | 
 | 11876 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | 
 | 11877 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11878 |  | 
 | 11879 | # Check whether --with-pic or --without-pic was given. | 
 | 11880 | if test "${with_pic+set}" = set; then | 
 | 11881 |   withval="$with_pic" | 
 | 11882 |   pic_mode="$withval" | 
 | 11883 | else | 
 | 11884 |   pic_mode=default | 
 | 11885 | fi; | 
 | 11886 | test -z "$pic_mode" && pic_mode=default | 
 | 11887 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11888 | # Use C for the default configuration in the libtool script | 
 | 11889 | tagname= | 
 | 11890 | lt_save_CC="$CC" | 
 | 11891 | ac_ext=c | 
 | 11892 | ac_cpp='$CPP $CPPFLAGS' | 
 | 11893 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 11894 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 11895 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 11896 |  | 
 | 11897 |  | 
 | 11898 | # Source file extension for C test sources. | 
 | 11899 | ac_ext=c | 
 | 11900 |  | 
 | 11901 | # Object file extension for compiled C test sources. | 
 | 11902 | objext=o | 
 | 11903 | objext=$objext | 
 | 11904 |  | 
 | 11905 | # Code to be used in simple compile tests | 
 | 11906 | lt_simple_compile_test_code="int some_variable = 0;\n" | 
 | 11907 |  | 
 | 11908 | # Code to be used in simple link tests | 
 | 11909 | lt_simple_link_test_code='int main(){return(0);}\n' | 
 | 11910 |  | 
 | 11911 |  | 
 | 11912 | # If no C compiler was specified, use CC. | 
 | 11913 | LTCC=${LTCC-"$CC"} | 
 | 11914 |  | 
 | 11915 | # Allow CC to be a program name with arguments. | 
 | 11916 | compiler=$CC | 
 | 11917 |  | 
 | 11918 |  | 
 | 11919 | # | 
 | 11920 | # Check for any special shared library compilation flags. | 
 | 11921 | # | 
 | 11922 | lt_prog_cc_shlib= | 
 | 11923 | if test "$GCC" = no; then | 
 | 11924 |   case $host_os in | 
 | 11925 |   sco3.2v5*) | 
 | 11926 |     lt_prog_cc_shlib='-belf' | 
 | 11927 |     ;; | 
 | 11928 |   esac | 
 | 11929 | fi | 
 | 11930 | if test -n "$lt_prog_cc_shlib"; then | 
 | 11931 |   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 | 
 | 11932 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} | 
 | 11933 |   if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then : | 
 | 11934 |   else | 
 | 11935 |     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 | 
 | 11936 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} | 
 | 11937 |     lt_cv_prog_cc_can_build_shared=no | 
 | 11938 |   fi | 
 | 11939 | fi | 
 | 11940 |  | 
 | 11941 |  | 
 | 11942 | # | 
 | 11943 | # Check to make sure the static flag actually works. | 
 | 11944 | # | 
 | 11945 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 | 
 | 11946 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 | 
 | 11947 | if test "${lt_prog_compiler_static_works+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11948 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11949 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11950 |   lt_prog_compiler_static_works=no | 
 | 11951 |    save_LDFLAGS="$LDFLAGS" | 
 | 11952 |    LDFLAGS="$LDFLAGS $lt_prog_compiler_static" | 
 | 11953 |    printf "$lt_simple_link_test_code" > conftest.$ac_ext | 
 | 11954 |    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | 
 | 11955 |      # The compiler can only warn and ignore the option if not recognized | 
 | 11956 |      # So say no if there are warnings | 
 | 11957 |      if test -s conftest.err; then | 
 | 11958 |        # Append any errors to the config.log. | 
 | 11959 |        cat conftest.err 1>&5 | 
 | 11960 |      else | 
 | 11961 |        lt_prog_compiler_static_works=yes | 
 | 11962 |      fi | 
 | 11963 |    fi | 
 | 11964 |    $rm conftest* | 
 | 11965 |    LDFLAGS="$save_LDFLAGS" | 
 | 11966 |  | 
 | 11967 | fi | 
 | 11968 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | 
 | 11969 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 | 
 | 11970 |  | 
 | 11971 | if test x"$lt_prog_compiler_static_works" = xyes; then | 
 | 11972 |     : | 
 | 11973 | else | 
 | 11974 |     lt_prog_compiler_static= | 
 | 11975 | fi | 
 | 11976 |  | 
 | 11977 |  | 
 | 11978 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11979 |  | 
 | 11980 | lt_prog_compiler_no_builtin_flag= | 
 | 11981 |  | 
 | 11982 | if test "$GCC" = yes; then | 
 | 11983 |   lt_prog_compiler_no_builtin_flag=' -fno-builtin' | 
 | 11984 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11985 |  | 
 | 11986 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11987 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | 
 | 11988 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | 
 | 11989 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11990 | else | 
 | 11991 |   lt_cv_prog_compiler_rtti_exceptions=no | 
 | 11992 |   ac_outfile=conftest.$ac_objext | 
 | 11993 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 11994 |    lt_compiler_flag="-fno-rtti -fno-exceptions" | 
 | 11995 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 11996 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 11997 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 11998 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 11999 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 12000 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 12001 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 12002 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 12003 |    -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 12004 |    (eval echo "\"\$as_me:12004: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12005 |    (eval "$lt_compile" 2>conftest.err) | 
 | 12006 |    ac_status=$? | 
 | 12007 |    cat conftest.err >&5 | 
| Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 12008 |    echo "$as_me:12008: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12009 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 12010 |      # The compiler can only warn and ignore the option if not recognized | 
 | 12011 |      # So say no if there are warnings | 
 | 12012 |      if test ! -s conftest.err; then | 
 | 12013 |        lt_cv_prog_compiler_rtti_exceptions=yes | 
 | 12014 |      fi | 
 | 12015 |    fi | 
 | 12016 |    $rm conftest* | 
 | 12017 |  | 
 | 12018 | fi | 
 | 12019 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | 
 | 12020 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | 
 | 12021 |  | 
 | 12022 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | 
 | 12023 |     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | 
 | 12024 | else | 
 | 12025 |     : | 
 | 12026 | fi | 
 | 12027 |  | 
 | 12028 | fi | 
 | 12029 |  | 
 | 12030 | lt_prog_compiler_wl= | 
 | 12031 | lt_prog_compiler_pic= | 
 | 12032 | lt_prog_compiler_static= | 
 | 12033 |  | 
 | 12034 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 
 | 12035 | 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] | 12036 |  | 
 | 12037 |   if test "$GCC" = yes; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12038 |     lt_prog_compiler_wl='-Wl,' | 
 | 12039 |     lt_prog_compiler_static='-static' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12040 |  | 
 | 12041 |     case $host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12042 |       aix*) | 
 | 12043 |       # All AIX code is PIC. | 
 | 12044 |       if test "$host_cpu" = ia64; then | 
 | 12045 | 	# AIX 5 now supports IA64 processor | 
 | 12046 | 	lt_prog_compiler_static='-Bstatic' | 
 | 12047 |       fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12048 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12049 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12050 |     amigaos*) | 
 | 12051 |       # FIXME: we need at least 68020 code to build shared libraries, but | 
 | 12052 |       # adding the `-m68020' flag to GCC prevents building anything better, | 
 | 12053 |       # like `-m68040'. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12054 |       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12055 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12056 |  | 
 | 12057 |     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12058 |       # PIC is the default for these OSes. | 
 | 12059 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12060 |  | 
 | 12061 |     mingw* | pw32* | os2*) | 
 | 12062 |       # This hack is so that the source file can tell whether it is being | 
 | 12063 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 12064 |       lt_prog_compiler_pic='-DDLL_EXPORT' | 
 | 12065 |       ;; | 
 | 12066 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12067 |     darwin* | rhapsody*) | 
 | 12068 |       # PIC is the default on this platform | 
 | 12069 |       # Common symbols not allowed in MH_DYLIB files | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12070 |       lt_prog_compiler_pic='-fno-common' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12071 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12072 |  | 
 | 12073 |     msdosdjgpp*) | 
 | 12074 |       # Just because we use GCC doesn't mean we suddenly get shared libraries | 
 | 12075 |       # on systems that don't support them. | 
 | 12076 |       lt_prog_compiler_can_build_shared=no | 
 | 12077 |       enable_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12078 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12079 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12080 |     sysv4*MP*) | 
 | 12081 |       if test -d /usr/nec; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12082 | 	lt_prog_compiler_pic=-Kconform_pic | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12083 |       fi | 
 | 12084 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12085 |  | 
 | 12086 |     hpux*) | 
 | 12087 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 12088 |       # not for PA HP-UX. | 
 | 12089 |       case "$host_cpu" in | 
 | 12090 |       hppa*64*|ia64*) | 
 | 12091 | 	# +Z the default | 
 | 12092 | 	;; | 
 | 12093 |       *) | 
 | 12094 | 	lt_prog_compiler_pic='-fPIC' | 
 | 12095 | 	;; | 
 | 12096 |       esac | 
 | 12097 |       ;; | 
 | 12098 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12099 |     *) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12100 |       lt_prog_compiler_pic='-fPIC' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12101 |       ;; | 
 | 12102 |     esac | 
 | 12103 |   else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12104 |     # PORTME Check for flag to pass linker flags through the system compiler. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12105 |     case $host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12106 |     aix*) | 
 | 12107 |       lt_prog_compiler_wl='-Wl,' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12108 |       if test "$host_cpu" = ia64; then | 
 | 12109 | 	# AIX 5 now supports IA64 processor | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12110 | 	lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12111 |       else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12112 | 	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12113 |       fi | 
 | 12114 |       ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12115 |       darwin*) | 
 | 12116 |         # PIC is the default on this platform | 
 | 12117 |         # Common symbols not allowed in MH_DYLIB files | 
 | 12118 |        case "$cc_basename" in | 
 | 12119 |          xlc*) | 
 | 12120 |          lt_prog_compiler_pic='-qnocommon' | 
 | 12121 |          lt_prog_compiler_wl='-Wl,' | 
 | 12122 |          ;; | 
 | 12123 |        esac | 
 | 12124 |        ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12125 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12126 |     mingw* | pw32* | os2*) | 
 | 12127 |       # This hack is so that the source file can tell whether it is being | 
 | 12128 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 12129 |       lt_prog_compiler_pic='-DDLL_EXPORT' | 
 | 12130 |       ;; | 
 | 12131 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12132 |     hpux9* | hpux10* | hpux11*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12133 |       lt_prog_compiler_wl='-Wl,' | 
 | 12134 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 12135 |       # not for PA HP-UX. | 
 | 12136 |       case "$host_cpu" in | 
 | 12137 |       hppa*64*|ia64*) | 
 | 12138 | 	# +Z the default | 
 | 12139 | 	;; | 
 | 12140 |       *) | 
 | 12141 | 	lt_prog_compiler_pic='+Z' | 
 | 12142 | 	;; | 
 | 12143 |       esac | 
 | 12144 |       # Is there a better lt_prog_compiler_static that works with the bundled CC? | 
 | 12145 |       lt_prog_compiler_static='${wl}-a ${wl}archive' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12146 |       ;; | 
 | 12147 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12148 |     irix5* | irix6* | nonstopux*) | 
 | 12149 |       lt_prog_compiler_wl='-Wl,' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12150 |       # PIC (with -KPIC) is the default. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12151 |       lt_prog_compiler_static='-non_shared' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12152 |       ;; | 
 | 12153 |  | 
 | 12154 |     newsos6) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12155 |       lt_prog_compiler_pic='-KPIC' | 
 | 12156 |       lt_prog_compiler_static='-Bstatic' | 
 | 12157 |       ;; | 
 | 12158 |  | 
 | 12159 |     linux*) | 
 | 12160 |       case $CC in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12161 |       icc* | ecc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12162 | 	lt_prog_compiler_wl='-Wl,' | 
 | 12163 | 	lt_prog_compiler_pic='-KPIC' | 
 | 12164 | 	lt_prog_compiler_static='-static' | 
 | 12165 |         ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12166 |       ccc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12167 |         lt_prog_compiler_wl='-Wl,' | 
 | 12168 |         # All Alpha code is PIC. | 
 | 12169 |         lt_prog_compiler_static='-non_shared' | 
 | 12170 |         ;; | 
 | 12171 |       esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12172 |       ;; | 
 | 12173 |  | 
 | 12174 |     osf3* | osf4* | osf5*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12175 |       lt_prog_compiler_wl='-Wl,' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12176 |       # All OSF/1 code is PIC. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12177 |       lt_prog_compiler_static='-non_shared' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12178 |       ;; | 
 | 12179 |  | 
 | 12180 |     sco3.2v5*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12181 |       lt_prog_compiler_pic='-Kpic' | 
 | 12182 |       lt_prog_compiler_static='-dn' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12183 |       ;; | 
 | 12184 |  | 
 | 12185 |     solaris*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12186 |       lt_prog_compiler_wl='-Wl,' | 
 | 12187 |       lt_prog_compiler_pic='-KPIC' | 
 | 12188 |       lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12189 |       ;; | 
 | 12190 |  | 
 | 12191 |     sunos4*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12192 |       lt_prog_compiler_wl='-Qoption ld ' | 
 | 12193 |       lt_prog_compiler_pic='-PIC' | 
 | 12194 |       lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12195 |       ;; | 
 | 12196 |  | 
 | 12197 |     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12198 |       lt_prog_compiler_wl='-Wl,' | 
 | 12199 |       lt_prog_compiler_pic='-KPIC' | 
 | 12200 |       lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12201 |       ;; | 
 | 12202 |  | 
 | 12203 |     sysv4*MP*) | 
 | 12204 |       if test -d /usr/nec ;then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12205 | 	lt_prog_compiler_pic='-Kconform_pic' | 
 | 12206 | 	lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12207 |       fi | 
 | 12208 |       ;; | 
 | 12209 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12210 |     uts4*) | 
 | 12211 |       lt_prog_compiler_pic='-pic' | 
 | 12212 |       lt_prog_compiler_static='-Bstatic' | 
 | 12213 |       ;; | 
 | 12214 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12215 |     *) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12216 |       lt_prog_compiler_can_build_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12217 |       ;; | 
 | 12218 |     esac | 
 | 12219 |   fi | 
 | 12220 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12221 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | 
 | 12222 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12223 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12224 | # | 
 | 12225 | # Check to make sure the PIC flag actually works. | 
 | 12226 | # | 
 | 12227 | if test -n "$lt_prog_compiler_pic"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12228 |  | 
 | 12229 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12230 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 | 
 | 12231 | if test "${lt_prog_compiler_pic_works+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12232 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 12233 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12234 |   lt_prog_compiler_pic_works=no | 
 | 12235 |   ac_outfile=conftest.$ac_objext | 
 | 12236 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 12237 |    lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | 
 | 12238 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 12239 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 12240 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 12241 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 12242 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 12243 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 12244 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 12245 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 12246 |    -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 12247 |    (eval echo "\"\$as_me:12247: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12248 |    (eval "$lt_compile" 2>conftest.err) | 
 | 12249 |    ac_status=$? | 
 | 12250 |    cat conftest.err >&5 | 
| Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 12251 |    echo "$as_me:12251: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12252 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 12253 |      # The compiler can only warn and ignore the option if not recognized | 
 | 12254 |      # So say no if there are warnings | 
 | 12255 |      if test ! -s conftest.err; then | 
 | 12256 |        lt_prog_compiler_pic_works=yes | 
 | 12257 |      fi | 
 | 12258 |    fi | 
 | 12259 |    $rm conftest* | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12260 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12261 | fi | 
 | 12262 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | 
 | 12263 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12264 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12265 | if test x"$lt_prog_compiler_pic_works" = xyes; then | 
 | 12266 |     case $lt_prog_compiler_pic in | 
 | 12267 |      "" | " "*) ;; | 
 | 12268 |      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | 
 | 12269 |      esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12270 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12271 |     lt_prog_compiler_pic= | 
 | 12272 |      lt_prog_compiler_can_build_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12273 | fi | 
 | 12274 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12275 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12276 | case "$host_os" in | 
 | 12277 |   # For platforms which do not support PIC, -DPIC is meaningless: | 
 | 12278 |   *djgpp*) | 
 | 12279 |     lt_prog_compiler_pic= | 
 | 12280 |     ;; | 
 | 12281 |   *) | 
 | 12282 |     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | 
 | 12283 |     ;; | 
 | 12284 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12285 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12286 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
 | 12287 | 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] | 12288 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12289 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 12290 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12291 |   lt_cv_prog_compiler_c_o=no | 
 | 12292 |    $rm -r conftest 2>/dev/null | 
 | 12293 |    mkdir conftest | 
 | 12294 |    cd conftest | 
 | 12295 |    mkdir out | 
 | 12296 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12297 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12298 |    lt_compiler_flag="-o out/conftest2.$ac_objext" | 
 | 12299 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 12300 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 12301 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 12302 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 12303 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 12304 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 12305 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 12306 |    -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 12307 |    (eval echo "\"\$as_me:12307: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12308 |    (eval "$lt_compile" 2>out/conftest.err) | 
 | 12309 |    ac_status=$? | 
 | 12310 |    cat out/conftest.err >&5 | 
| Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 12311 |    echo "$as_me:12311: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12312 |    if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
 | 12313 |    then | 
 | 12314 |      # The compiler can only warn and ignore the option if not recognized | 
 | 12315 |      # So say no if there are warnings | 
 | 12316 |      if test ! -s out/conftest.err; then | 
 | 12317 |        lt_cv_prog_compiler_c_o=yes | 
 | 12318 |      fi | 
 | 12319 |    fi | 
 | 12320 |    chmod u+w . | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12321 |    $rm conftest* | 
 | 12322 |    # SGI C++ compiler will create directory out/ii_files/ for | 
 | 12323 |    # template instantiation | 
 | 12324 |    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | 
 | 12325 |    $rm out/* && rmdir out | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12326 |    cd .. | 
 | 12327 |    rmdir conftest | 
 | 12328 |    $rm conftest* | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12329 |  | 
 | 12330 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12331 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | 
 | 12332 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12333 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12334 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12335 | hard_links="nottested" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12336 | 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] | 12337 |   # do not overwrite the value of need_locks provided by the user | 
 | 12338 |   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | 
 | 12339 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | 
 | 12340 |   hard_links=yes | 
 | 12341 |   $rm conftest* | 
 | 12342 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 12343 |   touch conftest.a | 
 | 12344 |   ln conftest.a conftest.b 2>&5 || hard_links=no | 
 | 12345 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 12346 |   echo "$as_me:$LINENO: result: $hard_links" >&5 | 
 | 12347 | echo "${ECHO_T}$hard_links" >&6 | 
 | 12348 |   if test "$hard_links" = no; then | 
 | 12349 |     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
 | 12350 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
 | 12351 |     need_locks=warn | 
 | 12352 |   fi | 
 | 12353 | else | 
 | 12354 |   need_locks=no | 
 | 12355 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12356 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12357 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
 | 12358 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
 | 12359 |  | 
 | 12360 |   runpath_var= | 
 | 12361 |   allow_undefined_flag= | 
 | 12362 |   enable_shared_with_static_runtimes=no | 
 | 12363 |   archive_cmds= | 
 | 12364 |   archive_expsym_cmds= | 
 | 12365 |   old_archive_From_new_cmds= | 
 | 12366 |   old_archive_from_expsyms_cmds= | 
 | 12367 |   export_dynamic_flag_spec= | 
 | 12368 |   whole_archive_flag_spec= | 
 | 12369 |   thread_safe_flag_spec= | 
 | 12370 |   hardcode_libdir_flag_spec= | 
 | 12371 |   hardcode_libdir_flag_spec_ld= | 
 | 12372 |   hardcode_libdir_separator= | 
 | 12373 |   hardcode_direct=no | 
 | 12374 |   hardcode_minus_L=no | 
 | 12375 |   hardcode_shlibpath_var=unsupported | 
 | 12376 |   link_all_deplibs=unknown | 
 | 12377 |   hardcode_automatic=no | 
 | 12378 |   module_cmds= | 
 | 12379 |   module_expsym_cmds= | 
 | 12380 |   always_export_symbols=no | 
 | 12381 |   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 12382 |   # include_expsyms should be a list of space-separated symbols to be *always* | 
 | 12383 |   # included in the symbol list | 
 | 12384 |   include_expsyms= | 
 | 12385 |   # exclude_expsyms can be an extended regexp of symbols to exclude | 
 | 12386 |   # it will be wrapped by ` (' and `)$', so one must not match beginning or | 
 | 12387 |   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | 
 | 12388 |   # as well as any symbol that contains `d'. | 
 | 12389 |   exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | 
 | 12390 |   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | 
 | 12391 |   # platforms (ab)use it in PIC code, but their linkers get confused if | 
 | 12392 |   # the symbol is explicitly referenced.  Since portable code cannot | 
 | 12393 |   # rely on this symbol name, it's probably fine to never include it in | 
 | 12394 |   # preloaded symbol tables. | 
 | 12395 |   extract_expsyms_cmds= | 
 | 12396 |  | 
 | 12397 |   case $host_os in | 
 | 12398 |   cygwin* | mingw* | pw32*) | 
 | 12399 |     # FIXME: the MSVC++ port hasn't been tested in a loooong time | 
 | 12400 |     # When not using gcc, we currently assume that we are using | 
 | 12401 |     # Microsoft Visual C++. | 
 | 12402 |     if test "$GCC" != yes; then | 
 | 12403 |       with_gnu_ld=no | 
 | 12404 |     fi | 
 | 12405 |     ;; | 
 | 12406 |   openbsd*) | 
 | 12407 |     with_gnu_ld=no | 
 | 12408 |     ;; | 
 | 12409 |   esac | 
 | 12410 |  | 
 | 12411 |   ld_shlibs=yes | 
 | 12412 |   if test "$with_gnu_ld" = yes; then | 
 | 12413 |     # If archive_cmds runs LD, not CC, wlarc should be empty | 
 | 12414 |     wlarc='${wl}' | 
 | 12415 |  | 
 | 12416 |     # See if GNU ld supports shared libraries. | 
 | 12417 |     case $host_os in | 
 | 12418 |     aix3* | aix4* | aix5*) | 
 | 12419 |       # On AIX/PPC, the GNU linker is very broken | 
 | 12420 |       if test "$host_cpu" != ia64; then | 
 | 12421 | 	ld_shlibs=no | 
 | 12422 | 	cat <<EOF 1>&2 | 
 | 12423 |  | 
 | 12424 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | 
 | 12425 | *** to be unable to reliably create shared libraries on AIX. | 
 | 12426 | *** Therefore, libtool is disabling shared libraries support.  If you | 
 | 12427 | *** really care for shared libraries, you may want to modify your PATH | 
 | 12428 | *** so that a non-GNU linker is found, and then restart. | 
 | 12429 |  | 
 | 12430 | EOF | 
 | 12431 |       fi | 
 | 12432 |       ;; | 
 | 12433 |  | 
 | 12434 |     amigaos*) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12435 |       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12436 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 12437 |       hardcode_minus_L=yes | 
 | 12438 |  | 
 | 12439 |       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | 
 | 12440 |       # that the semantics of dynamic libraries on AmigaOS, at least up | 
 | 12441 |       # to version 4, is to share data among multiple programs linked | 
 | 12442 |       # with the same dynamic library.  Since this doesn't match the | 
 | 12443 |       # behavior of shared libraries on other platforms, we can't use | 
 | 12444 |       # them. | 
 | 12445 |       ld_shlibs=no | 
 | 12446 |       ;; | 
 | 12447 |  | 
 | 12448 |     beos*) | 
 | 12449 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 12450 | 	allow_undefined_flag=unsupported | 
 | 12451 | 	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 
 | 12452 | 	# support --undefined.  This deserves some investigation.  FIXME | 
 | 12453 | 	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 12454 |       else | 
 | 12455 | 	ld_shlibs=no | 
 | 12456 |       fi | 
 | 12457 |       ;; | 
 | 12458 |  | 
 | 12459 |     cygwin* | mingw* | pw32*) | 
 | 12460 |       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | 
 | 12461 |       # as there is no search path for DLLs. | 
 | 12462 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 12463 |       allow_undefined_flag=unsupported | 
 | 12464 |       always_export_symbols=no | 
 | 12465 |       enable_shared_with_static_runtimes=yes | 
 | 12466 |       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 12467 |  | 
 | 12468 |       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 
 | 12469 |         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 
 | 12470 | 	# If the export-symbols file already is a .def file (1st line | 
 | 12471 | 	# is EXPORTS), use it as is; otherwise, prepend... | 
 | 12472 | 	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
 | 12473 | 	  cp $export_symbols $output_objdir/$soname.def; | 
 | 12474 | 	else | 
 | 12475 | 	  echo EXPORTS > $output_objdir/$soname.def; | 
 | 12476 | 	  cat $export_symbols >> $output_objdir/$soname.def; | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12477 | 	fi~ | 
 | 12478 | 	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12479 |       else | 
 | 12480 | 	ld_shlibs=no | 
 | 12481 |       fi | 
 | 12482 |       ;; | 
 | 12483 |  | 
 | 12484 |     netbsd*) | 
 | 12485 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 12486 | 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | 
 | 12487 | 	wlarc= | 
 | 12488 |       else | 
 | 12489 | 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 12490 | 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 12491 |       fi | 
 | 12492 |       ;; | 
 | 12493 |  | 
 | 12494 |     solaris* | sysv5*) | 
 | 12495 |       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | 
 | 12496 | 	ld_shlibs=no | 
 | 12497 | 	cat <<EOF 1>&2 | 
 | 12498 |  | 
 | 12499 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | 
 | 12500 | *** create shared libraries on Solaris systems.  Therefore, libtool | 
 | 12501 | *** is disabling shared libraries support.  We urge you to upgrade GNU | 
 | 12502 | *** binutils to release 2.9.1 or newer.  Another option is to modify | 
 | 12503 | *** your PATH or compiler configuration so that the native linker is | 
 | 12504 | *** used, and then restart. | 
 | 12505 |  | 
 | 12506 | EOF | 
 | 12507 |       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 12508 | 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 12509 | 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 12510 |       else | 
 | 12511 | 	ld_shlibs=no | 
 | 12512 |       fi | 
 | 12513 |       ;; | 
 | 12514 |  | 
 | 12515 |     sunos4*) | 
 | 12516 |       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 12517 |       wlarc= | 
 | 12518 |       hardcode_direct=yes | 
 | 12519 |       hardcode_shlibpath_var=no | 
 | 12520 |       ;; | 
 | 12521 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12522 |   linux*) | 
 | 12523 |     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 12524 |         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 12525 | 	archive_cmds="$tmp_archive_cmds" | 
 | 12526 |       supports_anon_versioning=no | 
 | 12527 |       case `$LD -v 2>/dev/null` in | 
 | 12528 |         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | 
 | 12529 |         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | 
 | 12530 |         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | 
 | 12531 |         *\ 2.11.*) ;; # other 2.11 versions | 
 | 12532 |         *) supports_anon_versioning=yes ;; | 
 | 12533 |       esac | 
 | 12534 |       if test $supports_anon_versioning = yes; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12535 |         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ | 
 | 12536 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | 
 | 12537 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12538 |         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | 
 | 12539 |       else | 
 | 12540 |         archive_expsym_cmds="$tmp_archive_cmds" | 
 | 12541 |       fi | 
 | 12542 |     else | 
 | 12543 |       ld_shlibs=no | 
 | 12544 |     fi | 
 | 12545 |     ;; | 
 | 12546 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12547 |     *) | 
 | 12548 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 12549 | 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 12550 | 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 12551 |       else | 
 | 12552 | 	ld_shlibs=no | 
 | 12553 |       fi | 
 | 12554 |       ;; | 
 | 12555 |     esac | 
 | 12556 |  | 
 | 12557 |     if test "$ld_shlibs" = yes; then | 
 | 12558 |       runpath_var=LD_RUN_PATH | 
 | 12559 |       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | 
 | 12560 |       export_dynamic_flag_spec='${wl}--export-dynamic' | 
 | 12561 |       # ancient GNU ld didn't support --whole-archive et. al. | 
 | 12562 |       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | 
 | 12563 |  	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
 | 12564 |       else | 
 | 12565 |   	whole_archive_flag_spec= | 
 | 12566 |       fi | 
 | 12567 |     fi | 
 | 12568 |   else | 
 | 12569 |     # PORTME fill in a description of your system's linker (not GNU ld) | 
 | 12570 |     case $host_os in | 
 | 12571 |     aix3*) | 
 | 12572 |       allow_undefined_flag=unsupported | 
 | 12573 |       always_export_symbols=yes | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12574 |       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12575 |       # Note: this linker hardcodes the directories in LIBPATH if there | 
 | 12576 |       # are no directories specified by -L. | 
 | 12577 |       hardcode_minus_L=yes | 
 | 12578 |       if test "$GCC" = yes && test -z "$link_static_flag"; then | 
 | 12579 | 	# Neither direct hardcoding nor static linking is supported with a | 
 | 12580 | 	# broken collect2. | 
 | 12581 | 	hardcode_direct=unsupported | 
 | 12582 |       fi | 
 | 12583 |       ;; | 
 | 12584 |  | 
 | 12585 |     aix4* | aix5*) | 
 | 12586 |       if test "$host_cpu" = ia64; then | 
 | 12587 | 	# On IA64, the linker does run time linking by default, so we don't | 
 | 12588 | 	# have to do anything special. | 
 | 12589 | 	aix_use_runtimelinking=no | 
 | 12590 | 	exp_sym_flag='-Bexport' | 
 | 12591 | 	no_entry_flag="" | 
 | 12592 |       else | 
 | 12593 | 	# If we're using GNU nm, then we don't want the "-C" option. | 
 | 12594 | 	# -C means demangle to AIX nm, but means don't demangle with GNU nm | 
 | 12595 | 	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 
 | 12596 | 	  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' | 
 | 12597 | 	else | 
 | 12598 | 	  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' | 
 | 12599 | 	fi | 
 | 12600 | 	aix_use_runtimelinking=no | 
 | 12601 |  | 
 | 12602 | 	# Test if we are trying to use run time linking or normal | 
 | 12603 | 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
 | 12604 | 	# need to do runtime linking. | 
 | 12605 | 	case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 
 | 12606 | 	  for ld_flag in $LDFLAGS; do | 
 | 12607 |   	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 
 | 12608 |   	    aix_use_runtimelinking=yes | 
 | 12609 |   	    break | 
 | 12610 |   	  fi | 
 | 12611 | 	  done | 
 | 12612 | 	esac | 
 | 12613 |  | 
 | 12614 | 	exp_sym_flag='-bexport' | 
 | 12615 | 	no_entry_flag='-bnoentry' | 
 | 12616 |       fi | 
 | 12617 |  | 
 | 12618 |       # When large executables or shared objects are built, AIX ld can | 
 | 12619 |       # have problems creating the table of contents.  If linking a library | 
 | 12620 |       # or program results in "error TOC overflow" add -mminimal-toc to | 
 | 12621 |       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
 | 12622 |       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
 | 12623 |  | 
 | 12624 |       archive_cmds='' | 
 | 12625 |       hardcode_direct=yes | 
 | 12626 |       hardcode_libdir_separator=':' | 
 | 12627 |       link_all_deplibs=yes | 
 | 12628 |  | 
 | 12629 |       if test "$GCC" = yes; then | 
 | 12630 | 	case $host_os in aix4.012|aix4.012.*) | 
 | 12631 | 	# We only want to do this on AIX 4.2 and lower, the check | 
 | 12632 | 	# below for broken collect2 doesn't work under 4.3+ | 
 | 12633 | 	  collect2name=`${CC} -print-prog-name=collect2` | 
 | 12634 | 	  if test -f "$collect2name" && \ | 
 | 12635 |   	   strings "$collect2name" | grep resolve_lib_name >/dev/null | 
 | 12636 | 	  then | 
 | 12637 |   	  # We have reworked collect2 | 
 | 12638 |   	  hardcode_direct=yes | 
 | 12639 | 	  else | 
 | 12640 |   	  # We have old collect2 | 
 | 12641 |   	  hardcode_direct=unsupported | 
 | 12642 |   	  # It fails to find uninstalled libraries when the uninstalled | 
 | 12643 |   	  # path is not listed in the libpath.  Setting hardcode_minus_L | 
 | 12644 |   	  # to unsupported forces relinking | 
 | 12645 |   	  hardcode_minus_L=yes | 
 | 12646 |   	  hardcode_libdir_flag_spec='-L$libdir' | 
 | 12647 |   	  hardcode_libdir_separator= | 
 | 12648 | 	  fi | 
 | 12649 | 	esac | 
 | 12650 | 	shared_flag='-shared' | 
 | 12651 |       else | 
 | 12652 | 	# not using gcc | 
 | 12653 | 	if test "$host_cpu" = ia64; then | 
 | 12654 |   	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
 | 12655 |   	# chokes on -Wl,-G. The following line is correct: | 
 | 12656 | 	  shared_flag='-G' | 
 | 12657 | 	else | 
 | 12658 |   	if test "$aix_use_runtimelinking" = yes; then | 
 | 12659 | 	    shared_flag='${wl}-G' | 
 | 12660 | 	  else | 
 | 12661 | 	    shared_flag='${wl}-bM:SRE' | 
 | 12662 |   	fi | 
 | 12663 | 	fi | 
 | 12664 |       fi | 
 | 12665 |  | 
 | 12666 |       # It seems that -bexpall does not export symbols beginning with | 
 | 12667 |       # underscore (_), so it is better to generate a list of symbols to export. | 
 | 12668 |       always_export_symbols=yes | 
 | 12669 |       if test "$aix_use_runtimelinking" = yes; then | 
 | 12670 | 	# Warning - without using the other runtime loading flags (-brtl), | 
 | 12671 | 	# -berok will link without error, but may produce a broken library. | 
 | 12672 | 	allow_undefined_flag='-berok' | 
 | 12673 |        # Determine the default libpath from the value encoded in an empty executable. | 
 | 12674 |        cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12675 | /* confdefs.h.  */ | 
 | 12676 | _ACEOF | 
 | 12677 | cat confdefs.h >>conftest.$ac_ext | 
 | 12678 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 12679 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12680 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12681 | int | 
 | 12682 | main () | 
 | 12683 | { | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12684 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12685 |   ; | 
 | 12686 |   return 0; | 
 | 12687 | } | 
 | 12688 | _ACEOF | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12689 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 12690 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12691 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12692 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12693 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 12694 |   rm -f conftest.er1 | 
 | 12695 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12696 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12697 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12698 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 12699 | 			 || test ! -s conftest.err' | 
 | 12700 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 12701 |   (eval $ac_try) 2>&5 | 
 | 12702 |   ac_status=$? | 
 | 12703 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12704 |   (exit $ac_status); }; } && | 
 | 12705 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12706 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 12707 |   (eval $ac_try) 2>&5 | 
 | 12708 |   ac_status=$? | 
 | 12709 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12710 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12711 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12712 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 12713 | }'` | 
 | 12714 | # Check for a 64-bit object if we didn't find anything. | 
 | 12715 | 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; } | 
 | 12716 | }'`; fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12717 | else | 
 | 12718 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12719 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 12720 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12721 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12722 | rm -f conftest.err conftest.$ac_objext \ | 
 | 12723 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12724 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12725 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12726 |        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 12727 | 	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" | 
 | 12728 |        else | 
 | 12729 | 	if test "$host_cpu" = ia64; then | 
 | 12730 | 	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | 
 | 12731 | 	  allow_undefined_flag="-z nodefs" | 
 | 12732 | 	  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" | 
 | 12733 | 	else | 
 | 12734 | 	 # Determine the default libpath from the value encoded in an empty executable. | 
 | 12735 | 	 cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12736 | /* confdefs.h.  */ | 
 | 12737 | _ACEOF | 
 | 12738 | cat confdefs.h >>conftest.$ac_ext | 
 | 12739 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 12740 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12741 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12742 | int | 
 | 12743 | main () | 
 | 12744 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12745 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12746 |   ; | 
 | 12747 |   return 0; | 
 | 12748 | } | 
 | 12749 | _ACEOF | 
 | 12750 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 12751 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12752 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12753 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12754 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 12755 |   rm -f conftest.er1 | 
 | 12756 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12757 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12758 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12759 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 12760 | 			 || test ! -s conftest.err' | 
 | 12761 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 12762 |   (eval $ac_try) 2>&5 | 
 | 12763 |   ac_status=$? | 
 | 12764 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12765 |   (exit $ac_status); }; } && | 
 | 12766 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12767 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 12768 |   (eval $ac_try) 2>&5 | 
 | 12769 |   ac_status=$? | 
 | 12770 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12771 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12772 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12773 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 12774 | }'` | 
 | 12775 | # Check for a 64-bit object if we didn't find anything. | 
 | 12776 | 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; } | 
 | 12777 | }'`; fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12778 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12779 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12780 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 12781 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12782 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12783 | rm -f conftest.err conftest.$ac_objext \ | 
 | 12784 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12785 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12786 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12787 | 	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 12788 | 	  # Warning - without using the other run time loading flags, | 
 | 12789 | 	  # -berok will link without error, but may produce a broken library. | 
 | 12790 | 	  no_undefined_flag=' ${wl}-bernotok' | 
 | 12791 | 	  allow_undefined_flag=' ${wl}-berok' | 
 | 12792 | 	  # -bexpall does not export symbols beginning with underscore (_) | 
 | 12793 | 	  always_export_symbols=yes | 
 | 12794 | 	  # Exported symbols can be pulled into shared objects from archives | 
 | 12795 | 	  whole_archive_flag_spec=' ' | 
 | 12796 | 	  archive_cmds_need_lc=yes | 
 | 12797 | 	  # This is similar to how AIX traditionally builds it's shared libraries. | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12798 | 	  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] | 12799 | 	fi | 
 | 12800 |       fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12801 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12802 |  | 
 | 12803 |     amigaos*) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12804 |       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12805 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 12806 |       hardcode_minus_L=yes | 
 | 12807 |       # see comment about different semantics on the GNU ld section | 
 | 12808 |       ld_shlibs=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12809 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12810 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12811 |     bsdi[45]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12812 |       export_dynamic_flag_spec=-rdynamic | 
 | 12813 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12814 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12815 |     cygwin* | mingw* | pw32*) | 
 | 12816 |       # When not using gcc, we currently assume that we are using | 
 | 12817 |       # Microsoft Visual C++. | 
 | 12818 |       # hardcode_libdir_flag_spec is actually meaningless, as there is | 
 | 12819 |       # no search path for DLLs. | 
 | 12820 |       hardcode_libdir_flag_spec=' ' | 
 | 12821 |       allow_undefined_flag=unsupported | 
 | 12822 |       # Tell ltmain to make .lib files, not .a files. | 
 | 12823 |       libext=lib | 
 | 12824 |       # Tell ltmain to make .dll files, not .so files. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12825 |       shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12826 |       # FIXME: Setting linknames here is a bad hack. | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12827 |       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12828 |       # The linker will automatically build a .lib file if we build a DLL. | 
 | 12829 |       old_archive_From_new_cmds='true' | 
 | 12830 |       # FIXME: Should let the user specify the lib program. | 
 | 12831 |       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' | 
 | 12832 |       fix_srcfile_path='`cygpath -w "$srcfile"`' | 
 | 12833 |       enable_shared_with_static_runtimes=yes | 
 | 12834 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12835 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12836 |     darwin* | rhapsody*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12837 |       case "$host_os" in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12838 |         rhapsody* | darwin1.[012]) | 
 | 12839 |          allow_undefined_flag='${wl}-undefined ${wl}suppress' | 
 | 12840 |          ;; | 
 | 12841 |        *) # Darwin 1.3 on | 
 | 12842 |          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | 
 | 12843 |            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 12844 |          else | 
 | 12845 |            case ${MACOSX_DEPLOYMENT_TARGET} in | 
 | 12846 |              10.[012]) | 
 | 12847 |                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 12848 |                ;; | 
 | 12849 |              10.*) | 
 | 12850 |                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' | 
 | 12851 |                ;; | 
 | 12852 |            esac | 
 | 12853 |          fi | 
 | 12854 |          ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12855 |       esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12856 |       archive_cmds_need_lc=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12857 |       hardcode_direct=no | 
 | 12858 |       hardcode_automatic=yes | 
 | 12859 |       hardcode_shlibpath_var=unsupported | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12860 |       whole_archive_flag_spec='' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12861 |       link_all_deplibs=yes | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12862 |     if test "$GCC" = yes ; then | 
 | 12863 |     	output_verbose_link_cmd='echo' | 
 | 12864 |         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 
 | 12865 |       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
 | 12866 |       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12867 |       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}' | 
 | 12868 |       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12869 |     else | 
 | 12870 |       case "$cc_basename" in | 
 | 12871 |         xlc*) | 
 | 12872 |          output_verbose_link_cmd='echo' | 
 | 12873 |          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | 
 | 12874 |          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
 | 12875 |           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12876 |          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
 | 12877 |           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12878 |           ;; | 
 | 12879 |        *) | 
 | 12880 |          ld_shlibs=no | 
 | 12881 |           ;; | 
 | 12882 |       esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12883 |     fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12884 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12885 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12886 |     dgux*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12887 |       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12888 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 12889 |       hardcode_shlibpath_var=no | 
 | 12890 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12891 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12892 |     freebsd1*) | 
 | 12893 |       ld_shlibs=no | 
 | 12894 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12895 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12896 |     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 
 | 12897 |     # support.  Future versions do this automatically, but an explicit c++rt0.o | 
 | 12898 |     # does not break anything, and helps significantly (at the cost of a little | 
 | 12899 |     # extra space). | 
 | 12900 |     freebsd2.2*) | 
 | 12901 |       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | 
 | 12902 |       hardcode_libdir_flag_spec='-R$libdir' | 
 | 12903 |       hardcode_direct=yes | 
 | 12904 |       hardcode_shlibpath_var=no | 
 | 12905 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12906 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12907 |     # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 
 | 12908 |     freebsd2*) | 
 | 12909 |       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 12910 |       hardcode_direct=yes | 
 | 12911 |       hardcode_minus_L=yes | 
 | 12912 |       hardcode_shlibpath_var=no | 
 | 12913 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12914 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12915 |     # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12916 |     freebsd* | kfreebsd*-gnu) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12917 |       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | 
 | 12918 |       hardcode_libdir_flag_spec='-R$libdir' | 
 | 12919 |       hardcode_direct=yes | 
 | 12920 |       hardcode_shlibpath_var=no | 
 | 12921 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12922 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12923 |     hpux9*) | 
 | 12924 |       if test "$GCC" = yes; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12925 | 	archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12926 |       else | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12927 | 	archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12928 |       fi | 
 | 12929 |       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 
 | 12930 |       hardcode_libdir_separator=: | 
 | 12931 |       hardcode_direct=yes | 
 | 12932 |  | 
 | 12933 |       # hardcode_minus_L: Not really in the search PATH, | 
 | 12934 |       # but as the default location of the library. | 
 | 12935 |       hardcode_minus_L=yes | 
 | 12936 |       export_dynamic_flag_spec='${wl}-E' | 
 | 12937 |       ;; | 
 | 12938 |  | 
 | 12939 |     hpux10* | hpux11*) | 
 | 12940 |       if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 
 | 12941 | 	case "$host_cpu" in | 
 | 12942 | 	hppa*64*|ia64*) | 
 | 12943 | 	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 12944 | 	  ;; | 
 | 12945 | 	*) | 
 | 12946 | 	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
 | 12947 | 	  ;; | 
 | 12948 | 	esac | 
 | 12949 |       else | 
 | 12950 | 	case "$host_cpu" in | 
 | 12951 | 	hppa*64*|ia64*) | 
 | 12952 | 	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 12953 | 	  ;; | 
 | 12954 | 	*) | 
 | 12955 | 	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 
 | 12956 | 	  ;; | 
 | 12957 | 	esac | 
 | 12958 |       fi | 
 | 12959 |       if test "$with_gnu_ld" = no; then | 
 | 12960 | 	case "$host_cpu" in | 
 | 12961 | 	hppa*64*) | 
 | 12962 | 	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 
 | 12963 | 	  hardcode_libdir_flag_spec_ld='+b $libdir' | 
 | 12964 | 	  hardcode_libdir_separator=: | 
 | 12965 | 	  hardcode_direct=no | 
 | 12966 | 	  hardcode_shlibpath_var=no | 
 | 12967 | 	  ;; | 
 | 12968 | 	ia64*) | 
 | 12969 | 	  hardcode_libdir_flag_spec='-L$libdir' | 
 | 12970 | 	  hardcode_direct=no | 
 | 12971 | 	  hardcode_shlibpath_var=no | 
 | 12972 |  | 
 | 12973 | 	  # hardcode_minus_L: Not really in the search PATH, | 
 | 12974 | 	  # but as the default location of the library. | 
 | 12975 | 	  hardcode_minus_L=yes | 
 | 12976 | 	  ;; | 
 | 12977 | 	*) | 
 | 12978 | 	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 
 | 12979 | 	  hardcode_libdir_separator=: | 
 | 12980 | 	  hardcode_direct=yes | 
 | 12981 | 	  export_dynamic_flag_spec='${wl}-E' | 
 | 12982 |  | 
 | 12983 | 	  # hardcode_minus_L: Not really in the search PATH, | 
 | 12984 | 	  # but as the default location of the library. | 
 | 12985 | 	  hardcode_minus_L=yes | 
 | 12986 | 	  ;; | 
 | 12987 | 	esac | 
 | 12988 |       fi | 
 | 12989 |       ;; | 
 | 12990 |  | 
 | 12991 |     irix5* | irix6* | nonstopux*) | 
 | 12992 |       if test "$GCC" = yes; then | 
 | 12993 | 	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' | 
 | 12994 |       else | 
 | 12995 | 	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' | 
 | 12996 | 	hardcode_libdir_flag_spec_ld='-rpath $libdir' | 
 | 12997 |       fi | 
 | 12998 |       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
 | 12999 |       hardcode_libdir_separator=: | 
 | 13000 |       link_all_deplibs=yes | 
 | 13001 |       ;; | 
 | 13002 |  | 
 | 13003 |     netbsd*) | 
 | 13004 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 13005 | 	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out | 
 | 13006 |       else | 
 | 13007 | 	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF | 
 | 13008 |       fi | 
 | 13009 |       hardcode_libdir_flag_spec='-R$libdir' | 
 | 13010 |       hardcode_direct=yes | 
 | 13011 |       hardcode_shlibpath_var=no | 
 | 13012 |       ;; | 
 | 13013 |  | 
 | 13014 |     newsos6) | 
 | 13015 |       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 13016 |       hardcode_direct=yes | 
 | 13017 |       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
 | 13018 |       hardcode_libdir_separator=: | 
 | 13019 |       hardcode_shlibpath_var=no | 
 | 13020 |       ;; | 
 | 13021 |  | 
 | 13022 |     openbsd*) | 
 | 13023 |       hardcode_direct=yes | 
 | 13024 |       hardcode_shlibpath_var=no | 
 | 13025 |       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 13026 | 	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13027 | 	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13028 | 	hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | 
 | 13029 | 	export_dynamic_flag_spec='${wl}-E' | 
 | 13030 |       else | 
 | 13031 |        case $host_os in | 
 | 13032 | 	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | 
 | 13033 | 	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 13034 | 	   hardcode_libdir_flag_spec='-R$libdir' | 
 | 13035 | 	   ;; | 
 | 13036 | 	 *) | 
 | 13037 | 	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
 | 13038 | 	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | 
 | 13039 | 	   ;; | 
 | 13040 |        esac | 
 | 13041 |       fi | 
 | 13042 |       ;; | 
 | 13043 |  | 
 | 13044 |     os2*) | 
 | 13045 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 13046 |       hardcode_minus_L=yes | 
 | 13047 |       allow_undefined_flag=unsupported | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13048 |       archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13049 |       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | 
 | 13050 |       ;; | 
 | 13051 |  | 
 | 13052 |     osf3*) | 
 | 13053 |       if test "$GCC" = yes; then | 
 | 13054 | 	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | 
 | 13055 | 	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' | 
 | 13056 |       else | 
 | 13057 | 	allow_undefined_flag=' -expect_unresolved \*' | 
 | 13058 | 	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' | 
 | 13059 |       fi | 
 | 13060 |       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
 | 13061 |       hardcode_libdir_separator=: | 
 | 13062 |       ;; | 
 | 13063 |  | 
 | 13064 |     osf4* | osf5*)	# as osf3* with the addition of -msym flag | 
 | 13065 |       if test "$GCC" = yes; then | 
 | 13066 | 	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | 
 | 13067 | 	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' | 
 | 13068 | 	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
 | 13069 |       else | 
 | 13070 | 	allow_undefined_flag=' -expect_unresolved \*' | 
 | 13071 | 	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13072 | 	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | 
 | 13073 | 	$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' | 
 | 13074 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13075 | 	# Both c and cxx compiler support -rpath directly | 
 | 13076 | 	hardcode_libdir_flag_spec='-rpath $libdir' | 
 | 13077 |       fi | 
 | 13078 |       hardcode_libdir_separator=: | 
 | 13079 |       ;; | 
 | 13080 |  | 
 | 13081 |     sco3.2v5*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13082 |       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 13083 |       hardcode_shlibpath_var=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13084 |       export_dynamic_flag_spec='${wl}-Bexport' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13085 |       runpath_var=LD_RUN_PATH | 
 | 13086 |       hardcode_runpath_var=yes | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13087 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13088 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13089 |     solaris*) | 
 | 13090 |       no_undefined_flag=' -z text' | 
 | 13091 |       if test "$GCC" = yes; then | 
 | 13092 | 	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13093 | 	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 13094 | 	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13095 |       else | 
 | 13096 | 	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13097 | 	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 13098 |   	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13099 |       fi | 
 | 13100 |       hardcode_libdir_flag_spec='-R$libdir' | 
 | 13101 |       hardcode_shlibpath_var=no | 
 | 13102 |       case $host_os in | 
 | 13103 |       solaris2.[0-5] | solaris2.[0-5].*) ;; | 
 | 13104 |       *) # Supported since Solaris 2.6 (maybe 2.5.1?) | 
 | 13105 | 	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | 
 | 13106 |       esac | 
 | 13107 |       link_all_deplibs=yes | 
 | 13108 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13109 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13110 |     sunos4*) | 
 | 13111 |       if test "x$host_vendor" = xsequent; then | 
 | 13112 | 	# Use $CC to link under sequent, because it throws in some extra .o | 
 | 13113 | 	# files that make .init and .fini sections work. | 
 | 13114 | 	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 13115 |       else | 
 | 13116 | 	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | 
 | 13117 |       fi | 
 | 13118 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 13119 |       hardcode_direct=yes | 
 | 13120 |       hardcode_minus_L=yes | 
 | 13121 |       hardcode_shlibpath_var=no | 
 | 13122 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13123 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13124 |     sysv4) | 
 | 13125 |       case $host_vendor in | 
 | 13126 | 	sni) | 
 | 13127 | 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 13128 | 	  hardcode_direct=yes # is this really true??? | 
 | 13129 | 	;; | 
 | 13130 | 	siemens) | 
 | 13131 | 	  ## LD is ld it makes a PLAMLIB | 
 | 13132 | 	  ## CC just makes a GrossModule. | 
 | 13133 | 	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
 | 13134 | 	  reload_cmds='$CC -r -o $output$reload_objs' | 
 | 13135 | 	  hardcode_direct=no | 
 | 13136 |         ;; | 
 | 13137 | 	motorola) | 
 | 13138 | 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 13139 | 	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie | 
 | 13140 | 	;; | 
 | 13141 |       esac | 
 | 13142 |       runpath_var='LD_RUN_PATH' | 
 | 13143 |       hardcode_shlibpath_var=no | 
 | 13144 |       ;; | 
 | 13145 |  | 
 | 13146 |     sysv4.3*) | 
 | 13147 |       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 13148 |       hardcode_shlibpath_var=no | 
 | 13149 |       export_dynamic_flag_spec='-Bexport' | 
 | 13150 |       ;; | 
 | 13151 |  | 
 | 13152 |     sysv4*MP*) | 
 | 13153 |       if test -d /usr/nec; then | 
 | 13154 | 	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 13155 | 	hardcode_shlibpath_var=no | 
 | 13156 | 	runpath_var=LD_RUN_PATH | 
 | 13157 | 	hardcode_runpath_var=yes | 
 | 13158 | 	ld_shlibs=yes | 
 | 13159 |       fi | 
 | 13160 |       ;; | 
 | 13161 |  | 
 | 13162 |     sysv4.2uw2*) | 
 | 13163 |       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
 | 13164 |       hardcode_direct=yes | 
 | 13165 |       hardcode_minus_L=no | 
 | 13166 |       hardcode_shlibpath_var=no | 
 | 13167 |       hardcode_runpath_var=yes | 
 | 13168 |       runpath_var=LD_RUN_PATH | 
 | 13169 |       ;; | 
 | 13170 |  | 
 | 13171 |    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*) | 
 | 13172 |       no_undefined_flag='${wl}-z ${wl}text' | 
 | 13173 |       if test "$GCC" = yes; then | 
 | 13174 | 	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 13175 |       else | 
 | 13176 | 	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 13177 |       fi | 
 | 13178 |       runpath_var='LD_RUN_PATH' | 
 | 13179 |       hardcode_shlibpath_var=no | 
 | 13180 |       ;; | 
 | 13181 |  | 
 | 13182 |     sysv5*) | 
 | 13183 |       no_undefined_flag=' -z text' | 
 | 13184 |       # $CC -shared without GNU ld will not create a library from C++ | 
 | 13185 |       # object files and a static libstdc++, better avoid it by now | 
 | 13186 |       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13187 |       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 13188 |   		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13189 |       hardcode_libdir_flag_spec= | 
 | 13190 |       hardcode_shlibpath_var=no | 
 | 13191 |       runpath_var='LD_RUN_PATH' | 
 | 13192 |       ;; | 
 | 13193 |  | 
 | 13194 |     uts4*) | 
 | 13195 |       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 13196 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 13197 |       hardcode_shlibpath_var=no | 
 | 13198 |       ;; | 
 | 13199 |  | 
 | 13200 |     *) | 
 | 13201 |       ld_shlibs=no | 
 | 13202 |       ;; | 
 | 13203 |     esac | 
 | 13204 |   fi | 
 | 13205 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13206 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | 
 | 13207 | echo "${ECHO_T}$ld_shlibs" >&6 | 
 | 13208 | test "$ld_shlibs" = no && can_build_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13209 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13210 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
 | 13211 | if test "$GCC" = yes; then | 
 | 13212 |   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
 | 13213 | fi | 
 | 13214 |  | 
 | 13215 | # | 
 | 13216 | # Do we need to explicitly link libc? | 
 | 13217 | # | 
 | 13218 | case "x$archive_cmds_need_lc" in | 
 | 13219 | x|xyes) | 
 | 13220 |   # Assume -lc should be added | 
 | 13221 |   archive_cmds_need_lc=yes | 
 | 13222 |  | 
 | 13223 |   if test "$enable_shared" = yes && test "$GCC" = yes; then | 
 | 13224 |     case $archive_cmds in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13225 |     *'~'*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13226 |       # FIXME: we may have to deal with multi-command sequences. | 
 | 13227 |       ;; | 
 | 13228 |     '$CC '*) | 
 | 13229 |       # Test whether the compiler implicitly links with -lc since on some | 
 | 13230 |       # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
 | 13231 |       # to ld, don't add -lc before -lgcc. | 
 | 13232 |       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | 
 | 13233 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | 
 | 13234 |       $rm conftest* | 
 | 13235 |       printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 13236 |  | 
 | 13237 |       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 13238 |   (eval $ac_compile) 2>&5 | 
 | 13239 |   ac_status=$? | 
 | 13240 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13241 |   (exit $ac_status); } 2>conftest.err; then | 
 | 13242 |         soname=conftest | 
 | 13243 |         lib=conftest | 
 | 13244 |         libobjs=conftest.$ac_objext | 
 | 13245 |         deplibs= | 
 | 13246 |         wl=$lt_prog_compiler_wl | 
 | 13247 |         compiler_flags=-v | 
 | 13248 |         linker_flags=-v | 
 | 13249 |         verstring= | 
 | 13250 |         output_objdir=. | 
 | 13251 |         libname=conftest | 
 | 13252 |         lt_save_allow_undefined_flag=$allow_undefined_flag | 
 | 13253 |         allow_undefined_flag= | 
 | 13254 |         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | 
 | 13255 |   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
 | 13256 |   ac_status=$? | 
 | 13257 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13258 |   (exit $ac_status); } | 
 | 13259 |         then | 
 | 13260 | 	  archive_cmds_need_lc=no | 
 | 13261 |         else | 
 | 13262 | 	  archive_cmds_need_lc=yes | 
 | 13263 |         fi | 
 | 13264 |         allow_undefined_flag=$lt_save_allow_undefined_flag | 
 | 13265 |       else | 
 | 13266 |         cat conftest.err 1>&5 | 
 | 13267 |       fi | 
 | 13268 |       $rm conftest* | 
 | 13269 |       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | 
 | 13270 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 | 
 | 13271 |       ;; | 
 | 13272 |     esac | 
 | 13273 |   fi | 
 | 13274 |   ;; | 
 | 13275 | esac | 
 | 13276 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13277 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
 | 13278 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 
 | 13279 | library_names_spec= | 
 | 13280 | libname_spec='lib$name' | 
 | 13281 | soname_spec= | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13282 | shrext_cmds=".so" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13283 | postinstall_cmds= | 
 | 13284 | postuninstall_cmds= | 
 | 13285 | finish_cmds= | 
 | 13286 | finish_eval= | 
 | 13287 | shlibpath_var= | 
 | 13288 | shlibpath_overrides_runpath=unknown | 
 | 13289 | version_type=none | 
 | 13290 | dynamic_linker="$host_os ld.so" | 
 | 13291 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13292 | if test "$GCC" = yes; then | 
 | 13293 |   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 13294 |   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
 | 13295 |     # if the path contains ";" then we assume it to be the separator | 
 | 13296 |     # otherwise default to the standard path separator (i.e. ":") - it is | 
 | 13297 |     # assumed that no part of a normal pathname contains ";" but that should | 
 | 13298 |     # okay in the real world where ";" in dirpaths is itself problematic. | 
 | 13299 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 13300 |   else | 
 | 13301 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 13302 |   fi | 
 | 13303 | else | 
 | 13304 |   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
 | 13305 | fi | 
 | 13306 | need_lib_prefix=unknown | 
 | 13307 | hardcode_into_libs=no | 
 | 13308 |  | 
 | 13309 | # when you set need_version to no, make sure it does not cause -set_version | 
 | 13310 | # flags to be left without arguments | 
 | 13311 | need_version=unknown | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13312 |  | 
 | 13313 | case $host_os in | 
 | 13314 | aix3*) | 
 | 13315 |   version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13316 |   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13317 |   shlibpath_var=LIBPATH | 
 | 13318 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13319 |   # AIX 3 has no versioning support, so we append a major version to the name. | 
 | 13320 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13321 |   ;; | 
 | 13322 |  | 
 | 13323 | aix4* | aix5*) | 
 | 13324 |   version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13325 |   need_lib_prefix=no | 
 | 13326 |   need_version=no | 
 | 13327 |   hardcode_into_libs=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13328 |   if test "$host_cpu" = ia64; then | 
 | 13329 |     # AIX 5 supports IA64 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13330 |     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] | 13331 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 13332 |   else | 
 | 13333 |     # With GCC up to 2.95.x, collect2 would create an import file | 
 | 13334 |     # for dependence libraries.  The import file would start with | 
 | 13335 |     # the line `#! .'.  This would cause the generated library to | 
 | 13336 |     # depend on `.', always an invalid library.  This was fixed in | 
 | 13337 |     # development snapshots of GCC prior to 3.0. | 
 | 13338 |     case $host_os in | 
 | 13339 |       aix4 | aix4.[01] | aix4.[01].*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13340 |       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
 | 13341 | 	   echo ' yes ' | 
 | 13342 | 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
 | 13343 | 	: | 
 | 13344 |       else | 
 | 13345 | 	can_build_shared=no | 
 | 13346 |       fi | 
 | 13347 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13348 |     esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13349 |     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
 | 13350 |     # soname into executable. Probably we can add versioning support to | 
 | 13351 |     # collect2, so additional links can be useful in future. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13352 |     if test "$aix_use_runtimelinking" = yes; then | 
 | 13353 |       # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
 | 13354 |       # instead of lib<name>.a to let people know that these are not | 
 | 13355 |       # typical AIX shared libraries. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13356 |       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] | 13357 |     else | 
 | 13358 |       # We preserve .a as extension for shared libraries through AIX4.2 | 
 | 13359 |       # and later when we are not doing run time linking. | 
 | 13360 |       library_names_spec='${libname}${release}.a $libname.a' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13361 |       soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13362 |     fi | 
 | 13363 |     shlibpath_var=LIBPATH | 
 | 13364 |   fi | 
 | 13365 |   ;; | 
 | 13366 |  | 
 | 13367 | amigaos*) | 
 | 13368 |   library_names_spec='$libname.ixlibrary $libname.a' | 
 | 13369 |   # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13370 |   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13371 |   ;; | 
 | 13372 |  | 
 | 13373 | beos*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13374 |   library_names_spec='${libname}${shared_ext}' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13375 |   dynamic_linker="$host_os ld.so" | 
 | 13376 |   shlibpath_var=LIBRARY_PATH | 
 | 13377 |   ;; | 
 | 13378 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13379 | bsdi[45]*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13380 |   version_type=linux | 
 | 13381 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13382 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 13383 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13384 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
 | 13385 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 13386 |   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
 | 13387 |   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13388 |   # the default ld.so.conf also contains /usr/contrib/lib and | 
 | 13389 |   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
 | 13390 |   # libtool to hard-code these into programs | 
 | 13391 |   ;; | 
 | 13392 |  | 
 | 13393 | cygwin* | mingw* | pw32*) | 
 | 13394 |   version_type=windows | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13395 |   shrext_cmds=".dll" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13396 |   need_version=no | 
 | 13397 |   need_lib_prefix=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13398 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13399 |   case $GCC,$host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13400 |   yes,cygwin* | yes,mingw* | yes,pw32*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13401 |     library_names_spec='$libname.dll.a' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13402 |     # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13403 |     postinstall_cmds='base_file=`basename \${file}`~ | 
 | 13404 |       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
 | 13405 |       dldir=$destdir/`dirname \$dlpath`~ | 
 | 13406 |       test -d \$dldir || mkdir -p \$dldir~ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13407 |       $install_prog $dir/$dlname \$dldir/$dlname' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13408 |     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
 | 13409 |       dlpath=$dir/\$dldll~ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13410 |        $rm \$dlpath' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13411 |     shlibpath_overrides_runpath=yes | 
 | 13412 |  | 
 | 13413 |     case $host_os in | 
 | 13414 |     cygwin*) | 
 | 13415 |       # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
 | 13416 |       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13417 |       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13418 |       ;; | 
 | 13419 |     mingw*) | 
 | 13420 |       # MinGW DLLs use traditional 'lib' prefix | 
 | 13421 |       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 13422 |       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 13423 |       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
 | 13424 |         # It is most probably a Windows format PATH printed by | 
 | 13425 |         # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
 | 13426 |         # path with ; separators, and with drive letters. We can handle the | 
 | 13427 |         # drive letters (cygwin fileutils understands them), so leave them, | 
 | 13428 |         # especially as we might pass files found there to a mingw objdump, | 
 | 13429 |         # which wouldn't understand a cygwinified path. Ahh. | 
 | 13430 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 13431 |       else | 
 | 13432 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 13433 |       fi | 
 | 13434 |       ;; | 
 | 13435 |     pw32*) | 
 | 13436 |       # pw32 DLLs use 'pw' prefix rather than 'lib' | 
 | 13437 |       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | 
 | 13438 |       ;; | 
 | 13439 |     esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13440 |     ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13441 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13442 |   *) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13443 |     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] | 13444 |     ;; | 
 | 13445 |   esac | 
 | 13446 |   dynamic_linker='Win32 ld.exe' | 
 | 13447 |   # FIXME: first we should search . and the directory the executable is in | 
 | 13448 |   shlibpath_var=PATH | 
 | 13449 |   ;; | 
 | 13450 |  | 
 | 13451 | darwin* | rhapsody*) | 
 | 13452 |   dynamic_linker="$host_os dyld" | 
 | 13453 |   version_type=darwin | 
 | 13454 |   need_lib_prefix=no | 
 | 13455 |   need_version=no | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13456 |   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13457 |   soname_spec='${libname}${release}${major}$shared_ext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13458 |   shlibpath_overrides_runpath=yes | 
 | 13459 |   shlibpath_var=DYLD_LIBRARY_PATH | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13460 |   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13461 |   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13462 |   if test "$GCC" = yes; then | 
 | 13463 |     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"` | 
 | 13464 |   else | 
 | 13465 |     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13466 |   fi | 
 | 13467 |   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
 | 13468 |   ;; | 
 | 13469 |  | 
 | 13470 | dgux*) | 
 | 13471 |   version_type=linux | 
 | 13472 |   need_lib_prefix=no | 
 | 13473 |   need_version=no | 
 | 13474 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
 | 13475 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 13476 |   shlibpath_var=LD_LIBRARY_PATH | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13477 |   ;; | 
 | 13478 |  | 
 | 13479 | freebsd1*) | 
 | 13480 |   dynamic_linker=no | 
 | 13481 |   ;; | 
 | 13482 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13483 | kfreebsd*-gnu) | 
 | 13484 |   version_type=linux | 
 | 13485 |   need_lib_prefix=no | 
 | 13486 |   need_version=no | 
 | 13487 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 13488 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 13489 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 13490 |   shlibpath_overrides_runpath=no | 
 | 13491 |   hardcode_into_libs=yes | 
 | 13492 |   dynamic_linker='GNU ld.so' | 
 | 13493 |   ;; | 
 | 13494 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13495 | freebsd*) | 
 | 13496 |   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | 
 | 13497 |   version_type=freebsd-$objformat | 
 | 13498 |   case $version_type in | 
 | 13499 |     freebsd-elf*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13500 |       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] | 13501 |       need_version=no | 
 | 13502 |       need_lib_prefix=no | 
 | 13503 |       ;; | 
 | 13504 |     freebsd-*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13505 |       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13506 |       need_version=yes | 
 | 13507 |       ;; | 
 | 13508 |   esac | 
 | 13509 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 13510 |   case $host_os in | 
 | 13511 |   freebsd2*) | 
 | 13512 |     shlibpath_overrides_runpath=yes | 
 | 13513 |     ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13514 |   freebsd3.01* | freebsdelf3.01*) | 
 | 13515 |     shlibpath_overrides_runpath=yes | 
 | 13516 |     hardcode_into_libs=yes | 
 | 13517 |     ;; | 
 | 13518 |   *) # from 3.2 on | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13519 |     shlibpath_overrides_runpath=no | 
 | 13520 |     hardcode_into_libs=yes | 
 | 13521 |     ;; | 
 | 13522 |   esac | 
 | 13523 |   ;; | 
 | 13524 |  | 
 | 13525 | gnu*) | 
 | 13526 |   version_type=linux | 
 | 13527 |   need_lib_prefix=no | 
 | 13528 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13529 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
 | 13530 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13531 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 13532 |   hardcode_into_libs=yes | 
 | 13533 |   ;; | 
 | 13534 |  | 
 | 13535 | hpux9* | hpux10* | hpux11*) | 
 | 13536 |   # Give a soname corresponding to the major version so that dld.sl refuses to | 
 | 13537 |   # link against other versions. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13538 |   version_type=sunos | 
 | 13539 |   need_lib_prefix=no | 
 | 13540 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13541 |   case "$host_cpu" in | 
 | 13542 |   ia64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13543 |     shrext_cmds='.so' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13544 |     hardcode_into_libs=yes | 
 | 13545 |     dynamic_linker="$host_os dld.so" | 
 | 13546 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 13547 |     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 13548 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 13549 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 13550 |     if test "X$HPUX_IA64_MODE" = X32; then | 
 | 13551 |       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
 | 13552 |     else | 
 | 13553 |       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
 | 13554 |     fi | 
 | 13555 |     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 13556 |     ;; | 
 | 13557 |    hppa*64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13558 |      shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13559 |      hardcode_into_libs=yes | 
 | 13560 |      dynamic_linker="$host_os dld.sl" | 
 | 13561 |      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
 | 13562 |      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 13563 |      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 13564 |      soname_spec='${libname}${release}${shared_ext}$major' | 
 | 13565 |      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
 | 13566 |      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 13567 |      ;; | 
 | 13568 |    *) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13569 |     shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13570 |     dynamic_linker="$host_os dld.sl" | 
 | 13571 |     shlibpath_var=SHLIB_PATH | 
 | 13572 |     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
 | 13573 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 13574 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 13575 |     ;; | 
 | 13576 |   esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13577 |   # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
 | 13578 |   postinstall_cmds='chmod 555 $lib' | 
 | 13579 |   ;; | 
 | 13580 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13581 | irix5* | irix6* | nonstopux*) | 
 | 13582 |   case $host_os in | 
 | 13583 |     nonstopux*) version_type=nonstopux ;; | 
 | 13584 |     *) | 
 | 13585 | 	if test "$lt_cv_prog_gnu_ld" = yes; then | 
 | 13586 | 		version_type=linux | 
 | 13587 | 	else | 
 | 13588 | 		version_type=irix | 
 | 13589 | 	fi ;; | 
 | 13590 |   esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13591 |   need_lib_prefix=no | 
 | 13592 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13593 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 13594 |   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] | 13595 |   case $host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13596 |   irix5* | nonstopux*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13597 |     libsuff= shlibsuff= | 
 | 13598 |     ;; | 
 | 13599 |   *) | 
 | 13600 |     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] | 13601 |     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
 | 13602 |       libsuff= shlibsuff= libmagic=32-bit;; | 
 | 13603 |     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
 | 13604 |       libsuff=32 shlibsuff=N32 libmagic=N32;; | 
 | 13605 |     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
 | 13606 |       libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13607 |     *) libsuff= shlibsuff= libmagic=never-match;; | 
 | 13608 |     esac | 
 | 13609 |     ;; | 
 | 13610 |   esac | 
 | 13611 |   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
 | 13612 |   shlibpath_overrides_runpath=no | 
 | 13613 |   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
 | 13614 |   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13615 |   hardcode_into_libs=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13616 |   ;; | 
 | 13617 |  | 
 | 13618 | # No shared lib support for Linux oldld, aout, or coff. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13619 | linux*oldld* | linux*aout* | linux*coff*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13620 |   dynamic_linker=no | 
 | 13621 |   ;; | 
 | 13622 |  | 
 | 13623 | # This must be Linux ELF. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13624 | linux*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13625 |   version_type=linux | 
 | 13626 |   need_lib_prefix=no | 
 | 13627 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13628 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 13629 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13630 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
 | 13631 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 13632 |   shlibpath_overrides_runpath=no | 
 | 13633 |   # This implies no fast_install, which is unacceptable. | 
 | 13634 |   # Some rework will be needed to allow for fast_install | 
 | 13635 |   # before this can be enabled. | 
 | 13636 |   hardcode_into_libs=yes | 
 | 13637 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13638 |   # Append ld.so.conf contents to the search path | 
 | 13639 |   if test -f /etc/ld.so.conf; then | 
 | 13640 |     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` | 
 | 13641 |     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 
 | 13642 |   fi | 
 | 13643 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13644 |   # We used to test for /lib/ld.so.1 and disable shared libraries on | 
 | 13645 |   # powerpc, because MkLinux only supported shared libraries with the | 
 | 13646 |   # GNU dynamic linker.  Since this was broken with cross compilers, | 
 | 13647 |   # most powerpc-linux boxes support dynamic linking these days and | 
 | 13648 |   # people can always --disable-shared, the test was removed, and we | 
 | 13649 |   # assume the GNU/Linux dynamic linker is in use. | 
 | 13650 |   dynamic_linker='GNU/Linux ld.so' | 
 | 13651 |   ;; | 
 | 13652 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13653 | knetbsd*-gnu) | 
 | 13654 |   version_type=linux | 
 | 13655 |   need_lib_prefix=no | 
 | 13656 |   need_version=no | 
 | 13657 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 13658 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 13659 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 13660 |   shlibpath_overrides_runpath=no | 
 | 13661 |   hardcode_into_libs=yes | 
 | 13662 |   dynamic_linker='GNU ld.so' | 
 | 13663 |   ;; | 
 | 13664 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13665 | netbsd*) | 
 | 13666 |   version_type=sunos | 
 | 13667 |   need_lib_prefix=no | 
 | 13668 |   need_version=no | 
 | 13669 |   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13670 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13671 |     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 13672 |     dynamic_linker='NetBSD (a.out) ld.so' | 
 | 13673 |   else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13674 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13675 |     soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13676 |     dynamic_linker='NetBSD ld.elf_so' | 
 | 13677 |   fi | 
 | 13678 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 13679 |   shlibpath_overrides_runpath=yes | 
 | 13680 |   hardcode_into_libs=yes | 
 | 13681 |   ;; | 
 | 13682 |  | 
 | 13683 | newsos6) | 
 | 13684 |   version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13685 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 13686 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 13687 |   shlibpath_overrides_runpath=yes | 
 | 13688 |   ;; | 
 | 13689 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13690 | nto-qnx*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13691 |   version_type=linux | 
 | 13692 |   need_lib_prefix=no | 
 | 13693 |   need_version=no | 
 | 13694 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 13695 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13696 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 13697 |   shlibpath_overrides_runpath=yes | 
 | 13698 |   ;; | 
 | 13699 |  | 
 | 13700 | openbsd*) | 
 | 13701 |   version_type=sunos | 
 | 13702 |   need_lib_prefix=no | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 13703 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13704 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 13705 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 13706 |   shlibpath_var=LD_LIBRARY_PATH | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13707 |   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] | 13708 |     case $host_os in | 
 | 13709 |       openbsd2.[89] | openbsd2.[89].*) | 
 | 13710 | 	shlibpath_overrides_runpath=no | 
 | 13711 | 	;; | 
 | 13712 |       *) | 
 | 13713 | 	shlibpath_overrides_runpath=yes | 
 | 13714 | 	;; | 
 | 13715 |       esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13716 |   else | 
 | 13717 |     shlibpath_overrides_runpath=yes | 
 | 13718 |   fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13719 |   ;; | 
 | 13720 |  | 
 | 13721 | os2*) | 
 | 13722 |   libname_spec='$name' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13723 |   shrext_cmds=".dll" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13724 |   need_lib_prefix=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13725 |   library_names_spec='$libname${shared_ext} $libname.a' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13726 |   dynamic_linker='OS/2 ld.exe' | 
 | 13727 |   shlibpath_var=LIBPATH | 
 | 13728 |   ;; | 
 | 13729 |  | 
 | 13730 | osf3* | osf4* | osf5*) | 
 | 13731 |   version_type=osf | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13732 |   need_lib_prefix=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13733 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13734 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 13735 |   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] | 13736 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 13737 |   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
 | 13738 |   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
 | 13739 |   ;; | 
 | 13740 |  | 
 | 13741 | sco3.2v5*) | 
 | 13742 |   version_type=osf | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13743 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 13744 |   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] | 13745 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 13746 |   ;; | 
 | 13747 |  | 
 | 13748 | solaris*) | 
 | 13749 |   version_type=linux | 
 | 13750 |   need_lib_prefix=no | 
 | 13751 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13752 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 13753 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13754 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 13755 |   shlibpath_overrides_runpath=yes | 
 | 13756 |   hardcode_into_libs=yes | 
 | 13757 |   # ldd complains unless libraries are executable | 
 | 13758 |   postinstall_cmds='chmod +x $lib' | 
 | 13759 |   ;; | 
 | 13760 |  | 
 | 13761 | sunos4*) | 
 | 13762 |   version_type=sunos | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13763 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13764 |   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
 | 13765 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 13766 |   shlibpath_overrides_runpath=yes | 
 | 13767 |   if test "$with_gnu_ld" = yes; then | 
 | 13768 |     need_lib_prefix=no | 
 | 13769 |   fi | 
 | 13770 |   need_version=yes | 
 | 13771 |   ;; | 
 | 13772 |  | 
 | 13773 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 13774 |   version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13775 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 13776 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13777 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 13778 |   case $host_vendor in | 
 | 13779 |     sni) | 
 | 13780 |       shlibpath_overrides_runpath=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13781 |       need_lib_prefix=no | 
 | 13782 |       export_dynamic_flag_spec='${wl}-Blargedynsym' | 
 | 13783 |       runpath_var=LD_RUN_PATH | 
 | 13784 |       ;; | 
 | 13785 |     siemens) | 
 | 13786 |       need_lib_prefix=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13787 |       ;; | 
 | 13788 |     motorola) | 
 | 13789 |       need_lib_prefix=no | 
 | 13790 |       need_version=no | 
 | 13791 |       shlibpath_overrides_runpath=no | 
 | 13792 |       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
 | 13793 |       ;; | 
 | 13794 |   esac | 
 | 13795 |   ;; | 
 | 13796 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13797 | sysv4*MP*) | 
 | 13798 |   if test -d /usr/nec ;then | 
 | 13799 |     version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13800 |     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
 | 13801 |     soname_spec='$libname${shared_ext}.$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13802 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 13803 |   fi | 
 | 13804 |   ;; | 
 | 13805 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13806 | uts4*) | 
 | 13807 |   version_type=linux | 
 | 13808 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 13809 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 13810 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 13811 |   ;; | 
 | 13812 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13813 | *) | 
 | 13814 |   dynamic_linker=no | 
 | 13815 |   ;; | 
 | 13816 | esac | 
 | 13817 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
 | 13818 | echo "${ECHO_T}$dynamic_linker" >&6 | 
 | 13819 | test "$dynamic_linker" = no && can_build_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13820 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13821 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 
 | 13822 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 
 | 13823 | hardcode_action= | 
 | 13824 | if test -n "$hardcode_libdir_flag_spec" || \ | 
 | 13825 |    test -n "$runpath_var" || \ | 
 | 13826 |    test "X$hardcode_automatic" = "Xyes" ; then | 
 | 13827 |  | 
 | 13828 |   # We can hardcode non-existant directories. | 
 | 13829 |   if test "$hardcode_direct" != no && | 
 | 13830 |      # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
 | 13831 |      # have to relink, otherwise we might link with an installed library | 
 | 13832 |      # when we should be linking with a yet-to-be-installed one | 
 | 13833 |      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && | 
 | 13834 |      test "$hardcode_minus_L" != no; then | 
 | 13835 |     # Linking always hardcodes the temporary library directory. | 
 | 13836 |     hardcode_action=relink | 
 | 13837 |   else | 
 | 13838 |     # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
 | 13839 |     hardcode_action=immediate | 
 | 13840 |   fi | 
 | 13841 | else | 
 | 13842 |   # We cannot hardcode anything, or else we can only hardcode existing | 
 | 13843 |   # directories. | 
 | 13844 |   hardcode_action=unsupported | 
 | 13845 | fi | 
 | 13846 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 | 
 | 13847 | echo "${ECHO_T}$hardcode_action" >&6 | 
 | 13848 |  | 
 | 13849 | if test "$hardcode_action" = relink; then | 
 | 13850 |   # Fast installation is not supported | 
 | 13851 |   enable_fast_install=no | 
 | 13852 | elif test "$shlibpath_overrides_runpath" = yes || | 
 | 13853 |      test "$enable_shared" = no; then | 
 | 13854 |   # Fast installation is not necessary | 
 | 13855 |   enable_fast_install=needless | 
 | 13856 | fi | 
 | 13857 |  | 
 | 13858 | striplib= | 
 | 13859 | old_striplib= | 
 | 13860 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | 
 | 13861 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | 
 | 13862 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 
 | 13863 |   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 
 | 13864 |   test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 
 | 13865 |   echo "$as_me:$LINENO: result: yes" >&5 | 
 | 13866 | echo "${ECHO_T}yes" >&6 | 
 | 13867 | else | 
 | 13868 | # FIXME - insert some real tests, host_os isn't really good enough | 
 | 13869 |   case $host_os in | 
 | 13870 |    darwin*) | 
 | 13871 |        if test -n "$STRIP" ; then | 
 | 13872 |          striplib="$STRIP -x" | 
 | 13873 |          echo "$as_me:$LINENO: result: yes" >&5 | 
 | 13874 | echo "${ECHO_T}yes" >&6 | 
 | 13875 |        else | 
 | 13876 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 13877 | echo "${ECHO_T}no" >&6 | 
 | 13878 | fi | 
 | 13879 |        ;; | 
 | 13880 |    *) | 
 | 13881 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 13882 | echo "${ECHO_T}no" >&6 | 
 | 13883 |     ;; | 
 | 13884 |   esac | 
 | 13885 | fi | 
 | 13886 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13887 | if test "x$enable_dlopen" != xyes; then | 
 | 13888 |   enable_dlopen=unknown | 
 | 13889 |   enable_dlopen_self=unknown | 
 | 13890 |   enable_dlopen_self_static=unknown | 
 | 13891 | else | 
 | 13892 |   lt_cv_dlopen=no | 
 | 13893 |   lt_cv_dlopen_libs= | 
 | 13894 |  | 
 | 13895 |   case $host_os in | 
 | 13896 |   beos*) | 
 | 13897 |     lt_cv_dlopen="load_add_on" | 
 | 13898 |     lt_cv_dlopen_libs= | 
 | 13899 |     lt_cv_dlopen_self=yes | 
 | 13900 |     ;; | 
 | 13901 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13902 |   mingw* | pw32*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13903 |     lt_cv_dlopen="LoadLibrary" | 
 | 13904 |     lt_cv_dlopen_libs= | 
 | 13905 |    ;; | 
 | 13906 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13907 |   cygwin*) | 
 | 13908 |     lt_cv_dlopen="dlopen" | 
 | 13909 |     lt_cv_dlopen_libs= | 
 | 13910 |    ;; | 
 | 13911 |  | 
 | 13912 |   darwin*) | 
 | 13913 |   # if libdl is installed we need to link against it | 
 | 13914 |     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
 | 13915 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
 | 13916 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
 | 13917 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 13918 | else | 
 | 13919 |   ac_check_lib_save_LIBS=$LIBS | 
 | 13920 | LIBS="-ldl  $LIBS" | 
 | 13921 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13922 | /* confdefs.h.  */ | 
 | 13923 | _ACEOF | 
 | 13924 | cat confdefs.h >>conftest.$ac_ext | 
 | 13925 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 13926 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13927 |  | 
 | 13928 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 13929 | #ifdef __cplusplus | 
 | 13930 | extern "C" | 
 | 13931 | #endif | 
 | 13932 | /* We use char because int might match the return type of a gcc2 | 
 | 13933 |    builtin and then its argument prototype would still apply.  */ | 
 | 13934 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13935 | int | 
 | 13936 | main () | 
 | 13937 | { | 
 | 13938 | dlopen (); | 
 | 13939 |   ; | 
 | 13940 |   return 0; | 
 | 13941 | } | 
 | 13942 | _ACEOF | 
 | 13943 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 13944 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13945 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13946 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13947 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 13948 |   rm -f conftest.er1 | 
 | 13949 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13950 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13951 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13952 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 13953 | 			 || test ! -s conftest.err' | 
 | 13954 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 13955 |   (eval $ac_try) 2>&5 | 
 | 13956 |   ac_status=$? | 
 | 13957 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13958 |   (exit $ac_status); }; } && | 
 | 13959 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13960 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 13961 |   (eval $ac_try) 2>&5 | 
 | 13962 |   ac_status=$? | 
 | 13963 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13964 |   (exit $ac_status); }; }; then | 
 | 13965 |   ac_cv_lib_dl_dlopen=yes | 
 | 13966 | else | 
 | 13967 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13968 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 13969 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13970 | ac_cv_lib_dl_dlopen=no | 
 | 13971 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13972 | rm -f conftest.err conftest.$ac_objext \ | 
 | 13973 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13974 | LIBS=$ac_check_lib_save_LIBS | 
 | 13975 | fi | 
 | 13976 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 13977 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
 | 13978 | if test $ac_cv_lib_dl_dlopen = yes; then | 
 | 13979 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
 | 13980 | else | 
 | 13981 |  | 
 | 13982 |     lt_cv_dlopen="dyld" | 
 | 13983 |     lt_cv_dlopen_libs= | 
 | 13984 |     lt_cv_dlopen_self=yes | 
 | 13985 |  | 
 | 13986 | fi | 
 | 13987 |  | 
 | 13988 |    ;; | 
 | 13989 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13990 |   *) | 
 | 13991 |     echo "$as_me:$LINENO: checking for shl_load" >&5 | 
 | 13992 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | 
 | 13993 | if test "${ac_cv_func_shl_load+set}" = set; then | 
 | 13994 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 13995 | else | 
 | 13996 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13997 | /* confdefs.h.  */ | 
 | 13998 | _ACEOF | 
 | 13999 | cat confdefs.h >>conftest.$ac_ext | 
 | 14000 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 14001 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14002 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | 
 | 14003 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 14004 | #define shl_load innocuous_shl_load | 
 | 14005 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14006 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14007 |     which can conflict with char shl_load (); below. | 
 | 14008 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 14009 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14010 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14011 | #ifdef __STDC__ | 
 | 14012 | # include <limits.h> | 
 | 14013 | #else | 
 | 14014 | # include <assert.h> | 
 | 14015 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14016 |  | 
 | 14017 | #undef shl_load | 
 | 14018 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14019 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 14020 | #ifdef __cplusplus | 
 | 14021 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14022 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14023 | #endif | 
 | 14024 | /* We use char because int might match the return type of a gcc2 | 
 | 14025 |    builtin and then its argument prototype would still apply.  */ | 
 | 14026 | char shl_load (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14027 | /* The GNU C library defines this for functions which it implements | 
 | 14028 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 14029 |     something starting with __ and the normal name is an alias.  */ | 
 | 14030 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | 
 | 14031 | choke me | 
 | 14032 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14033 | char (*f) () = shl_load; | 
 | 14034 | #endif | 
 | 14035 | #ifdef __cplusplus | 
 | 14036 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14037 | #endif | 
 | 14038 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14039 | int | 
 | 14040 | main () | 
 | 14041 | { | 
 | 14042 | return f != shl_load; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14043 |   ; | 
 | 14044 |   return 0; | 
 | 14045 | } | 
 | 14046 | _ACEOF | 
 | 14047 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 14048 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14049 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14050 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14051 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 14052 |   rm -f conftest.er1 | 
 | 14053 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14054 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14055 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14056 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 14057 | 			 || test ! -s conftest.err' | 
 | 14058 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 14059 |   (eval $ac_try) 2>&5 | 
 | 14060 |   ac_status=$? | 
 | 14061 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14062 |   (exit $ac_status); }; } && | 
 | 14063 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14064 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 14065 |   (eval $ac_try) 2>&5 | 
 | 14066 |   ac_status=$? | 
 | 14067 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14068 |   (exit $ac_status); }; }; then | 
 | 14069 |   ac_cv_func_shl_load=yes | 
 | 14070 | else | 
 | 14071 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14072 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 14073 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14074 | ac_cv_func_shl_load=no | 
 | 14075 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14076 | rm -f conftest.err conftest.$ac_objext \ | 
 | 14077 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14078 | fi | 
 | 14079 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | 
 | 14080 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | 
 | 14081 | if test $ac_cv_func_shl_load = yes; then | 
 | 14082 |   lt_cv_dlopen="shl_load" | 
 | 14083 | else | 
 | 14084 |   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | 
 | 14085 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | 
 | 14086 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | 
 | 14087 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 14088 | else | 
 | 14089 |   ac_check_lib_save_LIBS=$LIBS | 
 | 14090 | LIBS="-ldld  $LIBS" | 
 | 14091 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14092 | /* confdefs.h.  */ | 
 | 14093 | _ACEOF | 
 | 14094 | cat confdefs.h >>conftest.$ac_ext | 
 | 14095 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 14096 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14097 |  | 
 | 14098 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 14099 | #ifdef __cplusplus | 
 | 14100 | extern "C" | 
 | 14101 | #endif | 
 | 14102 | /* We use char because int might match the return type of a gcc2 | 
 | 14103 |    builtin and then its argument prototype would still apply.  */ | 
 | 14104 | char shl_load (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14105 | int | 
 | 14106 | main () | 
 | 14107 | { | 
 | 14108 | shl_load (); | 
 | 14109 |   ; | 
 | 14110 |   return 0; | 
 | 14111 | } | 
 | 14112 | _ACEOF | 
 | 14113 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 14114 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14115 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14116 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14117 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 14118 |   rm -f conftest.er1 | 
 | 14119 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14120 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14121 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14122 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 14123 | 			 || test ! -s conftest.err' | 
 | 14124 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 14125 |   (eval $ac_try) 2>&5 | 
 | 14126 |   ac_status=$? | 
 | 14127 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14128 |   (exit $ac_status); }; } && | 
 | 14129 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14130 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 14131 |   (eval $ac_try) 2>&5 | 
 | 14132 |   ac_status=$? | 
 | 14133 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14134 |   (exit $ac_status); }; }; then | 
 | 14135 |   ac_cv_lib_dld_shl_load=yes | 
 | 14136 | else | 
 | 14137 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14138 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 14139 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14140 | ac_cv_lib_dld_shl_load=no | 
 | 14141 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14142 | rm -f conftest.err conftest.$ac_objext \ | 
 | 14143 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14144 | LIBS=$ac_check_lib_save_LIBS | 
 | 14145 | fi | 
 | 14146 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | 
 | 14147 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | 
 | 14148 | if test $ac_cv_lib_dld_shl_load = yes; then | 
 | 14149 |   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | 
 | 14150 | else | 
 | 14151 |   echo "$as_me:$LINENO: checking for dlopen" >&5 | 
 | 14152 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | 
 | 14153 | if test "${ac_cv_func_dlopen+set}" = set; then | 
 | 14154 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 14155 | else | 
 | 14156 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14157 | /* confdefs.h.  */ | 
 | 14158 | _ACEOF | 
 | 14159 | cat confdefs.h >>conftest.$ac_ext | 
 | 14160 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 14161 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14162 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | 
 | 14163 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 14164 | #define dlopen innocuous_dlopen | 
 | 14165 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14166 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14167 |     which can conflict with char dlopen (); below. | 
 | 14168 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 14169 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14170 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14171 | #ifdef __STDC__ | 
 | 14172 | # include <limits.h> | 
 | 14173 | #else | 
 | 14174 | # include <assert.h> | 
 | 14175 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14176 |  | 
 | 14177 | #undef dlopen | 
 | 14178 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14179 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 14180 | #ifdef __cplusplus | 
 | 14181 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14182 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14183 | #endif | 
 | 14184 | /* We use char because int might match the return type of a gcc2 | 
 | 14185 |    builtin and then its argument prototype would still apply.  */ | 
 | 14186 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14187 | /* The GNU C library defines this for functions which it implements | 
 | 14188 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 14189 |     something starting with __ and the normal name is an alias.  */ | 
 | 14190 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | 
 | 14191 | choke me | 
 | 14192 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14193 | char (*f) () = dlopen; | 
 | 14194 | #endif | 
 | 14195 | #ifdef __cplusplus | 
 | 14196 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14197 | #endif | 
 | 14198 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14199 | int | 
 | 14200 | main () | 
 | 14201 | { | 
 | 14202 | return f != dlopen; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14203 |   ; | 
 | 14204 |   return 0; | 
 | 14205 | } | 
 | 14206 | _ACEOF | 
 | 14207 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 14208 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14209 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14210 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14211 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 14212 |   rm -f conftest.er1 | 
 | 14213 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14214 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14215 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14216 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 14217 | 			 || test ! -s conftest.err' | 
 | 14218 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 14219 |   (eval $ac_try) 2>&5 | 
 | 14220 |   ac_status=$? | 
 | 14221 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14222 |   (exit $ac_status); }; } && | 
 | 14223 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14224 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 14225 |   (eval $ac_try) 2>&5 | 
 | 14226 |   ac_status=$? | 
 | 14227 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14228 |   (exit $ac_status); }; }; then | 
 | 14229 |   ac_cv_func_dlopen=yes | 
 | 14230 | else | 
 | 14231 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14232 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 14233 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14234 | ac_cv_func_dlopen=no | 
 | 14235 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14236 | rm -f conftest.err conftest.$ac_objext \ | 
 | 14237 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14238 | fi | 
 | 14239 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | 
 | 14240 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | 
 | 14241 | if test $ac_cv_func_dlopen = yes; then | 
 | 14242 |   lt_cv_dlopen="dlopen" | 
 | 14243 | else | 
 | 14244 |   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
 | 14245 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
 | 14246 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
 | 14247 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 14248 | else | 
 | 14249 |   ac_check_lib_save_LIBS=$LIBS | 
 | 14250 | LIBS="-ldl  $LIBS" | 
 | 14251 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14252 | /* confdefs.h.  */ | 
 | 14253 | _ACEOF | 
 | 14254 | cat confdefs.h >>conftest.$ac_ext | 
 | 14255 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 14256 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14257 |  | 
 | 14258 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 14259 | #ifdef __cplusplus | 
 | 14260 | extern "C" | 
 | 14261 | #endif | 
 | 14262 | /* We use char because int might match the return type of a gcc2 | 
 | 14263 |    builtin and then its argument prototype would still apply.  */ | 
 | 14264 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14265 | int | 
 | 14266 | main () | 
 | 14267 | { | 
 | 14268 | dlopen (); | 
 | 14269 |   ; | 
 | 14270 |   return 0; | 
 | 14271 | } | 
 | 14272 | _ACEOF | 
 | 14273 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 14274 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14275 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14276 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14277 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 14278 |   rm -f conftest.er1 | 
 | 14279 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14280 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14281 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14282 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 14283 | 			 || test ! -s conftest.err' | 
 | 14284 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 14285 |   (eval $ac_try) 2>&5 | 
 | 14286 |   ac_status=$? | 
 | 14287 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14288 |   (exit $ac_status); }; } && | 
 | 14289 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14290 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 14291 |   (eval $ac_try) 2>&5 | 
 | 14292 |   ac_status=$? | 
 | 14293 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14294 |   (exit $ac_status); }; }; then | 
 | 14295 |   ac_cv_lib_dl_dlopen=yes | 
 | 14296 | else | 
 | 14297 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14298 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 14299 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14300 | ac_cv_lib_dl_dlopen=no | 
 | 14301 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14302 | rm -f conftest.err conftest.$ac_objext \ | 
 | 14303 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14304 | LIBS=$ac_check_lib_save_LIBS | 
 | 14305 | fi | 
 | 14306 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 14307 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
 | 14308 | if test $ac_cv_lib_dl_dlopen = yes; then | 
 | 14309 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
 | 14310 | else | 
 | 14311 |   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | 
 | 14312 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | 
 | 14313 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | 
 | 14314 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 14315 | else | 
 | 14316 |   ac_check_lib_save_LIBS=$LIBS | 
 | 14317 | LIBS="-lsvld  $LIBS" | 
 | 14318 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14319 | /* confdefs.h.  */ | 
 | 14320 | _ACEOF | 
 | 14321 | cat confdefs.h >>conftest.$ac_ext | 
 | 14322 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 14323 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14324 |  | 
 | 14325 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 14326 | #ifdef __cplusplus | 
 | 14327 | extern "C" | 
 | 14328 | #endif | 
 | 14329 | /* We use char because int might match the return type of a gcc2 | 
 | 14330 |    builtin and then its argument prototype would still apply.  */ | 
 | 14331 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14332 | int | 
 | 14333 | main () | 
 | 14334 | { | 
 | 14335 | dlopen (); | 
 | 14336 |   ; | 
 | 14337 |   return 0; | 
 | 14338 | } | 
 | 14339 | _ACEOF | 
 | 14340 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 14341 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14342 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14343 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14344 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 14345 |   rm -f conftest.er1 | 
 | 14346 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14347 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14348 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14349 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 14350 | 			 || test ! -s conftest.err' | 
 | 14351 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 14352 |   (eval $ac_try) 2>&5 | 
 | 14353 |   ac_status=$? | 
 | 14354 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14355 |   (exit $ac_status); }; } && | 
 | 14356 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14357 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 14358 |   (eval $ac_try) 2>&5 | 
 | 14359 |   ac_status=$? | 
 | 14360 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14361 |   (exit $ac_status); }; }; then | 
 | 14362 |   ac_cv_lib_svld_dlopen=yes | 
 | 14363 | else | 
 | 14364 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14365 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 14366 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14367 | ac_cv_lib_svld_dlopen=no | 
 | 14368 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14369 | rm -f conftest.err conftest.$ac_objext \ | 
 | 14370 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14371 | LIBS=$ac_check_lib_save_LIBS | 
 | 14372 | fi | 
 | 14373 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | 
 | 14374 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | 
 | 14375 | if test $ac_cv_lib_svld_dlopen = yes; then | 
 | 14376 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | 
 | 14377 | else | 
 | 14378 |   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | 
 | 14379 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | 
 | 14380 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | 
 | 14381 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 14382 | else | 
 | 14383 |   ac_check_lib_save_LIBS=$LIBS | 
 | 14384 | LIBS="-ldld  $LIBS" | 
 | 14385 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14386 | /* confdefs.h.  */ | 
 | 14387 | _ACEOF | 
 | 14388 | cat confdefs.h >>conftest.$ac_ext | 
 | 14389 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 14390 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14391 |  | 
 | 14392 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 14393 | #ifdef __cplusplus | 
 | 14394 | extern "C" | 
 | 14395 | #endif | 
 | 14396 | /* We use char because int might match the return type of a gcc2 | 
 | 14397 |    builtin and then its argument prototype would still apply.  */ | 
 | 14398 | char dld_link (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14399 | int | 
 | 14400 | main () | 
 | 14401 | { | 
 | 14402 | dld_link (); | 
 | 14403 |   ; | 
 | 14404 |   return 0; | 
 | 14405 | } | 
 | 14406 | _ACEOF | 
 | 14407 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 14408 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14409 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14410 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14411 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 14412 |   rm -f conftest.er1 | 
 | 14413 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14414 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14415 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14416 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 14417 | 			 || test ! -s conftest.err' | 
 | 14418 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 14419 |   (eval $ac_try) 2>&5 | 
 | 14420 |   ac_status=$? | 
 | 14421 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14422 |   (exit $ac_status); }; } && | 
 | 14423 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14424 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 14425 |   (eval $ac_try) 2>&5 | 
 | 14426 |   ac_status=$? | 
 | 14427 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14428 |   (exit $ac_status); }; }; then | 
 | 14429 |   ac_cv_lib_dld_dld_link=yes | 
 | 14430 | else | 
 | 14431 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14432 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 14433 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14434 | ac_cv_lib_dld_dld_link=no | 
 | 14435 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14436 | rm -f conftest.err conftest.$ac_objext \ | 
 | 14437 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14438 | LIBS=$ac_check_lib_save_LIBS | 
 | 14439 | fi | 
 | 14440 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | 
 | 14441 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | 
 | 14442 | if test $ac_cv_lib_dld_dld_link = yes; then | 
 | 14443 |   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | 
 | 14444 | fi | 
 | 14445 |  | 
 | 14446 |  | 
 | 14447 | fi | 
 | 14448 |  | 
 | 14449 |  | 
 | 14450 | fi | 
 | 14451 |  | 
 | 14452 |  | 
 | 14453 | fi | 
 | 14454 |  | 
 | 14455 |  | 
 | 14456 | fi | 
 | 14457 |  | 
 | 14458 |  | 
 | 14459 | fi | 
 | 14460 |  | 
 | 14461 |     ;; | 
 | 14462 |   esac | 
 | 14463 |  | 
 | 14464 |   if test "x$lt_cv_dlopen" != xno; then | 
 | 14465 |     enable_dlopen=yes | 
 | 14466 |   else | 
 | 14467 |     enable_dlopen=no | 
 | 14468 |   fi | 
 | 14469 |  | 
 | 14470 |   case $lt_cv_dlopen in | 
 | 14471 |   dlopen) | 
 | 14472 |     save_CPPFLAGS="$CPPFLAGS" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14473 |     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] | 14474 |  | 
 | 14475 |     save_LDFLAGS="$LDFLAGS" | 
 | 14476 |     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | 
 | 14477 |  | 
 | 14478 |     save_LIBS="$LIBS" | 
 | 14479 |     LIBS="$lt_cv_dlopen_libs $LIBS" | 
 | 14480 |  | 
 | 14481 |     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | 
 | 14482 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | 
 | 14483 | if test "${lt_cv_dlopen_self+set}" = set; then | 
 | 14484 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 14485 | else | 
 | 14486 |   	  if test "$cross_compiling" = yes; then : | 
 | 14487 |   lt_cv_dlopen_self=cross | 
 | 14488 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14489 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14490 |   lt_status=$lt_dlunknown | 
 | 14491 |   cat > conftest.$ac_ext <<EOF | 
| Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 14492 | #line 14492 "configure" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14493 | #include "confdefs.h" | 
 | 14494 |  | 
 | 14495 | #if HAVE_DLFCN_H | 
 | 14496 | #include <dlfcn.h> | 
 | 14497 | #endif | 
 | 14498 |  | 
 | 14499 | #include <stdio.h> | 
 | 14500 |  | 
 | 14501 | #ifdef RTLD_GLOBAL | 
 | 14502 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 14503 | #else | 
 | 14504 | #  ifdef DL_GLOBAL | 
 | 14505 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 14506 | #  else | 
 | 14507 | #    define LT_DLGLOBAL		0 | 
 | 14508 | #  endif | 
 | 14509 | #endif | 
 | 14510 |  | 
 | 14511 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 14512 |    find out it does not work in some platform. */ | 
 | 14513 | #ifndef LT_DLLAZY_OR_NOW | 
 | 14514 | #  ifdef RTLD_LAZY | 
 | 14515 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 14516 | #  else | 
 | 14517 | #    ifdef DL_LAZY | 
 | 14518 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 14519 | #    else | 
 | 14520 | #      ifdef RTLD_NOW | 
 | 14521 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 14522 | #      else | 
 | 14523 | #        ifdef DL_NOW | 
 | 14524 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 14525 | #        else | 
 | 14526 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 14527 | #        endif | 
 | 14528 | #      endif | 
 | 14529 | #    endif | 
 | 14530 | #  endif | 
 | 14531 | #endif | 
 | 14532 |  | 
 | 14533 | #ifdef __cplusplus | 
 | 14534 | extern "C" void exit (int); | 
 | 14535 | #endif | 
 | 14536 |  | 
 | 14537 | void fnord() { int i=42;} | 
 | 14538 | int main () | 
 | 14539 | { | 
 | 14540 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 14541 |   int status = $lt_dlunknown; | 
 | 14542 |  | 
 | 14543 |   if (self) | 
 | 14544 |     { | 
 | 14545 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
 | 14546 |       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
 | 14547 |       /* dlclose (self); */ | 
 | 14548 |     } | 
 | 14549 |  | 
 | 14550 |     exit (status); | 
 | 14551 | } | 
 | 14552 | EOF | 
 | 14553 |   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 14554 |   (eval $ac_link) 2>&5 | 
 | 14555 |   ac_status=$? | 
 | 14556 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14557 |   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
 | 14558 |     (./conftest; exit; ) 2>/dev/null | 
 | 14559 |     lt_status=$? | 
 | 14560 |     case x$lt_status in | 
 | 14561 |       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | 
 | 14562 |       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | 
 | 14563 |       x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | 
 | 14564 |     esac | 
 | 14565 |   else : | 
 | 14566 |     # compilation failed | 
 | 14567 |     lt_cv_dlopen_self=no | 
 | 14568 |   fi | 
 | 14569 | fi | 
 | 14570 | rm -fr conftest* | 
 | 14571 |  | 
 | 14572 |  | 
 | 14573 | fi | 
 | 14574 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | 
 | 14575 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | 
 | 14576 |  | 
 | 14577 |     if test "x$lt_cv_dlopen_self" = xyes; then | 
 | 14578 |       LDFLAGS="$LDFLAGS $link_static_flag" | 
 | 14579 |       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | 
 | 14580 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | 
 | 14581 | if test "${lt_cv_dlopen_self_static+set}" = set; then | 
 | 14582 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 14583 | else | 
 | 14584 |   	  if test "$cross_compiling" = yes; then : | 
 | 14585 |   lt_cv_dlopen_self_static=cross | 
 | 14586 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14587 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14588 |   lt_status=$lt_dlunknown | 
 | 14589 |   cat > conftest.$ac_ext <<EOF | 
| Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 14590 | #line 14590 "configure" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14591 | #include "confdefs.h" | 
 | 14592 |  | 
 | 14593 | #if HAVE_DLFCN_H | 
 | 14594 | #include <dlfcn.h> | 
 | 14595 | #endif | 
 | 14596 |  | 
 | 14597 | #include <stdio.h> | 
 | 14598 |  | 
 | 14599 | #ifdef RTLD_GLOBAL | 
 | 14600 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 14601 | #else | 
 | 14602 | #  ifdef DL_GLOBAL | 
 | 14603 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 14604 | #  else | 
 | 14605 | #    define LT_DLGLOBAL		0 | 
 | 14606 | #  endif | 
 | 14607 | #endif | 
 | 14608 |  | 
 | 14609 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 14610 |    find out it does not work in some platform. */ | 
 | 14611 | #ifndef LT_DLLAZY_OR_NOW | 
 | 14612 | #  ifdef RTLD_LAZY | 
 | 14613 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 14614 | #  else | 
 | 14615 | #    ifdef DL_LAZY | 
 | 14616 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 14617 | #    else | 
 | 14618 | #      ifdef RTLD_NOW | 
 | 14619 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 14620 | #      else | 
 | 14621 | #        ifdef DL_NOW | 
 | 14622 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 14623 | #        else | 
 | 14624 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 14625 | #        endif | 
 | 14626 | #      endif | 
 | 14627 | #    endif | 
 | 14628 | #  endif | 
 | 14629 | #endif | 
 | 14630 |  | 
 | 14631 | #ifdef __cplusplus | 
 | 14632 | extern "C" void exit (int); | 
 | 14633 | #endif | 
 | 14634 |  | 
 | 14635 | void fnord() { int i=42;} | 
 | 14636 | int main () | 
 | 14637 | { | 
 | 14638 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 14639 |   int status = $lt_dlunknown; | 
 | 14640 |  | 
 | 14641 |   if (self) | 
 | 14642 |     { | 
 | 14643 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
 | 14644 |       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
 | 14645 |       /* dlclose (self); */ | 
 | 14646 |     } | 
 | 14647 |  | 
 | 14648 |     exit (status); | 
 | 14649 | } | 
 | 14650 | EOF | 
 | 14651 |   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 14652 |   (eval $ac_link) 2>&5 | 
 | 14653 |   ac_status=$? | 
 | 14654 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14655 |   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
 | 14656 |     (./conftest; exit; ) 2>/dev/null | 
 | 14657 |     lt_status=$? | 
 | 14658 |     case x$lt_status in | 
 | 14659 |       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | 
 | 14660 |       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | 
 | 14661 |       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | 
 | 14662 |     esac | 
 | 14663 |   else : | 
 | 14664 |     # compilation failed | 
 | 14665 |     lt_cv_dlopen_self_static=no | 
 | 14666 |   fi | 
 | 14667 | fi | 
 | 14668 | rm -fr conftest* | 
 | 14669 |  | 
 | 14670 |  | 
 | 14671 | fi | 
 | 14672 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | 
 | 14673 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | 
 | 14674 |     fi | 
 | 14675 |  | 
 | 14676 |     CPPFLAGS="$save_CPPFLAGS" | 
 | 14677 |     LDFLAGS="$save_LDFLAGS" | 
 | 14678 |     LIBS="$save_LIBS" | 
 | 14679 |     ;; | 
 | 14680 |   esac | 
 | 14681 |  | 
 | 14682 |   case $lt_cv_dlopen_self in | 
 | 14683 |   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | 
 | 14684 |   *) enable_dlopen_self=unknown ;; | 
 | 14685 |   esac | 
 | 14686 |  | 
 | 14687 |   case $lt_cv_dlopen_self_static in | 
 | 14688 |   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | 
 | 14689 |   *) enable_dlopen_self_static=unknown ;; | 
 | 14690 |   esac | 
 | 14691 | fi | 
 | 14692 |  | 
 | 14693 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14694 | # Report which librarie types wil actually be built | 
 | 14695 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | 
 | 14696 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | 
 | 14697 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | 
 | 14698 | echo "${ECHO_T}$can_build_shared" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14699 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14700 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | 
 | 14701 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | 
 | 14702 | test "$can_build_shared" = "no" && enable_shared=no | 
 | 14703 |  | 
 | 14704 | # On AIX, shared libraries and static libraries use the same namespace, and | 
 | 14705 | # are all built from PIC. | 
 | 14706 | case "$host_os" in | 
 | 14707 | aix3*) | 
 | 14708 |   test "$enable_shared" = yes && enable_static=no | 
 | 14709 |   if test -n "$RANLIB"; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14710 |     archive_cmds="$archive_cmds~\$RANLIB \$lib" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14711 |     postinstall_cmds='$RANLIB $lib' | 
 | 14712 |   fi | 
 | 14713 |   ;; | 
 | 14714 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14715 | aix4* | aix5*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14716 |   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | 
 | 14717 |     test "$enable_shared" = yes && enable_static=no | 
 | 14718 |   fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14719 |     ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14720 | esac | 
 | 14721 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | 
 | 14722 | echo "${ECHO_T}$enable_shared" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14723 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14724 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | 
 | 14725 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | 
 | 14726 | # Make sure either enable_shared or enable_static is yes. | 
 | 14727 | test "$enable_shared" = yes || enable_static=yes | 
 | 14728 | echo "$as_me:$LINENO: result: $enable_static" >&5 | 
 | 14729 | echo "${ECHO_T}$enable_static" >&6 | 
 | 14730 |  | 
 | 14731 | # The else clause should only fire when bootstrapping the | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14732 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
 | 14733 | # with your package, and you will get complaints that there are | 
 | 14734 | # no rules to generate ltmain.sh. | 
 | 14735 | if test -f "$ltmain"; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14736 |   # See if we are running on zsh, and set the options which allow our commands through | 
 | 14737 |   # without removal of \ escapes. | 
 | 14738 |   if test -n "${ZSH_VERSION+set}" ; then | 
 | 14739 |     setopt NO_GLOB_SUBST | 
 | 14740 |   fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14741 |   # Now quote all the things that may contain metacharacters while being | 
 | 14742 |   # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
 | 14743 |   # variables and quote the copies for generation of the libtool script. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14744 |   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | 
 | 14745 |     SED SHELL STRIP \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14746 |     libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
 | 14747 |     old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
 | 14748 |     deplibs_check_method reload_flag reload_cmds need_locks \ | 
 | 14749 |     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
 | 14750 |     lt_cv_sys_global_symbol_to_c_name_address \ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14751 |     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14752 |     old_postinstall_cmds old_postuninstall_cmds \ | 
 | 14753 |     compiler \ | 
 | 14754 |     CC \ | 
 | 14755 |     LD \ | 
 | 14756 |     lt_prog_compiler_wl \ | 
 | 14757 |     lt_prog_compiler_pic \ | 
 | 14758 |     lt_prog_compiler_static \ | 
 | 14759 |     lt_prog_compiler_no_builtin_flag \ | 
 | 14760 |     export_dynamic_flag_spec \ | 
 | 14761 |     thread_safe_flag_spec \ | 
 | 14762 |     whole_archive_flag_spec \ | 
 | 14763 |     enable_shared_with_static_runtimes \ | 
 | 14764 |     old_archive_cmds \ | 
 | 14765 |     old_archive_from_new_cmds \ | 
 | 14766 |     predep_objects \ | 
 | 14767 |     postdep_objects \ | 
 | 14768 |     predeps \ | 
 | 14769 |     postdeps \ | 
 | 14770 |     compiler_lib_search_path \ | 
 | 14771 |     archive_cmds \ | 
 | 14772 |     archive_expsym_cmds \ | 
 | 14773 |     postinstall_cmds \ | 
 | 14774 |     postuninstall_cmds \ | 
 | 14775 |     old_archive_from_expsyms_cmds \ | 
 | 14776 |     allow_undefined_flag \ | 
 | 14777 |     no_undefined_flag \ | 
 | 14778 |     export_symbols_cmds \ | 
 | 14779 |     hardcode_libdir_flag_spec \ | 
 | 14780 |     hardcode_libdir_flag_spec_ld \ | 
 | 14781 |     hardcode_libdir_separator \ | 
 | 14782 |     hardcode_automatic \ | 
 | 14783 |     module_cmds \ | 
 | 14784 |     module_expsym_cmds \ | 
 | 14785 |     lt_cv_prog_compiler_c_o \ | 
 | 14786 |     exclude_expsyms \ | 
 | 14787 |     include_expsyms; do | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14788 |  | 
 | 14789 |     case $var in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14790 |     old_archive_cmds | \ | 
 | 14791 |     old_archive_from_new_cmds | \ | 
 | 14792 |     archive_cmds | \ | 
 | 14793 |     archive_expsym_cmds | \ | 
 | 14794 |     module_cmds | \ | 
 | 14795 |     module_expsym_cmds | \ | 
 | 14796 |     old_archive_from_expsyms_cmds | \ | 
 | 14797 |     export_symbols_cmds | \ | 
 | 14798 |     extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14799 |     postinstall_cmds | postuninstall_cmds | \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14800 |     old_postinstall_cmds | old_postuninstall_cmds | \ | 
 | 14801 |     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14802 |       # Double-quote double-evaled strings. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14803 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14804 |       ;; | 
 | 14805 |     *) | 
 | 14806 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
 | 14807 |       ;; | 
 | 14808 |     esac | 
 | 14809 |   done | 
 | 14810 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14811 |   case $lt_echo in | 
 | 14812 |   *'\$0 --fallback-echo"') | 
 | 14813 |     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
 | 14814 |     ;; | 
 | 14815 |   esac | 
 | 14816 |  | 
 | 14817 | cfgfile="${ofile}T" | 
 | 14818 |   trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | 
 | 14819 |   $rm -f "$cfgfile" | 
 | 14820 |   { echo "$as_me:$LINENO: creating $ofile" >&5 | 
 | 14821 | echo "$as_me: creating $ofile" >&6;} | 
 | 14822 |  | 
 | 14823 |   cat <<__EOF__ >> "$cfgfile" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14824 | #! $SHELL | 
 | 14825 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14826 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14827 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | 
 | 14828 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | 
 | 14829 | # | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14830 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 | 
 | 14831 | # Free Software Foundation, Inc. | 
 | 14832 | # | 
 | 14833 | # This file is part of GNU Libtool: | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14834 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | 
 | 14835 | # | 
 | 14836 | # This program is free software; you can redistribute it and/or modify | 
 | 14837 | # it under the terms of the GNU General Public License as published by | 
 | 14838 | # the Free Software Foundation; either version 2 of the License, or | 
 | 14839 | # (at your option) any later version. | 
 | 14840 | # | 
 | 14841 | # This program is distributed in the hope that it will be useful, but | 
 | 14842 | # WITHOUT ANY WARRANTY; without even the implied warranty of | 
 | 14843 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | 
 | 14844 | # General Public License for more details. | 
 | 14845 | # | 
 | 14846 | # You should have received a copy of the GNU General Public License | 
 | 14847 | # along with this program; if not, write to the Free Software | 
 | 14848 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 
 | 14849 | # | 
 | 14850 | # As a special exception to the GNU General Public License, if you | 
 | 14851 | # distribute this file as part of a program that contains a | 
 | 14852 | # configuration script generated by Autoconf, you may include it under | 
 | 14853 | # the same distribution terms that you use for the rest of that program. | 
 | 14854 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14855 | # A sed program that does not truncate output. | 
 | 14856 | SED=$lt_SED | 
 | 14857 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14858 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14859 | Xsed="$SED -e s/^X//" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14860 |  | 
 | 14861 | # The HP-UX ksh and POSIX shell print the target directory to stdout | 
 | 14862 | # if CDPATH is set. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14863 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14864 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14865 | # The names of the tagged configurations supported by this script. | 
 | 14866 | available_tags= | 
 | 14867 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14868 | # ### BEGIN LIBTOOL CONFIG | 
 | 14869 |  | 
 | 14870 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
 | 14871 |  | 
 | 14872 | # Shell to use when invoking shell scripts. | 
 | 14873 | SHELL=$lt_SHELL | 
 | 14874 |  | 
 | 14875 | # Whether or not to build shared libraries. | 
 | 14876 | build_libtool_libs=$enable_shared | 
 | 14877 |  | 
 | 14878 | # Whether or not to build static libraries. | 
 | 14879 | build_old_libs=$enable_static | 
 | 14880 |  | 
 | 14881 | # Whether or not to add -lc for building shared libraries. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14882 | build_libtool_need_lc=$archive_cmds_need_lc | 
 | 14883 |  | 
 | 14884 | # Whether or not to disallow shared libs when runtime libs are static | 
 | 14885 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14886 |  | 
 | 14887 | # Whether or not to optimize for fast installation. | 
 | 14888 | fast_install=$enable_fast_install | 
 | 14889 |  | 
 | 14890 | # The host system. | 
 | 14891 | host_alias=$host_alias | 
 | 14892 | host=$host | 
 | 14893 |  | 
 | 14894 | # An echo program that does not interpret backslashes. | 
 | 14895 | echo=$lt_echo | 
 | 14896 |  | 
 | 14897 | # The archiver. | 
 | 14898 | AR=$lt_AR | 
 | 14899 | AR_FLAGS=$lt_AR_FLAGS | 
 | 14900 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14901 | # A C compiler. | 
 | 14902 | LTCC=$lt_LTCC | 
 | 14903 |  | 
 | 14904 | # A language-specific compiler. | 
 | 14905 | CC=$lt_compiler | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14906 |  | 
 | 14907 | # Is the compiler the GNU C compiler? | 
 | 14908 | with_gcc=$GCC | 
 | 14909 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14910 | # An ERE matcher. | 
 | 14911 | EGREP=$lt_EGREP | 
 | 14912 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14913 | # The linker used to build libraries. | 
 | 14914 | LD=$lt_LD | 
 | 14915 |  | 
 | 14916 | # Whether we need hard or soft links. | 
 | 14917 | LN_S=$lt_LN_S | 
 | 14918 |  | 
 | 14919 | # A BSD-compatible nm program. | 
 | 14920 | NM=$lt_NM | 
 | 14921 |  | 
 | 14922 | # A symbol stripping program | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14923 | STRIP=$lt_STRIP | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14924 |  | 
 | 14925 | # Used to examine libraries when file_magic_cmd begins "file" | 
 | 14926 | MAGIC_CMD=$MAGIC_CMD | 
 | 14927 |  | 
 | 14928 | # Used on cygwin: DLL creation program. | 
 | 14929 | DLLTOOL="$DLLTOOL" | 
 | 14930 |  | 
 | 14931 | # Used on cygwin: object dumper. | 
 | 14932 | OBJDUMP="$OBJDUMP" | 
 | 14933 |  | 
 | 14934 | # Used on cygwin: assembler. | 
 | 14935 | AS="$AS" | 
 | 14936 |  | 
 | 14937 | # The name of the directory that contains temporary libtool files. | 
 | 14938 | objdir=$objdir | 
 | 14939 |  | 
 | 14940 | # How to create reloadable object files. | 
 | 14941 | reload_flag=$lt_reload_flag | 
 | 14942 | reload_cmds=$lt_reload_cmds | 
 | 14943 |  | 
 | 14944 | # How to pass a linker flag through the compiler. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14945 | wl=$lt_lt_prog_compiler_wl | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14946 |  | 
 | 14947 | # Object file suffix (normally "o"). | 
 | 14948 | objext="$ac_objext" | 
 | 14949 |  | 
 | 14950 | # Old archive suffix (normally "a"). | 
 | 14951 | libext="$libext" | 
 | 14952 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14953 | # Shared library suffix (normally ".so"). | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14954 | shrext_cmds='$shrext_cmds' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14955 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14956 | # Executable file suffix (normally ""). | 
 | 14957 | exeext="$exeext" | 
 | 14958 |  | 
 | 14959 | # Additional compiler flags for building library objects. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14960 | pic_flag=$lt_lt_prog_compiler_pic | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14961 | pic_mode=$pic_mode | 
 | 14962 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14963 | # What is the maximum length of a command? | 
 | 14964 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14965 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14966 | # Does compiler simultaneously support -c and -o options? | 
 | 14967 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14968 |  | 
 | 14969 | # Must we lock files when doing compilation ? | 
 | 14970 | need_locks=$lt_need_locks | 
 | 14971 |  | 
 | 14972 | # Do we need the lib prefix for modules? | 
 | 14973 | need_lib_prefix=$need_lib_prefix | 
 | 14974 |  | 
 | 14975 | # Do we need a version for libraries? | 
 | 14976 | need_version=$need_version | 
 | 14977 |  | 
 | 14978 | # Whether dlopen is supported. | 
 | 14979 | dlopen_support=$enable_dlopen | 
 | 14980 |  | 
 | 14981 | # Whether dlopen of programs is supported. | 
 | 14982 | dlopen_self=$enable_dlopen_self | 
 | 14983 |  | 
 | 14984 | # Whether dlopen of statically linked programs is supported. | 
 | 14985 | dlopen_self_static=$enable_dlopen_self_static | 
 | 14986 |  | 
 | 14987 | # Compiler flag to prevent dynamic linking. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14988 | link_static_flag=$lt_lt_prog_compiler_static | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14989 |  | 
 | 14990 | # Compiler flag to turn off builtin functions. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14991 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14992 |  | 
 | 14993 | # Compiler flag to allow reflexive dlopens. | 
 | 14994 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | 
 | 14995 |  | 
 | 14996 | # Compiler flag to generate shared objects directly from archives. | 
 | 14997 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | 
 | 14998 |  | 
 | 14999 | # Compiler flag to generate thread-safe objects. | 
 | 15000 | thread_safe_flag_spec=$lt_thread_safe_flag_spec | 
 | 15001 |  | 
 | 15002 | # Library versioning type. | 
 | 15003 | version_type=$version_type | 
 | 15004 |  | 
 | 15005 | # Format of library name prefix. | 
 | 15006 | libname_spec=$lt_libname_spec | 
 | 15007 |  | 
 | 15008 | # List of archive names.  First name is the real one, the rest are links. | 
 | 15009 | # The last name is the one that the linker finds with -lNAME. | 
 | 15010 | library_names_spec=$lt_library_names_spec | 
 | 15011 |  | 
 | 15012 | # The coded name of the library, if different from the real name. | 
 | 15013 | soname_spec=$lt_soname_spec | 
 | 15014 |  | 
 | 15015 | # Commands used to build and install an old-style archive. | 
 | 15016 | RANLIB=$lt_RANLIB | 
 | 15017 | old_archive_cmds=$lt_old_archive_cmds | 
 | 15018 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
 | 15019 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
 | 15020 |  | 
 | 15021 | # Create an old-style archive from a shared archive. | 
 | 15022 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | 
 | 15023 |  | 
 | 15024 | # Create a temporary old-style archive to link instead of a shared archive. | 
 | 15025 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | 
 | 15026 |  | 
 | 15027 | # Commands used to build and install a shared archive. | 
 | 15028 | archive_cmds=$lt_archive_cmds | 
 | 15029 | archive_expsym_cmds=$lt_archive_expsym_cmds | 
 | 15030 | postinstall_cmds=$lt_postinstall_cmds | 
 | 15031 | postuninstall_cmds=$lt_postuninstall_cmds | 
 | 15032 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15033 | # Commands used to build a loadable module (assumed same as above if empty) | 
 | 15034 | module_cmds=$lt_module_cmds | 
 | 15035 | module_expsym_cmds=$lt_module_expsym_cmds | 
 | 15036 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15037 | # Commands to strip libraries. | 
 | 15038 | old_striplib=$lt_old_striplib | 
 | 15039 | striplib=$lt_striplib | 
 | 15040 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15041 | # Dependencies to place before the objects being linked to create a | 
 | 15042 | # shared library. | 
 | 15043 | predep_objects=$lt_predep_objects | 
 | 15044 |  | 
 | 15045 | # Dependencies to place after the objects being linked to create a | 
 | 15046 | # shared library. | 
 | 15047 | postdep_objects=$lt_postdep_objects | 
 | 15048 |  | 
 | 15049 | # Dependencies to place before the objects being linked to create a | 
 | 15050 | # shared library. | 
 | 15051 | predeps=$lt_predeps | 
 | 15052 |  | 
 | 15053 | # Dependencies to place after the objects being linked to create a | 
 | 15054 | # shared library. | 
 | 15055 | postdeps=$lt_postdeps | 
 | 15056 |  | 
 | 15057 | # The library search path used internally by the compiler when linking | 
 | 15058 | # a shared library. | 
 | 15059 | compiler_lib_search_path=$lt_compiler_lib_search_path | 
 | 15060 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15061 | # Method to check whether dependent libraries are shared objects. | 
 | 15062 | deplibs_check_method=$lt_deplibs_check_method | 
 | 15063 |  | 
 | 15064 | # Command to use when deplibs_check_method == file_magic. | 
 | 15065 | file_magic_cmd=$lt_file_magic_cmd | 
 | 15066 |  | 
 | 15067 | # Flag that allows shared libraries with undefined symbols to be built. | 
 | 15068 | allow_undefined_flag=$lt_allow_undefined_flag | 
 | 15069 |  | 
 | 15070 | # Flag that forces no undefined symbols. | 
 | 15071 | no_undefined_flag=$lt_no_undefined_flag | 
 | 15072 |  | 
 | 15073 | # Commands used to finish a libtool library installation in a directory. | 
 | 15074 | finish_cmds=$lt_finish_cmds | 
 | 15075 |  | 
 | 15076 | # Same as above, but a single script fragment to be evaled but not shown. | 
 | 15077 | finish_eval=$lt_finish_eval | 
 | 15078 |  | 
 | 15079 | # 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] | 15080 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15081 |  | 
 | 15082 | # Transform the output of nm in a proper C declaration | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15083 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15084 |  | 
 | 15085 | # Transform the output of nm in a C name address pair | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15086 | 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] | 15087 |  | 
 | 15088 | # This is the shared library runtime path variable. | 
 | 15089 | runpath_var=$runpath_var | 
 | 15090 |  | 
 | 15091 | # This is the shared library path variable. | 
 | 15092 | shlibpath_var=$shlibpath_var | 
 | 15093 |  | 
 | 15094 | # Is shlibpath searched before the hard-coded library search path? | 
 | 15095 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
 | 15096 |  | 
 | 15097 | # How to hardcode a shared library path into an executable. | 
 | 15098 | hardcode_action=$hardcode_action | 
 | 15099 |  | 
 | 15100 | # Whether we should hardcode library paths into libraries. | 
 | 15101 | hardcode_into_libs=$hardcode_into_libs | 
 | 15102 |  | 
 | 15103 | # Flag to hardcode \$libdir into a binary during linking. | 
 | 15104 | # This must work even if \$libdir does not exist. | 
 | 15105 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | 
 | 15106 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15107 | # If ld is used when linking, flag to hardcode \$libdir into | 
 | 15108 | # a binary during linking. This must work even if \$libdir does | 
 | 15109 | # not exist. | 
 | 15110 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | 
 | 15111 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15112 | # Whether we need a single -rpath flag with a separated argument. | 
 | 15113 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | 
 | 15114 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15115 | # 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] | 15116 | # resulting binary. | 
 | 15117 | hardcode_direct=$hardcode_direct | 
 | 15118 |  | 
 | 15119 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
 | 15120 | # resulting binary. | 
 | 15121 | hardcode_minus_L=$hardcode_minus_L | 
 | 15122 |  | 
 | 15123 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
 | 15124 | # the resulting binary. | 
 | 15125 | hardcode_shlibpath_var=$hardcode_shlibpath_var | 
 | 15126 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15127 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
 | 15128 | # and all subsequent libraries and executables linked against it. | 
 | 15129 | hardcode_automatic=$hardcode_automatic | 
 | 15130 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15131 | # Variables whose values should be saved in libtool wrapper scripts and | 
 | 15132 | # restored at relink time. | 
 | 15133 | variables_saved_for_relink="$variables_saved_for_relink" | 
 | 15134 |  | 
 | 15135 | # Whether libtool must link a program against all its dependency libraries. | 
 | 15136 | link_all_deplibs=$link_all_deplibs | 
 | 15137 |  | 
 | 15138 | # Compile-time system search path for libraries | 
 | 15139 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
 | 15140 |  | 
 | 15141 | # Run-time system search path for libraries | 
 | 15142 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
 | 15143 |  | 
 | 15144 | # Fix the shell variable \$srcfile for the compiler. | 
 | 15145 | fix_srcfile_path="$fix_srcfile_path" | 
 | 15146 |  | 
 | 15147 | # Set to yes if exported symbols are required. | 
 | 15148 | always_export_symbols=$always_export_symbols | 
 | 15149 |  | 
 | 15150 | # The commands to list exported symbols. | 
 | 15151 | export_symbols_cmds=$lt_export_symbols_cmds | 
 | 15152 |  | 
 | 15153 | # The commands to extract the exported symbol list from a shared archive. | 
 | 15154 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
 | 15155 |  | 
 | 15156 | # Symbols that should not be listed in the preloaded symbols. | 
 | 15157 | exclude_expsyms=$lt_exclude_expsyms | 
 | 15158 |  | 
 | 15159 | # Symbols that must always be exported. | 
 | 15160 | include_expsyms=$lt_include_expsyms | 
 | 15161 |  | 
 | 15162 | # ### END LIBTOOL CONFIG | 
 | 15163 |  | 
 | 15164 | __EOF__ | 
 | 15165 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15166 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15167 |   case $host_os in | 
 | 15168 |   aix3*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15169 |     cat <<\EOF >> "$cfgfile" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15170 |  | 
 | 15171 | # AIX sometimes has problems with the GCC collect2 program.  For some | 
 | 15172 | # reason, if we set the COLLECT_NAMES environment variable, the problems | 
 | 15173 | # vanish in a puff of smoke. | 
 | 15174 | if test "X${COLLECT_NAMES+set}" != Xset; then | 
 | 15175 |   COLLECT_NAMES= | 
 | 15176 |   export COLLECT_NAMES | 
 | 15177 | fi | 
 | 15178 | EOF | 
 | 15179 |     ;; | 
 | 15180 |   esac | 
 | 15181 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15182 |   # We use sed instead of cat because bash on DJGPP gets confused if | 
 | 15183 |   # if finds mixed CR/LF and LF-only lines.  Since sed operates in | 
 | 15184 |   # text mode, it properly converts lines to CR/LF.  This bash problem | 
 | 15185 |   # is reportedly fixed, but why not run on old versions too? | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15186 |   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15187 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15188 |   mv -f "$cfgfile" "$ofile" || \ | 
 | 15189 |     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15190 |   chmod +x "$ofile" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15191 |  | 
 | 15192 | else | 
 | 15193 |   # If there is no Makefile yet, we rely on a make rule to execute | 
 | 15194 |   # `config.status --recheck' to rerun these tests and create the | 
 | 15195 |   # libtool script then. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15196 |   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | 
 | 15197 |   if test -f "$ltmain_in"; then | 
 | 15198 |     test -f Makefile && make "$ltmain" | 
 | 15199 |   fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15200 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15201 |  | 
 | 15202 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15203 | ac_ext=c | 
 | 15204 | ac_cpp='$CPP $CPPFLAGS' | 
 | 15205 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 15206 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 15207 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 15208 |  | 
 | 15209 | CC="$lt_save_CC" | 
 | 15210 |  | 
 | 15211 |  | 
 | 15212 | # Check whether --with-tags or --without-tags was given. | 
 | 15213 | if test "${with_tags+set}" = set; then | 
 | 15214 |   withval="$with_tags" | 
 | 15215 |   tagnames="$withval" | 
 | 15216 | fi; | 
 | 15217 |  | 
 | 15218 | if test -f "$ltmain" && test -n "$tagnames"; then | 
 | 15219 |   if test ! -f "${ofile}"; then | 
 | 15220 |     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 | 
 | 15221 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} | 
 | 15222 |   fi | 
 | 15223 |  | 
 | 15224 |   if test -z "$LTCC"; then | 
 | 15225 |     eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | 
 | 15226 |     if test -z "$LTCC"; then | 
 | 15227 |       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 | 
 | 15228 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} | 
 | 15229 |     else | 
 | 15230 |       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 | 
 | 15231 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} | 
 | 15232 |     fi | 
 | 15233 |   fi | 
 | 15234 |  | 
 | 15235 |   # Extract list of available tagged configurations in $ofile. | 
 | 15236 |   # Note that this assumes the entire list is on one line. | 
 | 15237 |   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | 
 | 15238 |  | 
 | 15239 |   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
 | 15240 |   for tagname in $tagnames; do | 
 | 15241 |     IFS="$lt_save_ifs" | 
 | 15242 |     # Check whether tagname contains only valid characters | 
 | 15243 |     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in | 
 | 15244 |     "") ;; | 
 | 15245 |     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 | 
 | 15246 | echo "$as_me: error: invalid tag name: $tagname" >&2;} | 
 | 15247 |    { (exit 1); exit 1; }; } | 
 | 15248 | 	;; | 
 | 15249 |     esac | 
 | 15250 |  | 
 | 15251 |     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | 
 | 15252 |     then | 
 | 15253 |       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 | 
 | 15254 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} | 
 | 15255 |    { (exit 1); exit 1; }; } | 
 | 15256 |     fi | 
 | 15257 |  | 
 | 15258 |     # Update the list of available tags. | 
 | 15259 |     if test -n "$tagname"; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15260 |       echo appending configuration tag "$tagname" to $ofile | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15261 |  | 
 | 15262 |       case $tagname in | 
 | 15263 |       CXX) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15264 | 	if test -n "$CXX" && ( test "X$CXX" != "Xno" && | 
 | 15265 | 	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | 
 | 15266 | 	    (test "X$CXX" != "Xg++"))) ; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15267 | 	  ac_ext=cc | 
 | 15268 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 15269 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 15270 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 15271 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 15272 |  | 
 | 15273 |  | 
 | 15274 |  | 
 | 15275 |  | 
 | 15276 | archive_cmds_need_lc_CXX=no | 
 | 15277 | allow_undefined_flag_CXX= | 
 | 15278 | always_export_symbols_CXX=no | 
 | 15279 | archive_expsym_cmds_CXX= | 
 | 15280 | export_dynamic_flag_spec_CXX= | 
 | 15281 | hardcode_direct_CXX=no | 
 | 15282 | hardcode_libdir_flag_spec_CXX= | 
 | 15283 | hardcode_libdir_flag_spec_ld_CXX= | 
 | 15284 | hardcode_libdir_separator_CXX= | 
 | 15285 | hardcode_minus_L_CXX=no | 
 | 15286 | hardcode_automatic_CXX=no | 
 | 15287 | module_cmds_CXX= | 
 | 15288 | module_expsym_cmds_CXX= | 
 | 15289 | link_all_deplibs_CXX=unknown | 
 | 15290 | old_archive_cmds_CXX=$old_archive_cmds | 
 | 15291 | no_undefined_flag_CXX= | 
 | 15292 | whole_archive_flag_spec_CXX= | 
 | 15293 | enable_shared_with_static_runtimes_CXX=no | 
 | 15294 |  | 
 | 15295 | # Dependencies to place before and after the object being linked: | 
 | 15296 | predep_objects_CXX= | 
 | 15297 | postdep_objects_CXX= | 
 | 15298 | predeps_CXX= | 
 | 15299 | postdeps_CXX= | 
 | 15300 | compiler_lib_search_path_CXX= | 
 | 15301 |  | 
 | 15302 | # Source file extension for C++ test sources. | 
 | 15303 | ac_ext=cc | 
 | 15304 |  | 
 | 15305 | # Object file extension for compiled C++ test sources. | 
 | 15306 | objext=o | 
 | 15307 | objext_CXX=$objext | 
 | 15308 |  | 
 | 15309 | # Code to be used in simple compile tests | 
 | 15310 | lt_simple_compile_test_code="int some_variable = 0;\n" | 
 | 15311 |  | 
 | 15312 | # Code to be used in simple link tests | 
 | 15313 | lt_simple_link_test_code='int main(int, char *) { return(0); }\n' | 
 | 15314 |  | 
 | 15315 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
 | 15316 |  | 
 | 15317 | # If no C compiler was specified, use CC. | 
 | 15318 | LTCC=${LTCC-"$CC"} | 
 | 15319 |  | 
 | 15320 | # Allow CC to be a program name with arguments. | 
 | 15321 | compiler=$CC | 
 | 15322 |  | 
 | 15323 |  | 
 | 15324 | # Allow CC to be a program name with arguments. | 
 | 15325 | lt_save_CC=$CC | 
 | 15326 | lt_save_LD=$LD | 
 | 15327 | lt_save_GCC=$GCC | 
 | 15328 | GCC=$GXX | 
 | 15329 | lt_save_with_gnu_ld=$with_gnu_ld | 
 | 15330 | lt_save_path_LD=$lt_cv_path_LD | 
 | 15331 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | 
 | 15332 |   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | 
 | 15333 | else | 
 | 15334 |   unset lt_cv_prog_gnu_ld | 
 | 15335 | fi | 
 | 15336 | if test -n "${lt_cv_path_LDCXX+set}"; then | 
 | 15337 |   lt_cv_path_LD=$lt_cv_path_LDCXX | 
 | 15338 | else | 
 | 15339 |   unset lt_cv_path_LD | 
 | 15340 | fi | 
 | 15341 | test -z "${LDCXX+set}" || LD=$LDCXX | 
 | 15342 | CC=${CXX-"c++"} | 
 | 15343 | compiler=$CC | 
 | 15344 | compiler_CXX=$CC | 
 | 15345 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | 
 | 15346 |  | 
 | 15347 | # We don't want -fno-exception wen compiling C++ code, so set the | 
 | 15348 | # no_builtin_flag separately | 
 | 15349 | if test "$GXX" = yes; then | 
 | 15350 |   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | 
 | 15351 | else | 
 | 15352 |   lt_prog_compiler_no_builtin_flag_CXX= | 
 | 15353 | fi | 
 | 15354 |  | 
 | 15355 | if test "$GXX" = yes; then | 
 | 15356 |   # Set up default GNU C++ configuration | 
 | 15357 |  | 
 | 15358 |  | 
 | 15359 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | 
 | 15360 | if test "${with_gnu_ld+set}" = set; then | 
 | 15361 |   withval="$with_gnu_ld" | 
 | 15362 |   test "$withval" = no || with_gnu_ld=yes | 
 | 15363 | else | 
 | 15364 |   with_gnu_ld=no | 
 | 15365 | fi; | 
 | 15366 | ac_prog=ld | 
 | 15367 | if test "$GCC" = yes; then | 
 | 15368 |   # Check if gcc -print-prog-name=ld gives a path. | 
 | 15369 |   echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | 
 | 15370 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | 
 | 15371 |   case $host in | 
 | 15372 |   *-*-mingw*) | 
 | 15373 |     # gcc leaves a trailing carriage return which upsets mingw | 
 | 15374 |     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | 
 | 15375 |   *) | 
 | 15376 |     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | 
 | 15377 |   esac | 
 | 15378 |   case $ac_prog in | 
 | 15379 |     # Accept absolute paths. | 
 | 15380 |     [\\/]* | ?:[\\/]*) | 
 | 15381 |       re_direlt='/[^/][^/]*/\.\./' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15382 |       # Canonicalize the pathname of ld | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15383 |       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | 
 | 15384 |       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | 
 | 15385 | 	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | 
 | 15386 |       done | 
 | 15387 |       test -z "$LD" && LD="$ac_prog" | 
 | 15388 |       ;; | 
 | 15389 |   "") | 
 | 15390 |     # If it fails, then pretend we aren't using GCC. | 
 | 15391 |     ac_prog=ld | 
 | 15392 |     ;; | 
 | 15393 |   *) | 
 | 15394 |     # If it is relative, then search for the first ld in PATH. | 
 | 15395 |     with_gnu_ld=unknown | 
 | 15396 |     ;; | 
 | 15397 |   esac | 
 | 15398 | elif test "$with_gnu_ld" = yes; then | 
 | 15399 |   echo "$as_me:$LINENO: checking for GNU ld" >&5 | 
 | 15400 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | 
 | 15401 | else | 
 | 15402 |   echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | 
 | 15403 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | 
 | 15404 | fi | 
 | 15405 | if test "${lt_cv_path_LD+set}" = set; then | 
 | 15406 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 15407 | else | 
 | 15408 |   if test -z "$LD"; then | 
 | 15409 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
 | 15410 |   for ac_dir in $PATH; do | 
 | 15411 |     IFS="$lt_save_ifs" | 
 | 15412 |     test -z "$ac_dir" && ac_dir=. | 
 | 15413 |     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | 
 | 15414 |       lt_cv_path_LD="$ac_dir/$ac_prog" | 
 | 15415 |       # Check to see if the program is GNU ld.  I'd rather use --version, | 
 | 15416 |       # but apparently some GNU ld's only accept -v. | 
 | 15417 |       # Break only if it was the GNU/non-GNU ld that we prefer. | 
 | 15418 |       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | 
 | 15419 |       *GNU* | *'with BFD'*) | 
 | 15420 | 	test "$with_gnu_ld" != no && break | 
 | 15421 | 	;; | 
 | 15422 |       *) | 
 | 15423 | 	test "$with_gnu_ld" != yes && break | 
 | 15424 | 	;; | 
 | 15425 |       esac | 
 | 15426 |     fi | 
 | 15427 |   done | 
 | 15428 |   IFS="$lt_save_ifs" | 
 | 15429 | else | 
 | 15430 |   lt_cv_path_LD="$LD" # Let the user override the test with a path. | 
 | 15431 | fi | 
 | 15432 | fi | 
 | 15433 |  | 
 | 15434 | LD="$lt_cv_path_LD" | 
 | 15435 | if test -n "$LD"; then | 
 | 15436 |   echo "$as_me:$LINENO: result: $LD" >&5 | 
 | 15437 | echo "${ECHO_T}$LD" >&6 | 
 | 15438 | else | 
 | 15439 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 15440 | echo "${ECHO_T}no" >&6 | 
 | 15441 | fi | 
 | 15442 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | 
 | 15443 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | 
 | 15444 |    { (exit 1); exit 1; }; } | 
 | 15445 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | 
 | 15446 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | 
 | 15447 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | 
 | 15448 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 15449 | else | 
 | 15450 |   # I'd rather use --version here, but apparently some GNU ld's only accept -v. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15451 | case `$LD -v 2>&1 </dev/null` in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15452 | *GNU* | *'with BFD'*) | 
 | 15453 |   lt_cv_prog_gnu_ld=yes | 
 | 15454 |   ;; | 
 | 15455 | *) | 
 | 15456 |   lt_cv_prog_gnu_ld=no | 
 | 15457 |   ;; | 
 | 15458 | esac | 
 | 15459 | fi | 
 | 15460 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | 
 | 15461 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | 
 | 15462 | with_gnu_ld=$lt_cv_prog_gnu_ld | 
 | 15463 |  | 
 | 15464 |  | 
 | 15465 |  | 
 | 15466 |   # Check if GNU C++ uses GNU ld as the underlying linker, since the | 
 | 15467 |   # archiving commands below assume that GNU ld is being used. | 
 | 15468 |   if test "$with_gnu_ld" = yes; then | 
 | 15469 |     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 15470 |     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' | 
 | 15471 |  | 
 | 15472 |     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | 
 | 15473 |     export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
 | 15474 |  | 
 | 15475 |     # If archive_cmds runs LD, not CC, wlarc should be empty | 
 | 15476 |     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | 
 | 15477 |     #     investigate it a little bit more. (MM) | 
 | 15478 |     wlarc='${wl}' | 
 | 15479 |  | 
 | 15480 |     # ancient GNU ld didn't support --whole-archive et. al. | 
 | 15481 |     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | 
 | 15482 | 	grep 'no-whole-archive' > /dev/null; then | 
 | 15483 |       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
 | 15484 |     else | 
 | 15485 |       whole_archive_flag_spec_CXX= | 
 | 15486 |     fi | 
 | 15487 |   else | 
 | 15488 |     with_gnu_ld=no | 
 | 15489 |     wlarc= | 
 | 15490 |  | 
 | 15491 |     # A generic and very simple default shared library creation | 
 | 15492 |     # command for GNU C++ for the case where it uses the native | 
 | 15493 |     # linker, instead of GNU ld.  If possible, this setting should | 
 | 15494 |     # overridden to take advantage of the native linker features on | 
 | 15495 |     # the platform it is being used on. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15496 |     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15497 |   fi | 
 | 15498 |  | 
 | 15499 |   # Commands to make compiler produce verbose output that lists | 
 | 15500 |   # what "hidden" libraries, object files and flags are used when | 
 | 15501 |   # linking a shared library. | 
 | 15502 |   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | 
 | 15503 |  | 
 | 15504 | else | 
 | 15505 |   GXX=no | 
 | 15506 |   with_gnu_ld=no | 
 | 15507 |   wlarc= | 
 | 15508 | fi | 
 | 15509 |  | 
 | 15510 | # PORTME: fill in a description of your system's C++ link characteristics | 
 | 15511 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
 | 15512 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
 | 15513 | ld_shlibs_CXX=yes | 
 | 15514 | case $host_os in | 
 | 15515 |   aix3*) | 
 | 15516 |     # FIXME: insert proper C++ library support | 
 | 15517 |     ld_shlibs_CXX=no | 
 | 15518 |     ;; | 
 | 15519 |   aix4* | aix5*) | 
 | 15520 |     if test "$host_cpu" = ia64; then | 
 | 15521 |       # On IA64, the linker does run time linking by default, so we don't | 
 | 15522 |       # have to do anything special. | 
 | 15523 |       aix_use_runtimelinking=no | 
 | 15524 |       exp_sym_flag='-Bexport' | 
 | 15525 |       no_entry_flag="" | 
 | 15526 |     else | 
 | 15527 |       aix_use_runtimelinking=no | 
 | 15528 |  | 
 | 15529 |       # Test if we are trying to use run time linking or normal | 
 | 15530 |       # AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
 | 15531 |       # need to do runtime linking. | 
 | 15532 |       case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 
 | 15533 | 	for ld_flag in $LDFLAGS; do | 
 | 15534 | 	  case $ld_flag in | 
 | 15535 | 	  *-brtl*) | 
 | 15536 | 	    aix_use_runtimelinking=yes | 
 | 15537 | 	    break | 
 | 15538 | 	    ;; | 
 | 15539 | 	  esac | 
 | 15540 | 	done | 
 | 15541 |       esac | 
 | 15542 |  | 
 | 15543 |       exp_sym_flag='-bexport' | 
 | 15544 |       no_entry_flag='-bnoentry' | 
 | 15545 |     fi | 
 | 15546 |  | 
 | 15547 |     # When large executables or shared objects are built, AIX ld can | 
 | 15548 |     # have problems creating the table of contents.  If linking a library | 
 | 15549 |     # or program results in "error TOC overflow" add -mminimal-toc to | 
 | 15550 |     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
 | 15551 |     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
 | 15552 |  | 
 | 15553 |     archive_cmds_CXX='' | 
 | 15554 |     hardcode_direct_CXX=yes | 
 | 15555 |     hardcode_libdir_separator_CXX=':' | 
 | 15556 |     link_all_deplibs_CXX=yes | 
 | 15557 |  | 
 | 15558 |     if test "$GXX" = yes; then | 
 | 15559 |       case $host_os in aix4.012|aix4.012.*) | 
 | 15560 |       # We only want to do this on AIX 4.2 and lower, the check | 
 | 15561 |       # below for broken collect2 doesn't work under 4.3+ | 
 | 15562 | 	collect2name=`${CC} -print-prog-name=collect2` | 
 | 15563 | 	if test -f "$collect2name" && \ | 
 | 15564 | 	   strings "$collect2name" | grep resolve_lib_name >/dev/null | 
 | 15565 | 	then | 
 | 15566 | 	  # We have reworked collect2 | 
 | 15567 | 	  hardcode_direct_CXX=yes | 
 | 15568 | 	else | 
 | 15569 | 	  # We have old collect2 | 
 | 15570 | 	  hardcode_direct_CXX=unsupported | 
 | 15571 | 	  # It fails to find uninstalled libraries when the uninstalled | 
 | 15572 | 	  # path is not listed in the libpath.  Setting hardcode_minus_L | 
 | 15573 | 	  # to unsupported forces relinking | 
 | 15574 | 	  hardcode_minus_L_CXX=yes | 
 | 15575 | 	  hardcode_libdir_flag_spec_CXX='-L$libdir' | 
 | 15576 | 	  hardcode_libdir_separator_CXX= | 
 | 15577 | 	fi | 
 | 15578 |       esac | 
 | 15579 |       shared_flag='-shared' | 
 | 15580 |     else | 
 | 15581 |       # not using gcc | 
 | 15582 |       if test "$host_cpu" = ia64; then | 
 | 15583 | 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
 | 15584 | 	# chokes on -Wl,-G. The following line is correct: | 
 | 15585 | 	shared_flag='-G' | 
 | 15586 |       else | 
 | 15587 | 	if test "$aix_use_runtimelinking" = yes; then | 
 | 15588 | 	  shared_flag='${wl}-G' | 
 | 15589 | 	else | 
 | 15590 | 	  shared_flag='${wl}-bM:SRE' | 
 | 15591 | 	fi | 
 | 15592 |       fi | 
 | 15593 |     fi | 
 | 15594 |  | 
 | 15595 |     # It seems that -bexpall does not export symbols beginning with | 
 | 15596 |     # underscore (_), so it is better to generate a list of symbols to export. | 
 | 15597 |     always_export_symbols_CXX=yes | 
 | 15598 |     if test "$aix_use_runtimelinking" = yes; then | 
 | 15599 |       # Warning - without using the other runtime loading flags (-brtl), | 
 | 15600 |       # -berok will link without error, but may produce a broken library. | 
 | 15601 |       allow_undefined_flag_CXX='-berok' | 
 | 15602 |       # Determine the default libpath from the value encoded in an empty executable. | 
 | 15603 |       cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15604 | /* confdefs.h.  */ | 
 | 15605 | _ACEOF | 
 | 15606 | cat confdefs.h >>conftest.$ac_ext | 
 | 15607 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 15608 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15609 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15610 | int | 
 | 15611 | main () | 
 | 15612 | { | 
 | 15613 |  | 
 | 15614 |   ; | 
 | 15615 |   return 0; | 
 | 15616 | } | 
 | 15617 | _ACEOF | 
 | 15618 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 15619 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15620 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15621 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15622 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 15623 |   rm -f conftest.er1 | 
 | 15624 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15625 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 15626 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15627 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 15628 | 			 || test ! -s conftest.err' | 
 | 15629 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 15630 |   (eval $ac_try) 2>&5 | 
 | 15631 |   ac_status=$? | 
 | 15632 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 15633 |   (exit $ac_status); }; } && | 
 | 15634 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15635 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 15636 |   (eval $ac_try) 2>&5 | 
 | 15637 |   ac_status=$? | 
 | 15638 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 15639 |   (exit $ac_status); }; }; then | 
 | 15640 |  | 
 | 15641 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 15642 | }'` | 
 | 15643 | # Check for a 64-bit object if we didn't find anything. | 
 | 15644 | 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; } | 
 | 15645 | }'`; fi | 
 | 15646 | else | 
 | 15647 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15648 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 15649 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15650 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15651 | rm -f conftest.err conftest.$ac_objext \ | 
 | 15652 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15653 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
 | 15654 |  | 
 | 15655 |       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 15656 |  | 
 | 15657 |       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" | 
 | 15658 |      else | 
 | 15659 |       if test "$host_cpu" = ia64; then | 
 | 15660 | 	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | 
 | 15661 | 	allow_undefined_flag_CXX="-z nodefs" | 
 | 15662 | 	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" | 
 | 15663 |       else | 
 | 15664 | 	# Determine the default libpath from the value encoded in an empty executable. | 
 | 15665 | 	cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15666 | /* confdefs.h.  */ | 
 | 15667 | _ACEOF | 
 | 15668 | cat confdefs.h >>conftest.$ac_ext | 
 | 15669 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 15670 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15671 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15672 | int | 
 | 15673 | main () | 
 | 15674 | { | 
 | 15675 |  | 
 | 15676 |   ; | 
 | 15677 |   return 0; | 
 | 15678 | } | 
 | 15679 | _ACEOF | 
 | 15680 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 15681 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15682 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15683 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15684 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 15685 |   rm -f conftest.er1 | 
 | 15686 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15687 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 15688 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15689 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 15690 | 			 || test ! -s conftest.err' | 
 | 15691 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 15692 |   (eval $ac_try) 2>&5 | 
 | 15693 |   ac_status=$? | 
 | 15694 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 15695 |   (exit $ac_status); }; } && | 
 | 15696 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15697 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 15698 |   (eval $ac_try) 2>&5 | 
 | 15699 |   ac_status=$? | 
 | 15700 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 15701 |   (exit $ac_status); }; }; then | 
 | 15702 |  | 
 | 15703 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 15704 | }'` | 
 | 15705 | # Check for a 64-bit object if we didn't find anything. | 
 | 15706 | 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; } | 
 | 15707 | }'`; fi | 
 | 15708 | else | 
 | 15709 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15710 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 15711 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15712 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15713 | rm -f conftest.err conftest.$ac_objext \ | 
 | 15714 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15715 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
 | 15716 |  | 
 | 15717 | 	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 15718 | 	# Warning - without using the other run time loading flags, | 
 | 15719 | 	# -berok will link without error, but may produce a broken library. | 
 | 15720 | 	no_undefined_flag_CXX=' ${wl}-bernotok' | 
 | 15721 | 	allow_undefined_flag_CXX=' ${wl}-berok' | 
 | 15722 | 	# -bexpall does not export symbols beginning with underscore (_) | 
 | 15723 | 	always_export_symbols_CXX=yes | 
 | 15724 | 	# Exported symbols can be pulled into shared objects from archives | 
 | 15725 | 	whole_archive_flag_spec_CXX=' ' | 
 | 15726 | 	archive_cmds_need_lc_CXX=yes | 
 | 15727 | 	# This is similar to how AIX traditionally builds it's shared libraries. | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15728 | 	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15729 |       fi | 
 | 15730 |     fi | 
 | 15731 |     ;; | 
 | 15732 |   chorus*) | 
 | 15733 |     case $cc_basename in | 
 | 15734 |       *) | 
 | 15735 | 	# FIXME: insert proper C++ library support | 
 | 15736 | 	ld_shlibs_CXX=no | 
 | 15737 | 	;; | 
 | 15738 |     esac | 
 | 15739 |     ;; | 
 | 15740 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15741 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15742 |   cygwin* | mingw* | pw32*) | 
 | 15743 |     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | 
 | 15744 |     # as there is no search path for DLLs. | 
 | 15745 |     hardcode_libdir_flag_spec_CXX='-L$libdir' | 
 | 15746 |     allow_undefined_flag_CXX=unsupported | 
 | 15747 |     always_export_symbols_CXX=no | 
 | 15748 |     enable_shared_with_static_runtimes_CXX=yes | 
 | 15749 |  | 
 | 15750 |     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 
 | 15751 |       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' | 
 | 15752 |       # If the export-symbols file already is a .def file (1st line | 
 | 15753 |       # is EXPORTS), use it as is; otherwise, prepend... | 
 | 15754 |       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
 | 15755 | 	cp $export_symbols $output_objdir/$soname.def; | 
 | 15756 |       else | 
 | 15757 | 	echo EXPORTS > $output_objdir/$soname.def; | 
 | 15758 | 	cat $export_symbols >> $output_objdir/$soname.def; | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15759 |       fi~ | 
 | 15760 |       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15761 |     else | 
 | 15762 |       ld_shlibs_CXX=no | 
 | 15763 |     fi | 
 | 15764 |   ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15765 |       darwin* | rhapsody*) | 
 | 15766 |         case "$host_os" in | 
 | 15767 |         rhapsody* | darwin1.[012]) | 
 | 15768 |          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' | 
 | 15769 |          ;; | 
 | 15770 |        *) # Darwin 1.3 on | 
 | 15771 |          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | 
 | 15772 |            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 15773 |          else | 
 | 15774 |            case ${MACOSX_DEPLOYMENT_TARGET} in | 
 | 15775 |              10.[012]) | 
 | 15776 |                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 15777 |                ;; | 
 | 15778 |              10.*) | 
 | 15779 |                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' | 
 | 15780 |                ;; | 
 | 15781 |            esac | 
 | 15782 |          fi | 
 | 15783 |          ;; | 
 | 15784 |         esac | 
 | 15785 |       archive_cmds_need_lc_CXX=no | 
 | 15786 |       hardcode_direct_CXX=no | 
 | 15787 |       hardcode_automatic_CXX=yes | 
 | 15788 |       hardcode_shlibpath_var_CXX=unsupported | 
 | 15789 |       whole_archive_flag_spec_CXX='' | 
 | 15790 |       link_all_deplibs_CXX=yes | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15791 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15792 |     if test "$GXX" = yes ; then | 
 | 15793 |       lt_int_apple_cc_single_mod=no | 
 | 15794 |       output_verbose_link_cmd='echo' | 
 | 15795 |       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then | 
 | 15796 |        lt_int_apple_cc_single_mod=yes | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 15797 |       fi | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 15798 |       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15799 |        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 15800 |       else | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15801 |           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15802 |         fi | 
 | 15803 |         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
 | 15804 |         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
 | 15805 |           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15806 |             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15807 |           else | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15808 |             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15809 |           fi | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15810 |             module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15811 |       else | 
 | 15812 |       case "$cc_basename" in | 
 | 15813 |         xlc*) | 
 | 15814 |          output_verbose_link_cmd='echo' | 
 | 15815 |           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | 
 | 15816 |           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
 | 15817 |           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15818 |           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
 | 15819 |           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15820 |           ;; | 
 | 15821 |        *) | 
 | 15822 |          ld_shlibs_CXX=no | 
 | 15823 |           ;; | 
 | 15824 |       esac | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 15825 |       fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15826 |         ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15827 |  | 
 | 15828 |   dgux*) | 
 | 15829 |     case $cc_basename in | 
 | 15830 |       ec++) | 
 | 15831 | 	# FIXME: insert proper C++ library support | 
 | 15832 | 	ld_shlibs_CXX=no | 
 | 15833 | 	;; | 
 | 15834 |       ghcx) | 
 | 15835 | 	# Green Hills C++ Compiler | 
 | 15836 | 	# FIXME: insert proper C++ library support | 
 | 15837 | 	ld_shlibs_CXX=no | 
 | 15838 | 	;; | 
 | 15839 |       *) | 
 | 15840 | 	# FIXME: insert proper C++ library support | 
 | 15841 | 	ld_shlibs_CXX=no | 
 | 15842 | 	;; | 
 | 15843 |     esac | 
 | 15844 |     ;; | 
 | 15845 |   freebsd12*) | 
 | 15846 |     # C++ shared libraries reported to be fairly broken before switch to ELF | 
 | 15847 |     ld_shlibs_CXX=no | 
 | 15848 |     ;; | 
 | 15849 |   freebsd-elf*) | 
 | 15850 |     archive_cmds_need_lc_CXX=no | 
 | 15851 |     ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15852 |   freebsd* | kfreebsd*-gnu) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15853 |     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | 
 | 15854 |     # conventions | 
 | 15855 |     ld_shlibs_CXX=yes | 
 | 15856 |     ;; | 
 | 15857 |   gnu*) | 
 | 15858 |     ;; | 
 | 15859 |   hpux9*) | 
 | 15860 |     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | 
 | 15861 |     hardcode_libdir_separator_CXX=: | 
 | 15862 |     export_dynamic_flag_spec_CXX='${wl}-E' | 
 | 15863 |     hardcode_direct_CXX=yes | 
 | 15864 |     hardcode_minus_L_CXX=yes # Not in the search PATH, | 
 | 15865 | 				# but as the default | 
 | 15866 | 				# location of the library. | 
 | 15867 |  | 
 | 15868 |     case $cc_basename in | 
 | 15869 |     CC) | 
 | 15870 |       # FIXME: insert proper C++ library support | 
 | 15871 |       ld_shlibs_CXX=no | 
 | 15872 |       ;; | 
 | 15873 |     aCC) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15874 |       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15875 |       # Commands to make compiler produce verbose output that lists | 
 | 15876 |       # what "hidden" libraries, object files and flags are used when | 
 | 15877 |       # linking a shared library. | 
 | 15878 |       # | 
 | 15879 |       # There doesn't appear to be a way to prevent this compiler from | 
 | 15880 |       # explicitly linking system object files so we need to strip them | 
 | 15881 |       # from the output so that they don't get included in the library | 
 | 15882 |       # dependencies. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15883 |       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15884 |       ;; | 
 | 15885 |     *) | 
 | 15886 |       if test "$GXX" = yes; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15887 |         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15888 |       else | 
 | 15889 |         # FIXME: insert proper C++ library support | 
 | 15890 |         ld_shlibs_CXX=no | 
 | 15891 |       fi | 
 | 15892 |       ;; | 
 | 15893 |     esac | 
 | 15894 |     ;; | 
 | 15895 |   hpux10*|hpux11*) | 
 | 15896 |     if test $with_gnu_ld = no; then | 
 | 15897 |       case "$host_cpu" in | 
 | 15898 |       hppa*64*) | 
 | 15899 | 	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | 
 | 15900 | 	hardcode_libdir_flag_spec_ld_CXX='+b $libdir' | 
 | 15901 | 	hardcode_libdir_separator_CXX=: | 
 | 15902 |         ;; | 
 | 15903 |       ia64*) | 
 | 15904 | 	hardcode_libdir_flag_spec_CXX='-L$libdir' | 
 | 15905 |         ;; | 
 | 15906 |       *) | 
 | 15907 | 	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | 
 | 15908 | 	hardcode_libdir_separator_CXX=: | 
 | 15909 | 	export_dynamic_flag_spec_CXX='${wl}-E' | 
 | 15910 |         ;; | 
 | 15911 |       esac | 
 | 15912 |     fi | 
 | 15913 |     case "$host_cpu" in | 
 | 15914 |     hppa*64*) | 
 | 15915 |       hardcode_direct_CXX=no | 
 | 15916 |       hardcode_shlibpath_var_CXX=no | 
 | 15917 |       ;; | 
 | 15918 |     ia64*) | 
 | 15919 |       hardcode_direct_CXX=no | 
 | 15920 |       hardcode_shlibpath_var_CXX=no | 
 | 15921 |       hardcode_minus_L_CXX=yes # Not in the search PATH, | 
 | 15922 | 					      # but as the default | 
 | 15923 | 					      # location of the library. | 
 | 15924 |       ;; | 
 | 15925 |     *) | 
 | 15926 |       hardcode_direct_CXX=yes | 
 | 15927 |       hardcode_minus_L_CXX=yes # Not in the search PATH, | 
 | 15928 | 					      # but as the default | 
 | 15929 | 					      # location of the library. | 
 | 15930 |       ;; | 
 | 15931 |     esac | 
 | 15932 |  | 
 | 15933 |     case $cc_basename in | 
 | 15934 |       CC) | 
 | 15935 | 	# FIXME: insert proper C++ library support | 
 | 15936 | 	ld_shlibs_CXX=no | 
 | 15937 | 	;; | 
 | 15938 |       aCC) | 
 | 15939 | 	case "$host_cpu" in | 
 | 15940 | 	hppa*64*|ia64*) | 
 | 15941 | 	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | 
 | 15942 | 	  ;; | 
 | 15943 | 	*) | 
 | 15944 | 	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
 | 15945 | 	  ;; | 
 | 15946 | 	esac | 
 | 15947 | 	# Commands to make compiler produce verbose output that lists | 
 | 15948 | 	# what "hidden" libraries, object files and flags are used when | 
 | 15949 | 	# linking a shared library. | 
 | 15950 | 	# | 
 | 15951 | 	# There doesn't appear to be a way to prevent this compiler from | 
 | 15952 | 	# explicitly linking system object files so we need to strip them | 
 | 15953 | 	# from the output so that they don't get included in the library | 
 | 15954 | 	# dependencies. | 
 | 15955 | 	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' | 
 | 15956 | 	;; | 
 | 15957 |       *) | 
 | 15958 | 	if test "$GXX" = yes; then | 
 | 15959 | 	  if test $with_gnu_ld = no; then | 
 | 15960 | 	    case "$host_cpu" in | 
 | 15961 | 	    ia64*|hppa*64*) | 
 | 15962 | 	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | 
 | 15963 | 	      ;; | 
 | 15964 | 	    *) | 
 | 15965 | 	      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' | 
 | 15966 | 	      ;; | 
 | 15967 | 	    esac | 
 | 15968 | 	  fi | 
 | 15969 | 	else | 
 | 15970 | 	  # FIXME: insert proper C++ library support | 
 | 15971 | 	  ld_shlibs_CXX=no | 
 | 15972 | 	fi | 
 | 15973 | 	;; | 
 | 15974 |     esac | 
 | 15975 |     ;; | 
 | 15976 |   irix5* | irix6*) | 
 | 15977 |     case $cc_basename in | 
 | 15978 |       CC) | 
 | 15979 | 	# SGI C++ | 
 | 15980 | 	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' | 
 | 15981 |  | 
 | 15982 | 	# Archives containing C++ object files must be created using | 
 | 15983 | 	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is | 
 | 15984 | 	# necessary to make sure instantiated templates are included | 
 | 15985 | 	# in the archive. | 
 | 15986 | 	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | 
 | 15987 | 	;; | 
 | 15988 |       *) | 
 | 15989 | 	if test "$GXX" = yes; then | 
 | 15990 | 	  if test "$with_gnu_ld" = no; then | 
 | 15991 | 	    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' | 
 | 15992 | 	  else | 
 | 15993 | 	    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' | 
 | 15994 | 	  fi | 
 | 15995 | 	fi | 
 | 15996 | 	link_all_deplibs_CXX=yes | 
 | 15997 | 	;; | 
 | 15998 |     esac | 
 | 15999 |     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
 | 16000 |     hardcode_libdir_separator_CXX=: | 
 | 16001 |     ;; | 
 | 16002 |   linux*) | 
 | 16003 |     case $cc_basename in | 
 | 16004 |       KCC) | 
 | 16005 | 	# Kuck and Associates, Inc. (KAI) C++ Compiler | 
 | 16006 |  | 
 | 16007 | 	# KCC will only create a shared library if the output file | 
 | 16008 | 	# ends with ".so" (or ".sl" for HP-UX), so rename the library | 
 | 16009 | 	# to its proper name (with version) after linking. | 
 | 16010 | 	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' | 
 | 16011 | 	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' | 
 | 16012 | 	# Commands to make compiler produce verbose output that lists | 
 | 16013 | 	# what "hidden" libraries, object files and flags are used when | 
 | 16014 | 	# linking a shared library. | 
 | 16015 | 	# | 
 | 16016 | 	# There doesn't appear to be a way to prevent this compiler from | 
 | 16017 | 	# explicitly linking system object files so we need to strip them | 
 | 16018 | 	# from the output so that they don't get included in the library | 
 | 16019 | 	# dependencies. | 
 | 16020 | 	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' | 
 | 16021 |  | 
 | 16022 | 	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' | 
 | 16023 | 	export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
 | 16024 |  | 
 | 16025 | 	# Archives containing C++ object files must be created using | 
 | 16026 | 	# "CC -Bstatic", where "CC" is the KAI C++ compiler. | 
 | 16027 | 	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | 
 | 16028 | 	;; | 
 | 16029 |       icpc) | 
 | 16030 | 	# Intel C++ | 
 | 16031 | 	with_gnu_ld=yes | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16032 | 	# version 8.0 and above of icpc choke on multiply defined symbols | 
 | 16033 | 	# if we add $predep_objects and $postdep_objects, however 7.1 and | 
 | 16034 | 	# earlier do not add the objects themselves. | 
 | 16035 | 	case `$CC -V 2>&1` in | 
 | 16036 | 	*"Version 7."*) | 
 | 16037 |   	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 16038 |   	  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' | 
 | 16039 | 	  ;; | 
 | 16040 | 	*)  # Version 8.0 or newer | 
 | 16041 |   	  archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 16042 |   	archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 16043 | 	  ;; | 
 | 16044 | 	esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16045 | 	archive_cmds_need_lc_CXX=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16046 | 	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
 | 16047 | 	export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
 | 16048 | 	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | 
 | 16049 | 	;; | 
 | 16050 |       cxx) | 
 | 16051 | 	# Compaq C++ | 
 | 16052 | 	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 16053 | 	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' | 
 | 16054 |  | 
 | 16055 | 	runpath_var=LD_RUN_PATH | 
 | 16056 | 	hardcode_libdir_flag_spec_CXX='-rpath $libdir' | 
 | 16057 | 	hardcode_libdir_separator_CXX=: | 
 | 16058 |  | 
 | 16059 | 	# Commands to make compiler produce verbose output that lists | 
 | 16060 | 	# what "hidden" libraries, object files and flags are used when | 
 | 16061 | 	# linking a shared library. | 
 | 16062 | 	# | 
 | 16063 | 	# There doesn't appear to be a way to prevent this compiler from | 
 | 16064 | 	# explicitly linking system object files so we need to strip them | 
 | 16065 | 	# from the output so that they don't get included in the library | 
 | 16066 | 	# dependencies. | 
 | 16067 | 	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' | 
 | 16068 | 	;; | 
 | 16069 |     esac | 
 | 16070 |     ;; | 
 | 16071 |   lynxos*) | 
 | 16072 |     # FIXME: insert proper C++ library support | 
 | 16073 |     ld_shlibs_CXX=no | 
 | 16074 |     ;; | 
 | 16075 |   m88k*) | 
 | 16076 |     # FIXME: insert proper C++ library support | 
 | 16077 |     ld_shlibs_CXX=no | 
 | 16078 |     ;; | 
 | 16079 |   mvs*) | 
 | 16080 |     case $cc_basename in | 
 | 16081 |       cxx) | 
 | 16082 | 	# FIXME: insert proper C++ library support | 
 | 16083 | 	ld_shlibs_CXX=no | 
 | 16084 | 	;; | 
 | 16085 |       *) | 
 | 16086 | 	# FIXME: insert proper C++ library support | 
 | 16087 | 	ld_shlibs_CXX=no | 
 | 16088 | 	;; | 
 | 16089 |     esac | 
 | 16090 |     ;; | 
 | 16091 |   netbsd*) | 
 | 16092 |     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 16093 |       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | 
 | 16094 |       wlarc= | 
 | 16095 |       hardcode_libdir_flag_spec_CXX='-R$libdir' | 
 | 16096 |       hardcode_direct_CXX=yes | 
 | 16097 |       hardcode_shlibpath_var_CXX=no | 
 | 16098 |     fi | 
 | 16099 |     # Workaround some broken pre-1.5 toolchains | 
 | 16100 |     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | 
 | 16101 |     ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16102 |   openbsd2*) | 
 | 16103 |     # C++ shared libraries are fairly broken | 
 | 16104 |     ld_shlibs_CXX=no | 
 | 16105 |     ;; | 
 | 16106 |   openbsd*) | 
 | 16107 |     hardcode_direct_CXX=yes | 
 | 16108 |     hardcode_shlibpath_var_CXX=no | 
 | 16109 |     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | 
 | 16110 |     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
 | 16111 |     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 16112 |       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | 
 | 16113 |       export_dynamic_flag_spec_CXX='${wl}-E' | 
 | 16114 |       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
 | 16115 |     fi | 
 | 16116 |     output_verbose_link_cmd='echo' | 
 | 16117 |     ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16118 |   osf3*) | 
 | 16119 |     case $cc_basename in | 
 | 16120 |       KCC) | 
 | 16121 | 	# Kuck and Associates, Inc. (KAI) C++ Compiler | 
 | 16122 |  | 
 | 16123 | 	# KCC will only create a shared library if the output file | 
 | 16124 | 	# ends with ".so" (or ".sl" for HP-UX), so rename the library | 
 | 16125 | 	# to its proper name (with version) after linking. | 
 | 16126 | 	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' | 
 | 16127 |  | 
 | 16128 | 	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
 | 16129 | 	hardcode_libdir_separator_CXX=: | 
 | 16130 |  | 
 | 16131 | 	# Archives containing C++ object files must be created using | 
 | 16132 | 	# "CC -Bstatic", where "CC" is the KAI C++ compiler. | 
 | 16133 | 	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | 
 | 16134 |  | 
 | 16135 | 	;; | 
 | 16136 |       RCC) | 
 | 16137 | 	# Rational C++ 2.4.1 | 
 | 16138 | 	# FIXME: insert proper C++ library support | 
 | 16139 | 	ld_shlibs_CXX=no | 
 | 16140 | 	;; | 
 | 16141 |       cxx) | 
 | 16142 | 	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | 
 | 16143 | 	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' | 
 | 16144 |  | 
 | 16145 | 	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
 | 16146 | 	hardcode_libdir_separator_CXX=: | 
 | 16147 |  | 
 | 16148 | 	# Commands to make compiler produce verbose output that lists | 
 | 16149 | 	# what "hidden" libraries, object files and flags are used when | 
 | 16150 | 	# linking a shared library. | 
 | 16151 | 	# | 
 | 16152 | 	# There doesn't appear to be a way to prevent this compiler from | 
 | 16153 | 	# explicitly linking system object files so we need to strip them | 
 | 16154 | 	# from the output so that they don't get included in the library | 
 | 16155 | 	# dependencies. | 
 | 16156 | 	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' | 
 | 16157 | 	;; | 
 | 16158 |       *) | 
 | 16159 | 	if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 
 | 16160 | 	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | 
 | 16161 | 	  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' | 
 | 16162 |  | 
 | 16163 | 	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
 | 16164 | 	  hardcode_libdir_separator_CXX=: | 
 | 16165 |  | 
 | 16166 | 	  # Commands to make compiler produce verbose output that lists | 
 | 16167 | 	  # what "hidden" libraries, object files and flags are used when | 
 | 16168 | 	  # linking a shared library. | 
 | 16169 | 	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | 
 | 16170 |  | 
 | 16171 | 	else | 
 | 16172 | 	  # FIXME: insert proper C++ library support | 
 | 16173 | 	  ld_shlibs_CXX=no | 
 | 16174 | 	fi | 
 | 16175 | 	;; | 
 | 16176 |     esac | 
 | 16177 |     ;; | 
 | 16178 |   osf4* | osf5*) | 
 | 16179 |     case $cc_basename in | 
 | 16180 |       KCC) | 
 | 16181 | 	# Kuck and Associates, Inc. (KAI) C++ Compiler | 
 | 16182 |  | 
 | 16183 | 	# KCC will only create a shared library if the output file | 
 | 16184 | 	# ends with ".so" (or ".sl" for HP-UX), so rename the library | 
 | 16185 | 	# to its proper name (with version) after linking. | 
 | 16186 | 	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' | 
 | 16187 |  | 
 | 16188 | 	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
 | 16189 | 	hardcode_libdir_separator_CXX=: | 
 | 16190 |  | 
 | 16191 | 	# Archives containing C++ object files must be created using | 
 | 16192 | 	# the KAI C++ compiler. | 
 | 16193 | 	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' | 
 | 16194 | 	;; | 
 | 16195 |       RCC) | 
 | 16196 | 	# Rational C++ 2.4.1 | 
 | 16197 | 	# FIXME: insert proper C++ library support | 
 | 16198 | 	ld_shlibs_CXX=no | 
 | 16199 | 	;; | 
 | 16200 |       cxx) | 
 | 16201 | 	allow_undefined_flag_CXX=' -expect_unresolved \*' | 
 | 16202 | 	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16203 | 	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | 
 | 16204 | 	  echo "-hidden">> $lib.exp~ | 
 | 16205 | 	  $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~ | 
 | 16206 | 	  $rm $lib.exp' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16207 |  | 
 | 16208 | 	hardcode_libdir_flag_spec_CXX='-rpath $libdir' | 
 | 16209 | 	hardcode_libdir_separator_CXX=: | 
 | 16210 |  | 
 | 16211 | 	# Commands to make compiler produce verbose output that lists | 
 | 16212 | 	# what "hidden" libraries, object files and flags are used when | 
 | 16213 | 	# linking a shared library. | 
 | 16214 | 	# | 
 | 16215 | 	# There doesn't appear to be a way to prevent this compiler from | 
 | 16216 | 	# explicitly linking system object files so we need to strip them | 
 | 16217 | 	# from the output so that they don't get included in the library | 
 | 16218 | 	# dependencies. | 
 | 16219 | 	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' | 
 | 16220 | 	;; | 
 | 16221 |       *) | 
 | 16222 | 	if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 
 | 16223 | 	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | 
 | 16224 | 	 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' | 
 | 16225 |  | 
 | 16226 | 	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
 | 16227 | 	  hardcode_libdir_separator_CXX=: | 
 | 16228 |  | 
 | 16229 | 	  # Commands to make compiler produce verbose output that lists | 
 | 16230 | 	  # what "hidden" libraries, object files and flags are used when | 
 | 16231 | 	  # linking a shared library. | 
 | 16232 | 	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | 
 | 16233 |  | 
 | 16234 | 	else | 
 | 16235 | 	  # FIXME: insert proper C++ library support | 
 | 16236 | 	  ld_shlibs_CXX=no | 
 | 16237 | 	fi | 
 | 16238 | 	;; | 
 | 16239 |     esac | 
 | 16240 |     ;; | 
 | 16241 |   psos*) | 
 | 16242 |     # FIXME: insert proper C++ library support | 
 | 16243 |     ld_shlibs_CXX=no | 
 | 16244 |     ;; | 
 | 16245 |   sco*) | 
 | 16246 |     archive_cmds_need_lc_CXX=no | 
 | 16247 |     case $cc_basename in | 
 | 16248 |       CC) | 
 | 16249 | 	# FIXME: insert proper C++ library support | 
 | 16250 | 	ld_shlibs_CXX=no | 
 | 16251 | 	;; | 
 | 16252 |       *) | 
 | 16253 | 	# FIXME: insert proper C++ library support | 
 | 16254 | 	ld_shlibs_CXX=no | 
 | 16255 | 	;; | 
 | 16256 |     esac | 
 | 16257 |     ;; | 
 | 16258 |   sunos4*) | 
 | 16259 |     case $cc_basename in | 
 | 16260 |       CC) | 
 | 16261 | 	# Sun C++ 4.x | 
 | 16262 | 	# FIXME: insert proper C++ library support | 
 | 16263 | 	ld_shlibs_CXX=no | 
 | 16264 | 	;; | 
 | 16265 |       lcc) | 
 | 16266 | 	# Lucid | 
 | 16267 | 	# FIXME: insert proper C++ library support | 
 | 16268 | 	ld_shlibs_CXX=no | 
 | 16269 | 	;; | 
 | 16270 |       *) | 
 | 16271 | 	# FIXME: insert proper C++ library support | 
 | 16272 | 	ld_shlibs_CXX=no | 
 | 16273 | 	;; | 
 | 16274 |     esac | 
 | 16275 |     ;; | 
 | 16276 |   solaris*) | 
 | 16277 |     case $cc_basename in | 
 | 16278 |       CC) | 
 | 16279 | 	# Sun C++ 4.2, 5.x and Centerline C++ | 
 | 16280 | 	no_undefined_flag_CXX=' -zdefs' | 
 | 16281 | 	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16282 | 	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 16283 | 	$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16284 |  | 
 | 16285 | 	hardcode_libdir_flag_spec_CXX='-R$libdir' | 
 | 16286 | 	hardcode_shlibpath_var_CXX=no | 
 | 16287 | 	case $host_os in | 
 | 16288 | 	  solaris2.0-5 | solaris2.0-5.*) ;; | 
 | 16289 | 	  *) | 
 | 16290 | 	    # The C++ compiler is used as linker so we must use $wl | 
 | 16291 | 	    # flag to pass the commands to the underlying system | 
 | 16292 | 	    # linker. | 
 | 16293 | 	    # Supported since Solaris 2.6 (maybe 2.5.1?) | 
 | 16294 | 	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | 
 | 16295 | 	    ;; | 
 | 16296 | 	esac | 
 | 16297 | 	link_all_deplibs_CXX=yes | 
 | 16298 |  | 
 | 16299 | 	# Commands to make compiler produce verbose output that lists | 
 | 16300 | 	# what "hidden" libraries, object files and flags are used when | 
 | 16301 | 	# linking a shared library. | 
 | 16302 | 	# | 
 | 16303 | 	# There doesn't appear to be a way to prevent this compiler from | 
 | 16304 | 	# explicitly linking system object files so we need to strip them | 
 | 16305 | 	# from the output so that they don't get included in the library | 
 | 16306 | 	# dependencies. | 
 | 16307 | 	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' | 
 | 16308 |  | 
 | 16309 | 	# Archives containing C++ object files must be created using | 
 | 16310 | 	# "CC -xar", where "CC" is the Sun C++ compiler.  This is | 
 | 16311 | 	# necessary to make sure instantiated templates are included | 
 | 16312 | 	# in the archive. | 
 | 16313 | 	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | 
 | 16314 | 	;; | 
 | 16315 |       gcx) | 
 | 16316 | 	# Green Hills C++ Compiler | 
 | 16317 | 	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 
 | 16318 |  | 
 | 16319 | 	# The C++ compiler must be used to create the archive. | 
 | 16320 | 	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | 
 | 16321 | 	;; | 
 | 16322 |       *) | 
 | 16323 | 	# GNU C++ compiler with Solaris linker | 
 | 16324 | 	if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 
 | 16325 | 	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | 
 | 16326 | 	  if $CC --version | grep -v '^2\.7' > /dev/null; then | 
| Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 16327 | 	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16328 | 	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 16329 | 		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | 
 | 16330 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16331 | 	    # Commands to make compiler produce verbose output that lists | 
 | 16332 | 	    # what "hidden" libraries, object files and flags are used when | 
 | 16333 | 	    # linking a shared library. | 
| Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 16334 | 	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16335 | 	  else | 
 | 16336 | 	    # g++ 2.7 appears to require `-G' NOT `-shared' on this | 
 | 16337 | 	    # platform. | 
 | 16338 | 	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16339 | 	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 16340 | 		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16341 |  | 
 | 16342 | 	    # Commands to make compiler produce verbose output that lists | 
 | 16343 | 	    # what "hidden" libraries, object files and flags are used when | 
 | 16344 | 	    # linking a shared library. | 
 | 16345 | 	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | 
 | 16346 | 	  fi | 
 | 16347 |  | 
 | 16348 | 	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | 
 | 16349 | 	fi | 
 | 16350 | 	;; | 
 | 16351 |     esac | 
 | 16352 |     ;; | 
 | 16353 |   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | 
 | 16354 |     archive_cmds_need_lc_CXX=no | 
 | 16355 |     ;; | 
 | 16356 |   tandem*) | 
 | 16357 |     case $cc_basename in | 
 | 16358 |       NCC) | 
 | 16359 | 	# NonStop-UX NCC 3.20 | 
 | 16360 | 	# FIXME: insert proper C++ library support | 
 | 16361 | 	ld_shlibs_CXX=no | 
 | 16362 | 	;; | 
 | 16363 |       *) | 
 | 16364 | 	# FIXME: insert proper C++ library support | 
 | 16365 | 	ld_shlibs_CXX=no | 
 | 16366 | 	;; | 
 | 16367 |     esac | 
 | 16368 |     ;; | 
 | 16369 |   vxworks*) | 
 | 16370 |     # FIXME: insert proper C++ library support | 
 | 16371 |     ld_shlibs_CXX=no | 
 | 16372 |     ;; | 
 | 16373 |   *) | 
 | 16374 |     # FIXME: insert proper C++ library support | 
 | 16375 |     ld_shlibs_CXX=no | 
 | 16376 |     ;; | 
 | 16377 | esac | 
 | 16378 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | 
 | 16379 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | 
 | 16380 | test "$ld_shlibs_CXX" = no && can_build_shared=no | 
 | 16381 |  | 
 | 16382 | GCC_CXX="$GXX" | 
 | 16383 | LD_CXX="$LD" | 
 | 16384 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16385 |  | 
 | 16386 | cat > conftest.$ac_ext <<EOF | 
 | 16387 | class Foo | 
 | 16388 | { | 
 | 16389 | public: | 
 | 16390 |   Foo (void) { a = 0; } | 
 | 16391 | private: | 
 | 16392 |   int a; | 
 | 16393 | }; | 
 | 16394 | EOF | 
 | 16395 |  | 
 | 16396 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 16397 |   (eval $ac_compile) 2>&5 | 
 | 16398 |   ac_status=$? | 
 | 16399 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16400 |   (exit $ac_status); }; then | 
 | 16401 |   # Parse the compiler output and extract the necessary | 
 | 16402 |   # objects, libraries and library flags. | 
 | 16403 |  | 
 | 16404 |   # Sentinel used to keep track of whether or not we are before | 
 | 16405 |   # the conftest object file. | 
 | 16406 |   pre_test_object_deps_done=no | 
 | 16407 |  | 
 | 16408 |   # The `*' in the case matches for architectures that use `case' in | 
 | 16409 |   # $output_verbose_cmd can trigger glob expansion during the loop | 
 | 16410 |   # eval without this substitution. | 
 | 16411 |   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" | 
 | 16412 |  | 
 | 16413 |   for p in `eval $output_verbose_link_cmd`; do | 
 | 16414 |     case $p in | 
 | 16415 |  | 
 | 16416 |     -L* | -R* | -l*) | 
 | 16417 |        # Some compilers place space between "-{L,R}" and the path. | 
 | 16418 |        # Remove the space. | 
 | 16419 |        if test $p = "-L" \ | 
 | 16420 | 	  || test $p = "-R"; then | 
 | 16421 | 	 prev=$p | 
 | 16422 | 	 continue | 
 | 16423 |        else | 
 | 16424 | 	 prev= | 
 | 16425 |        fi | 
 | 16426 |  | 
 | 16427 |        if test "$pre_test_object_deps_done" = no; then | 
 | 16428 | 	 case $p in | 
 | 16429 | 	 -L* | -R*) | 
 | 16430 | 	   # Internal compiler library paths should come after those | 
 | 16431 | 	   # provided the user.  The postdeps already come after the | 
 | 16432 | 	   # user supplied libs so there is no need to process them. | 
 | 16433 | 	   if test -z "$compiler_lib_search_path_CXX"; then | 
 | 16434 | 	     compiler_lib_search_path_CXX="${prev}${p}" | 
 | 16435 | 	   else | 
 | 16436 | 	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | 
 | 16437 | 	   fi | 
 | 16438 | 	   ;; | 
 | 16439 | 	 # The "-l" case would never come before the object being | 
 | 16440 | 	 # linked, so don't bother handling this case. | 
 | 16441 | 	 esac | 
 | 16442 |        else | 
 | 16443 | 	 if test -z "$postdeps_CXX"; then | 
 | 16444 | 	   postdeps_CXX="${prev}${p}" | 
 | 16445 | 	 else | 
 | 16446 | 	   postdeps_CXX="${postdeps_CXX} ${prev}${p}" | 
 | 16447 | 	 fi | 
 | 16448 |        fi | 
 | 16449 |        ;; | 
 | 16450 |  | 
 | 16451 |     *.$objext) | 
 | 16452 |        # This assumes that the test object file only shows up | 
 | 16453 |        # once in the compiler output. | 
 | 16454 |        if test "$p" = "conftest.$objext"; then | 
 | 16455 | 	 pre_test_object_deps_done=yes | 
 | 16456 | 	 continue | 
 | 16457 |        fi | 
 | 16458 |  | 
 | 16459 |        if test "$pre_test_object_deps_done" = no; then | 
 | 16460 | 	 if test -z "$predep_objects_CXX"; then | 
 | 16461 | 	   predep_objects_CXX="$p" | 
 | 16462 | 	 else | 
 | 16463 | 	   predep_objects_CXX="$predep_objects_CXX $p" | 
 | 16464 | 	 fi | 
 | 16465 |        else | 
 | 16466 | 	 if test -z "$postdep_objects_CXX"; then | 
 | 16467 | 	   postdep_objects_CXX="$p" | 
 | 16468 | 	 else | 
 | 16469 | 	   postdep_objects_CXX="$postdep_objects_CXX $p" | 
 | 16470 | 	 fi | 
 | 16471 |        fi | 
 | 16472 |        ;; | 
 | 16473 |  | 
 | 16474 |     *) ;; # Ignore the rest. | 
 | 16475 |  | 
 | 16476 |     esac | 
 | 16477 |   done | 
 | 16478 |  | 
 | 16479 |   # Clean up. | 
 | 16480 |   rm -f a.out a.exe | 
 | 16481 | else | 
 | 16482 |   echo "libtool.m4: error: problem compiling CXX test program" | 
 | 16483 | fi | 
 | 16484 |  | 
 | 16485 | $rm -f confest.$objext | 
 | 16486 |  | 
 | 16487 | case " $postdeps_CXX " in | 
 | 16488 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | 
 | 16489 | esac | 
 | 16490 |  | 
 | 16491 | lt_prog_compiler_wl_CXX= | 
 | 16492 | lt_prog_compiler_pic_CXX= | 
 | 16493 | lt_prog_compiler_static_CXX= | 
 | 16494 |  | 
 | 16495 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 
 | 16496 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | 
 | 16497 |  | 
 | 16498 |   # C++ specific cases for pic, static, wl, etc. | 
 | 16499 |   if test "$GXX" = yes; then | 
 | 16500 |     lt_prog_compiler_wl_CXX='-Wl,' | 
 | 16501 |     lt_prog_compiler_static_CXX='-static' | 
 | 16502 |  | 
 | 16503 |     case $host_os in | 
 | 16504 |     aix*) | 
 | 16505 |       # All AIX code is PIC. | 
 | 16506 |       if test "$host_cpu" = ia64; then | 
 | 16507 | 	# AIX 5 now supports IA64 processor | 
 | 16508 | 	lt_prog_compiler_static_CXX='-Bstatic' | 
 | 16509 |       fi | 
 | 16510 |       ;; | 
 | 16511 |     amigaos*) | 
 | 16512 |       # FIXME: we need at least 68020 code to build shared libraries, but | 
 | 16513 |       # adding the `-m68020' flag to GCC prevents building anything better, | 
 | 16514 |       # like `-m68040'. | 
 | 16515 |       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | 
 | 16516 |       ;; | 
 | 16517 |     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
 | 16518 |       # PIC is the default for these OSes. | 
 | 16519 |       ;; | 
 | 16520 |     mingw* | os2* | pw32*) | 
 | 16521 |       # This hack is so that the source file can tell whether it is being | 
 | 16522 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 16523 |       lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | 
 | 16524 |       ;; | 
 | 16525 |     darwin* | rhapsody*) | 
 | 16526 |       # PIC is the default on this platform | 
 | 16527 |       # Common symbols not allowed in MH_DYLIB files | 
 | 16528 |       lt_prog_compiler_pic_CXX='-fno-common' | 
 | 16529 |       ;; | 
 | 16530 |     *djgpp*) | 
 | 16531 |       # DJGPP does not support shared libraries at all | 
 | 16532 |       lt_prog_compiler_pic_CXX= | 
 | 16533 |       ;; | 
 | 16534 |     sysv4*MP*) | 
 | 16535 |       if test -d /usr/nec; then | 
 | 16536 | 	lt_prog_compiler_pic_CXX=-Kconform_pic | 
 | 16537 |       fi | 
 | 16538 |       ;; | 
 | 16539 |     hpux*) | 
 | 16540 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 16541 |       # not for PA HP-UX. | 
 | 16542 |       case "$host_cpu" in | 
 | 16543 |       hppa*64*|ia64*) | 
 | 16544 | 	;; | 
 | 16545 |       *) | 
 | 16546 | 	lt_prog_compiler_pic_CXX='-fPIC' | 
 | 16547 | 	;; | 
 | 16548 |       esac | 
 | 16549 |       ;; | 
 | 16550 |     *) | 
 | 16551 |       lt_prog_compiler_pic_CXX='-fPIC' | 
 | 16552 |       ;; | 
 | 16553 |     esac | 
 | 16554 |   else | 
 | 16555 |     case $host_os in | 
 | 16556 |       aix4* | aix5*) | 
 | 16557 | 	# All AIX code is PIC. | 
 | 16558 | 	if test "$host_cpu" = ia64; then | 
 | 16559 | 	  # AIX 5 now supports IA64 processor | 
 | 16560 | 	  lt_prog_compiler_static_CXX='-Bstatic' | 
 | 16561 | 	else | 
 | 16562 | 	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | 
 | 16563 | 	fi | 
 | 16564 | 	;; | 
 | 16565 |       chorus*) | 
 | 16566 | 	case $cc_basename in | 
 | 16567 | 	cxch68) | 
 | 16568 | 	  # Green Hills C++ Compiler | 
 | 16569 | 	  # _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" | 
 | 16570 | 	  ;; | 
 | 16571 | 	esac | 
 | 16572 | 	;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16573 |        darwin*) | 
 | 16574 |          # PIC is the default on this platform | 
 | 16575 |          # Common symbols not allowed in MH_DYLIB files | 
 | 16576 |          case "$cc_basename" in | 
 | 16577 |            xlc*) | 
 | 16578 |            lt_prog_compiler_pic_CXX='-qnocommon' | 
 | 16579 |            lt_prog_compiler_wl_CXX='-Wl,' | 
 | 16580 |            ;; | 
 | 16581 |          esac | 
 | 16582 |        ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16583 |       dgux*) | 
 | 16584 | 	case $cc_basename in | 
 | 16585 | 	  ec++) | 
 | 16586 | 	    lt_prog_compiler_pic_CXX='-KPIC' | 
 | 16587 | 	    ;; | 
 | 16588 | 	  ghcx) | 
 | 16589 | 	    # Green Hills C++ Compiler | 
 | 16590 | 	    lt_prog_compiler_pic_CXX='-pic' | 
 | 16591 | 	    ;; | 
 | 16592 | 	  *) | 
 | 16593 | 	    ;; | 
 | 16594 | 	esac | 
 | 16595 | 	;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16596 |       freebsd* | kfreebsd*-gnu) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16597 | 	# FreeBSD uses GNU C++ | 
 | 16598 | 	;; | 
 | 16599 |       hpux9* | hpux10* | hpux11*) | 
 | 16600 | 	case $cc_basename in | 
 | 16601 | 	  CC) | 
 | 16602 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 16603 | 	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | 
 | 16604 | 	    if test "$host_cpu" != ia64; then | 
 | 16605 | 	      lt_prog_compiler_pic_CXX='+Z' | 
 | 16606 | 	    fi | 
 | 16607 | 	    ;; | 
 | 16608 | 	  aCC) | 
 | 16609 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 16610 | 	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | 
 | 16611 | 	    case "$host_cpu" in | 
 | 16612 | 	    hppa*64*|ia64*) | 
 | 16613 | 	      # +Z the default | 
 | 16614 | 	      ;; | 
 | 16615 | 	    *) | 
 | 16616 | 	      lt_prog_compiler_pic_CXX='+Z' | 
 | 16617 | 	      ;; | 
 | 16618 | 	    esac | 
 | 16619 | 	    ;; | 
 | 16620 | 	  *) | 
 | 16621 | 	    ;; | 
 | 16622 | 	esac | 
 | 16623 | 	;; | 
 | 16624 |       irix5* | irix6* | nonstopux*) | 
 | 16625 | 	case $cc_basename in | 
 | 16626 | 	  CC) | 
 | 16627 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 16628 | 	    lt_prog_compiler_static_CXX='-non_shared' | 
 | 16629 | 	    # CC pic flag -KPIC is the default. | 
 | 16630 | 	    ;; | 
 | 16631 | 	  *) | 
 | 16632 | 	    ;; | 
 | 16633 | 	esac | 
 | 16634 | 	;; | 
 | 16635 |       linux*) | 
 | 16636 | 	case $cc_basename in | 
 | 16637 | 	  KCC) | 
 | 16638 | 	    # KAI C++ Compiler | 
 | 16639 | 	    lt_prog_compiler_wl_CXX='--backend -Wl,' | 
 | 16640 | 	    lt_prog_compiler_pic_CXX='-fPIC' | 
 | 16641 | 	    ;; | 
 | 16642 | 	  icpc) | 
 | 16643 | 	    # Intel C++ | 
 | 16644 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 16645 | 	    lt_prog_compiler_pic_CXX='-KPIC' | 
 | 16646 | 	    lt_prog_compiler_static_CXX='-static' | 
 | 16647 | 	    ;; | 
 | 16648 | 	  cxx) | 
 | 16649 | 	    # Compaq C++ | 
 | 16650 | 	    # Make sure the PIC flag is empty.  It appears that all Alpha | 
 | 16651 | 	    # Linux and Compaq Tru64 Unix objects are PIC. | 
 | 16652 | 	    lt_prog_compiler_pic_CXX= | 
 | 16653 | 	    lt_prog_compiler_static_CXX='-non_shared' | 
 | 16654 | 	    ;; | 
 | 16655 | 	  *) | 
 | 16656 | 	    ;; | 
 | 16657 | 	esac | 
 | 16658 | 	;; | 
 | 16659 |       lynxos*) | 
 | 16660 | 	;; | 
 | 16661 |       m88k*) | 
 | 16662 | 	;; | 
 | 16663 |       mvs*) | 
 | 16664 | 	case $cc_basename in | 
 | 16665 | 	  cxx) | 
 | 16666 | 	    lt_prog_compiler_pic_CXX='-W c,exportall' | 
 | 16667 | 	    ;; | 
 | 16668 | 	  *) | 
 | 16669 | 	    ;; | 
 | 16670 | 	esac | 
 | 16671 | 	;; | 
 | 16672 |       netbsd*) | 
 | 16673 | 	;; | 
 | 16674 |       osf3* | osf4* | osf5*) | 
 | 16675 | 	case $cc_basename in | 
 | 16676 | 	  KCC) | 
 | 16677 | 	    lt_prog_compiler_wl_CXX='--backend -Wl,' | 
 | 16678 | 	    ;; | 
 | 16679 | 	  RCC) | 
 | 16680 | 	    # Rational C++ 2.4.1 | 
 | 16681 | 	    lt_prog_compiler_pic_CXX='-pic' | 
 | 16682 | 	    ;; | 
 | 16683 | 	  cxx) | 
 | 16684 | 	    # Digital/Compaq C++ | 
 | 16685 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 16686 | 	    # Make sure the PIC flag is empty.  It appears that all Alpha | 
 | 16687 | 	    # Linux and Compaq Tru64 Unix objects are PIC. | 
 | 16688 | 	    lt_prog_compiler_pic_CXX= | 
 | 16689 | 	    lt_prog_compiler_static_CXX='-non_shared' | 
 | 16690 | 	    ;; | 
 | 16691 | 	  *) | 
 | 16692 | 	    ;; | 
 | 16693 | 	esac | 
 | 16694 | 	;; | 
 | 16695 |       psos*) | 
 | 16696 | 	;; | 
 | 16697 |       sco*) | 
 | 16698 | 	case $cc_basename in | 
 | 16699 | 	  CC) | 
 | 16700 | 	    lt_prog_compiler_pic_CXX='-fPIC' | 
 | 16701 | 	    ;; | 
 | 16702 | 	  *) | 
 | 16703 | 	    ;; | 
 | 16704 | 	esac | 
 | 16705 | 	;; | 
 | 16706 |       solaris*) | 
 | 16707 | 	case $cc_basename in | 
 | 16708 | 	  CC) | 
 | 16709 | 	    # Sun C++ 4.2, 5.x and Centerline C++ | 
 | 16710 | 	    lt_prog_compiler_pic_CXX='-KPIC' | 
 | 16711 | 	    lt_prog_compiler_static_CXX='-Bstatic' | 
 | 16712 | 	    lt_prog_compiler_wl_CXX='-Qoption ld ' | 
 | 16713 | 	    ;; | 
 | 16714 | 	  gcx) | 
 | 16715 | 	    # Green Hills C++ Compiler | 
 | 16716 | 	    lt_prog_compiler_pic_CXX='-PIC' | 
 | 16717 | 	    ;; | 
 | 16718 | 	  *) | 
 | 16719 | 	    ;; | 
 | 16720 | 	esac | 
 | 16721 | 	;; | 
 | 16722 |       sunos4*) | 
 | 16723 | 	case $cc_basename in | 
 | 16724 | 	  CC) | 
 | 16725 | 	    # Sun C++ 4.x | 
 | 16726 | 	    lt_prog_compiler_pic_CXX='-pic' | 
 | 16727 | 	    lt_prog_compiler_static_CXX='-Bstatic' | 
 | 16728 | 	    ;; | 
 | 16729 | 	  lcc) | 
 | 16730 | 	    # Lucid | 
 | 16731 | 	    lt_prog_compiler_pic_CXX='-pic' | 
 | 16732 | 	    ;; | 
 | 16733 | 	  *) | 
 | 16734 | 	    ;; | 
 | 16735 | 	esac | 
 | 16736 | 	;; | 
 | 16737 |       tandem*) | 
 | 16738 | 	case $cc_basename in | 
 | 16739 | 	  NCC) | 
 | 16740 | 	    # NonStop-UX NCC 3.20 | 
 | 16741 | 	    lt_prog_compiler_pic_CXX='-KPIC' | 
 | 16742 | 	    ;; | 
 | 16743 | 	  *) | 
 | 16744 | 	    ;; | 
 | 16745 | 	esac | 
 | 16746 | 	;; | 
 | 16747 |       unixware*) | 
 | 16748 | 	;; | 
 | 16749 |       vxworks*) | 
 | 16750 | 	;; | 
 | 16751 |       *) | 
 | 16752 | 	lt_prog_compiler_can_build_shared_CXX=no | 
 | 16753 | 	;; | 
 | 16754 |     esac | 
 | 16755 |   fi | 
 | 16756 |  | 
 | 16757 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 | 
 | 16758 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 | 
 | 16759 |  | 
 | 16760 | # | 
 | 16761 | # Check to make sure the PIC flag actually works. | 
 | 16762 | # | 
 | 16763 | if test -n "$lt_prog_compiler_pic_CXX"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16764 |  | 
 | 16765 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16766 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 | 
 | 16767 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then | 
 | 16768 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 16769 | else | 
 | 16770 |   lt_prog_compiler_pic_works_CXX=no | 
 | 16771 |   ac_outfile=conftest.$ac_objext | 
 | 16772 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 16773 |    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | 
 | 16774 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 16775 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 16776 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 16777 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 16778 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 16779 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 16780 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 16781 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 16782 |    -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 16783 |    (eval echo "\"\$as_me:16783: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16784 |    (eval "$lt_compile" 2>conftest.err) | 
 | 16785 |    ac_status=$? | 
 | 16786 |    cat conftest.err >&5 | 
| Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 16787 |    echo "$as_me:16787: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16788 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 16789 |      # The compiler can only warn and ignore the option if not recognized | 
 | 16790 |      # So say no if there are warnings | 
 | 16791 |      if test ! -s conftest.err; then | 
 | 16792 |        lt_prog_compiler_pic_works_CXX=yes | 
 | 16793 |      fi | 
 | 16794 |    fi | 
 | 16795 |    $rm conftest* | 
 | 16796 |  | 
 | 16797 | fi | 
 | 16798 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 | 
 | 16799 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 | 
 | 16800 |  | 
 | 16801 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then | 
 | 16802 |     case $lt_prog_compiler_pic_CXX in | 
 | 16803 |      "" | " "*) ;; | 
 | 16804 |      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | 
 | 16805 |      esac | 
 | 16806 | else | 
 | 16807 |     lt_prog_compiler_pic_CXX= | 
 | 16808 |      lt_prog_compiler_can_build_shared_CXX=no | 
 | 16809 | fi | 
 | 16810 |  | 
 | 16811 | fi | 
 | 16812 | case "$host_os" in | 
 | 16813 |   # For platforms which do not support PIC, -DPIC is meaningless: | 
 | 16814 |   *djgpp*) | 
 | 16815 |     lt_prog_compiler_pic_CXX= | 
 | 16816 |     ;; | 
 | 16817 |   *) | 
 | 16818 |     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | 
 | 16819 |     ;; | 
 | 16820 | esac | 
 | 16821 |  | 
 | 16822 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
 | 16823 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | 
 | 16824 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | 
 | 16825 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 16826 | else | 
 | 16827 |   lt_cv_prog_compiler_c_o_CXX=no | 
 | 16828 |    $rm -r conftest 2>/dev/null | 
 | 16829 |    mkdir conftest | 
 | 16830 |    cd conftest | 
 | 16831 |    mkdir out | 
 | 16832 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 16833 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16834 |    lt_compiler_flag="-o out/conftest2.$ac_objext" | 
 | 16835 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 16836 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 16837 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 16838 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 16839 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 16840 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 16841 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 16842 |    -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 16843 |    (eval echo "\"\$as_me:16843: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16844 |    (eval "$lt_compile" 2>out/conftest.err) | 
 | 16845 |    ac_status=$? | 
 | 16846 |    cat out/conftest.err >&5 | 
| Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 16847 |    echo "$as_me:16847: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16848 |    if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
 | 16849 |    then | 
 | 16850 |      # The compiler can only warn and ignore the option if not recognized | 
 | 16851 |      # So say no if there are warnings | 
 | 16852 |      if test ! -s out/conftest.err; then | 
 | 16853 |        lt_cv_prog_compiler_c_o_CXX=yes | 
 | 16854 |      fi | 
 | 16855 |    fi | 
 | 16856 |    chmod u+w . | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16857 |    $rm conftest* | 
 | 16858 |    # SGI C++ compiler will create directory out/ii_files/ for | 
 | 16859 |    # template instantiation | 
 | 16860 |    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | 
 | 16861 |    $rm out/* && rmdir out | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16862 |    cd .. | 
 | 16863 |    rmdir conftest | 
 | 16864 |    $rm conftest* | 
 | 16865 |  | 
 | 16866 | fi | 
 | 16867 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | 
 | 16868 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 | 
 | 16869 |  | 
 | 16870 |  | 
 | 16871 | hard_links="nottested" | 
 | 16872 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | 
 | 16873 |   # do not overwrite the value of need_locks provided by the user | 
 | 16874 |   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | 
 | 16875 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | 
 | 16876 |   hard_links=yes | 
 | 16877 |   $rm conftest* | 
 | 16878 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 16879 |   touch conftest.a | 
 | 16880 |   ln conftest.a conftest.b 2>&5 || hard_links=no | 
 | 16881 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 16882 |   echo "$as_me:$LINENO: result: $hard_links" >&5 | 
 | 16883 | echo "${ECHO_T}$hard_links" >&6 | 
 | 16884 |   if test "$hard_links" = no; then | 
 | 16885 |     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
 | 16886 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
 | 16887 |     need_locks=warn | 
 | 16888 |   fi | 
 | 16889 | else | 
 | 16890 |   need_locks=no | 
 | 16891 | fi | 
 | 16892 |  | 
 | 16893 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
 | 16894 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
 | 16895 |  | 
 | 16896 |   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 16897 |   case $host_os in | 
 | 16898 |   aix4* | aix5*) | 
 | 16899 |     # If we're using GNU nm, then we don't want the "-C" option. | 
 | 16900 |     # -C means demangle to AIX nm, but means don't demangle with GNU nm | 
 | 16901 |     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 
 | 16902 |       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' | 
 | 16903 |     else | 
 | 16904 |       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' | 
 | 16905 |     fi | 
 | 16906 |     ;; | 
 | 16907 |   pw32*) | 
 | 16908 |     export_symbols_cmds_CXX="$ltdll_cmds" | 
 | 16909 |   ;; | 
 | 16910 |   cygwin* | mingw*) | 
 | 16911 |     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 16912 |   ;; | 
 | 16913 |   *) | 
 | 16914 |     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 16915 |   ;; | 
 | 16916 |   esac | 
 | 16917 |  | 
 | 16918 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | 
 | 16919 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | 
 | 16920 | test "$ld_shlibs_CXX" = no && can_build_shared=no | 
 | 16921 |  | 
 | 16922 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
 | 16923 | if test "$GCC" = yes; then | 
 | 16924 |   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
 | 16925 | fi | 
 | 16926 |  | 
 | 16927 | # | 
 | 16928 | # Do we need to explicitly link libc? | 
 | 16929 | # | 
 | 16930 | case "x$archive_cmds_need_lc_CXX" in | 
 | 16931 | x|xyes) | 
 | 16932 |   # Assume -lc should be added | 
 | 16933 |   archive_cmds_need_lc_CXX=yes | 
 | 16934 |  | 
 | 16935 |   if test "$enable_shared" = yes && test "$GCC" = yes; then | 
 | 16936 |     case $archive_cmds_CXX in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16937 |     *'~'*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16938 |       # FIXME: we may have to deal with multi-command sequences. | 
 | 16939 |       ;; | 
 | 16940 |     '$CC '*) | 
 | 16941 |       # Test whether the compiler implicitly links with -lc since on some | 
 | 16942 |       # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
 | 16943 |       # to ld, don't add -lc before -lgcc. | 
 | 16944 |       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | 
 | 16945 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | 
 | 16946 |       $rm conftest* | 
 | 16947 |       printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 16948 |  | 
 | 16949 |       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 16950 |   (eval $ac_compile) 2>&5 | 
 | 16951 |   ac_status=$? | 
 | 16952 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16953 |   (exit $ac_status); } 2>conftest.err; then | 
 | 16954 |         soname=conftest | 
 | 16955 |         lib=conftest | 
 | 16956 |         libobjs=conftest.$ac_objext | 
 | 16957 |         deplibs= | 
 | 16958 |         wl=$lt_prog_compiler_wl_CXX | 
 | 16959 |         compiler_flags=-v | 
 | 16960 |         linker_flags=-v | 
 | 16961 |         verstring= | 
 | 16962 |         output_objdir=. | 
 | 16963 |         libname=conftest | 
 | 16964 |         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | 
 | 16965 |         allow_undefined_flag_CXX= | 
 | 16966 |         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | 
 | 16967 |   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
 | 16968 |   ac_status=$? | 
 | 16969 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16970 |   (exit $ac_status); } | 
 | 16971 |         then | 
 | 16972 | 	  archive_cmds_need_lc_CXX=no | 
 | 16973 |         else | 
 | 16974 | 	  archive_cmds_need_lc_CXX=yes | 
 | 16975 |         fi | 
 | 16976 |         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | 
 | 16977 |       else | 
 | 16978 |         cat conftest.err 1>&5 | 
 | 16979 |       fi | 
 | 16980 |       $rm conftest* | 
 | 16981 |       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 | 
 | 16982 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 | 
 | 16983 |       ;; | 
 | 16984 |     esac | 
 | 16985 |   fi | 
 | 16986 |   ;; | 
 | 16987 | esac | 
 | 16988 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16989 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
 | 16990 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 
 | 16991 | library_names_spec= | 
 | 16992 | libname_spec='lib$name' | 
 | 16993 | soname_spec= | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16994 | shrext_cmds=".so" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16995 | postinstall_cmds= | 
 | 16996 | postuninstall_cmds= | 
 | 16997 | finish_cmds= | 
 | 16998 | finish_eval= | 
 | 16999 | shlibpath_var= | 
 | 17000 | shlibpath_overrides_runpath=unknown | 
 | 17001 | version_type=none | 
 | 17002 | dynamic_linker="$host_os ld.so" | 
 | 17003 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
 | 17004 | if test "$GCC" = yes; then | 
 | 17005 |   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 17006 |   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
 | 17007 |     # if the path contains ";" then we assume it to be the separator | 
 | 17008 |     # otherwise default to the standard path separator (i.e. ":") - it is | 
 | 17009 |     # assumed that no part of a normal pathname contains ";" but that should | 
 | 17010 |     # okay in the real world where ";" in dirpaths is itself problematic. | 
 | 17011 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 17012 |   else | 
 | 17013 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 17014 |   fi | 
 | 17015 | else | 
 | 17016 |   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
 | 17017 | fi | 
 | 17018 | need_lib_prefix=unknown | 
 | 17019 | hardcode_into_libs=no | 
 | 17020 |  | 
 | 17021 | # when you set need_version to no, make sure it does not cause -set_version | 
 | 17022 | # flags to be left without arguments | 
 | 17023 | need_version=unknown | 
 | 17024 |  | 
 | 17025 | case $host_os in | 
 | 17026 | aix3*) | 
 | 17027 |   version_type=linux | 
 | 17028 |   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
 | 17029 |   shlibpath_var=LIBPATH | 
 | 17030 |  | 
 | 17031 |   # AIX 3 has no versioning support, so we append a major version to the name. | 
 | 17032 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17033 |   ;; | 
 | 17034 |  | 
 | 17035 | aix4* | aix5*) | 
 | 17036 |   version_type=linux | 
 | 17037 |   need_lib_prefix=no | 
 | 17038 |   need_version=no | 
 | 17039 |   hardcode_into_libs=yes | 
 | 17040 |   if test "$host_cpu" = ia64; then | 
 | 17041 |     # AIX 5 supports IA64 | 
 | 17042 |     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
 | 17043 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 17044 |   else | 
 | 17045 |     # With GCC up to 2.95.x, collect2 would create an import file | 
 | 17046 |     # for dependence libraries.  The import file would start with | 
 | 17047 |     # the line `#! .'.  This would cause the generated library to | 
 | 17048 |     # depend on `.', always an invalid library.  This was fixed in | 
 | 17049 |     # development snapshots of GCC prior to 3.0. | 
 | 17050 |     case $host_os in | 
 | 17051 |       aix4 | aix4.[01] | aix4.[01].*) | 
 | 17052 |       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
 | 17053 | 	   echo ' yes ' | 
 | 17054 | 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
 | 17055 | 	: | 
 | 17056 |       else | 
 | 17057 | 	can_build_shared=no | 
 | 17058 |       fi | 
 | 17059 |       ;; | 
 | 17060 |     esac | 
 | 17061 |     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
 | 17062 |     # soname into executable. Probably we can add versioning support to | 
 | 17063 |     # collect2, so additional links can be useful in future. | 
 | 17064 |     if test "$aix_use_runtimelinking" = yes; then | 
 | 17065 |       # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
 | 17066 |       # instead of lib<name>.a to let people know that these are not | 
 | 17067 |       # typical AIX shared libraries. | 
 | 17068 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17069 |     else | 
 | 17070 |       # We preserve .a as extension for shared libraries through AIX4.2 | 
 | 17071 |       # and later when we are not doing run time linking. | 
 | 17072 |       library_names_spec='${libname}${release}.a $libname.a' | 
 | 17073 |       soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17074 |     fi | 
 | 17075 |     shlibpath_var=LIBPATH | 
 | 17076 |   fi | 
 | 17077 |   ;; | 
 | 17078 |  | 
 | 17079 | amigaos*) | 
 | 17080 |   library_names_spec='$libname.ixlibrary $libname.a' | 
 | 17081 |   # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17082 |   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17083 |   ;; | 
 | 17084 |  | 
 | 17085 | beos*) | 
 | 17086 |   library_names_spec='${libname}${shared_ext}' | 
 | 17087 |   dynamic_linker="$host_os ld.so" | 
 | 17088 |   shlibpath_var=LIBRARY_PATH | 
 | 17089 |   ;; | 
 | 17090 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17091 | bsdi[45]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17092 |   version_type=linux | 
 | 17093 |   need_version=no | 
 | 17094 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17095 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17096 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
 | 17097 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17098 |   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
 | 17099 |   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
 | 17100 |   # the default ld.so.conf also contains /usr/contrib/lib and | 
 | 17101 |   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
 | 17102 |   # libtool to hard-code these into programs | 
 | 17103 |   ;; | 
 | 17104 |  | 
 | 17105 | cygwin* | mingw* | pw32*) | 
 | 17106 |   version_type=windows | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17107 |   shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17108 |   need_version=no | 
 | 17109 |   need_lib_prefix=no | 
 | 17110 |  | 
 | 17111 |   case $GCC,$host_os in | 
 | 17112 |   yes,cygwin* | yes,mingw* | yes,pw32*) | 
 | 17113 |     library_names_spec='$libname.dll.a' | 
 | 17114 |     # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17115 |     postinstall_cmds='base_file=`basename \${file}`~ | 
 | 17116 |       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
 | 17117 |       dldir=$destdir/`dirname \$dlpath`~ | 
 | 17118 |       test -d \$dldir || mkdir -p \$dldir~ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17119 |       $install_prog $dir/$dlname \$dldir/$dlname' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17120 |     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
 | 17121 |       dlpath=$dir/\$dldll~ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17122 |        $rm \$dlpath' | 
 | 17123 |     shlibpath_overrides_runpath=yes | 
 | 17124 |  | 
 | 17125 |     case $host_os in | 
 | 17126 |     cygwin*) | 
 | 17127 |       # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
 | 17128 |       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17129 |       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17130 |       ;; | 
 | 17131 |     mingw*) | 
 | 17132 |       # MinGW DLLs use traditional 'lib' prefix | 
 | 17133 |       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 17134 |       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 17135 |       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
 | 17136 |         # It is most probably a Windows format PATH printed by | 
 | 17137 |         # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
 | 17138 |         # path with ; separators, and with drive letters. We can handle the | 
 | 17139 |         # drive letters (cygwin fileutils understands them), so leave them, | 
 | 17140 |         # especially as we might pass files found there to a mingw objdump, | 
 | 17141 |         # which wouldn't understand a cygwinified path. Ahh. | 
 | 17142 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 17143 |       else | 
 | 17144 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 17145 |       fi | 
 | 17146 |       ;; | 
 | 17147 |     pw32*) | 
 | 17148 |       # pw32 DLLs use 'pw' prefix rather than 'lib' | 
 | 17149 |       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | 
 | 17150 |       ;; | 
 | 17151 |     esac | 
 | 17152 |     ;; | 
 | 17153 |  | 
 | 17154 |   *) | 
 | 17155 |     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
 | 17156 |     ;; | 
 | 17157 |   esac | 
 | 17158 |   dynamic_linker='Win32 ld.exe' | 
 | 17159 |   # FIXME: first we should search . and the directory the executable is in | 
 | 17160 |   shlibpath_var=PATH | 
 | 17161 |   ;; | 
 | 17162 |  | 
 | 17163 | darwin* | rhapsody*) | 
 | 17164 |   dynamic_linker="$host_os dyld" | 
 | 17165 |   version_type=darwin | 
 | 17166 |   need_lib_prefix=no | 
 | 17167 |   need_version=no | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17168 |   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17169 |   soname_spec='${libname}${release}${major}$shared_ext' | 
 | 17170 |   shlibpath_overrides_runpath=yes | 
 | 17171 |   shlibpath_var=DYLD_LIBRARY_PATH | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17172 |   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17173 |   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17174 |   if test "$GCC" = yes; then | 
 | 17175 |     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"` | 
 | 17176 |   else | 
 | 17177 |     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17178 |   fi | 
 | 17179 |   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
 | 17180 |   ;; | 
 | 17181 |  | 
 | 17182 | dgux*) | 
 | 17183 |   version_type=linux | 
 | 17184 |   need_lib_prefix=no | 
 | 17185 |   need_version=no | 
 | 17186 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
 | 17187 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17188 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17189 |   ;; | 
 | 17190 |  | 
 | 17191 | freebsd1*) | 
 | 17192 |   dynamic_linker=no | 
 | 17193 |   ;; | 
 | 17194 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17195 | kfreebsd*-gnu) | 
 | 17196 |   version_type=linux | 
 | 17197 |   need_lib_prefix=no | 
 | 17198 |   need_version=no | 
 | 17199 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 17200 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17201 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17202 |   shlibpath_overrides_runpath=no | 
 | 17203 |   hardcode_into_libs=yes | 
 | 17204 |   dynamic_linker='GNU ld.so' | 
 | 17205 |   ;; | 
 | 17206 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17207 | freebsd*) | 
 | 17208 |   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | 
 | 17209 |   version_type=freebsd-$objformat | 
 | 17210 |   case $version_type in | 
 | 17211 |     freebsd-elf*) | 
 | 17212 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 17213 |       need_version=no | 
 | 17214 |       need_lib_prefix=no | 
 | 17215 |       ;; | 
 | 17216 |     freebsd-*) | 
 | 17217 |       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
 | 17218 |       need_version=yes | 
 | 17219 |       ;; | 
 | 17220 |   esac | 
 | 17221 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17222 |   case $host_os in | 
 | 17223 |   freebsd2*) | 
 | 17224 |     shlibpath_overrides_runpath=yes | 
 | 17225 |     ;; | 
 | 17226 |   freebsd3.01* | freebsdelf3.01*) | 
 | 17227 |     shlibpath_overrides_runpath=yes | 
 | 17228 |     hardcode_into_libs=yes | 
 | 17229 |     ;; | 
 | 17230 |   *) # from 3.2 on | 
 | 17231 |     shlibpath_overrides_runpath=no | 
 | 17232 |     hardcode_into_libs=yes | 
 | 17233 |     ;; | 
 | 17234 |   esac | 
 | 17235 |   ;; | 
 | 17236 |  | 
 | 17237 | gnu*) | 
 | 17238 |   version_type=linux | 
 | 17239 |   need_lib_prefix=no | 
 | 17240 |   need_version=no | 
 | 17241 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
 | 17242 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17243 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17244 |   hardcode_into_libs=yes | 
 | 17245 |   ;; | 
 | 17246 |  | 
 | 17247 | hpux9* | hpux10* | hpux11*) | 
 | 17248 |   # Give a soname corresponding to the major version so that dld.sl refuses to | 
 | 17249 |   # link against other versions. | 
 | 17250 |   version_type=sunos | 
 | 17251 |   need_lib_prefix=no | 
 | 17252 |   need_version=no | 
 | 17253 |   case "$host_cpu" in | 
 | 17254 |   ia64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17255 |     shrext_cmds='.so' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17256 |     hardcode_into_libs=yes | 
 | 17257 |     dynamic_linker="$host_os dld.so" | 
 | 17258 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 17259 |     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 17260 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17261 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17262 |     if test "X$HPUX_IA64_MODE" = X32; then | 
 | 17263 |       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
 | 17264 |     else | 
 | 17265 |       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
 | 17266 |     fi | 
 | 17267 |     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 17268 |     ;; | 
 | 17269 |    hppa*64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17270 |      shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17271 |      hardcode_into_libs=yes | 
 | 17272 |      dynamic_linker="$host_os dld.sl" | 
 | 17273 |      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
 | 17274 |      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 17275 |      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17276 |      soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17277 |      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
 | 17278 |      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 17279 |      ;; | 
 | 17280 |    *) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17281 |     shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17282 |     dynamic_linker="$host_os dld.sl" | 
 | 17283 |     shlibpath_var=SHLIB_PATH | 
 | 17284 |     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
 | 17285 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17286 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17287 |     ;; | 
 | 17288 |   esac | 
 | 17289 |   # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
 | 17290 |   postinstall_cmds='chmod 555 $lib' | 
 | 17291 |   ;; | 
 | 17292 |  | 
 | 17293 | irix5* | irix6* | nonstopux*) | 
 | 17294 |   case $host_os in | 
 | 17295 |     nonstopux*) version_type=nonstopux ;; | 
 | 17296 |     *) | 
 | 17297 | 	if test "$lt_cv_prog_gnu_ld" = yes; then | 
 | 17298 | 		version_type=linux | 
 | 17299 | 	else | 
 | 17300 | 		version_type=irix | 
 | 17301 | 	fi ;; | 
 | 17302 |   esac | 
 | 17303 |   need_lib_prefix=no | 
 | 17304 |   need_version=no | 
 | 17305 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17306 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 17307 |   case $host_os in | 
 | 17308 |   irix5* | nonstopux*) | 
 | 17309 |     libsuff= shlibsuff= | 
 | 17310 |     ;; | 
 | 17311 |   *) | 
 | 17312 |     case $LD in # libtool.m4 will add one of these switches to LD | 
 | 17313 |     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
 | 17314 |       libsuff= shlibsuff= libmagic=32-bit;; | 
 | 17315 |     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
 | 17316 |       libsuff=32 shlibsuff=N32 libmagic=N32;; | 
 | 17317 |     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
 | 17318 |       libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
 | 17319 |     *) libsuff= shlibsuff= libmagic=never-match;; | 
 | 17320 |     esac | 
 | 17321 |     ;; | 
 | 17322 |   esac | 
 | 17323 |   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
 | 17324 |   shlibpath_overrides_runpath=no | 
 | 17325 |   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
 | 17326 |   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
 | 17327 |   hardcode_into_libs=yes | 
 | 17328 |   ;; | 
 | 17329 |  | 
 | 17330 | # No shared lib support for Linux oldld, aout, or coff. | 
 | 17331 | linux*oldld* | linux*aout* | linux*coff*) | 
 | 17332 |   dynamic_linker=no | 
 | 17333 |   ;; | 
 | 17334 |  | 
 | 17335 | # This must be Linux ELF. | 
 | 17336 | linux*) | 
 | 17337 |   version_type=linux | 
 | 17338 |   need_lib_prefix=no | 
 | 17339 |   need_version=no | 
 | 17340 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17341 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17342 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
 | 17343 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17344 |   shlibpath_overrides_runpath=no | 
 | 17345 |   # This implies no fast_install, which is unacceptable. | 
 | 17346 |   # Some rework will be needed to allow for fast_install | 
 | 17347 |   # before this can be enabled. | 
 | 17348 |   hardcode_into_libs=yes | 
 | 17349 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17350 |   # Append ld.so.conf contents to the search path | 
 | 17351 |   if test -f /etc/ld.so.conf; then | 
 | 17352 |     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` | 
 | 17353 |     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 
 | 17354 |   fi | 
 | 17355 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17356 |   # We used to test for /lib/ld.so.1 and disable shared libraries on | 
 | 17357 |   # powerpc, because MkLinux only supported shared libraries with the | 
 | 17358 |   # GNU dynamic linker.  Since this was broken with cross compilers, | 
 | 17359 |   # most powerpc-linux boxes support dynamic linking these days and | 
 | 17360 |   # people can always --disable-shared, the test was removed, and we | 
 | 17361 |   # assume the GNU/Linux dynamic linker is in use. | 
 | 17362 |   dynamic_linker='GNU/Linux ld.so' | 
 | 17363 |   ;; | 
 | 17364 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17365 | knetbsd*-gnu) | 
 | 17366 |   version_type=linux | 
 | 17367 |   need_lib_prefix=no | 
 | 17368 |   need_version=no | 
 | 17369 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 17370 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17371 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17372 |   shlibpath_overrides_runpath=no | 
 | 17373 |   hardcode_into_libs=yes | 
 | 17374 |   dynamic_linker='GNU ld.so' | 
 | 17375 |   ;; | 
 | 17376 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17377 | netbsd*) | 
 | 17378 |   version_type=sunos | 
 | 17379 |   need_lib_prefix=no | 
 | 17380 |   need_version=no | 
 | 17381 |   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 17382 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 17383 |     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 17384 |     dynamic_linker='NetBSD (a.out) ld.so' | 
 | 17385 |   else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17386 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17387 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17388 |     dynamic_linker='NetBSD ld.elf_so' | 
 | 17389 |   fi | 
 | 17390 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17391 |   shlibpath_overrides_runpath=yes | 
 | 17392 |   hardcode_into_libs=yes | 
 | 17393 |   ;; | 
 | 17394 |  | 
 | 17395 | newsos6) | 
 | 17396 |   version_type=linux | 
 | 17397 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17398 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17399 |   shlibpath_overrides_runpath=yes | 
 | 17400 |   ;; | 
 | 17401 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17402 | nto-qnx*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17403 |   version_type=linux | 
 | 17404 |   need_lib_prefix=no | 
 | 17405 |   need_version=no | 
 | 17406 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17407 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17408 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17409 |   shlibpath_overrides_runpath=yes | 
 | 17410 |   ;; | 
 | 17411 |  | 
 | 17412 | openbsd*) | 
 | 17413 |   version_type=sunos | 
 | 17414 |   need_lib_prefix=no | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 17415 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17416 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 17417 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 17418 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17419 |   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 17420 |     case $host_os in | 
 | 17421 |       openbsd2.[89] | openbsd2.[89].*) | 
 | 17422 | 	shlibpath_overrides_runpath=no | 
 | 17423 | 	;; | 
 | 17424 |       *) | 
 | 17425 | 	shlibpath_overrides_runpath=yes | 
 | 17426 | 	;; | 
 | 17427 |       esac | 
 | 17428 |   else | 
 | 17429 |     shlibpath_overrides_runpath=yes | 
 | 17430 |   fi | 
 | 17431 |   ;; | 
 | 17432 |  | 
 | 17433 | os2*) | 
 | 17434 |   libname_spec='$name' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17435 |   shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17436 |   need_lib_prefix=no | 
 | 17437 |   library_names_spec='$libname${shared_ext} $libname.a' | 
 | 17438 |   dynamic_linker='OS/2 ld.exe' | 
 | 17439 |   shlibpath_var=LIBPATH | 
 | 17440 |   ;; | 
 | 17441 |  | 
 | 17442 | osf3* | osf4* | osf5*) | 
 | 17443 |   version_type=osf | 
 | 17444 |   need_lib_prefix=no | 
 | 17445 |   need_version=no | 
 | 17446 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17447 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17448 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17449 |   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
 | 17450 |   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
 | 17451 |   ;; | 
 | 17452 |  | 
 | 17453 | sco3.2v5*) | 
 | 17454 |   version_type=osf | 
 | 17455 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17456 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17457 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17458 |   ;; | 
 | 17459 |  | 
 | 17460 | solaris*) | 
 | 17461 |   version_type=linux | 
 | 17462 |   need_lib_prefix=no | 
 | 17463 |   need_version=no | 
 | 17464 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17465 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17466 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17467 |   shlibpath_overrides_runpath=yes | 
 | 17468 |   hardcode_into_libs=yes | 
 | 17469 |   # ldd complains unless libraries are executable | 
 | 17470 |   postinstall_cmds='chmod +x $lib' | 
 | 17471 |   ;; | 
 | 17472 |  | 
 | 17473 | sunos4*) | 
 | 17474 |   version_type=sunos | 
 | 17475 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 17476 |   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
 | 17477 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17478 |   shlibpath_overrides_runpath=yes | 
 | 17479 |   if test "$with_gnu_ld" = yes; then | 
 | 17480 |     need_lib_prefix=no | 
 | 17481 |   fi | 
 | 17482 |   need_version=yes | 
 | 17483 |   ;; | 
 | 17484 |  | 
 | 17485 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 17486 |   version_type=linux | 
 | 17487 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17488 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17489 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17490 |   case $host_vendor in | 
 | 17491 |     sni) | 
 | 17492 |       shlibpath_overrides_runpath=no | 
 | 17493 |       need_lib_prefix=no | 
 | 17494 |       export_dynamic_flag_spec='${wl}-Blargedynsym' | 
 | 17495 |       runpath_var=LD_RUN_PATH | 
 | 17496 |       ;; | 
 | 17497 |     siemens) | 
 | 17498 |       need_lib_prefix=no | 
 | 17499 |       ;; | 
 | 17500 |     motorola) | 
 | 17501 |       need_lib_prefix=no | 
 | 17502 |       need_version=no | 
 | 17503 |       shlibpath_overrides_runpath=no | 
 | 17504 |       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
 | 17505 |       ;; | 
 | 17506 |   esac | 
 | 17507 |   ;; | 
 | 17508 |  | 
 | 17509 | sysv4*MP*) | 
 | 17510 |   if test -d /usr/nec ;then | 
 | 17511 |     version_type=linux | 
 | 17512 |     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
 | 17513 |     soname_spec='$libname${shared_ext}.$major' | 
 | 17514 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 17515 |   fi | 
 | 17516 |   ;; | 
 | 17517 |  | 
 | 17518 | uts4*) | 
 | 17519 |   version_type=linux | 
 | 17520 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17521 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17522 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17523 |   ;; | 
 | 17524 |  | 
 | 17525 | *) | 
 | 17526 |   dynamic_linker=no | 
 | 17527 |   ;; | 
 | 17528 | esac | 
 | 17529 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
 | 17530 | echo "${ECHO_T}$dynamic_linker" >&6 | 
 | 17531 | test "$dynamic_linker" = no && can_build_shared=no | 
 | 17532 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17533 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 
 | 17534 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 
 | 17535 | hardcode_action_CXX= | 
 | 17536 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ | 
 | 17537 |    test -n "$runpath_var_CXX" || \ | 
 | 17538 |    test "X$hardcode_automatic_CXX" = "Xyes" ; then | 
 | 17539 |  | 
 | 17540 |   # We can hardcode non-existant directories. | 
 | 17541 |   if test "$hardcode_direct_CXX" != no && | 
 | 17542 |      # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
 | 17543 |      # have to relink, otherwise we might link with an installed library | 
 | 17544 |      # when we should be linking with a yet-to-be-installed one | 
 | 17545 |      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | 
 | 17546 |      test "$hardcode_minus_L_CXX" != no; then | 
 | 17547 |     # Linking always hardcodes the temporary library directory. | 
 | 17548 |     hardcode_action_CXX=relink | 
 | 17549 |   else | 
 | 17550 |     # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
 | 17551 |     hardcode_action_CXX=immediate | 
 | 17552 |   fi | 
 | 17553 | else | 
 | 17554 |   # We cannot hardcode anything, or else we can only hardcode existing | 
 | 17555 |   # directories. | 
 | 17556 |   hardcode_action_CXX=unsupported | 
 | 17557 | fi | 
 | 17558 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 | 
 | 17559 | echo "${ECHO_T}$hardcode_action_CXX" >&6 | 
 | 17560 |  | 
 | 17561 | if test "$hardcode_action_CXX" = relink; then | 
 | 17562 |   # Fast installation is not supported | 
 | 17563 |   enable_fast_install=no | 
 | 17564 | elif test "$shlibpath_overrides_runpath" = yes || | 
 | 17565 |      test "$enable_shared" = no; then | 
 | 17566 |   # Fast installation is not necessary | 
 | 17567 |   enable_fast_install=needless | 
 | 17568 | fi | 
 | 17569 |  | 
 | 17570 | striplib= | 
 | 17571 | old_striplib= | 
 | 17572 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | 
 | 17573 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | 
 | 17574 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 
 | 17575 |   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 
 | 17576 |   test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 
 | 17577 |   echo "$as_me:$LINENO: result: yes" >&5 | 
 | 17578 | echo "${ECHO_T}yes" >&6 | 
 | 17579 | else | 
 | 17580 | # FIXME - insert some real tests, host_os isn't really good enough | 
 | 17581 |   case $host_os in | 
 | 17582 |    darwin*) | 
 | 17583 |        if test -n "$STRIP" ; then | 
 | 17584 |          striplib="$STRIP -x" | 
 | 17585 |          echo "$as_me:$LINENO: result: yes" >&5 | 
 | 17586 | echo "${ECHO_T}yes" >&6 | 
 | 17587 |        else | 
 | 17588 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 17589 | echo "${ECHO_T}no" >&6 | 
 | 17590 | fi | 
 | 17591 |        ;; | 
 | 17592 |    *) | 
 | 17593 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 17594 | echo "${ECHO_T}no" >&6 | 
 | 17595 |     ;; | 
 | 17596 |   esac | 
 | 17597 | fi | 
 | 17598 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17599 | if test "x$enable_dlopen" != xyes; then | 
 | 17600 |   enable_dlopen=unknown | 
 | 17601 |   enable_dlopen_self=unknown | 
 | 17602 |   enable_dlopen_self_static=unknown | 
 | 17603 | else | 
 | 17604 |   lt_cv_dlopen=no | 
 | 17605 |   lt_cv_dlopen_libs= | 
 | 17606 |  | 
 | 17607 |   case $host_os in | 
 | 17608 |   beos*) | 
 | 17609 |     lt_cv_dlopen="load_add_on" | 
 | 17610 |     lt_cv_dlopen_libs= | 
 | 17611 |     lt_cv_dlopen_self=yes | 
 | 17612 |     ;; | 
 | 17613 |  | 
 | 17614 |   mingw* | pw32*) | 
 | 17615 |     lt_cv_dlopen="LoadLibrary" | 
 | 17616 |     lt_cv_dlopen_libs= | 
 | 17617 |    ;; | 
 | 17618 |  | 
 | 17619 |   cygwin*) | 
 | 17620 |     lt_cv_dlopen="dlopen" | 
 | 17621 |     lt_cv_dlopen_libs= | 
 | 17622 |    ;; | 
 | 17623 |  | 
 | 17624 |   darwin*) | 
 | 17625 |   # if libdl is installed we need to link against it | 
 | 17626 |     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
 | 17627 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
 | 17628 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
 | 17629 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17630 | else | 
 | 17631 |   ac_check_lib_save_LIBS=$LIBS | 
 | 17632 | LIBS="-ldl  $LIBS" | 
 | 17633 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17634 | /* confdefs.h.  */ | 
 | 17635 | _ACEOF | 
 | 17636 | cat confdefs.h >>conftest.$ac_ext | 
 | 17637 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 17638 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17639 |  | 
 | 17640 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 17641 | #ifdef __cplusplus | 
 | 17642 | extern "C" | 
 | 17643 | #endif | 
 | 17644 | /* We use char because int might match the return type of a gcc2 | 
 | 17645 |    builtin and then its argument prototype would still apply.  */ | 
 | 17646 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17647 | int | 
 | 17648 | main () | 
 | 17649 | { | 
 | 17650 | dlopen (); | 
 | 17651 |   ; | 
 | 17652 |   return 0; | 
 | 17653 | } | 
 | 17654 | _ACEOF | 
 | 17655 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 17656 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17657 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17658 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17659 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 17660 |   rm -f conftest.er1 | 
 | 17661 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17662 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17663 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17664 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 17665 | 			 || test ! -s conftest.err' | 
 | 17666 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17667 |   (eval $ac_try) 2>&5 | 
 | 17668 |   ac_status=$? | 
 | 17669 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17670 |   (exit $ac_status); }; } && | 
 | 17671 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17672 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17673 |   (eval $ac_try) 2>&5 | 
 | 17674 |   ac_status=$? | 
 | 17675 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17676 |   (exit $ac_status); }; }; then | 
 | 17677 |   ac_cv_lib_dl_dlopen=yes | 
 | 17678 | else | 
 | 17679 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17680 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 17681 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17682 | ac_cv_lib_dl_dlopen=no | 
 | 17683 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17684 | rm -f conftest.err conftest.$ac_objext \ | 
 | 17685 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17686 | LIBS=$ac_check_lib_save_LIBS | 
 | 17687 | fi | 
 | 17688 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 17689 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
 | 17690 | if test $ac_cv_lib_dl_dlopen = yes; then | 
 | 17691 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
 | 17692 | else | 
 | 17693 |  | 
 | 17694 |     lt_cv_dlopen="dyld" | 
 | 17695 |     lt_cv_dlopen_libs= | 
 | 17696 |     lt_cv_dlopen_self=yes | 
 | 17697 |  | 
 | 17698 | fi | 
 | 17699 |  | 
 | 17700 |    ;; | 
 | 17701 |  | 
 | 17702 |   *) | 
 | 17703 |     echo "$as_me:$LINENO: checking for shl_load" >&5 | 
 | 17704 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | 
 | 17705 | if test "${ac_cv_func_shl_load+set}" = set; then | 
 | 17706 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17707 | else | 
 | 17708 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17709 | /* confdefs.h.  */ | 
 | 17710 | _ACEOF | 
 | 17711 | cat confdefs.h >>conftest.$ac_ext | 
 | 17712 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 17713 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17714 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | 
 | 17715 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 17716 | #define shl_load innocuous_shl_load | 
 | 17717 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17718 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17719 |     which can conflict with char shl_load (); below. | 
 | 17720 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 17721 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17722 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17723 | #ifdef __STDC__ | 
 | 17724 | # include <limits.h> | 
 | 17725 | #else | 
 | 17726 | # include <assert.h> | 
 | 17727 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17728 |  | 
 | 17729 | #undef shl_load | 
 | 17730 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17731 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 17732 | #ifdef __cplusplus | 
 | 17733 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17734 | { | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17735 | #endif | 
 | 17736 | /* We use char because int might match the return type of a gcc2 | 
 | 17737 |    builtin and then its argument prototype would still apply.  */ | 
 | 17738 | char shl_load (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17739 | /* The GNU C library defines this for functions which it implements | 
 | 17740 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 17741 |     something starting with __ and the normal name is an alias.  */ | 
 | 17742 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | 
 | 17743 | choke me | 
 | 17744 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17745 | char (*f) () = shl_load; | 
 | 17746 | #endif | 
 | 17747 | #ifdef __cplusplus | 
 | 17748 | } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17749 | #endif | 
 | 17750 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17751 | int | 
 | 17752 | main () | 
 | 17753 | { | 
 | 17754 | return f != shl_load; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17755 |   ; | 
 | 17756 |   return 0; | 
 | 17757 | } | 
 | 17758 | _ACEOF | 
 | 17759 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 17760 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17761 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17762 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17763 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 17764 |   rm -f conftest.er1 | 
 | 17765 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17766 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17767 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17768 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 17769 | 			 || test ! -s conftest.err' | 
 | 17770 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17771 |   (eval $ac_try) 2>&5 | 
 | 17772 |   ac_status=$? | 
 | 17773 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17774 |   (exit $ac_status); }; } && | 
 | 17775 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17776 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17777 |   (eval $ac_try) 2>&5 | 
 | 17778 |   ac_status=$? | 
 | 17779 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17780 |   (exit $ac_status); }; }; then | 
 | 17781 |   ac_cv_func_shl_load=yes | 
 | 17782 | else | 
 | 17783 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17784 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 17785 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17786 | ac_cv_func_shl_load=no | 
 | 17787 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17788 | rm -f conftest.err conftest.$ac_objext \ | 
 | 17789 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17790 | fi | 
 | 17791 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | 
 | 17792 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | 
 | 17793 | if test $ac_cv_func_shl_load = yes; then | 
 | 17794 |   lt_cv_dlopen="shl_load" | 
 | 17795 | else | 
 | 17796 |   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | 
 | 17797 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | 
 | 17798 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | 
 | 17799 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17800 | else | 
 | 17801 |   ac_check_lib_save_LIBS=$LIBS | 
 | 17802 | LIBS="-ldld  $LIBS" | 
 | 17803 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17804 | /* confdefs.h.  */ | 
 | 17805 | _ACEOF | 
 | 17806 | cat confdefs.h >>conftest.$ac_ext | 
 | 17807 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 17808 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17809 |  | 
 | 17810 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 17811 | #ifdef __cplusplus | 
 | 17812 | extern "C" | 
 | 17813 | #endif | 
 | 17814 | /* We use char because int might match the return type of a gcc2 | 
 | 17815 |    builtin and then its argument prototype would still apply.  */ | 
 | 17816 | char shl_load (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17817 | int | 
 | 17818 | main () | 
 | 17819 | { | 
 | 17820 | shl_load (); | 
 | 17821 |   ; | 
 | 17822 |   return 0; | 
 | 17823 | } | 
 | 17824 | _ACEOF | 
 | 17825 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 17826 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17827 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17828 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17829 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 17830 |   rm -f conftest.er1 | 
 | 17831 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17832 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17833 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17834 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 17835 | 			 || test ! -s conftest.err' | 
 | 17836 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17837 |   (eval $ac_try) 2>&5 | 
 | 17838 |   ac_status=$? | 
 | 17839 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17840 |   (exit $ac_status); }; } && | 
 | 17841 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17842 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17843 |   (eval $ac_try) 2>&5 | 
 | 17844 |   ac_status=$? | 
 | 17845 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17846 |   (exit $ac_status); }; }; then | 
 | 17847 |   ac_cv_lib_dld_shl_load=yes | 
 | 17848 | else | 
 | 17849 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17850 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 17851 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17852 | ac_cv_lib_dld_shl_load=no | 
 | 17853 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17854 | rm -f conftest.err conftest.$ac_objext \ | 
 | 17855 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17856 | LIBS=$ac_check_lib_save_LIBS | 
 | 17857 | fi | 
 | 17858 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | 
 | 17859 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | 
 | 17860 | if test $ac_cv_lib_dld_shl_load = yes; then | 
 | 17861 |   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | 
 | 17862 | else | 
 | 17863 |   echo "$as_me:$LINENO: checking for dlopen" >&5 | 
 | 17864 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | 
 | 17865 | if test "${ac_cv_func_dlopen+set}" = set; then | 
 | 17866 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17867 | else | 
 | 17868 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17869 | /* confdefs.h.  */ | 
 | 17870 | _ACEOF | 
 | 17871 | cat confdefs.h >>conftest.$ac_ext | 
 | 17872 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 17873 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17874 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | 
 | 17875 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 17876 | #define dlopen innocuous_dlopen | 
 | 17877 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17878 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17879 |     which can conflict with char dlopen (); below. | 
 | 17880 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 17881 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17882 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17883 | #ifdef __STDC__ | 
 | 17884 | # include <limits.h> | 
 | 17885 | #else | 
 | 17886 | # include <assert.h> | 
 | 17887 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17888 |  | 
 | 17889 | #undef dlopen | 
 | 17890 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17891 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 17892 | #ifdef __cplusplus | 
 | 17893 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17894 | { | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17895 | #endif | 
 | 17896 | /* We use char because int might match the return type of a gcc2 | 
 | 17897 |    builtin and then its argument prototype would still apply.  */ | 
 | 17898 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17899 | /* The GNU C library defines this for functions which it implements | 
 | 17900 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 17901 |     something starting with __ and the normal name is an alias.  */ | 
 | 17902 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | 
 | 17903 | choke me | 
 | 17904 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17905 | char (*f) () = dlopen; | 
 | 17906 | #endif | 
 | 17907 | #ifdef __cplusplus | 
 | 17908 | } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17909 | #endif | 
 | 17910 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17911 | int | 
 | 17912 | main () | 
 | 17913 | { | 
 | 17914 | return f != dlopen; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17915 |   ; | 
 | 17916 |   return 0; | 
 | 17917 | } | 
 | 17918 | _ACEOF | 
 | 17919 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 17920 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17921 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17922 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17923 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 17924 |   rm -f conftest.er1 | 
 | 17925 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17926 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17927 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17928 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 17929 | 			 || test ! -s conftest.err' | 
 | 17930 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17931 |   (eval $ac_try) 2>&5 | 
 | 17932 |   ac_status=$? | 
 | 17933 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17934 |   (exit $ac_status); }; } && | 
 | 17935 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17936 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17937 |   (eval $ac_try) 2>&5 | 
 | 17938 |   ac_status=$? | 
 | 17939 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17940 |   (exit $ac_status); }; }; then | 
 | 17941 |   ac_cv_func_dlopen=yes | 
 | 17942 | else | 
 | 17943 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17944 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 17945 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17946 | ac_cv_func_dlopen=no | 
 | 17947 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17948 | rm -f conftest.err conftest.$ac_objext \ | 
 | 17949 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17950 | fi | 
 | 17951 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | 
 | 17952 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | 
 | 17953 | if test $ac_cv_func_dlopen = yes; then | 
 | 17954 |   lt_cv_dlopen="dlopen" | 
 | 17955 | else | 
 | 17956 |   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
 | 17957 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
 | 17958 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
 | 17959 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17960 | else | 
 | 17961 |   ac_check_lib_save_LIBS=$LIBS | 
 | 17962 | LIBS="-ldl  $LIBS" | 
 | 17963 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17964 | /* confdefs.h.  */ | 
 | 17965 | _ACEOF | 
 | 17966 | cat confdefs.h >>conftest.$ac_ext | 
 | 17967 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 17968 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17969 |  | 
 | 17970 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 17971 | #ifdef __cplusplus | 
 | 17972 | extern "C" | 
 | 17973 | #endif | 
 | 17974 | /* We use char because int might match the return type of a gcc2 | 
 | 17975 |    builtin and then its argument prototype would still apply.  */ | 
 | 17976 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17977 | int | 
 | 17978 | main () | 
 | 17979 | { | 
 | 17980 | dlopen (); | 
 | 17981 |   ; | 
 | 17982 |   return 0; | 
 | 17983 | } | 
 | 17984 | _ACEOF | 
 | 17985 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 17986 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17987 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17988 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17989 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 17990 |   rm -f conftest.er1 | 
 | 17991 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17992 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17993 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17994 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 17995 | 			 || test ! -s conftest.err' | 
 | 17996 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17997 |   (eval $ac_try) 2>&5 | 
 | 17998 |   ac_status=$? | 
 | 17999 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 18000 |   (exit $ac_status); }; } && | 
 | 18001 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18002 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 18003 |   (eval $ac_try) 2>&5 | 
 | 18004 |   ac_status=$? | 
 | 18005 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 18006 |   (exit $ac_status); }; }; then | 
 | 18007 |   ac_cv_lib_dl_dlopen=yes | 
 | 18008 | else | 
 | 18009 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18010 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 18011 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18012 | ac_cv_lib_dl_dlopen=no | 
 | 18013 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18014 | rm -f conftest.err conftest.$ac_objext \ | 
 | 18015 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18016 | LIBS=$ac_check_lib_save_LIBS | 
 | 18017 | fi | 
 | 18018 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 18019 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
 | 18020 | if test $ac_cv_lib_dl_dlopen = yes; then | 
 | 18021 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
 | 18022 | else | 
 | 18023 |   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | 
 | 18024 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | 
 | 18025 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | 
 | 18026 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 18027 | else | 
 | 18028 |   ac_check_lib_save_LIBS=$LIBS | 
 | 18029 | LIBS="-lsvld  $LIBS" | 
 | 18030 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18031 | /* confdefs.h.  */ | 
 | 18032 | _ACEOF | 
 | 18033 | cat confdefs.h >>conftest.$ac_ext | 
 | 18034 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 18035 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18036 |  | 
 | 18037 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 18038 | #ifdef __cplusplus | 
 | 18039 | extern "C" | 
 | 18040 | #endif | 
 | 18041 | /* We use char because int might match the return type of a gcc2 | 
 | 18042 |    builtin and then its argument prototype would still apply.  */ | 
 | 18043 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18044 | int | 
 | 18045 | main () | 
 | 18046 | { | 
 | 18047 | dlopen (); | 
 | 18048 |   ; | 
 | 18049 |   return 0; | 
 | 18050 | } | 
 | 18051 | _ACEOF | 
 | 18052 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 18053 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18054 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18055 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18056 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 18057 |   rm -f conftest.er1 | 
 | 18058 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18059 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 18060 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18061 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 18062 | 			 || test ! -s conftest.err' | 
 | 18063 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 18064 |   (eval $ac_try) 2>&5 | 
 | 18065 |   ac_status=$? | 
 | 18066 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 18067 |   (exit $ac_status); }; } && | 
 | 18068 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18069 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 18070 |   (eval $ac_try) 2>&5 | 
 | 18071 |   ac_status=$? | 
 | 18072 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 18073 |   (exit $ac_status); }; }; then | 
 | 18074 |   ac_cv_lib_svld_dlopen=yes | 
 | 18075 | else | 
 | 18076 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18077 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 18078 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18079 | ac_cv_lib_svld_dlopen=no | 
 | 18080 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18081 | rm -f conftest.err conftest.$ac_objext \ | 
 | 18082 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18083 | LIBS=$ac_check_lib_save_LIBS | 
 | 18084 | fi | 
 | 18085 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | 
 | 18086 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | 
 | 18087 | if test $ac_cv_lib_svld_dlopen = yes; then | 
 | 18088 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | 
 | 18089 | else | 
 | 18090 |   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | 
 | 18091 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | 
 | 18092 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | 
 | 18093 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 18094 | else | 
 | 18095 |   ac_check_lib_save_LIBS=$LIBS | 
 | 18096 | LIBS="-ldld  $LIBS" | 
 | 18097 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18098 | /* confdefs.h.  */ | 
 | 18099 | _ACEOF | 
 | 18100 | cat confdefs.h >>conftest.$ac_ext | 
 | 18101 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 18102 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18103 |  | 
 | 18104 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 18105 | #ifdef __cplusplus | 
 | 18106 | extern "C" | 
 | 18107 | #endif | 
 | 18108 | /* We use char because int might match the return type of a gcc2 | 
 | 18109 |    builtin and then its argument prototype would still apply.  */ | 
 | 18110 | char dld_link (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18111 | int | 
 | 18112 | main () | 
 | 18113 | { | 
 | 18114 | dld_link (); | 
 | 18115 |   ; | 
 | 18116 |   return 0; | 
 | 18117 | } | 
 | 18118 | _ACEOF | 
 | 18119 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 18120 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18121 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18122 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18123 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 18124 |   rm -f conftest.er1 | 
 | 18125 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18126 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 18127 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18128 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 18129 | 			 || test ! -s conftest.err' | 
 | 18130 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 18131 |   (eval $ac_try) 2>&5 | 
 | 18132 |   ac_status=$? | 
 | 18133 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 18134 |   (exit $ac_status); }; } && | 
 | 18135 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18136 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 18137 |   (eval $ac_try) 2>&5 | 
 | 18138 |   ac_status=$? | 
 | 18139 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 18140 |   (exit $ac_status); }; }; then | 
 | 18141 |   ac_cv_lib_dld_dld_link=yes | 
 | 18142 | else | 
 | 18143 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18144 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 18145 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18146 | ac_cv_lib_dld_dld_link=no | 
 | 18147 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18148 | rm -f conftest.err conftest.$ac_objext \ | 
 | 18149 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18150 | LIBS=$ac_check_lib_save_LIBS | 
 | 18151 | fi | 
 | 18152 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | 
 | 18153 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | 
 | 18154 | if test $ac_cv_lib_dld_dld_link = yes; then | 
 | 18155 |   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | 
 | 18156 | fi | 
 | 18157 |  | 
 | 18158 |  | 
 | 18159 | fi | 
 | 18160 |  | 
 | 18161 |  | 
 | 18162 | fi | 
 | 18163 |  | 
 | 18164 |  | 
 | 18165 | fi | 
 | 18166 |  | 
 | 18167 |  | 
 | 18168 | fi | 
 | 18169 |  | 
 | 18170 |  | 
 | 18171 | fi | 
 | 18172 |  | 
 | 18173 |     ;; | 
 | 18174 |   esac | 
 | 18175 |  | 
 | 18176 |   if test "x$lt_cv_dlopen" != xno; then | 
 | 18177 |     enable_dlopen=yes | 
 | 18178 |   else | 
 | 18179 |     enable_dlopen=no | 
 | 18180 |   fi | 
 | 18181 |  | 
 | 18182 |   case $lt_cv_dlopen in | 
 | 18183 |   dlopen) | 
 | 18184 |     save_CPPFLAGS="$CPPFLAGS" | 
 | 18185 |     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | 
 | 18186 |  | 
 | 18187 |     save_LDFLAGS="$LDFLAGS" | 
 | 18188 |     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | 
 | 18189 |  | 
 | 18190 |     save_LIBS="$LIBS" | 
 | 18191 |     LIBS="$lt_cv_dlopen_libs $LIBS" | 
 | 18192 |  | 
 | 18193 |     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | 
 | 18194 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | 
 | 18195 | if test "${lt_cv_dlopen_self+set}" = set; then | 
 | 18196 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 18197 | else | 
 | 18198 |   	  if test "$cross_compiling" = yes; then : | 
 | 18199 |   lt_cv_dlopen_self=cross | 
 | 18200 | else | 
 | 18201 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
 | 18202 |   lt_status=$lt_dlunknown | 
 | 18203 |   cat > conftest.$ac_ext <<EOF | 
| Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 18204 | #line 18204 "configure" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18205 | #include "confdefs.h" | 
 | 18206 |  | 
 | 18207 | #if HAVE_DLFCN_H | 
 | 18208 | #include <dlfcn.h> | 
 | 18209 | #endif | 
 | 18210 |  | 
 | 18211 | #include <stdio.h> | 
 | 18212 |  | 
 | 18213 | #ifdef RTLD_GLOBAL | 
 | 18214 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 18215 | #else | 
 | 18216 | #  ifdef DL_GLOBAL | 
 | 18217 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 18218 | #  else | 
 | 18219 | #    define LT_DLGLOBAL		0 | 
 | 18220 | #  endif | 
 | 18221 | #endif | 
 | 18222 |  | 
 | 18223 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 18224 |    find out it does not work in some platform. */ | 
 | 18225 | #ifndef LT_DLLAZY_OR_NOW | 
 | 18226 | #  ifdef RTLD_LAZY | 
 | 18227 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 18228 | #  else | 
 | 18229 | #    ifdef DL_LAZY | 
 | 18230 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 18231 | #    else | 
 | 18232 | #      ifdef RTLD_NOW | 
 | 18233 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 18234 | #      else | 
 | 18235 | #        ifdef DL_NOW | 
 | 18236 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 18237 | #        else | 
 | 18238 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 18239 | #        endif | 
 | 18240 | #      endif | 
 | 18241 | #    endif | 
 | 18242 | #  endif | 
 | 18243 | #endif | 
 | 18244 |  | 
 | 18245 | #ifdef __cplusplus | 
 | 18246 | extern "C" void exit (int); | 
 | 18247 | #endif | 
 | 18248 |  | 
 | 18249 | void fnord() { int i=42;} | 
 | 18250 | int main () | 
 | 18251 | { | 
 | 18252 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 18253 |   int status = $lt_dlunknown; | 
 | 18254 |  | 
 | 18255 |   if (self) | 
 | 18256 |     { | 
 | 18257 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
 | 18258 |       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
 | 18259 |       /* dlclose (self); */ | 
 | 18260 |     } | 
 | 18261 |  | 
 | 18262 |     exit (status); | 
 | 18263 | } | 
 | 18264 | EOF | 
 | 18265 |   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 18266 |   (eval $ac_link) 2>&5 | 
 | 18267 |   ac_status=$? | 
 | 18268 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 18269 |   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
 | 18270 |     (./conftest; exit; ) 2>/dev/null | 
 | 18271 |     lt_status=$? | 
 | 18272 |     case x$lt_status in | 
 | 18273 |       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | 
 | 18274 |       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | 
 | 18275 |       x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | 
 | 18276 |     esac | 
 | 18277 |   else : | 
 | 18278 |     # compilation failed | 
 | 18279 |     lt_cv_dlopen_self=no | 
 | 18280 |   fi | 
 | 18281 | fi | 
 | 18282 | rm -fr conftest* | 
 | 18283 |  | 
 | 18284 |  | 
 | 18285 | fi | 
 | 18286 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | 
 | 18287 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | 
 | 18288 |  | 
 | 18289 |     if test "x$lt_cv_dlopen_self" = xyes; then | 
 | 18290 |       LDFLAGS="$LDFLAGS $link_static_flag" | 
 | 18291 |       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | 
 | 18292 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | 
 | 18293 | if test "${lt_cv_dlopen_self_static+set}" = set; then | 
 | 18294 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 18295 | else | 
 | 18296 |   	  if test "$cross_compiling" = yes; then : | 
 | 18297 |   lt_cv_dlopen_self_static=cross | 
 | 18298 | else | 
 | 18299 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
 | 18300 |   lt_status=$lt_dlunknown | 
 | 18301 |   cat > conftest.$ac_ext <<EOF | 
| Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 18302 | #line 18302 "configure" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18303 | #include "confdefs.h" | 
 | 18304 |  | 
 | 18305 | #if HAVE_DLFCN_H | 
 | 18306 | #include <dlfcn.h> | 
 | 18307 | #endif | 
 | 18308 |  | 
 | 18309 | #include <stdio.h> | 
 | 18310 |  | 
 | 18311 | #ifdef RTLD_GLOBAL | 
 | 18312 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 18313 | #else | 
 | 18314 | #  ifdef DL_GLOBAL | 
 | 18315 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 18316 | #  else | 
 | 18317 | #    define LT_DLGLOBAL		0 | 
 | 18318 | #  endif | 
 | 18319 | #endif | 
 | 18320 |  | 
 | 18321 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 18322 |    find out it does not work in some platform. */ | 
 | 18323 | #ifndef LT_DLLAZY_OR_NOW | 
 | 18324 | #  ifdef RTLD_LAZY | 
 | 18325 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 18326 | #  else | 
 | 18327 | #    ifdef DL_LAZY | 
 | 18328 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 18329 | #    else | 
 | 18330 | #      ifdef RTLD_NOW | 
 | 18331 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 18332 | #      else | 
 | 18333 | #        ifdef DL_NOW | 
 | 18334 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 18335 | #        else | 
 | 18336 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 18337 | #        endif | 
 | 18338 | #      endif | 
 | 18339 | #    endif | 
 | 18340 | #  endif | 
 | 18341 | #endif | 
 | 18342 |  | 
 | 18343 | #ifdef __cplusplus | 
 | 18344 | extern "C" void exit (int); | 
 | 18345 | #endif | 
 | 18346 |  | 
 | 18347 | void fnord() { int i=42;} | 
 | 18348 | int main () | 
 | 18349 | { | 
 | 18350 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 18351 |   int status = $lt_dlunknown; | 
 | 18352 |  | 
 | 18353 |   if (self) | 
 | 18354 |     { | 
 | 18355 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
 | 18356 |       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
 | 18357 |       /* dlclose (self); */ | 
 | 18358 |     } | 
 | 18359 |  | 
 | 18360 |     exit (status); | 
 | 18361 | } | 
 | 18362 | EOF | 
 | 18363 |   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 18364 |   (eval $ac_link) 2>&5 | 
 | 18365 |   ac_status=$? | 
 | 18366 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 18367 |   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
 | 18368 |     (./conftest; exit; ) 2>/dev/null | 
 | 18369 |     lt_status=$? | 
 | 18370 |     case x$lt_status in | 
 | 18371 |       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | 
 | 18372 |       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | 
 | 18373 |       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | 
 | 18374 |     esac | 
 | 18375 |   else : | 
 | 18376 |     # compilation failed | 
 | 18377 |     lt_cv_dlopen_self_static=no | 
 | 18378 |   fi | 
 | 18379 | fi | 
 | 18380 | rm -fr conftest* | 
 | 18381 |  | 
 | 18382 |  | 
 | 18383 | fi | 
 | 18384 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | 
 | 18385 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | 
 | 18386 |     fi | 
 | 18387 |  | 
 | 18388 |     CPPFLAGS="$save_CPPFLAGS" | 
 | 18389 |     LDFLAGS="$save_LDFLAGS" | 
 | 18390 |     LIBS="$save_LIBS" | 
 | 18391 |     ;; | 
 | 18392 |   esac | 
 | 18393 |  | 
 | 18394 |   case $lt_cv_dlopen_self in | 
 | 18395 |   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | 
 | 18396 |   *) enable_dlopen_self=unknown ;; | 
 | 18397 |   esac | 
 | 18398 |  | 
 | 18399 |   case $lt_cv_dlopen_self_static in | 
 | 18400 |   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | 
 | 18401 |   *) enable_dlopen_self_static=unknown ;; | 
 | 18402 |   esac | 
 | 18403 | fi | 
 | 18404 |  | 
 | 18405 |  | 
 | 18406 | # The else clause should only fire when bootstrapping the | 
 | 18407 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
 | 18408 | # with your package, and you will get complaints that there are | 
 | 18409 | # no rules to generate ltmain.sh. | 
 | 18410 | if test -f "$ltmain"; then | 
 | 18411 |   # See if we are running on zsh, and set the options which allow our commands through | 
 | 18412 |   # without removal of \ escapes. | 
 | 18413 |   if test -n "${ZSH_VERSION+set}" ; then | 
 | 18414 |     setopt NO_GLOB_SUBST | 
 | 18415 |   fi | 
 | 18416 |   # Now quote all the things that may contain metacharacters while being | 
 | 18417 |   # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
 | 18418 |   # variables and quote the copies for generation of the libtool script. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18419 |   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | 
 | 18420 |     SED SHELL STRIP \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18421 |     libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
 | 18422 |     old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
 | 18423 |     deplibs_check_method reload_flag reload_cmds need_locks \ | 
 | 18424 |     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
 | 18425 |     lt_cv_sys_global_symbol_to_c_name_address \ | 
 | 18426 |     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
 | 18427 |     old_postinstall_cmds old_postuninstall_cmds \ | 
 | 18428 |     compiler_CXX \ | 
 | 18429 |     CC_CXX \ | 
 | 18430 |     LD_CXX \ | 
 | 18431 |     lt_prog_compiler_wl_CXX \ | 
 | 18432 |     lt_prog_compiler_pic_CXX \ | 
 | 18433 |     lt_prog_compiler_static_CXX \ | 
 | 18434 |     lt_prog_compiler_no_builtin_flag_CXX \ | 
 | 18435 |     export_dynamic_flag_spec_CXX \ | 
 | 18436 |     thread_safe_flag_spec_CXX \ | 
 | 18437 |     whole_archive_flag_spec_CXX \ | 
 | 18438 |     enable_shared_with_static_runtimes_CXX \ | 
 | 18439 |     old_archive_cmds_CXX \ | 
 | 18440 |     old_archive_from_new_cmds_CXX \ | 
 | 18441 |     predep_objects_CXX \ | 
 | 18442 |     postdep_objects_CXX \ | 
 | 18443 |     predeps_CXX \ | 
 | 18444 |     postdeps_CXX \ | 
 | 18445 |     compiler_lib_search_path_CXX \ | 
 | 18446 |     archive_cmds_CXX \ | 
 | 18447 |     archive_expsym_cmds_CXX \ | 
 | 18448 |     postinstall_cmds_CXX \ | 
 | 18449 |     postuninstall_cmds_CXX \ | 
 | 18450 |     old_archive_from_expsyms_cmds_CXX \ | 
 | 18451 |     allow_undefined_flag_CXX \ | 
 | 18452 |     no_undefined_flag_CXX \ | 
 | 18453 |     export_symbols_cmds_CXX \ | 
 | 18454 |     hardcode_libdir_flag_spec_CXX \ | 
 | 18455 |     hardcode_libdir_flag_spec_ld_CXX \ | 
 | 18456 |     hardcode_libdir_separator_CXX \ | 
 | 18457 |     hardcode_automatic_CXX \ | 
 | 18458 |     module_cmds_CXX \ | 
 | 18459 |     module_expsym_cmds_CXX \ | 
 | 18460 |     lt_cv_prog_compiler_c_o_CXX \ | 
 | 18461 |     exclude_expsyms_CXX \ | 
 | 18462 |     include_expsyms_CXX; do | 
 | 18463 |  | 
 | 18464 |     case $var in | 
 | 18465 |     old_archive_cmds_CXX | \ | 
 | 18466 |     old_archive_from_new_cmds_CXX | \ | 
 | 18467 |     archive_cmds_CXX | \ | 
 | 18468 |     archive_expsym_cmds_CXX | \ | 
 | 18469 |     module_cmds_CXX | \ | 
 | 18470 |     module_expsym_cmds_CXX | \ | 
 | 18471 |     old_archive_from_expsyms_cmds_CXX | \ | 
 | 18472 |     export_symbols_cmds_CXX | \ | 
 | 18473 |     extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
 | 18474 |     postinstall_cmds | postuninstall_cmds | \ | 
 | 18475 |     old_postinstall_cmds | old_postuninstall_cmds | \ | 
 | 18476 |     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
 | 18477 |       # Double-quote double-evaled strings. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18478 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18479 |       ;; | 
 | 18480 |     *) | 
 | 18481 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
 | 18482 |       ;; | 
 | 18483 |     esac | 
 | 18484 |   done | 
 | 18485 |  | 
 | 18486 |   case $lt_echo in | 
 | 18487 |   *'\$0 --fallback-echo"') | 
 | 18488 |     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
 | 18489 |     ;; | 
 | 18490 |   esac | 
 | 18491 |  | 
 | 18492 | cfgfile="$ofile" | 
 | 18493 |  | 
 | 18494 |   cat <<__EOF__ >> "$cfgfile" | 
 | 18495 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | 
 | 18496 |  | 
 | 18497 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
 | 18498 |  | 
 | 18499 | # Shell to use when invoking shell scripts. | 
 | 18500 | SHELL=$lt_SHELL | 
 | 18501 |  | 
 | 18502 | # Whether or not to build shared libraries. | 
 | 18503 | build_libtool_libs=$enable_shared | 
 | 18504 |  | 
 | 18505 | # Whether or not to build static libraries. | 
 | 18506 | build_old_libs=$enable_static | 
 | 18507 |  | 
 | 18508 | # Whether or not to add -lc for building shared libraries. | 
 | 18509 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | 
 | 18510 |  | 
 | 18511 | # Whether or not to disallow shared libs when runtime libs are static | 
 | 18512 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | 
 | 18513 |  | 
 | 18514 | # Whether or not to optimize for fast installation. | 
 | 18515 | fast_install=$enable_fast_install | 
 | 18516 |  | 
 | 18517 | # The host system. | 
 | 18518 | host_alias=$host_alias | 
 | 18519 | host=$host | 
 | 18520 |  | 
 | 18521 | # An echo program that does not interpret backslashes. | 
 | 18522 | echo=$lt_echo | 
 | 18523 |  | 
 | 18524 | # The archiver. | 
 | 18525 | AR=$lt_AR | 
 | 18526 | AR_FLAGS=$lt_AR_FLAGS | 
 | 18527 |  | 
 | 18528 | # A C compiler. | 
 | 18529 | LTCC=$lt_LTCC | 
 | 18530 |  | 
 | 18531 | # A language-specific compiler. | 
 | 18532 | CC=$lt_compiler_CXX | 
 | 18533 |  | 
 | 18534 | # Is the compiler the GNU C compiler? | 
 | 18535 | with_gcc=$GCC_CXX | 
 | 18536 |  | 
 | 18537 | # An ERE matcher. | 
 | 18538 | EGREP=$lt_EGREP | 
 | 18539 |  | 
 | 18540 | # The linker used to build libraries. | 
 | 18541 | LD=$lt_LD_CXX | 
 | 18542 |  | 
 | 18543 | # Whether we need hard or soft links. | 
 | 18544 | LN_S=$lt_LN_S | 
 | 18545 |  | 
 | 18546 | # A BSD-compatible nm program. | 
 | 18547 | NM=$lt_NM | 
 | 18548 |  | 
 | 18549 | # A symbol stripping program | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18550 | STRIP=$lt_STRIP | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18551 |  | 
 | 18552 | # Used to examine libraries when file_magic_cmd begins "file" | 
 | 18553 | MAGIC_CMD=$MAGIC_CMD | 
 | 18554 |  | 
 | 18555 | # Used on cygwin: DLL creation program. | 
 | 18556 | DLLTOOL="$DLLTOOL" | 
 | 18557 |  | 
 | 18558 | # Used on cygwin: object dumper. | 
 | 18559 | OBJDUMP="$OBJDUMP" | 
 | 18560 |  | 
 | 18561 | # Used on cygwin: assembler. | 
 | 18562 | AS="$AS" | 
 | 18563 |  | 
 | 18564 | # The name of the directory that contains temporary libtool files. | 
 | 18565 | objdir=$objdir | 
 | 18566 |  | 
 | 18567 | # How to create reloadable object files. | 
 | 18568 | reload_flag=$lt_reload_flag | 
 | 18569 | reload_cmds=$lt_reload_cmds | 
 | 18570 |  | 
 | 18571 | # How to pass a linker flag through the compiler. | 
 | 18572 | wl=$lt_lt_prog_compiler_wl_CXX | 
 | 18573 |  | 
 | 18574 | # Object file suffix (normally "o"). | 
 | 18575 | objext="$ac_objext" | 
 | 18576 |  | 
 | 18577 | # Old archive suffix (normally "a"). | 
 | 18578 | libext="$libext" | 
 | 18579 |  | 
 | 18580 | # Shared library suffix (normally ".so"). | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18581 | shrext_cmds='$shrext_cmds' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18582 |  | 
 | 18583 | # Executable file suffix (normally ""). | 
 | 18584 | exeext="$exeext" | 
 | 18585 |  | 
 | 18586 | # Additional compiler flags for building library objects. | 
 | 18587 | pic_flag=$lt_lt_prog_compiler_pic_CXX | 
 | 18588 | pic_mode=$pic_mode | 
 | 18589 |  | 
 | 18590 | # What is the maximum length of a command? | 
 | 18591 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
 | 18592 |  | 
 | 18593 | # Does compiler simultaneously support -c and -o options? | 
 | 18594 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | 
 | 18595 |  | 
 | 18596 | # Must we lock files when doing compilation ? | 
 | 18597 | need_locks=$lt_need_locks | 
 | 18598 |  | 
 | 18599 | # Do we need the lib prefix for modules? | 
 | 18600 | need_lib_prefix=$need_lib_prefix | 
 | 18601 |  | 
 | 18602 | # Do we need a version for libraries? | 
 | 18603 | need_version=$need_version | 
 | 18604 |  | 
 | 18605 | # Whether dlopen is supported. | 
 | 18606 | dlopen_support=$enable_dlopen | 
 | 18607 |  | 
 | 18608 | # Whether dlopen of programs is supported. | 
 | 18609 | dlopen_self=$enable_dlopen_self | 
 | 18610 |  | 
 | 18611 | # Whether dlopen of statically linked programs is supported. | 
 | 18612 | dlopen_self_static=$enable_dlopen_self_static | 
 | 18613 |  | 
 | 18614 | # Compiler flag to prevent dynamic linking. | 
 | 18615 | link_static_flag=$lt_lt_prog_compiler_static_CXX | 
 | 18616 |  | 
 | 18617 | # Compiler flag to turn off builtin functions. | 
 | 18618 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | 
 | 18619 |  | 
 | 18620 | # Compiler flag to allow reflexive dlopens. | 
 | 18621 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | 
 | 18622 |  | 
 | 18623 | # Compiler flag to generate shared objects directly from archives. | 
 | 18624 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | 
 | 18625 |  | 
 | 18626 | # Compiler flag to generate thread-safe objects. | 
 | 18627 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX | 
 | 18628 |  | 
 | 18629 | # Library versioning type. | 
 | 18630 | version_type=$version_type | 
 | 18631 |  | 
 | 18632 | # Format of library name prefix. | 
 | 18633 | libname_spec=$lt_libname_spec | 
 | 18634 |  | 
 | 18635 | # List of archive names.  First name is the real one, the rest are links. | 
 | 18636 | # The last name is the one that the linker finds with -lNAME. | 
 | 18637 | library_names_spec=$lt_library_names_spec | 
 | 18638 |  | 
 | 18639 | # The coded name of the library, if different from the real name. | 
 | 18640 | soname_spec=$lt_soname_spec | 
 | 18641 |  | 
 | 18642 | # Commands used to build and install an old-style archive. | 
 | 18643 | RANLIB=$lt_RANLIB | 
 | 18644 | old_archive_cmds=$lt_old_archive_cmds_CXX | 
 | 18645 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
 | 18646 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
 | 18647 |  | 
 | 18648 | # Create an old-style archive from a shared archive. | 
 | 18649 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | 
 | 18650 |  | 
 | 18651 | # Create a temporary old-style archive to link instead of a shared archive. | 
 | 18652 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | 
 | 18653 |  | 
 | 18654 | # Commands used to build and install a shared archive. | 
 | 18655 | archive_cmds=$lt_archive_cmds_CXX | 
 | 18656 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | 
 | 18657 | postinstall_cmds=$lt_postinstall_cmds | 
 | 18658 | postuninstall_cmds=$lt_postuninstall_cmds | 
 | 18659 |  | 
 | 18660 | # Commands used to build a loadable module (assumed same as above if empty) | 
 | 18661 | module_cmds=$lt_module_cmds_CXX | 
 | 18662 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | 
 | 18663 |  | 
 | 18664 | # Commands to strip libraries. | 
 | 18665 | old_striplib=$lt_old_striplib | 
 | 18666 | striplib=$lt_striplib | 
 | 18667 |  | 
 | 18668 | # Dependencies to place before the objects being linked to create a | 
 | 18669 | # shared library. | 
 | 18670 | predep_objects=$lt_predep_objects_CXX | 
 | 18671 |  | 
 | 18672 | # Dependencies to place after the objects being linked to create a | 
 | 18673 | # shared library. | 
 | 18674 | postdep_objects=$lt_postdep_objects_CXX | 
 | 18675 |  | 
 | 18676 | # Dependencies to place before the objects being linked to create a | 
 | 18677 | # shared library. | 
 | 18678 | predeps=$lt_predeps_CXX | 
 | 18679 |  | 
 | 18680 | # Dependencies to place after the objects being linked to create a | 
 | 18681 | # shared library. | 
 | 18682 | postdeps=$lt_postdeps_CXX | 
 | 18683 |  | 
 | 18684 | # The library search path used internally by the compiler when linking | 
 | 18685 | # a shared library. | 
 | 18686 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | 
 | 18687 |  | 
 | 18688 | # Method to check whether dependent libraries are shared objects. | 
 | 18689 | deplibs_check_method=$lt_deplibs_check_method | 
 | 18690 |  | 
 | 18691 | # Command to use when deplibs_check_method == file_magic. | 
 | 18692 | file_magic_cmd=$lt_file_magic_cmd | 
 | 18693 |  | 
 | 18694 | # Flag that allows shared libraries with undefined symbols to be built. | 
 | 18695 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | 
 | 18696 |  | 
 | 18697 | # Flag that forces no undefined symbols. | 
 | 18698 | no_undefined_flag=$lt_no_undefined_flag_CXX | 
 | 18699 |  | 
 | 18700 | # Commands used to finish a libtool library installation in a directory. | 
 | 18701 | finish_cmds=$lt_finish_cmds | 
 | 18702 |  | 
 | 18703 | # Same as above, but a single script fragment to be evaled but not shown. | 
 | 18704 | finish_eval=$lt_finish_eval | 
 | 18705 |  | 
 | 18706 | # Take the output of nm and produce a listing of raw symbols and C names. | 
 | 18707 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
 | 18708 |  | 
 | 18709 | # Transform the output of nm in a proper C declaration | 
 | 18710 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
 | 18711 |  | 
 | 18712 | # Transform the output of nm in a C name address pair | 
 | 18713 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
 | 18714 |  | 
 | 18715 | # This is the shared library runtime path variable. | 
 | 18716 | runpath_var=$runpath_var | 
 | 18717 |  | 
 | 18718 | # This is the shared library path variable. | 
 | 18719 | shlibpath_var=$shlibpath_var | 
 | 18720 |  | 
 | 18721 | # Is shlibpath searched before the hard-coded library search path? | 
 | 18722 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
 | 18723 |  | 
 | 18724 | # How to hardcode a shared library path into an executable. | 
 | 18725 | hardcode_action=$hardcode_action_CXX | 
 | 18726 |  | 
 | 18727 | # Whether we should hardcode library paths into libraries. | 
 | 18728 | hardcode_into_libs=$hardcode_into_libs | 
 | 18729 |  | 
 | 18730 | # Flag to hardcode \$libdir into a binary during linking. | 
 | 18731 | # This must work even if \$libdir does not exist. | 
 | 18732 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | 
 | 18733 |  | 
 | 18734 | # If ld is used when linking, flag to hardcode \$libdir into | 
 | 18735 | # a binary during linking. This must work even if \$libdir does | 
 | 18736 | # not exist. | 
 | 18737 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | 
 | 18738 |  | 
 | 18739 | # Whether we need a single -rpath flag with a separated argument. | 
 | 18740 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | 
 | 18741 |  | 
 | 18742 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
 | 18743 | # resulting binary. | 
 | 18744 | hardcode_direct=$hardcode_direct_CXX | 
 | 18745 |  | 
 | 18746 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
 | 18747 | # resulting binary. | 
 | 18748 | hardcode_minus_L=$hardcode_minus_L_CXX | 
 | 18749 |  | 
 | 18750 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
 | 18751 | # the resulting binary. | 
 | 18752 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | 
 | 18753 |  | 
 | 18754 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
 | 18755 | # and all subsequent libraries and executables linked against it. | 
 | 18756 | hardcode_automatic=$hardcode_automatic_CXX | 
 | 18757 |  | 
 | 18758 | # Variables whose values should be saved in libtool wrapper scripts and | 
 | 18759 | # restored at relink time. | 
 | 18760 | variables_saved_for_relink="$variables_saved_for_relink" | 
 | 18761 |  | 
 | 18762 | # Whether libtool must link a program against all its dependency libraries. | 
 | 18763 | link_all_deplibs=$link_all_deplibs_CXX | 
 | 18764 |  | 
 | 18765 | # Compile-time system search path for libraries | 
 | 18766 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
 | 18767 |  | 
 | 18768 | # Run-time system search path for libraries | 
 | 18769 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
 | 18770 |  | 
 | 18771 | # Fix the shell variable \$srcfile for the compiler. | 
 | 18772 | fix_srcfile_path="$fix_srcfile_path_CXX" | 
 | 18773 |  | 
 | 18774 | # Set to yes if exported symbols are required. | 
 | 18775 | always_export_symbols=$always_export_symbols_CXX | 
 | 18776 |  | 
 | 18777 | # The commands to list exported symbols. | 
 | 18778 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | 
 | 18779 |  | 
 | 18780 | # The commands to extract the exported symbol list from a shared archive. | 
 | 18781 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
 | 18782 |  | 
 | 18783 | # Symbols that should not be listed in the preloaded symbols. | 
 | 18784 | exclude_expsyms=$lt_exclude_expsyms_CXX | 
 | 18785 |  | 
 | 18786 | # Symbols that must always be exported. | 
 | 18787 | include_expsyms=$lt_include_expsyms_CXX | 
 | 18788 |  | 
 | 18789 | # ### END LIBTOOL TAG CONFIG: $tagname | 
 | 18790 |  | 
 | 18791 | __EOF__ | 
 | 18792 |  | 
 | 18793 |  | 
 | 18794 | else | 
 | 18795 |   # If there is no Makefile yet, we rely on a make rule to execute | 
 | 18796 |   # `config.status --recheck' to rerun these tests and create the | 
 | 18797 |   # libtool script then. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18798 |   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | 
 | 18799 |   if test -f "$ltmain_in"; then | 
 | 18800 |     test -f Makefile && make "$ltmain" | 
 | 18801 |   fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18802 | fi | 
 | 18803 |  | 
 | 18804 |  | 
 | 18805 | ac_ext=c | 
 | 18806 | ac_cpp='$CPP $CPPFLAGS' | 
 | 18807 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 18808 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 18809 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 18810 |  | 
 | 18811 | CC=$lt_save_CC | 
 | 18812 | LDCXX=$LD | 
 | 18813 | LD=$lt_save_LD | 
 | 18814 | GCC=$lt_save_GCC | 
 | 18815 | with_gnu_ldcxx=$with_gnu_ld | 
 | 18816 | with_gnu_ld=$lt_save_with_gnu_ld | 
 | 18817 | lt_cv_path_LDCXX=$lt_cv_path_LD | 
 | 18818 | lt_cv_path_LD=$lt_save_path_LD | 
 | 18819 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | 
 | 18820 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | 
 | 18821 |  | 
 | 18822 | 	else | 
 | 18823 | 	  tagname="" | 
 | 18824 | 	fi | 
 | 18825 | 	;; | 
 | 18826 |  | 
 | 18827 |       F77) | 
 | 18828 | 	if test -n "$F77" && test "X$F77" != "Xno"; then | 
 | 18829 |  | 
 | 18830 | ac_ext=f | 
 | 18831 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | 
 | 18832 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 18833 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | 
 | 18834 |  | 
 | 18835 |  | 
 | 18836 | archive_cmds_need_lc_F77=no | 
 | 18837 | allow_undefined_flag_F77= | 
 | 18838 | always_export_symbols_F77=no | 
 | 18839 | archive_expsym_cmds_F77= | 
 | 18840 | export_dynamic_flag_spec_F77= | 
 | 18841 | hardcode_direct_F77=no | 
 | 18842 | hardcode_libdir_flag_spec_F77= | 
 | 18843 | hardcode_libdir_flag_spec_ld_F77= | 
 | 18844 | hardcode_libdir_separator_F77= | 
 | 18845 | hardcode_minus_L_F77=no | 
 | 18846 | hardcode_automatic_F77=no | 
 | 18847 | module_cmds_F77= | 
 | 18848 | module_expsym_cmds_F77= | 
 | 18849 | link_all_deplibs_F77=unknown | 
 | 18850 | old_archive_cmds_F77=$old_archive_cmds | 
 | 18851 | no_undefined_flag_F77= | 
 | 18852 | whole_archive_flag_spec_F77= | 
 | 18853 | enable_shared_with_static_runtimes_F77=no | 
 | 18854 |  | 
 | 18855 | # Source file extension for f77 test sources. | 
 | 18856 | ac_ext=f | 
 | 18857 |  | 
 | 18858 | # Object file extension for compiled f77 test sources. | 
 | 18859 | objext=o | 
 | 18860 | objext_F77=$objext | 
 | 18861 |  | 
 | 18862 | # Code to be used in simple compile tests | 
 | 18863 | lt_simple_compile_test_code="      subroutine t\n      return\n      end\n" | 
 | 18864 |  | 
 | 18865 | # Code to be used in simple link tests | 
 | 18866 | lt_simple_link_test_code="      program t\n      end\n" | 
 | 18867 |  | 
 | 18868 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
 | 18869 |  | 
 | 18870 | # If no C compiler was specified, use CC. | 
 | 18871 | LTCC=${LTCC-"$CC"} | 
 | 18872 |  | 
 | 18873 | # Allow CC to be a program name with arguments. | 
 | 18874 | compiler=$CC | 
 | 18875 |  | 
 | 18876 |  | 
 | 18877 | # Allow CC to be a program name with arguments. | 
 | 18878 | lt_save_CC="$CC" | 
 | 18879 | CC=${F77-"f77"} | 
 | 18880 | compiler=$CC | 
 | 18881 | compiler_F77=$CC | 
 | 18882 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | 
 | 18883 |  | 
 | 18884 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | 
 | 18885 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | 
 | 18886 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | 
 | 18887 | echo "${ECHO_T}$can_build_shared" >&6 | 
 | 18888 |  | 
 | 18889 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | 
 | 18890 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | 
 | 18891 | test "$can_build_shared" = "no" && enable_shared=no | 
 | 18892 |  | 
 | 18893 | # On AIX, shared libraries and static libraries use the same namespace, and | 
 | 18894 | # are all built from PIC. | 
 | 18895 | case "$host_os" in | 
 | 18896 | aix3*) | 
 | 18897 |   test "$enable_shared" = yes && enable_static=no | 
 | 18898 |   if test -n "$RANLIB"; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18899 |     archive_cmds="$archive_cmds~\$RANLIB \$lib" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18900 |     postinstall_cmds='$RANLIB $lib' | 
 | 18901 |   fi | 
 | 18902 |   ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18903 | aix4* | aix5*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18904 |   test "$enable_shared" = yes && enable_static=no | 
 | 18905 |   ;; | 
 | 18906 | esac | 
 | 18907 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | 
 | 18908 | echo "${ECHO_T}$enable_shared" >&6 | 
 | 18909 |  | 
 | 18910 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | 
 | 18911 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | 
 | 18912 | # Make sure either enable_shared or enable_static is yes. | 
 | 18913 | test "$enable_shared" = yes || enable_static=yes | 
 | 18914 | echo "$as_me:$LINENO: result: $enable_static" >&5 | 
 | 18915 | echo "${ECHO_T}$enable_static" >&6 | 
 | 18916 |  | 
 | 18917 | test "$ld_shlibs_F77" = no && can_build_shared=no | 
 | 18918 |  | 
 | 18919 | GCC_F77="$G77" | 
 | 18920 | LD_F77="$LD" | 
 | 18921 |  | 
 | 18922 | lt_prog_compiler_wl_F77= | 
 | 18923 | lt_prog_compiler_pic_F77= | 
 | 18924 | lt_prog_compiler_static_F77= | 
 | 18925 |  | 
 | 18926 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 
 | 18927 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | 
 | 18928 |  | 
 | 18929 |   if test "$GCC" = yes; then | 
 | 18930 |     lt_prog_compiler_wl_F77='-Wl,' | 
 | 18931 |     lt_prog_compiler_static_F77='-static' | 
 | 18932 |  | 
 | 18933 |     case $host_os in | 
 | 18934 |       aix*) | 
 | 18935 |       # All AIX code is PIC. | 
 | 18936 |       if test "$host_cpu" = ia64; then | 
 | 18937 | 	# AIX 5 now supports IA64 processor | 
 | 18938 | 	lt_prog_compiler_static_F77='-Bstatic' | 
 | 18939 |       fi | 
 | 18940 |       ;; | 
 | 18941 |  | 
 | 18942 |     amigaos*) | 
 | 18943 |       # FIXME: we need at least 68020 code to build shared libraries, but | 
 | 18944 |       # adding the `-m68020' flag to GCC prevents building anything better, | 
 | 18945 |       # like `-m68040'. | 
 | 18946 |       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' | 
 | 18947 |       ;; | 
 | 18948 |  | 
 | 18949 |     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
 | 18950 |       # PIC is the default for these OSes. | 
 | 18951 |       ;; | 
 | 18952 |  | 
 | 18953 |     mingw* | pw32* | os2*) | 
 | 18954 |       # This hack is so that the source file can tell whether it is being | 
 | 18955 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 18956 |       lt_prog_compiler_pic_F77='-DDLL_EXPORT' | 
 | 18957 |       ;; | 
 | 18958 |  | 
 | 18959 |     darwin* | rhapsody*) | 
 | 18960 |       # PIC is the default on this platform | 
 | 18961 |       # Common symbols not allowed in MH_DYLIB files | 
 | 18962 |       lt_prog_compiler_pic_F77='-fno-common' | 
 | 18963 |       ;; | 
 | 18964 |  | 
 | 18965 |     msdosdjgpp*) | 
 | 18966 |       # Just because we use GCC doesn't mean we suddenly get shared libraries | 
 | 18967 |       # on systems that don't support them. | 
 | 18968 |       lt_prog_compiler_can_build_shared_F77=no | 
 | 18969 |       enable_shared=no | 
 | 18970 |       ;; | 
 | 18971 |  | 
 | 18972 |     sysv4*MP*) | 
 | 18973 |       if test -d /usr/nec; then | 
 | 18974 | 	lt_prog_compiler_pic_F77=-Kconform_pic | 
 | 18975 |       fi | 
 | 18976 |       ;; | 
 | 18977 |  | 
 | 18978 |     hpux*) | 
 | 18979 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 18980 |       # not for PA HP-UX. | 
 | 18981 |       case "$host_cpu" in | 
 | 18982 |       hppa*64*|ia64*) | 
 | 18983 | 	# +Z the default | 
 | 18984 | 	;; | 
 | 18985 |       *) | 
 | 18986 | 	lt_prog_compiler_pic_F77='-fPIC' | 
 | 18987 | 	;; | 
 | 18988 |       esac | 
 | 18989 |       ;; | 
 | 18990 |  | 
 | 18991 |     *) | 
 | 18992 |       lt_prog_compiler_pic_F77='-fPIC' | 
 | 18993 |       ;; | 
 | 18994 |     esac | 
 | 18995 |   else | 
 | 18996 |     # PORTME Check for flag to pass linker flags through the system compiler. | 
 | 18997 |     case $host_os in | 
 | 18998 |     aix*) | 
 | 18999 |       lt_prog_compiler_wl_F77='-Wl,' | 
 | 19000 |       if test "$host_cpu" = ia64; then | 
 | 19001 | 	# AIX 5 now supports IA64 processor | 
 | 19002 | 	lt_prog_compiler_static_F77='-Bstatic' | 
 | 19003 |       else | 
 | 19004 | 	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' | 
 | 19005 |       fi | 
 | 19006 |       ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19007 |       darwin*) | 
 | 19008 |         # PIC is the default on this platform | 
 | 19009 |         # Common symbols not allowed in MH_DYLIB files | 
 | 19010 |        case "$cc_basename" in | 
 | 19011 |          xlc*) | 
 | 19012 |          lt_prog_compiler_pic_F77='-qnocommon' | 
 | 19013 |          lt_prog_compiler_wl_F77='-Wl,' | 
 | 19014 |          ;; | 
 | 19015 |        esac | 
 | 19016 |        ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19017 |  | 
 | 19018 |     mingw* | pw32* | os2*) | 
 | 19019 |       # This hack is so that the source file can tell whether it is being | 
 | 19020 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 19021 |       lt_prog_compiler_pic_F77='-DDLL_EXPORT' | 
 | 19022 |       ;; | 
 | 19023 |  | 
 | 19024 |     hpux9* | hpux10* | hpux11*) | 
 | 19025 |       lt_prog_compiler_wl_F77='-Wl,' | 
 | 19026 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 19027 |       # not for PA HP-UX. | 
 | 19028 |       case "$host_cpu" in | 
 | 19029 |       hppa*64*|ia64*) | 
 | 19030 | 	# +Z the default | 
 | 19031 | 	;; | 
 | 19032 |       *) | 
 | 19033 | 	lt_prog_compiler_pic_F77='+Z' | 
 | 19034 | 	;; | 
 | 19035 |       esac | 
 | 19036 |       # Is there a better lt_prog_compiler_static that works with the bundled CC? | 
 | 19037 |       lt_prog_compiler_static_F77='${wl}-a ${wl}archive' | 
 | 19038 |       ;; | 
 | 19039 |  | 
 | 19040 |     irix5* | irix6* | nonstopux*) | 
 | 19041 |       lt_prog_compiler_wl_F77='-Wl,' | 
 | 19042 |       # PIC (with -KPIC) is the default. | 
 | 19043 |       lt_prog_compiler_static_F77='-non_shared' | 
 | 19044 |       ;; | 
 | 19045 |  | 
 | 19046 |     newsos6) | 
 | 19047 |       lt_prog_compiler_pic_F77='-KPIC' | 
 | 19048 |       lt_prog_compiler_static_F77='-Bstatic' | 
 | 19049 |       ;; | 
 | 19050 |  | 
 | 19051 |     linux*) | 
 | 19052 |       case $CC in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19053 |       icc* | ecc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19054 | 	lt_prog_compiler_wl_F77='-Wl,' | 
 | 19055 | 	lt_prog_compiler_pic_F77='-KPIC' | 
 | 19056 | 	lt_prog_compiler_static_F77='-static' | 
 | 19057 |         ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19058 |       ccc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19059 |         lt_prog_compiler_wl_F77='-Wl,' | 
 | 19060 |         # All Alpha code is PIC. | 
 | 19061 |         lt_prog_compiler_static_F77='-non_shared' | 
 | 19062 |         ;; | 
 | 19063 |       esac | 
 | 19064 |       ;; | 
 | 19065 |  | 
 | 19066 |     osf3* | osf4* | osf5*) | 
 | 19067 |       lt_prog_compiler_wl_F77='-Wl,' | 
 | 19068 |       # All OSF/1 code is PIC. | 
 | 19069 |       lt_prog_compiler_static_F77='-non_shared' | 
 | 19070 |       ;; | 
 | 19071 |  | 
 | 19072 |     sco3.2v5*) | 
 | 19073 |       lt_prog_compiler_pic_F77='-Kpic' | 
 | 19074 |       lt_prog_compiler_static_F77='-dn' | 
 | 19075 |       ;; | 
 | 19076 |  | 
 | 19077 |     solaris*) | 
 | 19078 |       lt_prog_compiler_wl_F77='-Wl,' | 
 | 19079 |       lt_prog_compiler_pic_F77='-KPIC' | 
 | 19080 |       lt_prog_compiler_static_F77='-Bstatic' | 
 | 19081 |       ;; | 
 | 19082 |  | 
 | 19083 |     sunos4*) | 
 | 19084 |       lt_prog_compiler_wl_F77='-Qoption ld ' | 
 | 19085 |       lt_prog_compiler_pic_F77='-PIC' | 
 | 19086 |       lt_prog_compiler_static_F77='-Bstatic' | 
 | 19087 |       ;; | 
 | 19088 |  | 
 | 19089 |     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 19090 |       lt_prog_compiler_wl_F77='-Wl,' | 
 | 19091 |       lt_prog_compiler_pic_F77='-KPIC' | 
 | 19092 |       lt_prog_compiler_static_F77='-Bstatic' | 
 | 19093 |       ;; | 
 | 19094 |  | 
 | 19095 |     sysv4*MP*) | 
 | 19096 |       if test -d /usr/nec ;then | 
 | 19097 | 	lt_prog_compiler_pic_F77='-Kconform_pic' | 
 | 19098 | 	lt_prog_compiler_static_F77='-Bstatic' | 
 | 19099 |       fi | 
 | 19100 |       ;; | 
 | 19101 |  | 
 | 19102 |     uts4*) | 
 | 19103 |       lt_prog_compiler_pic_F77='-pic' | 
 | 19104 |       lt_prog_compiler_static_F77='-Bstatic' | 
 | 19105 |       ;; | 
 | 19106 |  | 
 | 19107 |     *) | 
 | 19108 |       lt_prog_compiler_can_build_shared_F77=no | 
 | 19109 |       ;; | 
 | 19110 |     esac | 
 | 19111 |   fi | 
 | 19112 |  | 
 | 19113 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 | 
 | 19114 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 | 
 | 19115 |  | 
 | 19116 | # | 
 | 19117 | # Check to make sure the PIC flag actually works. | 
 | 19118 | # | 
 | 19119 | if test -n "$lt_prog_compiler_pic_F77"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19120 |  | 
 | 19121 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19122 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 | 
 | 19123 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then | 
 | 19124 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19125 | else | 
 | 19126 |   lt_prog_compiler_pic_works_F77=no | 
 | 19127 |   ac_outfile=conftest.$ac_objext | 
 | 19128 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 19129 |    lt_compiler_flag="$lt_prog_compiler_pic_F77" | 
 | 19130 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 19131 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 19132 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 19133 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 19134 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 19135 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 19136 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 19137 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 19138 |    -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 19139 |    (eval echo "\"\$as_me:19139: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19140 |    (eval "$lt_compile" 2>conftest.err) | 
 | 19141 |    ac_status=$? | 
 | 19142 |    cat conftest.err >&5 | 
| Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 19143 |    echo "$as_me:19143: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19144 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 19145 |      # The compiler can only warn and ignore the option if not recognized | 
 | 19146 |      # So say no if there are warnings | 
 | 19147 |      if test ! -s conftest.err; then | 
 | 19148 |        lt_prog_compiler_pic_works_F77=yes | 
 | 19149 |      fi | 
 | 19150 |    fi | 
 | 19151 |    $rm conftest* | 
 | 19152 |  | 
 | 19153 | fi | 
 | 19154 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 | 
 | 19155 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 | 
 | 19156 |  | 
 | 19157 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then | 
 | 19158 |     case $lt_prog_compiler_pic_F77 in | 
 | 19159 |      "" | " "*) ;; | 
 | 19160 |      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; | 
 | 19161 |      esac | 
 | 19162 | else | 
 | 19163 |     lt_prog_compiler_pic_F77= | 
 | 19164 |      lt_prog_compiler_can_build_shared_F77=no | 
 | 19165 | fi | 
 | 19166 |  | 
 | 19167 | fi | 
 | 19168 | case "$host_os" in | 
 | 19169 |   # For platforms which do not support PIC, -DPIC is meaningless: | 
 | 19170 |   *djgpp*) | 
 | 19171 |     lt_prog_compiler_pic_F77= | 
 | 19172 |     ;; | 
 | 19173 |   *) | 
 | 19174 |     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" | 
 | 19175 |     ;; | 
 | 19176 | esac | 
 | 19177 |  | 
 | 19178 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
 | 19179 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | 
 | 19180 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then | 
 | 19181 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19182 | else | 
 | 19183 |   lt_cv_prog_compiler_c_o_F77=no | 
 | 19184 |    $rm -r conftest 2>/dev/null | 
 | 19185 |    mkdir conftest | 
 | 19186 |    cd conftest | 
 | 19187 |    mkdir out | 
 | 19188 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 19189 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19190 |    lt_compiler_flag="-o out/conftest2.$ac_objext" | 
 | 19191 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 19192 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 19193 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 19194 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 19195 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 19196 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 19197 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 19198 |    -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 19199 |    (eval echo "\"\$as_me:19199: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19200 |    (eval "$lt_compile" 2>out/conftest.err) | 
 | 19201 |    ac_status=$? | 
 | 19202 |    cat out/conftest.err >&5 | 
| Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 19203 |    echo "$as_me:19203: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19204 |    if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
 | 19205 |    then | 
 | 19206 |      # The compiler can only warn and ignore the option if not recognized | 
 | 19207 |      # So say no if there are warnings | 
 | 19208 |      if test ! -s out/conftest.err; then | 
 | 19209 |        lt_cv_prog_compiler_c_o_F77=yes | 
 | 19210 |      fi | 
 | 19211 |    fi | 
 | 19212 |    chmod u+w . | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19213 |    $rm conftest* | 
 | 19214 |    # SGI C++ compiler will create directory out/ii_files/ for | 
 | 19215 |    # template instantiation | 
 | 19216 |    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | 
 | 19217 |    $rm out/* && rmdir out | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19218 |    cd .. | 
 | 19219 |    rmdir conftest | 
 | 19220 |    $rm conftest* | 
 | 19221 |  | 
 | 19222 | fi | 
 | 19223 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 | 
 | 19224 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 | 
 | 19225 |  | 
 | 19226 |  | 
 | 19227 | hard_links="nottested" | 
 | 19228 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then | 
 | 19229 |   # do not overwrite the value of need_locks provided by the user | 
 | 19230 |   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | 
 | 19231 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | 
 | 19232 |   hard_links=yes | 
 | 19233 |   $rm conftest* | 
 | 19234 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 19235 |   touch conftest.a | 
 | 19236 |   ln conftest.a conftest.b 2>&5 || hard_links=no | 
 | 19237 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 19238 |   echo "$as_me:$LINENO: result: $hard_links" >&5 | 
 | 19239 | echo "${ECHO_T}$hard_links" >&6 | 
 | 19240 |   if test "$hard_links" = no; then | 
 | 19241 |     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
 | 19242 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
 | 19243 |     need_locks=warn | 
 | 19244 |   fi | 
 | 19245 | else | 
 | 19246 |   need_locks=no | 
 | 19247 | fi | 
 | 19248 |  | 
 | 19249 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
 | 19250 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
 | 19251 |  | 
 | 19252 |   runpath_var= | 
 | 19253 |   allow_undefined_flag_F77= | 
 | 19254 |   enable_shared_with_static_runtimes_F77=no | 
 | 19255 |   archive_cmds_F77= | 
 | 19256 |   archive_expsym_cmds_F77= | 
 | 19257 |   old_archive_From_new_cmds_F77= | 
 | 19258 |   old_archive_from_expsyms_cmds_F77= | 
 | 19259 |   export_dynamic_flag_spec_F77= | 
 | 19260 |   whole_archive_flag_spec_F77= | 
 | 19261 |   thread_safe_flag_spec_F77= | 
 | 19262 |   hardcode_libdir_flag_spec_F77= | 
 | 19263 |   hardcode_libdir_flag_spec_ld_F77= | 
 | 19264 |   hardcode_libdir_separator_F77= | 
 | 19265 |   hardcode_direct_F77=no | 
 | 19266 |   hardcode_minus_L_F77=no | 
 | 19267 |   hardcode_shlibpath_var_F77=unsupported | 
 | 19268 |   link_all_deplibs_F77=unknown | 
 | 19269 |   hardcode_automatic_F77=no | 
 | 19270 |   module_cmds_F77= | 
 | 19271 |   module_expsym_cmds_F77= | 
 | 19272 |   always_export_symbols_F77=no | 
 | 19273 |   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 19274 |   # include_expsyms should be a list of space-separated symbols to be *always* | 
 | 19275 |   # included in the symbol list | 
 | 19276 |   include_expsyms_F77= | 
 | 19277 |   # exclude_expsyms can be an extended regexp of symbols to exclude | 
 | 19278 |   # it will be wrapped by ` (' and `)$', so one must not match beginning or | 
 | 19279 |   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | 
 | 19280 |   # as well as any symbol that contains `d'. | 
 | 19281 |   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" | 
 | 19282 |   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | 
 | 19283 |   # platforms (ab)use it in PIC code, but their linkers get confused if | 
 | 19284 |   # the symbol is explicitly referenced.  Since portable code cannot | 
 | 19285 |   # rely on this symbol name, it's probably fine to never include it in | 
 | 19286 |   # preloaded symbol tables. | 
 | 19287 |   extract_expsyms_cmds= | 
 | 19288 |  | 
 | 19289 |   case $host_os in | 
 | 19290 |   cygwin* | mingw* | pw32*) | 
 | 19291 |     # FIXME: the MSVC++ port hasn't been tested in a loooong time | 
 | 19292 |     # When not using gcc, we currently assume that we are using | 
 | 19293 |     # Microsoft Visual C++. | 
 | 19294 |     if test "$GCC" != yes; then | 
 | 19295 |       with_gnu_ld=no | 
 | 19296 |     fi | 
 | 19297 |     ;; | 
 | 19298 |   openbsd*) | 
 | 19299 |     with_gnu_ld=no | 
 | 19300 |     ;; | 
 | 19301 |   esac | 
 | 19302 |  | 
 | 19303 |   ld_shlibs_F77=yes | 
 | 19304 |   if test "$with_gnu_ld" = yes; then | 
 | 19305 |     # If archive_cmds runs LD, not CC, wlarc should be empty | 
 | 19306 |     wlarc='${wl}' | 
 | 19307 |  | 
 | 19308 |     # See if GNU ld supports shared libraries. | 
 | 19309 |     case $host_os in | 
 | 19310 |     aix3* | aix4* | aix5*) | 
 | 19311 |       # On AIX/PPC, the GNU linker is very broken | 
 | 19312 |       if test "$host_cpu" != ia64; then | 
 | 19313 | 	ld_shlibs_F77=no | 
 | 19314 | 	cat <<EOF 1>&2 | 
 | 19315 |  | 
 | 19316 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | 
 | 19317 | *** to be unable to reliably create shared libraries on AIX. | 
 | 19318 | *** Therefore, libtool is disabling shared libraries support.  If you | 
 | 19319 | *** really care for shared libraries, you may want to modify your PATH | 
 | 19320 | *** so that a non-GNU linker is found, and then restart. | 
 | 19321 |  | 
 | 19322 | EOF | 
 | 19323 |       fi | 
 | 19324 |       ;; | 
 | 19325 |  | 
 | 19326 |     amigaos*) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19327 |       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19328 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 19329 |       hardcode_minus_L_F77=yes | 
 | 19330 |  | 
 | 19331 |       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | 
 | 19332 |       # that the semantics of dynamic libraries on AmigaOS, at least up | 
 | 19333 |       # to version 4, is to share data among multiple programs linked | 
 | 19334 |       # with the same dynamic library.  Since this doesn't match the | 
 | 19335 |       # behavior of shared libraries on other platforms, we can't use | 
 | 19336 |       # them. | 
 | 19337 |       ld_shlibs_F77=no | 
 | 19338 |       ;; | 
 | 19339 |  | 
 | 19340 |     beos*) | 
 | 19341 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 19342 | 	allow_undefined_flag_F77=unsupported | 
 | 19343 | 	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 
 | 19344 | 	# support --undefined.  This deserves some investigation.  FIXME | 
 | 19345 | 	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 19346 |       else | 
 | 19347 | 	ld_shlibs_F77=no | 
 | 19348 |       fi | 
 | 19349 |       ;; | 
 | 19350 |  | 
 | 19351 |     cygwin* | mingw* | pw32*) | 
 | 19352 |       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, | 
 | 19353 |       # as there is no search path for DLLs. | 
 | 19354 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 19355 |       allow_undefined_flag_F77=unsupported | 
 | 19356 |       always_export_symbols_F77=no | 
 | 19357 |       enable_shared_with_static_runtimes_F77=yes | 
 | 19358 |       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 19359 |  | 
 | 19360 |       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 
 | 19361 |         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 
 | 19362 | 	# If the export-symbols file already is a .def file (1st line | 
 | 19363 | 	# is EXPORTS), use it as is; otherwise, prepend... | 
 | 19364 | 	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
 | 19365 | 	  cp $export_symbols $output_objdir/$soname.def; | 
 | 19366 | 	else | 
 | 19367 | 	  echo EXPORTS > $output_objdir/$soname.def; | 
 | 19368 | 	  cat $export_symbols >> $output_objdir/$soname.def; | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19369 | 	fi~ | 
 | 19370 | 	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19371 |       else | 
 | 19372 | 	ld_shlibs=no | 
 | 19373 |       fi | 
 | 19374 |       ;; | 
 | 19375 |  | 
 | 19376 |     netbsd*) | 
 | 19377 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 19378 | 	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | 
 | 19379 | 	wlarc= | 
 | 19380 |       else | 
 | 19381 | 	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 19382 | 	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 19383 |       fi | 
 | 19384 |       ;; | 
 | 19385 |  | 
 | 19386 |     solaris* | sysv5*) | 
 | 19387 |       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | 
 | 19388 | 	ld_shlibs_F77=no | 
 | 19389 | 	cat <<EOF 1>&2 | 
 | 19390 |  | 
 | 19391 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | 
 | 19392 | *** create shared libraries on Solaris systems.  Therefore, libtool | 
 | 19393 | *** is disabling shared libraries support.  We urge you to upgrade GNU | 
 | 19394 | *** binutils to release 2.9.1 or newer.  Another option is to modify | 
 | 19395 | *** your PATH or compiler configuration so that the native linker is | 
 | 19396 | *** used, and then restart. | 
 | 19397 |  | 
 | 19398 | EOF | 
 | 19399 |       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 19400 | 	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 19401 | 	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 19402 |       else | 
 | 19403 | 	ld_shlibs_F77=no | 
 | 19404 |       fi | 
 | 19405 |       ;; | 
 | 19406 |  | 
 | 19407 |     sunos4*) | 
 | 19408 |       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 19409 |       wlarc= | 
 | 19410 |       hardcode_direct_F77=yes | 
 | 19411 |       hardcode_shlibpath_var_F77=no | 
 | 19412 |       ;; | 
 | 19413 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19414 |   linux*) | 
 | 19415 |     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 19416 |         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 19417 | 	archive_cmds_F77="$tmp_archive_cmds" | 
 | 19418 |       supports_anon_versioning=no | 
 | 19419 |       case `$LD -v 2>/dev/null` in | 
 | 19420 |         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | 
 | 19421 |         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | 
 | 19422 |         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | 
 | 19423 |         *\ 2.11.*) ;; # other 2.11 versions | 
 | 19424 |         *) supports_anon_versioning=yes ;; | 
 | 19425 |       esac | 
 | 19426 |       if test $supports_anon_versioning = yes; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19427 |         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ | 
 | 19428 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | 
 | 19429 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19430 |         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | 
 | 19431 |       else | 
 | 19432 |         archive_expsym_cmds_F77="$tmp_archive_cmds" | 
 | 19433 |       fi | 
 | 19434 |     else | 
 | 19435 |       ld_shlibs_F77=no | 
 | 19436 |     fi | 
 | 19437 |     ;; | 
 | 19438 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19439 |     *) | 
 | 19440 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 19441 | 	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 19442 | 	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 19443 |       else | 
 | 19444 | 	ld_shlibs_F77=no | 
 | 19445 |       fi | 
 | 19446 |       ;; | 
 | 19447 |     esac | 
 | 19448 |  | 
 | 19449 |     if test "$ld_shlibs_F77" = yes; then | 
 | 19450 |       runpath_var=LD_RUN_PATH | 
 | 19451 |       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' | 
 | 19452 |       export_dynamic_flag_spec_F77='${wl}--export-dynamic' | 
 | 19453 |       # ancient GNU ld didn't support --whole-archive et. al. | 
 | 19454 |       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | 
 | 19455 |  	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
 | 19456 |       else | 
 | 19457 |   	whole_archive_flag_spec_F77= | 
 | 19458 |       fi | 
 | 19459 |     fi | 
 | 19460 |   else | 
 | 19461 |     # PORTME fill in a description of your system's linker (not GNU ld) | 
 | 19462 |     case $host_os in | 
 | 19463 |     aix3*) | 
 | 19464 |       allow_undefined_flag_F77=unsupported | 
 | 19465 |       always_export_symbols_F77=yes | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19466 |       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19467 |       # Note: this linker hardcodes the directories in LIBPATH if there | 
 | 19468 |       # are no directories specified by -L. | 
 | 19469 |       hardcode_minus_L_F77=yes | 
 | 19470 |       if test "$GCC" = yes && test -z "$link_static_flag"; then | 
 | 19471 | 	# Neither direct hardcoding nor static linking is supported with a | 
 | 19472 | 	# broken collect2. | 
 | 19473 | 	hardcode_direct_F77=unsupported | 
 | 19474 |       fi | 
 | 19475 |       ;; | 
 | 19476 |  | 
 | 19477 |     aix4* | aix5*) | 
 | 19478 |       if test "$host_cpu" = ia64; then | 
 | 19479 | 	# On IA64, the linker does run time linking by default, so we don't | 
 | 19480 | 	# have to do anything special. | 
 | 19481 | 	aix_use_runtimelinking=no | 
 | 19482 | 	exp_sym_flag='-Bexport' | 
 | 19483 | 	no_entry_flag="" | 
 | 19484 |       else | 
 | 19485 | 	# If we're using GNU nm, then we don't want the "-C" option. | 
 | 19486 | 	# -C means demangle to AIX nm, but means don't demangle with GNU nm | 
 | 19487 | 	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 
 | 19488 | 	  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' | 
 | 19489 | 	else | 
 | 19490 | 	  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' | 
 | 19491 | 	fi | 
 | 19492 | 	aix_use_runtimelinking=no | 
 | 19493 |  | 
 | 19494 | 	# Test if we are trying to use run time linking or normal | 
 | 19495 | 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
 | 19496 | 	# need to do runtime linking. | 
 | 19497 | 	case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 
 | 19498 | 	  for ld_flag in $LDFLAGS; do | 
 | 19499 |   	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 
 | 19500 |   	    aix_use_runtimelinking=yes | 
 | 19501 |   	    break | 
 | 19502 |   	  fi | 
 | 19503 | 	  done | 
 | 19504 | 	esac | 
 | 19505 |  | 
 | 19506 | 	exp_sym_flag='-bexport' | 
 | 19507 | 	no_entry_flag='-bnoentry' | 
 | 19508 |       fi | 
 | 19509 |  | 
 | 19510 |       # When large executables or shared objects are built, AIX ld can | 
 | 19511 |       # have problems creating the table of contents.  If linking a library | 
 | 19512 |       # or program results in "error TOC overflow" add -mminimal-toc to | 
 | 19513 |       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
 | 19514 |       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
 | 19515 |  | 
 | 19516 |       archive_cmds_F77='' | 
 | 19517 |       hardcode_direct_F77=yes | 
 | 19518 |       hardcode_libdir_separator_F77=':' | 
 | 19519 |       link_all_deplibs_F77=yes | 
 | 19520 |  | 
 | 19521 |       if test "$GCC" = yes; then | 
 | 19522 | 	case $host_os in aix4.012|aix4.012.*) | 
 | 19523 | 	# We only want to do this on AIX 4.2 and lower, the check | 
 | 19524 | 	# below for broken collect2 doesn't work under 4.3+ | 
 | 19525 | 	  collect2name=`${CC} -print-prog-name=collect2` | 
 | 19526 | 	  if test -f "$collect2name" && \ | 
 | 19527 |   	   strings "$collect2name" | grep resolve_lib_name >/dev/null | 
 | 19528 | 	  then | 
 | 19529 |   	  # We have reworked collect2 | 
 | 19530 |   	  hardcode_direct_F77=yes | 
 | 19531 | 	  else | 
 | 19532 |   	  # We have old collect2 | 
 | 19533 |   	  hardcode_direct_F77=unsupported | 
 | 19534 |   	  # It fails to find uninstalled libraries when the uninstalled | 
 | 19535 |   	  # path is not listed in the libpath.  Setting hardcode_minus_L | 
 | 19536 |   	  # to unsupported forces relinking | 
 | 19537 |   	  hardcode_minus_L_F77=yes | 
 | 19538 |   	  hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 19539 |   	  hardcode_libdir_separator_F77= | 
 | 19540 | 	  fi | 
 | 19541 | 	esac | 
 | 19542 | 	shared_flag='-shared' | 
 | 19543 |       else | 
 | 19544 | 	# not using gcc | 
 | 19545 | 	if test "$host_cpu" = ia64; then | 
 | 19546 |   	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
 | 19547 |   	# chokes on -Wl,-G. The following line is correct: | 
 | 19548 | 	  shared_flag='-G' | 
 | 19549 | 	else | 
 | 19550 |   	if test "$aix_use_runtimelinking" = yes; then | 
 | 19551 | 	    shared_flag='${wl}-G' | 
 | 19552 | 	  else | 
 | 19553 | 	    shared_flag='${wl}-bM:SRE' | 
 | 19554 |   	fi | 
 | 19555 | 	fi | 
 | 19556 |       fi | 
 | 19557 |  | 
 | 19558 |       # It seems that -bexpall does not export symbols beginning with | 
 | 19559 |       # underscore (_), so it is better to generate a list of symbols to export. | 
 | 19560 |       always_export_symbols_F77=yes | 
 | 19561 |       if test "$aix_use_runtimelinking" = yes; then | 
 | 19562 | 	# Warning - without using the other runtime loading flags (-brtl), | 
 | 19563 | 	# -berok will link without error, but may produce a broken library. | 
 | 19564 | 	allow_undefined_flag_F77='-berok' | 
 | 19565 |        # Determine the default libpath from the value encoded in an empty executable. | 
 | 19566 |        cat >conftest.$ac_ext <<_ACEOF | 
 | 19567 |       program main | 
 | 19568 |  | 
 | 19569 |       end | 
 | 19570 | _ACEOF | 
 | 19571 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 19572 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19573 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19574 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19575 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 19576 |   rm -f conftest.er1 | 
 | 19577 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19578 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19579 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19580 | 	 { ac_try='test -z "$ac_f77_werror_flag" | 
 | 19581 | 			 || test ! -s conftest.err' | 
 | 19582 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19583 |   (eval $ac_try) 2>&5 | 
 | 19584 |   ac_status=$? | 
 | 19585 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19586 |   (exit $ac_status); }; } && | 
 | 19587 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19588 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19589 |   (eval $ac_try) 2>&5 | 
 | 19590 |   ac_status=$? | 
 | 19591 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19592 |   (exit $ac_status); }; }; then | 
 | 19593 |  | 
 | 19594 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 19595 | }'` | 
 | 19596 | # Check for a 64-bit object if we didn't find anything. | 
 | 19597 | 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; } | 
 | 19598 | }'`; fi | 
 | 19599 | else | 
 | 19600 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19601 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19602 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19603 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19604 | rm -f conftest.err conftest.$ac_objext \ | 
 | 19605 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19606 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
 | 19607 |  | 
 | 19608 |        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 19609 | 	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" | 
 | 19610 |        else | 
 | 19611 | 	if test "$host_cpu" = ia64; then | 
 | 19612 | 	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' | 
 | 19613 | 	  allow_undefined_flag_F77="-z nodefs" | 
 | 19614 | 	  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" | 
 | 19615 | 	else | 
 | 19616 | 	 # Determine the default libpath from the value encoded in an empty executable. | 
 | 19617 | 	 cat >conftest.$ac_ext <<_ACEOF | 
 | 19618 |       program main | 
 | 19619 |  | 
 | 19620 |       end | 
 | 19621 | _ACEOF | 
 | 19622 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 19623 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19624 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19625 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19626 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 19627 |   rm -f conftest.er1 | 
 | 19628 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19629 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19630 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19631 | 	 { ac_try='test -z "$ac_f77_werror_flag" | 
 | 19632 | 			 || test ! -s conftest.err' | 
 | 19633 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19634 |   (eval $ac_try) 2>&5 | 
 | 19635 |   ac_status=$? | 
 | 19636 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19637 |   (exit $ac_status); }; } && | 
 | 19638 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19639 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19640 |   (eval $ac_try) 2>&5 | 
 | 19641 |   ac_status=$? | 
 | 19642 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19643 |   (exit $ac_status); }; }; then | 
 | 19644 |  | 
 | 19645 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 19646 | }'` | 
 | 19647 | # Check for a 64-bit object if we didn't find anything. | 
 | 19648 | 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; } | 
 | 19649 | }'`; fi | 
 | 19650 | else | 
 | 19651 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19652 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19653 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19654 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19655 | rm -f conftest.err conftest.$ac_objext \ | 
 | 19656 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19657 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
 | 19658 |  | 
 | 19659 | 	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 19660 | 	  # Warning - without using the other run time loading flags, | 
 | 19661 | 	  # -berok will link without error, but may produce a broken library. | 
 | 19662 | 	  no_undefined_flag_F77=' ${wl}-bernotok' | 
 | 19663 | 	  allow_undefined_flag_F77=' ${wl}-berok' | 
 | 19664 | 	  # -bexpall does not export symbols beginning with underscore (_) | 
 | 19665 | 	  always_export_symbols_F77=yes | 
 | 19666 | 	  # Exported symbols can be pulled into shared objects from archives | 
 | 19667 | 	  whole_archive_flag_spec_F77=' ' | 
 | 19668 | 	  archive_cmds_need_lc_F77=yes | 
 | 19669 | 	  # This is similar to how AIX traditionally builds it's shared libraries. | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19670 | 	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19671 | 	fi | 
 | 19672 |       fi | 
 | 19673 |       ;; | 
 | 19674 |  | 
 | 19675 |     amigaos*) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19676 |       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19677 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 19678 |       hardcode_minus_L_F77=yes | 
 | 19679 |       # see comment about different semantics on the GNU ld section | 
 | 19680 |       ld_shlibs_F77=no | 
 | 19681 |       ;; | 
 | 19682 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19683 |     bsdi[45]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19684 |       export_dynamic_flag_spec_F77=-rdynamic | 
 | 19685 |       ;; | 
 | 19686 |  | 
 | 19687 |     cygwin* | mingw* | pw32*) | 
 | 19688 |       # When not using gcc, we currently assume that we are using | 
 | 19689 |       # Microsoft Visual C++. | 
 | 19690 |       # hardcode_libdir_flag_spec is actually meaningless, as there is | 
 | 19691 |       # no search path for DLLs. | 
 | 19692 |       hardcode_libdir_flag_spec_F77=' ' | 
 | 19693 |       allow_undefined_flag_F77=unsupported | 
 | 19694 |       # Tell ltmain to make .lib files, not .a files. | 
 | 19695 |       libext=lib | 
 | 19696 |       # Tell ltmain to make .dll files, not .so files. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19697 |       shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19698 |       # FIXME: Setting linknames here is a bad hack. | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19699 |       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19700 |       # The linker will automatically build a .lib file if we build a DLL. | 
 | 19701 |       old_archive_From_new_cmds_F77='true' | 
 | 19702 |       # FIXME: Should let the user specify the lib program. | 
 | 19703 |       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' | 
 | 19704 |       fix_srcfile_path='`cygpath -w "$srcfile"`' | 
 | 19705 |       enable_shared_with_static_runtimes_F77=yes | 
 | 19706 |       ;; | 
 | 19707 |  | 
 | 19708 |     darwin* | rhapsody*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19709 |       case "$host_os" in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19710 |         rhapsody* | darwin1.[012]) | 
 | 19711 |          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' | 
 | 19712 |          ;; | 
 | 19713 |        *) # Darwin 1.3 on | 
 | 19714 |          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | 
 | 19715 |            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 19716 |          else | 
 | 19717 |            case ${MACOSX_DEPLOYMENT_TARGET} in | 
 | 19718 |              10.[012]) | 
 | 19719 |                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 19720 |                ;; | 
 | 19721 |              10.*) | 
 | 19722 |                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' | 
 | 19723 |                ;; | 
 | 19724 |            esac | 
 | 19725 |          fi | 
 | 19726 |          ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19727 |       esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19728 |       archive_cmds_need_lc_F77=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19729 |       hardcode_direct_F77=no | 
 | 19730 |       hardcode_automatic_F77=yes | 
 | 19731 |       hardcode_shlibpath_var_F77=unsupported | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19732 |       whole_archive_flag_spec_F77='' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19733 |       link_all_deplibs_F77=yes | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19734 |     if test "$GCC" = yes ; then | 
 | 19735 |     	output_verbose_link_cmd='echo' | 
 | 19736 |         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 
 | 19737 |       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
 | 19738 |       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19739 |       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
 | 19740 |       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19741 |     else | 
 | 19742 |       case "$cc_basename" in | 
 | 19743 |         xlc*) | 
 | 19744 |          output_verbose_link_cmd='echo' | 
 | 19745 |          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | 
 | 19746 |          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
 | 19747 |           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19748 |          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
 | 19749 |           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19750 |           ;; | 
 | 19751 |        *) | 
 | 19752 |          ld_shlibs_F77=no | 
 | 19753 |           ;; | 
 | 19754 |       esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19755 |     fi | 
 | 19756 |       ;; | 
 | 19757 |  | 
 | 19758 |     dgux*) | 
 | 19759 |       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 19760 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 19761 |       hardcode_shlibpath_var_F77=no | 
 | 19762 |       ;; | 
 | 19763 |  | 
 | 19764 |     freebsd1*) | 
 | 19765 |       ld_shlibs_F77=no | 
 | 19766 |       ;; | 
 | 19767 |  | 
 | 19768 |     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 
 | 19769 |     # support.  Future versions do this automatically, but an explicit c++rt0.o | 
 | 19770 |     # does not break anything, and helps significantly (at the cost of a little | 
 | 19771 |     # extra space). | 
 | 19772 |     freebsd2.2*) | 
 | 19773 |       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | 
 | 19774 |       hardcode_libdir_flag_spec_F77='-R$libdir' | 
 | 19775 |       hardcode_direct_F77=yes | 
 | 19776 |       hardcode_shlibpath_var_F77=no | 
 | 19777 |       ;; | 
 | 19778 |  | 
 | 19779 |     # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 
 | 19780 |     freebsd2*) | 
 | 19781 |       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 19782 |       hardcode_direct_F77=yes | 
 | 19783 |       hardcode_minus_L_F77=yes | 
 | 19784 |       hardcode_shlibpath_var_F77=no | 
 | 19785 |       ;; | 
 | 19786 |  | 
 | 19787 |     # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19788 |     freebsd* | kfreebsd*-gnu) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19789 |       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | 
 | 19790 |       hardcode_libdir_flag_spec_F77='-R$libdir' | 
 | 19791 |       hardcode_direct_F77=yes | 
 | 19792 |       hardcode_shlibpath_var_F77=no | 
 | 19793 |       ;; | 
 | 19794 |  | 
 | 19795 |     hpux9*) | 
 | 19796 |       if test "$GCC" = yes; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19797 | 	archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19798 |       else | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19799 | 	archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19800 |       fi | 
 | 19801 |       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | 
 | 19802 |       hardcode_libdir_separator_F77=: | 
 | 19803 |       hardcode_direct_F77=yes | 
 | 19804 |  | 
 | 19805 |       # hardcode_minus_L: Not really in the search PATH, | 
 | 19806 |       # but as the default location of the library. | 
 | 19807 |       hardcode_minus_L_F77=yes | 
 | 19808 |       export_dynamic_flag_spec_F77='${wl}-E' | 
 | 19809 |       ;; | 
 | 19810 |  | 
 | 19811 |     hpux10* | hpux11*) | 
 | 19812 |       if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 
 | 19813 | 	case "$host_cpu" in | 
 | 19814 | 	hppa*64*|ia64*) | 
 | 19815 | 	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 19816 | 	  ;; | 
 | 19817 | 	*) | 
 | 19818 | 	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
 | 19819 | 	  ;; | 
 | 19820 | 	esac | 
 | 19821 |       else | 
 | 19822 | 	case "$host_cpu" in | 
 | 19823 | 	hppa*64*|ia64*) | 
 | 19824 | 	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 19825 | 	  ;; | 
 | 19826 | 	*) | 
 | 19827 | 	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 
 | 19828 | 	  ;; | 
 | 19829 | 	esac | 
 | 19830 |       fi | 
 | 19831 |       if test "$with_gnu_ld" = no; then | 
 | 19832 | 	case "$host_cpu" in | 
 | 19833 | 	hppa*64*) | 
 | 19834 | 	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | 
 | 19835 | 	  hardcode_libdir_flag_spec_ld_F77='+b $libdir' | 
 | 19836 | 	  hardcode_libdir_separator_F77=: | 
 | 19837 | 	  hardcode_direct_F77=no | 
 | 19838 | 	  hardcode_shlibpath_var_F77=no | 
 | 19839 | 	  ;; | 
 | 19840 | 	ia64*) | 
 | 19841 | 	  hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 19842 | 	  hardcode_direct_F77=no | 
 | 19843 | 	  hardcode_shlibpath_var_F77=no | 
 | 19844 |  | 
 | 19845 | 	  # hardcode_minus_L: Not really in the search PATH, | 
 | 19846 | 	  # but as the default location of the library. | 
 | 19847 | 	  hardcode_minus_L_F77=yes | 
 | 19848 | 	  ;; | 
 | 19849 | 	*) | 
 | 19850 | 	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | 
 | 19851 | 	  hardcode_libdir_separator_F77=: | 
 | 19852 | 	  hardcode_direct_F77=yes | 
 | 19853 | 	  export_dynamic_flag_spec_F77='${wl}-E' | 
 | 19854 |  | 
 | 19855 | 	  # hardcode_minus_L: Not really in the search PATH, | 
 | 19856 | 	  # but as the default location of the library. | 
 | 19857 | 	  hardcode_minus_L_F77=yes | 
 | 19858 | 	  ;; | 
 | 19859 | 	esac | 
 | 19860 |       fi | 
 | 19861 |       ;; | 
 | 19862 |  | 
 | 19863 |     irix5* | irix6* | nonstopux*) | 
 | 19864 |       if test "$GCC" = yes; then | 
 | 19865 | 	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' | 
 | 19866 |       else | 
 | 19867 | 	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' | 
 | 19868 | 	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' | 
 | 19869 |       fi | 
 | 19870 |       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | 
 | 19871 |       hardcode_libdir_separator_F77=: | 
 | 19872 |       link_all_deplibs_F77=yes | 
 | 19873 |       ;; | 
 | 19874 |  | 
 | 19875 |     netbsd*) | 
 | 19876 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 19877 | 	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out | 
 | 19878 |       else | 
 | 19879 | 	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF | 
 | 19880 |       fi | 
 | 19881 |       hardcode_libdir_flag_spec_F77='-R$libdir' | 
 | 19882 |       hardcode_direct_F77=yes | 
 | 19883 |       hardcode_shlibpath_var_F77=no | 
 | 19884 |       ;; | 
 | 19885 |  | 
 | 19886 |     newsos6) | 
 | 19887 |       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 19888 |       hardcode_direct_F77=yes | 
 | 19889 |       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | 
 | 19890 |       hardcode_libdir_separator_F77=: | 
 | 19891 |       hardcode_shlibpath_var_F77=no | 
 | 19892 |       ;; | 
 | 19893 |  | 
 | 19894 |     openbsd*) | 
 | 19895 |       hardcode_direct_F77=yes | 
 | 19896 |       hardcode_shlibpath_var_F77=no | 
 | 19897 |       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 19898 | 	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19899 | 	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19900 | 	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | 
 | 19901 | 	export_dynamic_flag_spec_F77='${wl}-E' | 
 | 19902 |       else | 
 | 19903 |        case $host_os in | 
 | 19904 | 	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | 
 | 19905 | 	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 19906 | 	   hardcode_libdir_flag_spec_F77='-R$libdir' | 
 | 19907 | 	   ;; | 
 | 19908 | 	 *) | 
 | 19909 | 	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
 | 19910 | 	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | 
 | 19911 | 	   ;; | 
 | 19912 |        esac | 
 | 19913 |       fi | 
 | 19914 |       ;; | 
 | 19915 |  | 
 | 19916 |     os2*) | 
 | 19917 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 19918 |       hardcode_minus_L_F77=yes | 
 | 19919 |       allow_undefined_flag_F77=unsupported | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19920 |       archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19921 |       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | 
 | 19922 |       ;; | 
 | 19923 |  | 
 | 19924 |     osf3*) | 
 | 19925 |       if test "$GCC" = yes; then | 
 | 19926 | 	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | 
 | 19927 | 	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' | 
 | 19928 |       else | 
 | 19929 | 	allow_undefined_flag_F77=' -expect_unresolved \*' | 
 | 19930 | 	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' | 
 | 19931 |       fi | 
 | 19932 |       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | 
 | 19933 |       hardcode_libdir_separator_F77=: | 
 | 19934 |       ;; | 
 | 19935 |  | 
 | 19936 |     osf4* | osf5*)	# as osf3* with the addition of -msym flag | 
 | 19937 |       if test "$GCC" = yes; then | 
 | 19938 | 	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | 
 | 19939 | 	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' | 
 | 19940 | 	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | 
 | 19941 |       else | 
 | 19942 | 	allow_undefined_flag_F77=' -expect_unresolved \*' | 
 | 19943 | 	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19944 | 	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~ | 
 | 19945 | 	$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' | 
 | 19946 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19947 | 	# Both c and cxx compiler support -rpath directly | 
 | 19948 | 	hardcode_libdir_flag_spec_F77='-rpath $libdir' | 
 | 19949 |       fi | 
 | 19950 |       hardcode_libdir_separator_F77=: | 
 | 19951 |       ;; | 
 | 19952 |  | 
 | 19953 |     sco3.2v5*) | 
 | 19954 |       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 19955 |       hardcode_shlibpath_var_F77=no | 
 | 19956 |       export_dynamic_flag_spec_F77='${wl}-Bexport' | 
 | 19957 |       runpath_var=LD_RUN_PATH | 
 | 19958 |       hardcode_runpath_var=yes | 
 | 19959 |       ;; | 
 | 19960 |  | 
 | 19961 |     solaris*) | 
 | 19962 |       no_undefined_flag_F77=' -z text' | 
 | 19963 |       if test "$GCC" = yes; then | 
 | 19964 | 	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19965 | 	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 19966 | 	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19967 |       else | 
 | 19968 | 	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19969 | 	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 19970 |   	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19971 |       fi | 
 | 19972 |       hardcode_libdir_flag_spec_F77='-R$libdir' | 
 | 19973 |       hardcode_shlibpath_var_F77=no | 
 | 19974 |       case $host_os in | 
 | 19975 |       solaris2.[0-5] | solaris2.[0-5].*) ;; | 
 | 19976 |       *) # Supported since Solaris 2.6 (maybe 2.5.1?) | 
 | 19977 | 	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; | 
 | 19978 |       esac | 
 | 19979 |       link_all_deplibs_F77=yes | 
 | 19980 |       ;; | 
 | 19981 |  | 
 | 19982 |     sunos4*) | 
 | 19983 |       if test "x$host_vendor" = xsequent; then | 
 | 19984 | 	# Use $CC to link under sequent, because it throws in some extra .o | 
 | 19985 | 	# files that make .init and .fini sections work. | 
 | 19986 | 	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 19987 |       else | 
 | 19988 | 	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | 
 | 19989 |       fi | 
 | 19990 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 19991 |       hardcode_direct_F77=yes | 
 | 19992 |       hardcode_minus_L_F77=yes | 
 | 19993 |       hardcode_shlibpath_var_F77=no | 
 | 19994 |       ;; | 
 | 19995 |  | 
 | 19996 |     sysv4) | 
 | 19997 |       case $host_vendor in | 
 | 19998 | 	sni) | 
 | 19999 | 	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 20000 | 	  hardcode_direct_F77=yes # is this really true??? | 
 | 20001 | 	;; | 
 | 20002 | 	siemens) | 
 | 20003 | 	  ## LD is ld it makes a PLAMLIB | 
 | 20004 | 	  ## CC just makes a GrossModule. | 
 | 20005 | 	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
 | 20006 | 	  reload_cmds_F77='$CC -r -o $output$reload_objs' | 
 | 20007 | 	  hardcode_direct_F77=no | 
 | 20008 |         ;; | 
 | 20009 | 	motorola) | 
 | 20010 | 	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 20011 | 	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie | 
 | 20012 | 	;; | 
 | 20013 |       esac | 
 | 20014 |       runpath_var='LD_RUN_PATH' | 
 | 20015 |       hardcode_shlibpath_var_F77=no | 
 | 20016 |       ;; | 
 | 20017 |  | 
 | 20018 |     sysv4.3*) | 
 | 20019 |       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 20020 |       hardcode_shlibpath_var_F77=no | 
 | 20021 |       export_dynamic_flag_spec_F77='-Bexport' | 
 | 20022 |       ;; | 
 | 20023 |  | 
 | 20024 |     sysv4*MP*) | 
 | 20025 |       if test -d /usr/nec; then | 
 | 20026 | 	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 20027 | 	hardcode_shlibpath_var_F77=no | 
 | 20028 | 	runpath_var=LD_RUN_PATH | 
 | 20029 | 	hardcode_runpath_var=yes | 
 | 20030 | 	ld_shlibs_F77=yes | 
 | 20031 |       fi | 
 | 20032 |       ;; | 
 | 20033 |  | 
 | 20034 |     sysv4.2uw2*) | 
 | 20035 |       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
 | 20036 |       hardcode_direct_F77=yes | 
 | 20037 |       hardcode_minus_L_F77=no | 
 | 20038 |       hardcode_shlibpath_var_F77=no | 
 | 20039 |       hardcode_runpath_var=yes | 
 | 20040 |       runpath_var=LD_RUN_PATH | 
 | 20041 |       ;; | 
 | 20042 |  | 
 | 20043 |    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*) | 
 | 20044 |       no_undefined_flag_F77='${wl}-z ${wl}text' | 
 | 20045 |       if test "$GCC" = yes; then | 
 | 20046 | 	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 20047 |       else | 
 | 20048 | 	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 20049 |       fi | 
 | 20050 |       runpath_var='LD_RUN_PATH' | 
 | 20051 |       hardcode_shlibpath_var_F77=no | 
 | 20052 |       ;; | 
 | 20053 |  | 
 | 20054 |     sysv5*) | 
 | 20055 |       no_undefined_flag_F77=' -z text' | 
 | 20056 |       # $CC -shared without GNU ld will not create a library from C++ | 
 | 20057 |       # object files and a static libstdc++, better avoid it by now | 
 | 20058 |       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20059 |       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 20060 |   		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20061 |       hardcode_libdir_flag_spec_F77= | 
 | 20062 |       hardcode_shlibpath_var_F77=no | 
 | 20063 |       runpath_var='LD_RUN_PATH' | 
 | 20064 |       ;; | 
 | 20065 |  | 
 | 20066 |     uts4*) | 
 | 20067 |       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 20068 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 20069 |       hardcode_shlibpath_var_F77=no | 
 | 20070 |       ;; | 
 | 20071 |  | 
 | 20072 |     *) | 
 | 20073 |       ld_shlibs_F77=no | 
 | 20074 |       ;; | 
 | 20075 |     esac | 
 | 20076 |   fi | 
 | 20077 |  | 
 | 20078 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 | 
 | 20079 | echo "${ECHO_T}$ld_shlibs_F77" >&6 | 
 | 20080 | test "$ld_shlibs_F77" = no && can_build_shared=no | 
 | 20081 |  | 
 | 20082 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
 | 20083 | if test "$GCC" = yes; then | 
 | 20084 |   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
 | 20085 | fi | 
 | 20086 |  | 
 | 20087 | # | 
 | 20088 | # Do we need to explicitly link libc? | 
 | 20089 | # | 
 | 20090 | case "x$archive_cmds_need_lc_F77" in | 
 | 20091 | x|xyes) | 
 | 20092 |   # Assume -lc should be added | 
 | 20093 |   archive_cmds_need_lc_F77=yes | 
 | 20094 |  | 
 | 20095 |   if test "$enable_shared" = yes && test "$GCC" = yes; then | 
 | 20096 |     case $archive_cmds_F77 in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20097 |     *'~'*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20098 |       # FIXME: we may have to deal with multi-command sequences. | 
 | 20099 |       ;; | 
 | 20100 |     '$CC '*) | 
 | 20101 |       # Test whether the compiler implicitly links with -lc since on some | 
 | 20102 |       # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
 | 20103 |       # to ld, don't add -lc before -lgcc. | 
 | 20104 |       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | 
 | 20105 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | 
 | 20106 |       $rm conftest* | 
 | 20107 |       printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 20108 |  | 
 | 20109 |       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 20110 |   (eval $ac_compile) 2>&5 | 
 | 20111 |   ac_status=$? | 
 | 20112 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20113 |   (exit $ac_status); } 2>conftest.err; then | 
 | 20114 |         soname=conftest | 
 | 20115 |         lib=conftest | 
 | 20116 |         libobjs=conftest.$ac_objext | 
 | 20117 |         deplibs= | 
 | 20118 |         wl=$lt_prog_compiler_wl_F77 | 
 | 20119 |         compiler_flags=-v | 
 | 20120 |         linker_flags=-v | 
 | 20121 |         verstring= | 
 | 20122 |         output_objdir=. | 
 | 20123 |         libname=conftest | 
 | 20124 |         lt_save_allow_undefined_flag=$allow_undefined_flag_F77 | 
 | 20125 |         allow_undefined_flag_F77= | 
 | 20126 |         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | 
 | 20127 |   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
 | 20128 |   ac_status=$? | 
 | 20129 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20130 |   (exit $ac_status); } | 
 | 20131 |         then | 
 | 20132 | 	  archive_cmds_need_lc_F77=no | 
 | 20133 |         else | 
 | 20134 | 	  archive_cmds_need_lc_F77=yes | 
 | 20135 |         fi | 
 | 20136 |         allow_undefined_flag_F77=$lt_save_allow_undefined_flag | 
 | 20137 |       else | 
 | 20138 |         cat conftest.err 1>&5 | 
 | 20139 |       fi | 
 | 20140 |       $rm conftest* | 
 | 20141 |       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 | 
 | 20142 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 | 
 | 20143 |       ;; | 
 | 20144 |     esac | 
 | 20145 |   fi | 
 | 20146 |   ;; | 
 | 20147 | esac | 
 | 20148 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20149 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
 | 20150 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 
 | 20151 | library_names_spec= | 
 | 20152 | libname_spec='lib$name' | 
 | 20153 | soname_spec= | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20154 | shrext_cmds=".so" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20155 | postinstall_cmds= | 
 | 20156 | postuninstall_cmds= | 
 | 20157 | finish_cmds= | 
 | 20158 | finish_eval= | 
 | 20159 | shlibpath_var= | 
 | 20160 | shlibpath_overrides_runpath=unknown | 
 | 20161 | version_type=none | 
 | 20162 | dynamic_linker="$host_os ld.so" | 
 | 20163 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
 | 20164 | if test "$GCC" = yes; then | 
 | 20165 |   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 20166 |   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
 | 20167 |     # if the path contains ";" then we assume it to be the separator | 
 | 20168 |     # otherwise default to the standard path separator (i.e. ":") - it is | 
 | 20169 |     # assumed that no part of a normal pathname contains ";" but that should | 
 | 20170 |     # okay in the real world where ";" in dirpaths is itself problematic. | 
 | 20171 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 20172 |   else | 
 | 20173 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 20174 |   fi | 
 | 20175 | else | 
 | 20176 |   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
 | 20177 | fi | 
 | 20178 | need_lib_prefix=unknown | 
 | 20179 | hardcode_into_libs=no | 
 | 20180 |  | 
 | 20181 | # when you set need_version to no, make sure it does not cause -set_version | 
 | 20182 | # flags to be left without arguments | 
 | 20183 | need_version=unknown | 
 | 20184 |  | 
 | 20185 | case $host_os in | 
 | 20186 | aix3*) | 
 | 20187 |   version_type=linux | 
 | 20188 |   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
 | 20189 |   shlibpath_var=LIBPATH | 
 | 20190 |  | 
 | 20191 |   # AIX 3 has no versioning support, so we append a major version to the name. | 
 | 20192 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20193 |   ;; | 
 | 20194 |  | 
 | 20195 | aix4* | aix5*) | 
 | 20196 |   version_type=linux | 
 | 20197 |   need_lib_prefix=no | 
 | 20198 |   need_version=no | 
 | 20199 |   hardcode_into_libs=yes | 
 | 20200 |   if test "$host_cpu" = ia64; then | 
 | 20201 |     # AIX 5 supports IA64 | 
 | 20202 |     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
 | 20203 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 20204 |   else | 
 | 20205 |     # With GCC up to 2.95.x, collect2 would create an import file | 
 | 20206 |     # for dependence libraries.  The import file would start with | 
 | 20207 |     # the line `#! .'.  This would cause the generated library to | 
 | 20208 |     # depend on `.', always an invalid library.  This was fixed in | 
 | 20209 |     # development snapshots of GCC prior to 3.0. | 
 | 20210 |     case $host_os in | 
 | 20211 |       aix4 | aix4.[01] | aix4.[01].*) | 
 | 20212 |       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
 | 20213 | 	   echo ' yes ' | 
 | 20214 | 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
 | 20215 | 	: | 
 | 20216 |       else | 
 | 20217 | 	can_build_shared=no | 
 | 20218 |       fi | 
 | 20219 |       ;; | 
 | 20220 |     esac | 
 | 20221 |     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
 | 20222 |     # soname into executable. Probably we can add versioning support to | 
 | 20223 |     # collect2, so additional links can be useful in future. | 
 | 20224 |     if test "$aix_use_runtimelinking" = yes; then | 
 | 20225 |       # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
 | 20226 |       # instead of lib<name>.a to let people know that these are not | 
 | 20227 |       # typical AIX shared libraries. | 
 | 20228 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 20229 |     else | 
 | 20230 |       # We preserve .a as extension for shared libraries through AIX4.2 | 
 | 20231 |       # and later when we are not doing run time linking. | 
 | 20232 |       library_names_spec='${libname}${release}.a $libname.a' | 
 | 20233 |       soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20234 |     fi | 
 | 20235 |     shlibpath_var=LIBPATH | 
 | 20236 |   fi | 
 | 20237 |   ;; | 
 | 20238 |  | 
 | 20239 | amigaos*) | 
 | 20240 |   library_names_spec='$libname.ixlibrary $libname.a' | 
 | 20241 |   # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20242 |   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20243 |   ;; | 
 | 20244 |  | 
 | 20245 | beos*) | 
 | 20246 |   library_names_spec='${libname}${shared_ext}' | 
 | 20247 |   dynamic_linker="$host_os ld.so" | 
 | 20248 |   shlibpath_var=LIBRARY_PATH | 
 | 20249 |   ;; | 
 | 20250 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20251 | bsdi[45]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20252 |   version_type=linux | 
 | 20253 |   need_version=no | 
 | 20254 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 20255 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20256 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
 | 20257 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20258 |   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
 | 20259 |   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
 | 20260 |   # the default ld.so.conf also contains /usr/contrib/lib and | 
 | 20261 |   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
 | 20262 |   # libtool to hard-code these into programs | 
 | 20263 |   ;; | 
 | 20264 |  | 
 | 20265 | cygwin* | mingw* | pw32*) | 
 | 20266 |   version_type=windows | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20267 |   shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20268 |   need_version=no | 
 | 20269 |   need_lib_prefix=no | 
 | 20270 |  | 
 | 20271 |   case $GCC,$host_os in | 
 | 20272 |   yes,cygwin* | yes,mingw* | yes,pw32*) | 
 | 20273 |     library_names_spec='$libname.dll.a' | 
 | 20274 |     # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20275 |     postinstall_cmds='base_file=`basename \${file}`~ | 
 | 20276 |       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
 | 20277 |       dldir=$destdir/`dirname \$dlpath`~ | 
 | 20278 |       test -d \$dldir || mkdir -p \$dldir~ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20279 |       $install_prog $dir/$dlname \$dldir/$dlname' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20280 |     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
 | 20281 |       dlpath=$dir/\$dldll~ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20282 |        $rm \$dlpath' | 
 | 20283 |     shlibpath_overrides_runpath=yes | 
 | 20284 |  | 
 | 20285 |     case $host_os in | 
 | 20286 |     cygwin*) | 
 | 20287 |       # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
 | 20288 |       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20289 |       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20290 |       ;; | 
 | 20291 |     mingw*) | 
 | 20292 |       # MinGW DLLs use traditional 'lib' prefix | 
 | 20293 |       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 20294 |       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 20295 |       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
 | 20296 |         # It is most probably a Windows format PATH printed by | 
 | 20297 |         # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
 | 20298 |         # path with ; separators, and with drive letters. We can handle the | 
 | 20299 |         # drive letters (cygwin fileutils understands them), so leave them, | 
 | 20300 |         # especially as we might pass files found there to a mingw objdump, | 
 | 20301 |         # which wouldn't understand a cygwinified path. Ahh. | 
 | 20302 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 20303 |       else | 
 | 20304 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 20305 |       fi | 
 | 20306 |       ;; | 
 | 20307 |     pw32*) | 
 | 20308 |       # pw32 DLLs use 'pw' prefix rather than 'lib' | 
 | 20309 |       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | 
 | 20310 |       ;; | 
 | 20311 |     esac | 
 | 20312 |     ;; | 
 | 20313 |  | 
 | 20314 |   *) | 
 | 20315 |     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
 | 20316 |     ;; | 
 | 20317 |   esac | 
 | 20318 |   dynamic_linker='Win32 ld.exe' | 
 | 20319 |   # FIXME: first we should search . and the directory the executable is in | 
 | 20320 |   shlibpath_var=PATH | 
 | 20321 |   ;; | 
 | 20322 |  | 
 | 20323 | darwin* | rhapsody*) | 
 | 20324 |   dynamic_linker="$host_os dyld" | 
 | 20325 |   version_type=darwin | 
 | 20326 |   need_lib_prefix=no | 
 | 20327 |   need_version=no | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20328 |   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20329 |   soname_spec='${libname}${release}${major}$shared_ext' | 
 | 20330 |   shlibpath_overrides_runpath=yes | 
 | 20331 |   shlibpath_var=DYLD_LIBRARY_PATH | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20332 |   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20333 |   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20334 |   if test "$GCC" = yes; then | 
 | 20335 |     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"` | 
 | 20336 |   else | 
 | 20337 |     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20338 |   fi | 
 | 20339 |   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
 | 20340 |   ;; | 
 | 20341 |  | 
 | 20342 | dgux*) | 
 | 20343 |   version_type=linux | 
 | 20344 |   need_lib_prefix=no | 
 | 20345 |   need_version=no | 
 | 20346 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
 | 20347 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20348 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20349 |   ;; | 
 | 20350 |  | 
 | 20351 | freebsd1*) | 
 | 20352 |   dynamic_linker=no | 
 | 20353 |   ;; | 
 | 20354 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20355 | kfreebsd*-gnu) | 
 | 20356 |   version_type=linux | 
 | 20357 |   need_lib_prefix=no | 
 | 20358 |   need_version=no | 
 | 20359 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 20360 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20361 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20362 |   shlibpath_overrides_runpath=no | 
 | 20363 |   hardcode_into_libs=yes | 
 | 20364 |   dynamic_linker='GNU ld.so' | 
 | 20365 |   ;; | 
 | 20366 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20367 | freebsd*) | 
 | 20368 |   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | 
 | 20369 |   version_type=freebsd-$objformat | 
 | 20370 |   case $version_type in | 
 | 20371 |     freebsd-elf*) | 
 | 20372 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 20373 |       need_version=no | 
 | 20374 |       need_lib_prefix=no | 
 | 20375 |       ;; | 
 | 20376 |     freebsd-*) | 
 | 20377 |       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
 | 20378 |       need_version=yes | 
 | 20379 |       ;; | 
 | 20380 |   esac | 
 | 20381 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20382 |   case $host_os in | 
 | 20383 |   freebsd2*) | 
 | 20384 |     shlibpath_overrides_runpath=yes | 
 | 20385 |     ;; | 
 | 20386 |   freebsd3.01* | freebsdelf3.01*) | 
 | 20387 |     shlibpath_overrides_runpath=yes | 
 | 20388 |     hardcode_into_libs=yes | 
 | 20389 |     ;; | 
 | 20390 |   *) # from 3.2 on | 
 | 20391 |     shlibpath_overrides_runpath=no | 
 | 20392 |     hardcode_into_libs=yes | 
 | 20393 |     ;; | 
 | 20394 |   esac | 
 | 20395 |   ;; | 
 | 20396 |  | 
 | 20397 | gnu*) | 
 | 20398 |   version_type=linux | 
 | 20399 |   need_lib_prefix=no | 
 | 20400 |   need_version=no | 
 | 20401 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
 | 20402 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20403 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20404 |   hardcode_into_libs=yes | 
 | 20405 |   ;; | 
 | 20406 |  | 
 | 20407 | hpux9* | hpux10* | hpux11*) | 
 | 20408 |   # Give a soname corresponding to the major version so that dld.sl refuses to | 
 | 20409 |   # link against other versions. | 
 | 20410 |   version_type=sunos | 
 | 20411 |   need_lib_prefix=no | 
 | 20412 |   need_version=no | 
 | 20413 |   case "$host_cpu" in | 
 | 20414 |   ia64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20415 |     shrext_cmds='.so' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20416 |     hardcode_into_libs=yes | 
 | 20417 |     dynamic_linker="$host_os dld.so" | 
 | 20418 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 20419 |     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 20420 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 20421 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20422 |     if test "X$HPUX_IA64_MODE" = X32; then | 
 | 20423 |       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
 | 20424 |     else | 
 | 20425 |       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
 | 20426 |     fi | 
 | 20427 |     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 20428 |     ;; | 
 | 20429 |    hppa*64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20430 |      shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20431 |      hardcode_into_libs=yes | 
 | 20432 |      dynamic_linker="$host_os dld.sl" | 
 | 20433 |      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
 | 20434 |      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 20435 |      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 20436 |      soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20437 |      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
 | 20438 |      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 20439 |      ;; | 
 | 20440 |    *) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20441 |     shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20442 |     dynamic_linker="$host_os dld.sl" | 
 | 20443 |     shlibpath_var=SHLIB_PATH | 
 | 20444 |     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
 | 20445 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 20446 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20447 |     ;; | 
 | 20448 |   esac | 
 | 20449 |   # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
 | 20450 |   postinstall_cmds='chmod 555 $lib' | 
 | 20451 |   ;; | 
 | 20452 |  | 
 | 20453 | irix5* | irix6* | nonstopux*) | 
 | 20454 |   case $host_os in | 
 | 20455 |     nonstopux*) version_type=nonstopux ;; | 
 | 20456 |     *) | 
 | 20457 | 	if test "$lt_cv_prog_gnu_ld" = yes; then | 
 | 20458 | 		version_type=linux | 
 | 20459 | 	else | 
 | 20460 | 		version_type=irix | 
 | 20461 | 	fi ;; | 
 | 20462 |   esac | 
 | 20463 |   need_lib_prefix=no | 
 | 20464 |   need_version=no | 
 | 20465 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20466 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 20467 |   case $host_os in | 
 | 20468 |   irix5* | nonstopux*) | 
 | 20469 |     libsuff= shlibsuff= | 
 | 20470 |     ;; | 
 | 20471 |   *) | 
 | 20472 |     case $LD in # libtool.m4 will add one of these switches to LD | 
 | 20473 |     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
 | 20474 |       libsuff= shlibsuff= libmagic=32-bit;; | 
 | 20475 |     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
 | 20476 |       libsuff=32 shlibsuff=N32 libmagic=N32;; | 
 | 20477 |     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
 | 20478 |       libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
 | 20479 |     *) libsuff= shlibsuff= libmagic=never-match;; | 
 | 20480 |     esac | 
 | 20481 |     ;; | 
 | 20482 |   esac | 
 | 20483 |   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
 | 20484 |   shlibpath_overrides_runpath=no | 
 | 20485 |   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
 | 20486 |   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
 | 20487 |   hardcode_into_libs=yes | 
 | 20488 |   ;; | 
 | 20489 |  | 
 | 20490 | # No shared lib support for Linux oldld, aout, or coff. | 
 | 20491 | linux*oldld* | linux*aout* | linux*coff*) | 
 | 20492 |   dynamic_linker=no | 
 | 20493 |   ;; | 
 | 20494 |  | 
 | 20495 | # This must be Linux ELF. | 
 | 20496 | linux*) | 
 | 20497 |   version_type=linux | 
 | 20498 |   need_lib_prefix=no | 
 | 20499 |   need_version=no | 
 | 20500 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 20501 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20502 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
 | 20503 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20504 |   shlibpath_overrides_runpath=no | 
 | 20505 |   # This implies no fast_install, which is unacceptable. | 
 | 20506 |   # Some rework will be needed to allow for fast_install | 
 | 20507 |   # before this can be enabled. | 
 | 20508 |   hardcode_into_libs=yes | 
 | 20509 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20510 |   # Append ld.so.conf contents to the search path | 
 | 20511 |   if test -f /etc/ld.so.conf; then | 
 | 20512 |     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` | 
 | 20513 |     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 
 | 20514 |   fi | 
 | 20515 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20516 |   # We used to test for /lib/ld.so.1 and disable shared libraries on | 
 | 20517 |   # powerpc, because MkLinux only supported shared libraries with the | 
 | 20518 |   # GNU dynamic linker.  Since this was broken with cross compilers, | 
 | 20519 |   # most powerpc-linux boxes support dynamic linking these days and | 
 | 20520 |   # people can always --disable-shared, the test was removed, and we | 
 | 20521 |   # assume the GNU/Linux dynamic linker is in use. | 
 | 20522 |   dynamic_linker='GNU/Linux ld.so' | 
 | 20523 |   ;; | 
 | 20524 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20525 | knetbsd*-gnu) | 
 | 20526 |   version_type=linux | 
 | 20527 |   need_lib_prefix=no | 
 | 20528 |   need_version=no | 
 | 20529 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 20530 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20531 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20532 |   shlibpath_overrides_runpath=no | 
 | 20533 |   hardcode_into_libs=yes | 
 | 20534 |   dynamic_linker='GNU ld.so' | 
 | 20535 |   ;; | 
 | 20536 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20537 | netbsd*) | 
 | 20538 |   version_type=sunos | 
 | 20539 |   need_lib_prefix=no | 
 | 20540 |   need_version=no | 
 | 20541 |   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 20542 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 20543 |     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 20544 |     dynamic_linker='NetBSD (a.out) ld.so' | 
 | 20545 |   else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20546 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20547 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20548 |     dynamic_linker='NetBSD ld.elf_so' | 
 | 20549 |   fi | 
 | 20550 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20551 |   shlibpath_overrides_runpath=yes | 
 | 20552 |   hardcode_into_libs=yes | 
 | 20553 |   ;; | 
 | 20554 |  | 
 | 20555 | newsos6) | 
 | 20556 |   version_type=linux | 
 | 20557 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 20558 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20559 |   shlibpath_overrides_runpath=yes | 
 | 20560 |   ;; | 
 | 20561 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20562 | nto-qnx*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20563 |   version_type=linux | 
 | 20564 |   need_lib_prefix=no | 
 | 20565 |   need_version=no | 
 | 20566 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 20567 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20568 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20569 |   shlibpath_overrides_runpath=yes | 
 | 20570 |   ;; | 
 | 20571 |  | 
 | 20572 | openbsd*) | 
 | 20573 |   version_type=sunos | 
 | 20574 |   need_lib_prefix=no | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20575 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20576 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 20577 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 20578 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20579 |   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 20580 |     case $host_os in | 
 | 20581 |       openbsd2.[89] | openbsd2.[89].*) | 
 | 20582 | 	shlibpath_overrides_runpath=no | 
 | 20583 | 	;; | 
 | 20584 |       *) | 
 | 20585 | 	shlibpath_overrides_runpath=yes | 
 | 20586 | 	;; | 
 | 20587 |       esac | 
 | 20588 |   else | 
 | 20589 |     shlibpath_overrides_runpath=yes | 
 | 20590 |   fi | 
 | 20591 |   ;; | 
 | 20592 |  | 
 | 20593 | os2*) | 
 | 20594 |   libname_spec='$name' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20595 |   shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20596 |   need_lib_prefix=no | 
 | 20597 |   library_names_spec='$libname${shared_ext} $libname.a' | 
 | 20598 |   dynamic_linker='OS/2 ld.exe' | 
 | 20599 |   shlibpath_var=LIBPATH | 
 | 20600 |   ;; | 
 | 20601 |  | 
 | 20602 | osf3* | osf4* | osf5*) | 
 | 20603 |   version_type=osf | 
 | 20604 |   need_lib_prefix=no | 
 | 20605 |   need_version=no | 
 | 20606 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20607 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 20608 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20609 |   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
 | 20610 |   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
 | 20611 |   ;; | 
 | 20612 |  | 
 | 20613 | sco3.2v5*) | 
 | 20614 |   version_type=osf | 
 | 20615 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20616 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 20617 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20618 |   ;; | 
 | 20619 |  | 
 | 20620 | solaris*) | 
 | 20621 |   version_type=linux | 
 | 20622 |   need_lib_prefix=no | 
 | 20623 |   need_version=no | 
 | 20624 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 20625 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20626 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20627 |   shlibpath_overrides_runpath=yes | 
 | 20628 |   hardcode_into_libs=yes | 
 | 20629 |   # ldd complains unless libraries are executable | 
 | 20630 |   postinstall_cmds='chmod +x $lib' | 
 | 20631 |   ;; | 
 | 20632 |  | 
 | 20633 | sunos4*) | 
 | 20634 |   version_type=sunos | 
 | 20635 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 20636 |   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
 | 20637 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20638 |   shlibpath_overrides_runpath=yes | 
 | 20639 |   if test "$with_gnu_ld" = yes; then | 
 | 20640 |     need_lib_prefix=no | 
 | 20641 |   fi | 
 | 20642 |   need_version=yes | 
 | 20643 |   ;; | 
 | 20644 |  | 
 | 20645 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 20646 |   version_type=linux | 
 | 20647 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 20648 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20649 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20650 |   case $host_vendor in | 
 | 20651 |     sni) | 
 | 20652 |       shlibpath_overrides_runpath=no | 
 | 20653 |       need_lib_prefix=no | 
 | 20654 |       export_dynamic_flag_spec='${wl}-Blargedynsym' | 
 | 20655 |       runpath_var=LD_RUN_PATH | 
 | 20656 |       ;; | 
 | 20657 |     siemens) | 
 | 20658 |       need_lib_prefix=no | 
 | 20659 |       ;; | 
 | 20660 |     motorola) | 
 | 20661 |       need_lib_prefix=no | 
 | 20662 |       need_version=no | 
 | 20663 |       shlibpath_overrides_runpath=no | 
 | 20664 |       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
 | 20665 |       ;; | 
 | 20666 |   esac | 
 | 20667 |   ;; | 
 | 20668 |  | 
 | 20669 | sysv4*MP*) | 
 | 20670 |   if test -d /usr/nec ;then | 
 | 20671 |     version_type=linux | 
 | 20672 |     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
 | 20673 |     soname_spec='$libname${shared_ext}.$major' | 
 | 20674 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 20675 |   fi | 
 | 20676 |   ;; | 
 | 20677 |  | 
 | 20678 | uts4*) | 
 | 20679 |   version_type=linux | 
 | 20680 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 20681 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20682 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20683 |   ;; | 
 | 20684 |  | 
 | 20685 | *) | 
 | 20686 |   dynamic_linker=no | 
 | 20687 |   ;; | 
 | 20688 | esac | 
 | 20689 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
 | 20690 | echo "${ECHO_T}$dynamic_linker" >&6 | 
 | 20691 | test "$dynamic_linker" = no && can_build_shared=no | 
 | 20692 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20693 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 
 | 20694 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 
 | 20695 | hardcode_action_F77= | 
 | 20696 | if test -n "$hardcode_libdir_flag_spec_F77" || \ | 
 | 20697 |    test -n "$runpath_var_F77" || \ | 
 | 20698 |    test "X$hardcode_automatic_F77" = "Xyes" ; then | 
 | 20699 |  | 
 | 20700 |   # We can hardcode non-existant directories. | 
 | 20701 |   if test "$hardcode_direct_F77" != no && | 
 | 20702 |      # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
 | 20703 |      # have to relink, otherwise we might link with an installed library | 
 | 20704 |      # when we should be linking with a yet-to-be-installed one | 
 | 20705 |      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && | 
 | 20706 |      test "$hardcode_minus_L_F77" != no; then | 
 | 20707 |     # Linking always hardcodes the temporary library directory. | 
 | 20708 |     hardcode_action_F77=relink | 
 | 20709 |   else | 
 | 20710 |     # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
 | 20711 |     hardcode_action_F77=immediate | 
 | 20712 |   fi | 
 | 20713 | else | 
 | 20714 |   # We cannot hardcode anything, or else we can only hardcode existing | 
 | 20715 |   # directories. | 
 | 20716 |   hardcode_action_F77=unsupported | 
 | 20717 | fi | 
 | 20718 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 | 
 | 20719 | echo "${ECHO_T}$hardcode_action_F77" >&6 | 
 | 20720 |  | 
 | 20721 | if test "$hardcode_action_F77" = relink; then | 
 | 20722 |   # Fast installation is not supported | 
 | 20723 |   enable_fast_install=no | 
 | 20724 | elif test "$shlibpath_overrides_runpath" = yes || | 
 | 20725 |      test "$enable_shared" = no; then | 
 | 20726 |   # Fast installation is not necessary | 
 | 20727 |   enable_fast_install=needless | 
 | 20728 | fi | 
 | 20729 |  | 
 | 20730 | striplib= | 
 | 20731 | old_striplib= | 
 | 20732 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | 
 | 20733 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | 
 | 20734 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 
 | 20735 |   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 
 | 20736 |   test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 
 | 20737 |   echo "$as_me:$LINENO: result: yes" >&5 | 
 | 20738 | echo "${ECHO_T}yes" >&6 | 
 | 20739 | else | 
 | 20740 | # FIXME - insert some real tests, host_os isn't really good enough | 
 | 20741 |   case $host_os in | 
 | 20742 |    darwin*) | 
 | 20743 |        if test -n "$STRIP" ; then | 
 | 20744 |          striplib="$STRIP -x" | 
 | 20745 |          echo "$as_me:$LINENO: result: yes" >&5 | 
 | 20746 | echo "${ECHO_T}yes" >&6 | 
 | 20747 |        else | 
 | 20748 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 20749 | echo "${ECHO_T}no" >&6 | 
 | 20750 | fi | 
 | 20751 |        ;; | 
 | 20752 |    *) | 
 | 20753 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 20754 | echo "${ECHO_T}no" >&6 | 
 | 20755 |     ;; | 
 | 20756 |   esac | 
 | 20757 | fi | 
 | 20758 |  | 
 | 20759 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20760 |  | 
 | 20761 | # The else clause should only fire when bootstrapping the | 
 | 20762 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
 | 20763 | # with your package, and you will get complaints that there are | 
 | 20764 | # no rules to generate ltmain.sh. | 
 | 20765 | if test -f "$ltmain"; then | 
 | 20766 |   # See if we are running on zsh, and set the options which allow our commands through | 
 | 20767 |   # without removal of \ escapes. | 
 | 20768 |   if test -n "${ZSH_VERSION+set}" ; then | 
 | 20769 |     setopt NO_GLOB_SUBST | 
 | 20770 |   fi | 
 | 20771 |   # Now quote all the things that may contain metacharacters while being | 
 | 20772 |   # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
 | 20773 |   # variables and quote the copies for generation of the libtool script. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20774 |   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | 
 | 20775 |     SED SHELL STRIP \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20776 |     libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
 | 20777 |     old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
 | 20778 |     deplibs_check_method reload_flag reload_cmds need_locks \ | 
 | 20779 |     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
 | 20780 |     lt_cv_sys_global_symbol_to_c_name_address \ | 
 | 20781 |     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
 | 20782 |     old_postinstall_cmds old_postuninstall_cmds \ | 
 | 20783 |     compiler_F77 \ | 
 | 20784 |     CC_F77 \ | 
 | 20785 |     LD_F77 \ | 
 | 20786 |     lt_prog_compiler_wl_F77 \ | 
 | 20787 |     lt_prog_compiler_pic_F77 \ | 
 | 20788 |     lt_prog_compiler_static_F77 \ | 
 | 20789 |     lt_prog_compiler_no_builtin_flag_F77 \ | 
 | 20790 |     export_dynamic_flag_spec_F77 \ | 
 | 20791 |     thread_safe_flag_spec_F77 \ | 
 | 20792 |     whole_archive_flag_spec_F77 \ | 
 | 20793 |     enable_shared_with_static_runtimes_F77 \ | 
 | 20794 |     old_archive_cmds_F77 \ | 
 | 20795 |     old_archive_from_new_cmds_F77 \ | 
 | 20796 |     predep_objects_F77 \ | 
 | 20797 |     postdep_objects_F77 \ | 
 | 20798 |     predeps_F77 \ | 
 | 20799 |     postdeps_F77 \ | 
 | 20800 |     compiler_lib_search_path_F77 \ | 
 | 20801 |     archive_cmds_F77 \ | 
 | 20802 |     archive_expsym_cmds_F77 \ | 
 | 20803 |     postinstall_cmds_F77 \ | 
 | 20804 |     postuninstall_cmds_F77 \ | 
 | 20805 |     old_archive_from_expsyms_cmds_F77 \ | 
 | 20806 |     allow_undefined_flag_F77 \ | 
 | 20807 |     no_undefined_flag_F77 \ | 
 | 20808 |     export_symbols_cmds_F77 \ | 
 | 20809 |     hardcode_libdir_flag_spec_F77 \ | 
 | 20810 |     hardcode_libdir_flag_spec_ld_F77 \ | 
 | 20811 |     hardcode_libdir_separator_F77 \ | 
 | 20812 |     hardcode_automatic_F77 \ | 
 | 20813 |     module_cmds_F77 \ | 
 | 20814 |     module_expsym_cmds_F77 \ | 
 | 20815 |     lt_cv_prog_compiler_c_o_F77 \ | 
 | 20816 |     exclude_expsyms_F77 \ | 
 | 20817 |     include_expsyms_F77; do | 
 | 20818 |  | 
 | 20819 |     case $var in | 
 | 20820 |     old_archive_cmds_F77 | \ | 
 | 20821 |     old_archive_from_new_cmds_F77 | \ | 
 | 20822 |     archive_cmds_F77 | \ | 
 | 20823 |     archive_expsym_cmds_F77 | \ | 
 | 20824 |     module_cmds_F77 | \ | 
 | 20825 |     module_expsym_cmds_F77 | \ | 
 | 20826 |     old_archive_from_expsyms_cmds_F77 | \ | 
 | 20827 |     export_symbols_cmds_F77 | \ | 
 | 20828 |     extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
 | 20829 |     postinstall_cmds | postuninstall_cmds | \ | 
 | 20830 |     old_postinstall_cmds | old_postuninstall_cmds | \ | 
 | 20831 |     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
 | 20832 |       # Double-quote double-evaled strings. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20833 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20834 |       ;; | 
 | 20835 |     *) | 
 | 20836 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
 | 20837 |       ;; | 
 | 20838 |     esac | 
 | 20839 |   done | 
 | 20840 |  | 
 | 20841 |   case $lt_echo in | 
 | 20842 |   *'\$0 --fallback-echo"') | 
 | 20843 |     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
 | 20844 |     ;; | 
 | 20845 |   esac | 
 | 20846 |  | 
 | 20847 | cfgfile="$ofile" | 
 | 20848 |  | 
 | 20849 |   cat <<__EOF__ >> "$cfgfile" | 
 | 20850 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | 
 | 20851 |  | 
 | 20852 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
 | 20853 |  | 
 | 20854 | # Shell to use when invoking shell scripts. | 
 | 20855 | SHELL=$lt_SHELL | 
 | 20856 |  | 
 | 20857 | # Whether or not to build shared libraries. | 
 | 20858 | build_libtool_libs=$enable_shared | 
 | 20859 |  | 
 | 20860 | # Whether or not to build static libraries. | 
 | 20861 | build_old_libs=$enable_static | 
 | 20862 |  | 
 | 20863 | # Whether or not to add -lc for building shared libraries. | 
 | 20864 | build_libtool_need_lc=$archive_cmds_need_lc_F77 | 
 | 20865 |  | 
 | 20866 | # Whether or not to disallow shared libs when runtime libs are static | 
 | 20867 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 | 
 | 20868 |  | 
 | 20869 | # Whether or not to optimize for fast installation. | 
 | 20870 | fast_install=$enable_fast_install | 
 | 20871 |  | 
 | 20872 | # The host system. | 
 | 20873 | host_alias=$host_alias | 
 | 20874 | host=$host | 
 | 20875 |  | 
 | 20876 | # An echo program that does not interpret backslashes. | 
 | 20877 | echo=$lt_echo | 
 | 20878 |  | 
 | 20879 | # The archiver. | 
 | 20880 | AR=$lt_AR | 
 | 20881 | AR_FLAGS=$lt_AR_FLAGS | 
 | 20882 |  | 
 | 20883 | # A C compiler. | 
 | 20884 | LTCC=$lt_LTCC | 
 | 20885 |  | 
 | 20886 | # A language-specific compiler. | 
 | 20887 | CC=$lt_compiler_F77 | 
 | 20888 |  | 
 | 20889 | # Is the compiler the GNU C compiler? | 
 | 20890 | with_gcc=$GCC_F77 | 
 | 20891 |  | 
 | 20892 | # An ERE matcher. | 
 | 20893 | EGREP=$lt_EGREP | 
 | 20894 |  | 
 | 20895 | # The linker used to build libraries. | 
 | 20896 | LD=$lt_LD_F77 | 
 | 20897 |  | 
 | 20898 | # Whether we need hard or soft links. | 
 | 20899 | LN_S=$lt_LN_S | 
 | 20900 |  | 
 | 20901 | # A BSD-compatible nm program. | 
 | 20902 | NM=$lt_NM | 
 | 20903 |  | 
 | 20904 | # A symbol stripping program | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20905 | STRIP=$lt_STRIP | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20906 |  | 
 | 20907 | # Used to examine libraries when file_magic_cmd begins "file" | 
 | 20908 | MAGIC_CMD=$MAGIC_CMD | 
 | 20909 |  | 
 | 20910 | # Used on cygwin: DLL creation program. | 
 | 20911 | DLLTOOL="$DLLTOOL" | 
 | 20912 |  | 
 | 20913 | # Used on cygwin: object dumper. | 
 | 20914 | OBJDUMP="$OBJDUMP" | 
 | 20915 |  | 
 | 20916 | # Used on cygwin: assembler. | 
 | 20917 | AS="$AS" | 
 | 20918 |  | 
 | 20919 | # The name of the directory that contains temporary libtool files. | 
 | 20920 | objdir=$objdir | 
 | 20921 |  | 
 | 20922 | # How to create reloadable object files. | 
 | 20923 | reload_flag=$lt_reload_flag | 
 | 20924 | reload_cmds=$lt_reload_cmds | 
 | 20925 |  | 
 | 20926 | # How to pass a linker flag through the compiler. | 
 | 20927 | wl=$lt_lt_prog_compiler_wl_F77 | 
 | 20928 |  | 
 | 20929 | # Object file suffix (normally "o"). | 
 | 20930 | objext="$ac_objext" | 
 | 20931 |  | 
 | 20932 | # Old archive suffix (normally "a"). | 
 | 20933 | libext="$libext" | 
 | 20934 |  | 
 | 20935 | # Shared library suffix (normally ".so"). | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20936 | shrext_cmds='$shrext_cmds' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20937 |  | 
 | 20938 | # Executable file suffix (normally ""). | 
 | 20939 | exeext="$exeext" | 
 | 20940 |  | 
 | 20941 | # Additional compiler flags for building library objects. | 
 | 20942 | pic_flag=$lt_lt_prog_compiler_pic_F77 | 
 | 20943 | pic_mode=$pic_mode | 
 | 20944 |  | 
 | 20945 | # What is the maximum length of a command? | 
 | 20946 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
 | 20947 |  | 
 | 20948 | # Does compiler simultaneously support -c and -o options? | 
 | 20949 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 | 
 | 20950 |  | 
 | 20951 | # Must we lock files when doing compilation ? | 
 | 20952 | need_locks=$lt_need_locks | 
 | 20953 |  | 
 | 20954 | # Do we need the lib prefix for modules? | 
 | 20955 | need_lib_prefix=$need_lib_prefix | 
 | 20956 |  | 
 | 20957 | # Do we need a version for libraries? | 
 | 20958 | need_version=$need_version | 
 | 20959 |  | 
 | 20960 | # Whether dlopen is supported. | 
 | 20961 | dlopen_support=$enable_dlopen | 
 | 20962 |  | 
 | 20963 | # Whether dlopen of programs is supported. | 
 | 20964 | dlopen_self=$enable_dlopen_self | 
 | 20965 |  | 
 | 20966 | # Whether dlopen of statically linked programs is supported. | 
 | 20967 | dlopen_self_static=$enable_dlopen_self_static | 
 | 20968 |  | 
 | 20969 | # Compiler flag to prevent dynamic linking. | 
 | 20970 | link_static_flag=$lt_lt_prog_compiler_static_F77 | 
 | 20971 |  | 
 | 20972 | # Compiler flag to turn off builtin functions. | 
 | 20973 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 | 
 | 20974 |  | 
 | 20975 | # Compiler flag to allow reflexive dlopens. | 
 | 20976 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 | 
 | 20977 |  | 
 | 20978 | # Compiler flag to generate shared objects directly from archives. | 
 | 20979 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 | 
 | 20980 |  | 
 | 20981 | # Compiler flag to generate thread-safe objects. | 
 | 20982 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 | 
 | 20983 |  | 
 | 20984 | # Library versioning type. | 
 | 20985 | version_type=$version_type | 
 | 20986 |  | 
 | 20987 | # Format of library name prefix. | 
 | 20988 | libname_spec=$lt_libname_spec | 
 | 20989 |  | 
 | 20990 | # List of archive names.  First name is the real one, the rest are links. | 
 | 20991 | # The last name is the one that the linker finds with -lNAME. | 
 | 20992 | library_names_spec=$lt_library_names_spec | 
 | 20993 |  | 
 | 20994 | # The coded name of the library, if different from the real name. | 
 | 20995 | soname_spec=$lt_soname_spec | 
 | 20996 |  | 
 | 20997 | # Commands used to build and install an old-style archive. | 
 | 20998 | RANLIB=$lt_RANLIB | 
 | 20999 | old_archive_cmds=$lt_old_archive_cmds_F77 | 
 | 21000 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
 | 21001 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
 | 21002 |  | 
 | 21003 | # Create an old-style archive from a shared archive. | 
 | 21004 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 | 
 | 21005 |  | 
 | 21006 | # Create a temporary old-style archive to link instead of a shared archive. | 
 | 21007 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 | 
 | 21008 |  | 
 | 21009 | # Commands used to build and install a shared archive. | 
 | 21010 | archive_cmds=$lt_archive_cmds_F77 | 
 | 21011 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 | 
 | 21012 | postinstall_cmds=$lt_postinstall_cmds | 
 | 21013 | postuninstall_cmds=$lt_postuninstall_cmds | 
 | 21014 |  | 
 | 21015 | # Commands used to build a loadable module (assumed same as above if empty) | 
 | 21016 | module_cmds=$lt_module_cmds_F77 | 
 | 21017 | module_expsym_cmds=$lt_module_expsym_cmds_F77 | 
 | 21018 |  | 
 | 21019 | # Commands to strip libraries. | 
 | 21020 | old_striplib=$lt_old_striplib | 
 | 21021 | striplib=$lt_striplib | 
 | 21022 |  | 
 | 21023 | # Dependencies to place before the objects being linked to create a | 
 | 21024 | # shared library. | 
 | 21025 | predep_objects=$lt_predep_objects_F77 | 
 | 21026 |  | 
 | 21027 | # Dependencies to place after the objects being linked to create a | 
 | 21028 | # shared library. | 
 | 21029 | postdep_objects=$lt_postdep_objects_F77 | 
 | 21030 |  | 
 | 21031 | # Dependencies to place before the objects being linked to create a | 
 | 21032 | # shared library. | 
 | 21033 | predeps=$lt_predeps_F77 | 
 | 21034 |  | 
 | 21035 | # Dependencies to place after the objects being linked to create a | 
 | 21036 | # shared library. | 
 | 21037 | postdeps=$lt_postdeps_F77 | 
 | 21038 |  | 
 | 21039 | # The library search path used internally by the compiler when linking | 
 | 21040 | # a shared library. | 
 | 21041 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 | 
 | 21042 |  | 
 | 21043 | # Method to check whether dependent libraries are shared objects. | 
 | 21044 | deplibs_check_method=$lt_deplibs_check_method | 
 | 21045 |  | 
 | 21046 | # Command to use when deplibs_check_method == file_magic. | 
 | 21047 | file_magic_cmd=$lt_file_magic_cmd | 
 | 21048 |  | 
 | 21049 | # Flag that allows shared libraries with undefined symbols to be built. | 
 | 21050 | allow_undefined_flag=$lt_allow_undefined_flag_F77 | 
 | 21051 |  | 
 | 21052 | # Flag that forces no undefined symbols. | 
 | 21053 | no_undefined_flag=$lt_no_undefined_flag_F77 | 
 | 21054 |  | 
 | 21055 | # Commands used to finish a libtool library installation in a directory. | 
 | 21056 | finish_cmds=$lt_finish_cmds | 
 | 21057 |  | 
 | 21058 | # Same as above, but a single script fragment to be evaled but not shown. | 
 | 21059 | finish_eval=$lt_finish_eval | 
 | 21060 |  | 
 | 21061 | # Take the output of nm and produce a listing of raw symbols and C names. | 
 | 21062 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
 | 21063 |  | 
 | 21064 | # Transform the output of nm in a proper C declaration | 
 | 21065 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
 | 21066 |  | 
 | 21067 | # Transform the output of nm in a C name address pair | 
 | 21068 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
 | 21069 |  | 
 | 21070 | # This is the shared library runtime path variable. | 
 | 21071 | runpath_var=$runpath_var | 
 | 21072 |  | 
 | 21073 | # This is the shared library path variable. | 
 | 21074 | shlibpath_var=$shlibpath_var | 
 | 21075 |  | 
 | 21076 | # Is shlibpath searched before the hard-coded library search path? | 
 | 21077 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
 | 21078 |  | 
 | 21079 | # How to hardcode a shared library path into an executable. | 
 | 21080 | hardcode_action=$hardcode_action_F77 | 
 | 21081 |  | 
 | 21082 | # Whether we should hardcode library paths into libraries. | 
 | 21083 | hardcode_into_libs=$hardcode_into_libs | 
 | 21084 |  | 
 | 21085 | # Flag to hardcode \$libdir into a binary during linking. | 
 | 21086 | # This must work even if \$libdir does not exist. | 
 | 21087 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 | 
 | 21088 |  | 
 | 21089 | # If ld is used when linking, flag to hardcode \$libdir into | 
 | 21090 | # a binary during linking. This must work even if \$libdir does | 
 | 21091 | # not exist. | 
 | 21092 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 | 
 | 21093 |  | 
 | 21094 | # Whether we need a single -rpath flag with a separated argument. | 
 | 21095 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 | 
 | 21096 |  | 
 | 21097 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
 | 21098 | # resulting binary. | 
 | 21099 | hardcode_direct=$hardcode_direct_F77 | 
 | 21100 |  | 
 | 21101 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
 | 21102 | # resulting binary. | 
 | 21103 | hardcode_minus_L=$hardcode_minus_L_F77 | 
 | 21104 |  | 
 | 21105 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
 | 21106 | # the resulting binary. | 
 | 21107 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 | 
 | 21108 |  | 
 | 21109 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
 | 21110 | # and all subsequent libraries and executables linked against it. | 
 | 21111 | hardcode_automatic=$hardcode_automatic_F77 | 
 | 21112 |  | 
 | 21113 | # Variables whose values should be saved in libtool wrapper scripts and | 
 | 21114 | # restored at relink time. | 
 | 21115 | variables_saved_for_relink="$variables_saved_for_relink" | 
 | 21116 |  | 
 | 21117 | # Whether libtool must link a program against all its dependency libraries. | 
 | 21118 | link_all_deplibs=$link_all_deplibs_F77 | 
 | 21119 |  | 
 | 21120 | # Compile-time system search path for libraries | 
 | 21121 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
 | 21122 |  | 
 | 21123 | # Run-time system search path for libraries | 
 | 21124 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
 | 21125 |  | 
 | 21126 | # Fix the shell variable \$srcfile for the compiler. | 
 | 21127 | fix_srcfile_path="$fix_srcfile_path_F77" | 
 | 21128 |  | 
 | 21129 | # Set to yes if exported symbols are required. | 
 | 21130 | always_export_symbols=$always_export_symbols_F77 | 
 | 21131 |  | 
 | 21132 | # The commands to list exported symbols. | 
 | 21133 | export_symbols_cmds=$lt_export_symbols_cmds_F77 | 
 | 21134 |  | 
 | 21135 | # The commands to extract the exported symbol list from a shared archive. | 
 | 21136 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
 | 21137 |  | 
 | 21138 | # Symbols that should not be listed in the preloaded symbols. | 
 | 21139 | exclude_expsyms=$lt_exclude_expsyms_F77 | 
 | 21140 |  | 
 | 21141 | # Symbols that must always be exported. | 
 | 21142 | include_expsyms=$lt_include_expsyms_F77 | 
 | 21143 |  | 
 | 21144 | # ### END LIBTOOL TAG CONFIG: $tagname | 
 | 21145 |  | 
 | 21146 | __EOF__ | 
 | 21147 |  | 
 | 21148 |  | 
 | 21149 | else | 
 | 21150 |   # If there is no Makefile yet, we rely on a make rule to execute | 
 | 21151 |   # `config.status --recheck' to rerun these tests and create the | 
 | 21152 |   # libtool script then. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21153 |   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | 
 | 21154 |   if test -f "$ltmain_in"; then | 
 | 21155 |     test -f Makefile && make "$ltmain" | 
 | 21156 |   fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21157 | fi | 
 | 21158 |  | 
 | 21159 |  | 
 | 21160 | ac_ext=c | 
 | 21161 | ac_cpp='$CPP $CPPFLAGS' | 
 | 21162 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21163 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21164 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 21165 |  | 
 | 21166 | CC="$lt_save_CC" | 
 | 21167 |  | 
 | 21168 | 	else | 
 | 21169 | 	  tagname="" | 
 | 21170 | 	fi | 
 | 21171 | 	;; | 
 | 21172 |  | 
 | 21173 |       GCJ) | 
 | 21174 | 	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21175 | 	  ac_ext=c | 
 | 21176 | ac_cpp='$CPP $CPPFLAGS' | 
 | 21177 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21178 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21179 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21180 |  | 
 | 21181 |  | 
 | 21182 | # Source file extension for Java test sources. | 
 | 21183 | ac_ext=java | 
 | 21184 |  | 
 | 21185 | # Object file extension for compiled Java test sources. | 
 | 21186 | objext=o | 
 | 21187 | objext_GCJ=$objext | 
 | 21188 |  | 
 | 21189 | # Code to be used in simple compile tests | 
 | 21190 | lt_simple_compile_test_code="class foo {}\n" | 
 | 21191 |  | 
 | 21192 | # Code to be used in simple link tests | 
 | 21193 | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' | 
 | 21194 |  | 
 | 21195 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
 | 21196 |  | 
 | 21197 | # If no C compiler was specified, use CC. | 
 | 21198 | LTCC=${LTCC-"$CC"} | 
 | 21199 |  | 
 | 21200 | # Allow CC to be a program name with arguments. | 
 | 21201 | compiler=$CC | 
 | 21202 |  | 
 | 21203 |  | 
 | 21204 | # Allow CC to be a program name with arguments. | 
 | 21205 | lt_save_CC="$CC" | 
 | 21206 | CC=${GCJ-"gcj"} | 
 | 21207 | compiler=$CC | 
 | 21208 | compiler_GCJ=$CC | 
 | 21209 |  | 
 | 21210 | # GCJ did not exist at the time GCC didn't implicitly link libc in. | 
 | 21211 | archive_cmds_need_lc_GCJ=no | 
 | 21212 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21213 |  | 
 | 21214 | lt_prog_compiler_no_builtin_flag_GCJ= | 
 | 21215 |  | 
 | 21216 | if test "$GCC" = yes; then | 
 | 21217 |   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' | 
 | 21218 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21219 |  | 
 | 21220 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21221 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | 
 | 21222 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | 
 | 21223 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 21224 | else | 
 | 21225 |   lt_cv_prog_compiler_rtti_exceptions=no | 
 | 21226 |   ac_outfile=conftest.$ac_objext | 
 | 21227 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 21228 |    lt_compiler_flag="-fno-rtti -fno-exceptions" | 
 | 21229 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 21230 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 21231 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 21232 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 21233 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 21234 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 21235 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 21236 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 21237 |    -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 21238 |    (eval echo "\"\$as_me:21238: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21239 |    (eval "$lt_compile" 2>conftest.err) | 
 | 21240 |    ac_status=$? | 
 | 21241 |    cat conftest.err >&5 | 
| Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 21242 |    echo "$as_me:21242: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21243 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 21244 |      # The compiler can only warn and ignore the option if not recognized | 
 | 21245 |      # So say no if there are warnings | 
 | 21246 |      if test ! -s conftest.err; then | 
 | 21247 |        lt_cv_prog_compiler_rtti_exceptions=yes | 
 | 21248 |      fi | 
 | 21249 |    fi | 
 | 21250 |    $rm conftest* | 
 | 21251 |  | 
 | 21252 | fi | 
 | 21253 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | 
 | 21254 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | 
 | 21255 |  | 
 | 21256 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | 
 | 21257 |     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" | 
 | 21258 | else | 
 | 21259 |     : | 
 | 21260 | fi | 
 | 21261 |  | 
 | 21262 | fi | 
 | 21263 |  | 
 | 21264 | lt_prog_compiler_wl_GCJ= | 
 | 21265 | lt_prog_compiler_pic_GCJ= | 
 | 21266 | lt_prog_compiler_static_GCJ= | 
 | 21267 |  | 
 | 21268 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 
 | 21269 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | 
 | 21270 |  | 
 | 21271 |   if test "$GCC" = yes; then | 
 | 21272 |     lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 21273 |     lt_prog_compiler_static_GCJ='-static' | 
 | 21274 |  | 
 | 21275 |     case $host_os in | 
 | 21276 |       aix*) | 
 | 21277 |       # All AIX code is PIC. | 
 | 21278 |       if test "$host_cpu" = ia64; then | 
 | 21279 | 	# AIX 5 now supports IA64 processor | 
 | 21280 | 	lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 21281 |       fi | 
 | 21282 |       ;; | 
 | 21283 |  | 
 | 21284 |     amigaos*) | 
 | 21285 |       # FIXME: we need at least 68020 code to build shared libraries, but | 
 | 21286 |       # adding the `-m68020' flag to GCC prevents building anything better, | 
 | 21287 |       # like `-m68040'. | 
 | 21288 |       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' | 
 | 21289 |       ;; | 
 | 21290 |  | 
 | 21291 |     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
 | 21292 |       # PIC is the default for these OSes. | 
 | 21293 |       ;; | 
 | 21294 |  | 
 | 21295 |     mingw* | pw32* | os2*) | 
 | 21296 |       # This hack is so that the source file can tell whether it is being | 
 | 21297 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 21298 |       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | 
 | 21299 |       ;; | 
 | 21300 |  | 
 | 21301 |     darwin* | rhapsody*) | 
 | 21302 |       # PIC is the default on this platform | 
 | 21303 |       # Common symbols not allowed in MH_DYLIB files | 
 | 21304 |       lt_prog_compiler_pic_GCJ='-fno-common' | 
 | 21305 |       ;; | 
 | 21306 |  | 
 | 21307 |     msdosdjgpp*) | 
 | 21308 |       # Just because we use GCC doesn't mean we suddenly get shared libraries | 
 | 21309 |       # on systems that don't support them. | 
 | 21310 |       lt_prog_compiler_can_build_shared_GCJ=no | 
 | 21311 |       enable_shared=no | 
 | 21312 |       ;; | 
 | 21313 |  | 
 | 21314 |     sysv4*MP*) | 
 | 21315 |       if test -d /usr/nec; then | 
 | 21316 | 	lt_prog_compiler_pic_GCJ=-Kconform_pic | 
 | 21317 |       fi | 
 | 21318 |       ;; | 
 | 21319 |  | 
 | 21320 |     hpux*) | 
 | 21321 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 21322 |       # not for PA HP-UX. | 
 | 21323 |       case "$host_cpu" in | 
 | 21324 |       hppa*64*|ia64*) | 
 | 21325 | 	# +Z the default | 
 | 21326 | 	;; | 
 | 21327 |       *) | 
 | 21328 | 	lt_prog_compiler_pic_GCJ='-fPIC' | 
 | 21329 | 	;; | 
 | 21330 |       esac | 
 | 21331 |       ;; | 
 | 21332 |  | 
 | 21333 |     *) | 
 | 21334 |       lt_prog_compiler_pic_GCJ='-fPIC' | 
 | 21335 |       ;; | 
 | 21336 |     esac | 
 | 21337 |   else | 
 | 21338 |     # PORTME Check for flag to pass linker flags through the system compiler. | 
 | 21339 |     case $host_os in | 
 | 21340 |     aix*) | 
 | 21341 |       lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 21342 |       if test "$host_cpu" = ia64; then | 
 | 21343 | 	# AIX 5 now supports IA64 processor | 
 | 21344 | 	lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 21345 |       else | 
 | 21346 | 	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' | 
 | 21347 |       fi | 
 | 21348 |       ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21349 |       darwin*) | 
 | 21350 |         # PIC is the default on this platform | 
 | 21351 |         # Common symbols not allowed in MH_DYLIB files | 
 | 21352 |        case "$cc_basename" in | 
 | 21353 |          xlc*) | 
 | 21354 |          lt_prog_compiler_pic_GCJ='-qnocommon' | 
 | 21355 |          lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 21356 |          ;; | 
 | 21357 |        esac | 
 | 21358 |        ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21359 |  | 
 | 21360 |     mingw* | pw32* | os2*) | 
 | 21361 |       # This hack is so that the source file can tell whether it is being | 
 | 21362 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 21363 |       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | 
 | 21364 |       ;; | 
 | 21365 |  | 
 | 21366 |     hpux9* | hpux10* | hpux11*) | 
 | 21367 |       lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 21368 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 21369 |       # not for PA HP-UX. | 
 | 21370 |       case "$host_cpu" in | 
 | 21371 |       hppa*64*|ia64*) | 
 | 21372 | 	# +Z the default | 
 | 21373 | 	;; | 
 | 21374 |       *) | 
 | 21375 | 	lt_prog_compiler_pic_GCJ='+Z' | 
 | 21376 | 	;; | 
 | 21377 |       esac | 
 | 21378 |       # Is there a better lt_prog_compiler_static that works with the bundled CC? | 
 | 21379 |       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' | 
 | 21380 |       ;; | 
 | 21381 |  | 
 | 21382 |     irix5* | irix6* | nonstopux*) | 
 | 21383 |       lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 21384 |       # PIC (with -KPIC) is the default. | 
 | 21385 |       lt_prog_compiler_static_GCJ='-non_shared' | 
 | 21386 |       ;; | 
 | 21387 |  | 
 | 21388 |     newsos6) | 
 | 21389 |       lt_prog_compiler_pic_GCJ='-KPIC' | 
 | 21390 |       lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 21391 |       ;; | 
 | 21392 |  | 
 | 21393 |     linux*) | 
 | 21394 |       case $CC in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21395 |       icc* | ecc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21396 | 	lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 21397 | 	lt_prog_compiler_pic_GCJ='-KPIC' | 
 | 21398 | 	lt_prog_compiler_static_GCJ='-static' | 
 | 21399 |         ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21400 |       ccc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21401 |         lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 21402 |         # All Alpha code is PIC. | 
 | 21403 |         lt_prog_compiler_static_GCJ='-non_shared' | 
 | 21404 |         ;; | 
 | 21405 |       esac | 
 | 21406 |       ;; | 
 | 21407 |  | 
 | 21408 |     osf3* | osf4* | osf5*) | 
 | 21409 |       lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 21410 |       # All OSF/1 code is PIC. | 
 | 21411 |       lt_prog_compiler_static_GCJ='-non_shared' | 
 | 21412 |       ;; | 
 | 21413 |  | 
 | 21414 |     sco3.2v5*) | 
 | 21415 |       lt_prog_compiler_pic_GCJ='-Kpic' | 
 | 21416 |       lt_prog_compiler_static_GCJ='-dn' | 
 | 21417 |       ;; | 
 | 21418 |  | 
 | 21419 |     solaris*) | 
 | 21420 |       lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 21421 |       lt_prog_compiler_pic_GCJ='-KPIC' | 
 | 21422 |       lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 21423 |       ;; | 
 | 21424 |  | 
 | 21425 |     sunos4*) | 
 | 21426 |       lt_prog_compiler_wl_GCJ='-Qoption ld ' | 
 | 21427 |       lt_prog_compiler_pic_GCJ='-PIC' | 
 | 21428 |       lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 21429 |       ;; | 
 | 21430 |  | 
 | 21431 |     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 21432 |       lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 21433 |       lt_prog_compiler_pic_GCJ='-KPIC' | 
 | 21434 |       lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 21435 |       ;; | 
 | 21436 |  | 
 | 21437 |     sysv4*MP*) | 
 | 21438 |       if test -d /usr/nec ;then | 
 | 21439 | 	lt_prog_compiler_pic_GCJ='-Kconform_pic' | 
 | 21440 | 	lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 21441 |       fi | 
 | 21442 |       ;; | 
 | 21443 |  | 
 | 21444 |     uts4*) | 
 | 21445 |       lt_prog_compiler_pic_GCJ='-pic' | 
 | 21446 |       lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 21447 |       ;; | 
 | 21448 |  | 
 | 21449 |     *) | 
 | 21450 |       lt_prog_compiler_can_build_shared_GCJ=no | 
 | 21451 |       ;; | 
 | 21452 |     esac | 
 | 21453 |   fi | 
 | 21454 |  | 
 | 21455 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 | 
 | 21456 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 | 
 | 21457 |  | 
 | 21458 | # | 
 | 21459 | # Check to make sure the PIC flag actually works. | 
 | 21460 | # | 
 | 21461 | if test -n "$lt_prog_compiler_pic_GCJ"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21462 |  | 
 | 21463 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21464 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 | 
 | 21465 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then | 
 | 21466 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 21467 | else | 
 | 21468 |   lt_prog_compiler_pic_works_GCJ=no | 
 | 21469 |   ac_outfile=conftest.$ac_objext | 
 | 21470 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 21471 |    lt_compiler_flag="$lt_prog_compiler_pic_GCJ" | 
 | 21472 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 21473 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 21474 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 21475 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 21476 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 21477 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 21478 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 21479 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 21480 |    -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 21481 |    (eval echo "\"\$as_me:21481: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21482 |    (eval "$lt_compile" 2>conftest.err) | 
 | 21483 |    ac_status=$? | 
 | 21484 |    cat conftest.err >&5 | 
| Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 21485 |    echo "$as_me:21485: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21486 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 21487 |      # The compiler can only warn and ignore the option if not recognized | 
 | 21488 |      # So say no if there are warnings | 
 | 21489 |      if test ! -s conftest.err; then | 
 | 21490 |        lt_prog_compiler_pic_works_GCJ=yes | 
 | 21491 |      fi | 
 | 21492 |    fi | 
 | 21493 |    $rm conftest* | 
 | 21494 |  | 
 | 21495 | fi | 
 | 21496 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 | 
 | 21497 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 | 
 | 21498 |  | 
 | 21499 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then | 
 | 21500 |     case $lt_prog_compiler_pic_GCJ in | 
 | 21501 |      "" | " "*) ;; | 
 | 21502 |      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; | 
 | 21503 |      esac | 
 | 21504 | else | 
 | 21505 |     lt_prog_compiler_pic_GCJ= | 
 | 21506 |      lt_prog_compiler_can_build_shared_GCJ=no | 
 | 21507 | fi | 
 | 21508 |  | 
 | 21509 | fi | 
 | 21510 | case "$host_os" in | 
 | 21511 |   # For platforms which do not support PIC, -DPIC is meaningless: | 
 | 21512 |   *djgpp*) | 
 | 21513 |     lt_prog_compiler_pic_GCJ= | 
 | 21514 |     ;; | 
 | 21515 |   *) | 
 | 21516 |     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" | 
 | 21517 |     ;; | 
 | 21518 | esac | 
 | 21519 |  | 
 | 21520 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
 | 21521 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | 
 | 21522 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then | 
 | 21523 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 21524 | else | 
 | 21525 |   lt_cv_prog_compiler_c_o_GCJ=no | 
 | 21526 |    $rm -r conftest 2>/dev/null | 
 | 21527 |    mkdir conftest | 
 | 21528 |    cd conftest | 
 | 21529 |    mkdir out | 
 | 21530 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 21531 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21532 |    lt_compiler_flag="-o out/conftest2.$ac_objext" | 
 | 21533 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 21534 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 21535 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 21536 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 21537 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 21538 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 21539 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 21540 |    -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 21541 |    (eval echo "\"\$as_me:21541: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21542 |    (eval "$lt_compile" 2>out/conftest.err) | 
 | 21543 |    ac_status=$? | 
 | 21544 |    cat out/conftest.err >&5 | 
| Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 21545 |    echo "$as_me:21545: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21546 |    if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
 | 21547 |    then | 
 | 21548 |      # The compiler can only warn and ignore the option if not recognized | 
 | 21549 |      # So say no if there are warnings | 
 | 21550 |      if test ! -s out/conftest.err; then | 
 | 21551 |        lt_cv_prog_compiler_c_o_GCJ=yes | 
 | 21552 |      fi | 
 | 21553 |    fi | 
 | 21554 |    chmod u+w . | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21555 |    $rm conftest* | 
 | 21556 |    # SGI C++ compiler will create directory out/ii_files/ for | 
 | 21557 |    # template instantiation | 
 | 21558 |    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | 
 | 21559 |    $rm out/* && rmdir out | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21560 |    cd .. | 
 | 21561 |    rmdir conftest | 
 | 21562 |    $rm conftest* | 
 | 21563 |  | 
 | 21564 | fi | 
 | 21565 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 | 
 | 21566 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 | 
 | 21567 |  | 
 | 21568 |  | 
 | 21569 | hard_links="nottested" | 
 | 21570 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then | 
 | 21571 |   # do not overwrite the value of need_locks provided by the user | 
 | 21572 |   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | 
 | 21573 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | 
 | 21574 |   hard_links=yes | 
 | 21575 |   $rm conftest* | 
 | 21576 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 21577 |   touch conftest.a | 
 | 21578 |   ln conftest.a conftest.b 2>&5 || hard_links=no | 
 | 21579 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 21580 |   echo "$as_me:$LINENO: result: $hard_links" >&5 | 
 | 21581 | echo "${ECHO_T}$hard_links" >&6 | 
 | 21582 |   if test "$hard_links" = no; then | 
 | 21583 |     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
 | 21584 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
 | 21585 |     need_locks=warn | 
 | 21586 |   fi | 
 | 21587 | else | 
 | 21588 |   need_locks=no | 
 | 21589 | fi | 
 | 21590 |  | 
 | 21591 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
 | 21592 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
 | 21593 |  | 
 | 21594 |   runpath_var= | 
 | 21595 |   allow_undefined_flag_GCJ= | 
 | 21596 |   enable_shared_with_static_runtimes_GCJ=no | 
 | 21597 |   archive_cmds_GCJ= | 
 | 21598 |   archive_expsym_cmds_GCJ= | 
 | 21599 |   old_archive_From_new_cmds_GCJ= | 
 | 21600 |   old_archive_from_expsyms_cmds_GCJ= | 
 | 21601 |   export_dynamic_flag_spec_GCJ= | 
 | 21602 |   whole_archive_flag_spec_GCJ= | 
 | 21603 |   thread_safe_flag_spec_GCJ= | 
 | 21604 |   hardcode_libdir_flag_spec_GCJ= | 
 | 21605 |   hardcode_libdir_flag_spec_ld_GCJ= | 
 | 21606 |   hardcode_libdir_separator_GCJ= | 
 | 21607 |   hardcode_direct_GCJ=no | 
 | 21608 |   hardcode_minus_L_GCJ=no | 
 | 21609 |   hardcode_shlibpath_var_GCJ=unsupported | 
 | 21610 |   link_all_deplibs_GCJ=unknown | 
 | 21611 |   hardcode_automatic_GCJ=no | 
 | 21612 |   module_cmds_GCJ= | 
 | 21613 |   module_expsym_cmds_GCJ= | 
 | 21614 |   always_export_symbols_GCJ=no | 
 | 21615 |   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 21616 |   # include_expsyms should be a list of space-separated symbols to be *always* | 
 | 21617 |   # included in the symbol list | 
 | 21618 |   include_expsyms_GCJ= | 
 | 21619 |   # exclude_expsyms can be an extended regexp of symbols to exclude | 
 | 21620 |   # it will be wrapped by ` (' and `)$', so one must not match beginning or | 
 | 21621 |   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | 
 | 21622 |   # as well as any symbol that contains `d'. | 
 | 21623 |   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" | 
 | 21624 |   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | 
 | 21625 |   # platforms (ab)use it in PIC code, but their linkers get confused if | 
 | 21626 |   # the symbol is explicitly referenced.  Since portable code cannot | 
 | 21627 |   # rely on this symbol name, it's probably fine to never include it in | 
 | 21628 |   # preloaded symbol tables. | 
 | 21629 |   extract_expsyms_cmds= | 
 | 21630 |  | 
 | 21631 |   case $host_os in | 
 | 21632 |   cygwin* | mingw* | pw32*) | 
 | 21633 |     # FIXME: the MSVC++ port hasn't been tested in a loooong time | 
 | 21634 |     # When not using gcc, we currently assume that we are using | 
 | 21635 |     # Microsoft Visual C++. | 
 | 21636 |     if test "$GCC" != yes; then | 
 | 21637 |       with_gnu_ld=no | 
 | 21638 |     fi | 
 | 21639 |     ;; | 
 | 21640 |   openbsd*) | 
 | 21641 |     with_gnu_ld=no | 
 | 21642 |     ;; | 
 | 21643 |   esac | 
 | 21644 |  | 
 | 21645 |   ld_shlibs_GCJ=yes | 
 | 21646 |   if test "$with_gnu_ld" = yes; then | 
 | 21647 |     # If archive_cmds runs LD, not CC, wlarc should be empty | 
 | 21648 |     wlarc='${wl}' | 
 | 21649 |  | 
 | 21650 |     # See if GNU ld supports shared libraries. | 
 | 21651 |     case $host_os in | 
 | 21652 |     aix3* | aix4* | aix5*) | 
 | 21653 |       # On AIX/PPC, the GNU linker is very broken | 
 | 21654 |       if test "$host_cpu" != ia64; then | 
 | 21655 | 	ld_shlibs_GCJ=no | 
 | 21656 | 	cat <<EOF 1>&2 | 
 | 21657 |  | 
 | 21658 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | 
 | 21659 | *** to be unable to reliably create shared libraries on AIX. | 
 | 21660 | *** Therefore, libtool is disabling shared libraries support.  If you | 
 | 21661 | *** really care for shared libraries, you may want to modify your PATH | 
 | 21662 | *** so that a non-GNU linker is found, and then restart. | 
 | 21663 |  | 
 | 21664 | EOF | 
 | 21665 |       fi | 
 | 21666 |       ;; | 
 | 21667 |  | 
 | 21668 |     amigaos*) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21669 |       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21670 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 21671 |       hardcode_minus_L_GCJ=yes | 
 | 21672 |  | 
 | 21673 |       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | 
 | 21674 |       # that the semantics of dynamic libraries on AmigaOS, at least up | 
 | 21675 |       # to version 4, is to share data among multiple programs linked | 
 | 21676 |       # with the same dynamic library.  Since this doesn't match the | 
 | 21677 |       # behavior of shared libraries on other platforms, we can't use | 
 | 21678 |       # them. | 
 | 21679 |       ld_shlibs_GCJ=no | 
 | 21680 |       ;; | 
 | 21681 |  | 
 | 21682 |     beos*) | 
 | 21683 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 21684 | 	allow_undefined_flag_GCJ=unsupported | 
 | 21685 | 	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 
 | 21686 | 	# support --undefined.  This deserves some investigation.  FIXME | 
 | 21687 | 	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 21688 |       else | 
 | 21689 | 	ld_shlibs_GCJ=no | 
 | 21690 |       fi | 
 | 21691 |       ;; | 
 | 21692 |  | 
 | 21693 |     cygwin* | mingw* | pw32*) | 
 | 21694 |       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, | 
 | 21695 |       # as there is no search path for DLLs. | 
 | 21696 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 21697 |       allow_undefined_flag_GCJ=unsupported | 
 | 21698 |       always_export_symbols_GCJ=no | 
 | 21699 |       enable_shared_with_static_runtimes_GCJ=yes | 
 | 21700 |       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 21701 |  | 
 | 21702 |       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 
 | 21703 |         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 
 | 21704 | 	# If the export-symbols file already is a .def file (1st line | 
 | 21705 | 	# is EXPORTS), use it as is; otherwise, prepend... | 
 | 21706 | 	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
 | 21707 | 	  cp $export_symbols $output_objdir/$soname.def; | 
 | 21708 | 	else | 
 | 21709 | 	  echo EXPORTS > $output_objdir/$soname.def; | 
 | 21710 | 	  cat $export_symbols >> $output_objdir/$soname.def; | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21711 | 	fi~ | 
 | 21712 | 	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21713 |       else | 
 | 21714 | 	ld_shlibs=no | 
 | 21715 |       fi | 
 | 21716 |       ;; | 
 | 21717 |  | 
 | 21718 |     netbsd*) | 
 | 21719 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 21720 | 	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | 
 | 21721 | 	wlarc= | 
 | 21722 |       else | 
 | 21723 | 	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 21724 | 	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 21725 |       fi | 
 | 21726 |       ;; | 
 | 21727 |  | 
 | 21728 |     solaris* | sysv5*) | 
 | 21729 |       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | 
 | 21730 | 	ld_shlibs_GCJ=no | 
 | 21731 | 	cat <<EOF 1>&2 | 
 | 21732 |  | 
 | 21733 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | 
 | 21734 | *** create shared libraries on Solaris systems.  Therefore, libtool | 
 | 21735 | *** is disabling shared libraries support.  We urge you to upgrade GNU | 
 | 21736 | *** binutils to release 2.9.1 or newer.  Another option is to modify | 
 | 21737 | *** your PATH or compiler configuration so that the native linker is | 
 | 21738 | *** used, and then restart. | 
 | 21739 |  | 
 | 21740 | EOF | 
 | 21741 |       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 21742 | 	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 21743 | 	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 21744 |       else | 
 | 21745 | 	ld_shlibs_GCJ=no | 
 | 21746 |       fi | 
 | 21747 |       ;; | 
 | 21748 |  | 
 | 21749 |     sunos4*) | 
 | 21750 |       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 21751 |       wlarc= | 
 | 21752 |       hardcode_direct_GCJ=yes | 
 | 21753 |       hardcode_shlibpath_var_GCJ=no | 
 | 21754 |       ;; | 
 | 21755 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21756 |   linux*) | 
 | 21757 |     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 21758 |         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 21759 | 	archive_cmds_GCJ="$tmp_archive_cmds" | 
 | 21760 |       supports_anon_versioning=no | 
 | 21761 |       case `$LD -v 2>/dev/null` in | 
 | 21762 |         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | 
 | 21763 |         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | 
 | 21764 |         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | 
 | 21765 |         *\ 2.11.*) ;; # other 2.11 versions | 
 | 21766 |         *) supports_anon_versioning=yes ;; | 
 | 21767 |       esac | 
 | 21768 |       if test $supports_anon_versioning = yes; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21769 |         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ | 
 | 21770 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | 
 | 21771 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21772 |         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | 
 | 21773 |       else | 
 | 21774 |         archive_expsym_cmds_GCJ="$tmp_archive_cmds" | 
 | 21775 |       fi | 
 | 21776 |     else | 
 | 21777 |       ld_shlibs_GCJ=no | 
 | 21778 |     fi | 
 | 21779 |     ;; | 
 | 21780 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21781 |     *) | 
 | 21782 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 21783 | 	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 21784 | 	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 21785 |       else | 
 | 21786 | 	ld_shlibs_GCJ=no | 
 | 21787 |       fi | 
 | 21788 |       ;; | 
 | 21789 |     esac | 
 | 21790 |  | 
 | 21791 |     if test "$ld_shlibs_GCJ" = yes; then | 
 | 21792 |       runpath_var=LD_RUN_PATH | 
 | 21793 |       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' | 
 | 21794 |       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' | 
 | 21795 |       # ancient GNU ld didn't support --whole-archive et. al. | 
 | 21796 |       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | 
 | 21797 |  	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
 | 21798 |       else | 
 | 21799 |   	whole_archive_flag_spec_GCJ= | 
 | 21800 |       fi | 
 | 21801 |     fi | 
 | 21802 |   else | 
 | 21803 |     # PORTME fill in a description of your system's linker (not GNU ld) | 
 | 21804 |     case $host_os in | 
 | 21805 |     aix3*) | 
 | 21806 |       allow_undefined_flag_GCJ=unsupported | 
 | 21807 |       always_export_symbols_GCJ=yes | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21808 |       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21809 |       # Note: this linker hardcodes the directories in LIBPATH if there | 
 | 21810 |       # are no directories specified by -L. | 
 | 21811 |       hardcode_minus_L_GCJ=yes | 
 | 21812 |       if test "$GCC" = yes && test -z "$link_static_flag"; then | 
 | 21813 | 	# Neither direct hardcoding nor static linking is supported with a | 
 | 21814 | 	# broken collect2. | 
 | 21815 | 	hardcode_direct_GCJ=unsupported | 
 | 21816 |       fi | 
 | 21817 |       ;; | 
 | 21818 |  | 
 | 21819 |     aix4* | aix5*) | 
 | 21820 |       if test "$host_cpu" = ia64; then | 
 | 21821 | 	# On IA64, the linker does run time linking by default, so we don't | 
 | 21822 | 	# have to do anything special. | 
 | 21823 | 	aix_use_runtimelinking=no | 
 | 21824 | 	exp_sym_flag='-Bexport' | 
 | 21825 | 	no_entry_flag="" | 
 | 21826 |       else | 
 | 21827 | 	# If we're using GNU nm, then we don't want the "-C" option. | 
 | 21828 | 	# -C means demangle to AIX nm, but means don't demangle with GNU nm | 
 | 21829 | 	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 
 | 21830 | 	  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' | 
 | 21831 | 	else | 
 | 21832 | 	  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' | 
 | 21833 | 	fi | 
 | 21834 | 	aix_use_runtimelinking=no | 
 | 21835 |  | 
 | 21836 | 	# Test if we are trying to use run time linking or normal | 
 | 21837 | 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
 | 21838 | 	# need to do runtime linking. | 
 | 21839 | 	case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 
 | 21840 | 	  for ld_flag in $LDFLAGS; do | 
 | 21841 |   	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 
 | 21842 |   	    aix_use_runtimelinking=yes | 
 | 21843 |   	    break | 
 | 21844 |   	  fi | 
 | 21845 | 	  done | 
 | 21846 | 	esac | 
 | 21847 |  | 
 | 21848 | 	exp_sym_flag='-bexport' | 
 | 21849 | 	no_entry_flag='-bnoentry' | 
 | 21850 |       fi | 
 | 21851 |  | 
 | 21852 |       # When large executables or shared objects are built, AIX ld can | 
 | 21853 |       # have problems creating the table of contents.  If linking a library | 
 | 21854 |       # or program results in "error TOC overflow" add -mminimal-toc to | 
 | 21855 |       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
 | 21856 |       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
 | 21857 |  | 
 | 21858 |       archive_cmds_GCJ='' | 
 | 21859 |       hardcode_direct_GCJ=yes | 
 | 21860 |       hardcode_libdir_separator_GCJ=':' | 
 | 21861 |       link_all_deplibs_GCJ=yes | 
 | 21862 |  | 
 | 21863 |       if test "$GCC" = yes; then | 
 | 21864 | 	case $host_os in aix4.012|aix4.012.*) | 
 | 21865 | 	# We only want to do this on AIX 4.2 and lower, the check | 
 | 21866 | 	# below for broken collect2 doesn't work under 4.3+ | 
 | 21867 | 	  collect2name=`${CC} -print-prog-name=collect2` | 
 | 21868 | 	  if test -f "$collect2name" && \ | 
 | 21869 |   	   strings "$collect2name" | grep resolve_lib_name >/dev/null | 
 | 21870 | 	  then | 
 | 21871 |   	  # We have reworked collect2 | 
 | 21872 |   	  hardcode_direct_GCJ=yes | 
 | 21873 | 	  else | 
 | 21874 |   	  # We have old collect2 | 
 | 21875 |   	  hardcode_direct_GCJ=unsupported | 
 | 21876 |   	  # It fails to find uninstalled libraries when the uninstalled | 
 | 21877 |   	  # path is not listed in the libpath.  Setting hardcode_minus_L | 
 | 21878 |   	  # to unsupported forces relinking | 
 | 21879 |   	  hardcode_minus_L_GCJ=yes | 
 | 21880 |   	  hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 21881 |   	  hardcode_libdir_separator_GCJ= | 
 | 21882 | 	  fi | 
 | 21883 | 	esac | 
 | 21884 | 	shared_flag='-shared' | 
 | 21885 |       else | 
 | 21886 | 	# not using gcc | 
 | 21887 | 	if test "$host_cpu" = ia64; then | 
 | 21888 |   	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
 | 21889 |   	# chokes on -Wl,-G. The following line is correct: | 
 | 21890 | 	  shared_flag='-G' | 
 | 21891 | 	else | 
 | 21892 |   	if test "$aix_use_runtimelinking" = yes; then | 
 | 21893 | 	    shared_flag='${wl}-G' | 
 | 21894 | 	  else | 
 | 21895 | 	    shared_flag='${wl}-bM:SRE' | 
 | 21896 |   	fi | 
 | 21897 | 	fi | 
 | 21898 |       fi | 
 | 21899 |  | 
 | 21900 |       # It seems that -bexpall does not export symbols beginning with | 
 | 21901 |       # underscore (_), so it is better to generate a list of symbols to export. | 
 | 21902 |       always_export_symbols_GCJ=yes | 
 | 21903 |       if test "$aix_use_runtimelinking" = yes; then | 
 | 21904 | 	# Warning - without using the other runtime loading flags (-brtl), | 
 | 21905 | 	# -berok will link without error, but may produce a broken library. | 
 | 21906 | 	allow_undefined_flag_GCJ='-berok' | 
 | 21907 |        # Determine the default libpath from the value encoded in an empty executable. | 
 | 21908 |        cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21909 | /* confdefs.h.  */ | 
 | 21910 | _ACEOF | 
 | 21911 | cat confdefs.h >>conftest.$ac_ext | 
 | 21912 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 21913 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21914 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21915 | int | 
 | 21916 | main () | 
 | 21917 | { | 
 | 21918 |  | 
 | 21919 |   ; | 
 | 21920 |   return 0; | 
 | 21921 | } | 
 | 21922 | _ACEOF | 
 | 21923 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 21924 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21925 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21926 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21927 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 21928 |   rm -f conftest.er1 | 
 | 21929 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21930 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21931 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21932 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 21933 | 			 || test ! -s conftest.err' | 
 | 21934 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21935 |   (eval $ac_try) 2>&5 | 
 | 21936 |   ac_status=$? | 
 | 21937 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21938 |   (exit $ac_status); }; } && | 
 | 21939 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21940 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21941 |   (eval $ac_try) 2>&5 | 
 | 21942 |   ac_status=$? | 
 | 21943 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21944 |   (exit $ac_status); }; }; then | 
 | 21945 |  | 
 | 21946 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 21947 | }'` | 
 | 21948 | # Check for a 64-bit object if we didn't find anything. | 
 | 21949 | 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; } | 
 | 21950 | }'`; fi | 
 | 21951 | else | 
 | 21952 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21953 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21954 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21955 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21956 | rm -f conftest.err conftest.$ac_objext \ | 
 | 21957 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21958 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
 | 21959 |  | 
 | 21960 |        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 21961 | 	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" | 
 | 21962 |        else | 
 | 21963 | 	if test "$host_cpu" = ia64; then | 
 | 21964 | 	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' | 
 | 21965 | 	  allow_undefined_flag_GCJ="-z nodefs" | 
 | 21966 | 	  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" | 
 | 21967 | 	else | 
 | 21968 | 	 # Determine the default libpath from the value encoded in an empty executable. | 
 | 21969 | 	 cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21970 | /* confdefs.h.  */ | 
 | 21971 | _ACEOF | 
 | 21972 | cat confdefs.h >>conftest.$ac_ext | 
 | 21973 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 21974 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21975 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21976 | int | 
 | 21977 | main () | 
 | 21978 | { | 
 | 21979 |  | 
 | 21980 |   ; | 
 | 21981 |   return 0; | 
 | 21982 | } | 
 | 21983 | _ACEOF | 
 | 21984 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 21985 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21986 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21987 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21988 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 21989 |   rm -f conftest.er1 | 
 | 21990 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21991 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21992 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21993 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 21994 | 			 || test ! -s conftest.err' | 
 | 21995 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21996 |   (eval $ac_try) 2>&5 | 
 | 21997 |   ac_status=$? | 
 | 21998 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21999 |   (exit $ac_status); }; } && | 
 | 22000 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22001 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22002 |   (eval $ac_try) 2>&5 | 
 | 22003 |   ac_status=$? | 
 | 22004 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22005 |   (exit $ac_status); }; }; then | 
 | 22006 |  | 
 | 22007 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 22008 | }'` | 
 | 22009 | # Check for a 64-bit object if we didn't find anything. | 
 | 22010 | 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; } | 
 | 22011 | }'`; fi | 
 | 22012 | else | 
 | 22013 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22014 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 22015 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22016 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22017 | rm -f conftest.err conftest.$ac_objext \ | 
 | 22018 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22019 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
 | 22020 |  | 
 | 22021 | 	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 22022 | 	  # Warning - without using the other run time loading flags, | 
 | 22023 | 	  # -berok will link without error, but may produce a broken library. | 
 | 22024 | 	  no_undefined_flag_GCJ=' ${wl}-bernotok' | 
 | 22025 | 	  allow_undefined_flag_GCJ=' ${wl}-berok' | 
 | 22026 | 	  # -bexpall does not export symbols beginning with underscore (_) | 
 | 22027 | 	  always_export_symbols_GCJ=yes | 
 | 22028 | 	  # Exported symbols can be pulled into shared objects from archives | 
 | 22029 | 	  whole_archive_flag_spec_GCJ=' ' | 
 | 22030 | 	  archive_cmds_need_lc_GCJ=yes | 
 | 22031 | 	  # This is similar to how AIX traditionally builds it's shared libraries. | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22032 | 	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22033 | 	fi | 
 | 22034 |       fi | 
 | 22035 |       ;; | 
 | 22036 |  | 
 | 22037 |     amigaos*) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22038 |       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22039 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 22040 |       hardcode_minus_L_GCJ=yes | 
 | 22041 |       # see comment about different semantics on the GNU ld section | 
 | 22042 |       ld_shlibs_GCJ=no | 
 | 22043 |       ;; | 
 | 22044 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22045 |     bsdi[45]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22046 |       export_dynamic_flag_spec_GCJ=-rdynamic | 
 | 22047 |       ;; | 
 | 22048 |  | 
 | 22049 |     cygwin* | mingw* | pw32*) | 
 | 22050 |       # When not using gcc, we currently assume that we are using | 
 | 22051 |       # Microsoft Visual C++. | 
 | 22052 |       # hardcode_libdir_flag_spec is actually meaningless, as there is | 
 | 22053 |       # no search path for DLLs. | 
 | 22054 |       hardcode_libdir_flag_spec_GCJ=' ' | 
 | 22055 |       allow_undefined_flag_GCJ=unsupported | 
 | 22056 |       # Tell ltmain to make .lib files, not .a files. | 
 | 22057 |       libext=lib | 
 | 22058 |       # Tell ltmain to make .dll files, not .so files. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22059 |       shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22060 |       # FIXME: Setting linknames here is a bad hack. | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22061 |       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22062 |       # The linker will automatically build a .lib file if we build a DLL. | 
 | 22063 |       old_archive_From_new_cmds_GCJ='true' | 
 | 22064 |       # FIXME: Should let the user specify the lib program. | 
 | 22065 |       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' | 
 | 22066 |       fix_srcfile_path='`cygpath -w "$srcfile"`' | 
 | 22067 |       enable_shared_with_static_runtimes_GCJ=yes | 
 | 22068 |       ;; | 
 | 22069 |  | 
 | 22070 |     darwin* | rhapsody*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22071 |       case "$host_os" in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22072 |         rhapsody* | darwin1.[012]) | 
 | 22073 |          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' | 
 | 22074 |          ;; | 
 | 22075 |        *) # Darwin 1.3 on | 
 | 22076 |          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | 
 | 22077 |            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 22078 |          else | 
 | 22079 |            case ${MACOSX_DEPLOYMENT_TARGET} in | 
 | 22080 |              10.[012]) | 
 | 22081 |                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 22082 |                ;; | 
 | 22083 |              10.*) | 
 | 22084 |                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' | 
 | 22085 |                ;; | 
 | 22086 |            esac | 
 | 22087 |          fi | 
 | 22088 |          ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22089 |       esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22090 |       archive_cmds_need_lc_GCJ=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22091 |       hardcode_direct_GCJ=no | 
 | 22092 |       hardcode_automatic_GCJ=yes | 
 | 22093 |       hardcode_shlibpath_var_GCJ=unsupported | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22094 |       whole_archive_flag_spec_GCJ='' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22095 |       link_all_deplibs_GCJ=yes | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22096 |     if test "$GCC" = yes ; then | 
 | 22097 |     	output_verbose_link_cmd='echo' | 
 | 22098 |         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 
 | 22099 |       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
 | 22100 |       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22101 |       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
 | 22102 |       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22103 |     else | 
 | 22104 |       case "$cc_basename" in | 
 | 22105 |         xlc*) | 
 | 22106 |          output_verbose_link_cmd='echo' | 
 | 22107 |          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | 
 | 22108 |          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
 | 22109 |           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22110 |          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
 | 22111 |           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22112 |           ;; | 
 | 22113 |        *) | 
 | 22114 |          ld_shlibs_GCJ=no | 
 | 22115 |           ;; | 
 | 22116 |       esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22117 |     fi | 
 | 22118 |       ;; | 
 | 22119 |  | 
 | 22120 |     dgux*) | 
 | 22121 |       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 22122 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 22123 |       hardcode_shlibpath_var_GCJ=no | 
 | 22124 |       ;; | 
 | 22125 |  | 
 | 22126 |     freebsd1*) | 
 | 22127 |       ld_shlibs_GCJ=no | 
 | 22128 |       ;; | 
 | 22129 |  | 
 | 22130 |     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 
 | 22131 |     # support.  Future versions do this automatically, but an explicit c++rt0.o | 
 | 22132 |     # does not break anything, and helps significantly (at the cost of a little | 
 | 22133 |     # extra space). | 
 | 22134 |     freebsd2.2*) | 
 | 22135 |       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | 
 | 22136 |       hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
 | 22137 |       hardcode_direct_GCJ=yes | 
 | 22138 |       hardcode_shlibpath_var_GCJ=no | 
 | 22139 |       ;; | 
 | 22140 |  | 
 | 22141 |     # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 
 | 22142 |     freebsd2*) | 
 | 22143 |       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 22144 |       hardcode_direct_GCJ=yes | 
 | 22145 |       hardcode_minus_L_GCJ=yes | 
 | 22146 |       hardcode_shlibpath_var_GCJ=no | 
 | 22147 |       ;; | 
 | 22148 |  | 
 | 22149 |     # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22150 |     freebsd* | kfreebsd*-gnu) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22151 |       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | 
 | 22152 |       hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
 | 22153 |       hardcode_direct_GCJ=yes | 
 | 22154 |       hardcode_shlibpath_var_GCJ=no | 
 | 22155 |       ;; | 
 | 22156 |  | 
 | 22157 |     hpux9*) | 
 | 22158 |       if test "$GCC" = yes; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22159 | 	archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22160 |       else | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22161 | 	archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22162 |       fi | 
 | 22163 |       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | 
 | 22164 |       hardcode_libdir_separator_GCJ=: | 
 | 22165 |       hardcode_direct_GCJ=yes | 
 | 22166 |  | 
 | 22167 |       # hardcode_minus_L: Not really in the search PATH, | 
 | 22168 |       # but as the default location of the library. | 
 | 22169 |       hardcode_minus_L_GCJ=yes | 
 | 22170 |       export_dynamic_flag_spec_GCJ='${wl}-E' | 
 | 22171 |       ;; | 
 | 22172 |  | 
 | 22173 |     hpux10* | hpux11*) | 
 | 22174 |       if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 
 | 22175 | 	case "$host_cpu" in | 
 | 22176 | 	hppa*64*|ia64*) | 
 | 22177 | 	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 22178 | 	  ;; | 
 | 22179 | 	*) | 
 | 22180 | 	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
 | 22181 | 	  ;; | 
 | 22182 | 	esac | 
 | 22183 |       else | 
 | 22184 | 	case "$host_cpu" in | 
 | 22185 | 	hppa*64*|ia64*) | 
 | 22186 | 	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 22187 | 	  ;; | 
 | 22188 | 	*) | 
 | 22189 | 	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 
 | 22190 | 	  ;; | 
 | 22191 | 	esac | 
 | 22192 |       fi | 
 | 22193 |       if test "$with_gnu_ld" = no; then | 
 | 22194 | 	case "$host_cpu" in | 
 | 22195 | 	hppa*64*) | 
 | 22196 | 	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | 
 | 22197 | 	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' | 
 | 22198 | 	  hardcode_libdir_separator_GCJ=: | 
 | 22199 | 	  hardcode_direct_GCJ=no | 
 | 22200 | 	  hardcode_shlibpath_var_GCJ=no | 
 | 22201 | 	  ;; | 
 | 22202 | 	ia64*) | 
 | 22203 | 	  hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 22204 | 	  hardcode_direct_GCJ=no | 
 | 22205 | 	  hardcode_shlibpath_var_GCJ=no | 
 | 22206 |  | 
 | 22207 | 	  # hardcode_minus_L: Not really in the search PATH, | 
 | 22208 | 	  # but as the default location of the library. | 
 | 22209 | 	  hardcode_minus_L_GCJ=yes | 
 | 22210 | 	  ;; | 
 | 22211 | 	*) | 
 | 22212 | 	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | 
 | 22213 | 	  hardcode_libdir_separator_GCJ=: | 
 | 22214 | 	  hardcode_direct_GCJ=yes | 
 | 22215 | 	  export_dynamic_flag_spec_GCJ='${wl}-E' | 
 | 22216 |  | 
 | 22217 | 	  # hardcode_minus_L: Not really in the search PATH, | 
 | 22218 | 	  # but as the default location of the library. | 
 | 22219 | 	  hardcode_minus_L_GCJ=yes | 
 | 22220 | 	  ;; | 
 | 22221 | 	esac | 
 | 22222 |       fi | 
 | 22223 |       ;; | 
 | 22224 |  | 
 | 22225 |     irix5* | irix6* | nonstopux*) | 
 | 22226 |       if test "$GCC" = yes; then | 
 | 22227 | 	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' | 
 | 22228 |       else | 
 | 22229 | 	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' | 
 | 22230 | 	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' | 
 | 22231 |       fi | 
 | 22232 |       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | 
 | 22233 |       hardcode_libdir_separator_GCJ=: | 
 | 22234 |       link_all_deplibs_GCJ=yes | 
 | 22235 |       ;; | 
 | 22236 |  | 
 | 22237 |     netbsd*) | 
 | 22238 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 22239 | 	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out | 
 | 22240 |       else | 
 | 22241 | 	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF | 
 | 22242 |       fi | 
 | 22243 |       hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
 | 22244 |       hardcode_direct_GCJ=yes | 
 | 22245 |       hardcode_shlibpath_var_GCJ=no | 
 | 22246 |       ;; | 
 | 22247 |  | 
 | 22248 |     newsos6) | 
 | 22249 |       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 22250 |       hardcode_direct_GCJ=yes | 
 | 22251 |       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | 
 | 22252 |       hardcode_libdir_separator_GCJ=: | 
 | 22253 |       hardcode_shlibpath_var_GCJ=no | 
 | 22254 |       ;; | 
 | 22255 |  | 
 | 22256 |     openbsd*) | 
 | 22257 |       hardcode_direct_GCJ=yes | 
 | 22258 |       hardcode_shlibpath_var_GCJ=no | 
 | 22259 |       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 22260 | 	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22261 | 	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22262 | 	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | 
 | 22263 | 	export_dynamic_flag_spec_GCJ='${wl}-E' | 
 | 22264 |       else | 
 | 22265 |        case $host_os in | 
 | 22266 | 	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | 
 | 22267 | 	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 22268 | 	   hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
 | 22269 | 	   ;; | 
 | 22270 | 	 *) | 
 | 22271 | 	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
 | 22272 | 	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | 
 | 22273 | 	   ;; | 
 | 22274 |        esac | 
 | 22275 |       fi | 
 | 22276 |       ;; | 
 | 22277 |  | 
 | 22278 |     os2*) | 
 | 22279 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 22280 |       hardcode_minus_L_GCJ=yes | 
 | 22281 |       allow_undefined_flag_GCJ=unsupported | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22282 |       archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22283 |       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | 
 | 22284 |       ;; | 
 | 22285 |  | 
 | 22286 |     osf3*) | 
 | 22287 |       if test "$GCC" = yes; then | 
 | 22288 | 	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | 
 | 22289 | 	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' | 
 | 22290 |       else | 
 | 22291 | 	allow_undefined_flag_GCJ=' -expect_unresolved \*' | 
 | 22292 | 	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' | 
 | 22293 |       fi | 
 | 22294 |       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | 
 | 22295 |       hardcode_libdir_separator_GCJ=: | 
 | 22296 |       ;; | 
 | 22297 |  | 
 | 22298 |     osf4* | osf5*)	# as osf3* with the addition of -msym flag | 
 | 22299 |       if test "$GCC" = yes; then | 
 | 22300 | 	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | 
 | 22301 | 	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' | 
 | 22302 | 	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | 
 | 22303 |       else | 
 | 22304 | 	allow_undefined_flag_GCJ=' -expect_unresolved \*' | 
 | 22305 | 	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22306 | 	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~ | 
 | 22307 | 	$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' | 
 | 22308 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22309 | 	# Both c and cxx compiler support -rpath directly | 
 | 22310 | 	hardcode_libdir_flag_spec_GCJ='-rpath $libdir' | 
 | 22311 |       fi | 
 | 22312 |       hardcode_libdir_separator_GCJ=: | 
 | 22313 |       ;; | 
 | 22314 |  | 
 | 22315 |     sco3.2v5*) | 
 | 22316 |       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 22317 |       hardcode_shlibpath_var_GCJ=no | 
 | 22318 |       export_dynamic_flag_spec_GCJ='${wl}-Bexport' | 
 | 22319 |       runpath_var=LD_RUN_PATH | 
 | 22320 |       hardcode_runpath_var=yes | 
 | 22321 |       ;; | 
 | 22322 |  | 
 | 22323 |     solaris*) | 
 | 22324 |       no_undefined_flag_GCJ=' -z text' | 
 | 22325 |       if test "$GCC" = yes; then | 
 | 22326 | 	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22327 | 	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 22328 | 	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22329 |       else | 
 | 22330 | 	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22331 | 	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 22332 |   	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22333 |       fi | 
 | 22334 |       hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
 | 22335 |       hardcode_shlibpath_var_GCJ=no | 
 | 22336 |       case $host_os in | 
 | 22337 |       solaris2.[0-5] | solaris2.[0-5].*) ;; | 
 | 22338 |       *) # Supported since Solaris 2.6 (maybe 2.5.1?) | 
 | 22339 | 	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; | 
 | 22340 |       esac | 
 | 22341 |       link_all_deplibs_GCJ=yes | 
 | 22342 |       ;; | 
 | 22343 |  | 
 | 22344 |     sunos4*) | 
 | 22345 |       if test "x$host_vendor" = xsequent; then | 
 | 22346 | 	# Use $CC to link under sequent, because it throws in some extra .o | 
 | 22347 | 	# files that make .init and .fini sections work. | 
 | 22348 | 	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 22349 |       else | 
 | 22350 | 	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | 
 | 22351 |       fi | 
 | 22352 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 22353 |       hardcode_direct_GCJ=yes | 
 | 22354 |       hardcode_minus_L_GCJ=yes | 
 | 22355 |       hardcode_shlibpath_var_GCJ=no | 
 | 22356 |       ;; | 
 | 22357 |  | 
 | 22358 |     sysv4) | 
 | 22359 |       case $host_vendor in | 
 | 22360 | 	sni) | 
 | 22361 | 	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 22362 | 	  hardcode_direct_GCJ=yes # is this really true??? | 
 | 22363 | 	;; | 
 | 22364 | 	siemens) | 
 | 22365 | 	  ## LD is ld it makes a PLAMLIB | 
 | 22366 | 	  ## CC just makes a GrossModule. | 
 | 22367 | 	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
 | 22368 | 	  reload_cmds_GCJ='$CC -r -o $output$reload_objs' | 
 | 22369 | 	  hardcode_direct_GCJ=no | 
 | 22370 |         ;; | 
 | 22371 | 	motorola) | 
 | 22372 | 	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 22373 | 	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie | 
 | 22374 | 	;; | 
 | 22375 |       esac | 
 | 22376 |       runpath_var='LD_RUN_PATH' | 
 | 22377 |       hardcode_shlibpath_var_GCJ=no | 
 | 22378 |       ;; | 
 | 22379 |  | 
 | 22380 |     sysv4.3*) | 
 | 22381 |       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 22382 |       hardcode_shlibpath_var_GCJ=no | 
 | 22383 |       export_dynamic_flag_spec_GCJ='-Bexport' | 
 | 22384 |       ;; | 
 | 22385 |  | 
 | 22386 |     sysv4*MP*) | 
 | 22387 |       if test -d /usr/nec; then | 
 | 22388 | 	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 22389 | 	hardcode_shlibpath_var_GCJ=no | 
 | 22390 | 	runpath_var=LD_RUN_PATH | 
 | 22391 | 	hardcode_runpath_var=yes | 
 | 22392 | 	ld_shlibs_GCJ=yes | 
 | 22393 |       fi | 
 | 22394 |       ;; | 
 | 22395 |  | 
 | 22396 |     sysv4.2uw2*) | 
 | 22397 |       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
 | 22398 |       hardcode_direct_GCJ=yes | 
 | 22399 |       hardcode_minus_L_GCJ=no | 
 | 22400 |       hardcode_shlibpath_var_GCJ=no | 
 | 22401 |       hardcode_runpath_var=yes | 
 | 22402 |       runpath_var=LD_RUN_PATH | 
 | 22403 |       ;; | 
 | 22404 |  | 
 | 22405 |    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*) | 
 | 22406 |       no_undefined_flag_GCJ='${wl}-z ${wl}text' | 
 | 22407 |       if test "$GCC" = yes; then | 
 | 22408 | 	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 22409 |       else | 
 | 22410 | 	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 22411 |       fi | 
 | 22412 |       runpath_var='LD_RUN_PATH' | 
 | 22413 |       hardcode_shlibpath_var_GCJ=no | 
 | 22414 |       ;; | 
 | 22415 |  | 
 | 22416 |     sysv5*) | 
 | 22417 |       no_undefined_flag_GCJ=' -z text' | 
 | 22418 |       # $CC -shared without GNU ld will not create a library from C++ | 
 | 22419 |       # object files and a static libstdc++, better avoid it by now | 
 | 22420 |       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22421 |       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 22422 |   		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22423 |       hardcode_libdir_flag_spec_GCJ= | 
 | 22424 |       hardcode_shlibpath_var_GCJ=no | 
 | 22425 |       runpath_var='LD_RUN_PATH' | 
 | 22426 |       ;; | 
 | 22427 |  | 
 | 22428 |     uts4*) | 
 | 22429 |       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 22430 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 22431 |       hardcode_shlibpath_var_GCJ=no | 
 | 22432 |       ;; | 
 | 22433 |  | 
 | 22434 |     *) | 
 | 22435 |       ld_shlibs_GCJ=no | 
 | 22436 |       ;; | 
 | 22437 |     esac | 
 | 22438 |   fi | 
 | 22439 |  | 
 | 22440 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 | 
 | 22441 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 | 
 | 22442 | test "$ld_shlibs_GCJ" = no && can_build_shared=no | 
 | 22443 |  | 
 | 22444 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
 | 22445 | if test "$GCC" = yes; then | 
 | 22446 |   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
 | 22447 | fi | 
 | 22448 |  | 
 | 22449 | # | 
 | 22450 | # Do we need to explicitly link libc? | 
 | 22451 | # | 
 | 22452 | case "x$archive_cmds_need_lc_GCJ" in | 
 | 22453 | x|xyes) | 
 | 22454 |   # Assume -lc should be added | 
 | 22455 |   archive_cmds_need_lc_GCJ=yes | 
 | 22456 |  | 
 | 22457 |   if test "$enable_shared" = yes && test "$GCC" = yes; then | 
 | 22458 |     case $archive_cmds_GCJ in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22459 |     *'~'*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22460 |       # FIXME: we may have to deal with multi-command sequences. | 
 | 22461 |       ;; | 
 | 22462 |     '$CC '*) | 
 | 22463 |       # Test whether the compiler implicitly links with -lc since on some | 
 | 22464 |       # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
 | 22465 |       # to ld, don't add -lc before -lgcc. | 
 | 22466 |       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | 
 | 22467 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | 
 | 22468 |       $rm conftest* | 
 | 22469 |       printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 22470 |  | 
 | 22471 |       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 22472 |   (eval $ac_compile) 2>&5 | 
 | 22473 |   ac_status=$? | 
 | 22474 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22475 |   (exit $ac_status); } 2>conftest.err; then | 
 | 22476 |         soname=conftest | 
 | 22477 |         lib=conftest | 
 | 22478 |         libobjs=conftest.$ac_objext | 
 | 22479 |         deplibs= | 
 | 22480 |         wl=$lt_prog_compiler_wl_GCJ | 
 | 22481 |         compiler_flags=-v | 
 | 22482 |         linker_flags=-v | 
 | 22483 |         verstring= | 
 | 22484 |         output_objdir=. | 
 | 22485 |         libname=conftest | 
 | 22486 |         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ | 
 | 22487 |         allow_undefined_flag_GCJ= | 
 | 22488 |         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | 
 | 22489 |   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
 | 22490 |   ac_status=$? | 
 | 22491 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22492 |   (exit $ac_status); } | 
 | 22493 |         then | 
 | 22494 | 	  archive_cmds_need_lc_GCJ=no | 
 | 22495 |         else | 
 | 22496 | 	  archive_cmds_need_lc_GCJ=yes | 
 | 22497 |         fi | 
 | 22498 |         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag | 
 | 22499 |       else | 
 | 22500 |         cat conftest.err 1>&5 | 
 | 22501 |       fi | 
 | 22502 |       $rm conftest* | 
 | 22503 |       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 | 
 | 22504 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 | 
 | 22505 |       ;; | 
 | 22506 |     esac | 
 | 22507 |   fi | 
 | 22508 |   ;; | 
 | 22509 | esac | 
 | 22510 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22511 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
 | 22512 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 
 | 22513 | library_names_spec= | 
 | 22514 | libname_spec='lib$name' | 
 | 22515 | soname_spec= | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22516 | shrext_cmds=".so" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22517 | postinstall_cmds= | 
 | 22518 | postuninstall_cmds= | 
 | 22519 | finish_cmds= | 
 | 22520 | finish_eval= | 
 | 22521 | shlibpath_var= | 
 | 22522 | shlibpath_overrides_runpath=unknown | 
 | 22523 | version_type=none | 
 | 22524 | dynamic_linker="$host_os ld.so" | 
 | 22525 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
 | 22526 | if test "$GCC" = yes; then | 
 | 22527 |   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 22528 |   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
 | 22529 |     # if the path contains ";" then we assume it to be the separator | 
 | 22530 |     # otherwise default to the standard path separator (i.e. ":") - it is | 
 | 22531 |     # assumed that no part of a normal pathname contains ";" but that should | 
 | 22532 |     # okay in the real world where ";" in dirpaths is itself problematic. | 
 | 22533 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 22534 |   else | 
 | 22535 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 22536 |   fi | 
 | 22537 | else | 
 | 22538 |   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
 | 22539 | fi | 
 | 22540 | need_lib_prefix=unknown | 
 | 22541 | hardcode_into_libs=no | 
 | 22542 |  | 
 | 22543 | # when you set need_version to no, make sure it does not cause -set_version | 
 | 22544 | # flags to be left without arguments | 
 | 22545 | need_version=unknown | 
 | 22546 |  | 
 | 22547 | case $host_os in | 
 | 22548 | aix3*) | 
 | 22549 |   version_type=linux | 
 | 22550 |   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
 | 22551 |   shlibpath_var=LIBPATH | 
 | 22552 |  | 
 | 22553 |   # AIX 3 has no versioning support, so we append a major version to the name. | 
 | 22554 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 22555 |   ;; | 
 | 22556 |  | 
 | 22557 | aix4* | aix5*) | 
 | 22558 |   version_type=linux | 
 | 22559 |   need_lib_prefix=no | 
 | 22560 |   need_version=no | 
 | 22561 |   hardcode_into_libs=yes | 
 | 22562 |   if test "$host_cpu" = ia64; then | 
 | 22563 |     # AIX 5 supports IA64 | 
 | 22564 |     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
 | 22565 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 22566 |   else | 
 | 22567 |     # With GCC up to 2.95.x, collect2 would create an import file | 
 | 22568 |     # for dependence libraries.  The import file would start with | 
 | 22569 |     # the line `#! .'.  This would cause the generated library to | 
 | 22570 |     # depend on `.', always an invalid library.  This was fixed in | 
 | 22571 |     # development snapshots of GCC prior to 3.0. | 
 | 22572 |     case $host_os in | 
 | 22573 |       aix4 | aix4.[01] | aix4.[01].*) | 
 | 22574 |       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
 | 22575 | 	   echo ' yes ' | 
 | 22576 | 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
 | 22577 | 	: | 
 | 22578 |       else | 
 | 22579 | 	can_build_shared=no | 
 | 22580 |       fi | 
 | 22581 |       ;; | 
 | 22582 |     esac | 
 | 22583 |     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
 | 22584 |     # soname into executable. Probably we can add versioning support to | 
 | 22585 |     # collect2, so additional links can be useful in future. | 
 | 22586 |     if test "$aix_use_runtimelinking" = yes; then | 
 | 22587 |       # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
 | 22588 |       # instead of lib<name>.a to let people know that these are not | 
 | 22589 |       # typical AIX shared libraries. | 
 | 22590 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 22591 |     else | 
 | 22592 |       # We preserve .a as extension for shared libraries through AIX4.2 | 
 | 22593 |       # and later when we are not doing run time linking. | 
 | 22594 |       library_names_spec='${libname}${release}.a $libname.a' | 
 | 22595 |       soname_spec='${libname}${release}${shared_ext}$major' | 
 | 22596 |     fi | 
 | 22597 |     shlibpath_var=LIBPATH | 
 | 22598 |   fi | 
 | 22599 |   ;; | 
 | 22600 |  | 
 | 22601 | amigaos*) | 
 | 22602 |   library_names_spec='$libname.ixlibrary $libname.a' | 
 | 22603 |   # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22604 |   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22605 |   ;; | 
 | 22606 |  | 
 | 22607 | beos*) | 
 | 22608 |   library_names_spec='${libname}${shared_ext}' | 
 | 22609 |   dynamic_linker="$host_os ld.so" | 
 | 22610 |   shlibpath_var=LIBRARY_PATH | 
 | 22611 |   ;; | 
 | 22612 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22613 | bsdi[45]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22614 |   version_type=linux | 
 | 22615 |   need_version=no | 
 | 22616 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 22617 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 22618 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
 | 22619 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 22620 |   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
 | 22621 |   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
 | 22622 |   # the default ld.so.conf also contains /usr/contrib/lib and | 
 | 22623 |   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
 | 22624 |   # libtool to hard-code these into programs | 
 | 22625 |   ;; | 
 | 22626 |  | 
 | 22627 | cygwin* | mingw* | pw32*) | 
 | 22628 |   version_type=windows | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22629 |   shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22630 |   need_version=no | 
 | 22631 |   need_lib_prefix=no | 
 | 22632 |  | 
 | 22633 |   case $GCC,$host_os in | 
 | 22634 |   yes,cygwin* | yes,mingw* | yes,pw32*) | 
 | 22635 |     library_names_spec='$libname.dll.a' | 
 | 22636 |     # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22637 |     postinstall_cmds='base_file=`basename \${file}`~ | 
 | 22638 |       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
 | 22639 |       dldir=$destdir/`dirname \$dlpath`~ | 
 | 22640 |       test -d \$dldir || mkdir -p \$dldir~ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22641 |       $install_prog $dir/$dlname \$dldir/$dlname' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22642 |     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
 | 22643 |       dlpath=$dir/\$dldll~ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22644 |        $rm \$dlpath' | 
 | 22645 |     shlibpath_overrides_runpath=yes | 
 | 22646 |  | 
 | 22647 |     case $host_os in | 
 | 22648 |     cygwin*) | 
 | 22649 |       # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
 | 22650 |       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22651 |       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22652 |       ;; | 
 | 22653 |     mingw*) | 
 | 22654 |       # MinGW DLLs use traditional 'lib' prefix | 
 | 22655 |       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 22656 |       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 22657 |       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
 | 22658 |         # It is most probably a Windows format PATH printed by | 
 | 22659 |         # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
 | 22660 |         # path with ; separators, and with drive letters. We can handle the | 
 | 22661 |         # drive letters (cygwin fileutils understands them), so leave them, | 
 | 22662 |         # especially as we might pass files found there to a mingw objdump, | 
 | 22663 |         # which wouldn't understand a cygwinified path. Ahh. | 
 | 22664 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 22665 |       else | 
 | 22666 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 22667 |       fi | 
 | 22668 |       ;; | 
 | 22669 |     pw32*) | 
 | 22670 |       # pw32 DLLs use 'pw' prefix rather than 'lib' | 
 | 22671 |       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | 
 | 22672 |       ;; | 
 | 22673 |     esac | 
 | 22674 |     ;; | 
 | 22675 |  | 
 | 22676 |   *) | 
 | 22677 |     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
 | 22678 |     ;; | 
 | 22679 |   esac | 
 | 22680 |   dynamic_linker='Win32 ld.exe' | 
 | 22681 |   # FIXME: first we should search . and the directory the executable is in | 
 | 22682 |   shlibpath_var=PATH | 
 | 22683 |   ;; | 
 | 22684 |  | 
 | 22685 | darwin* | rhapsody*) | 
 | 22686 |   dynamic_linker="$host_os dyld" | 
 | 22687 |   version_type=darwin | 
 | 22688 |   need_lib_prefix=no | 
 | 22689 |   need_version=no | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22690 |   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22691 |   soname_spec='${libname}${release}${major}$shared_ext' | 
 | 22692 |   shlibpath_overrides_runpath=yes | 
 | 22693 |   shlibpath_var=DYLD_LIBRARY_PATH | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22694 |   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22695 |   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22696 |   if test "$GCC" = yes; then | 
 | 22697 |     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"` | 
 | 22698 |   else | 
 | 22699 |     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22700 |   fi | 
 | 22701 |   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
 | 22702 |   ;; | 
 | 22703 |  | 
 | 22704 | dgux*) | 
 | 22705 |   version_type=linux | 
 | 22706 |   need_lib_prefix=no | 
 | 22707 |   need_version=no | 
 | 22708 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
 | 22709 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 22710 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 22711 |   ;; | 
 | 22712 |  | 
 | 22713 | freebsd1*) | 
 | 22714 |   dynamic_linker=no | 
 | 22715 |   ;; | 
 | 22716 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22717 | kfreebsd*-gnu) | 
 | 22718 |   version_type=linux | 
 | 22719 |   need_lib_prefix=no | 
 | 22720 |   need_version=no | 
 | 22721 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 22722 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 22723 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 22724 |   shlibpath_overrides_runpath=no | 
 | 22725 |   hardcode_into_libs=yes | 
 | 22726 |   dynamic_linker='GNU ld.so' | 
 | 22727 |   ;; | 
 | 22728 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22729 | freebsd*) | 
 | 22730 |   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | 
 | 22731 |   version_type=freebsd-$objformat | 
 | 22732 |   case $version_type in | 
 | 22733 |     freebsd-elf*) | 
 | 22734 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 22735 |       need_version=no | 
 | 22736 |       need_lib_prefix=no | 
 | 22737 |       ;; | 
 | 22738 |     freebsd-*) | 
 | 22739 |       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
 | 22740 |       need_version=yes | 
 | 22741 |       ;; | 
 | 22742 |   esac | 
 | 22743 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 22744 |   case $host_os in | 
 | 22745 |   freebsd2*) | 
 | 22746 |     shlibpath_overrides_runpath=yes | 
 | 22747 |     ;; | 
 | 22748 |   freebsd3.01* | freebsdelf3.01*) | 
 | 22749 |     shlibpath_overrides_runpath=yes | 
 | 22750 |     hardcode_into_libs=yes | 
 | 22751 |     ;; | 
 | 22752 |   *) # from 3.2 on | 
 | 22753 |     shlibpath_overrides_runpath=no | 
 | 22754 |     hardcode_into_libs=yes | 
 | 22755 |     ;; | 
 | 22756 |   esac | 
 | 22757 |   ;; | 
 | 22758 |  | 
 | 22759 | gnu*) | 
 | 22760 |   version_type=linux | 
 | 22761 |   need_lib_prefix=no | 
 | 22762 |   need_version=no | 
 | 22763 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
 | 22764 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 22765 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 22766 |   hardcode_into_libs=yes | 
 | 22767 |   ;; | 
 | 22768 |  | 
 | 22769 | hpux9* | hpux10* | hpux11*) | 
 | 22770 |   # Give a soname corresponding to the major version so that dld.sl refuses to | 
 | 22771 |   # link against other versions. | 
 | 22772 |   version_type=sunos | 
 | 22773 |   need_lib_prefix=no | 
 | 22774 |   need_version=no | 
 | 22775 |   case "$host_cpu" in | 
 | 22776 |   ia64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22777 |     shrext_cmds='.so' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22778 |     hardcode_into_libs=yes | 
 | 22779 |     dynamic_linker="$host_os dld.so" | 
 | 22780 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 22781 |     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 22782 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 22783 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 22784 |     if test "X$HPUX_IA64_MODE" = X32; then | 
 | 22785 |       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
 | 22786 |     else | 
 | 22787 |       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
 | 22788 |     fi | 
 | 22789 |     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 22790 |     ;; | 
 | 22791 |    hppa*64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22792 |      shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22793 |      hardcode_into_libs=yes | 
 | 22794 |      dynamic_linker="$host_os dld.sl" | 
 | 22795 |      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
 | 22796 |      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 22797 |      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 22798 |      soname_spec='${libname}${release}${shared_ext}$major' | 
 | 22799 |      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
 | 22800 |      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 22801 |      ;; | 
 | 22802 |    *) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22803 |     shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22804 |     dynamic_linker="$host_os dld.sl" | 
 | 22805 |     shlibpath_var=SHLIB_PATH | 
 | 22806 |     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
 | 22807 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 22808 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 22809 |     ;; | 
 | 22810 |   esac | 
 | 22811 |   # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
 | 22812 |   postinstall_cmds='chmod 555 $lib' | 
 | 22813 |   ;; | 
 | 22814 |  | 
 | 22815 | irix5* | irix6* | nonstopux*) | 
 | 22816 |   case $host_os in | 
 | 22817 |     nonstopux*) version_type=nonstopux ;; | 
 | 22818 |     *) | 
 | 22819 | 	if test "$lt_cv_prog_gnu_ld" = yes; then | 
 | 22820 | 		version_type=linux | 
 | 22821 | 	else | 
 | 22822 | 		version_type=irix | 
 | 22823 | 	fi ;; | 
 | 22824 |   esac | 
 | 22825 |   need_lib_prefix=no | 
 | 22826 |   need_version=no | 
 | 22827 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 22828 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 22829 |   case $host_os in | 
 | 22830 |   irix5* | nonstopux*) | 
 | 22831 |     libsuff= shlibsuff= | 
 | 22832 |     ;; | 
 | 22833 |   *) | 
 | 22834 |     case $LD in # libtool.m4 will add one of these switches to LD | 
 | 22835 |     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
 | 22836 |       libsuff= shlibsuff= libmagic=32-bit;; | 
 | 22837 |     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
 | 22838 |       libsuff=32 shlibsuff=N32 libmagic=N32;; | 
 | 22839 |     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
 | 22840 |       libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
 | 22841 |     *) libsuff= shlibsuff= libmagic=never-match;; | 
 | 22842 |     esac | 
 | 22843 |     ;; | 
 | 22844 |   esac | 
 | 22845 |   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
 | 22846 |   shlibpath_overrides_runpath=no | 
 | 22847 |   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
 | 22848 |   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
 | 22849 |   hardcode_into_libs=yes | 
 | 22850 |   ;; | 
 | 22851 |  | 
 | 22852 | # No shared lib support for Linux oldld, aout, or coff. | 
 | 22853 | linux*oldld* | linux*aout* | linux*coff*) | 
 | 22854 |   dynamic_linker=no | 
 | 22855 |   ;; | 
 | 22856 |  | 
 | 22857 | # This must be Linux ELF. | 
 | 22858 | linux*) | 
 | 22859 |   version_type=linux | 
 | 22860 |   need_lib_prefix=no | 
 | 22861 |   need_version=no | 
 | 22862 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 22863 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 22864 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
 | 22865 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 22866 |   shlibpath_overrides_runpath=no | 
 | 22867 |   # This implies no fast_install, which is unacceptable. | 
 | 22868 |   # Some rework will be needed to allow for fast_install | 
 | 22869 |   # before this can be enabled. | 
 | 22870 |   hardcode_into_libs=yes | 
 | 22871 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22872 |   # Append ld.so.conf contents to the search path | 
 | 22873 |   if test -f /etc/ld.so.conf; then | 
 | 22874 |     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` | 
 | 22875 |     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 
 | 22876 |   fi | 
 | 22877 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22878 |   # We used to test for /lib/ld.so.1 and disable shared libraries on | 
 | 22879 |   # powerpc, because MkLinux only supported shared libraries with the | 
 | 22880 |   # GNU dynamic linker.  Since this was broken with cross compilers, | 
 | 22881 |   # most powerpc-linux boxes support dynamic linking these days and | 
 | 22882 |   # people can always --disable-shared, the test was removed, and we | 
 | 22883 |   # assume the GNU/Linux dynamic linker is in use. | 
 | 22884 |   dynamic_linker='GNU/Linux ld.so' | 
 | 22885 |   ;; | 
 | 22886 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22887 | knetbsd*-gnu) | 
 | 22888 |   version_type=linux | 
 | 22889 |   need_lib_prefix=no | 
 | 22890 |   need_version=no | 
 | 22891 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 22892 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 22893 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 22894 |   shlibpath_overrides_runpath=no | 
 | 22895 |   hardcode_into_libs=yes | 
 | 22896 |   dynamic_linker='GNU ld.so' | 
 | 22897 |   ;; | 
 | 22898 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22899 | netbsd*) | 
 | 22900 |   version_type=sunos | 
 | 22901 |   need_lib_prefix=no | 
 | 22902 |   need_version=no | 
 | 22903 |   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 22904 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 22905 |     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 22906 |     dynamic_linker='NetBSD (a.out) ld.so' | 
 | 22907 |   else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22908 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22909 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 22910 |     dynamic_linker='NetBSD ld.elf_so' | 
 | 22911 |   fi | 
 | 22912 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 22913 |   shlibpath_overrides_runpath=yes | 
 | 22914 |   hardcode_into_libs=yes | 
 | 22915 |   ;; | 
 | 22916 |  | 
 | 22917 | newsos6) | 
 | 22918 |   version_type=linux | 
 | 22919 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 22920 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 22921 |   shlibpath_overrides_runpath=yes | 
 | 22922 |   ;; | 
 | 22923 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22924 | nto-qnx*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22925 |   version_type=linux | 
 | 22926 |   need_lib_prefix=no | 
 | 22927 |   need_version=no | 
 | 22928 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 22929 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 22930 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 22931 |   shlibpath_overrides_runpath=yes | 
 | 22932 |   ;; | 
 | 22933 |  | 
 | 22934 | openbsd*) | 
 | 22935 |   version_type=sunos | 
 | 22936 |   need_lib_prefix=no | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 22937 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22938 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 22939 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 22940 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 22941 |   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 22942 |     case $host_os in | 
 | 22943 |       openbsd2.[89] | openbsd2.[89].*) | 
 | 22944 | 	shlibpath_overrides_runpath=no | 
 | 22945 | 	;; | 
 | 22946 |       *) | 
 | 22947 | 	shlibpath_overrides_runpath=yes | 
 | 22948 | 	;; | 
 | 22949 |       esac | 
 | 22950 |   else | 
 | 22951 |     shlibpath_overrides_runpath=yes | 
 | 22952 |   fi | 
 | 22953 |   ;; | 
 | 22954 |  | 
 | 22955 | os2*) | 
 | 22956 |   libname_spec='$name' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22957 |   shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22958 |   need_lib_prefix=no | 
 | 22959 |   library_names_spec='$libname${shared_ext} $libname.a' | 
 | 22960 |   dynamic_linker='OS/2 ld.exe' | 
 | 22961 |   shlibpath_var=LIBPATH | 
 | 22962 |   ;; | 
 | 22963 |  | 
 | 22964 | osf3* | osf4* | osf5*) | 
 | 22965 |   version_type=osf | 
 | 22966 |   need_lib_prefix=no | 
 | 22967 |   need_version=no | 
 | 22968 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 22969 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 22970 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 22971 |   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
 | 22972 |   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
 | 22973 |   ;; | 
 | 22974 |  | 
 | 22975 | sco3.2v5*) | 
 | 22976 |   version_type=osf | 
 | 22977 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 22978 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 22979 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 22980 |   ;; | 
 | 22981 |  | 
 | 22982 | solaris*) | 
 | 22983 |   version_type=linux | 
 | 22984 |   need_lib_prefix=no | 
 | 22985 |   need_version=no | 
 | 22986 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 22987 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 22988 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 22989 |   shlibpath_overrides_runpath=yes | 
 | 22990 |   hardcode_into_libs=yes | 
 | 22991 |   # ldd complains unless libraries are executable | 
 | 22992 |   postinstall_cmds='chmod +x $lib' | 
 | 22993 |   ;; | 
 | 22994 |  | 
 | 22995 | sunos4*) | 
 | 22996 |   version_type=sunos | 
 | 22997 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 22998 |   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
 | 22999 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 23000 |   shlibpath_overrides_runpath=yes | 
 | 23001 |   if test "$with_gnu_ld" = yes; then | 
 | 23002 |     need_lib_prefix=no | 
 | 23003 |   fi | 
 | 23004 |   need_version=yes | 
 | 23005 |   ;; | 
 | 23006 |  | 
 | 23007 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 23008 |   version_type=linux | 
 | 23009 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 23010 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 23011 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 23012 |   case $host_vendor in | 
 | 23013 |     sni) | 
 | 23014 |       shlibpath_overrides_runpath=no | 
 | 23015 |       need_lib_prefix=no | 
 | 23016 |       export_dynamic_flag_spec='${wl}-Blargedynsym' | 
 | 23017 |       runpath_var=LD_RUN_PATH | 
 | 23018 |       ;; | 
 | 23019 |     siemens) | 
 | 23020 |       need_lib_prefix=no | 
 | 23021 |       ;; | 
 | 23022 |     motorola) | 
 | 23023 |       need_lib_prefix=no | 
 | 23024 |       need_version=no | 
 | 23025 |       shlibpath_overrides_runpath=no | 
 | 23026 |       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
 | 23027 |       ;; | 
 | 23028 |   esac | 
 | 23029 |   ;; | 
 | 23030 |  | 
 | 23031 | sysv4*MP*) | 
 | 23032 |   if test -d /usr/nec ;then | 
 | 23033 |     version_type=linux | 
 | 23034 |     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
 | 23035 |     soname_spec='$libname${shared_ext}.$major' | 
 | 23036 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 23037 |   fi | 
 | 23038 |   ;; | 
 | 23039 |  | 
 | 23040 | uts4*) | 
 | 23041 |   version_type=linux | 
 | 23042 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 23043 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 23044 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 23045 |   ;; | 
 | 23046 |  | 
 | 23047 | *) | 
 | 23048 |   dynamic_linker=no | 
 | 23049 |   ;; | 
 | 23050 | esac | 
 | 23051 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
 | 23052 | echo "${ECHO_T}$dynamic_linker" >&6 | 
 | 23053 | test "$dynamic_linker" = no && can_build_shared=no | 
 | 23054 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23055 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 
 | 23056 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 
 | 23057 | hardcode_action_GCJ= | 
 | 23058 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ | 
 | 23059 |    test -n "$runpath_var_GCJ" || \ | 
 | 23060 |    test "X$hardcode_automatic_GCJ" = "Xyes" ; then | 
 | 23061 |  | 
 | 23062 |   # We can hardcode non-existant directories. | 
 | 23063 |   if test "$hardcode_direct_GCJ" != no && | 
 | 23064 |      # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
 | 23065 |      # have to relink, otherwise we might link with an installed library | 
 | 23066 |      # when we should be linking with a yet-to-be-installed one | 
 | 23067 |      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && | 
 | 23068 |      test "$hardcode_minus_L_GCJ" != no; then | 
 | 23069 |     # Linking always hardcodes the temporary library directory. | 
 | 23070 |     hardcode_action_GCJ=relink | 
 | 23071 |   else | 
 | 23072 |     # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
 | 23073 |     hardcode_action_GCJ=immediate | 
 | 23074 |   fi | 
 | 23075 | else | 
 | 23076 |   # We cannot hardcode anything, or else we can only hardcode existing | 
 | 23077 |   # directories. | 
 | 23078 |   hardcode_action_GCJ=unsupported | 
 | 23079 | fi | 
 | 23080 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 | 
 | 23081 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 | 
 | 23082 |  | 
 | 23083 | if test "$hardcode_action_GCJ" = relink; then | 
 | 23084 |   # Fast installation is not supported | 
 | 23085 |   enable_fast_install=no | 
 | 23086 | elif test "$shlibpath_overrides_runpath" = yes || | 
 | 23087 |      test "$enable_shared" = no; then | 
 | 23088 |   # Fast installation is not necessary | 
 | 23089 |   enable_fast_install=needless | 
 | 23090 | fi | 
 | 23091 |  | 
 | 23092 | striplib= | 
 | 23093 | old_striplib= | 
 | 23094 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | 
 | 23095 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | 
 | 23096 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 
 | 23097 |   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 
 | 23098 |   test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 
 | 23099 |   echo "$as_me:$LINENO: result: yes" >&5 | 
 | 23100 | echo "${ECHO_T}yes" >&6 | 
 | 23101 | else | 
 | 23102 | # FIXME - insert some real tests, host_os isn't really good enough | 
 | 23103 |   case $host_os in | 
 | 23104 |    darwin*) | 
 | 23105 |        if test -n "$STRIP" ; then | 
 | 23106 |          striplib="$STRIP -x" | 
 | 23107 |          echo "$as_me:$LINENO: result: yes" >&5 | 
 | 23108 | echo "${ECHO_T}yes" >&6 | 
 | 23109 |        else | 
 | 23110 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 23111 | echo "${ECHO_T}no" >&6 | 
 | 23112 | fi | 
 | 23113 |        ;; | 
 | 23114 |    *) | 
 | 23115 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 23116 | echo "${ECHO_T}no" >&6 | 
 | 23117 |     ;; | 
 | 23118 |   esac | 
 | 23119 | fi | 
 | 23120 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23121 | if test "x$enable_dlopen" != xyes; then | 
 | 23122 |   enable_dlopen=unknown | 
 | 23123 |   enable_dlopen_self=unknown | 
 | 23124 |   enable_dlopen_self_static=unknown | 
 | 23125 | else | 
 | 23126 |   lt_cv_dlopen=no | 
 | 23127 |   lt_cv_dlopen_libs= | 
 | 23128 |  | 
 | 23129 |   case $host_os in | 
 | 23130 |   beos*) | 
 | 23131 |     lt_cv_dlopen="load_add_on" | 
 | 23132 |     lt_cv_dlopen_libs= | 
 | 23133 |     lt_cv_dlopen_self=yes | 
 | 23134 |     ;; | 
 | 23135 |  | 
 | 23136 |   mingw* | pw32*) | 
 | 23137 |     lt_cv_dlopen="LoadLibrary" | 
 | 23138 |     lt_cv_dlopen_libs= | 
 | 23139 |    ;; | 
 | 23140 |  | 
 | 23141 |   cygwin*) | 
 | 23142 |     lt_cv_dlopen="dlopen" | 
 | 23143 |     lt_cv_dlopen_libs= | 
 | 23144 |    ;; | 
 | 23145 |  | 
 | 23146 |   darwin*) | 
 | 23147 |   # if libdl is installed we need to link against it | 
 | 23148 |     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
 | 23149 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
 | 23150 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
 | 23151 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 23152 | else | 
 | 23153 |   ac_check_lib_save_LIBS=$LIBS | 
 | 23154 | LIBS="-ldl  $LIBS" | 
 | 23155 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23156 | /* confdefs.h.  */ | 
 | 23157 | _ACEOF | 
 | 23158 | cat confdefs.h >>conftest.$ac_ext | 
 | 23159 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 23160 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23161 |  | 
 | 23162 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 23163 | #ifdef __cplusplus | 
 | 23164 | extern "C" | 
 | 23165 | #endif | 
 | 23166 | /* We use char because int might match the return type of a gcc2 | 
 | 23167 |    builtin and then its argument prototype would still apply.  */ | 
 | 23168 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23169 | int | 
 | 23170 | main () | 
 | 23171 | { | 
 | 23172 | dlopen (); | 
 | 23173 |   ; | 
 | 23174 |   return 0; | 
 | 23175 | } | 
 | 23176 | _ACEOF | 
 | 23177 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 23178 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23179 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23180 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23181 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 23182 |   rm -f conftest.er1 | 
 | 23183 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23184 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23185 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23186 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 23187 | 			 || test ! -s conftest.err' | 
 | 23188 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23189 |   (eval $ac_try) 2>&5 | 
 | 23190 |   ac_status=$? | 
 | 23191 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23192 |   (exit $ac_status); }; } && | 
 | 23193 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23194 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23195 |   (eval $ac_try) 2>&5 | 
 | 23196 |   ac_status=$? | 
 | 23197 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23198 |   (exit $ac_status); }; }; then | 
 | 23199 |   ac_cv_lib_dl_dlopen=yes | 
 | 23200 | else | 
 | 23201 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23202 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 23203 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23204 | ac_cv_lib_dl_dlopen=no | 
 | 23205 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23206 | rm -f conftest.err conftest.$ac_objext \ | 
 | 23207 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23208 | LIBS=$ac_check_lib_save_LIBS | 
 | 23209 | fi | 
 | 23210 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 23211 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
 | 23212 | if test $ac_cv_lib_dl_dlopen = yes; then | 
 | 23213 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
 | 23214 | else | 
 | 23215 |  | 
 | 23216 |     lt_cv_dlopen="dyld" | 
 | 23217 |     lt_cv_dlopen_libs= | 
 | 23218 |     lt_cv_dlopen_self=yes | 
 | 23219 |  | 
 | 23220 | fi | 
 | 23221 |  | 
 | 23222 |    ;; | 
 | 23223 |  | 
 | 23224 |   *) | 
 | 23225 |     echo "$as_me:$LINENO: checking for shl_load" >&5 | 
 | 23226 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | 
 | 23227 | if test "${ac_cv_func_shl_load+set}" = set; then | 
 | 23228 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 23229 | else | 
 | 23230 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23231 | /* confdefs.h.  */ | 
 | 23232 | _ACEOF | 
 | 23233 | cat confdefs.h >>conftest.$ac_ext | 
 | 23234 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 23235 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23236 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | 
 | 23237 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 23238 | #define shl_load innocuous_shl_load | 
 | 23239 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23240 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23241 |     which can conflict with char shl_load (); below. | 
 | 23242 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 23243 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23244 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23245 | #ifdef __STDC__ | 
 | 23246 | # include <limits.h> | 
 | 23247 | #else | 
 | 23248 | # include <assert.h> | 
 | 23249 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23250 |  | 
 | 23251 | #undef shl_load | 
 | 23252 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23253 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 23254 | #ifdef __cplusplus | 
 | 23255 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23256 | { | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23257 | #endif | 
 | 23258 | /* We use char because int might match the return type of a gcc2 | 
 | 23259 |    builtin and then its argument prototype would still apply.  */ | 
 | 23260 | char shl_load (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23261 | /* The GNU C library defines this for functions which it implements | 
 | 23262 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 23263 |     something starting with __ and the normal name is an alias.  */ | 
 | 23264 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | 
 | 23265 | choke me | 
 | 23266 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23267 | char (*f) () = shl_load; | 
 | 23268 | #endif | 
 | 23269 | #ifdef __cplusplus | 
 | 23270 | } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23271 | #endif | 
 | 23272 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23273 | int | 
 | 23274 | main () | 
 | 23275 | { | 
 | 23276 | return f != shl_load; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23277 |   ; | 
 | 23278 |   return 0; | 
 | 23279 | } | 
 | 23280 | _ACEOF | 
 | 23281 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 23282 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23283 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23284 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23285 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 23286 |   rm -f conftest.er1 | 
 | 23287 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23288 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23289 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23290 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 23291 | 			 || test ! -s conftest.err' | 
 | 23292 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23293 |   (eval $ac_try) 2>&5 | 
 | 23294 |   ac_status=$? | 
 | 23295 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23296 |   (exit $ac_status); }; } && | 
 | 23297 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23298 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23299 |   (eval $ac_try) 2>&5 | 
 | 23300 |   ac_status=$? | 
 | 23301 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23302 |   (exit $ac_status); }; }; then | 
 | 23303 |   ac_cv_func_shl_load=yes | 
 | 23304 | else | 
 | 23305 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23306 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 23307 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23308 | ac_cv_func_shl_load=no | 
 | 23309 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23310 | rm -f conftest.err conftest.$ac_objext \ | 
 | 23311 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23312 | fi | 
 | 23313 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | 
 | 23314 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | 
 | 23315 | if test $ac_cv_func_shl_load = yes; then | 
 | 23316 |   lt_cv_dlopen="shl_load" | 
 | 23317 | else | 
 | 23318 |   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | 
 | 23319 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | 
 | 23320 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | 
 | 23321 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 23322 | else | 
 | 23323 |   ac_check_lib_save_LIBS=$LIBS | 
 | 23324 | LIBS="-ldld  $LIBS" | 
 | 23325 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23326 | /* confdefs.h.  */ | 
 | 23327 | _ACEOF | 
 | 23328 | cat confdefs.h >>conftest.$ac_ext | 
 | 23329 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 23330 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23331 |  | 
 | 23332 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 23333 | #ifdef __cplusplus | 
 | 23334 | extern "C" | 
 | 23335 | #endif | 
 | 23336 | /* We use char because int might match the return type of a gcc2 | 
 | 23337 |    builtin and then its argument prototype would still apply.  */ | 
 | 23338 | char shl_load (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23339 | int | 
 | 23340 | main () | 
 | 23341 | { | 
 | 23342 | shl_load (); | 
 | 23343 |   ; | 
 | 23344 |   return 0; | 
 | 23345 | } | 
 | 23346 | _ACEOF | 
 | 23347 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 23348 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23349 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23350 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23351 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 23352 |   rm -f conftest.er1 | 
 | 23353 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23354 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23355 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23356 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 23357 | 			 || test ! -s conftest.err' | 
 | 23358 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23359 |   (eval $ac_try) 2>&5 | 
 | 23360 |   ac_status=$? | 
 | 23361 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23362 |   (exit $ac_status); }; } && | 
 | 23363 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23364 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23365 |   (eval $ac_try) 2>&5 | 
 | 23366 |   ac_status=$? | 
 | 23367 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23368 |   (exit $ac_status); }; }; then | 
 | 23369 |   ac_cv_lib_dld_shl_load=yes | 
 | 23370 | else | 
 | 23371 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23372 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 23373 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23374 | ac_cv_lib_dld_shl_load=no | 
 | 23375 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23376 | rm -f conftest.err conftest.$ac_objext \ | 
 | 23377 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23378 | LIBS=$ac_check_lib_save_LIBS | 
 | 23379 | fi | 
 | 23380 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | 
 | 23381 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | 
 | 23382 | if test $ac_cv_lib_dld_shl_load = yes; then | 
 | 23383 |   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | 
 | 23384 | else | 
 | 23385 |   echo "$as_me:$LINENO: checking for dlopen" >&5 | 
 | 23386 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | 
 | 23387 | if test "${ac_cv_func_dlopen+set}" = set; then | 
 | 23388 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 23389 | else | 
 | 23390 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23391 | /* confdefs.h.  */ | 
 | 23392 | _ACEOF | 
 | 23393 | cat confdefs.h >>conftest.$ac_ext | 
 | 23394 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 23395 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23396 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | 
 | 23397 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 23398 | #define dlopen innocuous_dlopen | 
 | 23399 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23400 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23401 |     which can conflict with char dlopen (); below. | 
 | 23402 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 23403 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23404 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23405 | #ifdef __STDC__ | 
 | 23406 | # include <limits.h> | 
 | 23407 | #else | 
 | 23408 | # include <assert.h> | 
 | 23409 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23410 |  | 
 | 23411 | #undef dlopen | 
 | 23412 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23413 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 23414 | #ifdef __cplusplus | 
 | 23415 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23416 | { | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23417 | #endif | 
 | 23418 | /* We use char because int might match the return type of a gcc2 | 
 | 23419 |    builtin and then its argument prototype would still apply.  */ | 
 | 23420 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23421 | /* The GNU C library defines this for functions which it implements | 
 | 23422 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 23423 |     something starting with __ and the normal name is an alias.  */ | 
 | 23424 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | 
 | 23425 | choke me | 
 | 23426 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23427 | char (*f) () = dlopen; | 
 | 23428 | #endif | 
 | 23429 | #ifdef __cplusplus | 
 | 23430 | } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23431 | #endif | 
 | 23432 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23433 | int | 
 | 23434 | main () | 
 | 23435 | { | 
 | 23436 | return f != dlopen; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23437 |   ; | 
 | 23438 |   return 0; | 
 | 23439 | } | 
 | 23440 | _ACEOF | 
 | 23441 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 23442 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23443 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23444 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23445 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 23446 |   rm -f conftest.er1 | 
 | 23447 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23448 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23449 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23450 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 23451 | 			 || test ! -s conftest.err' | 
 | 23452 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23453 |   (eval $ac_try) 2>&5 | 
 | 23454 |   ac_status=$? | 
 | 23455 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23456 |   (exit $ac_status); }; } && | 
 | 23457 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23458 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23459 |   (eval $ac_try) 2>&5 | 
 | 23460 |   ac_status=$? | 
 | 23461 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23462 |   (exit $ac_status); }; }; then | 
 | 23463 |   ac_cv_func_dlopen=yes | 
 | 23464 | else | 
 | 23465 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23466 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 23467 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23468 | ac_cv_func_dlopen=no | 
 | 23469 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23470 | rm -f conftest.err conftest.$ac_objext \ | 
 | 23471 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23472 | fi | 
 | 23473 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | 
 | 23474 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | 
 | 23475 | if test $ac_cv_func_dlopen = yes; then | 
 | 23476 |   lt_cv_dlopen="dlopen" | 
 | 23477 | else | 
 | 23478 |   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
 | 23479 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
 | 23480 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
 | 23481 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 23482 | else | 
 | 23483 |   ac_check_lib_save_LIBS=$LIBS | 
 | 23484 | LIBS="-ldl  $LIBS" | 
 | 23485 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23486 | /* confdefs.h.  */ | 
 | 23487 | _ACEOF | 
 | 23488 | cat confdefs.h >>conftest.$ac_ext | 
 | 23489 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 23490 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23491 |  | 
 | 23492 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 23493 | #ifdef __cplusplus | 
 | 23494 | extern "C" | 
 | 23495 | #endif | 
 | 23496 | /* We use char because int might match the return type of a gcc2 | 
 | 23497 |    builtin and then its argument prototype would still apply.  */ | 
 | 23498 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23499 | int | 
 | 23500 | main () | 
 | 23501 | { | 
 | 23502 | dlopen (); | 
 | 23503 |   ; | 
 | 23504 |   return 0; | 
 | 23505 | } | 
 | 23506 | _ACEOF | 
 | 23507 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 23508 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23509 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23510 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23511 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 23512 |   rm -f conftest.er1 | 
 | 23513 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23514 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23515 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23516 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 23517 | 			 || test ! -s conftest.err' | 
 | 23518 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23519 |   (eval $ac_try) 2>&5 | 
 | 23520 |   ac_status=$? | 
 | 23521 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23522 |   (exit $ac_status); }; } && | 
 | 23523 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23524 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23525 |   (eval $ac_try) 2>&5 | 
 | 23526 |   ac_status=$? | 
 | 23527 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23528 |   (exit $ac_status); }; }; then | 
 | 23529 |   ac_cv_lib_dl_dlopen=yes | 
 | 23530 | else | 
 | 23531 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23532 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 23533 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23534 | ac_cv_lib_dl_dlopen=no | 
 | 23535 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23536 | rm -f conftest.err conftest.$ac_objext \ | 
 | 23537 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23538 | LIBS=$ac_check_lib_save_LIBS | 
 | 23539 | fi | 
 | 23540 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 23541 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
 | 23542 | if test $ac_cv_lib_dl_dlopen = yes; then | 
 | 23543 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
 | 23544 | else | 
 | 23545 |   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | 
 | 23546 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | 
 | 23547 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | 
 | 23548 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 23549 | else | 
 | 23550 |   ac_check_lib_save_LIBS=$LIBS | 
 | 23551 | LIBS="-lsvld  $LIBS" | 
 | 23552 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23553 | /* confdefs.h.  */ | 
 | 23554 | _ACEOF | 
 | 23555 | cat confdefs.h >>conftest.$ac_ext | 
 | 23556 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 23557 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23558 |  | 
 | 23559 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 23560 | #ifdef __cplusplus | 
 | 23561 | extern "C" | 
 | 23562 | #endif | 
 | 23563 | /* We use char because int might match the return type of a gcc2 | 
 | 23564 |    builtin and then its argument prototype would still apply.  */ | 
 | 23565 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23566 | int | 
 | 23567 | main () | 
 | 23568 | { | 
 | 23569 | dlopen (); | 
 | 23570 |   ; | 
 | 23571 |   return 0; | 
 | 23572 | } | 
 | 23573 | _ACEOF | 
 | 23574 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 23575 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23576 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23577 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23578 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 23579 |   rm -f conftest.er1 | 
 | 23580 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23581 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23582 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23583 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 23584 | 			 || test ! -s conftest.err' | 
 | 23585 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23586 |   (eval $ac_try) 2>&5 | 
 | 23587 |   ac_status=$? | 
 | 23588 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23589 |   (exit $ac_status); }; } && | 
 | 23590 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23591 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23592 |   (eval $ac_try) 2>&5 | 
 | 23593 |   ac_status=$? | 
 | 23594 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23595 |   (exit $ac_status); }; }; then | 
 | 23596 |   ac_cv_lib_svld_dlopen=yes | 
 | 23597 | else | 
 | 23598 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23599 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 23600 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23601 | ac_cv_lib_svld_dlopen=no | 
 | 23602 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23603 | rm -f conftest.err conftest.$ac_objext \ | 
 | 23604 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23605 | LIBS=$ac_check_lib_save_LIBS | 
 | 23606 | fi | 
 | 23607 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | 
 | 23608 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | 
 | 23609 | if test $ac_cv_lib_svld_dlopen = yes; then | 
 | 23610 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | 
 | 23611 | else | 
 | 23612 |   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | 
 | 23613 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | 
 | 23614 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | 
 | 23615 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 23616 | else | 
 | 23617 |   ac_check_lib_save_LIBS=$LIBS | 
 | 23618 | LIBS="-ldld  $LIBS" | 
 | 23619 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23620 | /* confdefs.h.  */ | 
 | 23621 | _ACEOF | 
 | 23622 | cat confdefs.h >>conftest.$ac_ext | 
 | 23623 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 23624 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23625 |  | 
 | 23626 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 23627 | #ifdef __cplusplus | 
 | 23628 | extern "C" | 
 | 23629 | #endif | 
 | 23630 | /* We use char because int might match the return type of a gcc2 | 
 | 23631 |    builtin and then its argument prototype would still apply.  */ | 
 | 23632 | char dld_link (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23633 | int | 
 | 23634 | main () | 
 | 23635 | { | 
 | 23636 | dld_link (); | 
 | 23637 |   ; | 
 | 23638 |   return 0; | 
 | 23639 | } | 
 | 23640 | _ACEOF | 
 | 23641 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 23642 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23643 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23644 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23645 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 23646 |   rm -f conftest.er1 | 
 | 23647 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23648 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23649 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23650 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 23651 | 			 || test ! -s conftest.err' | 
 | 23652 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23653 |   (eval $ac_try) 2>&5 | 
 | 23654 |   ac_status=$? | 
 | 23655 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23656 |   (exit $ac_status); }; } && | 
 | 23657 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23658 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23659 |   (eval $ac_try) 2>&5 | 
 | 23660 |   ac_status=$? | 
 | 23661 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23662 |   (exit $ac_status); }; }; then | 
 | 23663 |   ac_cv_lib_dld_dld_link=yes | 
 | 23664 | else | 
 | 23665 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23666 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 23667 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23668 | ac_cv_lib_dld_dld_link=no | 
 | 23669 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23670 | rm -f conftest.err conftest.$ac_objext \ | 
 | 23671 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23672 | LIBS=$ac_check_lib_save_LIBS | 
 | 23673 | fi | 
 | 23674 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | 
 | 23675 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | 
 | 23676 | if test $ac_cv_lib_dld_dld_link = yes; then | 
 | 23677 |   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | 
 | 23678 | fi | 
 | 23679 |  | 
 | 23680 |  | 
 | 23681 | fi | 
 | 23682 |  | 
 | 23683 |  | 
 | 23684 | fi | 
 | 23685 |  | 
 | 23686 |  | 
 | 23687 | fi | 
 | 23688 |  | 
 | 23689 |  | 
 | 23690 | fi | 
 | 23691 |  | 
 | 23692 |  | 
 | 23693 | fi | 
 | 23694 |  | 
 | 23695 |     ;; | 
 | 23696 |   esac | 
 | 23697 |  | 
 | 23698 |   if test "x$lt_cv_dlopen" != xno; then | 
 | 23699 |     enable_dlopen=yes | 
 | 23700 |   else | 
 | 23701 |     enable_dlopen=no | 
 | 23702 |   fi | 
 | 23703 |  | 
 | 23704 |   case $lt_cv_dlopen in | 
 | 23705 |   dlopen) | 
 | 23706 |     save_CPPFLAGS="$CPPFLAGS" | 
 | 23707 |     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | 
 | 23708 |  | 
 | 23709 |     save_LDFLAGS="$LDFLAGS" | 
 | 23710 |     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | 
 | 23711 |  | 
 | 23712 |     save_LIBS="$LIBS" | 
 | 23713 |     LIBS="$lt_cv_dlopen_libs $LIBS" | 
 | 23714 |  | 
 | 23715 |     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | 
 | 23716 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | 
 | 23717 | if test "${lt_cv_dlopen_self+set}" = set; then | 
 | 23718 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 23719 | else | 
 | 23720 |   	  if test "$cross_compiling" = yes; then : | 
 | 23721 |   lt_cv_dlopen_self=cross | 
 | 23722 | else | 
 | 23723 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
 | 23724 |   lt_status=$lt_dlunknown | 
 | 23725 |   cat > conftest.$ac_ext <<EOF | 
| Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 23726 | #line 23726 "configure" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23727 | #include "confdefs.h" | 
 | 23728 |  | 
 | 23729 | #if HAVE_DLFCN_H | 
 | 23730 | #include <dlfcn.h> | 
 | 23731 | #endif | 
 | 23732 |  | 
 | 23733 | #include <stdio.h> | 
 | 23734 |  | 
 | 23735 | #ifdef RTLD_GLOBAL | 
 | 23736 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 23737 | #else | 
 | 23738 | #  ifdef DL_GLOBAL | 
 | 23739 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 23740 | #  else | 
 | 23741 | #    define LT_DLGLOBAL		0 | 
 | 23742 | #  endif | 
 | 23743 | #endif | 
 | 23744 |  | 
 | 23745 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 23746 |    find out it does not work in some platform. */ | 
 | 23747 | #ifndef LT_DLLAZY_OR_NOW | 
 | 23748 | #  ifdef RTLD_LAZY | 
 | 23749 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 23750 | #  else | 
 | 23751 | #    ifdef DL_LAZY | 
 | 23752 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 23753 | #    else | 
 | 23754 | #      ifdef RTLD_NOW | 
 | 23755 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 23756 | #      else | 
 | 23757 | #        ifdef DL_NOW | 
 | 23758 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 23759 | #        else | 
 | 23760 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 23761 | #        endif | 
 | 23762 | #      endif | 
 | 23763 | #    endif | 
 | 23764 | #  endif | 
 | 23765 | #endif | 
 | 23766 |  | 
 | 23767 | #ifdef __cplusplus | 
 | 23768 | extern "C" void exit (int); | 
 | 23769 | #endif | 
 | 23770 |  | 
 | 23771 | void fnord() { int i=42;} | 
 | 23772 | int main () | 
 | 23773 | { | 
 | 23774 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 23775 |   int status = $lt_dlunknown; | 
 | 23776 |  | 
 | 23777 |   if (self) | 
 | 23778 |     { | 
 | 23779 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
 | 23780 |       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
 | 23781 |       /* dlclose (self); */ | 
 | 23782 |     } | 
 | 23783 |  | 
 | 23784 |     exit (status); | 
 | 23785 | } | 
 | 23786 | EOF | 
 | 23787 |   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 23788 |   (eval $ac_link) 2>&5 | 
 | 23789 |   ac_status=$? | 
 | 23790 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23791 |   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
 | 23792 |     (./conftest; exit; ) 2>/dev/null | 
 | 23793 |     lt_status=$? | 
 | 23794 |     case x$lt_status in | 
 | 23795 |       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | 
 | 23796 |       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | 
 | 23797 |       x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | 
 | 23798 |     esac | 
 | 23799 |   else : | 
 | 23800 |     # compilation failed | 
 | 23801 |     lt_cv_dlopen_self=no | 
 | 23802 |   fi | 
 | 23803 | fi | 
 | 23804 | rm -fr conftest* | 
 | 23805 |  | 
 | 23806 |  | 
 | 23807 | fi | 
 | 23808 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | 
 | 23809 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | 
 | 23810 |  | 
 | 23811 |     if test "x$lt_cv_dlopen_self" = xyes; then | 
 | 23812 |       LDFLAGS="$LDFLAGS $link_static_flag" | 
 | 23813 |       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | 
 | 23814 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | 
 | 23815 | if test "${lt_cv_dlopen_self_static+set}" = set; then | 
 | 23816 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 23817 | else | 
 | 23818 |   	  if test "$cross_compiling" = yes; then : | 
 | 23819 |   lt_cv_dlopen_self_static=cross | 
 | 23820 | else | 
 | 23821 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
 | 23822 |   lt_status=$lt_dlunknown | 
 | 23823 |   cat > conftest.$ac_ext <<EOF | 
| Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 23824 | #line 23824 "configure" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23825 | #include "confdefs.h" | 
 | 23826 |  | 
 | 23827 | #if HAVE_DLFCN_H | 
 | 23828 | #include <dlfcn.h> | 
 | 23829 | #endif | 
 | 23830 |  | 
 | 23831 | #include <stdio.h> | 
 | 23832 |  | 
 | 23833 | #ifdef RTLD_GLOBAL | 
 | 23834 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 23835 | #else | 
 | 23836 | #  ifdef DL_GLOBAL | 
 | 23837 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 23838 | #  else | 
 | 23839 | #    define LT_DLGLOBAL		0 | 
 | 23840 | #  endif | 
 | 23841 | #endif | 
 | 23842 |  | 
 | 23843 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 23844 |    find out it does not work in some platform. */ | 
 | 23845 | #ifndef LT_DLLAZY_OR_NOW | 
 | 23846 | #  ifdef RTLD_LAZY | 
 | 23847 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 23848 | #  else | 
 | 23849 | #    ifdef DL_LAZY | 
 | 23850 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 23851 | #    else | 
 | 23852 | #      ifdef RTLD_NOW | 
 | 23853 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 23854 | #      else | 
 | 23855 | #        ifdef DL_NOW | 
 | 23856 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 23857 | #        else | 
 | 23858 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 23859 | #        endif | 
 | 23860 | #      endif | 
 | 23861 | #    endif | 
 | 23862 | #  endif | 
 | 23863 | #endif | 
 | 23864 |  | 
 | 23865 | #ifdef __cplusplus | 
 | 23866 | extern "C" void exit (int); | 
 | 23867 | #endif | 
 | 23868 |  | 
 | 23869 | void fnord() { int i=42;} | 
 | 23870 | int main () | 
 | 23871 | { | 
 | 23872 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 23873 |   int status = $lt_dlunknown; | 
 | 23874 |  | 
 | 23875 |   if (self) | 
 | 23876 |     { | 
 | 23877 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
 | 23878 |       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
 | 23879 |       /* dlclose (self); */ | 
 | 23880 |     } | 
 | 23881 |  | 
 | 23882 |     exit (status); | 
 | 23883 | } | 
 | 23884 | EOF | 
 | 23885 |   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 23886 |   (eval $ac_link) 2>&5 | 
 | 23887 |   ac_status=$? | 
 | 23888 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23889 |   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
 | 23890 |     (./conftest; exit; ) 2>/dev/null | 
 | 23891 |     lt_status=$? | 
 | 23892 |     case x$lt_status in | 
 | 23893 |       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | 
 | 23894 |       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | 
 | 23895 |       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | 
 | 23896 |     esac | 
 | 23897 |   else : | 
 | 23898 |     # compilation failed | 
 | 23899 |     lt_cv_dlopen_self_static=no | 
 | 23900 |   fi | 
 | 23901 | fi | 
 | 23902 | rm -fr conftest* | 
 | 23903 |  | 
 | 23904 |  | 
 | 23905 | fi | 
 | 23906 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | 
 | 23907 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | 
 | 23908 |     fi | 
 | 23909 |  | 
 | 23910 |     CPPFLAGS="$save_CPPFLAGS" | 
 | 23911 |     LDFLAGS="$save_LDFLAGS" | 
 | 23912 |     LIBS="$save_LIBS" | 
 | 23913 |     ;; | 
 | 23914 |   esac | 
 | 23915 |  | 
 | 23916 |   case $lt_cv_dlopen_self in | 
 | 23917 |   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | 
 | 23918 |   *) enable_dlopen_self=unknown ;; | 
 | 23919 |   esac | 
 | 23920 |  | 
 | 23921 |   case $lt_cv_dlopen_self_static in | 
 | 23922 |   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | 
 | 23923 |   *) enable_dlopen_self_static=unknown ;; | 
 | 23924 |   esac | 
 | 23925 | fi | 
 | 23926 |  | 
 | 23927 |  | 
 | 23928 | # The else clause should only fire when bootstrapping the | 
 | 23929 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
 | 23930 | # with your package, and you will get complaints that there are | 
 | 23931 | # no rules to generate ltmain.sh. | 
 | 23932 | if test -f "$ltmain"; then | 
 | 23933 |   # See if we are running on zsh, and set the options which allow our commands through | 
 | 23934 |   # without removal of \ escapes. | 
 | 23935 |   if test -n "${ZSH_VERSION+set}" ; then | 
 | 23936 |     setopt NO_GLOB_SUBST | 
 | 23937 |   fi | 
 | 23938 |   # Now quote all the things that may contain metacharacters while being | 
 | 23939 |   # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
 | 23940 |   # variables and quote the copies for generation of the libtool script. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23941 |   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | 
 | 23942 |     SED SHELL STRIP \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23943 |     libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
 | 23944 |     old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
 | 23945 |     deplibs_check_method reload_flag reload_cmds need_locks \ | 
 | 23946 |     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
 | 23947 |     lt_cv_sys_global_symbol_to_c_name_address \ | 
 | 23948 |     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
 | 23949 |     old_postinstall_cmds old_postuninstall_cmds \ | 
 | 23950 |     compiler_GCJ \ | 
 | 23951 |     CC_GCJ \ | 
 | 23952 |     LD_GCJ \ | 
 | 23953 |     lt_prog_compiler_wl_GCJ \ | 
 | 23954 |     lt_prog_compiler_pic_GCJ \ | 
 | 23955 |     lt_prog_compiler_static_GCJ \ | 
 | 23956 |     lt_prog_compiler_no_builtin_flag_GCJ \ | 
 | 23957 |     export_dynamic_flag_spec_GCJ \ | 
 | 23958 |     thread_safe_flag_spec_GCJ \ | 
 | 23959 |     whole_archive_flag_spec_GCJ \ | 
 | 23960 |     enable_shared_with_static_runtimes_GCJ \ | 
 | 23961 |     old_archive_cmds_GCJ \ | 
 | 23962 |     old_archive_from_new_cmds_GCJ \ | 
 | 23963 |     predep_objects_GCJ \ | 
 | 23964 |     postdep_objects_GCJ \ | 
 | 23965 |     predeps_GCJ \ | 
 | 23966 |     postdeps_GCJ \ | 
 | 23967 |     compiler_lib_search_path_GCJ \ | 
 | 23968 |     archive_cmds_GCJ \ | 
 | 23969 |     archive_expsym_cmds_GCJ \ | 
 | 23970 |     postinstall_cmds_GCJ \ | 
 | 23971 |     postuninstall_cmds_GCJ \ | 
 | 23972 |     old_archive_from_expsyms_cmds_GCJ \ | 
 | 23973 |     allow_undefined_flag_GCJ \ | 
 | 23974 |     no_undefined_flag_GCJ \ | 
 | 23975 |     export_symbols_cmds_GCJ \ | 
 | 23976 |     hardcode_libdir_flag_spec_GCJ \ | 
 | 23977 |     hardcode_libdir_flag_spec_ld_GCJ \ | 
 | 23978 |     hardcode_libdir_separator_GCJ \ | 
 | 23979 |     hardcode_automatic_GCJ \ | 
 | 23980 |     module_cmds_GCJ \ | 
 | 23981 |     module_expsym_cmds_GCJ \ | 
 | 23982 |     lt_cv_prog_compiler_c_o_GCJ \ | 
 | 23983 |     exclude_expsyms_GCJ \ | 
 | 23984 |     include_expsyms_GCJ; do | 
 | 23985 |  | 
 | 23986 |     case $var in | 
 | 23987 |     old_archive_cmds_GCJ | \ | 
 | 23988 |     old_archive_from_new_cmds_GCJ | \ | 
 | 23989 |     archive_cmds_GCJ | \ | 
 | 23990 |     archive_expsym_cmds_GCJ | \ | 
 | 23991 |     module_cmds_GCJ | \ | 
 | 23992 |     module_expsym_cmds_GCJ | \ | 
 | 23993 |     old_archive_from_expsyms_cmds_GCJ | \ | 
 | 23994 |     export_symbols_cmds_GCJ | \ | 
 | 23995 |     extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
 | 23996 |     postinstall_cmds | postuninstall_cmds | \ | 
 | 23997 |     old_postinstall_cmds | old_postuninstall_cmds | \ | 
 | 23998 |     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
 | 23999 |       # Double-quote double-evaled strings. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24000 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24001 |       ;; | 
 | 24002 |     *) | 
 | 24003 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
 | 24004 |       ;; | 
 | 24005 |     esac | 
 | 24006 |   done | 
 | 24007 |  | 
 | 24008 |   case $lt_echo in | 
 | 24009 |   *'\$0 --fallback-echo"') | 
 | 24010 |     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
 | 24011 |     ;; | 
 | 24012 |   esac | 
 | 24013 |  | 
 | 24014 | cfgfile="$ofile" | 
 | 24015 |  | 
 | 24016 |   cat <<__EOF__ >> "$cfgfile" | 
 | 24017 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | 
 | 24018 |  | 
 | 24019 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
 | 24020 |  | 
 | 24021 | # Shell to use when invoking shell scripts. | 
 | 24022 | SHELL=$lt_SHELL | 
 | 24023 |  | 
 | 24024 | # Whether or not to build shared libraries. | 
 | 24025 | build_libtool_libs=$enable_shared | 
 | 24026 |  | 
 | 24027 | # Whether or not to build static libraries. | 
 | 24028 | build_old_libs=$enable_static | 
 | 24029 |  | 
 | 24030 | # Whether or not to add -lc for building shared libraries. | 
 | 24031 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ | 
 | 24032 |  | 
 | 24033 | # Whether or not to disallow shared libs when runtime libs are static | 
 | 24034 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ | 
 | 24035 |  | 
 | 24036 | # Whether or not to optimize for fast installation. | 
 | 24037 | fast_install=$enable_fast_install | 
 | 24038 |  | 
 | 24039 | # The host system. | 
 | 24040 | host_alias=$host_alias | 
 | 24041 | host=$host | 
 | 24042 |  | 
 | 24043 | # An echo program that does not interpret backslashes. | 
 | 24044 | echo=$lt_echo | 
 | 24045 |  | 
 | 24046 | # The archiver. | 
 | 24047 | AR=$lt_AR | 
 | 24048 | AR_FLAGS=$lt_AR_FLAGS | 
 | 24049 |  | 
 | 24050 | # A C compiler. | 
 | 24051 | LTCC=$lt_LTCC | 
 | 24052 |  | 
 | 24053 | # A language-specific compiler. | 
 | 24054 | CC=$lt_compiler_GCJ | 
 | 24055 |  | 
 | 24056 | # Is the compiler the GNU C compiler? | 
 | 24057 | with_gcc=$GCC_GCJ | 
 | 24058 |  | 
 | 24059 | # An ERE matcher. | 
 | 24060 | EGREP=$lt_EGREP | 
 | 24061 |  | 
 | 24062 | # The linker used to build libraries. | 
 | 24063 | LD=$lt_LD_GCJ | 
 | 24064 |  | 
 | 24065 | # Whether we need hard or soft links. | 
 | 24066 | LN_S=$lt_LN_S | 
 | 24067 |  | 
 | 24068 | # A BSD-compatible nm program. | 
 | 24069 | NM=$lt_NM | 
 | 24070 |  | 
 | 24071 | # A symbol stripping program | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24072 | STRIP=$lt_STRIP | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24073 |  | 
 | 24074 | # Used to examine libraries when file_magic_cmd begins "file" | 
 | 24075 | MAGIC_CMD=$MAGIC_CMD | 
 | 24076 |  | 
 | 24077 | # Used on cygwin: DLL creation program. | 
 | 24078 | DLLTOOL="$DLLTOOL" | 
 | 24079 |  | 
 | 24080 | # Used on cygwin: object dumper. | 
 | 24081 | OBJDUMP="$OBJDUMP" | 
 | 24082 |  | 
 | 24083 | # Used on cygwin: assembler. | 
 | 24084 | AS="$AS" | 
 | 24085 |  | 
 | 24086 | # The name of the directory that contains temporary libtool files. | 
 | 24087 | objdir=$objdir | 
 | 24088 |  | 
 | 24089 | # How to create reloadable object files. | 
 | 24090 | reload_flag=$lt_reload_flag | 
 | 24091 | reload_cmds=$lt_reload_cmds | 
 | 24092 |  | 
 | 24093 | # How to pass a linker flag through the compiler. | 
 | 24094 | wl=$lt_lt_prog_compiler_wl_GCJ | 
 | 24095 |  | 
 | 24096 | # Object file suffix (normally "o"). | 
 | 24097 | objext="$ac_objext" | 
 | 24098 |  | 
 | 24099 | # Old archive suffix (normally "a"). | 
 | 24100 | libext="$libext" | 
 | 24101 |  | 
 | 24102 | # Shared library suffix (normally ".so"). | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24103 | shrext_cmds='$shrext_cmds' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24104 |  | 
 | 24105 | # Executable file suffix (normally ""). | 
 | 24106 | exeext="$exeext" | 
 | 24107 |  | 
 | 24108 | # Additional compiler flags for building library objects. | 
 | 24109 | pic_flag=$lt_lt_prog_compiler_pic_GCJ | 
 | 24110 | pic_mode=$pic_mode | 
 | 24111 |  | 
 | 24112 | # What is the maximum length of a command? | 
 | 24113 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
 | 24114 |  | 
 | 24115 | # Does compiler simultaneously support -c and -o options? | 
 | 24116 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ | 
 | 24117 |  | 
 | 24118 | # Must we lock files when doing compilation ? | 
 | 24119 | need_locks=$lt_need_locks | 
 | 24120 |  | 
 | 24121 | # Do we need the lib prefix for modules? | 
 | 24122 | need_lib_prefix=$need_lib_prefix | 
 | 24123 |  | 
 | 24124 | # Do we need a version for libraries? | 
 | 24125 | need_version=$need_version | 
 | 24126 |  | 
 | 24127 | # Whether dlopen is supported. | 
 | 24128 | dlopen_support=$enable_dlopen | 
 | 24129 |  | 
 | 24130 | # Whether dlopen of programs is supported. | 
 | 24131 | dlopen_self=$enable_dlopen_self | 
 | 24132 |  | 
 | 24133 | # Whether dlopen of statically linked programs is supported. | 
 | 24134 | dlopen_self_static=$enable_dlopen_self_static | 
 | 24135 |  | 
 | 24136 | # Compiler flag to prevent dynamic linking. | 
 | 24137 | link_static_flag=$lt_lt_prog_compiler_static_GCJ | 
 | 24138 |  | 
 | 24139 | # Compiler flag to turn off builtin functions. | 
 | 24140 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ | 
 | 24141 |  | 
 | 24142 | # Compiler flag to allow reflexive dlopens. | 
 | 24143 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ | 
 | 24144 |  | 
 | 24145 | # Compiler flag to generate shared objects directly from archives. | 
 | 24146 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ | 
 | 24147 |  | 
 | 24148 | # Compiler flag to generate thread-safe objects. | 
 | 24149 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ | 
 | 24150 |  | 
 | 24151 | # Library versioning type. | 
 | 24152 | version_type=$version_type | 
 | 24153 |  | 
 | 24154 | # Format of library name prefix. | 
 | 24155 | libname_spec=$lt_libname_spec | 
 | 24156 |  | 
 | 24157 | # List of archive names.  First name is the real one, the rest are links. | 
 | 24158 | # The last name is the one that the linker finds with -lNAME. | 
 | 24159 | library_names_spec=$lt_library_names_spec | 
 | 24160 |  | 
 | 24161 | # The coded name of the library, if different from the real name. | 
 | 24162 | soname_spec=$lt_soname_spec | 
 | 24163 |  | 
 | 24164 | # Commands used to build and install an old-style archive. | 
 | 24165 | RANLIB=$lt_RANLIB | 
 | 24166 | old_archive_cmds=$lt_old_archive_cmds_GCJ | 
 | 24167 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
 | 24168 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
 | 24169 |  | 
 | 24170 | # Create an old-style archive from a shared archive. | 
 | 24171 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ | 
 | 24172 |  | 
 | 24173 | # Create a temporary old-style archive to link instead of a shared archive. | 
 | 24174 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ | 
 | 24175 |  | 
 | 24176 | # Commands used to build and install a shared archive. | 
 | 24177 | archive_cmds=$lt_archive_cmds_GCJ | 
 | 24178 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ | 
 | 24179 | postinstall_cmds=$lt_postinstall_cmds | 
 | 24180 | postuninstall_cmds=$lt_postuninstall_cmds | 
 | 24181 |  | 
 | 24182 | # Commands used to build a loadable module (assumed same as above if empty) | 
 | 24183 | module_cmds=$lt_module_cmds_GCJ | 
 | 24184 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ | 
 | 24185 |  | 
 | 24186 | # Commands to strip libraries. | 
 | 24187 | old_striplib=$lt_old_striplib | 
 | 24188 | striplib=$lt_striplib | 
 | 24189 |  | 
 | 24190 | # Dependencies to place before the objects being linked to create a | 
 | 24191 | # shared library. | 
 | 24192 | predep_objects=$lt_predep_objects_GCJ | 
 | 24193 |  | 
 | 24194 | # Dependencies to place after the objects being linked to create a | 
 | 24195 | # shared library. | 
 | 24196 | postdep_objects=$lt_postdep_objects_GCJ | 
 | 24197 |  | 
 | 24198 | # Dependencies to place before the objects being linked to create a | 
 | 24199 | # shared library. | 
 | 24200 | predeps=$lt_predeps_GCJ | 
 | 24201 |  | 
 | 24202 | # Dependencies to place after the objects being linked to create a | 
 | 24203 | # shared library. | 
 | 24204 | postdeps=$lt_postdeps_GCJ | 
 | 24205 |  | 
 | 24206 | # The library search path used internally by the compiler when linking | 
 | 24207 | # a shared library. | 
 | 24208 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ | 
 | 24209 |  | 
 | 24210 | # Method to check whether dependent libraries are shared objects. | 
 | 24211 | deplibs_check_method=$lt_deplibs_check_method | 
 | 24212 |  | 
 | 24213 | # Command to use when deplibs_check_method == file_magic. | 
 | 24214 | file_magic_cmd=$lt_file_magic_cmd | 
 | 24215 |  | 
 | 24216 | # Flag that allows shared libraries with undefined symbols to be built. | 
 | 24217 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ | 
 | 24218 |  | 
 | 24219 | # Flag that forces no undefined symbols. | 
 | 24220 | no_undefined_flag=$lt_no_undefined_flag_GCJ | 
 | 24221 |  | 
 | 24222 | # Commands used to finish a libtool library installation in a directory. | 
 | 24223 | finish_cmds=$lt_finish_cmds | 
 | 24224 |  | 
 | 24225 | # Same as above, but a single script fragment to be evaled but not shown. | 
 | 24226 | finish_eval=$lt_finish_eval | 
 | 24227 |  | 
 | 24228 | # Take the output of nm and produce a listing of raw symbols and C names. | 
 | 24229 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
 | 24230 |  | 
 | 24231 | # Transform the output of nm in a proper C declaration | 
 | 24232 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
 | 24233 |  | 
 | 24234 | # Transform the output of nm in a C name address pair | 
 | 24235 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
 | 24236 |  | 
 | 24237 | # This is the shared library runtime path variable. | 
 | 24238 | runpath_var=$runpath_var | 
 | 24239 |  | 
 | 24240 | # This is the shared library path variable. | 
 | 24241 | shlibpath_var=$shlibpath_var | 
 | 24242 |  | 
 | 24243 | # Is shlibpath searched before the hard-coded library search path? | 
 | 24244 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
 | 24245 |  | 
 | 24246 | # How to hardcode a shared library path into an executable. | 
 | 24247 | hardcode_action=$hardcode_action_GCJ | 
 | 24248 |  | 
 | 24249 | # Whether we should hardcode library paths into libraries. | 
 | 24250 | hardcode_into_libs=$hardcode_into_libs | 
 | 24251 |  | 
 | 24252 | # Flag to hardcode \$libdir into a binary during linking. | 
 | 24253 | # This must work even if \$libdir does not exist. | 
 | 24254 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ | 
 | 24255 |  | 
 | 24256 | # If ld is used when linking, flag to hardcode \$libdir into | 
 | 24257 | # a binary during linking. This must work even if \$libdir does | 
 | 24258 | # not exist. | 
 | 24259 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ | 
 | 24260 |  | 
 | 24261 | # Whether we need a single -rpath flag with a separated argument. | 
 | 24262 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ | 
 | 24263 |  | 
 | 24264 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
 | 24265 | # resulting binary. | 
 | 24266 | hardcode_direct=$hardcode_direct_GCJ | 
 | 24267 |  | 
 | 24268 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
 | 24269 | # resulting binary. | 
 | 24270 | hardcode_minus_L=$hardcode_minus_L_GCJ | 
 | 24271 |  | 
 | 24272 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
 | 24273 | # the resulting binary. | 
 | 24274 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ | 
 | 24275 |  | 
 | 24276 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
 | 24277 | # and all subsequent libraries and executables linked against it. | 
 | 24278 | hardcode_automatic=$hardcode_automatic_GCJ | 
 | 24279 |  | 
 | 24280 | # Variables whose values should be saved in libtool wrapper scripts and | 
 | 24281 | # restored at relink time. | 
 | 24282 | variables_saved_for_relink="$variables_saved_for_relink" | 
 | 24283 |  | 
 | 24284 | # Whether libtool must link a program against all its dependency libraries. | 
 | 24285 | link_all_deplibs=$link_all_deplibs_GCJ | 
 | 24286 |  | 
 | 24287 | # Compile-time system search path for libraries | 
 | 24288 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
 | 24289 |  | 
 | 24290 | # Run-time system search path for libraries | 
 | 24291 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
 | 24292 |  | 
 | 24293 | # Fix the shell variable \$srcfile for the compiler. | 
 | 24294 | fix_srcfile_path="$fix_srcfile_path_GCJ" | 
 | 24295 |  | 
 | 24296 | # Set to yes if exported symbols are required. | 
 | 24297 | always_export_symbols=$always_export_symbols_GCJ | 
 | 24298 |  | 
 | 24299 | # The commands to list exported symbols. | 
 | 24300 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ | 
 | 24301 |  | 
 | 24302 | # The commands to extract the exported symbol list from a shared archive. | 
 | 24303 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
 | 24304 |  | 
 | 24305 | # Symbols that should not be listed in the preloaded symbols. | 
 | 24306 | exclude_expsyms=$lt_exclude_expsyms_GCJ | 
 | 24307 |  | 
 | 24308 | # Symbols that must always be exported. | 
 | 24309 | include_expsyms=$lt_include_expsyms_GCJ | 
 | 24310 |  | 
 | 24311 | # ### END LIBTOOL TAG CONFIG: $tagname | 
 | 24312 |  | 
 | 24313 | __EOF__ | 
 | 24314 |  | 
 | 24315 |  | 
 | 24316 | else | 
 | 24317 |   # If there is no Makefile yet, we rely on a make rule to execute | 
 | 24318 |   # `config.status --recheck' to rerun these tests and create the | 
 | 24319 |   # libtool script then. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24320 |   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | 
 | 24321 |   if test -f "$ltmain_in"; then | 
 | 24322 |     test -f Makefile && make "$ltmain" | 
 | 24323 |   fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24324 | fi | 
 | 24325 |  | 
 | 24326 |  | 
 | 24327 | ac_ext=c | 
 | 24328 | ac_cpp='$CPP $CPPFLAGS' | 
 | 24329 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 24330 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 24331 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 24332 |  | 
 | 24333 | CC="$lt_save_CC" | 
 | 24334 |  | 
 | 24335 | 	else | 
 | 24336 | 	  tagname="" | 
 | 24337 | 	fi | 
 | 24338 | 	;; | 
 | 24339 |  | 
 | 24340 |       RC) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24341 | 	ac_ext=c | 
 | 24342 | ac_cpp='$CPP $CPPFLAGS' | 
 | 24343 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 24344 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 24345 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24346 |  | 
 | 24347 |  | 
 | 24348 | # Source file extension for RC test sources. | 
 | 24349 | ac_ext=rc | 
 | 24350 |  | 
 | 24351 | # Object file extension for compiled RC test sources. | 
 | 24352 | objext=o | 
 | 24353 | objext_RC=$objext | 
 | 24354 |  | 
 | 24355 | # Code to be used in simple compile tests | 
 | 24356 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' | 
 | 24357 |  | 
 | 24358 | # Code to be used in simple link tests | 
 | 24359 | lt_simple_link_test_code="$lt_simple_compile_test_code" | 
 | 24360 |  | 
 | 24361 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
 | 24362 |  | 
 | 24363 | # If no C compiler was specified, use CC. | 
 | 24364 | LTCC=${LTCC-"$CC"} | 
 | 24365 |  | 
 | 24366 | # Allow CC to be a program name with arguments. | 
 | 24367 | compiler=$CC | 
 | 24368 |  | 
 | 24369 |  | 
 | 24370 | # Allow CC to be a program name with arguments. | 
 | 24371 | lt_save_CC="$CC" | 
 | 24372 | CC=${RC-"windres"} | 
 | 24373 | compiler=$CC | 
 | 24374 | compiler_RC=$CC | 
 | 24375 | lt_cv_prog_compiler_c_o_RC=yes | 
 | 24376 |  | 
 | 24377 | # The else clause should only fire when bootstrapping the | 
 | 24378 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
 | 24379 | # with your package, and you will get complaints that there are | 
 | 24380 | # no rules to generate ltmain.sh. | 
 | 24381 | if test -f "$ltmain"; then | 
 | 24382 |   # See if we are running on zsh, and set the options which allow our commands through | 
 | 24383 |   # without removal of \ escapes. | 
 | 24384 |   if test -n "${ZSH_VERSION+set}" ; then | 
 | 24385 |     setopt NO_GLOB_SUBST | 
 | 24386 |   fi | 
 | 24387 |   # Now quote all the things that may contain metacharacters while being | 
 | 24388 |   # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
 | 24389 |   # variables and quote the copies for generation of the libtool script. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24390 |   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | 
 | 24391 |     SED SHELL STRIP \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24392 |     libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
 | 24393 |     old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
 | 24394 |     deplibs_check_method reload_flag reload_cmds need_locks \ | 
 | 24395 |     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
 | 24396 |     lt_cv_sys_global_symbol_to_c_name_address \ | 
 | 24397 |     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
 | 24398 |     old_postinstall_cmds old_postuninstall_cmds \ | 
 | 24399 |     compiler_RC \ | 
 | 24400 |     CC_RC \ | 
 | 24401 |     LD_RC \ | 
 | 24402 |     lt_prog_compiler_wl_RC \ | 
 | 24403 |     lt_prog_compiler_pic_RC \ | 
 | 24404 |     lt_prog_compiler_static_RC \ | 
 | 24405 |     lt_prog_compiler_no_builtin_flag_RC \ | 
 | 24406 |     export_dynamic_flag_spec_RC \ | 
 | 24407 |     thread_safe_flag_spec_RC \ | 
 | 24408 |     whole_archive_flag_spec_RC \ | 
 | 24409 |     enable_shared_with_static_runtimes_RC \ | 
 | 24410 |     old_archive_cmds_RC \ | 
 | 24411 |     old_archive_from_new_cmds_RC \ | 
 | 24412 |     predep_objects_RC \ | 
 | 24413 |     postdep_objects_RC \ | 
 | 24414 |     predeps_RC \ | 
 | 24415 |     postdeps_RC \ | 
 | 24416 |     compiler_lib_search_path_RC \ | 
 | 24417 |     archive_cmds_RC \ | 
 | 24418 |     archive_expsym_cmds_RC \ | 
 | 24419 |     postinstall_cmds_RC \ | 
 | 24420 |     postuninstall_cmds_RC \ | 
 | 24421 |     old_archive_from_expsyms_cmds_RC \ | 
 | 24422 |     allow_undefined_flag_RC \ | 
 | 24423 |     no_undefined_flag_RC \ | 
 | 24424 |     export_symbols_cmds_RC \ | 
 | 24425 |     hardcode_libdir_flag_spec_RC \ | 
 | 24426 |     hardcode_libdir_flag_spec_ld_RC \ | 
 | 24427 |     hardcode_libdir_separator_RC \ | 
 | 24428 |     hardcode_automatic_RC \ | 
 | 24429 |     module_cmds_RC \ | 
 | 24430 |     module_expsym_cmds_RC \ | 
 | 24431 |     lt_cv_prog_compiler_c_o_RC \ | 
 | 24432 |     exclude_expsyms_RC \ | 
 | 24433 |     include_expsyms_RC; do | 
 | 24434 |  | 
 | 24435 |     case $var in | 
 | 24436 |     old_archive_cmds_RC | \ | 
 | 24437 |     old_archive_from_new_cmds_RC | \ | 
 | 24438 |     archive_cmds_RC | \ | 
 | 24439 |     archive_expsym_cmds_RC | \ | 
 | 24440 |     module_cmds_RC | \ | 
 | 24441 |     module_expsym_cmds_RC | \ | 
 | 24442 |     old_archive_from_expsyms_cmds_RC | \ | 
 | 24443 |     export_symbols_cmds_RC | \ | 
 | 24444 |     extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
 | 24445 |     postinstall_cmds | postuninstall_cmds | \ | 
 | 24446 |     old_postinstall_cmds | old_postuninstall_cmds | \ | 
 | 24447 |     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
 | 24448 |       # Double-quote double-evaled strings. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24449 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24450 |       ;; | 
 | 24451 |     *) | 
 | 24452 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
 | 24453 |       ;; | 
 | 24454 |     esac | 
 | 24455 |   done | 
 | 24456 |  | 
 | 24457 |   case $lt_echo in | 
 | 24458 |   *'\$0 --fallback-echo"') | 
 | 24459 |     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
 | 24460 |     ;; | 
 | 24461 |   esac | 
 | 24462 |  | 
 | 24463 | cfgfile="$ofile" | 
 | 24464 |  | 
 | 24465 |   cat <<__EOF__ >> "$cfgfile" | 
 | 24466 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | 
 | 24467 |  | 
 | 24468 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
 | 24469 |  | 
 | 24470 | # Shell to use when invoking shell scripts. | 
 | 24471 | SHELL=$lt_SHELL | 
 | 24472 |  | 
 | 24473 | # Whether or not to build shared libraries. | 
 | 24474 | build_libtool_libs=$enable_shared | 
 | 24475 |  | 
 | 24476 | # Whether or not to build static libraries. | 
 | 24477 | build_old_libs=$enable_static | 
 | 24478 |  | 
 | 24479 | # Whether or not to add -lc for building shared libraries. | 
 | 24480 | build_libtool_need_lc=$archive_cmds_need_lc_RC | 
 | 24481 |  | 
 | 24482 | # Whether or not to disallow shared libs when runtime libs are static | 
 | 24483 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC | 
 | 24484 |  | 
 | 24485 | # Whether or not to optimize for fast installation. | 
 | 24486 | fast_install=$enable_fast_install | 
 | 24487 |  | 
 | 24488 | # The host system. | 
 | 24489 | host_alias=$host_alias | 
 | 24490 | host=$host | 
 | 24491 |  | 
 | 24492 | # An echo program that does not interpret backslashes. | 
 | 24493 | echo=$lt_echo | 
 | 24494 |  | 
 | 24495 | # The archiver. | 
 | 24496 | AR=$lt_AR | 
 | 24497 | AR_FLAGS=$lt_AR_FLAGS | 
 | 24498 |  | 
 | 24499 | # A C compiler. | 
 | 24500 | LTCC=$lt_LTCC | 
 | 24501 |  | 
 | 24502 | # A language-specific compiler. | 
 | 24503 | CC=$lt_compiler_RC | 
 | 24504 |  | 
 | 24505 | # Is the compiler the GNU C compiler? | 
 | 24506 | with_gcc=$GCC_RC | 
 | 24507 |  | 
 | 24508 | # An ERE matcher. | 
 | 24509 | EGREP=$lt_EGREP | 
 | 24510 |  | 
 | 24511 | # The linker used to build libraries. | 
 | 24512 | LD=$lt_LD_RC | 
 | 24513 |  | 
 | 24514 | # Whether we need hard or soft links. | 
 | 24515 | LN_S=$lt_LN_S | 
 | 24516 |  | 
 | 24517 | # A BSD-compatible nm program. | 
 | 24518 | NM=$lt_NM | 
 | 24519 |  | 
 | 24520 | # A symbol stripping program | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24521 | STRIP=$lt_STRIP | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24522 |  | 
 | 24523 | # Used to examine libraries when file_magic_cmd begins "file" | 
 | 24524 | MAGIC_CMD=$MAGIC_CMD | 
 | 24525 |  | 
 | 24526 | # Used on cygwin: DLL creation program. | 
 | 24527 | DLLTOOL="$DLLTOOL" | 
 | 24528 |  | 
 | 24529 | # Used on cygwin: object dumper. | 
 | 24530 | OBJDUMP="$OBJDUMP" | 
 | 24531 |  | 
 | 24532 | # Used on cygwin: assembler. | 
 | 24533 | AS="$AS" | 
 | 24534 |  | 
 | 24535 | # The name of the directory that contains temporary libtool files. | 
 | 24536 | objdir=$objdir | 
 | 24537 |  | 
 | 24538 | # How to create reloadable object files. | 
 | 24539 | reload_flag=$lt_reload_flag | 
 | 24540 | reload_cmds=$lt_reload_cmds | 
 | 24541 |  | 
 | 24542 | # How to pass a linker flag through the compiler. | 
 | 24543 | wl=$lt_lt_prog_compiler_wl_RC | 
 | 24544 |  | 
 | 24545 | # Object file suffix (normally "o"). | 
 | 24546 | objext="$ac_objext" | 
 | 24547 |  | 
 | 24548 | # Old archive suffix (normally "a"). | 
 | 24549 | libext="$libext" | 
 | 24550 |  | 
 | 24551 | # Shared library suffix (normally ".so"). | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24552 | shrext_cmds='$shrext_cmds' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24553 |  | 
 | 24554 | # Executable file suffix (normally ""). | 
 | 24555 | exeext="$exeext" | 
 | 24556 |  | 
 | 24557 | # Additional compiler flags for building library objects. | 
 | 24558 | pic_flag=$lt_lt_prog_compiler_pic_RC | 
 | 24559 | pic_mode=$pic_mode | 
 | 24560 |  | 
 | 24561 | # What is the maximum length of a command? | 
 | 24562 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
 | 24563 |  | 
 | 24564 | # Does compiler simultaneously support -c and -o options? | 
 | 24565 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC | 
 | 24566 |  | 
 | 24567 | # Must we lock files when doing compilation ? | 
 | 24568 | need_locks=$lt_need_locks | 
 | 24569 |  | 
 | 24570 | # Do we need the lib prefix for modules? | 
 | 24571 | need_lib_prefix=$need_lib_prefix | 
 | 24572 |  | 
 | 24573 | # Do we need a version for libraries? | 
 | 24574 | need_version=$need_version | 
 | 24575 |  | 
 | 24576 | # Whether dlopen is supported. | 
 | 24577 | dlopen_support=$enable_dlopen | 
 | 24578 |  | 
 | 24579 | # Whether dlopen of programs is supported. | 
 | 24580 | dlopen_self=$enable_dlopen_self | 
 | 24581 |  | 
 | 24582 | # Whether dlopen of statically linked programs is supported. | 
 | 24583 | dlopen_self_static=$enable_dlopen_self_static | 
 | 24584 |  | 
 | 24585 | # Compiler flag to prevent dynamic linking. | 
 | 24586 | link_static_flag=$lt_lt_prog_compiler_static_RC | 
 | 24587 |  | 
 | 24588 | # Compiler flag to turn off builtin functions. | 
 | 24589 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC | 
 | 24590 |  | 
 | 24591 | # Compiler flag to allow reflexive dlopens. | 
 | 24592 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC | 
 | 24593 |  | 
 | 24594 | # Compiler flag to generate shared objects directly from archives. | 
 | 24595 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC | 
 | 24596 |  | 
 | 24597 | # Compiler flag to generate thread-safe objects. | 
 | 24598 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC | 
 | 24599 |  | 
 | 24600 | # Library versioning type. | 
 | 24601 | version_type=$version_type | 
 | 24602 |  | 
 | 24603 | # Format of library name prefix. | 
 | 24604 | libname_spec=$lt_libname_spec | 
 | 24605 |  | 
 | 24606 | # List of archive names.  First name is the real one, the rest are links. | 
 | 24607 | # The last name is the one that the linker finds with -lNAME. | 
 | 24608 | library_names_spec=$lt_library_names_spec | 
 | 24609 |  | 
 | 24610 | # The coded name of the library, if different from the real name. | 
 | 24611 | soname_spec=$lt_soname_spec | 
 | 24612 |  | 
 | 24613 | # Commands used to build and install an old-style archive. | 
 | 24614 | RANLIB=$lt_RANLIB | 
 | 24615 | old_archive_cmds=$lt_old_archive_cmds_RC | 
 | 24616 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
 | 24617 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
 | 24618 |  | 
 | 24619 | # Create an old-style archive from a shared archive. | 
 | 24620 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC | 
 | 24621 |  | 
 | 24622 | # Create a temporary old-style archive to link instead of a shared archive. | 
 | 24623 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC | 
 | 24624 |  | 
 | 24625 | # Commands used to build and install a shared archive. | 
 | 24626 | archive_cmds=$lt_archive_cmds_RC | 
 | 24627 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC | 
 | 24628 | postinstall_cmds=$lt_postinstall_cmds | 
 | 24629 | postuninstall_cmds=$lt_postuninstall_cmds | 
 | 24630 |  | 
 | 24631 | # Commands used to build a loadable module (assumed same as above if empty) | 
 | 24632 | module_cmds=$lt_module_cmds_RC | 
 | 24633 | module_expsym_cmds=$lt_module_expsym_cmds_RC | 
 | 24634 |  | 
 | 24635 | # Commands to strip libraries. | 
 | 24636 | old_striplib=$lt_old_striplib | 
 | 24637 | striplib=$lt_striplib | 
 | 24638 |  | 
 | 24639 | # Dependencies to place before the objects being linked to create a | 
 | 24640 | # shared library. | 
 | 24641 | predep_objects=$lt_predep_objects_RC | 
 | 24642 |  | 
 | 24643 | # Dependencies to place after the objects being linked to create a | 
 | 24644 | # shared library. | 
 | 24645 | postdep_objects=$lt_postdep_objects_RC | 
 | 24646 |  | 
 | 24647 | # Dependencies to place before the objects being linked to create a | 
 | 24648 | # shared library. | 
 | 24649 | predeps=$lt_predeps_RC | 
 | 24650 |  | 
 | 24651 | # Dependencies to place after the objects being linked to create a | 
 | 24652 | # shared library. | 
 | 24653 | postdeps=$lt_postdeps_RC | 
 | 24654 |  | 
 | 24655 | # The library search path used internally by the compiler when linking | 
 | 24656 | # a shared library. | 
 | 24657 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC | 
 | 24658 |  | 
 | 24659 | # Method to check whether dependent libraries are shared objects. | 
 | 24660 | deplibs_check_method=$lt_deplibs_check_method | 
 | 24661 |  | 
 | 24662 | # Command to use when deplibs_check_method == file_magic. | 
 | 24663 | file_magic_cmd=$lt_file_magic_cmd | 
 | 24664 |  | 
 | 24665 | # Flag that allows shared libraries with undefined symbols to be built. | 
 | 24666 | allow_undefined_flag=$lt_allow_undefined_flag_RC | 
 | 24667 |  | 
 | 24668 | # Flag that forces no undefined symbols. | 
 | 24669 | no_undefined_flag=$lt_no_undefined_flag_RC | 
 | 24670 |  | 
 | 24671 | # Commands used to finish a libtool library installation in a directory. | 
 | 24672 | finish_cmds=$lt_finish_cmds | 
 | 24673 |  | 
 | 24674 | # Same as above, but a single script fragment to be evaled but not shown. | 
 | 24675 | finish_eval=$lt_finish_eval | 
 | 24676 |  | 
 | 24677 | # Take the output of nm and produce a listing of raw symbols and C names. | 
 | 24678 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
 | 24679 |  | 
 | 24680 | # Transform the output of nm in a proper C declaration | 
 | 24681 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
 | 24682 |  | 
 | 24683 | # Transform the output of nm in a C name address pair | 
 | 24684 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
 | 24685 |  | 
 | 24686 | # This is the shared library runtime path variable. | 
 | 24687 | runpath_var=$runpath_var | 
 | 24688 |  | 
 | 24689 | # This is the shared library path variable. | 
 | 24690 | shlibpath_var=$shlibpath_var | 
 | 24691 |  | 
 | 24692 | # Is shlibpath searched before the hard-coded library search path? | 
 | 24693 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
 | 24694 |  | 
 | 24695 | # How to hardcode a shared library path into an executable. | 
 | 24696 | hardcode_action=$hardcode_action_RC | 
 | 24697 |  | 
 | 24698 | # Whether we should hardcode library paths into libraries. | 
 | 24699 | hardcode_into_libs=$hardcode_into_libs | 
 | 24700 |  | 
 | 24701 | # Flag to hardcode \$libdir into a binary during linking. | 
 | 24702 | # This must work even if \$libdir does not exist. | 
 | 24703 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC | 
 | 24704 |  | 
 | 24705 | # If ld is used when linking, flag to hardcode \$libdir into | 
 | 24706 | # a binary during linking. This must work even if \$libdir does | 
 | 24707 | # not exist. | 
 | 24708 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC | 
 | 24709 |  | 
 | 24710 | # Whether we need a single -rpath flag with a separated argument. | 
 | 24711 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC | 
 | 24712 |  | 
 | 24713 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
 | 24714 | # resulting binary. | 
 | 24715 | hardcode_direct=$hardcode_direct_RC | 
 | 24716 |  | 
 | 24717 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
 | 24718 | # resulting binary. | 
 | 24719 | hardcode_minus_L=$hardcode_minus_L_RC | 
 | 24720 |  | 
 | 24721 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
 | 24722 | # the resulting binary. | 
 | 24723 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC | 
 | 24724 |  | 
 | 24725 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
 | 24726 | # and all subsequent libraries and executables linked against it. | 
 | 24727 | hardcode_automatic=$hardcode_automatic_RC | 
 | 24728 |  | 
 | 24729 | # Variables whose values should be saved in libtool wrapper scripts and | 
 | 24730 | # restored at relink time. | 
 | 24731 | variables_saved_for_relink="$variables_saved_for_relink" | 
 | 24732 |  | 
 | 24733 | # Whether libtool must link a program against all its dependency libraries. | 
 | 24734 | link_all_deplibs=$link_all_deplibs_RC | 
 | 24735 |  | 
 | 24736 | # Compile-time system search path for libraries | 
 | 24737 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
 | 24738 |  | 
 | 24739 | # Run-time system search path for libraries | 
 | 24740 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
 | 24741 |  | 
 | 24742 | # Fix the shell variable \$srcfile for the compiler. | 
 | 24743 | fix_srcfile_path="$fix_srcfile_path_RC" | 
 | 24744 |  | 
 | 24745 | # Set to yes if exported symbols are required. | 
 | 24746 | always_export_symbols=$always_export_symbols_RC | 
 | 24747 |  | 
 | 24748 | # The commands to list exported symbols. | 
 | 24749 | export_symbols_cmds=$lt_export_symbols_cmds_RC | 
 | 24750 |  | 
 | 24751 | # The commands to extract the exported symbol list from a shared archive. | 
 | 24752 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
 | 24753 |  | 
 | 24754 | # Symbols that should not be listed in the preloaded symbols. | 
 | 24755 | exclude_expsyms=$lt_exclude_expsyms_RC | 
 | 24756 |  | 
 | 24757 | # Symbols that must always be exported. | 
 | 24758 | include_expsyms=$lt_include_expsyms_RC | 
 | 24759 |  | 
 | 24760 | # ### END LIBTOOL TAG CONFIG: $tagname | 
 | 24761 |  | 
 | 24762 | __EOF__ | 
 | 24763 |  | 
 | 24764 |  | 
 | 24765 | else | 
 | 24766 |   # If there is no Makefile yet, we rely on a make rule to execute | 
 | 24767 |   # `config.status --recheck' to rerun these tests and create the | 
 | 24768 |   # libtool script then. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24769 |   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | 
 | 24770 |   if test -f "$ltmain_in"; then | 
 | 24771 |     test -f Makefile && make "$ltmain" | 
 | 24772 |   fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24773 | fi | 
 | 24774 |  | 
 | 24775 |  | 
 | 24776 | ac_ext=c | 
 | 24777 | ac_cpp='$CPP $CPPFLAGS' | 
 | 24778 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 24779 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 24780 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 24781 |  | 
 | 24782 | CC="$lt_save_CC" | 
 | 24783 |  | 
 | 24784 | 	;; | 
 | 24785 |  | 
 | 24786 |       *) | 
 | 24787 | 	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 | 
 | 24788 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} | 
 | 24789 |    { (exit 1); exit 1; }; } | 
 | 24790 | 	;; | 
 | 24791 |       esac | 
 | 24792 |  | 
 | 24793 |       # Append the new tag name to the list of available tags. | 
 | 24794 |       if test -n "$tagname" ; then | 
 | 24795 |       available_tags="$available_tags $tagname" | 
 | 24796 |     fi | 
 | 24797 |     fi | 
 | 24798 |   done | 
 | 24799 |   IFS="$lt_save_ifs" | 
 | 24800 |  | 
 | 24801 |   # Now substitute the updated list of available tags. | 
 | 24802 |   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | 
 | 24803 |     mv "${ofile}T" "$ofile" | 
 | 24804 |     chmod +x "$ofile" | 
 | 24805 |   else | 
 | 24806 |     rm -f "${ofile}T" | 
 | 24807 |     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 | 
 | 24808 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} | 
 | 24809 |    { (exit 1); exit 1; }; } | 
 | 24810 |   fi | 
 | 24811 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24812 |  | 
 | 24813 |  | 
 | 24814 |  | 
 | 24815 | # This can be used to rebuild libtool when needed | 
 | 24816 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | 
 | 24817 |  | 
 | 24818 | # Always use our own libtool. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24819 | LIBTOOL='$(SHELL) $(top_builddir)/mklib' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24820 |  | 
 | 24821 | # Prevent multiple expansion | 
 | 24822 |  | 
 | 24823 |  | 
 | 24824 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24825 |  | 
 | 24826 |  | 
 | 24827 |  | 
 | 24828 |  | 
 | 24829 |  | 
 | 24830 |  | 
 | 24831 |  | 
 | 24832 |  | 
 | 24833 |  | 
 | 24834 |  | 
 | 24835 |  | 
 | 24836 |  | 
 | 24837 |  | 
 | 24838 |  | 
 | 24839 |  | 
 | 24840 |  | 
 | 24841 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24842 |  | 
| Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 24843 | if test "$lt_cv_dlopen_self" = "yes" ; then | 
 | 24844 |  | 
 | 24845 | cat >>confdefs.h <<\_ACEOF | 
 | 24846 | #define CAN_DLOPEN_SELF 1 | 
 | 24847 | _ACEOF | 
 | 24848 |  | 
 | 24849 | fi | 
 | 24850 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24851 | etags_version=`$ETAGS --version 2>&1` | 
 | 24852 | case "$etags_version" in | 
 | 24853 | 	*Eexuberant*) ETAGSFLAGS="--language-force=c++" ;; | 
 | 24854 | 	*GNU\ Emacs*) ETAGSFLAGS="-l c++" ;; | 
 | 24855 | 	*) ETAGSFLAGS="" ;; | 
 | 24856 | esac | 
 | 24857 | ETAGSFLAGS=$ETAGSFLAGS | 
 | 24858 |  | 
 | 24859 |  | 
| Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 24860 | if test "$WITH_LLVMGCCDIR" = "default" ; then | 
| Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 24861 |   LLVMGCC="llvm-gcc${EXEEXT}" | 
 | 24862 |   LLVMGXX="llvm-g++${EXEEXT}" | 
 | 24863 |   # Extract the first word of "$LLVMGCC", so it can be a program name with args. | 
 | 24864 | set dummy $LLVMGCC; ac_word=$2 | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 24865 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 24866 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 24867 | if test "${ac_cv_path_LLVMGCC+set}" = set; then | 
 | 24868 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 24869 | else | 
 | 24870 |   case $LLVMGCC in | 
 | 24871 |   [\\/]* | ?:[\\/]*) | 
 | 24872 |   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. | 
 | 24873 |   ;; | 
 | 24874 |   *) | 
 | 24875 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 24876 | for as_dir in $PATH | 
 | 24877 | do | 
 | 24878 |   IFS=$as_save_IFS | 
 | 24879 |   test -z "$as_dir" && as_dir=. | 
 | 24880 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 24881 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 24882 |     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" | 
 | 24883 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 24884 |     break 2 | 
 | 24885 |   fi | 
 | 24886 | done | 
 | 24887 | done | 
 | 24888 |  | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 24889 |   ;; | 
 | 24890 | esac | 
 | 24891 | fi | 
 | 24892 | LLVMGCC=$ac_cv_path_LLVMGCC | 
 | 24893 |  | 
 | 24894 | if test -n "$LLVMGCC"; then | 
 | 24895 |   echo "$as_me:$LINENO: result: $LLVMGCC" >&5 | 
 | 24896 | echo "${ECHO_T}$LLVMGCC" >&6 | 
 | 24897 | else | 
 | 24898 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 24899 | echo "${ECHO_T}no" >&6 | 
 | 24900 | fi | 
 | 24901 |  | 
| Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 24902 |   # Extract the first word of "$LLVMGXX", so it can be a program name with args. | 
 | 24903 | set dummy $LLVMGXX; ac_word=$2 | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 24904 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 24905 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 24906 | if test "${ac_cv_path_LLVMGXX+set}" = set; then | 
 | 24907 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 24908 | else | 
 | 24909 |   case $LLVMGXX in | 
 | 24910 |   [\\/]* | ?:[\\/]*) | 
 | 24911 |   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. | 
 | 24912 |   ;; | 
 | 24913 |   *) | 
 | 24914 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 24915 | for as_dir in $PATH | 
 | 24916 | do | 
 | 24917 |   IFS=$as_save_IFS | 
 | 24918 |   test -z "$as_dir" && as_dir=. | 
 | 24919 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 24920 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 24921 |     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" | 
 | 24922 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 24923 |     break 2 | 
 | 24924 |   fi | 
 | 24925 | done | 
 | 24926 | done | 
 | 24927 |  | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 24928 |   ;; | 
 | 24929 | esac | 
 | 24930 | fi | 
 | 24931 | LLVMGXX=$ac_cv_path_LLVMGXX | 
 | 24932 |  | 
 | 24933 | if test -n "$LLVMGXX"; then | 
 | 24934 |   echo "$as_me:$LINENO: result: $LLVMGXX" >&5 | 
 | 24935 | echo "${ECHO_T}$LLVMGXX" >&6 | 
 | 24936 | else | 
 | 24937 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 24938 | echo "${ECHO_T}no" >&6 | 
 | 24939 | fi | 
 | 24940 |  | 
 | 24941 | else | 
| Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 24942 |   LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" | 
 | 24943 |   LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 24944 |   LLVMGCC=$LLVMGCC | 
 | 24945 |  | 
 | 24946 |   LLVMGXX=$LLVMGXX | 
 | 24947 |  | 
 | 24948 | fi | 
 | 24949 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24950 | echo "$as_me:$LINENO: checking tool compatibility" >&5 | 
 | 24951 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6 | 
 | 24952 |  | 
| Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 24953 | ICC=no | 
 | 24954 | IXX=no | 
 | 24955 | case $CC in | 
 | 24956 |   icc*|icpc*) | 
 | 24957 |     ICC=yes | 
 | 24958 |     IXX=yes | 
 | 24959 |     ;; | 
 | 24960 |    *) | 
 | 24961 |     ;; | 
 | 24962 | esac | 
 | 24963 |  | 
| Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 24964 | if test "$GCC" != "yes" && test "$ICC" != "yes" | 
 | 24965 | then | 
 | 24966 |   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 | 
 | 24967 | echo "$as_me: error: gcc|icc required but not found" >&2;} | 
 | 24968 |    { (exit 1); exit 1; }; } | 
 | 24969 | fi | 
 | 24970 |  | 
 | 24971 | if test "$GXX" != "yes" && test "$IXX" != "yes" | 
 | 24972 | then | 
 | 24973 |   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 | 
 | 24974 | echo "$as_me: error: g++|icc required but not found" >&2;} | 
 | 24975 |    { (exit 1); exit 1; }; } | 
 | 24976 | fi | 
 | 24977 |  | 
| Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 24978 | if test "$GCC" = "yes" | 
 | 24979 | then | 
| Reid Spencer | bc9e49c | 2005-07-27 21:58:38 +0000 | [diff] [blame] | 24980 |   gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'` | 
| Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 24981 |   if test "$gccmajor" -lt "3" | 
 | 24982 |   then | 
 | 24983 |     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24984 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} | 
 | 24985 |    { (exit 1); exit 1; }; } | 
| Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 24986 |   fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24987 | fi | 
 | 24988 |  | 
 | 24989 | if test -z "$llvm_cv_gnu_make_command" | 
 | 24990 | then | 
 | 24991 |   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 | 
 | 24992 | echo "$as_me: error: GNU Make required but not found" >&2;} | 
 | 24993 |    { (exit 1); exit 1; }; } | 
 | 24994 | fi | 
 | 24995 |  | 
 | 24996 | echo "$as_me:$LINENO: result: ok" >&5 | 
 | 24997 | echo "${ECHO_T}ok" >&6 | 
 | 24998 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24999 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25000 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25001 | echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 | 
 | 25002 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 | 
 | 25003 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then | 
 | 25004 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 25005 | else | 
 | 25006 |   ac_check_lib_save_LIBS=$LIBS | 
 | 25007 | LIBS="-lelf  $LIBS" | 
 | 25008 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25009 | /* confdefs.h.  */ | 
 | 25010 | _ACEOF | 
 | 25011 | cat confdefs.h >>conftest.$ac_ext | 
 | 25012 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 25013 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25014 |  | 
 | 25015 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 25016 | #ifdef __cplusplus | 
 | 25017 | extern "C" | 
 | 25018 | #endif | 
 | 25019 | /* We use char because int might match the return type of a gcc2 | 
 | 25020 |    builtin and then its argument prototype would still apply.  */ | 
 | 25021 | char elf_begin (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25022 | int | 
 | 25023 | main () | 
 | 25024 | { | 
 | 25025 | elf_begin (); | 
 | 25026 |   ; | 
 | 25027 |   return 0; | 
 | 25028 | } | 
 | 25029 | _ACEOF | 
 | 25030 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 25031 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25032 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25033 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25034 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 25035 |   rm -f conftest.er1 | 
 | 25036 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25037 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25038 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25039 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 25040 | 			 || test ! -s conftest.err' | 
 | 25041 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25042 |   (eval $ac_try) 2>&5 | 
 | 25043 |   ac_status=$? | 
 | 25044 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25045 |   (exit $ac_status); }; } && | 
 | 25046 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25047 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25048 |   (eval $ac_try) 2>&5 | 
 | 25049 |   ac_status=$? | 
 | 25050 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25051 |   (exit $ac_status); }; }; then | 
 | 25052 |   ac_cv_lib_elf_elf_begin=yes | 
 | 25053 | else | 
 | 25054 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25055 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 25056 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25057 | ac_cv_lib_elf_elf_begin=no | 
 | 25058 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25059 | rm -f conftest.err conftest.$ac_objext \ | 
 | 25060 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25061 | LIBS=$ac_check_lib_save_LIBS | 
 | 25062 | fi | 
 | 25063 | echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 | 
 | 25064 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 | 
 | 25065 | if test $ac_cv_lib_elf_elf_begin = yes; then | 
 | 25066 |   cat >>confdefs.h <<_ACEOF | 
 | 25067 | #define HAVE_LIBELF 1 | 
 | 25068 | _ACEOF | 
 | 25069 |  | 
 | 25070 |   LIBS="-lelf $LIBS" | 
 | 25071 |  | 
 | 25072 | fi | 
 | 25073 |  | 
 | 25074 |  | 
| Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 25075 | echo "$as_me:$LINENO: checking for sin in -lm" >&5 | 
 | 25076 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6 | 
 | 25077 | if test "${ac_cv_lib_m_sin+set}" = set; then | 
 | 25078 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 25079 | else | 
 | 25080 |   ac_check_lib_save_LIBS=$LIBS | 
 | 25081 | LIBS="-lm  $LIBS" | 
 | 25082 | cat >conftest.$ac_ext <<_ACEOF | 
 | 25083 | /* confdefs.h.  */ | 
 | 25084 | _ACEOF | 
 | 25085 | cat confdefs.h >>conftest.$ac_ext | 
 | 25086 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 25087 | /* end confdefs.h.  */ | 
 | 25088 |  | 
 | 25089 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 25090 | #ifdef __cplusplus | 
 | 25091 | extern "C" | 
 | 25092 | #endif | 
 | 25093 | /* We use char because int might match the return type of a gcc2 | 
 | 25094 |    builtin and then its argument prototype would still apply.  */ | 
 | 25095 | char sin (); | 
 | 25096 | int | 
 | 25097 | main () | 
 | 25098 | { | 
 | 25099 | sin (); | 
 | 25100 |   ; | 
 | 25101 |   return 0; | 
 | 25102 | } | 
 | 25103 | _ACEOF | 
 | 25104 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 25105 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 25106 |   (eval $ac_link) 2>conftest.er1 | 
 | 25107 |   ac_status=$? | 
 | 25108 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 25109 |   rm -f conftest.er1 | 
 | 25110 |   cat conftest.err >&5 | 
 | 25111 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25112 |   (exit $ac_status); } && | 
 | 25113 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 25114 | 			 || test ! -s conftest.err' | 
 | 25115 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25116 |   (eval $ac_try) 2>&5 | 
 | 25117 |   ac_status=$? | 
 | 25118 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25119 |   (exit $ac_status); }; } && | 
 | 25120 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 25121 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25122 |   (eval $ac_try) 2>&5 | 
 | 25123 |   ac_status=$? | 
 | 25124 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25125 |   (exit $ac_status); }; }; then | 
 | 25126 |   ac_cv_lib_m_sin=yes | 
 | 25127 | else | 
 | 25128 |   echo "$as_me: failed program was:" >&5 | 
 | 25129 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 25130 |  | 
 | 25131 | ac_cv_lib_m_sin=no | 
 | 25132 | fi | 
 | 25133 | rm -f conftest.err conftest.$ac_objext \ | 
 | 25134 |       conftest$ac_exeext conftest.$ac_ext | 
 | 25135 | LIBS=$ac_check_lib_save_LIBS | 
 | 25136 | fi | 
 | 25137 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 | 
 | 25138 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6 | 
 | 25139 | if test $ac_cv_lib_m_sin = yes; then | 
 | 25140 |   cat >>confdefs.h <<_ACEOF | 
 | 25141 | #define HAVE_LIBM 1 | 
 | 25142 | _ACEOF | 
 | 25143 |  | 
 | 25144 |   LIBS="-lm $LIBS" | 
 | 25145 |  | 
 | 25146 | fi | 
 | 25147 |  | 
| Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 25148 |  | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 25149 | echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5 | 
 | 25150 | echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6 | 
 | 25151 | if test "${ac_cv_search_lt_dlopen+set}" = set; then | 
 | 25152 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 25153 | else | 
 | 25154 |   ac_func_search_save_LIBS=$LIBS | 
 | 25155 | ac_cv_search_lt_dlopen=no | 
 | 25156 | cat >conftest.$ac_ext <<_ACEOF | 
 | 25157 | /* confdefs.h.  */ | 
 | 25158 | _ACEOF | 
 | 25159 | cat confdefs.h >>conftest.$ac_ext | 
 | 25160 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 25161 | /* end confdefs.h.  */ | 
 | 25162 |  | 
 | 25163 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 25164 | #ifdef __cplusplus | 
 | 25165 | extern "C" | 
 | 25166 | #endif | 
 | 25167 | /* We use char because int might match the return type of a gcc2 | 
 | 25168 |    builtin and then its argument prototype would still apply.  */ | 
 | 25169 | char lt_dlopen (); | 
 | 25170 | int | 
 | 25171 | main () | 
 | 25172 | { | 
 | 25173 | lt_dlopen (); | 
 | 25174 |   ; | 
 | 25175 |   return 0; | 
 | 25176 | } | 
 | 25177 | _ACEOF | 
 | 25178 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 25179 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 25180 |   (eval $ac_link) 2>conftest.er1 | 
 | 25181 |   ac_status=$? | 
 | 25182 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 25183 |   rm -f conftest.er1 | 
 | 25184 |   cat conftest.err >&5 | 
 | 25185 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25186 |   (exit $ac_status); } && | 
 | 25187 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 25188 | 			 || test ! -s conftest.err' | 
 | 25189 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25190 |   (eval $ac_try) 2>&5 | 
 | 25191 |   ac_status=$? | 
 | 25192 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25193 |   (exit $ac_status); }; } && | 
 | 25194 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 25195 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25196 |   (eval $ac_try) 2>&5 | 
 | 25197 |   ac_status=$? | 
 | 25198 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25199 |   (exit $ac_status); }; }; then | 
 | 25200 |   ac_cv_search_lt_dlopen="none required" | 
 | 25201 | else | 
 | 25202 |   echo "$as_me: failed program was:" >&5 | 
 | 25203 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 25204 |  | 
 | 25205 | fi | 
 | 25206 | rm -f conftest.err conftest.$ac_objext \ | 
 | 25207 |       conftest$ac_exeext conftest.$ac_ext | 
 | 25208 | if test "$ac_cv_search_lt_dlopen" = no; then | 
 | 25209 |   for ac_lib in ltdl; do | 
 | 25210 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
 | 25211 |     cat >conftest.$ac_ext <<_ACEOF | 
 | 25212 | /* confdefs.h.  */ | 
 | 25213 | _ACEOF | 
 | 25214 | cat confdefs.h >>conftest.$ac_ext | 
 | 25215 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 25216 | /* end confdefs.h.  */ | 
 | 25217 |  | 
 | 25218 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 25219 | #ifdef __cplusplus | 
 | 25220 | extern "C" | 
 | 25221 | #endif | 
 | 25222 | /* We use char because int might match the return type of a gcc2 | 
 | 25223 |    builtin and then its argument prototype would still apply.  */ | 
 | 25224 | char lt_dlopen (); | 
 | 25225 | int | 
 | 25226 | main () | 
 | 25227 | { | 
 | 25228 | lt_dlopen (); | 
 | 25229 |   ; | 
 | 25230 |   return 0; | 
 | 25231 | } | 
 | 25232 | _ACEOF | 
 | 25233 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 25234 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 25235 |   (eval $ac_link) 2>conftest.er1 | 
 | 25236 |   ac_status=$? | 
 | 25237 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 25238 |   rm -f conftest.er1 | 
 | 25239 |   cat conftest.err >&5 | 
 | 25240 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25241 |   (exit $ac_status); } && | 
 | 25242 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 25243 | 			 || test ! -s conftest.err' | 
 | 25244 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25245 |   (eval $ac_try) 2>&5 | 
 | 25246 |   ac_status=$? | 
 | 25247 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25248 |   (exit $ac_status); }; } && | 
 | 25249 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 25250 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25251 |   (eval $ac_try) 2>&5 | 
 | 25252 |   ac_status=$? | 
 | 25253 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25254 |   (exit $ac_status); }; }; then | 
 | 25255 |   ac_cv_search_lt_dlopen="-l$ac_lib" | 
 | 25256 | break | 
 | 25257 | else | 
 | 25258 |   echo "$as_me: failed program was:" >&5 | 
 | 25259 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 25260 |  | 
 | 25261 | fi | 
 | 25262 | rm -f conftest.err conftest.$ac_objext \ | 
 | 25263 |       conftest$ac_exeext conftest.$ac_ext | 
 | 25264 |   done | 
 | 25265 | fi | 
 | 25266 | LIBS=$ac_func_search_save_LIBS | 
 | 25267 | fi | 
 | 25268 | echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5 | 
 | 25269 | echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6 | 
 | 25270 | if test "$ac_cv_search_lt_dlopen" != no; then | 
 | 25271 |   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS" | 
 | 25272 |  | 
 | 25273 | cat >>confdefs.h <<\_ACEOF | 
 | 25274 | #define HAVE_LT_DLOPEN 1 | 
 | 25275 | _ACEOF | 
 | 25276 |  | 
 | 25277 | else | 
 | 25278 |   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might | 
 | 25279 |                            not be available" >&5 | 
 | 25280 | echo "$as_me: WARNING: lt_dlopen() not found - plugin support might | 
 | 25281 |                            not be available" >&2;} | 
 | 25282 | fi | 
 | 25283 |  | 
 | 25284 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25285 | echo "$as_me:$LINENO: checking for library containing dlopen" >&5 | 
 | 25286 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6 | 
 | 25287 | if test "${ac_cv_search_dlopen+set}" = set; then | 
 | 25288 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 25289 | else | 
 | 25290 |   ac_func_search_save_LIBS=$LIBS | 
 | 25291 | ac_cv_search_dlopen=no | 
 | 25292 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25293 | /* confdefs.h.  */ | 
 | 25294 | _ACEOF | 
 | 25295 | cat confdefs.h >>conftest.$ac_ext | 
 | 25296 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 25297 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25298 |  | 
 | 25299 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 25300 | #ifdef __cplusplus | 
 | 25301 | extern "C" | 
 | 25302 | #endif | 
 | 25303 | /* We use char because int might match the return type of a gcc2 | 
 | 25304 |    builtin and then its argument prototype would still apply.  */ | 
 | 25305 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25306 | int | 
 | 25307 | main () | 
 | 25308 | { | 
 | 25309 | dlopen (); | 
 | 25310 |   ; | 
 | 25311 |   return 0; | 
 | 25312 | } | 
 | 25313 | _ACEOF | 
 | 25314 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 25315 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25316 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25317 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25318 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 25319 |   rm -f conftest.er1 | 
 | 25320 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25321 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25322 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25323 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 25324 | 			 || test ! -s conftest.err' | 
 | 25325 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25326 |   (eval $ac_try) 2>&5 | 
 | 25327 |   ac_status=$? | 
 | 25328 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25329 |   (exit $ac_status); }; } && | 
 | 25330 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25331 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25332 |   (eval $ac_try) 2>&5 | 
 | 25333 |   ac_status=$? | 
 | 25334 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25335 |   (exit $ac_status); }; }; then | 
 | 25336 |   ac_cv_search_dlopen="none required" | 
 | 25337 | else | 
 | 25338 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25339 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 25340 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25341 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25342 | rm -f conftest.err conftest.$ac_objext \ | 
 | 25343 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25344 | if test "$ac_cv_search_dlopen" = no; then | 
 | 25345 |   for ac_lib in dl; do | 
 | 25346 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
 | 25347 |     cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25348 | /* confdefs.h.  */ | 
 | 25349 | _ACEOF | 
 | 25350 | cat confdefs.h >>conftest.$ac_ext | 
 | 25351 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 25352 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25353 |  | 
 | 25354 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 25355 | #ifdef __cplusplus | 
 | 25356 | extern "C" | 
 | 25357 | #endif | 
 | 25358 | /* We use char because int might match the return type of a gcc2 | 
 | 25359 |    builtin and then its argument prototype would still apply.  */ | 
 | 25360 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25361 | int | 
 | 25362 | main () | 
 | 25363 | { | 
 | 25364 | dlopen (); | 
 | 25365 |   ; | 
 | 25366 |   return 0; | 
 | 25367 | } | 
 | 25368 | _ACEOF | 
 | 25369 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 25370 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25371 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25372 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25373 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 25374 |   rm -f conftest.er1 | 
 | 25375 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25376 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25377 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25378 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 25379 | 			 || test ! -s conftest.err' | 
 | 25380 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25381 |   (eval $ac_try) 2>&5 | 
 | 25382 |   ac_status=$? | 
 | 25383 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25384 |   (exit $ac_status); }; } && | 
 | 25385 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25386 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25387 |   (eval $ac_try) 2>&5 | 
 | 25388 |   ac_status=$? | 
 | 25389 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25390 |   (exit $ac_status); }; }; then | 
 | 25391 |   ac_cv_search_dlopen="-l$ac_lib" | 
 | 25392 | break | 
 | 25393 | else | 
 | 25394 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25395 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 25396 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25397 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25398 | rm -f conftest.err conftest.$ac_objext \ | 
 | 25399 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25400 |   done | 
 | 25401 | fi | 
 | 25402 | LIBS=$ac_func_search_save_LIBS | 
 | 25403 | fi | 
 | 25404 | echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 | 
 | 25405 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6 | 
 | 25406 | if test "$ac_cv_search_dlopen" != no; then | 
 | 25407 |   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] | 25408 |  | 
 | 25409 | cat >>confdefs.h <<\_ACEOF | 
| Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 25410 | #define HAVE_DLOPEN 1 | 
 | 25411 | _ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25412 |  | 
 | 25413 | else | 
| Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 25414 |   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 | 
 | 25415 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25416 | fi | 
 | 25417 |  | 
 | 25418 |  | 
 | 25419 | echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 | 
 | 25420 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6 | 
 | 25421 | if test "${ac_cv_search_mallinfo+set}" = set; then | 
 | 25422 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 25423 | else | 
 | 25424 |   ac_func_search_save_LIBS=$LIBS | 
 | 25425 | ac_cv_search_mallinfo=no | 
 | 25426 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25427 | /* confdefs.h.  */ | 
 | 25428 | _ACEOF | 
 | 25429 | cat confdefs.h >>conftest.$ac_ext | 
 | 25430 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 25431 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25432 |  | 
 | 25433 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 25434 | #ifdef __cplusplus | 
 | 25435 | extern "C" | 
 | 25436 | #endif | 
 | 25437 | /* We use char because int might match the return type of a gcc2 | 
 | 25438 |    builtin and then its argument prototype would still apply.  */ | 
 | 25439 | char mallinfo (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25440 | int | 
 | 25441 | main () | 
 | 25442 | { | 
 | 25443 | mallinfo (); | 
 | 25444 |   ; | 
 | 25445 |   return 0; | 
 | 25446 | } | 
 | 25447 | _ACEOF | 
 | 25448 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 25449 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25450 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25451 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25452 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 25453 |   rm -f conftest.er1 | 
 | 25454 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25455 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25456 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25457 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 25458 | 			 || test ! -s conftest.err' | 
 | 25459 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25460 |   (eval $ac_try) 2>&5 | 
 | 25461 |   ac_status=$? | 
 | 25462 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25463 |   (exit $ac_status); }; } && | 
 | 25464 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25465 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25466 |   (eval $ac_try) 2>&5 | 
 | 25467 |   ac_status=$? | 
 | 25468 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25469 |   (exit $ac_status); }; }; then | 
 | 25470 |   ac_cv_search_mallinfo="none required" | 
 | 25471 | else | 
 | 25472 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25473 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 25474 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25475 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25476 | rm -f conftest.err conftest.$ac_objext \ | 
 | 25477 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25478 | if test "$ac_cv_search_mallinfo" = no; then | 
 | 25479 |   for ac_lib in malloc; do | 
 | 25480 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
 | 25481 |     cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25482 | /* confdefs.h.  */ | 
 | 25483 | _ACEOF | 
 | 25484 | cat confdefs.h >>conftest.$ac_ext | 
 | 25485 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 25486 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25487 |  | 
 | 25488 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 25489 | #ifdef __cplusplus | 
 | 25490 | extern "C" | 
 | 25491 | #endif | 
 | 25492 | /* We use char because int might match the return type of a gcc2 | 
 | 25493 |    builtin and then its argument prototype would still apply.  */ | 
 | 25494 | char mallinfo (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25495 | int | 
 | 25496 | main () | 
 | 25497 | { | 
 | 25498 | mallinfo (); | 
 | 25499 |   ; | 
 | 25500 |   return 0; | 
 | 25501 | } | 
 | 25502 | _ACEOF | 
 | 25503 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 25504 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25505 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25506 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25507 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 25508 |   rm -f conftest.er1 | 
 | 25509 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25510 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25511 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25512 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 25513 | 			 || test ! -s conftest.err' | 
 | 25514 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25515 |   (eval $ac_try) 2>&5 | 
 | 25516 |   ac_status=$? | 
 | 25517 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25518 |   (exit $ac_status); }; } && | 
 | 25519 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25520 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25521 |   (eval $ac_try) 2>&5 | 
 | 25522 |   ac_status=$? | 
 | 25523 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25524 |   (exit $ac_status); }; }; then | 
 | 25525 |   ac_cv_search_mallinfo="-l$ac_lib" | 
 | 25526 | break | 
 | 25527 | else | 
 | 25528 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25529 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 25530 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25531 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25532 | rm -f conftest.err conftest.$ac_objext \ | 
 | 25533 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25534 |   done | 
 | 25535 | fi | 
 | 25536 | LIBS=$ac_func_search_save_LIBS | 
 | 25537 | fi | 
 | 25538 | echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 | 
 | 25539 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6 | 
 | 25540 | if test "$ac_cv_search_mallinfo" != no; then | 
 | 25541 |   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] | 25542 |  | 
 | 25543 | cat >>confdefs.h <<\_ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25544 | #define HAVE_MALLINFO 1 | 
 | 25545 | _ACEOF | 
 | 25546 |  | 
 | 25547 | fi | 
 | 25548 |  | 
 | 25549 |  | 
| Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 25550 | if test "$ENABLE_THREADS" -eq 1 ; then | 
| Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 25551 |  | 
 | 25552 | echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 | 
 | 25553 | echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6 | 
 | 25554 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then | 
 | 25555 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 25556 | else | 
 | 25557 |   ac_check_lib_save_LIBS=$LIBS | 
 | 25558 | LIBS="-lpthread  $LIBS" | 
 | 25559 | cat >conftest.$ac_ext <<_ACEOF | 
 | 25560 | /* confdefs.h.  */ | 
 | 25561 | _ACEOF | 
 | 25562 | cat confdefs.h >>conftest.$ac_ext | 
 | 25563 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 25564 | /* end confdefs.h.  */ | 
 | 25565 |  | 
 | 25566 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 25567 | #ifdef __cplusplus | 
 | 25568 | extern "C" | 
 | 25569 | #endif | 
 | 25570 | /* We use char because int might match the return type of a gcc2 | 
 | 25571 |    builtin and then its argument prototype would still apply.  */ | 
 | 25572 | char pthread_mutex_init (); | 
 | 25573 | int | 
 | 25574 | main () | 
 | 25575 | { | 
 | 25576 | pthread_mutex_init (); | 
 | 25577 |   ; | 
 | 25578 |   return 0; | 
 | 25579 | } | 
 | 25580 | _ACEOF | 
 | 25581 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 25582 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 25583 |   (eval $ac_link) 2>conftest.er1 | 
 | 25584 |   ac_status=$? | 
 | 25585 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 25586 |   rm -f conftest.er1 | 
 | 25587 |   cat conftest.err >&5 | 
 | 25588 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25589 |   (exit $ac_status); } && | 
 | 25590 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 25591 | 			 || test ! -s conftest.err' | 
 | 25592 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25593 |   (eval $ac_try) 2>&5 | 
 | 25594 |   ac_status=$? | 
 | 25595 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25596 |   (exit $ac_status); }; } && | 
 | 25597 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 25598 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25599 |   (eval $ac_try) 2>&5 | 
 | 25600 |   ac_status=$? | 
 | 25601 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25602 |   (exit $ac_status); }; }; then | 
 | 25603 |   ac_cv_lib_pthread_pthread_mutex_init=yes | 
 | 25604 | else | 
 | 25605 |   echo "$as_me: failed program was:" >&5 | 
 | 25606 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 25607 |  | 
 | 25608 | ac_cv_lib_pthread_pthread_mutex_init=no | 
 | 25609 | fi | 
 | 25610 | rm -f conftest.err conftest.$ac_objext \ | 
 | 25611 |       conftest$ac_exeext conftest.$ac_ext | 
 | 25612 | LIBS=$ac_check_lib_save_LIBS | 
 | 25613 | fi | 
 | 25614 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 | 
 | 25615 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6 | 
 | 25616 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then | 
 | 25617 |   cat >>confdefs.h <<_ACEOF | 
 | 25618 | #define HAVE_LIBPTHREAD 1 | 
 | 25619 | _ACEOF | 
 | 25620 |  | 
 | 25621 |   LIBS="-lpthread $LIBS" | 
 | 25622 |  | 
 | 25623 | fi | 
 | 25624 |  | 
| Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 25625 |   echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25626 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6 | 
 | 25627 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | 
 | 25628 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 25629 | else | 
 | 25630 |   ac_func_search_save_LIBS=$LIBS | 
 | 25631 | ac_cv_search_pthread_mutex_lock=no | 
 | 25632 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25633 | /* confdefs.h.  */ | 
 | 25634 | _ACEOF | 
 | 25635 | cat confdefs.h >>conftest.$ac_ext | 
 | 25636 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 25637 | /* end confdefs.h.  */ | 
 | 25638 |  | 
 | 25639 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 25640 | #ifdef __cplusplus | 
 | 25641 | extern "C" | 
 | 25642 | #endif | 
 | 25643 | /* We use char because int might match the return type of a gcc2 | 
 | 25644 |    builtin and then its argument prototype would still apply.  */ | 
 | 25645 | char pthread_mutex_lock (); | 
 | 25646 | int | 
 | 25647 | main () | 
 | 25648 | { | 
 | 25649 | pthread_mutex_lock (); | 
 | 25650 |   ; | 
 | 25651 |   return 0; | 
 | 25652 | } | 
 | 25653 | _ACEOF | 
 | 25654 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 25655 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25656 |   (eval $ac_link) 2>conftest.er1 | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25657 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25658 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 25659 |   rm -f conftest.er1 | 
 | 25660 |   cat conftest.err >&5 | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25661 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25662 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25663 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 25664 | 			 || test ! -s conftest.err' | 
 | 25665 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25666 |   (eval $ac_try) 2>&5 | 
 | 25667 |   ac_status=$? | 
 | 25668 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25669 |   (exit $ac_status); }; } && | 
 | 25670 | 	 { ac_try='test -s conftest$ac_exeext' | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25671 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25672 |   (eval $ac_try) 2>&5 | 
 | 25673 |   ac_status=$? | 
 | 25674 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25675 |   (exit $ac_status); }; }; then | 
 | 25676 |   ac_cv_search_pthread_mutex_lock="none required" | 
 | 25677 | else | 
 | 25678 |   echo "$as_me: failed program was:" >&5 | 
 | 25679 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 25680 |  | 
 | 25681 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25682 | rm -f conftest.err conftest.$ac_objext \ | 
 | 25683 |       conftest$ac_exeext conftest.$ac_ext | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25684 | if test "$ac_cv_search_pthread_mutex_lock" = no; then | 
 | 25685 |   for ac_lib in pthread; do | 
 | 25686 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
 | 25687 |     cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25688 | /* confdefs.h.  */ | 
 | 25689 | _ACEOF | 
 | 25690 | cat confdefs.h >>conftest.$ac_ext | 
 | 25691 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 25692 | /* end confdefs.h.  */ | 
 | 25693 |  | 
 | 25694 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 25695 | #ifdef __cplusplus | 
 | 25696 | extern "C" | 
 | 25697 | #endif | 
 | 25698 | /* We use char because int might match the return type of a gcc2 | 
 | 25699 |    builtin and then its argument prototype would still apply.  */ | 
 | 25700 | char pthread_mutex_lock (); | 
 | 25701 | int | 
 | 25702 | main () | 
 | 25703 | { | 
 | 25704 | pthread_mutex_lock (); | 
 | 25705 |   ; | 
 | 25706 |   return 0; | 
 | 25707 | } | 
 | 25708 | _ACEOF | 
 | 25709 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 25710 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25711 |   (eval $ac_link) 2>conftest.er1 | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25712 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25713 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 25714 |   rm -f conftest.er1 | 
 | 25715 |   cat conftest.err >&5 | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25716 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25717 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25718 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 25719 | 			 || test ! -s conftest.err' | 
 | 25720 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25721 |   (eval $ac_try) 2>&5 | 
 | 25722 |   ac_status=$? | 
 | 25723 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25724 |   (exit $ac_status); }; } && | 
 | 25725 | 	 { ac_try='test -s conftest$ac_exeext' | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25726 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25727 |   (eval $ac_try) 2>&5 | 
 | 25728 |   ac_status=$? | 
 | 25729 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25730 |   (exit $ac_status); }; }; then | 
 | 25731 |   ac_cv_search_pthread_mutex_lock="-l$ac_lib" | 
 | 25732 | break | 
 | 25733 | else | 
 | 25734 |   echo "$as_me: failed program was:" >&5 | 
 | 25735 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 25736 |  | 
 | 25737 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25738 | rm -f conftest.err conftest.$ac_objext \ | 
 | 25739 |       conftest$ac_exeext conftest.$ac_ext | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25740 |   done | 
 | 25741 | fi | 
 | 25742 | LIBS=$ac_func_search_save_LIBS | 
 | 25743 | fi | 
 | 25744 | echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 | 
 | 25745 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6 | 
 | 25746 | if test "$ac_cv_search_pthread_mutex_lock" != no; then | 
 | 25747 |   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS" | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25748 |  | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 25749 | cat >>confdefs.h <<\_ACEOF | 
 | 25750 | #define HAVE_PTHREAD_MUTEX_LOCK 1 | 
 | 25751 | _ACEOF | 
 | 25752 |  | 
 | 25753 | fi | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25754 |  | 
| Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 25755 | fi | 
| Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 25756 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25757 |  | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 25758 |  | 
 | 25759 |  | 
 | 25760 |  | 
 | 25761 |  | 
 | 25762 |  | 
 | 25763 | ac_header_dirent=no | 
 | 25764 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | 
 | 25765 |   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | 
 | 25766 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | 
 | 25767 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | 
 | 25768 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 25769 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 25770 | else | 
 | 25771 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 25772 | /* confdefs.h.  */ | 
 | 25773 | _ACEOF | 
 | 25774 | cat confdefs.h >>conftest.$ac_ext | 
 | 25775 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 25776 | /* end confdefs.h.  */ | 
 | 25777 | #include <sys/types.h> | 
 | 25778 | #include <$ac_hdr> | 
 | 25779 |  | 
 | 25780 | int | 
 | 25781 | main () | 
 | 25782 | { | 
 | 25783 | if ((DIR *) 0) | 
 | 25784 | return 0; | 
 | 25785 |   ; | 
 | 25786 |   return 0; | 
 | 25787 | } | 
 | 25788 | _ACEOF | 
 | 25789 | rm -f conftest.$ac_objext | 
 | 25790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 25791 |   (eval $ac_compile) 2>conftest.er1 | 
 | 25792 |   ac_status=$? | 
 | 25793 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 25794 |   rm -f conftest.er1 | 
 | 25795 |   cat conftest.err >&5 | 
 | 25796 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25797 |   (exit $ac_status); } && | 
 | 25798 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 25799 | 			 || test ! -s conftest.err' | 
 | 25800 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25801 |   (eval $ac_try) 2>&5 | 
 | 25802 |   ac_status=$? | 
 | 25803 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25804 |   (exit $ac_status); }; } && | 
 | 25805 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 25806 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25807 |   (eval $ac_try) 2>&5 | 
 | 25808 |   ac_status=$? | 
 | 25809 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25810 |   (exit $ac_status); }; }; then | 
 | 25811 |   eval "$as_ac_Header=yes" | 
 | 25812 | else | 
 | 25813 |   echo "$as_me: failed program was:" >&5 | 
 | 25814 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 25815 |  | 
 | 25816 | eval "$as_ac_Header=no" | 
 | 25817 | fi | 
 | 25818 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 25819 | fi | 
 | 25820 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 25821 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 25822 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 25823 |   cat >>confdefs.h <<_ACEOF | 
 | 25824 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | 
 | 25825 | _ACEOF | 
 | 25826 |  | 
 | 25827 | ac_header_dirent=$ac_hdr; break | 
 | 25828 | fi | 
 | 25829 |  | 
 | 25830 | done | 
 | 25831 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
 | 25832 | if test $ac_header_dirent = dirent.h; then | 
 | 25833 |   echo "$as_me:$LINENO: checking for library containing opendir" >&5 | 
 | 25834 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | 
 | 25835 | if test "${ac_cv_search_opendir+set}" = set; then | 
 | 25836 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 25837 | else | 
 | 25838 |   ac_func_search_save_LIBS=$LIBS | 
 | 25839 | ac_cv_search_opendir=no | 
 | 25840 | cat >conftest.$ac_ext <<_ACEOF | 
 | 25841 | /* confdefs.h.  */ | 
 | 25842 | _ACEOF | 
 | 25843 | cat confdefs.h >>conftest.$ac_ext | 
 | 25844 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 25845 | /* end confdefs.h.  */ | 
 | 25846 |  | 
 | 25847 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 25848 | #ifdef __cplusplus | 
 | 25849 | extern "C" | 
 | 25850 | #endif | 
 | 25851 | /* We use char because int might match the return type of a gcc2 | 
 | 25852 |    builtin and then its argument prototype would still apply.  */ | 
 | 25853 | char opendir (); | 
 | 25854 | int | 
 | 25855 | main () | 
 | 25856 | { | 
 | 25857 | opendir (); | 
 | 25858 |   ; | 
 | 25859 |   return 0; | 
 | 25860 | } | 
 | 25861 | _ACEOF | 
 | 25862 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 25863 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 25864 |   (eval $ac_link) 2>conftest.er1 | 
 | 25865 |   ac_status=$? | 
 | 25866 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 25867 |   rm -f conftest.er1 | 
 | 25868 |   cat conftest.err >&5 | 
 | 25869 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25870 |   (exit $ac_status); } && | 
 | 25871 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 25872 | 			 || test ! -s conftest.err' | 
 | 25873 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25874 |   (eval $ac_try) 2>&5 | 
 | 25875 |   ac_status=$? | 
 | 25876 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25877 |   (exit $ac_status); }; } && | 
 | 25878 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 25879 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25880 |   (eval $ac_try) 2>&5 | 
 | 25881 |   ac_status=$? | 
 | 25882 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25883 |   (exit $ac_status); }; }; then | 
 | 25884 |   ac_cv_search_opendir="none required" | 
 | 25885 | else | 
 | 25886 |   echo "$as_me: failed program was:" >&5 | 
 | 25887 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 25888 |  | 
 | 25889 | fi | 
 | 25890 | rm -f conftest.err conftest.$ac_objext \ | 
 | 25891 |       conftest$ac_exeext conftest.$ac_ext | 
 | 25892 | if test "$ac_cv_search_opendir" = no; then | 
 | 25893 |   for ac_lib in dir; do | 
 | 25894 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
 | 25895 |     cat >conftest.$ac_ext <<_ACEOF | 
 | 25896 | /* confdefs.h.  */ | 
 | 25897 | _ACEOF | 
 | 25898 | cat confdefs.h >>conftest.$ac_ext | 
 | 25899 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 25900 | /* end confdefs.h.  */ | 
 | 25901 |  | 
 | 25902 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 25903 | #ifdef __cplusplus | 
 | 25904 | extern "C" | 
 | 25905 | #endif | 
 | 25906 | /* We use char because int might match the return type of a gcc2 | 
 | 25907 |    builtin and then its argument prototype would still apply.  */ | 
 | 25908 | char opendir (); | 
 | 25909 | int | 
 | 25910 | main () | 
 | 25911 | { | 
 | 25912 | opendir (); | 
 | 25913 |   ; | 
 | 25914 |   return 0; | 
 | 25915 | } | 
 | 25916 | _ACEOF | 
 | 25917 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 25918 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 25919 |   (eval $ac_link) 2>conftest.er1 | 
 | 25920 |   ac_status=$? | 
 | 25921 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 25922 |   rm -f conftest.er1 | 
 | 25923 |   cat conftest.err >&5 | 
 | 25924 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25925 |   (exit $ac_status); } && | 
 | 25926 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 25927 | 			 || test ! -s conftest.err' | 
 | 25928 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25929 |   (eval $ac_try) 2>&5 | 
 | 25930 |   ac_status=$? | 
 | 25931 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25932 |   (exit $ac_status); }; } && | 
 | 25933 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 25934 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25935 |   (eval $ac_try) 2>&5 | 
 | 25936 |   ac_status=$? | 
 | 25937 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25938 |   (exit $ac_status); }; }; then | 
 | 25939 |   ac_cv_search_opendir="-l$ac_lib" | 
 | 25940 | break | 
 | 25941 | else | 
 | 25942 |   echo "$as_me: failed program was:" >&5 | 
 | 25943 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 25944 |  | 
 | 25945 | fi | 
 | 25946 | rm -f conftest.err conftest.$ac_objext \ | 
 | 25947 |       conftest$ac_exeext conftest.$ac_ext | 
 | 25948 |   done | 
 | 25949 | fi | 
 | 25950 | LIBS=$ac_func_search_save_LIBS | 
 | 25951 | fi | 
 | 25952 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | 
 | 25953 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | 
 | 25954 | if test "$ac_cv_search_opendir" != no; then | 
 | 25955 |   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | 
 | 25956 |  | 
 | 25957 | fi | 
 | 25958 |  | 
 | 25959 | else | 
 | 25960 |   echo "$as_me:$LINENO: checking for library containing opendir" >&5 | 
 | 25961 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | 
 | 25962 | if test "${ac_cv_search_opendir+set}" = set; then | 
 | 25963 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 25964 | else | 
 | 25965 |   ac_func_search_save_LIBS=$LIBS | 
 | 25966 | ac_cv_search_opendir=no | 
 | 25967 | cat >conftest.$ac_ext <<_ACEOF | 
 | 25968 | /* confdefs.h.  */ | 
 | 25969 | _ACEOF | 
 | 25970 | cat confdefs.h >>conftest.$ac_ext | 
 | 25971 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 25972 | /* end confdefs.h.  */ | 
 | 25973 |  | 
 | 25974 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 25975 | #ifdef __cplusplus | 
 | 25976 | extern "C" | 
 | 25977 | #endif | 
 | 25978 | /* We use char because int might match the return type of a gcc2 | 
 | 25979 |    builtin and then its argument prototype would still apply.  */ | 
 | 25980 | char opendir (); | 
 | 25981 | int | 
 | 25982 | main () | 
 | 25983 | { | 
 | 25984 | opendir (); | 
 | 25985 |   ; | 
 | 25986 |   return 0; | 
 | 25987 | } | 
 | 25988 | _ACEOF | 
 | 25989 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 25990 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 25991 |   (eval $ac_link) 2>conftest.er1 | 
 | 25992 |   ac_status=$? | 
 | 25993 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 25994 |   rm -f conftest.er1 | 
 | 25995 |   cat conftest.err >&5 | 
 | 25996 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25997 |   (exit $ac_status); } && | 
 | 25998 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 25999 | 			 || test ! -s conftest.err' | 
 | 26000 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26001 |   (eval $ac_try) 2>&5 | 
 | 26002 |   ac_status=$? | 
 | 26003 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26004 |   (exit $ac_status); }; } && | 
 | 26005 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 26006 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26007 |   (eval $ac_try) 2>&5 | 
 | 26008 |   ac_status=$? | 
 | 26009 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26010 |   (exit $ac_status); }; }; then | 
 | 26011 |   ac_cv_search_opendir="none required" | 
 | 26012 | else | 
 | 26013 |   echo "$as_me: failed program was:" >&5 | 
 | 26014 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 26015 |  | 
 | 26016 | fi | 
 | 26017 | rm -f conftest.err conftest.$ac_objext \ | 
 | 26018 |       conftest$ac_exeext conftest.$ac_ext | 
 | 26019 | if test "$ac_cv_search_opendir" = no; then | 
 | 26020 |   for ac_lib in x; do | 
 | 26021 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
 | 26022 |     cat >conftest.$ac_ext <<_ACEOF | 
 | 26023 | /* confdefs.h.  */ | 
 | 26024 | _ACEOF | 
 | 26025 | cat confdefs.h >>conftest.$ac_ext | 
 | 26026 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 26027 | /* end confdefs.h.  */ | 
 | 26028 |  | 
 | 26029 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 26030 | #ifdef __cplusplus | 
 | 26031 | extern "C" | 
 | 26032 | #endif | 
 | 26033 | /* We use char because int might match the return type of a gcc2 | 
 | 26034 |    builtin and then its argument prototype would still apply.  */ | 
 | 26035 | char opendir (); | 
 | 26036 | int | 
 | 26037 | main () | 
 | 26038 | { | 
 | 26039 | opendir (); | 
 | 26040 |   ; | 
 | 26041 |   return 0; | 
 | 26042 | } | 
 | 26043 | _ACEOF | 
 | 26044 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 26045 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 26046 |   (eval $ac_link) 2>conftest.er1 | 
 | 26047 |   ac_status=$? | 
 | 26048 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 26049 |   rm -f conftest.er1 | 
 | 26050 |   cat conftest.err >&5 | 
 | 26051 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26052 |   (exit $ac_status); } && | 
 | 26053 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 26054 | 			 || test ! -s conftest.err' | 
 | 26055 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26056 |   (eval $ac_try) 2>&5 | 
 | 26057 |   ac_status=$? | 
 | 26058 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26059 |   (exit $ac_status); }; } && | 
 | 26060 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 26061 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26062 |   (eval $ac_try) 2>&5 | 
 | 26063 |   ac_status=$? | 
 | 26064 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26065 |   (exit $ac_status); }; }; then | 
 | 26066 |   ac_cv_search_opendir="-l$ac_lib" | 
 | 26067 | break | 
 | 26068 | else | 
 | 26069 |   echo "$as_me: failed program was:" >&5 | 
 | 26070 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 26071 |  | 
 | 26072 | fi | 
 | 26073 | rm -f conftest.err conftest.$ac_objext \ | 
 | 26074 |       conftest$ac_exeext conftest.$ac_ext | 
 | 26075 |   done | 
 | 26076 | fi | 
 | 26077 | LIBS=$ac_func_search_save_LIBS | 
 | 26078 | fi | 
 | 26079 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | 
 | 26080 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | 
 | 26081 | if test "$ac_cv_search_opendir" != no; then | 
 | 26082 |   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | 
 | 26083 |  | 
 | 26084 | fi | 
 | 26085 |  | 
 | 26086 | fi | 
 | 26087 |  | 
 | 26088 | echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 | 
 | 26089 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6 | 
 | 26090 | if test "${ac_cv_header_mmap_anon+set}" = set; then | 
 | 26091 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 26092 | else | 
 | 26093 |    ac_ext=c | 
 | 26094 | ac_cpp='$CPP $CPPFLAGS' | 
 | 26095 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 26096 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 26097 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 26098 |  | 
 | 26099 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 26100 | /* confdefs.h.  */ | 
 | 26101 | _ACEOF | 
 | 26102 | cat confdefs.h >>conftest.$ac_ext | 
 | 26103 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 26104 | /* end confdefs.h.  */ | 
 | 26105 | #include <sys/mman.h> | 
 | 26106 | #include <unistd.h> | 
 | 26107 | #include <fcntl.h> | 
 | 26108 | int | 
 | 26109 | main () | 
 | 26110 | { | 
 | 26111 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); | 
 | 26112 |   ; | 
 | 26113 |   return 0; | 
 | 26114 | } | 
 | 26115 | _ACEOF | 
 | 26116 | rm -f conftest.$ac_objext | 
 | 26117 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 26118 |   (eval $ac_compile) 2>conftest.er1 | 
 | 26119 |   ac_status=$? | 
 | 26120 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 26121 |   rm -f conftest.er1 | 
 | 26122 |   cat conftest.err >&5 | 
 | 26123 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26124 |   (exit $ac_status); } && | 
 | 26125 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 26126 | 			 || test ! -s conftest.err' | 
 | 26127 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26128 |   (eval $ac_try) 2>&5 | 
 | 26129 |   ac_status=$? | 
 | 26130 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26131 |   (exit $ac_status); }; } && | 
 | 26132 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 26133 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26134 |   (eval $ac_try) 2>&5 | 
 | 26135 |   ac_status=$? | 
 | 26136 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26137 |   (exit $ac_status); }; }; then | 
 | 26138 |   ac_cv_header_mmap_anon=yes | 
 | 26139 | else | 
 | 26140 |   echo "$as_me: failed program was:" >&5 | 
 | 26141 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 26142 |  | 
 | 26143 | ac_cv_header_mmap_anon=no | 
 | 26144 | fi | 
 | 26145 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 26146 |   ac_ext=c | 
 | 26147 | ac_cpp='$CPP $CPPFLAGS' | 
 | 26148 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 26149 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 26150 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 26151 |  | 
 | 26152 |  | 
 | 26153 | fi | 
 | 26154 | echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 | 
 | 26155 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6 | 
 | 26156 | if test "$ac_cv_header_mmap_anon" = yes; then | 
 | 26157 |  | 
 | 26158 | cat >>confdefs.h <<\_ACEOF | 
| Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 26159 | #define HAVE_MMAP_ANONYMOUS 1 | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26160 | _ACEOF | 
 | 26161 |  | 
 | 26162 | fi | 
 | 26163 |  | 
 | 26164 | echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 | 
 | 26165 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 | 
 | 26166 | if test "${ac_cv_header_stat_broken+set}" = set; then | 
 | 26167 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 26168 | else | 
 | 26169 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 26170 | /* confdefs.h.  */ | 
 | 26171 | _ACEOF | 
 | 26172 | cat confdefs.h >>conftest.$ac_ext | 
 | 26173 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 26174 | /* end confdefs.h.  */ | 
 | 26175 | #include <sys/types.h> | 
 | 26176 | #include <sys/stat.h> | 
 | 26177 |  | 
 | 26178 | #if defined(S_ISBLK) && defined(S_IFDIR) | 
 | 26179 | # if S_ISBLK (S_IFDIR) | 
 | 26180 | You lose. | 
 | 26181 | # endif | 
 | 26182 | #endif | 
 | 26183 |  | 
 | 26184 | #if defined(S_ISBLK) && defined(S_IFCHR) | 
 | 26185 | # if S_ISBLK (S_IFCHR) | 
 | 26186 | You lose. | 
 | 26187 | # endif | 
 | 26188 | #endif | 
 | 26189 |  | 
 | 26190 | #if defined(S_ISLNK) && defined(S_IFREG) | 
 | 26191 | # if S_ISLNK (S_IFREG) | 
 | 26192 | You lose. | 
 | 26193 | # endif | 
 | 26194 | #endif | 
 | 26195 |  | 
 | 26196 | #if defined(S_ISSOCK) && defined(S_IFREG) | 
 | 26197 | # if S_ISSOCK (S_IFREG) | 
 | 26198 | You lose. | 
 | 26199 | # endif | 
 | 26200 | #endif | 
 | 26201 |  | 
 | 26202 | _ACEOF | 
 | 26203 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 26204 |   $EGREP "You lose" >/dev/null 2>&1; then | 
 | 26205 |   ac_cv_header_stat_broken=yes | 
 | 26206 | else | 
 | 26207 |   ac_cv_header_stat_broken=no | 
 | 26208 | fi | 
 | 26209 | rm -f conftest* | 
 | 26210 |  | 
 | 26211 | fi | 
 | 26212 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 | 
 | 26213 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 | 
 | 26214 | if test $ac_cv_header_stat_broken = yes; then | 
 | 26215 |  | 
 | 26216 | cat >>confdefs.h <<\_ACEOF | 
 | 26217 | #define STAT_MACROS_BROKEN 1 | 
 | 26218 | _ACEOF | 
 | 26219 |  | 
 | 26220 | fi | 
 | 26221 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26222 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | 
 | 26223 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | 
 | 26224 | if test "${ac_cv_header_stdc+set}" = set; then | 
 | 26225 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 26226 | else | 
 | 26227 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26228 | /* confdefs.h.  */ | 
 | 26229 | _ACEOF | 
 | 26230 | cat confdefs.h >>conftest.$ac_ext | 
 | 26231 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 26232 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26233 | #include <stdlib.h> | 
 | 26234 | #include <stdarg.h> | 
 | 26235 | #include <string.h> | 
 | 26236 | #include <float.h> | 
 | 26237 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26238 | int | 
 | 26239 | main () | 
 | 26240 | { | 
 | 26241 |  | 
 | 26242 |   ; | 
 | 26243 |   return 0; | 
 | 26244 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26245 | _ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26246 | rm -f conftest.$ac_objext | 
 | 26247 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26248 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26249 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26250 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 26251 |   rm -f conftest.er1 | 
 | 26252 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26253 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26254 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26255 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 26256 | 			 || test ! -s conftest.err' | 
 | 26257 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26258 |   (eval $ac_try) 2>&5 | 
 | 26259 |   ac_status=$? | 
 | 26260 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26261 |   (exit $ac_status); }; } && | 
 | 26262 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26263 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26264 |   (eval $ac_try) 2>&5 | 
 | 26265 |   ac_status=$? | 
 | 26266 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26267 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26268 |   ac_cv_header_stdc=yes | 
 | 26269 | else | 
 | 26270 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26271 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 26272 |  | 
 | 26273 | ac_cv_header_stdc=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26274 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26275 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26276 |  | 
 | 26277 | if test $ac_cv_header_stdc = yes; then | 
 | 26278 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
 | 26279 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26280 | /* confdefs.h.  */ | 
 | 26281 | _ACEOF | 
 | 26282 | cat confdefs.h >>conftest.$ac_ext | 
 | 26283 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 26284 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26285 | #include <string.h> | 
 | 26286 |  | 
 | 26287 | _ACEOF | 
 | 26288 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26289 |   $EGREP "memchr" >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26290 |   : | 
 | 26291 | else | 
 | 26292 |   ac_cv_header_stdc=no | 
 | 26293 | fi | 
 | 26294 | rm -f conftest* | 
 | 26295 |  | 
 | 26296 | fi | 
 | 26297 |  | 
 | 26298 | if test $ac_cv_header_stdc = yes; then | 
 | 26299 |   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
 | 26300 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26301 | /* confdefs.h.  */ | 
 | 26302 | _ACEOF | 
 | 26303 | cat confdefs.h >>conftest.$ac_ext | 
 | 26304 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 26305 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26306 | #include <stdlib.h> | 
 | 26307 |  | 
 | 26308 | _ACEOF | 
 | 26309 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26310 |   $EGREP "free" >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26311 |   : | 
 | 26312 | else | 
 | 26313 |   ac_cv_header_stdc=no | 
 | 26314 | fi | 
 | 26315 | rm -f conftest* | 
 | 26316 |  | 
 | 26317 | fi | 
 | 26318 |  | 
 | 26319 | if test $ac_cv_header_stdc = yes; then | 
 | 26320 |   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
 | 26321 |   if test "$cross_compiling" = yes; then | 
 | 26322 |   : | 
 | 26323 | else | 
 | 26324 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26325 | /* confdefs.h.  */ | 
 | 26326 | _ACEOF | 
 | 26327 | cat confdefs.h >>conftest.$ac_ext | 
 | 26328 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 26329 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26330 | #include <ctype.h> | 
 | 26331 | #if ((' ' & 0x0FF) == 0x020) | 
 | 26332 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 26333 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
 | 26334 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26335 | # define ISLOWER(c) \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26336 | 		   (('a' <= (c) && (c) <= 'i') \ | 
 | 26337 | 		     || ('j' <= (c) && (c) <= 'r') \ | 
 | 26338 | 		     || ('s' <= (c) && (c) <= 'z')) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26339 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
 | 26340 | #endif | 
 | 26341 |  | 
 | 26342 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
 | 26343 | int | 
 | 26344 | main () | 
 | 26345 | { | 
 | 26346 |   int i; | 
 | 26347 |   for (i = 0; i < 256; i++) | 
 | 26348 |     if (XOR (islower (i), ISLOWER (i)) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26349 | 	|| toupper (i) != TOUPPER (i)) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26350 |       exit(2); | 
 | 26351 |   exit (0); | 
 | 26352 | } | 
 | 26353 | _ACEOF | 
 | 26354 | rm -f conftest$ac_exeext | 
 | 26355 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 26356 |   (eval $ac_link) 2>&5 | 
 | 26357 |   ac_status=$? | 
 | 26358 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26359 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
 | 26360 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26361 |   (eval $ac_try) 2>&5 | 
 | 26362 |   ac_status=$? | 
 | 26363 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26364 |   (exit $ac_status); }; }; then | 
 | 26365 |   : | 
 | 26366 | else | 
 | 26367 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 26368 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26369 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 26370 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26371 | ( exit $ac_status ) | 
 | 26372 | ac_cv_header_stdc=no | 
 | 26373 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26374 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26375 | fi | 
 | 26376 | fi | 
 | 26377 | fi | 
 | 26378 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | 
 | 26379 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | 
 | 26380 | if test $ac_cv_header_stdc = yes; then | 
 | 26381 |  | 
 | 26382 | cat >>confdefs.h <<\_ACEOF | 
 | 26383 | #define STDC_HEADERS 1 | 
 | 26384 | _ACEOF | 
 | 26385 |  | 
 | 26386 | fi | 
 | 26387 |  | 
 | 26388 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 | 
 | 26389 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 | 
 | 26390 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | 
 | 26391 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 26392 | else | 
 | 26393 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26394 | /* confdefs.h.  */ | 
 | 26395 | _ACEOF | 
 | 26396 | cat confdefs.h >>conftest.$ac_ext | 
 | 26397 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 26398 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26399 | #include <sys/types.h> | 
 | 26400 | #include <sys/wait.h> | 
 | 26401 | #ifndef WEXITSTATUS | 
 | 26402 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | 
 | 26403 | #endif | 
 | 26404 | #ifndef WIFEXITED | 
 | 26405 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | 
 | 26406 | #endif | 
 | 26407 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26408 | int | 
 | 26409 | main () | 
 | 26410 | { | 
 | 26411 |   int s; | 
 | 26412 |   wait (&s); | 
 | 26413 |   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | 
 | 26414 |   ; | 
 | 26415 |   return 0; | 
 | 26416 | } | 
 | 26417 | _ACEOF | 
 | 26418 | rm -f conftest.$ac_objext | 
 | 26419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26420 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26421 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26422 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 26423 |   rm -f conftest.er1 | 
 | 26424 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26425 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26426 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26427 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 26428 | 			 || test ! -s conftest.err' | 
 | 26429 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26430 |   (eval $ac_try) 2>&5 | 
 | 26431 |   ac_status=$? | 
 | 26432 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26433 |   (exit $ac_status); }; } && | 
 | 26434 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26435 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26436 |   (eval $ac_try) 2>&5 | 
 | 26437 |   ac_status=$? | 
 | 26438 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26439 |   (exit $ac_status); }; }; then | 
 | 26440 |   ac_cv_header_sys_wait_h=yes | 
 | 26441 | else | 
 | 26442 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26443 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 26444 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26445 | ac_cv_header_sys_wait_h=no | 
 | 26446 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26447 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26448 | fi | 
 | 26449 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 | 
 | 26450 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 | 
 | 26451 | if test $ac_cv_header_sys_wait_h = yes; then | 
 | 26452 |  | 
 | 26453 | cat >>confdefs.h <<\_ACEOF | 
 | 26454 | #define HAVE_SYS_WAIT_H 1 | 
 | 26455 | _ACEOF | 
 | 26456 |  | 
 | 26457 | fi | 
 | 26458 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26459 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | 
 | 26460 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | 
 | 26461 | if test "${ac_cv_header_time+set}" = set; then | 
 | 26462 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 26463 | else | 
 | 26464 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 26465 | /* confdefs.h.  */ | 
 | 26466 | _ACEOF | 
 | 26467 | cat confdefs.h >>conftest.$ac_ext | 
 | 26468 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 26469 | /* end confdefs.h.  */ | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26470 | #include <sys/types.h> | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26471 | #include <sys/time.h> | 
 | 26472 | #include <time.h> | 
 | 26473 |  | 
 | 26474 | int | 
 | 26475 | main () | 
 | 26476 | { | 
 | 26477 | if ((struct tm *) 0) | 
 | 26478 | return 0; | 
 | 26479 |   ; | 
 | 26480 |   return 0; | 
 | 26481 | } | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26482 | _ACEOF | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26483 | rm -f conftest.$ac_objext | 
 | 26484 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 26485 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26486 |   ac_status=$? | 
 | 26487 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 26488 |   rm -f conftest.er1 | 
 | 26489 |   cat conftest.err >&5 | 
 | 26490 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26491 |   (exit $ac_status); } && | 
 | 26492 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 26493 | 			 || test ! -s conftest.err' | 
 | 26494 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26495 |   (eval $ac_try) 2>&5 | 
 | 26496 |   ac_status=$? | 
 | 26497 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26498 |   (exit $ac_status); }; } && | 
 | 26499 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 26500 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26501 |   (eval $ac_try) 2>&5 | 
 | 26502 |   ac_status=$? | 
 | 26503 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26504 |   (exit $ac_status); }; }; then | 
 | 26505 |   ac_cv_header_time=yes | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26506 | else | 
 | 26507 |   echo "$as_me: failed program was:" >&5 | 
 | 26508 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 26509 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26510 | ac_cv_header_time=no | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26511 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26512 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 26513 | fi | 
 | 26514 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 | 
 | 26515 | echo "${ECHO_T}$ac_cv_header_time" >&6 | 
 | 26516 | if test $ac_cv_header_time = yes; then | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26517 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26518 | cat >>confdefs.h <<\_ACEOF | 
 | 26519 | #define TIME_WITH_SYS_TIME 1 | 
 | 26520 | _ACEOF | 
 | 26521 |  | 
 | 26522 | fi | 
 | 26523 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26524 |  | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26525 |  | 
 | 26526 |  | 
 | 26527 |  | 
 | 26528 |  | 
 | 26529 |  | 
 | 26530 |  | 
 | 26531 | for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h | 
 | 26532 | do | 
 | 26533 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 26534 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 26535 |   echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 26536 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 26537 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 26538 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 26539 | fi | 
 | 26540 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 26541 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 26542 | else | 
 | 26543 |   # Is the header compilable? | 
 | 26544 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 26545 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
 | 26546 | cat >conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26547 | /* confdefs.h.  */ | 
 | 26548 | _ACEOF | 
 | 26549 | cat confdefs.h >>conftest.$ac_ext | 
 | 26550 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 26551 | /* end confdefs.h.  */ | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26552 | $ac_includes_default | 
 | 26553 | #include <$ac_header> | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26554 | _ACEOF | 
 | 26555 | rm -f conftest.$ac_objext | 
 | 26556 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 26557 |   (eval $ac_compile) 2>conftest.er1 | 
 | 26558 |   ac_status=$? | 
 | 26559 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 26560 |   rm -f conftest.er1 | 
 | 26561 |   cat conftest.err >&5 | 
 | 26562 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26563 |   (exit $ac_status); } && | 
 | 26564 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 26565 | 			 || test ! -s conftest.err' | 
 | 26566 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26567 |   (eval $ac_try) 2>&5 | 
 | 26568 |   ac_status=$? | 
 | 26569 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26570 |   (exit $ac_status); }; } && | 
 | 26571 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 26572 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26573 |   (eval $ac_try) 2>&5 | 
 | 26574 |   ac_status=$? | 
 | 26575 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26576 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26577 |   ac_header_compiler=yes | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26578 | else | 
 | 26579 |   echo "$as_me: failed program was:" >&5 | 
 | 26580 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 26581 |  | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26582 | ac_header_compiler=no | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26583 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26584 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26585 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 26586 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26587 |  | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26588 | # Is the header present? | 
 | 26589 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 26590 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
 | 26591 | cat >conftest.$ac_ext <<_ACEOF | 
 | 26592 | /* confdefs.h.  */ | 
 | 26593 | _ACEOF | 
 | 26594 | cat confdefs.h >>conftest.$ac_ext | 
 | 26595 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 26596 | /* end confdefs.h.  */ | 
 | 26597 | #include <$ac_header> | 
 | 26598 | _ACEOF | 
 | 26599 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 26600 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 26601 |   ac_status=$? | 
 | 26602 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 26603 |   rm -f conftest.er1 | 
 | 26604 |   cat conftest.err >&5 | 
 | 26605 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26606 |   (exit $ac_status); } >/dev/null; then | 
 | 26607 |   if test -s conftest.err; then | 
 | 26608 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 26609 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 26610 |   else | 
 | 26611 |     ac_cpp_err= | 
 | 26612 |   fi | 
 | 26613 | else | 
 | 26614 |   ac_cpp_err=yes | 
 | 26615 | fi | 
 | 26616 | if test -z "$ac_cpp_err"; then | 
 | 26617 |   ac_header_preproc=yes | 
 | 26618 | else | 
 | 26619 |   echo "$as_me: failed program was:" >&5 | 
 | 26620 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 26621 |  | 
 | 26622 |   ac_header_preproc=no | 
 | 26623 | fi | 
 | 26624 | rm -f conftest.err conftest.$ac_ext | 
 | 26625 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 26626 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
 | 26627 |  | 
 | 26628 | # So?  What about this header? | 
 | 26629 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 26630 |   yes:no: ) | 
 | 26631 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 26632 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 26633 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 26634 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
 | 26635 |     ac_header_preproc=yes | 
 | 26636 |     ;; | 
 | 26637 |   no:yes:* ) | 
 | 26638 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 26639 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
 | 26640 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 26641 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 26642 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 26643 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 26644 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 26645 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 26646 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 26647 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
 | 26648 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 26649 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
 | 26650 |     ( | 
 | 26651 |       cat <<\_ASBOX | 
 | 26652 | ## ----------------------------------- ## | 
 | 26653 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 26654 | ## ----------------------------------- ## | 
 | 26655 | _ASBOX | 
 | 26656 |     ) | | 
 | 26657 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 26658 |     ;; | 
 | 26659 | esac | 
 | 26660 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 26661 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 26662 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 26663 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 26664 | else | 
 | 26665 |   eval "$as_ac_Header=\$ac_header_preproc" | 
 | 26666 | fi | 
 | 26667 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 26668 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26669 |  | 
 | 26670 | fi | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26671 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 26672 |   cat >>confdefs.h <<_ACEOF | 
 | 26673 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26674 | _ACEOF | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26675 |  | 
 | 26676 | fi | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26677 |  | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26678 | done | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26679 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26680 |  | 
 | 26681 |  | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26682 |  | 
 | 26683 |  | 
 | 26684 |  | 
 | 26685 |  | 
| Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 26686 | for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26687 | do | 
 | 26688 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 26689 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 26690 |   echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 26691 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 26692 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 26693 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 26694 | fi | 
 | 26695 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 26696 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 26697 | else | 
 | 26698 |   # Is the header compilable? | 
 | 26699 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 26700 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
 | 26701 | cat >conftest.$ac_ext <<_ACEOF | 
 | 26702 | /* confdefs.h.  */ | 
 | 26703 | _ACEOF | 
 | 26704 | cat confdefs.h >>conftest.$ac_ext | 
 | 26705 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 26706 | /* end confdefs.h.  */ | 
 | 26707 | $ac_includes_default | 
 | 26708 | #include <$ac_header> | 
 | 26709 | _ACEOF | 
 | 26710 | rm -f conftest.$ac_objext | 
 | 26711 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 26712 |   (eval $ac_compile) 2>conftest.er1 | 
 | 26713 |   ac_status=$? | 
 | 26714 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 26715 |   rm -f conftest.er1 | 
 | 26716 |   cat conftest.err >&5 | 
 | 26717 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26718 |   (exit $ac_status); } && | 
 | 26719 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 26720 | 			 || test ! -s conftest.err' | 
 | 26721 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26722 |   (eval $ac_try) 2>&5 | 
 | 26723 |   ac_status=$? | 
 | 26724 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26725 |   (exit $ac_status); }; } && | 
 | 26726 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 26727 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26728 |   (eval $ac_try) 2>&5 | 
 | 26729 |   ac_status=$? | 
 | 26730 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26731 |   (exit $ac_status); }; }; then | 
 | 26732 |   ac_header_compiler=yes | 
 | 26733 | else | 
 | 26734 |   echo "$as_me: failed program was:" >&5 | 
 | 26735 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 26736 |  | 
 | 26737 | ac_header_compiler=no | 
 | 26738 | fi | 
 | 26739 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 26740 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 26741 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
 | 26742 |  | 
 | 26743 | # Is the header present? | 
 | 26744 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 26745 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
 | 26746 | cat >conftest.$ac_ext <<_ACEOF | 
 | 26747 | /* confdefs.h.  */ | 
 | 26748 | _ACEOF | 
 | 26749 | cat confdefs.h >>conftest.$ac_ext | 
 | 26750 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 26751 | /* end confdefs.h.  */ | 
 | 26752 | #include <$ac_header> | 
 | 26753 | _ACEOF | 
 | 26754 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 26755 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 26756 |   ac_status=$? | 
 | 26757 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 26758 |   rm -f conftest.er1 | 
 | 26759 |   cat conftest.err >&5 | 
 | 26760 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26761 |   (exit $ac_status); } >/dev/null; then | 
 | 26762 |   if test -s conftest.err; then | 
 | 26763 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 26764 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 26765 |   else | 
 | 26766 |     ac_cpp_err= | 
 | 26767 |   fi | 
 | 26768 | else | 
 | 26769 |   ac_cpp_err=yes | 
 | 26770 | fi | 
 | 26771 | if test -z "$ac_cpp_err"; then | 
 | 26772 |   ac_header_preproc=yes | 
 | 26773 | else | 
 | 26774 |   echo "$as_me: failed program was:" >&5 | 
 | 26775 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 26776 |  | 
 | 26777 |   ac_header_preproc=no | 
 | 26778 | fi | 
 | 26779 | rm -f conftest.err conftest.$ac_ext | 
 | 26780 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 26781 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
 | 26782 |  | 
 | 26783 | # So?  What about this header? | 
 | 26784 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 26785 |   yes:no: ) | 
 | 26786 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 26787 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 26788 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 26789 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
 | 26790 |     ac_header_preproc=yes | 
 | 26791 |     ;; | 
 | 26792 |   no:yes:* ) | 
 | 26793 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 26794 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
 | 26795 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 26796 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 26797 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 26798 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 26799 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 26800 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 26801 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 26802 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
 | 26803 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 26804 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
 | 26805 |     ( | 
 | 26806 |       cat <<\_ASBOX | 
 | 26807 | ## ----------------------------------- ## | 
 | 26808 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 26809 | ## ----------------------------------- ## | 
 | 26810 | _ASBOX | 
 | 26811 |     ) | | 
 | 26812 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 26813 |     ;; | 
 | 26814 | esac | 
 | 26815 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 26816 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 26817 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 26818 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 26819 | else | 
 | 26820 |   eval "$as_ac_Header=\$ac_header_preproc" | 
 | 26821 | fi | 
 | 26822 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 26823 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 26824 |  | 
 | 26825 | fi | 
 | 26826 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 26827 |   cat >>confdefs.h <<_ACEOF | 
 | 26828 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 26829 | _ACEOF | 
 | 26830 |  | 
 | 26831 | fi | 
 | 26832 |  | 
 | 26833 | done | 
 | 26834 |  | 
 | 26835 |  | 
 | 26836 |  | 
 | 26837 |  | 
 | 26838 |  | 
 | 26839 |  | 
 | 26840 | for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26841 | do | 
 | 26842 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 26843 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 26844 |   echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 26845 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 26846 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26847 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 26848 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26849 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 26850 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26851 | else | 
 | 26852 |   # Is the header compilable? | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26853 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 26854 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26855 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26856 | /* confdefs.h.  */ | 
 | 26857 | _ACEOF | 
 | 26858 | cat confdefs.h >>conftest.$ac_ext | 
 | 26859 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 26860 | /* end confdefs.h.  */ | 
 | 26861 | $ac_includes_default | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26862 | #include <$ac_header> | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26863 | _ACEOF | 
 | 26864 | rm -f conftest.$ac_objext | 
 | 26865 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26866 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26867 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26868 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 26869 |   rm -f conftest.er1 | 
 | 26870 |   cat conftest.err >&5 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26871 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26872 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26873 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 26874 | 			 || test ! -s conftest.err' | 
 | 26875 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26876 |   (eval $ac_try) 2>&5 | 
 | 26877 |   ac_status=$? | 
 | 26878 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26879 |   (exit $ac_status); }; } && | 
 | 26880 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26881 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26882 |   (eval $ac_try) 2>&5 | 
 | 26883 |   ac_status=$? | 
 | 26884 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26885 |   (exit $ac_status); }; }; then | 
 | 26886 |   ac_header_compiler=yes | 
 | 26887 | else | 
 | 26888 |   echo "$as_me: failed program was:" >&5 | 
 | 26889 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 26890 |  | 
 | 26891 | ac_header_compiler=no | 
 | 26892 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26893 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26894 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 26895 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
 | 26896 |  | 
 | 26897 | # Is the header present? | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26898 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 26899 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26900 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26901 | /* confdefs.h.  */ | 
 | 26902 | _ACEOF | 
 | 26903 | cat confdefs.h >>conftest.$ac_ext | 
 | 26904 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 26905 | /* end confdefs.h.  */ | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26906 | #include <$ac_header> | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26907 | _ACEOF | 
 | 26908 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 26909 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 26910 |   ac_status=$? | 
 | 26911 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 26912 |   rm -f conftest.er1 | 
 | 26913 |   cat conftest.err >&5 | 
 | 26914 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26915 |   (exit $ac_status); } >/dev/null; then | 
 | 26916 |   if test -s conftest.err; then | 
 | 26917 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26918 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26919 |   else | 
 | 26920 |     ac_cpp_err= | 
 | 26921 |   fi | 
 | 26922 | else | 
 | 26923 |   ac_cpp_err=yes | 
 | 26924 | fi | 
 | 26925 | if test -z "$ac_cpp_err"; then | 
 | 26926 |   ac_header_preproc=yes | 
 | 26927 | else | 
 | 26928 |   echo "$as_me: failed program was:" >&5 | 
 | 26929 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 26930 |  | 
 | 26931 |   ac_header_preproc=no | 
 | 26932 | fi | 
 | 26933 | rm -f conftest.err conftest.$ac_ext | 
 | 26934 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 26935 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
 | 26936 |  | 
 | 26937 | # So?  What about this header? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26938 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 26939 |   yes:no: ) | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26940 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 26941 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 26942 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 26943 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26944 |     ac_header_preproc=yes | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 26945 |     ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26946 |   no:yes:* ) | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26947 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 26948 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
 | 26949 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 26950 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 26951 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 26952 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 26953 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 26954 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 26955 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 26956 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
 | 26957 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 26958 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 26959 |     ( | 
 | 26960 |       cat <<\_ASBOX | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26961 | ## ----------------------------------- ## | 
 | 26962 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 26963 | ## ----------------------------------- ## | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26964 | _ASBOX | 
 | 26965 |     ) | | 
 | 26966 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 26967 |     ;; | 
 | 26968 | esac | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26969 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 26970 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 26971 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26972 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 26973 | else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26974 |   eval "$as_ac_Header=\$ac_header_preproc" | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26975 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26976 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 26977 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26978 |  | 
 | 26979 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26980 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 26981 |   cat >>confdefs.h <<_ACEOF | 
 | 26982 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 26983 | _ACEOF | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 26984 |  | 
 | 26985 | fi | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 26986 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26987 | done | 
 | 26988 |  | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 26989 |  | 
| Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 26990 | for ac_header in malloc/malloc.h | 
 | 26991 | do | 
 | 26992 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 26993 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 26994 |   echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 26995 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 26996 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 26997 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 26998 | fi | 
 | 26999 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 27000 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 27001 | else | 
 | 27002 |   # Is the header compilable? | 
 | 27003 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 27004 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
 | 27005 | cat >conftest.$ac_ext <<_ACEOF | 
 | 27006 | /* confdefs.h.  */ | 
 | 27007 | _ACEOF | 
 | 27008 | cat confdefs.h >>conftest.$ac_ext | 
 | 27009 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 27010 | /* end confdefs.h.  */ | 
 | 27011 | $ac_includes_default | 
 | 27012 | #include <$ac_header> | 
 | 27013 | _ACEOF | 
 | 27014 | rm -f conftest.$ac_objext | 
 | 27015 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 27016 |   (eval $ac_compile) 2>conftest.er1 | 
 | 27017 |   ac_status=$? | 
 | 27018 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 27019 |   rm -f conftest.er1 | 
 | 27020 |   cat conftest.err >&5 | 
 | 27021 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27022 |   (exit $ac_status); } && | 
 | 27023 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 27024 | 			 || test ! -s conftest.err' | 
 | 27025 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27026 |   (eval $ac_try) 2>&5 | 
 | 27027 |   ac_status=$? | 
 | 27028 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27029 |   (exit $ac_status); }; } && | 
 | 27030 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 27031 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27032 |   (eval $ac_try) 2>&5 | 
 | 27033 |   ac_status=$? | 
 | 27034 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27035 |   (exit $ac_status); }; }; then | 
 | 27036 |   ac_header_compiler=yes | 
 | 27037 | else | 
 | 27038 |   echo "$as_me: failed program was:" >&5 | 
 | 27039 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 27040 |  | 
 | 27041 | ac_header_compiler=no | 
 | 27042 | fi | 
 | 27043 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 27044 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 27045 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
 | 27046 |  | 
 | 27047 | # Is the header present? | 
 | 27048 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 27049 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
 | 27050 | cat >conftest.$ac_ext <<_ACEOF | 
 | 27051 | /* confdefs.h.  */ | 
 | 27052 | _ACEOF | 
 | 27053 | cat confdefs.h >>conftest.$ac_ext | 
 | 27054 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 27055 | /* end confdefs.h.  */ | 
 | 27056 | #include <$ac_header> | 
 | 27057 | _ACEOF | 
 | 27058 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 27059 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 27060 |   ac_status=$? | 
 | 27061 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 27062 |   rm -f conftest.er1 | 
 | 27063 |   cat conftest.err >&5 | 
 | 27064 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27065 |   (exit $ac_status); } >/dev/null; then | 
 | 27066 |   if test -s conftest.err; then | 
 | 27067 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 27068 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 27069 |   else | 
 | 27070 |     ac_cpp_err= | 
 | 27071 |   fi | 
 | 27072 | else | 
 | 27073 |   ac_cpp_err=yes | 
 | 27074 | fi | 
 | 27075 | if test -z "$ac_cpp_err"; then | 
 | 27076 |   ac_header_preproc=yes | 
 | 27077 | else | 
 | 27078 |   echo "$as_me: failed program was:" >&5 | 
 | 27079 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 27080 |  | 
 | 27081 |   ac_header_preproc=no | 
 | 27082 | fi | 
 | 27083 | rm -f conftest.err conftest.$ac_ext | 
 | 27084 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 27085 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
 | 27086 |  | 
 | 27087 | # So?  What about this header? | 
 | 27088 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 27089 |   yes:no: ) | 
 | 27090 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 27091 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 27092 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 27093 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
 | 27094 |     ac_header_preproc=yes | 
 | 27095 |     ;; | 
 | 27096 |   no:yes:* ) | 
 | 27097 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 27098 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
 | 27099 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 27100 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 27101 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 27102 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 27103 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 27104 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 27105 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 27106 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
 | 27107 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 27108 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
 | 27109 |     ( | 
 | 27110 |       cat <<\_ASBOX | 
 | 27111 | ## ----------------------------------- ## | 
 | 27112 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 27113 | ## ----------------------------------- ## | 
 | 27114 | _ASBOX | 
 | 27115 |     ) | | 
 | 27116 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 27117 |     ;; | 
 | 27118 | esac | 
 | 27119 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 27120 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 27121 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 27122 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 27123 | else | 
 | 27124 |   eval "$as_ac_Header=\$ac_header_preproc" | 
 | 27125 | fi | 
 | 27126 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 27127 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 27128 |  | 
 | 27129 | fi | 
 | 27130 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 27131 |   cat >>confdefs.h <<_ACEOF | 
 | 27132 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 27133 | _ACEOF | 
 | 27134 |  | 
 | 27135 | fi | 
 | 27136 |  | 
 | 27137 | done | 
 | 27138 |  | 
| Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 27139 | if test "$ENABLE_THREADS" -eq 1 ; then | 
 | 27140 |  | 
 | 27141 | for ac_header in pthread.h | 
 | 27142 | do | 
 | 27143 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 27144 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 27145 |   echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 27146 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 27147 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 27148 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 27149 | fi | 
 | 27150 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 27151 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 27152 | else | 
 | 27153 |   # Is the header compilable? | 
 | 27154 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 27155 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
 | 27156 | cat >conftest.$ac_ext <<_ACEOF | 
 | 27157 | /* confdefs.h.  */ | 
 | 27158 | _ACEOF | 
 | 27159 | cat confdefs.h >>conftest.$ac_ext | 
 | 27160 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 27161 | /* end confdefs.h.  */ | 
 | 27162 | $ac_includes_default | 
 | 27163 | #include <$ac_header> | 
 | 27164 | _ACEOF | 
 | 27165 | rm -f conftest.$ac_objext | 
 | 27166 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 27167 |   (eval $ac_compile) 2>conftest.er1 | 
 | 27168 |   ac_status=$? | 
 | 27169 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 27170 |   rm -f conftest.er1 | 
 | 27171 |   cat conftest.err >&5 | 
 | 27172 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27173 |   (exit $ac_status); } && | 
 | 27174 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 27175 | 			 || test ! -s conftest.err' | 
 | 27176 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27177 |   (eval $ac_try) 2>&5 | 
 | 27178 |   ac_status=$? | 
 | 27179 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27180 |   (exit $ac_status); }; } && | 
 | 27181 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 27182 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27183 |   (eval $ac_try) 2>&5 | 
 | 27184 |   ac_status=$? | 
 | 27185 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27186 |   (exit $ac_status); }; }; then | 
 | 27187 |   ac_header_compiler=yes | 
 | 27188 | else | 
 | 27189 |   echo "$as_me: failed program was:" >&5 | 
 | 27190 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 27191 |  | 
 | 27192 | ac_header_compiler=no | 
 | 27193 | fi | 
 | 27194 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 27195 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 27196 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
 | 27197 |  | 
 | 27198 | # Is the header present? | 
 | 27199 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 27200 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
 | 27201 | cat >conftest.$ac_ext <<_ACEOF | 
 | 27202 | /* confdefs.h.  */ | 
 | 27203 | _ACEOF | 
 | 27204 | cat confdefs.h >>conftest.$ac_ext | 
 | 27205 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 27206 | /* end confdefs.h.  */ | 
 | 27207 | #include <$ac_header> | 
 | 27208 | _ACEOF | 
 | 27209 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 27210 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 27211 |   ac_status=$? | 
 | 27212 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 27213 |   rm -f conftest.er1 | 
 | 27214 |   cat conftest.err >&5 | 
 | 27215 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27216 |   (exit $ac_status); } >/dev/null; then | 
 | 27217 |   if test -s conftest.err; then | 
 | 27218 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 27219 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 27220 |   else | 
 | 27221 |     ac_cpp_err= | 
 | 27222 |   fi | 
 | 27223 | else | 
 | 27224 |   ac_cpp_err=yes | 
 | 27225 | fi | 
 | 27226 | if test -z "$ac_cpp_err"; then | 
 | 27227 |   ac_header_preproc=yes | 
 | 27228 | else | 
 | 27229 |   echo "$as_me: failed program was:" >&5 | 
 | 27230 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 27231 |  | 
 | 27232 |   ac_header_preproc=no | 
 | 27233 | fi | 
 | 27234 | rm -f conftest.err conftest.$ac_ext | 
 | 27235 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 27236 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
 | 27237 |  | 
 | 27238 | # So?  What about this header? | 
 | 27239 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 27240 |   yes:no: ) | 
 | 27241 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 27242 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 27243 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 27244 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
 | 27245 |     ac_header_preproc=yes | 
 | 27246 |     ;; | 
 | 27247 |   no:yes:* ) | 
 | 27248 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 27249 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
 | 27250 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 27251 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 27252 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 27253 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 27254 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 27255 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 27256 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 27257 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
 | 27258 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 27259 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
 | 27260 |     ( | 
 | 27261 |       cat <<\_ASBOX | 
 | 27262 | ## ----------------------------------- ## | 
 | 27263 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 27264 | ## ----------------------------------- ## | 
 | 27265 | _ASBOX | 
 | 27266 |     ) | | 
 | 27267 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 27268 |     ;; | 
 | 27269 | esac | 
 | 27270 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 27271 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 27272 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 27273 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 27274 | else | 
 | 27275 |   eval "$as_ac_Header=\$ac_header_preproc" | 
 | 27276 | fi | 
 | 27277 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 27278 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 27279 |  | 
 | 27280 | fi | 
 | 27281 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 27282 |   cat >>confdefs.h <<_ACEOF | 
 | 27283 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 27284 | _ACEOF | 
 | 27285 |  | 
 | 27286 | fi | 
 | 27287 |  | 
 | 27288 | done | 
 | 27289 |  | 
 | 27290 | fi | 
| Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 27291 |  | 
 | 27292 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27293 | echo "$as_me:$LINENO: checking for pid_t" >&5 | 
 | 27294 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | 
 | 27295 | if test "${ac_cv_type_pid_t+set}" = set; then | 
 | 27296 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 27297 | else | 
 | 27298 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27299 | /* confdefs.h.  */ | 
 | 27300 | _ACEOF | 
 | 27301 | cat confdefs.h >>conftest.$ac_ext | 
 | 27302 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 27303 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27304 | $ac_includes_default | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27305 | int | 
 | 27306 | main () | 
 | 27307 | { | 
 | 27308 | if ((pid_t *) 0) | 
 | 27309 |   return 0; | 
 | 27310 | if (sizeof (pid_t)) | 
 | 27311 |   return 0; | 
 | 27312 |   ; | 
 | 27313 |   return 0; | 
 | 27314 | } | 
 | 27315 | _ACEOF | 
 | 27316 | rm -f conftest.$ac_objext | 
 | 27317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27318 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27319 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27320 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 27321 |   rm -f conftest.er1 | 
 | 27322 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27323 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27324 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27325 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 27326 | 			 || test ! -s conftest.err' | 
 | 27327 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27328 |   (eval $ac_try) 2>&5 | 
 | 27329 |   ac_status=$? | 
 | 27330 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27331 |   (exit $ac_status); }; } && | 
 | 27332 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27333 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27334 |   (eval $ac_try) 2>&5 | 
 | 27335 |   ac_status=$? | 
 | 27336 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27337 |   (exit $ac_status); }; }; then | 
 | 27338 |   ac_cv_type_pid_t=yes | 
 | 27339 | else | 
 | 27340 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27341 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 27342 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27343 | ac_cv_type_pid_t=no | 
 | 27344 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27345 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27346 | fi | 
 | 27347 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | 
 | 27348 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | 
 | 27349 | if test $ac_cv_type_pid_t = yes; then | 
 | 27350 |   : | 
 | 27351 | else | 
 | 27352 |  | 
 | 27353 | cat >>confdefs.h <<_ACEOF | 
 | 27354 | #define pid_t int | 
 | 27355 | _ACEOF | 
 | 27356 |  | 
 | 27357 | fi | 
 | 27358 |  | 
 | 27359 | echo "$as_me:$LINENO: checking for size_t" >&5 | 
 | 27360 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | 
 | 27361 | if test "${ac_cv_type_size_t+set}" = set; then | 
 | 27362 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 27363 | else | 
 | 27364 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27365 | /* confdefs.h.  */ | 
 | 27366 | _ACEOF | 
 | 27367 | cat confdefs.h >>conftest.$ac_ext | 
 | 27368 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 27369 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27370 | $ac_includes_default | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27371 | int | 
 | 27372 | main () | 
 | 27373 | { | 
 | 27374 | if ((size_t *) 0) | 
 | 27375 |   return 0; | 
 | 27376 | if (sizeof (size_t)) | 
 | 27377 |   return 0; | 
 | 27378 |   ; | 
 | 27379 |   return 0; | 
 | 27380 | } | 
 | 27381 | _ACEOF | 
 | 27382 | rm -f conftest.$ac_objext | 
 | 27383 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27384 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27385 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27386 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 27387 |   rm -f conftest.er1 | 
 | 27388 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27389 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27390 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27391 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 27392 | 			 || test ! -s conftest.err' | 
 | 27393 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27394 |   (eval $ac_try) 2>&5 | 
 | 27395 |   ac_status=$? | 
 | 27396 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27397 |   (exit $ac_status); }; } && | 
 | 27398 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27399 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27400 |   (eval $ac_try) 2>&5 | 
 | 27401 |   ac_status=$? | 
 | 27402 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27403 |   (exit $ac_status); }; }; then | 
 | 27404 |   ac_cv_type_size_t=yes | 
 | 27405 | else | 
 | 27406 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27407 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 27408 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27409 | ac_cv_type_size_t=no | 
 | 27410 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27411 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27412 | fi | 
 | 27413 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | 
 | 27414 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | 
 | 27415 | if test $ac_cv_type_size_t = yes; then | 
 | 27416 |   : | 
 | 27417 | else | 
 | 27418 |  | 
 | 27419 | cat >>confdefs.h <<_ACEOF | 
 | 27420 | #define size_t unsigned | 
 | 27421 | _ACEOF | 
 | 27422 |  | 
 | 27423 | fi | 
 | 27424 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27425 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 | 
 | 27426 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | 
 | 27427 | if test "${ac_cv_type_signal+set}" = set; then | 
 | 27428 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 27429 | else | 
 | 27430 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 27431 | /* confdefs.h.  */ | 
 | 27432 | _ACEOF | 
 | 27433 | cat confdefs.h >>conftest.$ac_ext | 
 | 27434 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 27435 | /* end confdefs.h.  */ | 
 | 27436 | #include <sys/types.h> | 
 | 27437 | #include <signal.h> | 
 | 27438 | #ifdef signal | 
 | 27439 | # undef signal | 
 | 27440 | #endif | 
 | 27441 | #ifdef __cplusplus | 
 | 27442 | extern "C" void (*signal (int, void (*)(int)))(int); | 
 | 27443 | #else | 
 | 27444 | void (*signal ()) (); | 
 | 27445 | #endif | 
 | 27446 |  | 
 | 27447 | int | 
 | 27448 | main () | 
 | 27449 | { | 
 | 27450 | int i; | 
 | 27451 |   ; | 
 | 27452 |   return 0; | 
 | 27453 | } | 
 | 27454 | _ACEOF | 
 | 27455 | rm -f conftest.$ac_objext | 
 | 27456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 27457 |   (eval $ac_compile) 2>conftest.er1 | 
 | 27458 |   ac_status=$? | 
 | 27459 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 27460 |   rm -f conftest.er1 | 
 | 27461 |   cat conftest.err >&5 | 
 | 27462 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27463 |   (exit $ac_status); } && | 
 | 27464 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 27465 | 			 || test ! -s conftest.err' | 
 | 27466 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27467 |   (eval $ac_try) 2>&5 | 
 | 27468 |   ac_status=$? | 
 | 27469 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27470 |   (exit $ac_status); }; } && | 
 | 27471 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 27472 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27473 |   (eval $ac_try) 2>&5 | 
 | 27474 |   ac_status=$? | 
 | 27475 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27476 |   (exit $ac_status); }; }; then | 
 | 27477 |   ac_cv_type_signal=void | 
 | 27478 | else | 
 | 27479 |   echo "$as_me: failed program was:" >&5 | 
 | 27480 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 27481 |  | 
 | 27482 | ac_cv_type_signal=int | 
 | 27483 | fi | 
 | 27484 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 27485 | fi | 
 | 27486 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 | 
 | 27487 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | 
 | 27488 |  | 
 | 27489 | cat >>confdefs.h <<_ACEOF | 
 | 27490 | #define RETSIGTYPE $ac_cv_type_signal | 
 | 27491 | _ACEOF | 
 | 27492 |  | 
 | 27493 |  | 
 | 27494 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 | 
 | 27495 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 | 
 | 27496 | if test "${ac_cv_struct_tm+set}" = set; then | 
 | 27497 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 27498 | else | 
 | 27499 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 27500 | /* confdefs.h.  */ | 
 | 27501 | _ACEOF | 
 | 27502 | cat confdefs.h >>conftest.$ac_ext | 
 | 27503 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 27504 | /* end confdefs.h.  */ | 
 | 27505 | #include <sys/types.h> | 
 | 27506 | #include <time.h> | 
 | 27507 |  | 
 | 27508 | int | 
 | 27509 | main () | 
 | 27510 | { | 
 | 27511 | struct tm *tp; tp->tm_sec; | 
 | 27512 |   ; | 
 | 27513 |   return 0; | 
 | 27514 | } | 
 | 27515 | _ACEOF | 
 | 27516 | rm -f conftest.$ac_objext | 
 | 27517 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 27518 |   (eval $ac_compile) 2>conftest.er1 | 
 | 27519 |   ac_status=$? | 
 | 27520 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 27521 |   rm -f conftest.er1 | 
 | 27522 |   cat conftest.err >&5 | 
 | 27523 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27524 |   (exit $ac_status); } && | 
 | 27525 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 27526 | 			 || test ! -s conftest.err' | 
 | 27527 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27528 |   (eval $ac_try) 2>&5 | 
 | 27529 |   ac_status=$? | 
 | 27530 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27531 |   (exit $ac_status); }; } && | 
 | 27532 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 27533 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27534 |   (eval $ac_try) 2>&5 | 
 | 27535 |   ac_status=$? | 
 | 27536 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27537 |   (exit $ac_status); }; }; then | 
 | 27538 |   ac_cv_struct_tm=time.h | 
 | 27539 | else | 
 | 27540 |   echo "$as_me: failed program was:" >&5 | 
 | 27541 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 27542 |  | 
 | 27543 | ac_cv_struct_tm=sys/time.h | 
 | 27544 | fi | 
 | 27545 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 27546 | fi | 
 | 27547 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 | 
 | 27548 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 | 
 | 27549 | if test $ac_cv_struct_tm = sys/time.h; then | 
 | 27550 |  | 
 | 27551 | cat >>confdefs.h <<\_ACEOF | 
 | 27552 | #define TM_IN_SYS_TIME 1 | 
 | 27553 | _ACEOF | 
 | 27554 |  | 
 | 27555 | fi | 
 | 27556 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27557 | echo "$as_me:$LINENO: checking for int64_t" >&5 | 
 | 27558 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 | 
 | 27559 | if test "${ac_cv_type_int64_t+set}" = set; then | 
 | 27560 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 27561 | else | 
 | 27562 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27563 | /* confdefs.h.  */ | 
 | 27564 | _ACEOF | 
 | 27565 | cat confdefs.h >>conftest.$ac_ext | 
 | 27566 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 27567 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27568 | $ac_includes_default | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27569 | int | 
 | 27570 | main () | 
 | 27571 | { | 
 | 27572 | if ((int64_t *) 0) | 
 | 27573 |   return 0; | 
 | 27574 | if (sizeof (int64_t)) | 
 | 27575 |   return 0; | 
 | 27576 |   ; | 
 | 27577 |   return 0; | 
 | 27578 | } | 
 | 27579 | _ACEOF | 
 | 27580 | rm -f conftest.$ac_objext | 
 | 27581 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27582 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27583 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27584 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 27585 |   rm -f conftest.er1 | 
 | 27586 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27587 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27588 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27589 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 27590 | 			 || test ! -s conftest.err' | 
 | 27591 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27592 |   (eval $ac_try) 2>&5 | 
 | 27593 |   ac_status=$? | 
 | 27594 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27595 |   (exit $ac_status); }; } && | 
 | 27596 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27597 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27598 |   (eval $ac_try) 2>&5 | 
 | 27599 |   ac_status=$? | 
 | 27600 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27601 |   (exit $ac_status); }; }; then | 
 | 27602 |   ac_cv_type_int64_t=yes | 
 | 27603 | else | 
 | 27604 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27605 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 27606 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27607 | ac_cv_type_int64_t=no | 
 | 27608 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27609 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27610 | fi | 
 | 27611 | echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 | 
 | 27612 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6 | 
 | 27613 | if test $ac_cv_type_int64_t = yes; then | 
 | 27614 |  | 
 | 27615 | cat >>confdefs.h <<_ACEOF | 
 | 27616 | #define HAVE_INT64_T 1 | 
 | 27617 | _ACEOF | 
 | 27618 |  | 
 | 27619 |  | 
 | 27620 | else | 
 | 27621 |   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 | 
 | 27622 | echo "$as_me: error: Type int64_t required but not found" >&2;} | 
 | 27623 |    { (exit 1); exit 1; }; } | 
 | 27624 | fi | 
 | 27625 |  | 
 | 27626 | echo "$as_me:$LINENO: checking for uint64_t" >&5 | 
 | 27627 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | 
 | 27628 | if test "${ac_cv_type_uint64_t+set}" = set; then | 
 | 27629 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 27630 | else | 
 | 27631 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27632 | /* confdefs.h.  */ | 
 | 27633 | _ACEOF | 
 | 27634 | cat confdefs.h >>conftest.$ac_ext | 
 | 27635 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 27636 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27637 | $ac_includes_default | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27638 | int | 
 | 27639 | main () | 
 | 27640 | { | 
 | 27641 | if ((uint64_t *) 0) | 
 | 27642 |   return 0; | 
 | 27643 | if (sizeof (uint64_t)) | 
 | 27644 |   return 0; | 
 | 27645 |   ; | 
 | 27646 |   return 0; | 
 | 27647 | } | 
 | 27648 | _ACEOF | 
 | 27649 | rm -f conftest.$ac_objext | 
 | 27650 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27651 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27652 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27653 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 27654 |   rm -f conftest.er1 | 
 | 27655 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27656 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27657 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27658 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 27659 | 			 || test ! -s conftest.err' | 
 | 27660 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27661 |   (eval $ac_try) 2>&5 | 
 | 27662 |   ac_status=$? | 
 | 27663 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27664 |   (exit $ac_status); }; } && | 
 | 27665 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27666 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27667 |   (eval $ac_try) 2>&5 | 
 | 27668 |   ac_status=$? | 
 | 27669 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27670 |   (exit $ac_status); }; }; then | 
 | 27671 |   ac_cv_type_uint64_t=yes | 
 | 27672 | else | 
 | 27673 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27674 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 27675 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27676 | ac_cv_type_uint64_t=no | 
 | 27677 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27678 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27679 | fi | 
 | 27680 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 | 
 | 27681 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | 
 | 27682 | if test $ac_cv_type_uint64_t = yes; then | 
 | 27683 |  | 
 | 27684 | cat >>confdefs.h <<_ACEOF | 
 | 27685 | #define HAVE_UINT64_T 1 | 
 | 27686 | _ACEOF | 
 | 27687 |  | 
 | 27688 |  | 
 | 27689 | else | 
| Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 27690 |   echo "$as_me:$LINENO: checking for u_int64_t" >&5 | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 27691 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 | 
 | 27692 | if test "${ac_cv_type_u_int64_t+set}" = set; then | 
 | 27693 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 27694 | else | 
 | 27695 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 27696 | /* confdefs.h.  */ | 
 | 27697 | _ACEOF | 
 | 27698 | cat confdefs.h >>conftest.$ac_ext | 
 | 27699 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 27700 | /* end confdefs.h.  */ | 
 | 27701 | $ac_includes_default | 
 | 27702 | int | 
 | 27703 | main () | 
 | 27704 | { | 
 | 27705 | if ((u_int64_t *) 0) | 
 | 27706 |   return 0; | 
 | 27707 | if (sizeof (u_int64_t)) | 
 | 27708 |   return 0; | 
 | 27709 |   ; | 
 | 27710 |   return 0; | 
 | 27711 | } | 
 | 27712 | _ACEOF | 
 | 27713 | rm -f conftest.$ac_objext | 
 | 27714 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27715 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 27716 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27717 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 27718 |   rm -f conftest.er1 | 
 | 27719 |   cat conftest.err >&5 | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 27720 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27721 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27722 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 27723 | 			 || test ! -s conftest.err' | 
 | 27724 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27725 |   (eval $ac_try) 2>&5 | 
 | 27726 |   ac_status=$? | 
 | 27727 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27728 |   (exit $ac_status); }; } && | 
 | 27729 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 27730 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27731 |   (eval $ac_try) 2>&5 | 
 | 27732 |   ac_status=$? | 
 | 27733 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27734 |   (exit $ac_status); }; }; then | 
 | 27735 |   ac_cv_type_u_int64_t=yes | 
 | 27736 | else | 
 | 27737 |   echo "$as_me: failed program was:" >&5 | 
 | 27738 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 27739 |  | 
 | 27740 | ac_cv_type_u_int64_t=no | 
 | 27741 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27742 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 27743 | fi | 
 | 27744 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 | 
 | 27745 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 | 
 | 27746 | if test $ac_cv_type_u_int64_t = yes; then | 
 | 27747 |  | 
 | 27748 | cat >>confdefs.h <<_ACEOF | 
 | 27749 | #define HAVE_U_INT64_T 1 | 
 | 27750 | _ACEOF | 
 | 27751 |  | 
 | 27752 |  | 
| Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 27753 | else | 
 | 27754 |   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 | 
 | 27755 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} | 
 | 27756 |    { (exit 1); exit 1; }; } | 
 | 27757 | fi | 
 | 27758 |  | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 27759 | fi | 
 | 27760 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27761 |  | 
 | 27762 |  | 
 | 27763 |  | 
 | 27764 |  | 
 | 27765 |  | 
 | 27766 |  | 
 | 27767 |  | 
| Reid Spencer | f4bb9b1 | 2006-01-19 08:22:40 +0000 | [diff] [blame] | 27768 |  | 
 | 27769 |  | 
| Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 27770 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27771 | do | 
 | 27772 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 27773 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 27774 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
 | 27775 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27776 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 27777 | else | 
 | 27778 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27779 | /* confdefs.h.  */ | 
 | 27780 | _ACEOF | 
 | 27781 | cat confdefs.h >>conftest.$ac_ext | 
 | 27782 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 27783 | /* end confdefs.h.  */ | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27784 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 27785 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 27786 | #define $ac_func innocuous_$ac_func | 
 | 27787 |  | 
 | 27788 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 27789 |     which can conflict with char $ac_func (); below. | 
 | 27790 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 27791 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 27792 |  | 
 | 27793 | #ifdef __STDC__ | 
 | 27794 | # include <limits.h> | 
 | 27795 | #else | 
 | 27796 | # include <assert.h> | 
 | 27797 | #endif | 
 | 27798 |  | 
 | 27799 | #undef $ac_func | 
 | 27800 |  | 
 | 27801 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 27802 | #ifdef __cplusplus | 
 | 27803 | extern "C" | 
 | 27804 | { | 
 | 27805 | #endif | 
 | 27806 | /* We use char because int might match the return type of a gcc2 | 
 | 27807 |    builtin and then its argument prototype would still apply.  */ | 
 | 27808 | char $ac_func (); | 
 | 27809 | /* The GNU C library defines this for functions which it implements | 
 | 27810 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 27811 |     something starting with __ and the normal name is an alias.  */ | 
 | 27812 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 27813 | choke me | 
 | 27814 | #else | 
 | 27815 | char (*f) () = $ac_func; | 
 | 27816 | #endif | 
 | 27817 | #ifdef __cplusplus | 
 | 27818 | } | 
 | 27819 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27820 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27821 | int | 
 | 27822 | main () | 
 | 27823 | { | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27824 | return f != $ac_func; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27825 |   ; | 
 | 27826 |   return 0; | 
 | 27827 | } | 
 | 27828 | _ACEOF | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27829 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 27830 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 27831 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27832 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27833 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 27834 |   rm -f conftest.er1 | 
 | 27835 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27836 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27837 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27838 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 27839 | 			 || test ! -s conftest.err' | 
 | 27840 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27841 |   (eval $ac_try) 2>&5 | 
 | 27842 |   ac_status=$? | 
 | 27843 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27844 |   (exit $ac_status); }; } && | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27845 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27846 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27847 |   (eval $ac_try) 2>&5 | 
 | 27848 |   ac_status=$? | 
 | 27849 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27850 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27851 |   eval "$as_ac_var=yes" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27852 | else | 
 | 27853 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27854 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 27855 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27856 | eval "$as_ac_var=no" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27857 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27858 | rm -f conftest.err conftest.$ac_objext \ | 
 | 27859 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27860 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27861 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
 | 27862 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
 | 27863 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 27864 |   cat >>confdefs.h <<_ACEOF | 
 | 27865 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27866 | _ACEOF | 
 | 27867 |  | 
 | 27868 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27869 | done | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27870 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27871 |  | 
 | 27872 |  | 
 | 27873 |  | 
| Reid Spencer | 6af3d26 | 2004-12-15 04:01:48 +0000 | [diff] [blame] | 27874 |  | 
 | 27875 |  | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27876 |  | 
| Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 27877 | for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp | 
 | 27878 | do | 
 | 27879 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 27880 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 27881 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
 | 27882 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
 | 27883 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 27884 | else | 
 | 27885 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 27886 | /* confdefs.h.  */ | 
 | 27887 | _ACEOF | 
 | 27888 | cat confdefs.h >>conftest.$ac_ext | 
 | 27889 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 27890 | /* end confdefs.h.  */ | 
 | 27891 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 27892 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 27893 | #define $ac_func innocuous_$ac_func | 
 | 27894 |  | 
 | 27895 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 27896 |     which can conflict with char $ac_func (); below. | 
 | 27897 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 27898 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 27899 |  | 
 | 27900 | #ifdef __STDC__ | 
 | 27901 | # include <limits.h> | 
 | 27902 | #else | 
 | 27903 | # include <assert.h> | 
 | 27904 | #endif | 
 | 27905 |  | 
 | 27906 | #undef $ac_func | 
 | 27907 |  | 
 | 27908 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 27909 | #ifdef __cplusplus | 
 | 27910 | extern "C" | 
 | 27911 | { | 
 | 27912 | #endif | 
 | 27913 | /* We use char because int might match the return type of a gcc2 | 
 | 27914 |    builtin and then its argument prototype would still apply.  */ | 
 | 27915 | char $ac_func (); | 
 | 27916 | /* The GNU C library defines this for functions which it implements | 
 | 27917 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 27918 |     something starting with __ and the normal name is an alias.  */ | 
 | 27919 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 27920 | choke me | 
 | 27921 | #else | 
 | 27922 | char (*f) () = $ac_func; | 
 | 27923 | #endif | 
 | 27924 | #ifdef __cplusplus | 
 | 27925 | } | 
 | 27926 | #endif | 
 | 27927 |  | 
 | 27928 | int | 
 | 27929 | main () | 
 | 27930 | { | 
 | 27931 | return f != $ac_func; | 
 | 27932 |   ; | 
 | 27933 |   return 0; | 
 | 27934 | } | 
 | 27935 | _ACEOF | 
 | 27936 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 27937 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 27938 |   (eval $ac_link) 2>conftest.er1 | 
 | 27939 |   ac_status=$? | 
 | 27940 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 27941 |   rm -f conftest.er1 | 
 | 27942 |   cat conftest.err >&5 | 
 | 27943 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27944 |   (exit $ac_status); } && | 
 | 27945 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 27946 | 			 || test ! -s conftest.err' | 
 | 27947 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27948 |   (eval $ac_try) 2>&5 | 
 | 27949 |   ac_status=$? | 
 | 27950 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27951 |   (exit $ac_status); }; } && | 
 | 27952 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 27953 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27954 |   (eval $ac_try) 2>&5 | 
 | 27955 |   ac_status=$? | 
 | 27956 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27957 |   (exit $ac_status); }; }; then | 
 | 27958 |   eval "$as_ac_var=yes" | 
 | 27959 | else | 
 | 27960 |   echo "$as_me: failed program was:" >&5 | 
 | 27961 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 27962 |  | 
 | 27963 | eval "$as_ac_var=no" | 
 | 27964 | fi | 
 | 27965 | rm -f conftest.err conftest.$ac_objext \ | 
 | 27966 |       conftest$ac_exeext conftest.$ac_ext | 
 | 27967 | fi | 
 | 27968 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
 | 27969 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
 | 27970 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 27971 |   cat >>confdefs.h <<_ACEOF | 
 | 27972 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 27973 | _ACEOF | 
 | 27974 |  | 
 | 27975 | fi | 
 | 27976 | done | 
 | 27977 |  | 
 | 27978 |  | 
 | 27979 |  | 
 | 27980 |  | 
 | 27981 |  | 
 | 27982 |  | 
 | 27983 |  | 
 | 27984 |  | 
 | 27985 | for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r | 
| Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 27986 | do | 
 | 27987 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 27988 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 27989 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
 | 27990 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
 | 27991 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 27992 | else | 
 | 27993 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 27994 | /* confdefs.h.  */ | 
 | 27995 | _ACEOF | 
 | 27996 | cat confdefs.h >>conftest.$ac_ext | 
 | 27997 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 27998 | /* end confdefs.h.  */ | 
 | 27999 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 28000 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 28001 | #define $ac_func innocuous_$ac_func | 
 | 28002 |  | 
 | 28003 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 28004 |     which can conflict with char $ac_func (); below. | 
 | 28005 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 28006 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 28007 |  | 
 | 28008 | #ifdef __STDC__ | 
 | 28009 | # include <limits.h> | 
 | 28010 | #else | 
 | 28011 | # include <assert.h> | 
 | 28012 | #endif | 
 | 28013 |  | 
 | 28014 | #undef $ac_func | 
 | 28015 |  | 
 | 28016 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 28017 | #ifdef __cplusplus | 
 | 28018 | extern "C" | 
 | 28019 | { | 
 | 28020 | #endif | 
 | 28021 | /* We use char because int might match the return type of a gcc2 | 
 | 28022 |    builtin and then its argument prototype would still apply.  */ | 
 | 28023 | char $ac_func (); | 
 | 28024 | /* The GNU C library defines this for functions which it implements | 
 | 28025 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 28026 |     something starting with __ and the normal name is an alias.  */ | 
 | 28027 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 28028 | choke me | 
 | 28029 | #else | 
 | 28030 | char (*f) () = $ac_func; | 
 | 28031 | #endif | 
 | 28032 | #ifdef __cplusplus | 
 | 28033 | } | 
 | 28034 | #endif | 
 | 28035 |  | 
 | 28036 | int | 
 | 28037 | main () | 
 | 28038 | { | 
 | 28039 | return f != $ac_func; | 
 | 28040 |   ; | 
 | 28041 |   return 0; | 
 | 28042 | } | 
 | 28043 | _ACEOF | 
 | 28044 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 28045 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 28046 |   (eval $ac_link) 2>conftest.er1 | 
 | 28047 |   ac_status=$? | 
 | 28048 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 28049 |   rm -f conftest.er1 | 
 | 28050 |   cat conftest.err >&5 | 
 | 28051 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28052 |   (exit $ac_status); } && | 
 | 28053 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 28054 | 			 || test ! -s conftest.err' | 
 | 28055 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28056 |   (eval $ac_try) 2>&5 | 
 | 28057 |   ac_status=$? | 
 | 28058 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28059 |   (exit $ac_status); }; } && | 
 | 28060 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 28061 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28062 |   (eval $ac_try) 2>&5 | 
 | 28063 |   ac_status=$? | 
 | 28064 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28065 |   (exit $ac_status); }; }; then | 
 | 28066 |   eval "$as_ac_var=yes" | 
 | 28067 | else | 
 | 28068 |   echo "$as_me: failed program was:" >&5 | 
 | 28069 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 28070 |  | 
 | 28071 | eval "$as_ac_var=no" | 
 | 28072 | fi | 
 | 28073 | rm -f conftest.err conftest.$ac_objext \ | 
 | 28074 |       conftest$ac_exeext conftest.$ac_ext | 
 | 28075 | fi | 
 | 28076 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
 | 28077 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
 | 28078 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 28079 |   cat >>confdefs.h <<_ACEOF | 
 | 28080 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 28081 | _ACEOF | 
 | 28082 |  | 
 | 28083 | fi | 
 | 28084 | done | 
 | 28085 |  | 
 | 28086 |  | 
| Reid Spencer | ba46ca3 | 2004-12-31 05:49:15 +0000 | [diff] [blame] | 28087 |  | 
 | 28088 |  | 
| Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28089 |  | 
| Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 28090 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28091 | do | 
 | 28092 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 28093 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 28094 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
 | 28095 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28096 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 28097 | else | 
 | 28098 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28099 | /* confdefs.h.  */ | 
 | 28100 | _ACEOF | 
 | 28101 | cat confdefs.h >>conftest.$ac_ext | 
 | 28102 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 28103 | /* end confdefs.h.  */ | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28104 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 28105 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 28106 | #define $ac_func innocuous_$ac_func | 
 | 28107 |  | 
 | 28108 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 28109 |     which can conflict with char $ac_func (); below. | 
 | 28110 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 28111 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 28112 |  | 
 | 28113 | #ifdef __STDC__ | 
 | 28114 | # include <limits.h> | 
 | 28115 | #else | 
 | 28116 | # include <assert.h> | 
 | 28117 | #endif | 
 | 28118 |  | 
 | 28119 | #undef $ac_func | 
 | 28120 |  | 
 | 28121 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 28122 | #ifdef __cplusplus | 
 | 28123 | extern "C" | 
 | 28124 | { | 
 | 28125 | #endif | 
 | 28126 | /* We use char because int might match the return type of a gcc2 | 
 | 28127 |    builtin and then its argument prototype would still apply.  */ | 
 | 28128 | char $ac_func (); | 
 | 28129 | /* The GNU C library defines this for functions which it implements | 
 | 28130 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 28131 |     something starting with __ and the normal name is an alias.  */ | 
 | 28132 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 28133 | choke me | 
 | 28134 | #else | 
 | 28135 | char (*f) () = $ac_func; | 
 | 28136 | #endif | 
 | 28137 | #ifdef __cplusplus | 
 | 28138 | } | 
 | 28139 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28140 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28141 | int | 
 | 28142 | main () | 
 | 28143 | { | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28144 | return f != $ac_func; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28145 |   ; | 
 | 28146 |   return 0; | 
 | 28147 | } | 
 | 28148 | _ACEOF | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28149 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 28150 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 28151 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28152 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28153 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 28154 |   rm -f conftest.er1 | 
 | 28155 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28156 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28157 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28158 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 28159 | 			 || test ! -s conftest.err' | 
 | 28160 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28161 |   (eval $ac_try) 2>&5 | 
 | 28162 |   ac_status=$? | 
 | 28163 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28164 |   (exit $ac_status); }; } && | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28165 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28166 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28167 |   (eval $ac_try) 2>&5 | 
 | 28168 |   ac_status=$? | 
 | 28169 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28170 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28171 |   eval "$as_ac_var=yes" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28172 | else | 
 | 28173 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28174 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 28175 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28176 | eval "$as_ac_var=no" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28177 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28178 | rm -f conftest.err conftest.$ac_objext \ | 
 | 28179 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28180 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28181 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
 | 28182 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
 | 28183 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 28184 |   cat >>confdefs.h <<_ACEOF | 
 | 28185 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28186 | _ACEOF | 
 | 28187 |  | 
 | 28188 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28189 | done | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28190 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28191 | echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 | 
 | 28192 | echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6 | 
| Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 28193 | if test "${llvm_cv_c_printf_a+set}" = set; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28194 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 28195 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28196 |   ac_ext=c | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 28197 | ac_cpp='$CPP $CPPFLAGS' | 
 | 28198 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28199 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28200 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 28201 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28202 |  if test "$cross_compiling" = yes; then | 
| Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 28203 |   llvmac_cv_c_printf_a=no | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 28204 | else | 
 | 28205 |   cat >conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28206 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28207 |   /* confdefs.h.  */ | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 28208 | _ACEOF | 
 | 28209 | cat confdefs.h >>conftest.$ac_ext | 
 | 28210 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 28211 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28212 |  | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 28213 | #include <stdio.h> | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28214 | #include <stdlib.h> | 
 | 28215 |  | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 28216 | int | 
 | 28217 | main () | 
 | 28218 | { | 
 | 28219 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28220 | volatile double A, B; | 
 | 28221 | char Buffer[100]; | 
 | 28222 | A = 1; | 
 | 28223 | A /= 10.0; | 
 | 28224 | sprintf(Buffer, "%a", A); | 
 | 28225 | B = atof(Buffer); | 
 | 28226 | if (A != B) | 
 | 28227 |   return (1); | 
 | 28228 | if (A != 0x1.999999999999ap-4) | 
 | 28229 |   return (1); | 
 | 28230 | return (0); | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 28231 |   ; | 
 | 28232 |   return 0; | 
 | 28233 | } | 
 | 28234 | _ACEOF | 
 | 28235 | rm -f conftest$ac_exeext | 
 | 28236 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 28237 |   (eval $ac_link) 2>&5 | 
 | 28238 |   ac_status=$? | 
 | 28239 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28240 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
 | 28241 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28242 |   (eval $ac_try) 2>&5 | 
 | 28243 |   ac_status=$? | 
 | 28244 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28245 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 28246 |   llvm_cv_c_printf_a=yes | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 28247 | else | 
 | 28248 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 28249 | echo "$as_me: failed program was:" >&5 | 
 | 28250 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 28251 |  | 
 | 28252 | ( exit $ac_status ) | 
| Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 28253 | llvmac_cv_c_printf_a=no | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 28254 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28255 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 28256 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28257 |  ac_ext=c | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 28258 | ac_cpp='$CPP $CPPFLAGS' | 
 | 28259 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28260 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28261 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 28262 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28263 | fi | 
| Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 28264 | echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 | 
 | 28265 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6 | 
 | 28266 |  if test "$llvm_cv_c_printf_a" = "yes"; then | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 28267 |  | 
 | 28268 | cat >>confdefs.h <<\_ACEOF | 
 | 28269 | #define HAVE_PRINTF_A 1 | 
 | 28270 | _ACEOF | 
 | 28271 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28272 |  fi | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 28273 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28274 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | 
 | 28275 | # for constant arguments.  Useless! | 
 | 28276 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 | 
 | 28277 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | 
 | 28278 | if test "${ac_cv_working_alloca_h+set}" = set; then | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28279 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 28280 | else | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28281 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28282 | /* confdefs.h.  */ | 
 | 28283 | _ACEOF | 
 | 28284 | cat confdefs.h >>conftest.$ac_ext | 
 | 28285 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 28286 | /* end confdefs.h.  */ | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28287 | #include <alloca.h> | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28288 | int | 
 | 28289 | main () | 
 | 28290 | { | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28291 | char *p = (char *) alloca (2 * sizeof (int)); | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28292 |   ; | 
 | 28293 |   return 0; | 
 | 28294 | } | 
 | 28295 | _ACEOF | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28296 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 28297 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 28298 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28299 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28300 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 28301 |   rm -f conftest.er1 | 
 | 28302 |   cat conftest.err >&5 | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28303 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28304 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28305 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 28306 | 			 || test ! -s conftest.err' | 
 | 28307 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28308 |   (eval $ac_try) 2>&5 | 
 | 28309 |   ac_status=$? | 
 | 28310 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28311 |   (exit $ac_status); }; } && | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28312 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28313 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28314 |   (eval $ac_try) 2>&5 | 
 | 28315 |   ac_status=$? | 
 | 28316 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28317 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28318 |   ac_cv_working_alloca_h=yes | 
 | 28319 | else | 
 | 28320 |   echo "$as_me: failed program was:" >&5 | 
 | 28321 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 28322 |  | 
 | 28323 | ac_cv_working_alloca_h=no | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28324 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28325 | rm -f conftest.err conftest.$ac_objext \ | 
 | 28326 |       conftest$ac_exeext conftest.$ac_ext | 
 | 28327 | fi | 
 | 28328 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | 
 | 28329 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | 
 | 28330 | if test $ac_cv_working_alloca_h = yes; then | 
 | 28331 |  | 
 | 28332 | cat >>confdefs.h <<\_ACEOF | 
 | 28333 | #define HAVE_ALLOCA_H 1 | 
 | 28334 | _ACEOF | 
 | 28335 |  | 
 | 28336 | fi | 
 | 28337 |  | 
 | 28338 | echo "$as_me:$LINENO: checking for alloca" >&5 | 
 | 28339 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | 
 | 28340 | if test "${ac_cv_func_alloca_works+set}" = set; then | 
 | 28341 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 28342 | else | 
 | 28343 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 28344 | /* confdefs.h.  */ | 
 | 28345 | _ACEOF | 
 | 28346 | cat confdefs.h >>conftest.$ac_ext | 
 | 28347 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 28348 | /* end confdefs.h.  */ | 
 | 28349 | #ifdef __GNUC__ | 
 | 28350 | # define alloca __builtin_alloca | 
 | 28351 | #else | 
 | 28352 | # ifdef _MSC_VER | 
 | 28353 | #  include <malloc.h> | 
 | 28354 | #  define alloca _alloca | 
 | 28355 | # else | 
 | 28356 | #  if HAVE_ALLOCA_H | 
 | 28357 | #   include <alloca.h> | 
 | 28358 | #  else | 
 | 28359 | #   ifdef _AIX | 
 | 28360 |  #pragma alloca | 
 | 28361 | #   else | 
 | 28362 | #    ifndef alloca /* predefined by HP cc +Olibcalls */ | 
 | 28363 | char *alloca (); | 
 | 28364 | #    endif | 
 | 28365 | #   endif | 
 | 28366 | #  endif | 
 | 28367 | # endif | 
 | 28368 | #endif | 
 | 28369 |  | 
 | 28370 | int | 
 | 28371 | main () | 
 | 28372 | { | 
 | 28373 | char *p = (char *) alloca (1); | 
 | 28374 |   ; | 
 | 28375 |   return 0; | 
 | 28376 | } | 
 | 28377 | _ACEOF | 
 | 28378 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 28379 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 28380 |   (eval $ac_link) 2>conftest.er1 | 
 | 28381 |   ac_status=$? | 
 | 28382 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 28383 |   rm -f conftest.er1 | 
 | 28384 |   cat conftest.err >&5 | 
 | 28385 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28386 |   (exit $ac_status); } && | 
 | 28387 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 28388 | 			 || test ! -s conftest.err' | 
 | 28389 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28390 |   (eval $ac_try) 2>&5 | 
 | 28391 |   ac_status=$? | 
 | 28392 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28393 |   (exit $ac_status); }; } && | 
 | 28394 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 28395 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28396 |   (eval $ac_try) 2>&5 | 
 | 28397 |   ac_status=$? | 
 | 28398 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28399 |   (exit $ac_status); }; }; then | 
 | 28400 |   ac_cv_func_alloca_works=yes | 
 | 28401 | else | 
 | 28402 |   echo "$as_me: failed program was:" >&5 | 
 | 28403 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 28404 |  | 
 | 28405 | ac_cv_func_alloca_works=no | 
 | 28406 | fi | 
 | 28407 | rm -f conftest.err conftest.$ac_objext \ | 
 | 28408 |       conftest$ac_exeext conftest.$ac_ext | 
 | 28409 | fi | 
 | 28410 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 | 
 | 28411 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | 
 | 28412 |  | 
 | 28413 | if test $ac_cv_func_alloca_works = yes; then | 
 | 28414 |  | 
 | 28415 | cat >>confdefs.h <<\_ACEOF | 
 | 28416 | #define HAVE_ALLOCA 1 | 
 | 28417 | _ACEOF | 
 | 28418 |  | 
 | 28419 | else | 
 | 28420 |   # The SVR3 libPW and SVR4 libucb both contain incompatible functions | 
 | 28421 | # that cause trouble.  Some versions do not even contain alloca or | 
 | 28422 | # contain a buggy version.  If you still want to use their alloca, | 
 | 28423 | # use ar to extract alloca.o from them instead of compiling alloca.c. | 
 | 28424 |  | 
 | 28425 | ALLOCA=alloca.$ac_objext | 
 | 28426 |  | 
 | 28427 | cat >>confdefs.h <<\_ACEOF | 
 | 28428 | #define C_ALLOCA 1 | 
 | 28429 | _ACEOF | 
 | 28430 |  | 
 | 28431 |  | 
 | 28432 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | 
 | 28433 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | 
 | 28434 | if test "${ac_cv_os_cray+set}" = set; then | 
 | 28435 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 28436 | else | 
 | 28437 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 28438 | /* confdefs.h.  */ | 
 | 28439 | _ACEOF | 
 | 28440 | cat confdefs.h >>conftest.$ac_ext | 
 | 28441 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 28442 | /* end confdefs.h.  */ | 
 | 28443 | #if defined(CRAY) && ! defined(CRAY2) | 
 | 28444 | webecray | 
 | 28445 | #else | 
 | 28446 | wenotbecray | 
 | 28447 | #endif | 
 | 28448 |  | 
 | 28449 | _ACEOF | 
 | 28450 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 28451 |   $EGREP "webecray" >/dev/null 2>&1; then | 
 | 28452 |   ac_cv_os_cray=yes | 
 | 28453 | else | 
 | 28454 |   ac_cv_os_cray=no | 
 | 28455 | fi | 
 | 28456 | rm -f conftest* | 
 | 28457 |  | 
 | 28458 | fi | 
 | 28459 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 | 
 | 28460 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | 
 | 28461 | if test $ac_cv_os_cray = yes; then | 
 | 28462 |   for ac_func in _getb67 GETB67 getb67; do | 
 | 28463 |     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 28464 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 28465 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
 | 28466 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
 | 28467 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 28468 | else | 
 | 28469 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 28470 | /* confdefs.h.  */ | 
 | 28471 | _ACEOF | 
 | 28472 | cat confdefs.h >>conftest.$ac_ext | 
 | 28473 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 28474 | /* end confdefs.h.  */ | 
 | 28475 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 28476 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 28477 | #define $ac_func innocuous_$ac_func | 
 | 28478 |  | 
 | 28479 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 28480 |     which can conflict with char $ac_func (); below. | 
 | 28481 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 28482 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 28483 |  | 
 | 28484 | #ifdef __STDC__ | 
 | 28485 | # include <limits.h> | 
 | 28486 | #else | 
 | 28487 | # include <assert.h> | 
 | 28488 | #endif | 
 | 28489 |  | 
 | 28490 | #undef $ac_func | 
 | 28491 |  | 
 | 28492 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 28493 | #ifdef __cplusplus | 
 | 28494 | extern "C" | 
 | 28495 | { | 
 | 28496 | #endif | 
 | 28497 | /* We use char because int might match the return type of a gcc2 | 
 | 28498 |    builtin and then its argument prototype would still apply.  */ | 
 | 28499 | char $ac_func (); | 
 | 28500 | /* The GNU C library defines this for functions which it implements | 
 | 28501 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 28502 |     something starting with __ and the normal name is an alias.  */ | 
 | 28503 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 28504 | choke me | 
 | 28505 | #else | 
 | 28506 | char (*f) () = $ac_func; | 
 | 28507 | #endif | 
 | 28508 | #ifdef __cplusplus | 
 | 28509 | } | 
 | 28510 | #endif | 
 | 28511 |  | 
 | 28512 | int | 
 | 28513 | main () | 
 | 28514 | { | 
 | 28515 | return f != $ac_func; | 
 | 28516 |   ; | 
 | 28517 |   return 0; | 
 | 28518 | } | 
 | 28519 | _ACEOF | 
 | 28520 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 28521 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 28522 |   (eval $ac_link) 2>conftest.er1 | 
 | 28523 |   ac_status=$? | 
 | 28524 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 28525 |   rm -f conftest.er1 | 
 | 28526 |   cat conftest.err >&5 | 
 | 28527 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28528 |   (exit $ac_status); } && | 
 | 28529 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 28530 | 			 || test ! -s conftest.err' | 
 | 28531 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28532 |   (eval $ac_try) 2>&5 | 
 | 28533 |   ac_status=$? | 
 | 28534 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28535 |   (exit $ac_status); }; } && | 
 | 28536 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 28537 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28538 |   (eval $ac_try) 2>&5 | 
 | 28539 |   ac_status=$? | 
 | 28540 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28541 |   (exit $ac_status); }; }; then | 
 | 28542 |   eval "$as_ac_var=yes" | 
 | 28543 | else | 
 | 28544 |   echo "$as_me: failed program was:" >&5 | 
 | 28545 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 28546 |  | 
 | 28547 | eval "$as_ac_var=no" | 
 | 28548 | fi | 
 | 28549 | rm -f conftest.err conftest.$ac_objext \ | 
 | 28550 |       conftest$ac_exeext conftest.$ac_ext | 
 | 28551 | fi | 
 | 28552 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
 | 28553 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
 | 28554 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 28555 |  | 
 | 28556 | cat >>confdefs.h <<_ACEOF | 
 | 28557 | #define CRAY_STACKSEG_END $ac_func | 
 | 28558 | _ACEOF | 
 | 28559 |  | 
 | 28560 |     break | 
 | 28561 | fi | 
 | 28562 |  | 
 | 28563 |   done | 
 | 28564 | fi | 
 | 28565 |  | 
 | 28566 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 | 
 | 28567 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | 
 | 28568 | if test "${ac_cv_c_stack_direction+set}" = set; then | 
 | 28569 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 28570 | else | 
 | 28571 |   if test "$cross_compiling" = yes; then | 
 | 28572 |   ac_cv_c_stack_direction=0 | 
 | 28573 | else | 
 | 28574 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 28575 | /* confdefs.h.  */ | 
 | 28576 | _ACEOF | 
 | 28577 | cat confdefs.h >>conftest.$ac_ext | 
 | 28578 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 28579 | /* end confdefs.h.  */ | 
 | 28580 | int | 
 | 28581 | find_stack_direction () | 
 | 28582 | { | 
 | 28583 |   static char *addr = 0; | 
 | 28584 |   auto char dummy; | 
 | 28585 |   if (addr == 0) | 
 | 28586 |     { | 
 | 28587 |       addr = &dummy; | 
 | 28588 |       return find_stack_direction (); | 
 | 28589 |     } | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28590 |   else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28591 |     return (&dummy > addr) ? 1 : -1; | 
 | 28592 | } | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28593 |  | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28594 | int | 
 | 28595 | main () | 
 | 28596 | { | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28597 |   exit (find_stack_direction () < 0); | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28598 | } | 
 | 28599 | _ACEOF | 
 | 28600 | rm -f conftest$ac_exeext | 
 | 28601 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 28602 |   (eval $ac_link) 2>&5 | 
 | 28603 |   ac_status=$? | 
 | 28604 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28605 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
 | 28606 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28607 |   (eval $ac_try) 2>&5 | 
 | 28608 |   ac_status=$? | 
 | 28609 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28610 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28611 |   ac_cv_c_stack_direction=1 | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28612 | else | 
 | 28613 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 28614 | echo "$as_me: failed program was:" >&5 | 
 | 28615 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 28616 |  | 
 | 28617 | ( exit $ac_status ) | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28618 | ac_cv_c_stack_direction=-1 | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28619 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28620 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28621 | fi | 
 | 28622 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28623 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 | 
 | 28624 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | 
 | 28625 |  | 
 | 28626 | cat >>confdefs.h <<_ACEOF | 
 | 28627 | #define STACK_DIRECTION $ac_cv_c_stack_direction | 
 | 28628 | _ACEOF | 
 | 28629 |  | 
 | 28630 |  | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28631 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28632 |  | 
 | 28633 |  | 
 | 28634 | echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 | 
 | 28635 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6 | 
 | 28636 | if test "${ac_cv_func_rand48+set}" = set; then | 
 | 28637 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 28638 | else | 
 | 28639 |   ac_ext=cc | 
 | 28640 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 28641 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28642 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28643 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 28644 |  | 
 | 28645 |    cat >conftest.$ac_ext <<_ACEOF | 
 | 28646 | /* confdefs.h.  */ | 
 | 28647 | _ACEOF | 
 | 28648 | cat confdefs.h >>conftest.$ac_ext | 
 | 28649 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 28650 | /* end confdefs.h.  */ | 
 | 28651 | #include <stdlib.h> | 
 | 28652 | int | 
 | 28653 | main () | 
 | 28654 | { | 
 | 28655 | srand48(0);lrand48();drand48(); | 
 | 28656 |   ; | 
 | 28657 |   return 0; | 
 | 28658 | } | 
 | 28659 | _ACEOF | 
 | 28660 | rm -f conftest.$ac_objext | 
 | 28661 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 28662 |   (eval $ac_compile) 2>conftest.er1 | 
 | 28663 |   ac_status=$? | 
 | 28664 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 28665 |   rm -f conftest.er1 | 
 | 28666 |   cat conftest.err >&5 | 
 | 28667 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28668 |   (exit $ac_status); } && | 
 | 28669 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 28670 | 			 || test ! -s conftest.err' | 
 | 28671 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28672 |   (eval $ac_try) 2>&5 | 
 | 28673 |   ac_status=$? | 
 | 28674 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28675 |   (exit $ac_status); }; } && | 
 | 28676 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 28677 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28678 |   (eval $ac_try) 2>&5 | 
 | 28679 |   ac_status=$? | 
 | 28680 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28681 |   (exit $ac_status); }; }; then | 
 | 28682 |   ac_cv_func_rand48=yes | 
 | 28683 | else | 
 | 28684 |   echo "$as_me: failed program was:" >&5 | 
 | 28685 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 28686 |  | 
 | 28687 | ac_cv_func_rand48=no | 
 | 28688 | fi | 
 | 28689 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 28690 |   ac_ext=c | 
 | 28691 | ac_cpp='$CPP $CPPFLAGS' | 
 | 28692 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28693 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28694 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 28695 |  | 
 | 28696 | fi | 
 | 28697 | echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 | 
 | 28698 | echo "${ECHO_T}$ac_cv_func_rand48" >&6 | 
 | 28699 |  | 
 | 28700 | if test "$ac_cv_func_rand48" = "yes" ; then | 
 | 28701 |  | 
 | 28702 | cat >>confdefs.h <<\_ACEOF | 
 | 28703 | #define HAVE_RAND48 1 | 
 | 28704 | _ACEOF | 
 | 28705 |  | 
 | 28706 | fi | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28707 |  | 
 | 28708 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28709 | echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 | 
 | 28710 | echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6 | 
 | 28711 | if test "${ac_cv_cxx_namespaces+set}" = set; then | 
 | 28712 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 28713 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28714 |   ac_ext=cc | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28715 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 28716 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28717 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28718 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 28719 |  | 
 | 28720 |  cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28721 | /* confdefs.h.  */ | 
 | 28722 | _ACEOF | 
 | 28723 | cat confdefs.h >>conftest.$ac_ext | 
 | 28724 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 28725 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28726 | namespace Outer { namespace Inner { int i = 0; }} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28727 | int | 
 | 28728 | main () | 
 | 28729 | { | 
 | 28730 | using namespace Outer::Inner; return i; | 
 | 28731 |   ; | 
 | 28732 |   return 0; | 
 | 28733 | } | 
 | 28734 | _ACEOF | 
 | 28735 | rm -f conftest.$ac_objext | 
 | 28736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28737 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28738 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28739 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 28740 |   rm -f conftest.er1 | 
 | 28741 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28742 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28743 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28744 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 28745 | 			 || test ! -s conftest.err' | 
 | 28746 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28747 |   (eval $ac_try) 2>&5 | 
 | 28748 |   ac_status=$? | 
 | 28749 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28750 |   (exit $ac_status); }; } && | 
 | 28751 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28752 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28753 |   (eval $ac_try) 2>&5 | 
 | 28754 |   ac_status=$? | 
 | 28755 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28756 |   (exit $ac_status); }; }; then | 
 | 28757 |   ac_cv_cxx_namespaces=yes | 
 | 28758 | else | 
 | 28759 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28760 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 28761 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28762 | ac_cv_cxx_namespaces=no | 
 | 28763 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28764 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28765 |  ac_ext=c | 
 | 28766 | ac_cpp='$CPP $CPPFLAGS' | 
 | 28767 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28768 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28769 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 28770 |  | 
 | 28771 |  | 
 | 28772 | fi | 
 | 28773 | echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 | 
 | 28774 | echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6 | 
 | 28775 | if test "$ac_cv_cxx_namespaces" = yes; then | 
 | 28776 |  | 
 | 28777 | cat >>confdefs.h <<\_ACEOF | 
 | 28778 | #define HAVE_NAMESPACES | 
 | 28779 | _ACEOF | 
 | 28780 |  | 
 | 28781 | fi | 
 | 28782 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28783 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5 | 
 | 28784 | echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6 | 
 | 28785 | 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] | 28786 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 28787 | else | 
 | 28788 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28789 |   ac_ext=cc | 
 | 28790 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 28791 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28792 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28793 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 28794 |  | 
 | 28795 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28796 | /* confdefs.h.  */ | 
 | 28797 | _ACEOF | 
 | 28798 | cat confdefs.h >>conftest.$ac_ext | 
 | 28799 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 28800 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28801 | #include <ext/hash_map> | 
 | 28802 | #ifdef HAVE_NAMESPACES | 
 | 28803 | using namespace std; | 
 | 28804 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28805 | int | 
 | 28806 | main () | 
 | 28807 | { | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28808 | hash_map<int, int> t; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28809 |   ; | 
 | 28810 |   return 0; | 
 | 28811 | } | 
 | 28812 | _ACEOF | 
 | 28813 | rm -f conftest.$ac_objext | 
 | 28814 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28815 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28816 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28817 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 28818 |   rm -f conftest.er1 | 
 | 28819 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28820 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28821 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28822 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 28823 | 			 || test ! -s conftest.err' | 
 | 28824 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28825 |   (eval $ac_try) 2>&5 | 
 | 28826 |   ac_status=$? | 
 | 28827 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28828 |   (exit $ac_status); }; } && | 
 | 28829 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28830 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28831 |   (eval $ac_try) 2>&5 | 
 | 28832 |   ac_status=$? | 
 | 28833 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28834 |   (exit $ac_status); }; }; then | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28835 |   ac_cv_cxx_have_std_ext_hash_map=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28836 | else | 
 | 28837 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28838 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 28839 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28840 | ac_cv_cxx_have_std_ext_hash_map=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28841 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28842 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28843 |   ac_ext=c | 
 | 28844 | ac_cpp='$CPP $CPPFLAGS' | 
 | 28845 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28846 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28847 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 28848 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28849 | fi | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28850 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5 | 
 | 28851 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6 | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28852 |  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes | 
 | 28853 |  then | 
| John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 28854 |  | 
 | 28855 | cat >>confdefs.h <<\_ACEOF | 
 | 28856 | #define HAVE_STD_EXT_HASH_MAP 1 | 
 | 28857 | _ACEOF | 
 | 28858 |  | 
 | 28859 |  else | 
 | 28860 |  | 
 | 28861 | cat >>confdefs.h <<\_ACEOF | 
 | 28862 | #define HAVE_STD_EXT_HASH_MAP 0 | 
 | 28863 | _ACEOF | 
 | 28864 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28865 |  fi | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28866 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28867 |  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5 | 
 | 28868 | echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6 | 
 | 28869 | if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then | 
 | 28870 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 28871 | else | 
 | 28872 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28873 |   ac_ext=cc | 
 | 28874 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 28875 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28876 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28877 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 28878 |  | 
 | 28879 |   cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28880 | /* confdefs.h.  */ | 
 | 28881 | _ACEOF | 
 | 28882 | cat confdefs.h >>conftest.$ac_ext | 
 | 28883 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 28884 | /* end confdefs.h.  */ | 
 | 28885 | #include <ext/hash_map> | 
 | 28886 | #ifdef HAVE_NAMESPACES | 
 | 28887 | using namespace __gnu_cxx; | 
 | 28888 | #endif | 
 | 28889 | int | 
 | 28890 | main () | 
 | 28891 | { | 
 | 28892 | hash_map<int,int> t; | 
 | 28893 |   ; | 
 | 28894 |   return 0; | 
 | 28895 | } | 
 | 28896 | _ACEOF | 
 | 28897 | rm -f conftest.$ac_objext | 
 | 28898 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28899 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28900 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28901 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 28902 |   rm -f conftest.er1 | 
 | 28903 |   cat conftest.err >&5 | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28904 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28905 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28906 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 28907 | 			 || test ! -s conftest.err' | 
 | 28908 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28909 |   (eval $ac_try) 2>&5 | 
 | 28910 |   ac_status=$? | 
 | 28911 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28912 |   (exit $ac_status); }; } && | 
 | 28913 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28914 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28915 |   (eval $ac_try) 2>&5 | 
 | 28916 |   ac_status=$? | 
 | 28917 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28918 |   (exit $ac_status); }; }; then | 
 | 28919 |   ac_cv_cxx_have_gnu_ext_hash_map=yes | 
 | 28920 | else | 
 | 28921 |   echo "$as_me: failed program was:" >&5 | 
 | 28922 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 28923 |  | 
 | 28924 | ac_cv_cxx_have_gnu_ext_hash_map=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28925 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28926 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28927 |   ac_ext=c | 
 | 28928 | ac_cpp='$CPP $CPPFLAGS' | 
 | 28929 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28930 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28931 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 28932 |  | 
 | 28933 | fi | 
 | 28934 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5 | 
 | 28935 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6 | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28936 |  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes | 
 | 28937 |  then | 
| John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 28938 |  | 
 | 28939 | cat >>confdefs.h <<\_ACEOF | 
 | 28940 | #define HAVE_GNU_EXT_HASH_MAP 1 | 
 | 28941 | _ACEOF | 
 | 28942 |  | 
 | 28943 |  else | 
 | 28944 |  | 
 | 28945 | cat >>confdefs.h <<\_ACEOF | 
 | 28946 | #define HAVE_GNU_EXT_HASH_MAP 0 | 
 | 28947 | _ACEOF | 
 | 28948 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28949 |  fi | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28950 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28951 |  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5 | 
 | 28952 | echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6 | 
 | 28953 | if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then | 
 | 28954 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 28955 | else | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28956 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28957 |   ac_ext=cc | 
 | 28958 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 28959 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28960 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28961 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 28962 |  | 
 | 28963 |   cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28964 | /* confdefs.h.  */ | 
 | 28965 | _ACEOF | 
 | 28966 | cat confdefs.h >>conftest.$ac_ext | 
 | 28967 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 28968 | /* end confdefs.h.  */ | 
 | 28969 | #include <hash_map> | 
 | 28970 | int | 
 | 28971 | main () | 
 | 28972 | { | 
 | 28973 | hash_map<int,int> t; | 
 | 28974 |   ; | 
 | 28975 |   return 0; | 
 | 28976 | } | 
 | 28977 | _ACEOF | 
 | 28978 | rm -f conftest.$ac_objext | 
 | 28979 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28980 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28981 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28982 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 28983 |   rm -f conftest.er1 | 
 | 28984 |   cat conftest.err >&5 | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28985 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28986 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28987 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 28988 | 			 || test ! -s conftest.err' | 
 | 28989 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28990 |   (eval $ac_try) 2>&5 | 
 | 28991 |   ac_status=$? | 
 | 28992 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28993 |   (exit $ac_status); }; } && | 
 | 28994 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28995 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28996 |   (eval $ac_try) 2>&5 | 
 | 28997 |   ac_status=$? | 
 | 28998 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28999 |   (exit $ac_status); }; }; then | 
 | 29000 |   ac_cv_cxx_have_global_hash_map=yes | 
 | 29001 | else | 
 | 29002 |   echo "$as_me: failed program was:" >&5 | 
 | 29003 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 29004 |  | 
 | 29005 | ac_cv_cxx_have_global_hash_map=no | 
 | 29006 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29007 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29008 |   ac_ext=c | 
 | 29009 | ac_cpp='$CPP $CPPFLAGS' | 
 | 29010 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 29011 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 29012 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 29013 |  | 
 | 29014 | fi | 
 | 29015 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5 | 
 | 29016 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6 | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 29017 |  if test "$ac_cv_cxx_have_global_hash_map" = yes | 
 | 29018 |  then | 
| John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 29019 |  | 
 | 29020 | cat >>confdefs.h <<\_ACEOF | 
 | 29021 | #define HAVE_GLOBAL_HASH_MAP 1 | 
 | 29022 | _ACEOF | 
 | 29023 |  | 
 | 29024 |  else | 
 | 29025 |  | 
 | 29026 | cat >>confdefs.h <<\_ACEOF | 
 | 29027 | #define HAVE_GLOBAL_HASH_MAP 0 | 
 | 29028 | _ACEOF | 
 | 29029 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29030 |  fi | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 29031 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29032 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5 | 
 | 29033 | echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6 | 
 | 29034 | 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] | 29035 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 29036 | else | 
 | 29037 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29038 |   ac_ext=cc | 
 | 29039 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 29040 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 29041 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 29042 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 29043 |  | 
 | 29044 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29045 | /* confdefs.h.  */ | 
 | 29046 | _ACEOF | 
 | 29047 | cat confdefs.h >>conftest.$ac_ext | 
 | 29048 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 29049 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29050 | #include <ext/hash_set> | 
 | 29051 | #ifdef HAVE_NAMESPACES | 
 | 29052 | using namespace std; | 
 | 29053 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29054 | int | 
 | 29055 | main () | 
 | 29056 | { | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29057 | hash_set<int> t; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29058 |   ; | 
 | 29059 |   return 0; | 
 | 29060 | } | 
 | 29061 | _ACEOF | 
 | 29062 | rm -f conftest.$ac_objext | 
 | 29063 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29064 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29065 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29066 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 29067 |   rm -f conftest.er1 | 
 | 29068 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29069 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29070 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29071 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 29072 | 			 || test ! -s conftest.err' | 
 | 29073 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 29074 |   (eval $ac_try) 2>&5 | 
 | 29075 |   ac_status=$? | 
 | 29076 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29077 |   (exit $ac_status); }; } && | 
 | 29078 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29079 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 29080 |   (eval $ac_try) 2>&5 | 
 | 29081 |   ac_status=$? | 
 | 29082 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29083 |   (exit $ac_status); }; }; then | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29084 |   ac_cv_cxx_have_std_ext_hash_set=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29085 | else | 
 | 29086 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29087 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 29088 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29089 | ac_cv_cxx_have_std_ext_hash_set=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29090 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29091 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29092 |   ac_ext=c | 
 | 29093 | ac_cpp='$CPP $CPPFLAGS' | 
 | 29094 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 29095 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 29096 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 29097 |  | 
 | 29098 | fi | 
 | 29099 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5 | 
 | 29100 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6 | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 29101 |  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes | 
 | 29102 |  then | 
| John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 29103 |  | 
 | 29104 | cat >>confdefs.h <<\_ACEOF | 
 | 29105 | #define HAVE_STD_EXT_HASH_SET 1 | 
 | 29106 | _ACEOF | 
 | 29107 |  | 
 | 29108 |  else | 
 | 29109 |  | 
 | 29110 | cat >>confdefs.h <<\_ACEOF | 
 | 29111 | #define HAVE_STD_EXT_HASH_SET 0 | 
 | 29112 | _ACEOF | 
 | 29113 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29114 |  fi | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 29115 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29116 |  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5 | 
 | 29117 | echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6 | 
 | 29118 | if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then | 
 | 29119 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 29120 | else | 
 | 29121 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29122 |   ac_ext=cc | 
 | 29123 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 29124 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 29125 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 29126 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 29127 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29128 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29129 | /* confdefs.h.  */ | 
 | 29130 | _ACEOF | 
 | 29131 | cat confdefs.h >>conftest.$ac_ext | 
 | 29132 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 29133 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29134 | #include <ext/hash_set> | 
 | 29135 | #ifdef HAVE_NAMESPACES | 
 | 29136 | using namespace __gnu_cxx; | 
 | 29137 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29138 | int | 
 | 29139 | main () | 
 | 29140 | { | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29141 | hash_set<int> t; | 
 | 29142 |   ; | 
 | 29143 |   return 0; | 
 | 29144 | } | 
 | 29145 | _ACEOF | 
 | 29146 | rm -f conftest.$ac_objext | 
 | 29147 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29148 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29149 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29150 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 29151 |   rm -f conftest.er1 | 
 | 29152 |   cat conftest.err >&5 | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29153 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29154 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29155 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 29156 | 			 || test ! -s conftest.err' | 
 | 29157 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 29158 |   (eval $ac_try) 2>&5 | 
 | 29159 |   ac_status=$? | 
 | 29160 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29161 |   (exit $ac_status); }; } && | 
 | 29162 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29163 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 29164 |   (eval $ac_try) 2>&5 | 
 | 29165 |   ac_status=$? | 
 | 29166 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29167 |   (exit $ac_status); }; }; then | 
 | 29168 |   ac_cv_cxx_have_gnu_ext_hash_set=yes | 
 | 29169 | else | 
 | 29170 |   echo "$as_me: failed program was:" >&5 | 
 | 29171 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 29172 |  | 
 | 29173 | ac_cv_cxx_have_gnu_ext_hash_set=no | 
 | 29174 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29175 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29176 |   ac_ext=c | 
 | 29177 | ac_cpp='$CPP $CPPFLAGS' | 
 | 29178 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 29179 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 29180 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 29181 |  | 
 | 29182 | fi | 
 | 29183 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5 | 
 | 29184 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6 | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 29185 |  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes | 
 | 29186 |  then | 
| John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 29187 |  | 
 | 29188 | cat >>confdefs.h <<\_ACEOF | 
 | 29189 | #define HAVE_GNU_EXT_HASH_SET 1 | 
 | 29190 | _ACEOF | 
 | 29191 |  | 
 | 29192 |  else | 
 | 29193 |  | 
 | 29194 | cat >>confdefs.h <<\_ACEOF | 
 | 29195 | #define HAVE_GNU_EXT_HASH_SET 0 | 
 | 29196 | _ACEOF | 
 | 29197 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29198 |  fi | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 29199 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29200 |  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5 | 
 | 29201 | echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6 | 
 | 29202 | if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then | 
 | 29203 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 29204 | else | 
 | 29205 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29206 |   ac_ext=cc | 
 | 29207 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 29208 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 29209 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 29210 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 29211 |  | 
 | 29212 |   cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29213 | /* confdefs.h.  */ | 
 | 29214 | _ACEOF | 
 | 29215 | cat confdefs.h >>conftest.$ac_ext | 
 | 29216 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 29217 | /* end confdefs.h.  */ | 
 | 29218 | #include <hash_set> | 
 | 29219 | int | 
 | 29220 | main () | 
 | 29221 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29222 | hash_set<int> t; return 0; | 
 | 29223 |   ; | 
 | 29224 |   return 0; | 
 | 29225 | } | 
 | 29226 | _ACEOF | 
 | 29227 | rm -f conftest.$ac_objext | 
 | 29228 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29229 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29230 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29231 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 29232 |   rm -f conftest.er1 | 
 | 29233 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29234 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29235 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29236 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 29237 | 			 || test ! -s conftest.err' | 
 | 29238 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 29239 |   (eval $ac_try) 2>&5 | 
 | 29240 |   ac_status=$? | 
 | 29241 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29242 |   (exit $ac_status); }; } && | 
 | 29243 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29244 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 29245 |   (eval $ac_try) 2>&5 | 
 | 29246 |   ac_status=$? | 
 | 29247 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29248 |   (exit $ac_status); }; }; then | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29249 |   ac_cv_cxx_have_global_hash_set=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29250 | else | 
 | 29251 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29252 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 29253 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29254 | ac_cv_cxx_have_global_hash_set=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29255 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29256 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29257 |   ac_ext=c | 
 | 29258 | ac_cpp='$CPP $CPPFLAGS' | 
 | 29259 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 29260 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 29261 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 29262 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29263 | fi | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29264 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5 | 
 | 29265 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6 | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 29266 |  if test "$ac_cv_cxx_have_global_hash_set" = yes | 
 | 29267 |  then | 
| John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 29268 |  | 
 | 29269 | cat >>confdefs.h <<\_ACEOF | 
 | 29270 | #define HAVE_GLOBAL_HASH_SET 1 | 
 | 29271 | _ACEOF | 
 | 29272 |  | 
 | 29273 |  else | 
 | 29274 |  | 
 | 29275 | cat >>confdefs.h <<\_ACEOF | 
 | 29276 | #define HAVE_GLOBAL_HASH_SET 0 | 
 | 29277 | _ACEOF | 
 | 29278 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29279 |  fi | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 29280 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29281 | echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 | 
 | 29282 | echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6 | 
 | 29283 | if test "${ac_cv_cxx_have_std_iterator+set}" = set; then | 
 | 29284 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 29285 | else | 
 | 29286 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29287 |   ac_ext=cc | 
 | 29288 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 29289 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 29290 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 29291 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 29292 |  | 
 | 29293 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29294 | /* confdefs.h.  */ | 
 | 29295 | _ACEOF | 
 | 29296 | cat confdefs.h >>conftest.$ac_ext | 
 | 29297 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 29298 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29299 | #include <iterator> | 
 | 29300 | #ifdef HAVE_NAMESPACES | 
 | 29301 | using namespace std; | 
 | 29302 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29303 | int | 
 | 29304 | main () | 
 | 29305 | { | 
 | 29306 | iterator<int,int,int> t; return 0; | 
 | 29307 |   ; | 
 | 29308 |   return 0; | 
 | 29309 | } | 
 | 29310 | _ACEOF | 
 | 29311 | rm -f conftest.$ac_objext | 
 | 29312 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29313 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29314 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29315 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 29316 |   rm -f conftest.er1 | 
 | 29317 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29318 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29319 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29320 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 29321 | 			 || test ! -s conftest.err' | 
 | 29322 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 29323 |   (eval $ac_try) 2>&5 | 
 | 29324 |   ac_status=$? | 
 | 29325 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29326 |   (exit $ac_status); }; } && | 
 | 29327 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29328 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 29329 |   (eval $ac_try) 2>&5 | 
 | 29330 |   ac_status=$? | 
 | 29331 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29332 |   (exit $ac_status); }; }; then | 
 | 29333 |   ac_cv_cxx_have_std_iterator=yes | 
 | 29334 | else | 
 | 29335 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29336 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 29337 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29338 | ac_cv_cxx_have_std_iterator=no | 
 | 29339 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29340 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29341 |   ac_ext=c | 
 | 29342 | ac_cpp='$CPP $CPPFLAGS' | 
 | 29343 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 29344 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 29345 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 29346 |  | 
 | 29347 |  | 
 | 29348 | fi | 
 | 29349 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 | 
 | 29350 | echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6 | 
| Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 29351 | if test "$ac_cv_cxx_have_std_iterator" = yes | 
 | 29352 | then | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 29353 |  | 
 | 29354 | cat >>confdefs.h <<\_ACEOF | 
 | 29355 | #define HAVE_STD_ITERATOR 1 | 
 | 29356 | _ACEOF | 
 | 29357 |  | 
 | 29358 | else | 
 | 29359 |  | 
 | 29360 | cat >>confdefs.h <<\_ACEOF | 
 | 29361 | #define HAVE_STD_ITERATOR 0 | 
 | 29362 | _ACEOF | 
 | 29363 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29364 | fi | 
 | 29365 |  | 
 | 29366 | echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 | 
 | 29367 | echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6 | 
 | 29368 | if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then | 
 | 29369 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 29370 | else | 
 | 29371 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29372 |   ac_ext=cc | 
 | 29373 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 29374 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 29375 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 29376 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 29377 |  | 
 | 29378 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29379 | /* confdefs.h.  */ | 
 | 29380 | _ACEOF | 
 | 29381 | cat confdefs.h >>conftest.$ac_ext | 
 | 29382 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 29383 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29384 | #include <iterator> | 
 | 29385 | #ifdef HAVE_NAMESPACES | 
 | 29386 | using namespace std; | 
 | 29387 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29388 | int | 
 | 29389 | main () | 
 | 29390 | { | 
| John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 29391 | bidirectional_iterator<int,int> t; return 0; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29392 |   ; | 
 | 29393 |   return 0; | 
 | 29394 | } | 
 | 29395 | _ACEOF | 
 | 29396 | rm -f conftest.$ac_objext | 
 | 29397 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29398 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29399 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29400 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 29401 |   rm -f conftest.er1 | 
 | 29402 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29403 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29404 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29405 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 29406 | 			 || test ! -s conftest.err' | 
 | 29407 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 29408 |   (eval $ac_try) 2>&5 | 
 | 29409 |   ac_status=$? | 
 | 29410 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29411 |   (exit $ac_status); }; } && | 
 | 29412 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29413 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 29414 |   (eval $ac_try) 2>&5 | 
 | 29415 |   ac_status=$? | 
 | 29416 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29417 |   (exit $ac_status); }; }; then | 
 | 29418 |   ac_cv_cxx_have_bi_iterator=yes | 
 | 29419 | else | 
 | 29420 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29421 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 29422 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29423 | ac_cv_cxx_have_bi_iterator=no | 
 | 29424 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29425 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29426 |   ac_ext=c | 
 | 29427 | ac_cpp='$CPP $CPPFLAGS' | 
 | 29428 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 29429 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 29430 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 29431 |  | 
 | 29432 |  | 
 | 29433 | fi | 
 | 29434 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 | 
 | 29435 | echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6 | 
| Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 29436 | if test "$ac_cv_cxx_have_bi_iterator" = yes | 
 | 29437 | then | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 29438 |  | 
 | 29439 | cat >>confdefs.h <<\_ACEOF | 
 | 29440 | #define HAVE_BI_ITERATOR 1 | 
 | 29441 | _ACEOF | 
 | 29442 |  | 
 | 29443 | else | 
 | 29444 |  | 
 | 29445 | cat >>confdefs.h <<\_ACEOF | 
 | 29446 | #define HAVE_BI_ITERATOR 0 | 
 | 29447 | _ACEOF | 
 | 29448 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29449 | fi | 
 | 29450 |  | 
 | 29451 | echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 | 
 | 29452 | echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6 | 
 | 29453 | if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then | 
 | 29454 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 29455 | else | 
 | 29456 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29457 |   ac_ext=cc | 
 | 29458 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 29459 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 29460 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 29461 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 29462 |  | 
 | 29463 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29464 | /* confdefs.h.  */ | 
 | 29465 | _ACEOF | 
 | 29466 | cat confdefs.h >>conftest.$ac_ext | 
 | 29467 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 29468 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29469 | #include <iterator> | 
 | 29470 | #ifdef HAVE_NAMESPACES | 
 | 29471 | using namespace std; | 
 | 29472 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29473 | int | 
 | 29474 | main () | 
 | 29475 | { | 
| John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 29476 | forward_iterator<int,int> t; return 0; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29477 |   ; | 
 | 29478 |   return 0; | 
 | 29479 | } | 
 | 29480 | _ACEOF | 
 | 29481 | rm -f conftest.$ac_objext | 
 | 29482 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29483 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29484 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29485 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 29486 |   rm -f conftest.er1 | 
 | 29487 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29488 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29489 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29490 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 29491 | 			 || test ! -s conftest.err' | 
 | 29492 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 29493 |   (eval $ac_try) 2>&5 | 
 | 29494 |   ac_status=$? | 
 | 29495 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29496 |   (exit $ac_status); }; } && | 
 | 29497 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29498 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 29499 |   (eval $ac_try) 2>&5 | 
 | 29500 |   ac_status=$? | 
 | 29501 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29502 |   (exit $ac_status); }; }; then | 
 | 29503 |   ac_cv_cxx_have_fwd_iterator=yes | 
 | 29504 | else | 
 | 29505 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29506 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 29507 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29508 | ac_cv_cxx_have_fwd_iterator=no | 
 | 29509 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29510 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29511 |   ac_ext=c | 
 | 29512 | ac_cpp='$CPP $CPPFLAGS' | 
 | 29513 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 29514 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 29515 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 29516 |  | 
 | 29517 |  | 
 | 29518 | fi | 
 | 29519 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 | 
 | 29520 | echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6 | 
| Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 29521 | if test "$ac_cv_cxx_have_fwd_iterator" = yes | 
 | 29522 | then | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 29523 |  | 
 | 29524 | cat >>confdefs.h <<\_ACEOF | 
 | 29525 | #define HAVE_FWD_ITERATOR 1 | 
 | 29526 | _ACEOF | 
 | 29527 |  | 
 | 29528 | else | 
 | 29529 |  | 
 | 29530 | cat >>confdefs.h <<\_ACEOF | 
 | 29531 | #define HAVE_FWD_ITERATOR 0 | 
 | 29532 | _ACEOF | 
 | 29533 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29534 | fi | 
 | 29535 |  | 
 | 29536 |  | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29537 | echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 | 
 | 29538 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6 | 
 | 29539 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then | 
 | 29540 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 29541 | else | 
 | 29542 |   ac_ext=cc | 
 | 29543 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 29544 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 29545 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 29546 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 29547 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29548 |    cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29549 | /* confdefs.h.  */ | 
 | 29550 | _ACEOF | 
 | 29551 | cat confdefs.h >>conftest.$ac_ext | 
 | 29552 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 29553 | /* end confdefs.h.  */ | 
 | 29554 | #include <math.h> | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29555 | int | 
 | 29556 | main () | 
 | 29557 | { | 
 | 29558 | float f; isnan(f); | 
 | 29559 |   ; | 
 | 29560 |   return 0; | 
 | 29561 | } | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29562 | _ACEOF | 
 | 29563 | rm -f conftest.$ac_objext | 
 | 29564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29565 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29566 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29567 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 29568 |   rm -f conftest.er1 | 
 | 29569 |   cat conftest.err >&5 | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29570 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29571 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29572 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 29573 | 			 || test ! -s conftest.err' | 
 | 29574 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 29575 |   (eval $ac_try) 2>&5 | 
 | 29576 |   ac_status=$? | 
 | 29577 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29578 |   (exit $ac_status); }; } && | 
 | 29579 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29580 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 29581 |   (eval $ac_try) 2>&5 | 
 | 29582 |   ac_status=$? | 
 | 29583 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29584 |   (exit $ac_status); }; }; then | 
 | 29585 |   ac_cv_func_isnan_in_math_h=yes | 
 | 29586 | else | 
 | 29587 |   echo "$as_me: failed program was:" >&5 | 
 | 29588 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 29589 |  | 
 | 29590 | ac_cv_func_isnan_in_math_h=no | 
 | 29591 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29592 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29593 |   ac_ext=c | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29594 | ac_cpp='$CPP $CPPFLAGS' | 
 | 29595 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 29596 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 29597 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 29598 |  | 
 | 29599 | fi | 
 | 29600 | echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 | 
 | 29601 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6 | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29602 |  | 
 | 29603 |  | 
 | 29604 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29605 |  | 
 | 29606 | cat >>confdefs.h <<\_ACEOF | 
 | 29607 | #define HAVE_ISNAN_IN_MATH_H 1 | 
 | 29608 | _ACEOF | 
 | 29609 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29610 | fi | 
 | 29611 |  | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29612 | echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 | 
 | 29613 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6 | 
 | 29614 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then | 
 | 29615 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 29616 | else | 
 | 29617 |   ac_ext=cc | 
 | 29618 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 29619 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 29620 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 29621 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 29622 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29623 |    cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29624 | /* confdefs.h.  */ | 
 | 29625 | _ACEOF | 
 | 29626 | cat confdefs.h >>conftest.$ac_ext | 
 | 29627 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 29628 | /* end confdefs.h.  */ | 
 | 29629 | #include <cmath> | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29630 | int | 
 | 29631 | main () | 
 | 29632 | { | 
 | 29633 | float f; isnan(f); | 
 | 29634 |   ; | 
 | 29635 |   return 0; | 
 | 29636 | } | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29637 | _ACEOF | 
 | 29638 | rm -f conftest.$ac_objext | 
 | 29639 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29640 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29641 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29642 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 29643 |   rm -f conftest.er1 | 
 | 29644 |   cat conftest.err >&5 | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29645 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29646 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29647 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 29648 | 			 || test ! -s conftest.err' | 
 | 29649 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 29650 |   (eval $ac_try) 2>&5 | 
 | 29651 |   ac_status=$? | 
 | 29652 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29653 |   (exit $ac_status); }; } && | 
 | 29654 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29655 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 29656 |   (eval $ac_try) 2>&5 | 
 | 29657 |   ac_status=$? | 
 | 29658 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29659 |   (exit $ac_status); }; }; then | 
 | 29660 |   ac_cv_func_isnan_in_cmath=yes | 
 | 29661 | else | 
 | 29662 |   echo "$as_me: failed program was:" >&5 | 
 | 29663 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 29664 |  | 
 | 29665 | ac_cv_func_isnan_in_cmath=no | 
 | 29666 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29667 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29668 |   ac_ext=c | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29669 | ac_cpp='$CPP $CPPFLAGS' | 
 | 29670 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 29671 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 29672 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 29673 |  | 
 | 29674 | fi | 
 | 29675 | echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 | 
 | 29676 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6 | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29677 |  | 
 | 29678 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29679 |  | 
 | 29680 | cat >>confdefs.h <<\_ACEOF | 
 | 29681 | #define HAVE_ISNAN_IN_CMATH 1 | 
 | 29682 | _ACEOF | 
 | 29683 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29684 | fi | 
 | 29685 |  | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29686 | echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 | 
 | 29687 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6 | 
 | 29688 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then | 
 | 29689 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 29690 | else | 
 | 29691 |   ac_ext=cc | 
 | 29692 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 29693 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 29694 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 29695 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 29696 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29697 |    cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29698 | /* confdefs.h.  */ | 
 | 29699 | _ACEOF | 
 | 29700 | cat confdefs.h >>conftest.$ac_ext | 
 | 29701 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 29702 | /* end confdefs.h.  */ | 
 | 29703 | #include <cmath> | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29704 | int | 
 | 29705 | main () | 
 | 29706 | { | 
 | 29707 | float f; std::isnan(f); | 
 | 29708 |   ; | 
 | 29709 |   return 0; | 
 | 29710 | } | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29711 | _ACEOF | 
 | 29712 | rm -f conftest.$ac_objext | 
 | 29713 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29714 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29715 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29716 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 29717 |   rm -f conftest.er1 | 
 | 29718 |   cat conftest.err >&5 | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29719 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29720 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29721 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 29722 | 			 || test ! -s conftest.err' | 
 | 29723 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 29724 |   (eval $ac_try) 2>&5 | 
 | 29725 |   ac_status=$? | 
 | 29726 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29727 |   (exit $ac_status); }; } && | 
 | 29728 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29729 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 29730 |   (eval $ac_try) 2>&5 | 
 | 29731 |   ac_status=$? | 
 | 29732 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29733 |   (exit $ac_status); }; }; then | 
 | 29734 |   ac_cv_func_std_isnan_in_cmath=yes | 
 | 29735 | else | 
 | 29736 |   echo "$as_me: failed program was:" >&5 | 
 | 29737 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 29738 |  | 
 | 29739 | ac_cv_func_std_isnan_in_cmath=no | 
 | 29740 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29741 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29742 |   ac_ext=c | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29743 | ac_cpp='$CPP $CPPFLAGS' | 
 | 29744 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 29745 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 29746 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 29747 |  | 
 | 29748 | fi | 
 | 29749 | echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 | 
 | 29750 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6 | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29751 |  | 
 | 29752 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29753 |  | 
 | 29754 | cat >>confdefs.h <<\_ACEOF | 
 | 29755 | #define HAVE_STD_ISNAN_IN_CMATH 1 | 
 | 29756 | _ACEOF | 
 | 29757 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29758 | fi | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29759 |  | 
 | 29760 |  | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29761 | echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 | 
 | 29762 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6 | 
 | 29763 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then | 
 | 29764 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 29765 | else | 
 | 29766 |   ac_ext=cc | 
 | 29767 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 29768 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 29769 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 29770 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 29771 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29772 |    cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29773 | /* confdefs.h.  */ | 
 | 29774 | _ACEOF | 
 | 29775 | cat confdefs.h >>conftest.$ac_ext | 
 | 29776 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 29777 | /* end confdefs.h.  */ | 
 | 29778 | #include <math.h> | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29779 | int | 
 | 29780 | main () | 
 | 29781 | { | 
 | 29782 | float f; isinf(f); | 
 | 29783 |   ; | 
 | 29784 |   return 0; | 
 | 29785 | } | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29786 | _ACEOF | 
 | 29787 | rm -f conftest.$ac_objext | 
 | 29788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29789 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29790 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29791 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 29792 |   rm -f conftest.er1 | 
 | 29793 |   cat conftest.err >&5 | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29794 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29795 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29796 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 29797 | 			 || test ! -s conftest.err' | 
 | 29798 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 29799 |   (eval $ac_try) 2>&5 | 
 | 29800 |   ac_status=$? | 
 | 29801 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29802 |   (exit $ac_status); }; } && | 
 | 29803 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29804 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 29805 |   (eval $ac_try) 2>&5 | 
 | 29806 |   ac_status=$? | 
 | 29807 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29808 |   (exit $ac_status); }; }; then | 
 | 29809 |   ac_cv_func_isinf_in_math_h=yes | 
 | 29810 | else | 
 | 29811 |   echo "$as_me: failed program was:" >&5 | 
 | 29812 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 29813 |  | 
 | 29814 | ac_cv_func_isinf_in_math_h=no | 
 | 29815 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29816 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29817 |   ac_ext=c | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29818 | ac_cpp='$CPP $CPPFLAGS' | 
 | 29819 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 29820 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 29821 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 29822 |  | 
 | 29823 | fi | 
 | 29824 | echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 | 
 | 29825 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6 | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29826 |  | 
 | 29827 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29828 |  | 
 | 29829 | cat >>confdefs.h <<\_ACEOF | 
 | 29830 | #define HAVE_ISINF_IN_MATH_H 1 | 
 | 29831 | _ACEOF | 
 | 29832 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29833 | fi | 
 | 29834 |  | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29835 | echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 | 
 | 29836 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6 | 
 | 29837 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then | 
 | 29838 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 29839 | else | 
 | 29840 |   ac_ext=cc | 
 | 29841 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 29842 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 29843 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 29844 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 29845 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29846 |    cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29847 | /* confdefs.h.  */ | 
 | 29848 | _ACEOF | 
 | 29849 | cat confdefs.h >>conftest.$ac_ext | 
 | 29850 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 29851 | /* end confdefs.h.  */ | 
 | 29852 | #include <cmath> | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29853 | int | 
 | 29854 | main () | 
 | 29855 | { | 
 | 29856 | float f; isinf(f); | 
 | 29857 |   ; | 
 | 29858 |   return 0; | 
 | 29859 | } | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29860 | _ACEOF | 
 | 29861 | rm -f conftest.$ac_objext | 
 | 29862 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29863 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29864 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29865 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 29866 |   rm -f conftest.er1 | 
 | 29867 |   cat conftest.err >&5 | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29868 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29869 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29870 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 29871 | 			 || test ! -s conftest.err' | 
 | 29872 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 29873 |   (eval $ac_try) 2>&5 | 
 | 29874 |   ac_status=$? | 
 | 29875 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29876 |   (exit $ac_status); }; } && | 
 | 29877 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29878 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 29879 |   (eval $ac_try) 2>&5 | 
 | 29880 |   ac_status=$? | 
 | 29881 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29882 |   (exit $ac_status); }; }; then | 
 | 29883 |   ac_cv_func_isinf_in_cmath=yes | 
 | 29884 | else | 
 | 29885 |   echo "$as_me: failed program was:" >&5 | 
 | 29886 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 29887 |  | 
 | 29888 | ac_cv_func_isinf_in_cmath=no | 
 | 29889 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29890 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29891 |   ac_ext=c | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29892 | ac_cpp='$CPP $CPPFLAGS' | 
 | 29893 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 29894 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 29895 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 29896 |  | 
 | 29897 | fi | 
 | 29898 | echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 | 
 | 29899 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6 | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29900 |  | 
 | 29901 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29902 |  | 
 | 29903 | cat >>confdefs.h <<\_ACEOF | 
 | 29904 | #define HAVE_ISINF_IN_CMATH 1 | 
 | 29905 | _ACEOF | 
 | 29906 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29907 | fi | 
 | 29908 |  | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29909 | echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 | 
 | 29910 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6 | 
 | 29911 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then | 
 | 29912 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 29913 | else | 
 | 29914 |   ac_ext=cc | 
 | 29915 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 29916 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 29917 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 29918 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 29919 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29920 |    cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29921 | /* confdefs.h.  */ | 
 | 29922 | _ACEOF | 
 | 29923 | cat confdefs.h >>conftest.$ac_ext | 
 | 29924 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 29925 | /* end confdefs.h.  */ | 
 | 29926 | #include <cmath> | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29927 | int | 
 | 29928 | main () | 
 | 29929 | { | 
 | 29930 | float f; std::isinf(f)} | 
 | 29931 |   ; | 
 | 29932 |   return 0; | 
 | 29933 | } | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29934 | _ACEOF | 
 | 29935 | rm -f conftest.$ac_objext | 
 | 29936 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29937 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29938 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29939 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 29940 |   rm -f conftest.er1 | 
 | 29941 |   cat conftest.err >&5 | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29942 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29943 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29944 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 29945 | 			 || test ! -s conftest.err' | 
 | 29946 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 29947 |   (eval $ac_try) 2>&5 | 
 | 29948 |   ac_status=$? | 
 | 29949 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29950 |   (exit $ac_status); }; } && | 
 | 29951 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29952 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 29953 |   (eval $ac_try) 2>&5 | 
 | 29954 |   ac_status=$? | 
 | 29955 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29956 |   (exit $ac_status); }; }; then | 
 | 29957 |   ac_cv_func_std_isinf_in_cmath=yes | 
 | 29958 | else | 
 | 29959 |   echo "$as_me: failed program was:" >&5 | 
 | 29960 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 29961 |  | 
 | 29962 | ac_cv_func_std_isinf_in_cmath=no | 
 | 29963 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29964 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29965 |   ac_ext=c | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29966 | ac_cpp='$CPP $CPPFLAGS' | 
 | 29967 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 29968 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 29969 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 29970 |  | 
 | 29971 | fi | 
 | 29972 | echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 | 
 | 29973 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6 | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29974 |  | 
 | 29975 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29976 |  | 
 | 29977 | cat >>confdefs.h <<\_ACEOF | 
 | 29978 | #define HAVE_STD_ISINF_IN_CMATH 1 | 
 | 29979 | _ACEOF | 
 | 29980 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29981 | fi | 
 | 29982 |  | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 29983 | echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 | 
 | 29984 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6 | 
 | 29985 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then | 
 | 29986 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 29987 | else | 
 | 29988 |   ac_ext=cc | 
 | 29989 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 29990 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 29991 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 29992 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 29993 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29994 |    cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 29995 | /* confdefs.h.  */ | 
 | 29996 | _ACEOF | 
 | 29997 | cat confdefs.h >>conftest.$ac_ext | 
 | 29998 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 29999 | /* end confdefs.h.  */ | 
 | 30000 | #include <ieeefp.h> | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30001 | int | 
 | 30002 | main () | 
 | 30003 | { | 
 | 30004 | float f; finite(f); | 
 | 30005 |   ; | 
 | 30006 |   return 0; | 
 | 30007 | } | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 30008 | _ACEOF | 
 | 30009 | rm -f conftest.$ac_objext | 
 | 30010 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30011 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 30012 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30013 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 30014 |   rm -f conftest.er1 | 
 | 30015 |   cat conftest.err >&5 | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 30016 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 30017 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30018 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 30019 | 			 || test ! -s conftest.err' | 
 | 30020 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 30021 |   (eval $ac_try) 2>&5 | 
 | 30022 |   ac_status=$? | 
 | 30023 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 30024 |   (exit $ac_status); }; } && | 
 | 30025 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 30026 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 30027 |   (eval $ac_try) 2>&5 | 
 | 30028 |   ac_status=$? | 
 | 30029 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 30030 |   (exit $ac_status); }; }; then | 
 | 30031 |   ac_cv_func_finite_in_ieeefp_h=yes | 
 | 30032 | else | 
 | 30033 |   echo "$as_me: failed program was:" >&5 | 
 | 30034 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 30035 |  | 
 | 30036 | ac_cv_func_finite_in_ieeefp_h=no | 
 | 30037 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30038 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30039 |   ac_ext=c | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 30040 | ac_cpp='$CPP $CPPFLAGS' | 
 | 30041 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 30042 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 30043 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 30044 |  | 
 | 30045 | fi | 
 | 30046 | echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 | 
 | 30047 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6 | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30048 |  | 
| Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 30049 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 30050 |  | 
 | 30051 | cat >>confdefs.h <<\_ACEOF | 
| Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 30052 | #define HAVE_FINITE_IN_IEEEFP_H 1 | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 30053 | _ACEOF | 
 | 30054 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30055 | fi | 
 | 30056 |  | 
 | 30057 |  | 
 | 30058 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30059 |  | 
 | 30060 |  | 
 | 30061 | for ac_header in stdlib.h unistd.h | 
 | 30062 | do | 
 | 30063 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 30064 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 30065 |   echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 30066 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 30067 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 30068 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 30069 | fi | 
 | 30070 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 30071 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 30072 | else | 
 | 30073 |   # Is the header compilable? | 
 | 30074 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 30075 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
 | 30076 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30077 | /* confdefs.h.  */ | 
 | 30078 | _ACEOF | 
 | 30079 | cat confdefs.h >>conftest.$ac_ext | 
 | 30080 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 30081 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30082 | $ac_includes_default | 
 | 30083 | #include <$ac_header> | 
 | 30084 | _ACEOF | 
 | 30085 | rm -f conftest.$ac_objext | 
 | 30086 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30087 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30088 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30089 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 30090 |   rm -f conftest.er1 | 
 | 30091 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30092 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 30093 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30094 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 30095 | 			 || test ! -s conftest.err' | 
 | 30096 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 30097 |   (eval $ac_try) 2>&5 | 
 | 30098 |   ac_status=$? | 
 | 30099 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 30100 |   (exit $ac_status); }; } && | 
 | 30101 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30102 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 30103 |   (eval $ac_try) 2>&5 | 
 | 30104 |   ac_status=$? | 
 | 30105 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 30106 |   (exit $ac_status); }; }; then | 
 | 30107 |   ac_header_compiler=yes | 
 | 30108 | else | 
 | 30109 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30110 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 30111 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30112 | ac_header_compiler=no | 
 | 30113 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30114 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30115 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 30116 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
 | 30117 |  | 
 | 30118 | # Is the header present? | 
 | 30119 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 30120 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
 | 30121 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30122 | /* confdefs.h.  */ | 
 | 30123 | _ACEOF | 
 | 30124 | cat confdefs.h >>conftest.$ac_ext | 
 | 30125 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 30126 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30127 | #include <$ac_header> | 
 | 30128 | _ACEOF | 
 | 30129 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 30130 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 30131 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30132 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30133 |   rm -f conftest.er1 | 
 | 30134 |   cat conftest.err >&5 | 
 | 30135 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 30136 |   (exit $ac_status); } >/dev/null; then | 
 | 30137 |   if test -s conftest.err; then | 
 | 30138 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30139 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30140 |   else | 
 | 30141 |     ac_cpp_err= | 
 | 30142 |   fi | 
 | 30143 | else | 
 | 30144 |   ac_cpp_err=yes | 
 | 30145 | fi | 
 | 30146 | if test -z "$ac_cpp_err"; then | 
 | 30147 |   ac_header_preproc=yes | 
 | 30148 | else | 
 | 30149 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30150 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 30151 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30152 |   ac_header_preproc=no | 
 | 30153 | fi | 
 | 30154 | rm -f conftest.err conftest.$ac_ext | 
 | 30155 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 30156 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
 | 30157 |  | 
 | 30158 | # So?  What about this header? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30159 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 30160 |   yes:no: ) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30161 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 30162 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30163 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 30164 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
 | 30165 |     ac_header_preproc=yes | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 30166 |     ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30167 |   no:yes:* ) | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 30168 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 30169 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30170 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 30171 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 30172 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 30173 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 30174 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 30175 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 30176 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 30177 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30178 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 30179 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 30180 |     ( | 
 | 30181 |       cat <<\_ASBOX | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30182 | ## ----------------------------------- ## | 
 | 30183 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 30184 | ## ----------------------------------- ## | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30185 | _ASBOX | 
 | 30186 |     ) | | 
 | 30187 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 30188 |     ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30189 | esac | 
 | 30190 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 30191 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 30192 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 30193 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 30194 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30195 |   eval "$as_ac_Header=\$ac_header_preproc" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30196 | fi | 
 | 30197 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 30198 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 30199 |  | 
 | 30200 | fi | 
 | 30201 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 30202 |   cat >>confdefs.h <<_ACEOF | 
 | 30203 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 30204 | _ACEOF | 
 | 30205 |  | 
 | 30206 | fi | 
 | 30207 |  | 
 | 30208 | done | 
 | 30209 |  | 
 | 30210 |  | 
 | 30211 | for ac_func in getpagesize | 
 | 30212 | do | 
 | 30213 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 30214 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 30215 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
 | 30216 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
 | 30217 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 30218 | else | 
 | 30219 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30220 | /* confdefs.h.  */ | 
 | 30221 | _ACEOF | 
 | 30222 | cat confdefs.h >>conftest.$ac_ext | 
 | 30223 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 30224 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30225 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 30226 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 30227 | #define $ac_func innocuous_$ac_func | 
 | 30228 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30229 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30230 |     which can conflict with char $ac_func (); below. | 
 | 30231 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 30232 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30233 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30234 | #ifdef __STDC__ | 
 | 30235 | # include <limits.h> | 
 | 30236 | #else | 
 | 30237 | # include <assert.h> | 
 | 30238 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30239 |  | 
 | 30240 | #undef $ac_func | 
 | 30241 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30242 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 30243 | #ifdef __cplusplus | 
 | 30244 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30245 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30246 | #endif | 
 | 30247 | /* We use char because int might match the return type of a gcc2 | 
 | 30248 |    builtin and then its argument prototype would still apply.  */ | 
 | 30249 | char $ac_func (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30250 | /* The GNU C library defines this for functions which it implements | 
 | 30251 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 30252 |     something starting with __ and the normal name is an alias.  */ | 
 | 30253 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 30254 | choke me | 
 | 30255 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30256 | char (*f) () = $ac_func; | 
 | 30257 | #endif | 
 | 30258 | #ifdef __cplusplus | 
 | 30259 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30260 | #endif | 
 | 30261 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30262 | int | 
 | 30263 | main () | 
 | 30264 | { | 
 | 30265 | return f != $ac_func; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30266 |   ; | 
 | 30267 |   return 0; | 
 | 30268 | } | 
 | 30269 | _ACEOF | 
 | 30270 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 30271 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30272 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30273 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30274 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 30275 |   rm -f conftest.er1 | 
 | 30276 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30277 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 30278 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30279 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 30280 | 			 || test ! -s conftest.err' | 
 | 30281 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 30282 |   (eval $ac_try) 2>&5 | 
 | 30283 |   ac_status=$? | 
 | 30284 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 30285 |   (exit $ac_status); }; } && | 
 | 30286 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30287 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 30288 |   (eval $ac_try) 2>&5 | 
 | 30289 |   ac_status=$? | 
 | 30290 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 30291 |   (exit $ac_status); }; }; then | 
 | 30292 |   eval "$as_ac_var=yes" | 
 | 30293 | else | 
 | 30294 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30295 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 30296 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30297 | eval "$as_ac_var=no" | 
 | 30298 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30299 | rm -f conftest.err conftest.$ac_objext \ | 
 | 30300 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30301 | fi | 
 | 30302 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
 | 30303 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
 | 30304 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 30305 |   cat >>confdefs.h <<_ACEOF | 
 | 30306 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 30307 | _ACEOF | 
 | 30308 |  | 
 | 30309 | fi | 
 | 30310 | done | 
 | 30311 |  | 
 | 30312 | echo "$as_me:$LINENO: checking for working mmap" >&5 | 
 | 30313 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | 
 | 30314 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | 
 | 30315 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 30316 | else | 
 | 30317 |   if test "$cross_compiling" = yes; then | 
 | 30318 |   ac_cv_func_mmap_fixed_mapped=no | 
 | 30319 | else | 
 | 30320 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30321 | /* confdefs.h.  */ | 
 | 30322 | _ACEOF | 
 | 30323 | cat confdefs.h >>conftest.$ac_ext | 
 | 30324 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 30325 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30326 | $ac_includes_default | 
 | 30327 | /* malloc might have been renamed as rpl_malloc. */ | 
 | 30328 | #undef malloc | 
 | 30329 |  | 
 | 30330 | /* Thanks to Mike Haertel and Jim Avera for this test. | 
 | 30331 |    Here is a matrix of mmap possibilities: | 
 | 30332 | 	mmap private not fixed | 
 | 30333 | 	mmap private fixed at somewhere currently unmapped | 
 | 30334 | 	mmap private fixed at somewhere already mapped | 
 | 30335 | 	mmap shared not fixed | 
 | 30336 | 	mmap shared fixed at somewhere currently unmapped | 
 | 30337 | 	mmap shared fixed at somewhere already mapped | 
 | 30338 |    For private mappings, we should verify that changes cannot be read() | 
 | 30339 |    back from the file, nor mmap's back from the file at a different | 
 | 30340 |    address.  (There have been systems where private was not correctly | 
 | 30341 |    implemented like the infamous i386 svr4.0, and systems where the | 
 | 30342 |    VM page cache was not coherent with the file system buffer cache | 
 | 30343 |    like early versions of FreeBSD and possibly contemporary NetBSD.) | 
 | 30344 |    For shared mappings, we should conversely verify that changes get | 
 | 30345 |    propagated back to all the places they're supposed to be. | 
 | 30346 |  | 
 | 30347 |    Grep wants private fixed already mapped. | 
 | 30348 |    The main things grep needs to know about mmap are: | 
 | 30349 |    * does it exist and is it safe to write into the mmap'd area | 
 | 30350 |    * how to use it (BSD variants)  */ | 
 | 30351 |  | 
 | 30352 | #include <fcntl.h> | 
 | 30353 | #include <sys/mman.h> | 
 | 30354 |  | 
 | 30355 | #if !STDC_HEADERS && !HAVE_STDLIB_H | 
 | 30356 | char *malloc (); | 
 | 30357 | #endif | 
 | 30358 |  | 
 | 30359 | /* This mess was copied from the GNU getpagesize.h.  */ | 
 | 30360 | #if !HAVE_GETPAGESIZE | 
 | 30361 | /* Assume that all systems that can run configure have sys/param.h.  */ | 
 | 30362 | # if !HAVE_SYS_PARAM_H | 
 | 30363 | #  define HAVE_SYS_PARAM_H 1 | 
 | 30364 | # endif | 
 | 30365 |  | 
 | 30366 | # ifdef _SC_PAGESIZE | 
 | 30367 | #  define getpagesize() sysconf(_SC_PAGESIZE) | 
 | 30368 | # else /* no _SC_PAGESIZE */ | 
 | 30369 | #  if HAVE_SYS_PARAM_H | 
 | 30370 | #   include <sys/param.h> | 
 | 30371 | #   ifdef EXEC_PAGESIZE | 
 | 30372 | #    define getpagesize() EXEC_PAGESIZE | 
 | 30373 | #   else /* no EXEC_PAGESIZE */ | 
 | 30374 | #    ifdef NBPG | 
 | 30375 | #     define getpagesize() NBPG * CLSIZE | 
 | 30376 | #     ifndef CLSIZE | 
 | 30377 | #      define CLSIZE 1 | 
 | 30378 | #     endif /* no CLSIZE */ | 
 | 30379 | #    else /* no NBPG */ | 
 | 30380 | #     ifdef NBPC | 
 | 30381 | #      define getpagesize() NBPC | 
 | 30382 | #     else /* no NBPC */ | 
 | 30383 | #      ifdef PAGESIZE | 
 | 30384 | #       define getpagesize() PAGESIZE | 
 | 30385 | #      endif /* PAGESIZE */ | 
 | 30386 | #     endif /* no NBPC */ | 
 | 30387 | #    endif /* no NBPG */ | 
 | 30388 | #   endif /* no EXEC_PAGESIZE */ | 
 | 30389 | #  else /* no HAVE_SYS_PARAM_H */ | 
 | 30390 | #   define getpagesize() 8192	/* punt totally */ | 
 | 30391 | #  endif /* no HAVE_SYS_PARAM_H */ | 
 | 30392 | # endif /* no _SC_PAGESIZE */ | 
 | 30393 |  | 
 | 30394 | #endif /* no HAVE_GETPAGESIZE */ | 
 | 30395 |  | 
 | 30396 | int | 
 | 30397 | main () | 
 | 30398 | { | 
 | 30399 |   char *data, *data2, *data3; | 
 | 30400 |   int i, pagesize; | 
 | 30401 |   int fd; | 
 | 30402 |  | 
 | 30403 |   pagesize = getpagesize (); | 
 | 30404 |  | 
 | 30405 |   /* First, make a file with some known garbage in it. */ | 
 | 30406 |   data = (char *) malloc (pagesize); | 
 | 30407 |   if (!data) | 
 | 30408 |     exit (1); | 
 | 30409 |   for (i = 0; i < pagesize; ++i) | 
 | 30410 |     *(data + i) = rand (); | 
 | 30411 |   umask (0); | 
 | 30412 |   fd = creat ("conftest.mmap", 0600); | 
 | 30413 |   if (fd < 0) | 
 | 30414 |     exit (1); | 
 | 30415 |   if (write (fd, data, pagesize) != pagesize) | 
 | 30416 |     exit (1); | 
 | 30417 |   close (fd); | 
 | 30418 |  | 
 | 30419 |   /* Next, try to mmap the file at a fixed address which already has | 
 | 30420 |      something else allocated at it.  If we can, also make sure that | 
 | 30421 |      we see the same garbage.  */ | 
 | 30422 |   fd = open ("conftest.mmap", O_RDWR); | 
 | 30423 |   if (fd < 0) | 
 | 30424 |     exit (1); | 
 | 30425 |   data2 = (char *) malloc (2 * pagesize); | 
 | 30426 |   if (!data2) | 
 | 30427 |     exit (1); | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30428 |   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30429 |   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30430 | 		     MAP_PRIVATE | MAP_FIXED, fd, 0L)) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30431 |     exit (1); | 
 | 30432 |   for (i = 0; i < pagesize; ++i) | 
 | 30433 |     if (*(data + i) != *(data2 + i)) | 
 | 30434 |       exit (1); | 
 | 30435 |  | 
 | 30436 |   /* Finally, make sure that changes to the mapped area do not | 
 | 30437 |      percolate back to the file as seen by read().  (This is a bug on | 
 | 30438 |      some variants of i386 svr4.0.)  */ | 
 | 30439 |   for (i = 0; i < pagesize; ++i) | 
 | 30440 |     *(data2 + i) = *(data2 + i) + 1; | 
 | 30441 |   data3 = (char *) malloc (pagesize); | 
 | 30442 |   if (!data3) | 
 | 30443 |     exit (1); | 
 | 30444 |   if (read (fd, data3, pagesize) != pagesize) | 
 | 30445 |     exit (1); | 
 | 30446 |   for (i = 0; i < pagesize; ++i) | 
 | 30447 |     if (*(data + i) != *(data3 + i)) | 
 | 30448 |       exit (1); | 
 | 30449 |   close (fd); | 
 | 30450 |   exit (0); | 
 | 30451 | } | 
 | 30452 | _ACEOF | 
 | 30453 | rm -f conftest$ac_exeext | 
 | 30454 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 30455 |   (eval $ac_link) 2>&5 | 
 | 30456 |   ac_status=$? | 
 | 30457 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 30458 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
 | 30459 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 30460 |   (eval $ac_try) 2>&5 | 
 | 30461 |   ac_status=$? | 
 | 30462 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 30463 |   (exit $ac_status); }; }; then | 
 | 30464 |   ac_cv_func_mmap_fixed_mapped=yes | 
 | 30465 | else | 
 | 30466 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 30467 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30468 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 30469 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30470 | ( exit $ac_status ) | 
 | 30471 | ac_cv_func_mmap_fixed_mapped=no | 
 | 30472 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30473 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30474 | fi | 
 | 30475 | fi | 
 | 30476 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | 
 | 30477 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | 
 | 30478 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | 
 | 30479 |  | 
 | 30480 | cat >>confdefs.h <<\_ACEOF | 
 | 30481 | #define HAVE_MMAP 1 | 
 | 30482 | _ACEOF | 
 | 30483 |  | 
 | 30484 | fi | 
 | 30485 | rm -f conftest.mmap | 
 | 30486 |  | 
 | 30487 | echo "$as_me:$LINENO: checking for mmap of files" >&5 | 
 | 30488 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6 | 
 | 30489 | if test "${ac_cv_func_mmap_file+set}" = set; then | 
 | 30490 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 30491 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30492 |    ac_ext=c | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30493 | ac_cpp='$CPP $CPPFLAGS' | 
 | 30494 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 30495 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 30496 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 30497 |  | 
 | 30498 |   if test "$cross_compiling" = yes; then | 
| Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 30499 |   ac_cv_func_mmap_file=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30500 | else | 
 | 30501 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30502 |  | 
| Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 30503 |     /* confdefs.h.  */ | 
 | 30504 | _ACEOF | 
 | 30505 | cat confdefs.h >>conftest.$ac_ext | 
 | 30506 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 30507 | /* end confdefs.h.  */ | 
 | 30508 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30509 | #include <sys/types.h> | 
| John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 30510 | #include <sys/mman.h> | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30511 | #include <fcntl.h> | 
| Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 30512 |  | 
 | 30513 | int | 
 | 30514 | main () | 
 | 30515 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30516 |  | 
 | 30517 |   int fd; | 
| Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 30518 |   fd = creat ("foo",0777); | 
 | 30519 |   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); | 
 | 30520 |   unlink ("foo"); | 
| Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 30521 |   return (fd != (int) MAP_FAILED); | 
| Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 30522 |   ; | 
 | 30523 |   return 0; | 
 | 30524 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30525 | _ACEOF | 
 | 30526 | rm -f conftest$ac_exeext | 
 | 30527 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 30528 |   (eval $ac_link) 2>&5 | 
 | 30529 |   ac_status=$? | 
 | 30530 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 30531 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
 | 30532 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 30533 |   (eval $ac_try) 2>&5 | 
 | 30534 |   ac_status=$? | 
 | 30535 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 30536 |   (exit $ac_status); }; }; then | 
 | 30537 |   ac_cv_func_mmap_file=yes | 
 | 30538 | else | 
 | 30539 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 30540 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30541 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 30542 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30543 | ( exit $ac_status ) | 
 | 30544 | ac_cv_func_mmap_file=no | 
 | 30545 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30546 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30547 | fi | 
 | 30548 |   ac_ext=c | 
 | 30549 | ac_cpp='$CPP $CPPFLAGS' | 
 | 30550 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 30551 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 30552 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 30553 |  | 
 | 30554 |  | 
 | 30555 | fi | 
 | 30556 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 | 
 | 30557 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6 | 
 | 30558 | if test "$ac_cv_func_mmap_file" = yes; then | 
| John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 30559 |  | 
 | 30560 | cat >>confdefs.h <<\_ACEOF | 
 | 30561 | #define HAVE_MMAP_FILE | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30562 | _ACEOF | 
 | 30563 |  | 
 | 30564 |    MMAP_FILE=yes | 
 | 30565 |  | 
 | 30566 | fi | 
 | 30567 |  | 
| Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30568 | echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 | 
 | 30569 | echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6 | 
 | 30570 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then | 
 | 30571 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 30572 | else | 
| Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 30573 |   if test "$llvm_cv_os_type" = "Interix" ; then | 
| Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30574 |    ac_cv_need_dev_zero_for_mmap=yes | 
 | 30575 |  else | 
 | 30576 |    ac_cv_need_dev_zero_for_mmap=no | 
 | 30577 |  fi | 
 | 30578 |  | 
 | 30579 | fi | 
 | 30580 | echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 | 
 | 30581 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6 | 
 | 30582 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then | 
 | 30583 |  | 
 | 30584 | cat >>confdefs.h <<\_ACEOF | 
 | 30585 | #define NEED_DEV_ZERO_FOR_MMAP 1 | 
 | 30586 | _ACEOF | 
 | 30587 |  | 
 | 30588 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30589 | echo "$as_me:$LINENO: checking for mprotect" >&5 | 
 | 30590 | echo $ECHO_N "checking for mprotect... $ECHO_C" >&6 | 
 | 30591 | if test "${ac_cv_func_mprotect+set}" = set; then | 
 | 30592 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 30593 | else | 
 | 30594 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30595 | /* confdefs.h.  */ | 
 | 30596 | _ACEOF | 
 | 30597 | cat confdefs.h >>conftest.$ac_ext | 
 | 30598 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 30599 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30600 | /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect. | 
 | 30601 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 30602 | #define mprotect innocuous_mprotect | 
 | 30603 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30604 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30605 |     which can conflict with char mprotect (); below. | 
 | 30606 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 30607 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30608 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30609 | #ifdef __STDC__ | 
 | 30610 | # include <limits.h> | 
 | 30611 | #else | 
 | 30612 | # include <assert.h> | 
 | 30613 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30614 |  | 
 | 30615 | #undef mprotect | 
 | 30616 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30617 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 30618 | #ifdef __cplusplus | 
 | 30619 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30620 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30621 | #endif | 
 | 30622 | /* We use char because int might match the return type of a gcc2 | 
 | 30623 |    builtin and then its argument prototype would still apply.  */ | 
 | 30624 | char mprotect (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30625 | /* The GNU C library defines this for functions which it implements | 
 | 30626 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 30627 |     something starting with __ and the normal name is an alias.  */ | 
 | 30628 | #if defined (__stub_mprotect) || defined (__stub___mprotect) | 
 | 30629 | choke me | 
 | 30630 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30631 | char (*f) () = mprotect; | 
 | 30632 | #endif | 
 | 30633 | #ifdef __cplusplus | 
 | 30634 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30635 | #endif | 
 | 30636 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30637 | int | 
 | 30638 | main () | 
 | 30639 | { | 
 | 30640 | return f != mprotect; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30641 |   ; | 
 | 30642 |   return 0; | 
 | 30643 | } | 
 | 30644 | _ACEOF | 
 | 30645 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 30646 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30647 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30648 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30649 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 30650 |   rm -f conftest.er1 | 
 | 30651 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30652 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 30653 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30654 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 30655 | 			 || test ! -s conftest.err' | 
 | 30656 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 30657 |   (eval $ac_try) 2>&5 | 
 | 30658 |   ac_status=$? | 
 | 30659 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 30660 |   (exit $ac_status); }; } && | 
 | 30661 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30662 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 30663 |   (eval $ac_try) 2>&5 | 
 | 30664 |   ac_status=$? | 
 | 30665 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 30666 |   (exit $ac_status); }; }; then | 
 | 30667 |   ac_cv_func_mprotect=yes | 
 | 30668 | else | 
 | 30669 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30670 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 30671 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30672 | ac_cv_func_mprotect=no | 
 | 30673 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30674 | rm -f conftest.err conftest.$ac_objext \ | 
 | 30675 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30676 | fi | 
 | 30677 | echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5 | 
 | 30678 | echo "${ECHO_T}$ac_cv_func_mprotect" >&6 | 
 | 30679 | if test $ac_cv_func_mprotect = yes; then | 
 | 30680 |   : | 
 | 30681 | else | 
 | 30682 |   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5 | 
 | 30683 | echo "$as_me: error: Function mprotect() required but not found" >&2;} | 
 | 30684 |    { (exit 1); exit 1; }; } | 
 | 30685 | fi | 
 | 30686 |  | 
 | 30687 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30688 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 30689 | then | 
| Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 30690 |   { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 | 
 | 30691 | echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;} | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 30692 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30693 | if test "$ac_cv_func_mmap_file" = "no" | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 30694 | then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30695 |   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 | 
 | 30696 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 30697 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30698 |  | 
 | 30699 |  | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 30700 | echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 | 
 | 30701 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30702 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then | 
 | 30703 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 30704 | else | 
 | 30705 |   llvm_cv_llvmgcc_sanity="no" | 
| Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 30706 | if test -x "$LLVMGCC" ; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30707 |   cp /dev/null conftest.c | 
| Chris Lattner | 74878f4 | 2006-02-27 05:39:00 +0000 | [diff] [blame] | 30708 |   "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30709 |   if test $? -eq 0 ; then | 
 | 30710 |     llvm_cv_llvmgcc_sanity="yes" | 
 | 30711 |   fi | 
 | 30712 |   rm conftest.c | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 30713 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30714 | fi | 
 | 30715 | echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 | 
 | 30716 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6 | 
 | 30717 |  | 
 | 30718 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then | 
| Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 30719 |   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30720 |   LLVMCC1=$llvmcc1path | 
 | 30721 |  | 
| Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 30722 |   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30723 |   LLVMCC1PLUS=$llvmcc1pluspath | 
 | 30724 |  | 
| Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 30725 |   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` | 
 | 30726 |   LLVMGCCDIR=$llvmgccdir | 
 | 30727 |  | 
| Reid Spencer | b5d75b8 | 2006-05-09 00:31:01 +0000 | [diff] [blame] | 30728 |   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'` | 
| Reid Spencer | 7917d3a | 2006-04-06 22:00:36 +0000 | [diff] [blame] | 30729 |   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'` | 
 | 30730 |   LLVMGCC_VERSION=$llvmgccversion | 
 | 30731 |  | 
 | 30732 |   LLVMGCC_MAJVERS=$llvmgccmajvers | 
 | 30733 |  | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 30734 | fi | 
 | 30735 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 30736 | SHLIBEXT=$libltdl_cv_shlibext | 
| Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 30737 |  | 
 | 30738 |  | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 30739 | # Translate the various configuration directories and other basic | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30740 | # information into substitutions that will end up in Makefile.config.in | 
 | 30741 | # that these configured values can be used by the makefiles | 
| Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 30742 | if test "${prefix}" == "NONE" ; then | 
 | 30743 |   prefix="/usr/local" | 
 | 30744 | fi | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 30745 | eval LLVM_PREFIX="${prefix}"; | 
 | 30746 | eval LLVM_BINDIR="${prefix}/bin"; | 
 | 30747 | eval LLVM_LIBDIR="${prefix}/lib"; | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 30748 | eval LLVM_DATADIR="${prefix}/share/llvm"; | 
 | 30749 | eval LLVM_DOCSDIR="${prefix}/docs/llvm"; | 
 | 30750 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 30751 | eval LLVM_INCLUDEDIR="${prefix}/include"; | 
 | 30752 | eval LLVM_INFODIR="${prefix}/info"; | 
 | 30753 | eval LLVM_MANDIR="${prefix}/man"; | 
 | 30754 | LLVM_CONFIGTIME=`date` | 
 | 30755 |  | 
 | 30756 |  | 
 | 30757 |  | 
 | 30758 |  | 
 | 30759 |  | 
 | 30760 |  | 
 | 30761 |  | 
 | 30762 |  | 
 | 30763 |  | 
 | 30764 |  | 
 | 30765 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30766 | # Place the various directores into the config.h file as #defines so that we | 
 | 30767 | # can know about the installation paths within LLVM. | 
 | 30768 |  | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 30769 | cat >>confdefs.h <<_ACEOF | 
 | 30770 | #define LLVM_PREFIX "$LLVM_PREFIX" | 
 | 30771 | _ACEOF | 
 | 30772 |  | 
 | 30773 |  | 
 | 30774 | cat >>confdefs.h <<_ACEOF | 
 | 30775 | #define LLVM_BINDIR "$LLVM_BINDIR" | 
 | 30776 | _ACEOF | 
 | 30777 |  | 
 | 30778 |  | 
 | 30779 | cat >>confdefs.h <<_ACEOF | 
 | 30780 | #define LLVM_LIBDIR "$LLVM_LIBDIR" | 
 | 30781 | _ACEOF | 
 | 30782 |  | 
 | 30783 |  | 
 | 30784 | cat >>confdefs.h <<_ACEOF | 
 | 30785 | #define LLVM_DATADIR "$LLVM_DATADIR" | 
 | 30786 | _ACEOF | 
 | 30787 |  | 
 | 30788 |  | 
 | 30789 | cat >>confdefs.h <<_ACEOF | 
 | 30790 | #define LLVM_DATADIR "$LLVM_DOCSDIR" | 
 | 30791 | _ACEOF | 
 | 30792 |  | 
 | 30793 |  | 
 | 30794 | cat >>confdefs.h <<_ACEOF | 
| Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 30795 | #define LLVM_ETCDIR "$LLVM_ETCDIR" | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 30796 | _ACEOF | 
 | 30797 |  | 
 | 30798 |  | 
 | 30799 | cat >>confdefs.h <<_ACEOF | 
 | 30800 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" | 
 | 30801 | _ACEOF | 
 | 30802 |  | 
 | 30803 |  | 
 | 30804 | cat >>confdefs.h <<_ACEOF | 
 | 30805 | #define LLVM_INFODIR "$LLVM_INFODIR" | 
 | 30806 | _ACEOF | 
 | 30807 |  | 
 | 30808 |  | 
 | 30809 | cat >>confdefs.h <<_ACEOF | 
 | 30810 | #define LLVM_MANDIR "$LLVM_MANDIR" | 
 | 30811 | _ACEOF | 
 | 30812 |  | 
 | 30813 |  | 
 | 30814 | cat >>confdefs.h <<_ACEOF | 
 | 30815 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" | 
 | 30816 | _ACEOF | 
 | 30817 |  | 
 | 30818 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30819 |  | 
 | 30820 |           ac_config_headers="$ac_config_headers include/llvm/Config/config.h" | 
 | 30821 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30822 |           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" | 
 | 30823 |  | 
 | 30824 |           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map" | 
 | 30825 |  | 
 | 30826 |           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set" | 
 | 30827 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30828 |           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator" | 
 | 30829 |  | 
 | 30830 |  | 
 | 30831 |           ac_config_files="$ac_config_files Makefile.config" | 
 | 30832 |  | 
 | 30833 |  | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 30834 |           ac_config_files="$ac_config_files docs/doxygen.cfg" | 
 | 30835 |  | 
 | 30836 |  | 
| Reid Spencer | e198afc | 2006-04-20 22:15:30 +0000 | [diff] [blame] | 30837 |           ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" | 
| Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 30838 |  | 
 | 30839 |  | 
| Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 30840 |           ac_config_commands="$ac_config_commands setup" | 
 | 30841 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30842 |           ac_config_commands="$ac_config_commands Makefile" | 
 | 30843 |  | 
 | 30844 |  | 
 | 30845 |           ac_config_commands="$ac_config_commands Makefile.common" | 
 | 30846 |  | 
 | 30847 |  | 
 | 30848 |           ac_config_commands="$ac_config_commands examples/Makefile" | 
 | 30849 |  | 
 | 30850 |  | 
 | 30851 |           ac_config_commands="$ac_config_commands lib/Makefile" | 
 | 30852 |  | 
 | 30853 |  | 
 | 30854 |           ac_config_commands="$ac_config_commands runtime/Makefile" | 
 | 30855 |  | 
 | 30856 |  | 
 | 30857 |           ac_config_commands="$ac_config_commands test/Makefile" | 
 | 30858 |  | 
 | 30859 |  | 
 | 30860 |           ac_config_commands="$ac_config_commands test/Makefile.tests" | 
 | 30861 |  | 
 | 30862 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30863 |           ac_config_commands="$ac_config_commands tools/Makefile" | 
 | 30864 |  | 
 | 30865 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30866 |           ac_config_commands="$ac_config_commands utils/Makefile" | 
 | 30867 |  | 
 | 30868 |  | 
 | 30869 |           ac_config_commands="$ac_config_commands projects/Makefile" | 
 | 30870 |  | 
 | 30871 |  | 
 | 30872 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30873 | cat >confcache <<\_ACEOF | 
 | 30874 | # This file is a shell script that caches the results of configure | 
 | 30875 | # tests run on this system so they can be shared between configure | 
 | 30876 | # scripts and configure runs, see configure's option --config-cache. | 
 | 30877 | # It is not useful on other systems.  If it contains results you don't | 
 | 30878 | # want to keep, you may remove or edit it. | 
 | 30879 | # | 
 | 30880 | # config.status only pays attention to the cache file if you give it | 
 | 30881 | # the --recheck option to rerun configure. | 
 | 30882 | # | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30883 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30884 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | 
 | 30885 | # following values. | 
 | 30886 |  | 
 | 30887 | _ACEOF | 
 | 30888 |  | 
 | 30889 | # The following way of writing the cache mishandles newlines in values, | 
 | 30890 | # but we know of no workaround that is simple, portable, and efficient. | 
 | 30891 | # So, don't put newlines in cache variables' values. | 
 | 30892 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
 | 30893 | # and sets the high bit in the cache file unless we assign to the vars. | 
 | 30894 | { | 
 | 30895 |   (set) 2>&1 | | 
 | 30896 |     case `(ac_space=' '; set | grep ac_space) 2>&1` in | 
 | 30897 |     *ac_space=\ *) | 
 | 30898 |       # `set' does not quote correctly, so add quotes (double-quote | 
 | 30899 |       # substitution turns \\\\ into \\, and sed turns \\ into \). | 
 | 30900 |       sed -n \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30901 | 	"s/'/'\\\\''/g; | 
 | 30902 | 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30903 |       ;; | 
 | 30904 |     *) | 
 | 30905 |       # `set' quotes correctly as required by POSIX, so do not add quotes. | 
 | 30906 |       sed -n \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30907 | 	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30908 |       ;; | 
 | 30909 |     esac; | 
 | 30910 | } | | 
 | 30911 |   sed ' | 
 | 30912 |      t clear | 
 | 30913 |      : clear | 
 | 30914 |      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | 
 | 30915 |      t end | 
 | 30916 |      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 
 | 30917 |      : end' >>confcache | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30918 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30919 |   if test -w $cache_file; then | 
 | 30920 |     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | 
 | 30921 |     cat confcache >$cache_file | 
 | 30922 |   else | 
 | 30923 |     echo "not updating unwritable cache $cache_file" | 
 | 30924 |   fi | 
 | 30925 | fi | 
 | 30926 | rm -f confcache | 
 | 30927 |  | 
 | 30928 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
 | 30929 | # Let make expand exec_prefix. | 
 | 30930 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
 | 30931 |  | 
 | 30932 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | 
 | 30933 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | 
 | 30934 | # trailing colons and then remove the whole line if VPATH becomes empty | 
 | 30935 | # (actually we leave an empty line to preserve line numbers). | 
 | 30936 | if test "x$srcdir" = x.; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30937 |   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30938 | s/:*\$(srcdir):*/:/; | 
 | 30939 | s/:*\${srcdir}:*/:/; | 
 | 30940 | s/:*@srcdir@:*/:/; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30941 | s/^\([^=]*=[	 ]*\):*/\1/; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30942 | s/:*$//; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30943 | s/^[^=]*=[	 ]*$//; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30944 | }' | 
 | 30945 | fi | 
 | 30946 |  | 
 | 30947 | DEFS=-DHAVE_CONFIG_H | 
 | 30948 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30949 | ac_libobjs= | 
 | 30950 | ac_ltlibobjs= | 
 | 30951 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 
 | 30952 |   # 1. Remove the extension, and $U if already installed. | 
 | 30953 |   ac_i=`echo "$ac_i" | | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30954 | 	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30955 |   # 2. Add them. | 
 | 30956 |   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | 
 | 30957 |   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | 
 | 30958 | done | 
 | 30959 | LIBOBJS=$ac_libobjs | 
 | 30960 |  | 
 | 30961 | LTLIBOBJS=$ac_ltlibobjs | 
 | 30962 |  | 
 | 30963 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 30964 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then | 
 | 30965 |   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. | 
 | 30966 | Usually this means the macro was only invoked conditionally." >&5 | 
 | 30967 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. | 
 | 30968 | Usually this means the macro was only invoked conditionally." >&2;} | 
 | 30969 |    { (exit 1); exit 1; }; } | 
 | 30970 | fi | 
 | 30971 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then | 
 | 30972 |   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. | 
 | 30973 | Usually this means the macro was only invoked conditionally." >&5 | 
 | 30974 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. | 
 | 30975 | Usually this means the macro was only invoked conditionally." >&2;} | 
 | 30976 |    { (exit 1); exit 1; }; } | 
 | 30977 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30978 |  | 
 | 30979 | : ${CONFIG_STATUS=./config.status} | 
 | 30980 | ac_clean_files_save=$ac_clean_files | 
 | 30981 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 
 | 30982 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | 
 | 30983 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | 
 | 30984 | cat >$CONFIG_STATUS <<_ACEOF | 
 | 30985 | #! $SHELL | 
 | 30986 | # Generated by $as_me. | 
 | 30987 | # Run this file to recreate the current configuration. | 
 | 30988 | # Compiler output produced by configure, useful for debugging | 
 | 30989 | # configure, is in config.log if it exists. | 
 | 30990 |  | 
 | 30991 | debug=false | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30992 | ac_cs_recheck=false | 
 | 30993 | ac_cs_silent=false | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30994 | SHELL=\${CONFIG_SHELL-$SHELL} | 
 | 30995 | _ACEOF | 
 | 30996 |  | 
 | 30997 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30998 | ## --------------------- ## | 
 | 30999 | ## M4sh Initialization.  ## | 
 | 31000 | ## --------------------- ## | 
 | 31001 |  | 
 | 31002 | # Be Bourne compatible | 
 | 31003 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | 
 | 31004 |   emulate sh | 
 | 31005 |   NULLCMD=: | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31006 |   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | 
 | 31007 |   # is contrary to our usage.  Disable this feature. | 
 | 31008 |   alias -g '${1+"$@"}'='"$@"' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31009 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | 
 | 31010 |   set -o posix | 
 | 31011 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31012 | DUALCASE=1; export DUALCASE # for MKS sh | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31013 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31014 | # Support unset when possible. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31015 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31016 |   as_unset=unset | 
 | 31017 | else | 
 | 31018 |   as_unset=false | 
 | 31019 | fi | 
 | 31020 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31021 |  | 
 | 31022 | # Work around bugs in pre-3.0 UWIN ksh. | 
 | 31023 | $as_unset ENV MAIL MAILPATH | 
 | 31024 | PS1='$ ' | 
 | 31025 | PS2='> ' | 
 | 31026 | PS4='+ ' | 
 | 31027 |  | 
 | 31028 | # NLS nuisances. | 
 | 31029 | for as_var in \ | 
 | 31030 |   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | 
 | 31031 |   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | 
 | 31032 |   LC_TELEPHONE LC_TIME | 
 | 31033 | do | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31034 |   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31035 |     eval $as_var=C; export $as_var | 
 | 31036 |   else | 
 | 31037 |     $as_unset $as_var | 
 | 31038 |   fi | 
 | 31039 | done | 
 | 31040 |  | 
 | 31041 | # Required to use basename. | 
 | 31042 | if expr a : '\(a\)' >/dev/null 2>&1; then | 
 | 31043 |   as_expr=expr | 
 | 31044 | else | 
 | 31045 |   as_expr=false | 
 | 31046 | fi | 
 | 31047 |  | 
 | 31048 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | 
 | 31049 |   as_basename=basename | 
 | 31050 | else | 
 | 31051 |   as_basename=false | 
 | 31052 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31053 |  | 
 | 31054 |  | 
 | 31055 | # Name of the executable. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31056 | as_me=`$as_basename "$0" || | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31057 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
 | 31058 | 	 X"$0" : 'X\(//\)$' \| \ | 
 | 31059 | 	 X"$0" : 'X\(/\)$' \| \ | 
 | 31060 | 	 .     : '\(.\)' 2>/dev/null || | 
 | 31061 | echo X/"$0" | | 
 | 31062 |     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | 
 | 31063 |   	  /^X\/\(\/\/\)$/{ s//\1/; q; } | 
 | 31064 |   	  /^X\/\(\/\).*/{ s//\1/; q; } | 
 | 31065 |   	  s/.*/./; q'` | 
 | 31066 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31067 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31068 | # PATH needs CR, and LINENO needs CR and PATH. | 
 | 31069 | # Avoid depending upon Character Ranges. | 
 | 31070 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
 | 31071 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
 | 31072 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
 | 31073 | as_cr_digits='0123456789' | 
 | 31074 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
 | 31075 |  | 
 | 31076 | # The user is always right. | 
 | 31077 | if test "${PATH_SEPARATOR+set}" != set; then | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31078 |   echo "#! /bin/sh" >conf$$.sh | 
 | 31079 |   echo  "exit 0"   >>conf$$.sh | 
 | 31080 |   chmod +x conf$$.sh | 
 | 31081 |   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31082 |     PATH_SEPARATOR=';' | 
 | 31083 |   else | 
 | 31084 |     PATH_SEPARATOR=: | 
 | 31085 |   fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31086 |   rm -f conf$$.sh | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31087 | fi | 
 | 31088 |  | 
 | 31089 |  | 
 | 31090 |   as_lineno_1=$LINENO | 
 | 31091 |   as_lineno_2=$LINENO | 
 | 31092 |   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | 
 | 31093 |   test "x$as_lineno_1" != "x$as_lineno_2" && | 
 | 31094 |   test "x$as_lineno_3"  = "x$as_lineno_2"  || { | 
 | 31095 |   # Find who we are.  Look in the path if we contain no path at all | 
 | 31096 |   # relative or not. | 
 | 31097 |   case $0 in | 
 | 31098 |     *[\\/]* ) as_myself=$0 ;; | 
 | 31099 |     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 31100 | for as_dir in $PATH | 
 | 31101 | do | 
 | 31102 |   IFS=$as_save_IFS | 
 | 31103 |   test -z "$as_dir" && as_dir=. | 
 | 31104 |   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
 | 31105 | done | 
 | 31106 |  | 
 | 31107 |        ;; | 
 | 31108 |   esac | 
 | 31109 |   # We did not find ourselves, most probably we were run as `sh COMMAND' | 
 | 31110 |   # in which case we are not to be found in the path. | 
 | 31111 |   if test "x$as_myself" = x; then | 
 | 31112 |     as_myself=$0 | 
 | 31113 |   fi | 
 | 31114 |   if test ! -f "$as_myself"; then | 
 | 31115 |     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | 
 | 31116 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | 
 | 31117 |    { (exit 1); exit 1; }; } | 
 | 31118 |   fi | 
 | 31119 |   case $CONFIG_SHELL in | 
 | 31120 |   '') | 
 | 31121 |     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 31122 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | 
 | 31123 | do | 
 | 31124 |   IFS=$as_save_IFS | 
 | 31125 |   test -z "$as_dir" && as_dir=. | 
 | 31126 |   for as_base in sh bash ksh sh5; do | 
 | 31127 | 	 case $as_dir in | 
 | 31128 | 	 /*) | 
 | 31129 | 	   if ("$as_dir/$as_base" -c ' | 
 | 31130 |   as_lineno_1=$LINENO | 
 | 31131 |   as_lineno_2=$LINENO | 
 | 31132 |   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | 
 | 31133 |   test "x$as_lineno_1" != "x$as_lineno_2" && | 
 | 31134 |   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] | 31135 | 	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | 
 | 31136 | 	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31137 | 	     CONFIG_SHELL=$as_dir/$as_base | 
 | 31138 | 	     export CONFIG_SHELL | 
 | 31139 | 	     exec "$CONFIG_SHELL" "$0" ${1+"$@"} | 
 | 31140 | 	   fi;; | 
 | 31141 | 	 esac | 
 | 31142 |        done | 
 | 31143 | done | 
 | 31144 | ;; | 
 | 31145 |   esac | 
 | 31146 |  | 
 | 31147 |   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | 
 | 31148 |   # uniformly replaced by the line number.  The first 'sed' inserts a | 
 | 31149 |   # line-number line before each line; the second 'sed' does the real | 
 | 31150 |   # work.  The second script uses 'N' to pair each line-number line | 
 | 31151 |   # with the numbered line, and appends trailing '-' during | 
 | 31152 |   # substitution so that $LINENO is not a special case at line end. | 
 | 31153 |   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | 
 | 31154 |   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-) | 
 | 31155 |   sed '=' <$as_myself | | 
 | 31156 |     sed ' | 
 | 31157 |       N | 
 | 31158 |       s,$,-, | 
 | 31159 |       : loop | 
 | 31160 |       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | 
 | 31161 |       t loop | 
 | 31162 |       s,-$,, | 
 | 31163 |       s,^['$as_cr_digits']*\n,, | 
 | 31164 |     ' >$as_me.lineno && | 
 | 31165 |   chmod +x $as_me.lineno || | 
 | 31166 |     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | 
 | 31167 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | 
 | 31168 |    { (exit 1); exit 1; }; } | 
 | 31169 |  | 
 | 31170 |   # Don't try to exec as it changes $[0], causing all sort of problems | 
 | 31171 |   # (the dirname of $[0] is not the place where we might find the | 
 | 31172 |   # original and so on.  Autoconf is especially sensible to this). | 
 | 31173 |   . ./$as_me.lineno | 
 | 31174 |   # Exit status is that of the last command. | 
 | 31175 |   exit | 
 | 31176 | } | 
 | 31177 |  | 
 | 31178 |  | 
 | 31179 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | 
 | 31180 |   *c*,-n*) ECHO_N= ECHO_C=' | 
 | 31181 | ' ECHO_T='	' ;; | 
 | 31182 |   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;; | 
 | 31183 |   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;; | 
 | 31184 | esac | 
 | 31185 |  | 
 | 31186 | if expr a : '\(a\)' >/dev/null 2>&1; then | 
 | 31187 |   as_expr=expr | 
 | 31188 | else | 
 | 31189 |   as_expr=false | 
 | 31190 | fi | 
 | 31191 |  | 
 | 31192 | rm -f conf$$ conf$$.exe conf$$.file | 
 | 31193 | echo >conf$$.file | 
 | 31194 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
 | 31195 |   # We could just check for DJGPP; but this test a) works b) is more generic | 
 | 31196 |   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | 
 | 31197 |   if test -f conf$$.exe; then | 
 | 31198 |     # Don't use ln at all; we don't have any links | 
 | 31199 |     as_ln_s='cp -p' | 
 | 31200 |   else | 
 | 31201 |     as_ln_s='ln -s' | 
 | 31202 |   fi | 
 | 31203 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
 | 31204 |   as_ln_s=ln | 
 | 31205 | else | 
 | 31206 |   as_ln_s='cp -p' | 
 | 31207 | fi | 
 | 31208 | rm -f conf$$ conf$$.exe conf$$.file | 
 | 31209 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31210 | if mkdir -p . 2>/dev/null; then | 
 | 31211 |   as_mkdir_p=: | 
 | 31212 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31213 |   test -d ./-p && rmdir ./-p | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31214 |   as_mkdir_p=false | 
 | 31215 | fi | 
 | 31216 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31217 | as_executable_p="test -f" | 
 | 31218 |  | 
 | 31219 | # Sed expression to map a string onto a valid CPP name. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31220 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31221 |  | 
 | 31222 | # Sed expression to map a string onto a valid variable name. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31223 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31224 |  | 
 | 31225 |  | 
 | 31226 | # IFS | 
 | 31227 | # We need space, tab and new line, in precisely that order. | 
 | 31228 | as_nl=' | 
 | 31229 | ' | 
 | 31230 | IFS=" 	$as_nl" | 
 | 31231 |  | 
 | 31232 | # CDPATH. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31233 | $as_unset CDPATH | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31234 |  | 
 | 31235 | exec 6>&1 | 
 | 31236 |  | 
 | 31237 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | 
 | 31238 | # report actual input values of CONFIG_FILES etc. instead of their | 
 | 31239 | # values after options handling.  Logging --version etc. is OK. | 
 | 31240 | exec 5>>config.log | 
 | 31241 | { | 
 | 31242 |   echo | 
 | 31243 |   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | 
 | 31244 | ## Running $as_me. ## | 
 | 31245 | _ASBOX | 
 | 31246 | } >&5 | 
 | 31247 | cat >&5 <<_CSEOF | 
 | 31248 |  | 
| Reid Spencer | 57d3725 | 2006-04-14 03:01:27 +0000 | [diff] [blame] | 31249 | This file was extended by llvm $as_me 1.8cvs, which was | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31250 | generated by GNU Autoconf 2.59.  Invocation command line was | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31251 |  | 
 | 31252 |   CONFIG_FILES    = $CONFIG_FILES | 
 | 31253 |   CONFIG_HEADERS  = $CONFIG_HEADERS | 
 | 31254 |   CONFIG_LINKS    = $CONFIG_LINKS | 
 | 31255 |   CONFIG_COMMANDS = $CONFIG_COMMANDS | 
 | 31256 |   $ $0 $@ | 
 | 31257 |  | 
 | 31258 | _CSEOF | 
 | 31259 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | 
 | 31260 | echo >&5 | 
 | 31261 | _ACEOF | 
 | 31262 |  | 
 | 31263 | # Files that config.status was made for. | 
 | 31264 | if test -n "$ac_config_files"; then | 
 | 31265 |   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | 
 | 31266 | fi | 
 | 31267 |  | 
 | 31268 | if test -n "$ac_config_headers"; then | 
 | 31269 |   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | 
 | 31270 | fi | 
 | 31271 |  | 
 | 31272 | if test -n "$ac_config_links"; then | 
 | 31273 |   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | 
 | 31274 | fi | 
 | 31275 |  | 
 | 31276 | if test -n "$ac_config_commands"; then | 
 | 31277 |   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | 
 | 31278 | fi | 
 | 31279 |  | 
 | 31280 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 31281 |  | 
 | 31282 | ac_cs_usage="\ | 
 | 31283 | \`$as_me' instantiates files from templates according to the | 
 | 31284 | current configuration. | 
 | 31285 |  | 
 | 31286 | Usage: $0 [OPTIONS] [FILE]... | 
 | 31287 |  | 
 | 31288 |   -h, --help       print this help, then exit | 
 | 31289 |   -V, --version    print version number, then exit | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31290 |   -q, --quiet      do not print progress messages | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31291 |   -d, --debug      don't remove temporary files | 
 | 31292 |       --recheck    update $as_me by reconfiguring in the same conditions | 
 | 31293 |   --file=FILE[:TEMPLATE] | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31294 | 		   instantiate the configuration file FILE | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31295 |   --header=FILE[:TEMPLATE] | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31296 | 		   instantiate the configuration header FILE | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31297 |  | 
 | 31298 | Configuration files: | 
 | 31299 | $config_files | 
 | 31300 |  | 
 | 31301 | Configuration headers: | 
 | 31302 | $config_headers | 
 | 31303 |  | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31304 | Configuration commands: | 
 | 31305 | $config_commands | 
 | 31306 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31307 | Report bugs to <bug-autoconf@gnu.org>." | 
 | 31308 | _ACEOF | 
 | 31309 |  | 
 | 31310 | cat >>$CONFIG_STATUS <<_ACEOF | 
 | 31311 | ac_cs_version="\\ | 
| Reid Spencer | 57d3725 | 2006-04-14 03:01:27 +0000 | [diff] [blame] | 31312 | llvm config.status 1.8cvs | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31313 | configured by $0, generated by GNU Autoconf 2.59, | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31314 |   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | 
 | 31315 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31316 | Copyright (C) 2003 Free Software Foundation, Inc. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31317 | This config.status script is free software; the Free Software Foundation | 
 | 31318 | gives unlimited permission to copy, distribute and modify it." | 
 | 31319 | srcdir=$srcdir | 
 | 31320 | INSTALL="$INSTALL" | 
 | 31321 | _ACEOF | 
 | 31322 |  | 
 | 31323 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 31324 | # If no file are specified by the user, then we need to provide default | 
 | 31325 | # value.  By we need to know if files were specified by the user. | 
 | 31326 | ac_need_defaults=: | 
 | 31327 | while test $# != 0 | 
 | 31328 | do | 
 | 31329 |   case $1 in | 
 | 31330 |   --*=*) | 
 | 31331 |     ac_option=`expr "x$1" : 'x\([^=]*\)='` | 
 | 31332 |     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31333 |     ac_shift=: | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31334 |     ;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31335 |   -*) | 
 | 31336 |     ac_option=$1 | 
 | 31337 |     ac_optarg=$2 | 
 | 31338 |     ac_shift=shift | 
 | 31339 |     ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31340 |   *) # This is not an option, so the user has probably given explicit | 
 | 31341 |      # arguments. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31342 |      ac_option=$1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31343 |      ac_need_defaults=false;; | 
 | 31344 |   esac | 
 | 31345 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31346 |   case $ac_option in | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31347 |   # Handling of the options. | 
 | 31348 | _ACEOF | 
| John Criswell | d9cd144 | 2003-09-09 20:52:17 +0000 | [diff] [blame] | 31349 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31350 |   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
 | 31351 |     ac_cs_recheck=: ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31352 |   --version | --vers* | -V ) | 
 | 31353 |     echo "$ac_cs_version"; exit 0 ;; | 
 | 31354 |   --he | --h) | 
 | 31355 |     # Conflict between --help and --header | 
 | 31356 |     { { echo "$as_me:$LINENO: error: ambiguous option: $1 | 
 | 31357 | Try \`$0 --help' for more information." >&5 | 
 | 31358 | echo "$as_me: error: ambiguous option: $1 | 
 | 31359 | Try \`$0 --help' for more information." >&2;} | 
 | 31360 |    { (exit 1); exit 1; }; };; | 
 | 31361 |   --help | --hel | -h ) | 
 | 31362 |     echo "$ac_cs_usage"; exit 0 ;; | 
 | 31363 |   --debug | --d* | -d ) | 
 | 31364 |     debug=: ;; | 
 | 31365 |   --file | --fil | --fi | --f ) | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31366 |     $ac_shift | 
 | 31367 |     CONFIG_FILES="$CONFIG_FILES $ac_optarg" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31368 |     ac_need_defaults=false;; | 
 | 31369 |   --header | --heade | --head | --hea ) | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31370 |     $ac_shift | 
 | 31371 |     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31372 |     ac_need_defaults=false;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31373 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 31374 |   | -silent | --silent | --silen | --sile | --sil | --si | --s) | 
 | 31375 |     ac_cs_silent=: ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31376 |  | 
 | 31377 |   # This is an error. | 
 | 31378 |   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | 
 | 31379 | Try \`$0 --help' for more information." >&5 | 
 | 31380 | echo "$as_me: error: unrecognized option: $1 | 
 | 31381 | Try \`$0 --help' for more information." >&2;} | 
 | 31382 |    { (exit 1); exit 1; }; } ;; | 
 | 31383 |  | 
 | 31384 |   *) ac_config_targets="$ac_config_targets $1" ;; | 
 | 31385 |  | 
 | 31386 |   esac | 
 | 31387 |   shift | 
 | 31388 | done | 
 | 31389 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31390 | ac_configure_extra_args= | 
 | 31391 |  | 
 | 31392 | if $ac_cs_silent; then | 
 | 31393 |   exec 6>/dev/null | 
 | 31394 |   ac_configure_extra_args="$ac_configure_extra_args --silent" | 
 | 31395 | fi | 
 | 31396 |  | 
 | 31397 | _ACEOF | 
 | 31398 | cat >>$CONFIG_STATUS <<_ACEOF | 
 | 31399 | if \$ac_cs_recheck; then | 
 | 31400 |   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | 
 | 31401 |   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | 
 | 31402 | fi | 
 | 31403 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31404 | _ACEOF | 
 | 31405 |  | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31406 | cat >>$CONFIG_STATUS <<_ACEOF | 
 | 31407 | # | 
 | 31408 | # INIT-COMMANDS section. | 
 | 31409 | # | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31410 |  | 
| Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 31411 | llvm_src="${srcdir}" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31412 |  | 
 | 31413 | _ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31414 |  | 
 | 31415 |  | 
 | 31416 |  | 
 | 31417 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 31418 | for ac_config_target in $ac_config_targets | 
 | 31419 | do | 
 | 31420 |   case "$ac_config_target" in | 
 | 31421 |   # Handling of arguments. | 
 | 31422 |   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 31423 |   "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; | 
| Reid Spencer | e198afc | 2006-04-20 22:15:30 +0000 | [diff] [blame] | 31424 |   "tools/llvm-config/llvm-config.in" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; | 
| Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 31425 |   "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31426 |   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; | 
 | 31427 |   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; | 
| Reid Spencer | 5f28539 | 2004-08-24 16:32:21 +0000 | [diff] [blame] | 31428 |   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31429 |   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31430 |   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31431 |   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; | 
 | 31432 |   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31433 |   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; | 
| Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 31434 |   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31435 |   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; | 
| Reid Spencer | 551ccae | 2004-09-01 22:55:40 +0000 | [diff] [blame] | 31436 |   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; | 
| John Criswell | 5fbb1f8 | 2004-09-24 13:28:51 +0000 | [diff] [blame] | 31437 |   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; | 
| John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 31438 |   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;; | 
 | 31439 |   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;; | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 31440 |   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31441 |   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | 
 | 31442 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | 
 | 31443 |    { (exit 1); exit 1; }; };; | 
 | 31444 |   esac | 
 | 31445 | done | 
 | 31446 |  | 
 | 31447 | # If the user did not use the arguments to specify the items to instantiate, | 
 | 31448 | # then the envvar interface is used.  Set only those that are not. | 
 | 31449 | # We use the long form for the default assignment because of an extremely | 
 | 31450 | # bizarre bug on SunOS 4.1.3. | 
 | 31451 | if $ac_need_defaults; then | 
 | 31452 |   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 
 | 31453 |   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31454 |   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31455 | fi | 
 | 31456 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31457 | # Have a temporary directory for convenience.  Make it in the build tree | 
 | 31458 | # simply because there is no reason to put it here, and in addition, | 
 | 31459 | # creating and moving files from /tmp can sometimes cause problems. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31460 | # Create a temporary directory, and hook for its removal unless debugging. | 
 | 31461 | $debug || | 
 | 31462 | { | 
 | 31463 |   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | 
 | 31464 |   trap '{ (exit 1); exit 1; }' 1 2 13 15 | 
 | 31465 | } | 
 | 31466 |  | 
 | 31467 | # Create a (secure) tmp directory for tmp files. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31468 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31469 | { | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31470 |   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31471 |   test -n "$tmp" && test -d "$tmp" | 
 | 31472 | }  || | 
 | 31473 | { | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31474 |   tmp=./confstat$$-$RANDOM | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31475 |   (umask 077 && mkdir $tmp) | 
 | 31476 | } || | 
 | 31477 | { | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31478 |    echo "$me: cannot create a temporary directory in ." >&2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31479 |    { (exit 1); exit 1; } | 
 | 31480 | } | 
 | 31481 |  | 
 | 31482 | _ACEOF | 
 | 31483 |  | 
 | 31484 | cat >>$CONFIG_STATUS <<_ACEOF | 
 | 31485 |  | 
 | 31486 | # | 
 | 31487 | # CONFIG_FILES section. | 
 | 31488 | # | 
 | 31489 |  | 
 | 31490 | # No need to generate the scripts if there are no CONFIG_FILES. | 
 | 31491 | # This happens for instance when ./config.status config.h | 
 | 31492 | if test -n "\$CONFIG_FILES"; then | 
 | 31493 |   # Protect against being on the right side of a sed subst in config.status. | 
 | 31494 |   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | 
 | 31495 |    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | 
 | 31496 | s,@SHELL@,$SHELL,;t t | 
 | 31497 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | 
 | 31498 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | 
 | 31499 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | 
 | 31500 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | 
 | 31501 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | 
 | 31502 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | 
 | 31503 | s,@exec_prefix@,$exec_prefix,;t t | 
 | 31504 | s,@prefix@,$prefix,;t t | 
 | 31505 | s,@program_transform_name@,$program_transform_name,;t t | 
 | 31506 | s,@bindir@,$bindir,;t t | 
 | 31507 | s,@sbindir@,$sbindir,;t t | 
 | 31508 | s,@libexecdir@,$libexecdir,;t t | 
 | 31509 | s,@datadir@,$datadir,;t t | 
 | 31510 | s,@sysconfdir@,$sysconfdir,;t t | 
 | 31511 | s,@sharedstatedir@,$sharedstatedir,;t t | 
 | 31512 | s,@localstatedir@,$localstatedir,;t t | 
 | 31513 | s,@libdir@,$libdir,;t t | 
 | 31514 | s,@includedir@,$includedir,;t t | 
 | 31515 | s,@oldincludedir@,$oldincludedir,;t t | 
 | 31516 | s,@infodir@,$infodir,;t t | 
 | 31517 | s,@mandir@,$mandir,;t t | 
 | 31518 | s,@build_alias@,$build_alias,;t t | 
 | 31519 | s,@host_alias@,$host_alias,;t t | 
 | 31520 | s,@target_alias@,$target_alias,;t t | 
 | 31521 | s,@DEFS@,$DEFS,;t t | 
 | 31522 | s,@ECHO_C@,$ECHO_C,;t t | 
 | 31523 | s,@ECHO_N@,$ECHO_N,;t t | 
 | 31524 | s,@ECHO_T@,$ECHO_T,;t t | 
 | 31525 | s,@LIBS@,$LIBS,;t t | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31526 | s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 31527 | s,@subdirs@,$subdirs,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31528 | s,@build@,$build,;t t | 
 | 31529 | s,@build_cpu@,$build_cpu,;t t | 
 | 31530 | s,@build_vendor@,$build_vendor,;t t | 
 | 31531 | s,@build_os@,$build_os,;t t | 
 | 31532 | s,@host@,$host,;t t | 
 | 31533 | s,@host_cpu@,$host_cpu,;t t | 
 | 31534 | s,@host_vendor@,$host_vendor,;t t | 
 | 31535 | s,@host_os@,$host_os,;t t | 
 | 31536 | s,@target@,$target,;t t | 
 | 31537 | s,@target_cpu@,$target_cpu,;t t | 
 | 31538 | s,@target_vendor@,$target_vendor,;t t | 
 | 31539 | s,@target_os@,$target_os,;t t | 
 | 31540 | s,@OS@,$OS,;t t | 
| Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 31541 | s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t | 
 | 31542 | s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t | 
| John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 31543 | s,@ARCH@,$ARCH,;t t | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31544 | s,@ENDIAN@,$ENDIAN,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31545 | s,@CC@,$CC,;t t | 
 | 31546 | s,@CFLAGS@,$CFLAGS,;t t | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31547 | s,@LDFLAGS@,$LDFLAGS,;t t | 
 | 31548 | s,@CPPFLAGS@,$CPPFLAGS,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31549 | s,@ac_ct_CC@,$ac_ct_CC,;t t | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31550 | s,@EXEEXT@,$EXEEXT,;t t | 
 | 31551 | s,@OBJEXT@,$OBJEXT,;t t | 
| Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 31552 | s,@CVSBUILD@,$CVSBUILD,;t t | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31553 | s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t | 
| Reid Spencer | c28ccd8 | 2006-04-09 20:42:14 +0000 | [diff] [blame] | 31554 | s,@DISABLE_ASSERTIONS@,$DISABLE_ASSERTIONS,;t t | 
| Reid Spencer | 6e96d81 | 2005-12-21 03:31:53 +0000 | [diff] [blame] | 31555 | s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31556 | s,@JIT@,$JIT,;t t | 
| Reid Spencer | b195d9d | 2006-03-23 23:21:29 +0000 | [diff] [blame] | 31557 | s,@TARGET_HAS_JIT@,$TARGET_HAS_JIT,;t t | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 31558 | s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t | 
| Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 31559 | s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t | 
| Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 31560 | s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31561 | s,@CPP@,$CPP,;t t | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31562 | s,@CXX@,$CXX,;t t | 
 | 31563 | s,@CXXFLAGS@,$CXXFLAGS,;t t | 
 | 31564 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31565 | s,@LEX@,$LEX,;t t | 
 | 31566 | s,@LEXLIB@,$LEXLIB,;t t | 
 | 31567 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t | 
| Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 31568 | s,@FLEX@,$FLEX,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31569 | s,@YACC@,$YACC,;t t | 
| Brian Gaeke | 1281063 | 2004-01-13 06:52:10 +0000 | [diff] [blame] | 31570 | s,@BISON@,$BISON,;t t | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31571 | s,@ifGNUmake@,$ifGNUmake,;t t | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 31572 | s,@LN_S@,$LN_S,;t t | 
| Reid Spencer | 8a2d471 | 2004-12-16 17:48:14 +0000 | [diff] [blame] | 31573 | s,@CMP@,$CMP,;t t | 
 | 31574 | s,@CP@,$CP,;t t | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 31575 | s,@DATE@,$DATE,;t t | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31576 | s,@FIND@,$FIND,;t t | 
 | 31577 | s,@GREP@,$GREP,;t t | 
 | 31578 | s,@MKDIR@,$MKDIR,;t t | 
 | 31579 | s,@MV@,$MV,;t t | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 31580 | s,@RANLIB@,$RANLIB,;t t | 
 | 31581 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31582 | s,@RM@,$RM,;t t | 
 | 31583 | s,@SED@,$SED,;t t | 
| Reid Spencer | ad354c9 | 2004-10-25 08:18:47 +0000 | [diff] [blame] | 31584 | s,@TAR@,$TAR,;t t | 
| Reid Spencer | 8a2246f | 2005-07-13 03:20:14 +0000 | [diff] [blame] | 31585 | s,@GRAPHVIZ@,$GRAPHVIZ,;t t | 
| Reid Spencer | be13028 | 2005-07-14 05:19:12 +0000 | [diff] [blame] | 31586 | s,@GV@,$GV,;t t | 
| Reid Spencer | b195d9d | 2006-03-23 23:21:29 +0000 | [diff] [blame] | 31587 | s,@PERL@,$PERL,;t t | 
 | 31588 | s,@HAVE_PERL@,$HAVE_PERL,;t t | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31589 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | 
 | 31590 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | 
 | 31591 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 31592 | s,@BZIP2@,$BZIP2,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31593 | s,@DOT@,$DOT,;t t | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 31594 | s,@DOXYGEN@,$DOXYGEN,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31595 | s,@ETAGS@,$ETAGS,;t t | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 31596 | s,@GROFF@,$GROFF,;t t | 
 | 31597 | s,@GZIP@,$GZIP,;t t | 
 | 31598 | s,@POD2HTML@,$POD2HTML,;t t | 
 | 31599 | s,@POD2MAN@,$POD2MAN,;t t | 
| Reid Spencer | 4b8f82f | 2004-11-07 23:29:39 +0000 | [diff] [blame] | 31600 | s,@RUNTEST@,$RUNTEST,;t t | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 31601 | s,@TCLSH@,$TCLSH,;t t | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 31602 | s,@ZIP@,$ZIP,;t t | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 31603 | s,@EGREP@,$EGREP,;t t | 
 | 31604 | s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t | 
 | 31605 | s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t | 
 | 31606 | s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t | 
 | 31607 | s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t | 
 | 31608 | s,@LIBADD_DL@,$LIBADD_DL,;t t | 
 | 31609 | s,@ECHO@,$ECHO,;t t | 
 | 31610 | s,@AR@,$AR,;t t | 
 | 31611 | s,@ac_ct_AR@,$ac_ct_AR,;t t | 
 | 31612 | s,@STRIP@,$STRIP,;t t | 
 | 31613 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | 
 | 31614 | s,@CXXCPP@,$CXXCPP,;t t | 
 | 31615 | s,@F77@,$F77,;t t | 
 | 31616 | s,@FFLAGS@,$FFLAGS,;t t | 
 | 31617 | s,@ac_ct_F77@,$ac_ct_F77,;t t | 
 | 31618 | s,@LIBTOOL@,$LIBTOOL,;t t | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31619 | s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 31620 | s,@LLVMGCC@,$LLVMGCC,;t t | 
 | 31621 | s,@LLVMGXX@,$LLVMGXX,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31622 | s,@ALLOCA@,$ALLOCA,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31623 | s,@MMAP_FILE@,$MMAP_FILE,;t t | 
| Brian Gaeke | 2f50a04 | 2004-01-16 21:31:21 +0000 | [diff] [blame] | 31624 | s,@LLVMCC1@,$LLVMCC1,;t t | 
 | 31625 | s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t | 
| Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 31626 | s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t | 
| Reid Spencer | 7917d3a | 2006-04-06 22:00:36 +0000 | [diff] [blame] | 31627 | s,@LLVMGCC_VERSION@,$LLVMGCC_VERSION,;t t | 
 | 31628 | s,@LLVMGCC_MAJVERS@,$LLVMGCC_MAJVERS,;t t | 
| Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 31629 | s,@SHLIBEXT@,$SHLIBEXT,;t t | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 31630 | s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t | 
 | 31631 | s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t | 
 | 31632 | s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t | 
 | 31633 | s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t | 
 | 31634 | s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t | 
 | 31635 | s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t | 
 | 31636 | s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t | 
 | 31637 | s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t | 
 | 31638 | s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t | 
 | 31639 | s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 31640 | s,@LIBOBJS@,$LIBOBJS,;t t | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31641 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31642 | CEOF | 
 | 31643 |  | 
 | 31644 | _ACEOF | 
 | 31645 |  | 
 | 31646 |   cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 31647 |   # Split the substitutions into bite-sized pieces for seds with | 
 | 31648 |   # small command number limits, like on Digital OSF/1 and HP-UX. | 
 | 31649 |   ac_max_sed_lines=48 | 
 | 31650 |   ac_sed_frag=1 # Number of current file. | 
 | 31651 |   ac_beg=1 # First line for current file. | 
 | 31652 |   ac_end=$ac_max_sed_lines # Line after last line for current file. | 
 | 31653 |   ac_more_lines=: | 
 | 31654 |   ac_sed_cmds= | 
 | 31655 |   while $ac_more_lines; do | 
 | 31656 |     if test $ac_beg -gt 1; then | 
 | 31657 |       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | 
 | 31658 |     else | 
 | 31659 |       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | 
 | 31660 |     fi | 
 | 31661 |     if test ! -s $tmp/subs.frag; then | 
 | 31662 |       ac_more_lines=false | 
 | 31663 |     else | 
 | 31664 |       # The purpose of the label and of the branching condition is to | 
 | 31665 |       # speed up the sed processing (if there are no `@' at all, there | 
 | 31666 |       # is no need to browse any of the substitutions). | 
 | 31667 |       # These are the two extra sed commands mentioned above. | 
 | 31668 |       (echo ':t | 
 | 31669 |   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | 
 | 31670 |       if test -z "$ac_sed_cmds"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31671 | 	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31672 |       else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31673 | 	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31674 |       fi | 
 | 31675 |       ac_sed_frag=`expr $ac_sed_frag + 1` | 
 | 31676 |       ac_beg=$ac_end | 
 | 31677 |       ac_end=`expr $ac_end + $ac_max_sed_lines` | 
 | 31678 |     fi | 
 | 31679 |   done | 
 | 31680 |   if test -z "$ac_sed_cmds"; then | 
 | 31681 |     ac_sed_cmds=cat | 
 | 31682 |   fi | 
 | 31683 | fi # test -n "$CONFIG_FILES" | 
 | 31684 |  | 
 | 31685 | _ACEOF | 
 | 31686 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 31687 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | 
 | 31688 |   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 
 | 31689 |   case $ac_file in | 
 | 31690 |   - | *:- | *:-:* ) # input from stdin | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31691 | 	cat >$tmp/stdin | 
 | 31692 | 	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
 | 31693 | 	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31694 |   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31695 | 	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31696 |   * )   ac_file_in=$ac_file.in ;; | 
 | 31697 |   esac | 
 | 31698 |  | 
 | 31699 |   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | 
 | 31700 |   ac_dir=`(dirname "$ac_file") 2>/dev/null || | 
 | 31701 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31702 | 	 X"$ac_file" : 'X\(//\)[^/]' \| \ | 
 | 31703 | 	 X"$ac_file" : 'X\(//\)$' \| \ | 
 | 31704 | 	 X"$ac_file" : 'X\(/\)' \| \ | 
 | 31705 | 	 .     : '\(.\)' 2>/dev/null || | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31706 | echo X"$ac_file" | | 
 | 31707 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 31708 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 31709 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 31710 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 31711 |   	  s/.*/./; q'` | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31712 |   { if $as_mkdir_p; then | 
 | 31713 |     mkdir -p "$ac_dir" | 
 | 31714 |   else | 
 | 31715 |     as_dir="$ac_dir" | 
 | 31716 |     as_dirs= | 
 | 31717 |     while test ! -d "$as_dir"; do | 
 | 31718 |       as_dirs="$as_dir $as_dirs" | 
 | 31719 |       as_dir=`(dirname "$as_dir") 2>/dev/null || | 
 | 31720 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31721 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 31722 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 31723 | 	 X"$as_dir" : 'X\(/\)' \| \ | 
 | 31724 | 	 .     : '\(.\)' 2>/dev/null || | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31725 | echo X"$as_dir" | | 
 | 31726 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 31727 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 31728 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 31729 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 31730 |   	  s/.*/./; q'` | 
 | 31731 |     done | 
 | 31732 |     test ! -n "$as_dirs" || mkdir $as_dirs | 
 | 31733 |   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | 
 | 31734 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | 
 | 31735 |    { (exit 1); exit 1; }; }; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31736 |  | 
 | 31737 |   ac_builddir=. | 
 | 31738 |  | 
 | 31739 | if test "$ac_dir" != .; then | 
 | 31740 |   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
 | 31741 |   # A "../" for each directory in $ac_dir_suffix. | 
 | 31742 |   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
 | 31743 | else | 
 | 31744 |   ac_dir_suffix= ac_top_builddir= | 
 | 31745 | fi | 
 | 31746 |  | 
 | 31747 | case $srcdir in | 
 | 31748 |   .)  # No --srcdir option.  We are building in place. | 
 | 31749 |     ac_srcdir=. | 
 | 31750 |     if test -z "$ac_top_builddir"; then | 
 | 31751 |        ac_top_srcdir=. | 
 | 31752 |     else | 
 | 31753 |        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
 | 31754 |     fi ;; | 
 | 31755 |   [\\/]* | ?:[\\/]* )  # Absolute path. | 
 | 31756 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
 | 31757 |     ac_top_srcdir=$srcdir ;; | 
 | 31758 |   *) # Relative path. | 
 | 31759 |     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
 | 31760 |     ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
 | 31761 | esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31762 |  | 
 | 31763 | # Do not use `cd foo && pwd` to compute absolute paths, because | 
 | 31764 | # the directories may not exist. | 
 | 31765 | case `pwd` in | 
 | 31766 | .) ac_abs_builddir="$ac_dir";; | 
 | 31767 | *) | 
 | 31768 |   case "$ac_dir" in | 
 | 31769 |   .) ac_abs_builddir=`pwd`;; | 
 | 31770 |   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | 
 | 31771 |   *) ac_abs_builddir=`pwd`/"$ac_dir";; | 
 | 31772 |   esac;; | 
 | 31773 | esac | 
 | 31774 | case $ac_abs_builddir in | 
 | 31775 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 31776 | *) | 
 | 31777 |   case ${ac_top_builddir}. in | 
 | 31778 |   .) ac_abs_top_builddir=$ac_abs_builddir;; | 
 | 31779 |   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 31780 |   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | 
 | 31781 |   esac;; | 
 | 31782 | esac | 
 | 31783 | case $ac_abs_builddir in | 
 | 31784 | .) ac_abs_srcdir=$ac_srcdir;; | 
 | 31785 | *) | 
 | 31786 |   case $ac_srcdir in | 
 | 31787 |   .) ac_abs_srcdir=$ac_abs_builddir;; | 
 | 31788 |   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | 
 | 31789 |   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | 
 | 31790 |   esac;; | 
 | 31791 | esac | 
 | 31792 | case $ac_abs_builddir in | 
 | 31793 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 31794 | *) | 
 | 31795 |   case $ac_top_srcdir in | 
 | 31796 |   .) ac_abs_top_srcdir=$ac_abs_builddir;; | 
 | 31797 |   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 31798 |   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | 
 | 31799 |   esac;; | 
 | 31800 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31801 |  | 
 | 31802 |  | 
 | 31803 |   case $INSTALL in | 
 | 31804 |   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | 
 | 31805 |   *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | 
 | 31806 |   esac | 
 | 31807 |  | 
 | 31808 |   if test x"$ac_file" != x-; then | 
 | 31809 |     { echo "$as_me:$LINENO: creating $ac_file" >&5 | 
 | 31810 | echo "$as_me: creating $ac_file" >&6;} | 
 | 31811 |     rm -f "$ac_file" | 
 | 31812 |   fi | 
 | 31813 |   # Let's still pretend it is `configure' which instantiates (i.e., don't | 
 | 31814 |   # use $as_me), people would be surprised to read: | 
 | 31815 |   #    /* config.h.  Generated by config.status.  */ | 
 | 31816 |   if test x"$ac_file" = x-; then | 
 | 31817 |     configure_input= | 
 | 31818 |   else | 
 | 31819 |     configure_input="$ac_file.  " | 
 | 31820 |   fi | 
 | 31821 |   configure_input=$configure_input"Generated from `echo $ac_file_in | | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31822 | 				     sed 's,.*/,,'` by configure." | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31823 |  | 
 | 31824 |   # First look for the input files in the build tree, otherwise in the | 
 | 31825 |   # src tree. | 
 | 31826 |   ac_file_inputs=`IFS=: | 
 | 31827 |     for f in $ac_file_in; do | 
 | 31828 |       case $f in | 
 | 31829 |       -) echo $tmp/stdin ;; | 
 | 31830 |       [\\/$]*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31831 | 	 # Absolute (can't be DOS-style, as IFS=:) | 
 | 31832 | 	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31833 | echo "$as_me: error: cannot find input file: $f" >&2;} | 
 | 31834 |    { (exit 1); exit 1; }; } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31835 | 	 echo "$f";; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31836 |       *) # Relative | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31837 | 	 if test -f "$f"; then | 
 | 31838 | 	   # Build tree | 
 | 31839 | 	   echo "$f" | 
 | 31840 | 	 elif test -f "$srcdir/$f"; then | 
 | 31841 | 	   # Source tree | 
 | 31842 | 	   echo "$srcdir/$f" | 
 | 31843 | 	 else | 
 | 31844 | 	   # /dev/null tree | 
 | 31845 | 	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31846 | echo "$as_me: error: cannot find input file: $f" >&2;} | 
 | 31847 |    { (exit 1); exit 1; }; } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31848 | 	 fi;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31849 |       esac | 
 | 31850 |     done` || { (exit 1); exit 1; } | 
 | 31851 | _ACEOF | 
 | 31852 | cat >>$CONFIG_STATUS <<_ACEOF | 
 | 31853 |   sed "$ac_vpsub | 
 | 31854 | $extrasub | 
 | 31855 | _ACEOF | 
 | 31856 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 31857 | :t | 
 | 31858 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
 | 31859 | s,@configure_input@,$configure_input,;t t | 
 | 31860 | s,@srcdir@,$ac_srcdir,;t t | 
 | 31861 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | 
 | 31862 | s,@top_srcdir@,$ac_top_srcdir,;t t | 
 | 31863 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | 
 | 31864 | s,@builddir@,$ac_builddir,;t t | 
 | 31865 | s,@abs_builddir@,$ac_abs_builddir,;t t | 
 | 31866 | s,@top_builddir@,$ac_top_builddir,;t t | 
 | 31867 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | 
 | 31868 | s,@INSTALL@,$ac_INSTALL,;t t | 
 | 31869 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | 
 | 31870 |   rm -f $tmp/stdin | 
 | 31871 |   if test x"$ac_file" != x-; then | 
 | 31872 |     mv $tmp/out $ac_file | 
 | 31873 |   else | 
 | 31874 |     cat $tmp/out | 
 | 31875 |     rm -f $tmp/out | 
 | 31876 |   fi | 
 | 31877 |  | 
 | 31878 | done | 
 | 31879 | _ACEOF | 
 | 31880 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 31881 |  | 
 | 31882 | # | 
 | 31883 | # CONFIG_HEADER section. | 
 | 31884 | # | 
 | 31885 |  | 
 | 31886 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | 
 | 31887 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | 
 | 31888 | # | 
 | 31889 | # ac_d sets the value in "#define NAME VALUE" lines. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31890 | ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)' | 
 | 31891 | ac_dB='[	 ].*$,\1#\2' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31892 | ac_dC=' ' | 
 | 31893 | ac_dD=',;t' | 
 | 31894 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31895 | ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31896 | ac_uB='$,\1#\2define\3' | 
 | 31897 | ac_uC=' ' | 
 | 31898 | ac_uD=',;t' | 
 | 31899 |  | 
 | 31900 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | 
 | 31901 |   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 
 | 31902 |   case $ac_file in | 
 | 31903 |   - | *:- | *:-:* ) # input from stdin | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31904 | 	cat >$tmp/stdin | 
 | 31905 | 	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
 | 31906 | 	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31907 |   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31908 | 	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31909 |   * )   ac_file_in=$ac_file.in ;; | 
 | 31910 |   esac | 
 | 31911 |  | 
 | 31912 |   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | 
 | 31913 | echo "$as_me: creating $ac_file" >&6;} | 
 | 31914 |  | 
 | 31915 |   # First look for the input files in the build tree, otherwise in the | 
 | 31916 |   # src tree. | 
 | 31917 |   ac_file_inputs=`IFS=: | 
 | 31918 |     for f in $ac_file_in; do | 
 | 31919 |       case $f in | 
 | 31920 |       -) echo $tmp/stdin ;; | 
 | 31921 |       [\\/$]*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31922 | 	 # Absolute (can't be DOS-style, as IFS=:) | 
 | 31923 | 	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31924 | echo "$as_me: error: cannot find input file: $f" >&2;} | 
 | 31925 |    { (exit 1); exit 1; }; } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31926 | 	 # Do quote $f, to prevent DOS paths from being IFS'd. | 
 | 31927 | 	 echo "$f";; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31928 |       *) # Relative | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31929 | 	 if test -f "$f"; then | 
 | 31930 | 	   # Build tree | 
 | 31931 | 	   echo "$f" | 
 | 31932 | 	 elif test -f "$srcdir/$f"; then | 
 | 31933 | 	   # Source tree | 
 | 31934 | 	   echo "$srcdir/$f" | 
 | 31935 | 	 else | 
 | 31936 | 	   # /dev/null tree | 
 | 31937 | 	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31938 | echo "$as_me: error: cannot find input file: $f" >&2;} | 
 | 31939 |    { (exit 1); exit 1; }; } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31940 | 	 fi;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31941 |       esac | 
 | 31942 |     done` || { (exit 1); exit 1; } | 
 | 31943 |   # Remove the trailing spaces. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31944 |   sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31945 |  | 
 | 31946 | _ACEOF | 
 | 31947 |  | 
 | 31948 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | 
 | 31949 | # `conftest.undefs', that substitutes the proper values into | 
 | 31950 | # config.h.in to produce config.h.  The first handles `#define' | 
 | 31951 | # templates, and the second `#undef' templates. | 
 | 31952 | # And first: Protect against being on the right side of a sed subst in | 
 | 31953 | # config.status.  Protect against being in an unquoted here document | 
 | 31954 | # in config.status. | 
 | 31955 | rm -f conftest.defines conftest.undefs | 
 | 31956 | # Using a here document instead of a string reduces the quoting nightmare. | 
 | 31957 | # Putting comments in sed scripts is not portable. | 
 | 31958 | # | 
 | 31959 | # `end' is used to avoid that the second main sed command (meant for | 
 | 31960 | # 0-ary CPP macros) applies to n-ary macro definitions. | 
 | 31961 | # See the Autoconf documentation for `clear'. | 
 | 31962 | cat >confdef2sed.sed <<\_ACEOF | 
 | 31963 | s/[\\&,]/\\&/g | 
 | 31964 | s,[\\$`],\\&,g | 
 | 31965 | t clear | 
 | 31966 | : clear | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31967 | s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31968 | t end | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31969 | s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31970 | : end | 
 | 31971 | _ACEOF | 
 | 31972 | # If some macros were called several times there might be several times | 
 | 31973 | # the same #defines, which is useless.  Nevertheless, we may not want to | 
 | 31974 | # sort them, since we want the *last* AC-DEFINE to be honored. | 
 | 31975 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | 
 | 31976 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | 
 | 31977 | rm -f confdef2sed.sed | 
 | 31978 |  | 
 | 31979 | # This sed command replaces #undef with comments.  This is necessary, for | 
 | 31980 | # example, in the case of _POSIX_SOURCE, which is predefined and required | 
 | 31981 | # on some systems where configure will not decide to define it. | 
 | 31982 | cat >>conftest.undefs <<\_ACEOF | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31983 | s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31984 | _ACEOF | 
 | 31985 |  | 
 | 31986 | # Break up conftest.defines because some shells have a limit on the size | 
 | 31987 | # of here documents, and old seds have small limits too (100 cmds). | 
 | 31988 | echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31989 | echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31990 | echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | 
 | 31991 | echo '  :' >>$CONFIG_STATUS | 
 | 31992 | rm -f conftest.tail | 
 | 31993 | while grep . conftest.defines >/dev/null | 
 | 31994 | do | 
 | 31995 |   # Write a limited-size here document to $tmp/defines.sed. | 
 | 31996 |   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | 
 | 31997 |   # Speed up: don't consider the non `#define' lines. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31998 |   echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31999 |   # Work around the forget-to-reset-the-flag bug. | 
 | 32000 |   echo 't clr' >>$CONFIG_STATUS | 
 | 32001 |   echo ': clr' >>$CONFIG_STATUS | 
 | 32002 |   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | 
 | 32003 |   echo 'CEOF | 
 | 32004 |   sed -f $tmp/defines.sed $tmp/in >$tmp/out | 
 | 32005 |   rm -f $tmp/in | 
 | 32006 |   mv $tmp/out $tmp/in | 
 | 32007 | ' >>$CONFIG_STATUS | 
 | 32008 |   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | 
 | 32009 |   rm -f conftest.defines | 
 | 32010 |   mv conftest.tail conftest.defines | 
 | 32011 | done | 
 | 32012 | rm -f conftest.defines | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32013 | echo '  fi # grep' >>$CONFIG_STATUS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32014 | echo >>$CONFIG_STATUS | 
 | 32015 |  | 
 | 32016 | # Break up conftest.undefs because some shells have a limit on the size | 
 | 32017 | # of here documents, and old seds have small limits too (100 cmds). | 
 | 32018 | echo '  # Handle all the #undef templates' >>$CONFIG_STATUS | 
 | 32019 | rm -f conftest.tail | 
 | 32020 | while grep . conftest.undefs >/dev/null | 
 | 32021 | do | 
 | 32022 |   # Write a limited-size here document to $tmp/undefs.sed. | 
 | 32023 |   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | 
 | 32024 |   # Speed up: don't consider the non `#undef' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32025 |   echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32026 |   # Work around the forget-to-reset-the-flag bug. | 
 | 32027 |   echo 't clr' >>$CONFIG_STATUS | 
 | 32028 |   echo ': clr' >>$CONFIG_STATUS | 
 | 32029 |   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | 
 | 32030 |   echo 'CEOF | 
 | 32031 |   sed -f $tmp/undefs.sed $tmp/in >$tmp/out | 
 | 32032 |   rm -f $tmp/in | 
 | 32033 |   mv $tmp/out $tmp/in | 
 | 32034 | ' >>$CONFIG_STATUS | 
 | 32035 |   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | 
 | 32036 |   rm -f conftest.undefs | 
 | 32037 |   mv conftest.tail conftest.undefs | 
 | 32038 | done | 
 | 32039 | rm -f conftest.undefs | 
 | 32040 |  | 
 | 32041 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 32042 |   # Let's still pretend it is `configure' which instantiates (i.e., don't | 
 | 32043 |   # use $as_me), people would be surprised to read: | 
 | 32044 |   #    /* config.h.  Generated by config.status.  */ | 
 | 32045 |   if test x"$ac_file" = x-; then | 
 | 32046 |     echo "/* Generated by configure.  */" >$tmp/config.h | 
 | 32047 |   else | 
 | 32048 |     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h | 
 | 32049 |   fi | 
 | 32050 |   cat $tmp/in >>$tmp/config.h | 
 | 32051 |   rm -f $tmp/in | 
 | 32052 |   if test x"$ac_file" != x-; then | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32053 |     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32054 |       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | 
 | 32055 | echo "$as_me: $ac_file is unchanged" >&6;} | 
 | 32056 |     else | 
 | 32057 |       ac_dir=`(dirname "$ac_file") 2>/dev/null || | 
 | 32058 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32059 | 	 X"$ac_file" : 'X\(//\)[^/]' \| \ | 
 | 32060 | 	 X"$ac_file" : 'X\(//\)$' \| \ | 
 | 32061 | 	 X"$ac_file" : 'X\(/\)' \| \ | 
 | 32062 | 	 .     : '\(.\)' 2>/dev/null || | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32063 | echo X"$ac_file" | | 
 | 32064 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 32065 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 32066 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 32067 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 32068 |   	  s/.*/./; q'` | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32069 |       { if $as_mkdir_p; then | 
 | 32070 |     mkdir -p "$ac_dir" | 
 | 32071 |   else | 
 | 32072 |     as_dir="$ac_dir" | 
 | 32073 |     as_dirs= | 
 | 32074 |     while test ! -d "$as_dir"; do | 
 | 32075 |       as_dirs="$as_dir $as_dirs" | 
 | 32076 |       as_dir=`(dirname "$as_dir") 2>/dev/null || | 
 | 32077 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32078 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 32079 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 32080 | 	 X"$as_dir" : 'X\(/\)' \| \ | 
 | 32081 | 	 .     : '\(.\)' 2>/dev/null || | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32082 | echo X"$as_dir" | | 
 | 32083 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 32084 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 32085 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 32086 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 32087 |   	  s/.*/./; q'` | 
 | 32088 |     done | 
 | 32089 |     test ! -n "$as_dirs" || mkdir $as_dirs | 
 | 32090 |   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | 
 | 32091 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | 
 | 32092 |    { (exit 1); exit 1; }; }; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32093 |  | 
 | 32094 |       rm -f $ac_file | 
 | 32095 |       mv $tmp/config.h $ac_file | 
 | 32096 |     fi | 
 | 32097 |   else | 
 | 32098 |     cat $tmp/config.h | 
 | 32099 |     rm -f $tmp/config.h | 
 | 32100 |   fi | 
 | 32101 | done | 
 | 32102 | _ACEOF | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 32103 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 32104 |  | 
 | 32105 | # | 
 | 32106 | # CONFIG_COMMANDS section. | 
 | 32107 | # | 
 | 32108 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | 
 | 32109 |   ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | 
 | 32110 |   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
 | 32111 |   ac_dir=`(dirname "$ac_dest") 2>/dev/null || | 
 | 32112 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32113 | 	 X"$ac_dest" : 'X\(//\)[^/]' \| \ | 
 | 32114 | 	 X"$ac_dest" : 'X\(//\)$' \| \ | 
 | 32115 | 	 X"$ac_dest" : 'X\(/\)' \| \ | 
 | 32116 | 	 .     : '\(.\)' 2>/dev/null || | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 32117 | echo X"$ac_dest" | | 
 | 32118 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 32119 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 32120 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 32121 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 32122 |   	  s/.*/./; q'` | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32123 |   { if $as_mkdir_p; then | 
 | 32124 |     mkdir -p "$ac_dir" | 
 | 32125 |   else | 
 | 32126 |     as_dir="$ac_dir" | 
 | 32127 |     as_dirs= | 
 | 32128 |     while test ! -d "$as_dir"; do | 
 | 32129 |       as_dirs="$as_dir $as_dirs" | 
 | 32130 |       as_dir=`(dirname "$as_dir") 2>/dev/null || | 
 | 32131 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 32132 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 32133 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 32134 | 	 X"$as_dir" : 'X\(/\)' \| \ | 
 | 32135 | 	 .     : '\(.\)' 2>/dev/null || | 
 | 32136 | echo X"$as_dir" | | 
 | 32137 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 32138 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 32139 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 32140 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 32141 |   	  s/.*/./; q'` | 
 | 32142 |     done | 
 | 32143 |     test ! -n "$as_dirs" || mkdir $as_dirs | 
 | 32144 |   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | 
 | 32145 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | 
 | 32146 |    { (exit 1); exit 1; }; }; } | 
 | 32147 |  | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 32148 |   ac_builddir=. | 
 | 32149 |  | 
 | 32150 | if test "$ac_dir" != .; then | 
 | 32151 |   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
 | 32152 |   # A "../" for each directory in $ac_dir_suffix. | 
 | 32153 |   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
 | 32154 | else | 
 | 32155 |   ac_dir_suffix= ac_top_builddir= | 
 | 32156 | fi | 
 | 32157 |  | 
 | 32158 | case $srcdir in | 
 | 32159 |   .)  # No --srcdir option.  We are building in place. | 
 | 32160 |     ac_srcdir=. | 
 | 32161 |     if test -z "$ac_top_builddir"; then | 
 | 32162 |        ac_top_srcdir=. | 
 | 32163 |     else | 
 | 32164 |        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
 | 32165 |     fi ;; | 
 | 32166 |   [\\/]* | ?:[\\/]* )  # Absolute path. | 
 | 32167 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
 | 32168 |     ac_top_srcdir=$srcdir ;; | 
 | 32169 |   *) # Relative path. | 
 | 32170 |     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
 | 32171 |     ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
 | 32172 | esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32173 |  | 
 | 32174 | # Do not use `cd foo && pwd` to compute absolute paths, because | 
 | 32175 | # the directories may not exist. | 
 | 32176 | case `pwd` in | 
 | 32177 | .) ac_abs_builddir="$ac_dir";; | 
 | 32178 | *) | 
 | 32179 |   case "$ac_dir" in | 
 | 32180 |   .) ac_abs_builddir=`pwd`;; | 
 | 32181 |   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | 
 | 32182 |   *) ac_abs_builddir=`pwd`/"$ac_dir";; | 
 | 32183 |   esac;; | 
 | 32184 | esac | 
 | 32185 | case $ac_abs_builddir in | 
 | 32186 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 32187 | *) | 
 | 32188 |   case ${ac_top_builddir}. in | 
 | 32189 |   .) ac_abs_top_builddir=$ac_abs_builddir;; | 
 | 32190 |   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 32191 |   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | 
 | 32192 |   esac;; | 
 | 32193 | esac | 
 | 32194 | case $ac_abs_builddir in | 
 | 32195 | .) ac_abs_srcdir=$ac_srcdir;; | 
 | 32196 | *) | 
 | 32197 |   case $ac_srcdir in | 
 | 32198 |   .) ac_abs_srcdir=$ac_abs_builddir;; | 
 | 32199 |   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | 
 | 32200 |   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | 
 | 32201 |   esac;; | 
 | 32202 | esac | 
 | 32203 | case $ac_abs_builddir in | 
 | 32204 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 32205 | *) | 
 | 32206 |   case $ac_top_srcdir in | 
 | 32207 |   .) ac_abs_top_srcdir=$ac_abs_builddir;; | 
 | 32208 |   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 32209 |   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | 
 | 32210 |   esac;; | 
 | 32211 | esac | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 32212 |  | 
 | 32213 |  | 
 | 32214 |   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | 
 | 32215 | echo "$as_me: executing $ac_dest commands" >&6;} | 
 | 32216 |   case $ac_dest in | 
| Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 32217 |     Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` | 
 | 32218 |    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;; | 
 | 32219 |     Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` | 
 | 32220 |    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;; | 
 | 32221 |     examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` | 
 | 32222 |    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;; | 
 | 32223 |     lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` | 
 | 32224 |    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;; | 
 | 32225 |     runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` | 
 | 32226 |    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;; | 
 | 32227 |     test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` | 
 | 32228 |    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;; | 
 | 32229 |     test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` | 
 | 32230 |    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; | 
 | 32231 |     tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` | 
 | 32232 |    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;; | 
 | 32233 |     utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` | 
 | 32234 |    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;; | 
 | 32235 |     projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` | 
 | 32236 |    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 32237 |   esac | 
 | 32238 | done | 
 | 32239 | _ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32240 |  | 
 | 32241 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 32242 |  | 
 | 32243 | { (exit 0); exit 0; } | 
 | 32244 | _ACEOF | 
 | 32245 | chmod +x $CONFIG_STATUS | 
 | 32246 | ac_clean_files=$ac_clean_files_save | 
 | 32247 |  | 
 | 32248 |  | 
 | 32249 | # configure is writing to config.log, and then calls config.status. | 
 | 32250 | # config.status does its own redirection, appending to config.log. | 
 | 32251 | # Unfortunately, on DOS this fails, as config.log is still kept open | 
 | 32252 | # by configure, so config.status won't be able to write to it; its | 
 | 32253 | # output is simply discarded.  So we exec the FD to /dev/null, | 
 | 32254 | # effectively closing config.log, so it can be properly (re)opened and | 
 | 32255 | # appended to by config.status.  When coming back to configure, we | 
 | 32256 | # need to make the FD available again. | 
 | 32257 | if test "$no_create" != yes; then | 
 | 32258 |   ac_cs_success=: | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32259 |   ac_config_status_args= | 
 | 32260 |   test "$silent" = yes && | 
 | 32261 |     ac_config_status_args="$ac_config_status_args --quiet" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32262 |   exec 5>/dev/null | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32263 |   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32264 |   exec 5>>config.log | 
 | 32265 |   # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 
 | 32266 |   # would make configure fail if this is the last instruction. | 
 | 32267 |   $ac_cs_success || { (exit 1); exit 1; } | 
 | 32268 | fi | 
 | 32269 |  | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 32270 | # | 
 | 32271 | # CONFIG_SUBDIRS section. | 
 | 32272 | # | 
 | 32273 | if test "$no_recursion" != yes; then | 
 | 32274 |  | 
 | 32275 |   # Remove --cache-file and --srcdir arguments so they do not pile up. | 
 | 32276 |   ac_sub_configure_args= | 
 | 32277 |   ac_prev= | 
 | 32278 |   for ac_arg in $ac_configure_args; do | 
 | 32279 |     if test -n "$ac_prev"; then | 
 | 32280 |       ac_prev= | 
 | 32281 |       continue | 
 | 32282 |     fi | 
 | 32283 |     case $ac_arg in | 
 | 32284 |     -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
 | 32285 |     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
 | 32286 |       ac_prev=cache_file ;; | 
 | 32287 |     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
 | 32288 |     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | 
 | 32289 |     | --c=*) | 
 | 32290 |       ;; | 
 | 32291 |     --config-cache | -C) | 
 | 32292 |       ;; | 
 | 32293 |     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
 | 32294 |       ac_prev=srcdir ;; | 
 | 32295 |     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
 | 32296 |       ;; | 
 | 32297 |     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
 | 32298 |       ac_prev=prefix ;; | 
 | 32299 |     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
 | 32300 |       ;; | 
 | 32301 |     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | 
 | 32302 |     esac | 
 | 32303 |   done | 
 | 32304 |  | 
 | 32305 |   # Always prepend --prefix to ensure using the same prefix | 
 | 32306 |   # in subdir configurations. | 
 | 32307 |   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | 
 | 32308 |  | 
 | 32309 |   ac_popdir=`pwd` | 
 | 32310 |   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | 
 | 32311 |  | 
 | 32312 |     # Do not complain, so a configure script can configure whichever | 
 | 32313 |     # parts of a large source tree are present. | 
 | 32314 |     test -d $srcdir/$ac_dir || continue | 
 | 32315 |  | 
 | 32316 |     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | 
 | 32317 | echo "$as_me: configuring in $ac_dir" >&6;} | 
 | 32318 |     { if $as_mkdir_p; then | 
 | 32319 |     mkdir -p "$ac_dir" | 
 | 32320 |   else | 
 | 32321 |     as_dir="$ac_dir" | 
 | 32322 |     as_dirs= | 
 | 32323 |     while test ! -d "$as_dir"; do | 
 | 32324 |       as_dirs="$as_dir $as_dirs" | 
 | 32325 |       as_dir=`(dirname "$as_dir") 2>/dev/null || | 
 | 32326 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32327 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 32328 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 32329 | 	 X"$as_dir" : 'X\(/\)' \| \ | 
 | 32330 | 	 .     : '\(.\)' 2>/dev/null || | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 32331 | echo X"$as_dir" | | 
 | 32332 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 32333 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 32334 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 32335 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 32336 |   	  s/.*/./; q'` | 
 | 32337 |     done | 
 | 32338 |     test ! -n "$as_dirs" || mkdir $as_dirs | 
 | 32339 |   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | 
 | 32340 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | 
 | 32341 |    { (exit 1); exit 1; }; }; } | 
 | 32342 |  | 
 | 32343 |     ac_builddir=. | 
 | 32344 |  | 
 | 32345 | if test "$ac_dir" != .; then | 
 | 32346 |   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
 | 32347 |   # A "../" for each directory in $ac_dir_suffix. | 
 | 32348 |   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
 | 32349 | else | 
 | 32350 |   ac_dir_suffix= ac_top_builddir= | 
 | 32351 | fi | 
 | 32352 |  | 
 | 32353 | case $srcdir in | 
 | 32354 |   .)  # No --srcdir option.  We are building in place. | 
 | 32355 |     ac_srcdir=. | 
 | 32356 |     if test -z "$ac_top_builddir"; then | 
 | 32357 |        ac_top_srcdir=. | 
 | 32358 |     else | 
 | 32359 |        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
 | 32360 |     fi ;; | 
 | 32361 |   [\\/]* | ?:[\\/]* )  # Absolute path. | 
 | 32362 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
 | 32363 |     ac_top_srcdir=$srcdir ;; | 
 | 32364 |   *) # Relative path. | 
 | 32365 |     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
 | 32366 |     ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
 | 32367 | esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32368 |  | 
 | 32369 | # Do not use `cd foo && pwd` to compute absolute paths, because | 
 | 32370 | # the directories may not exist. | 
 | 32371 | case `pwd` in | 
 | 32372 | .) ac_abs_builddir="$ac_dir";; | 
 | 32373 | *) | 
 | 32374 |   case "$ac_dir" in | 
 | 32375 |   .) ac_abs_builddir=`pwd`;; | 
 | 32376 |   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | 
 | 32377 |   *) ac_abs_builddir=`pwd`/"$ac_dir";; | 
 | 32378 |   esac;; | 
 | 32379 | esac | 
 | 32380 | case $ac_abs_builddir in | 
 | 32381 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 32382 | *) | 
 | 32383 |   case ${ac_top_builddir}. in | 
 | 32384 |   .) ac_abs_top_builddir=$ac_abs_builddir;; | 
 | 32385 |   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 32386 |   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | 
 | 32387 |   esac;; | 
 | 32388 | esac | 
 | 32389 | case $ac_abs_builddir in | 
 | 32390 | .) ac_abs_srcdir=$ac_srcdir;; | 
 | 32391 | *) | 
 | 32392 |   case $ac_srcdir in | 
 | 32393 |   .) ac_abs_srcdir=$ac_abs_builddir;; | 
 | 32394 |   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | 
 | 32395 |   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | 
 | 32396 |   esac;; | 
 | 32397 | esac | 
 | 32398 | case $ac_abs_builddir in | 
 | 32399 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 32400 | *) | 
 | 32401 |   case $ac_top_srcdir in | 
 | 32402 |   .) ac_abs_top_srcdir=$ac_abs_builddir;; | 
 | 32403 |   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 32404 |   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | 
 | 32405 |   esac;; | 
 | 32406 | esac | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 32407 |  | 
 | 32408 |  | 
 | 32409 |     cd $ac_dir | 
 | 32410 |  | 
 | 32411 |     # Check for guested configure; otherwise get Cygnus style configure. | 
 | 32412 |     if test -f $ac_srcdir/configure.gnu; then | 
 | 32413 |       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | 
 | 32414 |     elif test -f $ac_srcdir/configure; then | 
 | 32415 |       ac_sub_configure="$SHELL '$ac_srcdir/configure'" | 
 | 32416 |     elif test -f $ac_srcdir/configure.in; then | 
 | 32417 |       ac_sub_configure=$ac_configure | 
 | 32418 |     else | 
 | 32419 |       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | 
 | 32420 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | 
 | 32421 |       ac_sub_configure= | 
 | 32422 |     fi | 
 | 32423 |  | 
 | 32424 |     # The recursion is here. | 
 | 32425 |     if test -n "$ac_sub_configure"; then | 
 | 32426 |       # Make the cache file name correct relative to the subdirectory. | 
 | 32427 |       case $cache_file in | 
 | 32428 |       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | 
 | 32429 |       *) # Relative path. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32430 | 	ac_sub_cache_file=$ac_top_builddir$cache_file ;; | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 32431 |       esac | 
 | 32432 |  | 
 | 32433 |       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | 
 | 32434 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | 
 | 32435 |       # The eval makes quoting arguments work. | 
 | 32436 |       eval $ac_sub_configure $ac_sub_configure_args \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32437 | 	   --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || | 
 | 32438 | 	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 32439 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | 
 | 32440 |    { (exit 1); exit 1; }; } | 
 | 32441 |     fi | 
 | 32442 |  | 
 | 32443 |     cd $ac_popdir | 
 | 32444 |   done | 
 | 32445 | fi | 
 | 32446 |  | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 32447 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32448 | if test "$llvm_cv_llvmgcc_sanity" = "no" ; then | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 32449 |  { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5 | 
 | 32450 | echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;} | 
| Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 32451 |  { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5 | 
 | 32452 | echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;} | 
 | 32453 |  { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5 | 
 | 32454 | echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;} | 
 | 32455 |  { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5 | 
 | 32456 | echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;} | 
 | 32457 |  { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5 | 
 | 32458 | echo "$as_me: WARNING: ***** build the llvm tools." >&2;} | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 32459 | fi |