John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.61 for [SAMPLE] [x.xx]. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 4 | # |
| 5 | # Report bugs to <bugs@yourdomain>. |
| 6 | # |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
| 11 | ## --------------------- ## |
| 12 | ## M4sh Initialization. ## |
| 13 | ## --------------------- ## |
| 14 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 15 | # Be more Bourne compatible |
| 16 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 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+"$@"}'='"$@"' |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 23 | setopt NO_GLOB_SUBST |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 24 | else |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 25 | case `(set -o) 2>/dev/null` in |
| 26 | *posix*) set -o posix ;; |
| 27 | esac |
| 28 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 29 | fi |
| 30 | |
| 31 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 32 | |
| 33 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 34 | # PATH needs CR |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 35 | # Avoid depending upon Character Ranges. |
| 36 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 37 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 38 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 39 | as_cr_digits='0123456789' |
| 40 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 41 | |
| 42 | # The user is always right. |
| 43 | if test "${PATH_SEPARATOR+set}" != set; then |
| 44 | echo "#! /bin/sh" >conf$$.sh |
| 45 | echo "exit 0" >>conf$$.sh |
| 46 | chmod +x conf$$.sh |
| 47 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 48 | PATH_SEPARATOR=';' |
| 49 | else |
| 50 | PATH_SEPARATOR=: |
| 51 | fi |
| 52 | rm -f conf$$.sh |
| 53 | fi |
| 54 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 55 | # Support unset when possible. |
| 56 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 57 | as_unset=unset |
| 58 | else |
| 59 | as_unset=false |
| 60 | fi |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 61 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 62 | |
| 63 | # IFS |
| 64 | # We need space, tab and new line, in precisely that order. Quoting is |
| 65 | # there to prevent editors from complaining about space-tab. |
| 66 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 67 | # splitting by setting IFS to empty value.) |
| 68 | as_nl=' |
| 69 | ' |
| 70 | IFS=" "" $as_nl" |
| 71 | |
| 72 | # Find who we are. Look in the path if we contain no directory separator. |
| 73 | case $0 in |
| 74 | *[\\/]* ) as_myself=$0 ;; |
| 75 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 76 | for as_dir in $PATH |
| 77 | do |
| 78 | IFS=$as_save_IFS |
| 79 | test -z "$as_dir" && as_dir=. |
| 80 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 81 | done |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 82 | IFS=$as_save_IFS |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 83 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 84 | ;; |
| 85 | esac |
| 86 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 87 | # in which case we are not to be found in the path. |
| 88 | if test "x$as_myself" = x; then |
| 89 | as_myself=$0 |
| 90 | fi |
| 91 | if test ! -f "$as_myself"; then |
| 92 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 93 | { (exit 1); exit 1; } |
| 94 | fi |
| 95 | |
| 96 | # Work around bugs in pre-3.0 UWIN ksh. |
| 97 | for as_var in ENV MAIL MAILPATH |
| 98 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 99 | done |
| 100 | PS1='$ ' |
| 101 | PS2='> ' |
| 102 | PS4='+ ' |
| 103 | |
| 104 | # NLS nuisances. |
| 105 | for as_var in \ |
| 106 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 107 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 108 | LC_TELEPHONE LC_TIME |
| 109 | do |
| 110 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 111 | eval $as_var=C; export $as_var |
| 112 | else |
| 113 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 114 | fi |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 115 | done |
| 116 | |
| 117 | # Required to use basename. |
| 118 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 119 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 120 | as_expr=expr |
| 121 | else |
| 122 | as_expr=false |
| 123 | fi |
| 124 | |
| 125 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 126 | as_basename=basename |
| 127 | else |
| 128 | as_basename=false |
| 129 | fi |
| 130 | |
| 131 | |
| 132 | # Name of the executable. |
| 133 | as_me=`$as_basename -- "$0" || |
| 134 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 135 | X"$0" : 'X\(//\)$' \| \ |
| 136 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 137 | echo X/"$0" | |
| 138 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 139 | s//\1/ |
| 140 | q |
| 141 | } |
| 142 | /^X\/\(\/\/\)$/{ |
| 143 | s//\1/ |
| 144 | q |
| 145 | } |
| 146 | /^X\/\(\/\).*/{ |
| 147 | s//\1/ |
| 148 | q |
| 149 | } |
| 150 | s/.*/./; q'` |
| 151 | |
| 152 | # CDPATH. |
| 153 | $as_unset CDPATH |
| 154 | |
| 155 | |
| 156 | if test "x$CONFIG_SHELL" = x; then |
| 157 | if (eval ":") 2>/dev/null; then |
| 158 | as_have_required=yes |
| 159 | else |
| 160 | as_have_required=no |
| 161 | fi |
| 162 | |
| 163 | if test $as_have_required = yes && (eval ": |
| 164 | (as_func_return () { |
| 165 | (exit \$1) |
| 166 | } |
| 167 | as_func_success () { |
| 168 | as_func_return 0 |
| 169 | } |
| 170 | as_func_failure () { |
| 171 | as_func_return 1 |
| 172 | } |
| 173 | as_func_ret_success () { |
| 174 | return 0 |
| 175 | } |
| 176 | as_func_ret_failure () { |
| 177 | return 1 |
| 178 | } |
| 179 | |
| 180 | exitcode=0 |
| 181 | if as_func_success; then |
| 182 | : |
| 183 | else |
| 184 | exitcode=1 |
| 185 | echo as_func_success failed. |
| 186 | fi |
| 187 | |
| 188 | if as_func_failure; then |
| 189 | exitcode=1 |
| 190 | echo as_func_failure succeeded. |
| 191 | fi |
| 192 | |
| 193 | if as_func_ret_success; then |
| 194 | : |
| 195 | else |
| 196 | exitcode=1 |
| 197 | echo as_func_ret_success failed. |
| 198 | fi |
| 199 | |
| 200 | if as_func_ret_failure; then |
| 201 | exitcode=1 |
| 202 | echo as_func_ret_failure succeeded. |
| 203 | fi |
| 204 | |
| 205 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 206 | : |
| 207 | else |
| 208 | exitcode=1 |
| 209 | echo positional parameters were not saved. |
| 210 | fi |
| 211 | |
| 212 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 213 | |
| 214 | ( |
| 215 | as_lineno_1=\$LINENO |
| 216 | as_lineno_2=\$LINENO |
| 217 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 218 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 219 | ") 2> /dev/null; then |
| 220 | : |
| 221 | else |
| 222 | as_candidate_shells= |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 224 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 225 | do |
| 226 | IFS=$as_save_IFS |
| 227 | test -z "$as_dir" && as_dir=. |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 228 | case $as_dir in |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 229 | /*) |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 230 | for as_base in sh bash ksh sh5; do |
| 231 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 232 | done;; |
| 233 | esac |
| 234 | done |
| 235 | IFS=$as_save_IFS |
| 236 | |
| 237 | |
| 238 | for as_shell in $as_candidate_shells $SHELL; do |
| 239 | # Try only shells that exist, to save several forks. |
| 240 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 241 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 242 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 243 | emulate sh |
| 244 | NULLCMD=: |
| 245 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 246 | # is contrary to our usage. Disable this feature. |
| 247 | alias -g '${1+"$@"}'='"$@"' |
| 248 | setopt NO_GLOB_SUBST |
| 249 | else |
| 250 | case `(set -o) 2>/dev/null` in |
| 251 | *posix*) set -o posix ;; |
| 252 | esac |
| 253 | |
| 254 | fi |
| 255 | |
| 256 | |
| 257 | : |
| 258 | _ASEOF |
| 259 | }; then |
| 260 | CONFIG_SHELL=$as_shell |
| 261 | as_have_required=yes |
| 262 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 263 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 264 | emulate sh |
| 265 | NULLCMD=: |
| 266 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 267 | # is contrary to our usage. Disable this feature. |
| 268 | alias -g '${1+"$@"}'='"$@"' |
| 269 | setopt NO_GLOB_SUBST |
| 270 | else |
| 271 | case `(set -o) 2>/dev/null` in |
| 272 | *posix*) set -o posix ;; |
| 273 | esac |
| 274 | |
| 275 | fi |
| 276 | |
| 277 | |
| 278 | : |
| 279 | (as_func_return () { |
| 280 | (exit $1) |
| 281 | } |
| 282 | as_func_success () { |
| 283 | as_func_return 0 |
| 284 | } |
| 285 | as_func_failure () { |
| 286 | as_func_return 1 |
| 287 | } |
| 288 | as_func_ret_success () { |
| 289 | return 0 |
| 290 | } |
| 291 | as_func_ret_failure () { |
| 292 | return 1 |
| 293 | } |
| 294 | |
| 295 | exitcode=0 |
| 296 | if as_func_success; then |
| 297 | : |
| 298 | else |
| 299 | exitcode=1 |
| 300 | echo as_func_success failed. |
| 301 | fi |
| 302 | |
| 303 | if as_func_failure; then |
| 304 | exitcode=1 |
| 305 | echo as_func_failure succeeded. |
| 306 | fi |
| 307 | |
| 308 | if as_func_ret_success; then |
| 309 | : |
| 310 | else |
| 311 | exitcode=1 |
| 312 | echo as_func_ret_success failed. |
| 313 | fi |
| 314 | |
| 315 | if as_func_ret_failure; then |
| 316 | exitcode=1 |
| 317 | echo as_func_ret_failure succeeded. |
| 318 | fi |
| 319 | |
| 320 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 321 | : |
| 322 | else |
| 323 | exitcode=1 |
| 324 | echo positional parameters were not saved. |
| 325 | fi |
| 326 | |
| 327 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 328 | |
| 329 | ( |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 330 | as_lineno_1=$LINENO |
| 331 | as_lineno_2=$LINENO |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 332 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 333 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 334 | |
| 335 | _ASEOF |
| 336 | }; then |
| 337 | break |
| 338 | fi |
| 339 | |
| 340 | fi |
| 341 | |
| 342 | done |
| 343 | |
| 344 | if test "x$CONFIG_SHELL" != x; then |
| 345 | for as_var in BASH_ENV ENV |
| 346 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 347 | done |
| 348 | export CONFIG_SHELL |
| 349 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 350 | fi |
| 351 | |
| 352 | |
| 353 | if test $as_have_required = no; then |
| 354 | echo This script requires a shell more modern than all the |
| 355 | echo shells that I found on your system. Please install a |
| 356 | echo modern shell, or manually run the script under such a |
| 357 | echo shell if you do have one. |
| 358 | { (exit 1); exit 1; } |
| 359 | fi |
| 360 | |
| 361 | |
| 362 | fi |
| 363 | |
| 364 | fi |
| 365 | |
| 366 | |
| 367 | |
| 368 | (eval "as_func_return () { |
| 369 | (exit \$1) |
| 370 | } |
| 371 | as_func_success () { |
| 372 | as_func_return 0 |
| 373 | } |
| 374 | as_func_failure () { |
| 375 | as_func_return 1 |
| 376 | } |
| 377 | as_func_ret_success () { |
| 378 | return 0 |
| 379 | } |
| 380 | as_func_ret_failure () { |
| 381 | return 1 |
| 382 | } |
| 383 | |
| 384 | exitcode=0 |
| 385 | if as_func_success; then |
| 386 | : |
| 387 | else |
| 388 | exitcode=1 |
| 389 | echo as_func_success failed. |
| 390 | fi |
| 391 | |
| 392 | if as_func_failure; then |
| 393 | exitcode=1 |
| 394 | echo as_func_failure succeeded. |
| 395 | fi |
| 396 | |
| 397 | if as_func_ret_success; then |
| 398 | : |
| 399 | else |
| 400 | exitcode=1 |
| 401 | echo as_func_ret_success failed. |
| 402 | fi |
| 403 | |
| 404 | if as_func_ret_failure; then |
| 405 | exitcode=1 |
| 406 | echo as_func_ret_failure succeeded. |
| 407 | fi |
| 408 | |
| 409 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 410 | : |
| 411 | else |
| 412 | exitcode=1 |
| 413 | echo positional parameters were not saved. |
| 414 | fi |
| 415 | |
| 416 | test \$exitcode = 0") || { |
| 417 | echo No shell found that supports shell functions. |
| 418 | echo Please tell autoconf@gnu.org about your system, |
| 419 | echo including any error possibly output before this |
| 420 | echo message |
| 421 | } |
| 422 | |
| 423 | |
| 424 | |
| 425 | as_lineno_1=$LINENO |
| 426 | as_lineno_2=$LINENO |
| 427 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 428 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 429 | |
| 430 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 431 | # uniformly replaced by the line number. The first 'sed' inserts a |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 432 | # line-number line after each line using $LINENO; the second 'sed' |
| 433 | # does the real work. The second script uses 'N' to pair each |
| 434 | # line-number line with the line containing $LINENO, and appends |
| 435 | # trailing '-' during substitution so that $LINENO is not a special |
| 436 | # case at line end. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 437 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 438 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 439 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 440 | sed -n ' |
| 441 | p |
| 442 | /[$]LINENO/= |
| 443 | ' <$as_myself | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 444 | sed ' |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 445 | s/[$]LINENO.*/&-/ |
| 446 | t lineno |
| 447 | b |
| 448 | :lineno |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 449 | N |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 450 | :loop |
| 451 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 452 | t loop |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 453 | s/-\n.*// |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 454 | ' >$as_me.lineno && |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 455 | chmod +x "$as_me.lineno" || |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 456 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 457 | { (exit 1); exit 1; }; } |
| 458 | |
| 459 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 460 | # (the dirname of $[0] is not the place where we might find the |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 461 | # original and so on. Autoconf is especially sensitive to this). |
| 462 | . "./$as_me.lineno" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 463 | # Exit status is that of the last command. |
| 464 | exit |
| 465 | } |
| 466 | |
| 467 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 468 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 469 | as_dirname=dirname |
| 470 | else |
| 471 | as_dirname=false |
| 472 | fi |
| 473 | |
| 474 | ECHO_C= ECHO_N= ECHO_T= |
| 475 | case `echo -n x` in |
| 476 | -n*) |
| 477 | case `echo 'x\c'` in |
| 478 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 479 | *) ECHO_C='\c';; |
| 480 | esac;; |
| 481 | *) |
| 482 | ECHO_N='-n';; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 483 | esac |
| 484 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 485 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 486 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 487 | as_expr=expr |
| 488 | else |
| 489 | as_expr=false |
| 490 | fi |
| 491 | |
| 492 | rm -f conf$$ conf$$.exe conf$$.file |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 493 | if test -d conf$$.dir; then |
| 494 | rm -f conf$$.dir/conf$$.file |
| 495 | else |
| 496 | rm -f conf$$.dir |
| 497 | mkdir conf$$.dir |
| 498 | fi |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 499 | echo >conf$$.file |
| 500 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 501 | as_ln_s='ln -s' |
| 502 | # ... but there are two gotchas: |
| 503 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 504 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 505 | # In both cases, we have to default to `cp -p'. |
| 506 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 507 | as_ln_s='cp -p' |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 508 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 509 | as_ln_s=ln |
| 510 | else |
| 511 | as_ln_s='cp -p' |
| 512 | fi |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 513 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 514 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 515 | |
| 516 | if mkdir -p . 2>/dev/null; then |
| 517 | as_mkdir_p=: |
| 518 | else |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 519 | test -d ./-p && rmdir ./-p |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 520 | as_mkdir_p=false |
| 521 | fi |
| 522 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 523 | if test -x / >/dev/null 2>&1; then |
| 524 | as_test_x='test -x' |
| 525 | else |
| 526 | if ls -dL / >/dev/null 2>&1; then |
| 527 | as_ls_L_option=L |
| 528 | else |
| 529 | as_ls_L_option= |
| 530 | fi |
| 531 | as_test_x=' |
| 532 | eval sh -c '\'' |
| 533 | if test -d "$1"; then |
| 534 | test -d "$1/."; |
| 535 | else |
| 536 | case $1 in |
| 537 | -*)set "./$1";; |
| 538 | esac; |
| 539 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 540 | ???[sx]*):;;*)false;;esac;fi |
| 541 | '\'' sh |
| 542 | ' |
| 543 | fi |
| 544 | as_executable_p=$as_test_x |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 545 | |
| 546 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 547 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 548 | |
| 549 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 550 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 551 | |
| 552 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 553 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 554 | exec 7<&0 </dev/null 6>&1 |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 555 | |
| 556 | # Name of the host. |
| 557 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 558 | # so uname gets run too. |
| 559 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 560 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 561 | # |
| 562 | # Initializations. |
| 563 | # |
| 564 | ac_default_prefix=/usr/local |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 565 | ac_clean_files= |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 566 | ac_config_libobj_dir=. |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 567 | LIBOBJS= |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 568 | cross_compiling=no |
| 569 | subdirs= |
| 570 | MFLAGS= |
| 571 | MAKEFLAGS= |
| 572 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 573 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 574 | # Identity of this package. |
| 575 | PACKAGE_NAME='[SAMPLE]' |
| 576 | PACKAGE_TARNAME='--sample--' |
| 577 | PACKAGE_VERSION='[x.xx]' |
| 578 | PACKAGE_STRING='[SAMPLE] [x.xx]' |
| 579 | PACKAGE_BUGREPORT='bugs@yourdomain' |
| 580 | |
| 581 | ac_unique_file=""Makefile.common.in"" |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 582 | ac_subst_vars='SHELL |
| 583 | PATH_SEPARATOR |
| 584 | PACKAGE_NAME |
| 585 | PACKAGE_TARNAME |
| 586 | PACKAGE_VERSION |
| 587 | PACKAGE_STRING |
| 588 | PACKAGE_BUGREPORT |
| 589 | exec_prefix |
| 590 | prefix |
| 591 | program_transform_name |
| 592 | bindir |
| 593 | sbindir |
| 594 | libexecdir |
| 595 | datarootdir |
| 596 | datadir |
| 597 | sysconfdir |
| 598 | sharedstatedir |
| 599 | localstatedir |
| 600 | includedir |
| 601 | oldincludedir |
| 602 | docdir |
| 603 | infodir |
| 604 | htmldir |
| 605 | dvidir |
| 606 | pdfdir |
| 607 | psdir |
| 608 | libdir |
| 609 | localedir |
| 610 | mandir |
| 611 | DEFS |
| 612 | ECHO_C |
| 613 | ECHO_N |
| 614 | ECHO_T |
| 615 | LIBS |
| 616 | build_alias |
| 617 | host_alias |
| 618 | target_alias |
| 619 | LLVM_SRC |
| 620 | LLVM_OBJ |
| 621 | LIBOBJS |
| 622 | LTLIBOBJS' |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 623 | ac_subst_files='' |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 624 | ac_precious_vars='build_alias |
| 625 | host_alias |
| 626 | target_alias' |
| 627 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 628 | |
| 629 | # Initialize some variables set by options. |
| 630 | ac_init_help= |
| 631 | ac_init_version=false |
| 632 | # The variables have the same names as the options, with |
| 633 | # dashes changed to underlines. |
| 634 | cache_file=/dev/null |
| 635 | exec_prefix=NONE |
| 636 | no_create= |
| 637 | no_recursion= |
| 638 | prefix=NONE |
| 639 | program_prefix=NONE |
| 640 | program_suffix=NONE |
| 641 | program_transform_name=s,x,x, |
| 642 | silent= |
| 643 | site= |
| 644 | srcdir= |
| 645 | verbose= |
| 646 | x_includes=NONE |
| 647 | x_libraries=NONE |
| 648 | |
| 649 | # Installation directory options. |
| 650 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 651 | # and all the variables that are supposed to be based on exec_prefix |
| 652 | # by default will actually change. |
| 653 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 654 | # (The list follows the same order as the GNU Coding Standards.) |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 655 | bindir='${exec_prefix}/bin' |
| 656 | sbindir='${exec_prefix}/sbin' |
| 657 | libexecdir='${exec_prefix}/libexec' |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 658 | datarootdir='${prefix}/share' |
| 659 | datadir='${datarootdir}' |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 660 | sysconfdir='${prefix}/etc' |
| 661 | sharedstatedir='${prefix}/com' |
| 662 | localstatedir='${prefix}/var' |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 663 | includedir='${prefix}/include' |
| 664 | oldincludedir='/usr/include' |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 665 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 666 | infodir='${datarootdir}/info' |
| 667 | htmldir='${docdir}' |
| 668 | dvidir='${docdir}' |
| 669 | pdfdir='${docdir}' |
| 670 | psdir='${docdir}' |
| 671 | libdir='${exec_prefix}/lib' |
| 672 | localedir='${datarootdir}/locale' |
| 673 | mandir='${datarootdir}/man' |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 674 | |
| 675 | ac_prev= |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 676 | ac_dashdash= |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 677 | for ac_option |
| 678 | do |
| 679 | # If the previous option needs an argument, assign it. |
| 680 | if test -n "$ac_prev"; then |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 681 | eval $ac_prev=\$ac_option |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 682 | ac_prev= |
| 683 | continue |
| 684 | fi |
| 685 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 686 | case $ac_option in |
| 687 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 688 | *) ac_optarg=yes ;; |
| 689 | esac |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 690 | |
| 691 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 692 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 693 | case $ac_dashdash$ac_option in |
| 694 | --) |
| 695 | ac_dashdash=yes ;; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 696 | |
| 697 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 698 | ac_prev=bindir ;; |
| 699 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 700 | bindir=$ac_optarg ;; |
| 701 | |
| 702 | -build | --build | --buil | --bui | --bu) |
| 703 | ac_prev=build_alias ;; |
| 704 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 705 | build_alias=$ac_optarg ;; |
| 706 | |
| 707 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 708 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 709 | ac_prev=cache_file ;; |
| 710 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 711 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 712 | cache_file=$ac_optarg ;; |
| 713 | |
| 714 | --config-cache | -C) |
| 715 | cache_file=config.cache ;; |
| 716 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 717 | -datadir | --datadir | --datadi | --datad) |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 718 | ac_prev=datadir ;; |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 719 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 720 | datadir=$ac_optarg ;; |
| 721 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 722 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 723 | | --dataroo | --dataro | --datar) |
| 724 | ac_prev=datarootdir ;; |
| 725 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 726 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 727 | datarootdir=$ac_optarg ;; |
| 728 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 729 | -disable-* | --disable-*) |
| 730 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 731 | # Reject names that are not valid shell variable names. |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 732 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 733 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 734 | { (exit 1); exit 1; }; } |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 735 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 736 | eval enable_$ac_feature=no ;; |
| 737 | |
| 738 | -docdir | --docdir | --docdi | --doc | --do) |
| 739 | ac_prev=docdir ;; |
| 740 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 741 | docdir=$ac_optarg ;; |
| 742 | |
| 743 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 744 | ac_prev=dvidir ;; |
| 745 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 746 | dvidir=$ac_optarg ;; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 747 | |
| 748 | -enable-* | --enable-*) |
| 749 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 750 | # Reject names that are not valid shell variable names. |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 751 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 752 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 753 | { (exit 1); exit 1; }; } |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 754 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 755 | eval enable_$ac_feature=\$ac_optarg ;; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 756 | |
| 757 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 758 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 759 | | --exec | --exe | --ex) |
| 760 | ac_prev=exec_prefix ;; |
| 761 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 762 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 763 | | --exec=* | --exe=* | --ex=*) |
| 764 | exec_prefix=$ac_optarg ;; |
| 765 | |
| 766 | -gas | --gas | --ga | --g) |
| 767 | # Obsolete; use --with-gas. |
| 768 | with_gas=yes ;; |
| 769 | |
| 770 | -help | --help | --hel | --he | -h) |
| 771 | ac_init_help=long ;; |
| 772 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 773 | ac_init_help=recursive ;; |
| 774 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 775 | ac_init_help=short ;; |
| 776 | |
| 777 | -host | --host | --hos | --ho) |
| 778 | ac_prev=host_alias ;; |
| 779 | -host=* | --host=* | --hos=* | --ho=*) |
| 780 | host_alias=$ac_optarg ;; |
| 781 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 782 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 783 | ac_prev=htmldir ;; |
| 784 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 785 | | --ht=*) |
| 786 | htmldir=$ac_optarg ;; |
| 787 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 788 | -includedir | --includedir | --includedi | --included | --include \ |
| 789 | | --includ | --inclu | --incl | --inc) |
| 790 | ac_prev=includedir ;; |
| 791 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 792 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 793 | includedir=$ac_optarg ;; |
| 794 | |
| 795 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 796 | ac_prev=infodir ;; |
| 797 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 798 | infodir=$ac_optarg ;; |
| 799 | |
| 800 | -libdir | --libdir | --libdi | --libd) |
| 801 | ac_prev=libdir ;; |
| 802 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 803 | libdir=$ac_optarg ;; |
| 804 | |
| 805 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 806 | | --libexe | --libex | --libe) |
| 807 | ac_prev=libexecdir ;; |
| 808 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 809 | | --libexe=* | --libex=* | --libe=*) |
| 810 | libexecdir=$ac_optarg ;; |
| 811 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 812 | -localedir | --localedir | --localedi | --localed | --locale) |
| 813 | ac_prev=localedir ;; |
| 814 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 815 | localedir=$ac_optarg ;; |
| 816 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 817 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 818 | | --localstate | --localstat | --localsta | --localst | --locals) |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 819 | ac_prev=localstatedir ;; |
| 820 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 821 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 822 | localstatedir=$ac_optarg ;; |
| 823 | |
| 824 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 825 | ac_prev=mandir ;; |
| 826 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 827 | mandir=$ac_optarg ;; |
| 828 | |
| 829 | -nfp | --nfp | --nf) |
| 830 | # Obsolete; use --without-fp. |
| 831 | with_fp=no ;; |
| 832 | |
| 833 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 834 | | --no-cr | --no-c | -n) |
| 835 | no_create=yes ;; |
| 836 | |
| 837 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 838 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 839 | no_recursion=yes ;; |
| 840 | |
| 841 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 842 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 843 | | --oldin | --oldi | --old | --ol | --o) |
| 844 | ac_prev=oldincludedir ;; |
| 845 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 846 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 847 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 848 | oldincludedir=$ac_optarg ;; |
| 849 | |
| 850 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 851 | ac_prev=prefix ;; |
| 852 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 853 | prefix=$ac_optarg ;; |
| 854 | |
| 855 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 856 | | --program-pre | --program-pr | --program-p) |
| 857 | ac_prev=program_prefix ;; |
| 858 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 859 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 860 | program_prefix=$ac_optarg ;; |
| 861 | |
| 862 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 863 | | --program-suf | --program-su | --program-s) |
| 864 | ac_prev=program_suffix ;; |
| 865 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 866 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 867 | program_suffix=$ac_optarg ;; |
| 868 | |
| 869 | -program-transform-name | --program-transform-name \ |
| 870 | | --program-transform-nam | --program-transform-na \ |
| 871 | | --program-transform-n | --program-transform- \ |
| 872 | | --program-transform | --program-transfor \ |
| 873 | | --program-transfo | --program-transf \ |
| 874 | | --program-trans | --program-tran \ |
| 875 | | --progr-tra | --program-tr | --program-t) |
| 876 | ac_prev=program_transform_name ;; |
| 877 | -program-transform-name=* | --program-transform-name=* \ |
| 878 | | --program-transform-nam=* | --program-transform-na=* \ |
| 879 | | --program-transform-n=* | --program-transform-=* \ |
| 880 | | --program-transform=* | --program-transfor=* \ |
| 881 | | --program-transfo=* | --program-transf=* \ |
| 882 | | --program-trans=* | --program-tran=* \ |
| 883 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 884 | program_transform_name=$ac_optarg ;; |
| 885 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 886 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 887 | ac_prev=pdfdir ;; |
| 888 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 889 | pdfdir=$ac_optarg ;; |
| 890 | |
| 891 | -psdir | --psdir | --psdi | --psd | --ps) |
| 892 | ac_prev=psdir ;; |
| 893 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 894 | psdir=$ac_optarg ;; |
| 895 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 896 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 897 | | -silent | --silent | --silen | --sile | --sil) |
| 898 | silent=yes ;; |
| 899 | |
| 900 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 901 | ac_prev=sbindir ;; |
| 902 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 903 | | --sbi=* | --sb=*) |
| 904 | sbindir=$ac_optarg ;; |
| 905 | |
| 906 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 907 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 908 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 909 | | --sha | --sh) |
| 910 | ac_prev=sharedstatedir ;; |
| 911 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 912 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 913 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 914 | | --sha=* | --sh=*) |
| 915 | sharedstatedir=$ac_optarg ;; |
| 916 | |
| 917 | -site | --site | --sit) |
| 918 | ac_prev=site ;; |
| 919 | -site=* | --site=* | --sit=*) |
| 920 | site=$ac_optarg ;; |
| 921 | |
| 922 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 923 | ac_prev=srcdir ;; |
| 924 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 925 | srcdir=$ac_optarg ;; |
| 926 | |
| 927 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 928 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 929 | ac_prev=sysconfdir ;; |
| 930 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 931 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 932 | sysconfdir=$ac_optarg ;; |
| 933 | |
| 934 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 935 | ac_prev=target_alias ;; |
| 936 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 937 | target_alias=$ac_optarg ;; |
| 938 | |
| 939 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 940 | verbose=yes ;; |
| 941 | |
| 942 | -version | --version | --versio | --versi | --vers | -V) |
| 943 | ac_init_version=: ;; |
| 944 | |
| 945 | -with-* | --with-*) |
| 946 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 947 | # Reject names that are not valid shell variable names. |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 948 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 949 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 950 | { (exit 1); exit 1; }; } |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 951 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 952 | eval with_$ac_package=\$ac_optarg ;; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 953 | |
| 954 | -without-* | --without-*) |
| 955 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 956 | # Reject names that are not valid shell variable names. |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 957 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 958 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 959 | { (exit 1); exit 1; }; } |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 960 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 961 | eval with_$ac_package=no ;; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 962 | |
| 963 | --x) |
| 964 | # Obsolete; use --with-x. |
| 965 | with_x=yes ;; |
| 966 | |
| 967 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 968 | | --x-incl | --x-inc | --x-in | --x-i) |
| 969 | ac_prev=x_includes ;; |
| 970 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 971 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 972 | x_includes=$ac_optarg ;; |
| 973 | |
| 974 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 975 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 976 | ac_prev=x_libraries ;; |
| 977 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 978 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 979 | x_libraries=$ac_optarg ;; |
| 980 | |
| 981 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 982 | Try \`$0 --help' for more information." >&2 |
| 983 | { (exit 1); exit 1; }; } |
| 984 | ;; |
| 985 | |
| 986 | *=*) |
| 987 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 988 | # Reject names that are not valid shell variable names. |
| 989 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 990 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 991 | { (exit 1); exit 1; }; } |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 992 | eval $ac_envvar=\$ac_optarg |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 993 | export $ac_envvar ;; |
| 994 | |
| 995 | *) |
| 996 | # FIXME: should be removed in autoconf 3.0. |
| 997 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 998 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 999 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1000 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1001 | ;; |
| 1002 | |
| 1003 | esac |
| 1004 | done |
| 1005 | |
| 1006 | if test -n "$ac_prev"; then |
| 1007 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1008 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1009 | { (exit 1); exit 1; }; } |
| 1010 | fi |
| 1011 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1012 | # Be sure to have absolute directory names. |
| 1013 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1014 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1015 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1016 | libdir localedir mandir |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1017 | do |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1018 | eval ac_val=\$$ac_var |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1019 | case $ac_val in |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1020 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1021 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1022 | esac |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1023 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1024 | { (exit 1); exit 1; }; } |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1025 | done |
| 1026 | |
| 1027 | # There might be people who depend on the old broken behavior: `$host' |
| 1028 | # used to hold the argument of --host etc. |
| 1029 | # FIXME: To remove some day. |
| 1030 | build=$build_alias |
| 1031 | host=$host_alias |
| 1032 | target=$target_alias |
| 1033 | |
| 1034 | # FIXME: To remove some day. |
| 1035 | if test "x$host_alias" != x; then |
| 1036 | if test "x$build_alias" = x; then |
| 1037 | cross_compiling=maybe |
| 1038 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1039 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1040 | elif test "x$build_alias" != "x$host_alias"; then |
| 1041 | cross_compiling=yes |
| 1042 | fi |
| 1043 | fi |
| 1044 | |
| 1045 | ac_tool_prefix= |
| 1046 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1047 | |
| 1048 | test "$silent" = yes && exec 6>/dev/null |
| 1049 | |
| 1050 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1051 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1052 | ac_ls_di=`ls -di .` && |
| 1053 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1054 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1055 | { (exit 1); exit 1; }; } |
| 1056 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1057 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1058 | { (exit 1); exit 1; }; } |
| 1059 | |
| 1060 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1061 | # Find the source files, if location was not specified. |
| 1062 | if test -z "$srcdir"; then |
| 1063 | ac_srcdir_defaulted=yes |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1064 | # Try the directory containing this script, then the parent directory. |
| 1065 | ac_confdir=`$as_dirname -- "$0" || |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1066 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1067 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1068 | X"$0" : 'X\(//\)$' \| \ |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1069 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1070 | echo X"$0" | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1071 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1072 | s//\1/ |
| 1073 | q |
| 1074 | } |
| 1075 | /^X\(\/\/\)[^/].*/{ |
| 1076 | s//\1/ |
| 1077 | q |
| 1078 | } |
| 1079 | /^X\(\/\/\)$/{ |
| 1080 | s//\1/ |
| 1081 | q |
| 1082 | } |
| 1083 | /^X\(\/\).*/{ |
| 1084 | s//\1/ |
| 1085 | q |
| 1086 | } |
| 1087 | s/.*/./; q'` |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1088 | srcdir=$ac_confdir |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1089 | if test ! -r "$srcdir/$ac_unique_file"; then |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1090 | srcdir=.. |
| 1091 | fi |
| 1092 | else |
| 1093 | ac_srcdir_defaulted=no |
| 1094 | fi |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1095 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1096 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1097 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1098 | { (exit 1); exit 1; }; } |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1099 | fi |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1100 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1101 | ac_abs_confdir=`( |
| 1102 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1103 | { (exit 1); exit 1; }; } |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1104 | pwd)` |
| 1105 | # When building in place, set srcdir=. |
| 1106 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1107 | srcdir=. |
| 1108 | fi |
| 1109 | # Remove unnecessary trailing slashes from srcdir. |
| 1110 | # Double slashes in file names in object file debugging info |
| 1111 | # mess up M-x gdb in Emacs. |
| 1112 | case $srcdir in |
| 1113 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1114 | esac |
| 1115 | for ac_var in $ac_precious_vars; do |
| 1116 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1117 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1118 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1119 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1120 | done |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1121 | |
| 1122 | # |
| 1123 | # Report the --help message. |
| 1124 | # |
| 1125 | if test "$ac_init_help" = "long"; then |
| 1126 | # Omit some internal or obsolete options to make the list less imposing. |
| 1127 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1128 | cat <<_ACEOF |
| 1129 | \`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems. |
| 1130 | |
| 1131 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1132 | |
| 1133 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1134 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1135 | |
| 1136 | Defaults for the options are specified in brackets. |
| 1137 | |
| 1138 | Configuration: |
| 1139 | -h, --help display this help and exit |
| 1140 | --help=short display options specific to this package |
| 1141 | --help=recursive display the short help of all the included packages |
| 1142 | -V, --version display version information and exit |
| 1143 | -q, --quiet, --silent do not print \`checking...' messages |
| 1144 | --cache-file=FILE cache test results in FILE [disabled] |
| 1145 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1146 | -n, --no-create do not create output files |
| 1147 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1148 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1149 | Installation directories: |
| 1150 | --prefix=PREFIX install architecture-independent files in PREFIX |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1151 | [$ac_default_prefix] |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1152 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1153 | [PREFIX] |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1154 | |
| 1155 | By default, \`make install' will install all the files in |
| 1156 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1157 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1158 | for instance \`--prefix=\$HOME'. |
| 1159 | |
| 1160 | For better control, use the options below. |
| 1161 | |
| 1162 | Fine tuning of the installation directories: |
| 1163 | --bindir=DIR user executables [EPREFIX/bin] |
| 1164 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1165 | --libexecdir=DIR program executables [EPREFIX/libexec] |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1166 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1167 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1168 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1169 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1170 | --includedir=DIR C header files [PREFIX/include] |
| 1171 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1172 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1173 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1174 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1175 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1176 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1177 | --docdir=DIR documentation root [DATAROOTDIR/doc/--sample--] |
| 1178 | --htmldir=DIR html documentation [DOCDIR] |
| 1179 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1180 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1181 | --psdir=DIR ps documentation [DOCDIR] |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1182 | _ACEOF |
| 1183 | |
| 1184 | cat <<\_ACEOF |
| 1185 | _ACEOF |
| 1186 | fi |
| 1187 | |
| 1188 | if test -n "$ac_init_help"; then |
| 1189 | case $ac_init_help in |
| 1190 | short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";; |
| 1191 | esac |
| 1192 | cat <<\_ACEOF |
| 1193 | |
| 1194 | Optional Packages: |
| 1195 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1196 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1197 | --with-llvmsrc Location of LLVM Source Code |
| 1198 | --with-llvmobj Location of LLVM Object Code |
| 1199 | |
| 1200 | Report bugs to <bugs@yourdomain>. |
| 1201 | _ACEOF |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1202 | ac_status=$? |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1203 | fi |
| 1204 | |
| 1205 | if test "$ac_init_help" = "recursive"; then |
| 1206 | # If there are subdirs, report their specific --help. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1207 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1208 | test -d "$ac_dir" || continue |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1209 | ac_builddir=. |
| 1210 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1211 | case "$ac_dir" in |
| 1212 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1213 | *) |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1214 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1215 | # A ".." for each directory in $ac_dir_suffix. |
| 1216 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1217 | case $ac_top_builddir_sub in |
| 1218 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1219 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1220 | esac ;; |
| 1221 | esac |
| 1222 | ac_abs_top_builddir=$ac_pwd |
| 1223 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1224 | # for backward compatibility: |
| 1225 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1226 | |
| 1227 | case $srcdir in |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1228 | .) # We are building in place. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1229 | ac_srcdir=. |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1230 | ac_top_srcdir=$ac_top_builddir_sub |
| 1231 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1232 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1233 | ac_srcdir=$srcdir$ac_dir_suffix; |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1234 | ac_top_srcdir=$srcdir |
| 1235 | ac_abs_top_srcdir=$srcdir ;; |
| 1236 | *) # Relative name. |
| 1237 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1238 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1239 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1240 | esac |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1241 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1242 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1243 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1244 | # Check for guested configure. |
| 1245 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1246 | echo && |
| 1247 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1248 | elif test -f "$ac_srcdir/configure"; then |
| 1249 | echo && |
| 1250 | $SHELL "$ac_srcdir/configure" --help=recursive |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1251 | else |
| 1252 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1253 | fi || ac_status=$? |
| 1254 | cd "$ac_pwd" || { ac_status=$?; break; } |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1255 | done |
| 1256 | fi |
| 1257 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1258 | test -n "$ac_init_help" && exit $ac_status |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1259 | if $ac_init_version; then |
| 1260 | cat <<\_ACEOF |
| 1261 | [SAMPLE] configure [x.xx] |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1262 | generated by GNU Autoconf 2.61 |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1263 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1264 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1265 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1266 | This configure script is free software; the Free Software Foundation |
| 1267 | gives unlimited permission to copy, distribute and modify it. |
| 1268 | _ACEOF |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1269 | exit |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1270 | fi |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1271 | cat >config.log <<_ACEOF |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1272 | This file contains any messages produced by compilers while |
| 1273 | running configure, to aid debugging if configure makes a mistake. |
| 1274 | |
| 1275 | It was created by [SAMPLE] $as_me [x.xx], which was |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1276 | generated by GNU Autoconf 2.61. Invocation command line was |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1277 | |
| 1278 | $ $0 $@ |
| 1279 | |
| 1280 | _ACEOF |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1281 | exec 5>>config.log |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1282 | { |
| 1283 | cat <<_ASUNAME |
| 1284 | ## --------- ## |
| 1285 | ## Platform. ## |
| 1286 | ## --------- ## |
| 1287 | |
| 1288 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1289 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1290 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1291 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1292 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1293 | |
| 1294 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1295 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1296 | |
| 1297 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1298 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1299 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1300 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1301 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1302 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1303 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1304 | |
| 1305 | _ASUNAME |
| 1306 | |
| 1307 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1308 | for as_dir in $PATH |
| 1309 | do |
| 1310 | IFS=$as_save_IFS |
| 1311 | test -z "$as_dir" && as_dir=. |
| 1312 | echo "PATH: $as_dir" |
| 1313 | done |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1314 | IFS=$as_save_IFS |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1315 | |
| 1316 | } >&5 |
| 1317 | |
| 1318 | cat >&5 <<_ACEOF |
| 1319 | |
| 1320 | |
| 1321 | ## ----------- ## |
| 1322 | ## Core tests. ## |
| 1323 | ## ----------- ## |
| 1324 | |
| 1325 | _ACEOF |
| 1326 | |
| 1327 | |
| 1328 | # Keep a trace of the command line. |
| 1329 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1330 | # Strip out --silent because we don't want to record it for future runs. |
| 1331 | # Also quote any args containing shell meta-characters. |
| 1332 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1333 | ac_configure_args= |
| 1334 | ac_configure_args0= |
| 1335 | ac_configure_args1= |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1336 | ac_must_keep_next=false |
| 1337 | for ac_pass in 1 2 |
| 1338 | do |
| 1339 | for ac_arg |
| 1340 | do |
| 1341 | case $ac_arg in |
| 1342 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1343 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1344 | | -silent | --silent | --silen | --sile | --sil) |
| 1345 | continue ;; |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1346 | *\'*) |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1347 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1348 | esac |
| 1349 | case $ac_pass in |
| 1350 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1351 | 2) |
| 1352 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1353 | if test $ac_must_keep_next = true; then |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1354 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1355 | else |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1356 | case $ac_arg in |
| 1357 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1358 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1359 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1360 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1361 | case "$ac_configure_args0 " in |
| 1362 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1363 | esac |
| 1364 | ;; |
| 1365 | -* ) ac_must_keep_next=true ;; |
| 1366 | esac |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1367 | fi |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1368 | ac_configure_args="$ac_configure_args '$ac_arg'" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1369 | ;; |
| 1370 | esac |
| 1371 | done |
| 1372 | done |
| 1373 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1374 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1375 | |
| 1376 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1377 | # config.log. We remove comments because anyway the quotes in there |
| 1378 | # would cause problems or look ugly. |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1379 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1380 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1381 | trap 'exit_status=$? |
| 1382 | # Save into config.log some information that might help in debugging. |
| 1383 | { |
| 1384 | echo |
| 1385 | |
| 1386 | cat <<\_ASBOX |
| 1387 | ## ---------------- ## |
| 1388 | ## Cache variables. ## |
| 1389 | ## ---------------- ## |
| 1390 | _ASBOX |
| 1391 | echo |
| 1392 | # The following way of writing the cache mishandles newlines in values, |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1393 | ( |
| 1394 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1395 | eval ac_val=\$$ac_var |
| 1396 | case $ac_val in #( |
| 1397 | *${as_nl}*) |
| 1398 | case $ac_var in #( |
| 1399 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1400 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1401 | esac |
| 1402 | case $ac_var in #( |
| 1403 | _ | IFS | as_nl) ;; #( |
| 1404 | *) $as_unset $ac_var ;; |
| 1405 | esac ;; |
| 1406 | esac |
| 1407 | done |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1408 | (set) 2>&1 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1409 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1410 | *${as_nl}ac_space=\ *) |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1411 | sed -n \ |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1412 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1413 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1414 | ;; #( |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1415 | *) |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1416 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1417 | ;; |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1418 | esac | |
| 1419 | sort |
| 1420 | ) |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1421 | echo |
| 1422 | |
| 1423 | cat <<\_ASBOX |
| 1424 | ## ----------------- ## |
| 1425 | ## Output variables. ## |
| 1426 | ## ----------------- ## |
| 1427 | _ASBOX |
| 1428 | echo |
| 1429 | for ac_var in $ac_subst_vars |
| 1430 | do |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1431 | eval ac_val=\$$ac_var |
| 1432 | case $ac_val in |
| 1433 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1434 | esac |
| 1435 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1436 | done | sort |
| 1437 | echo |
| 1438 | |
| 1439 | if test -n "$ac_subst_files"; then |
| 1440 | cat <<\_ASBOX |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1441 | ## ------------------- ## |
| 1442 | ## File substitutions. ## |
| 1443 | ## ------------------- ## |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1444 | _ASBOX |
| 1445 | echo |
| 1446 | for ac_var in $ac_subst_files |
| 1447 | do |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1448 | eval ac_val=\$$ac_var |
| 1449 | case $ac_val in |
| 1450 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1451 | esac |
| 1452 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1453 | done | sort |
| 1454 | echo |
| 1455 | fi |
| 1456 | |
| 1457 | if test -s confdefs.h; then |
| 1458 | cat <<\_ASBOX |
| 1459 | ## ----------- ## |
| 1460 | ## confdefs.h. ## |
| 1461 | ## ----------- ## |
| 1462 | _ASBOX |
| 1463 | echo |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1464 | cat confdefs.h |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1465 | echo |
| 1466 | fi |
| 1467 | test "$ac_signal" != 0 && |
| 1468 | echo "$as_me: caught signal $ac_signal" |
| 1469 | echo "$as_me: exit $exit_status" |
| 1470 | } >&5 |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1471 | rm -f core *.core core.conftest.* && |
| 1472 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1473 | exit $exit_status |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1474 | ' 0 |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1475 | for ac_signal in 1 2 13 15; do |
| 1476 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1477 | done |
| 1478 | ac_signal=0 |
| 1479 | |
| 1480 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1481 | rm -f -r conftest* confdefs.h |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1482 | |
| 1483 | # Predefined preprocessor variables. |
| 1484 | |
| 1485 | cat >>confdefs.h <<_ACEOF |
| 1486 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1487 | _ACEOF |
| 1488 | |
| 1489 | |
| 1490 | cat >>confdefs.h <<_ACEOF |
| 1491 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1492 | _ACEOF |
| 1493 | |
| 1494 | |
| 1495 | cat >>confdefs.h <<_ACEOF |
| 1496 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1497 | _ACEOF |
| 1498 | |
| 1499 | |
| 1500 | cat >>confdefs.h <<_ACEOF |
| 1501 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1502 | _ACEOF |
| 1503 | |
| 1504 | |
| 1505 | cat >>confdefs.h <<_ACEOF |
| 1506 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1507 | _ACEOF |
| 1508 | |
| 1509 | |
| 1510 | # Let the site file select an alternate cache file if it wants to. |
| 1511 | # Prefer explicitly selected file to automatically selected ones. |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1512 | if test -n "$CONFIG_SITE"; then |
| 1513 | set x "$CONFIG_SITE" |
| 1514 | elif test "x$prefix" != xNONE; then |
| 1515 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1516 | else |
| 1517 | set x "$ac_default_prefix/share/config.site" \ |
| 1518 | "$ac_default_prefix/etc/config.site" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1519 | fi |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1520 | shift |
| 1521 | for ac_site_file |
| 1522 | do |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1523 | if test -r "$ac_site_file"; then |
| 1524 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1525 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1526 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1527 | . "$ac_site_file" |
| 1528 | fi |
| 1529 | done |
| 1530 | |
| 1531 | if test -r "$cache_file"; then |
| 1532 | # Some versions of bash will fail to source /dev/null (special |
| 1533 | # files actually), so we avoid doing that. |
| 1534 | if test -f "$cache_file"; then |
| 1535 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1536 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1537 | case $cache_file in |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1538 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1539 | *) . "./$cache_file";; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1540 | esac |
| 1541 | fi |
| 1542 | else |
| 1543 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1544 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1545 | >$cache_file |
| 1546 | fi |
| 1547 | |
| 1548 | # Check that the precious variables saved in the cache have kept the same |
| 1549 | # value. |
| 1550 | ac_cache_corrupted=false |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1551 | for ac_var in $ac_precious_vars; do |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1552 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1553 | eval ac_new_set=\$ac_env_${ac_var}_set |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1554 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1555 | eval ac_new_val=\$ac_env_${ac_var}_value |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1556 | case $ac_old_set,$ac_new_set in |
| 1557 | set,) |
| 1558 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1559 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1560 | ac_cache_corrupted=: ;; |
| 1561 | ,set) |
| 1562 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1563 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1564 | ac_cache_corrupted=: ;; |
| 1565 | ,);; |
| 1566 | *) |
| 1567 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1568 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1569 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1570 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1571 | echo "$as_me: former value: $ac_old_val" >&2;} |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1572 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1573 | echo "$as_me: current value: $ac_new_val" >&2;} |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1574 | ac_cache_corrupted=: |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1575 | fi;; |
| 1576 | esac |
| 1577 | # Pass precious variables to config.status. |
| 1578 | if test "$ac_new_set" = set; then |
| 1579 | case $ac_new_val in |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1580 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1581 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1582 | esac |
| 1583 | case " $ac_configure_args " in |
| 1584 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1585 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1586 | esac |
| 1587 | fi |
| 1588 | done |
| 1589 | if $ac_cache_corrupted; then |
| 1590 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1591 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1592 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1593 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1594 | { (exit 1); exit 1; }; } |
| 1595 | fi |
| 1596 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1597 | |
| 1598 | |
| 1599 | |
| 1600 | |
| 1601 | |
| 1602 | |
| 1603 | |
| 1604 | |
| 1605 | |
| 1606 | |
| 1607 | |
| 1608 | |
| 1609 | |
| 1610 | |
| 1611 | |
| 1612 | |
| 1613 | |
| 1614 | |
| 1615 | |
| 1616 | |
| 1617 | |
| 1618 | |
| 1619 | |
| 1620 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1621 | ac_ext=c |
| 1622 | ac_cpp='$CPP $CPPFLAGS' |
| 1623 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1624 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1625 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1626 | |
| 1627 | |
| 1628 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1629 | LLVM_SRC_ROOT="../.." |
| 1630 | LLVM_OBJ_ROOT="../.." |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1631 | ac_aux_dir= |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1632 | for ac_dir in $LLVM_SRC_ROOT/autoconf "$srcdir"/$LLVM_SRC_ROOT/autoconf; do |
| 1633 | if test -f "$ac_dir/install-sh"; then |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1634 | ac_aux_dir=$ac_dir |
| 1635 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1636 | break |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1637 | elif test -f "$ac_dir/install.sh"; then |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1638 | ac_aux_dir=$ac_dir |
| 1639 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1640 | break |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1641 | elif test -f "$ac_dir/shtool"; then |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1642 | ac_aux_dir=$ac_dir |
| 1643 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1644 | break |
| 1645 | fi |
| 1646 | done |
| 1647 | if test -z "$ac_aux_dir"; then |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1648 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $LLVM_SRC_ROOT/autoconf \"$srcdir\"/$LLVM_SRC_ROOT/autoconf" >&5 |
| 1649 | echo "$as_me: error: cannot find install-sh or install.sh in $LLVM_SRC_ROOT/autoconf \"$srcdir\"/$LLVM_SRC_ROOT/autoconf" >&2;} |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1650 | { (exit 1); exit 1; }; } |
| 1651 | fi |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1652 | |
| 1653 | # These three variables are undocumented and unsupported, |
| 1654 | # and are intended to be withdrawn in a future Autoconf release. |
| 1655 | # They can cause serious problems if a builder's source tree is in a directory |
| 1656 | # whose full name contains unusual characters. |
| 1657 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1658 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1659 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1660 | |
| 1661 | |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1662 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1663 | |
| 1664 | # Check whether --with-llvmsrc was given. |
Reid Spencer | 421ec05 | 2005-02-24 18:53:47 +0000 | [diff] [blame] | 1665 | if test "${with_llvmsrc+set}" = set; then |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1666 | withval=$with_llvmsrc; llvm_src="$withval" |
Reid Spencer | 421ec05 | 2005-02-24 18:53:47 +0000 | [diff] [blame] | 1667 | else |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1668 | llvm_src="$LLVM_SRC_ROOT" |
| 1669 | fi |
| 1670 | |
Reid Spencer | 421ec05 | 2005-02-24 18:53:47 +0000 | [diff] [blame] | 1671 | LLVM_SRC=$llvm_src |
| 1672 | |
| 1673 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1674 | # Check whether --with-llvmobj was given. |
Reid Spencer | 421ec05 | 2005-02-24 18:53:47 +0000 | [diff] [blame] | 1675 | if test "${with_llvmobj+set}" = set; then |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1676 | withval=$with_llvmobj; llvm_obj="$withval" |
Reid Spencer | 421ec05 | 2005-02-24 18:53:47 +0000 | [diff] [blame] | 1677 | else |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1678 | llvm_obj="$LLVM_OBJ_ROOT" |
| 1679 | fi |
| 1680 | |
Reid Spencer | 421ec05 | 2005-02-24 18:53:47 +0000 | [diff] [blame] | 1681 | LLVM_OBJ=$llvm_obj |
| 1682 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1683 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | 421ec05 | 2005-02-24 18:53:47 +0000 | [diff] [blame] | 1684 | |
| 1685 | |
| 1686 | |
| 1687 | |
| 1688 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1689 | ac_config_files="$ac_config_files Makefile.common" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1690 | |
| 1691 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1692 | ac_config_commands="$ac_config_commands Makefile" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1693 | |
| 1694 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1695 | ac_config_commands="$ac_config_commands lib/Makefile" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1696 | |
| 1697 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1698 | ac_config_commands="$ac_config_commands lib/sample/Makefile" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1699 | |
| 1700 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1701 | ac_config_commands="$ac_config_commands tools/Makefile" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1702 | |
| 1703 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1704 | ac_config_commands="$ac_config_commands tools/sample/Makefile" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1705 | |
| 1706 | |
| 1707 | |
| 1708 | |
| 1709 | |
| 1710 | |
| 1711 | |
| 1712 | |
| 1713 | |
| 1714 | |
| 1715 | |
| 1716 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1717 | cat >confcache <<\_ACEOF |
| 1718 | # This file is a shell script that caches the results of configure |
| 1719 | # tests run on this system so they can be shared between configure |
| 1720 | # scripts and configure runs, see configure's option --config-cache. |
| 1721 | # It is not useful on other systems. If it contains results you don't |
| 1722 | # want to keep, you may remove or edit it. |
| 1723 | # |
| 1724 | # config.status only pays attention to the cache file if you give it |
| 1725 | # the --recheck option to rerun configure. |
| 1726 | # |
| 1727 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 1728 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 1729 | # following values. |
| 1730 | |
| 1731 | _ACEOF |
| 1732 | |
| 1733 | # The following way of writing the cache mishandles newlines in values, |
| 1734 | # but we know of no workaround that is simple, portable, and efficient. |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1735 | # So, we kill variables containing newlines. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1736 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 1737 | # and sets the high bit in the cache file unless we assign to the vars. |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1738 | ( |
| 1739 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 1740 | eval ac_val=\$$ac_var |
| 1741 | case $ac_val in #( |
| 1742 | *${as_nl}*) |
| 1743 | case $ac_var in #( |
| 1744 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1745 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1746 | esac |
| 1747 | case $ac_var in #( |
| 1748 | _ | IFS | as_nl) ;; #( |
| 1749 | *) $as_unset $ac_var ;; |
| 1750 | esac ;; |
| 1751 | esac |
| 1752 | done |
| 1753 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1754 | (set) 2>&1 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1755 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 1756 | *${as_nl}ac_space=\ *) |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1757 | # `set' does not quote correctly, so add quotes (double-quote |
| 1758 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 1759 | sed -n \ |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1760 | "s/'/'\\\\''/g; |
| 1761 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1762 | ;; #( |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1763 | *) |
| 1764 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1765 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1766 | ;; |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1767 | esac | |
| 1768 | sort |
| 1769 | ) | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1770 | sed ' |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1771 | /^ac_cv_env_/b end |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1772 | t clear |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1773 | :clear |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1774 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 1775 | t end |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1776 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 1777 | :end' >>confcache |
| 1778 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 1779 | if test -w "$cache_file"; then |
| 1780 | test "x$cache_file" != "x/dev/null" && |
| 1781 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 1782 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1783 | cat confcache >$cache_file |
| 1784 | else |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1785 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 1786 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1787 | fi |
| 1788 | fi |
| 1789 | rm -f confcache |
| 1790 | |
| 1791 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 1792 | # Let make expand exec_prefix. |
| 1793 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 1794 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1795 | # Transform confdefs.h into DEFS. |
| 1796 | # Protect against shell expansion while executing Makefile rules. |
| 1797 | # Protect against Makefile macro expansion. |
| 1798 | # |
| 1799 | # If the first sed substitution is executed (which looks for macros that |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1800 | # take arguments), then branch to the quote section. Otherwise, |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1801 | # look for a macro that doesn't take arguments. |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1802 | ac_script=' |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1803 | t clear |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1804 | :clear |
| 1805 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1806 | t quote |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1807 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1808 | t quote |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1809 | b any |
| 1810 | :quote |
| 1811 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
| 1812 | s/\[/\\&/g |
| 1813 | s/\]/\\&/g |
| 1814 | s/\$/$$/g |
| 1815 | H |
| 1816 | :any |
| 1817 | ${ |
| 1818 | g |
| 1819 | s/^\n// |
| 1820 | s/\n/ /g |
| 1821 | p |
| 1822 | } |
| 1823 | ' |
| 1824 | DEFS=`sed -n "$ac_script" confdefs.h` |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1825 | |
| 1826 | |
| 1827 | ac_libobjs= |
| 1828 | ac_ltlibobjs= |
| 1829 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 1830 | # 1. Remove the extension, and $U if already installed. |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1831 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 1832 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 1833 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 1834 | # will be set to the directory where LIBOBJS objects are built. |
| 1835 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 1836 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1837 | done |
| 1838 | LIBOBJS=$ac_libobjs |
| 1839 | |
| 1840 | LTLIBOBJS=$ac_ltlibobjs |
| 1841 | |
| 1842 | |
| 1843 | |
| 1844 | : ${CONFIG_STATUS=./config.status} |
| 1845 | ac_clean_files_save=$ac_clean_files |
| 1846 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 1847 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 1848 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 1849 | cat >$CONFIG_STATUS <<_ACEOF |
| 1850 | #! $SHELL |
| 1851 | # Generated by $as_me. |
| 1852 | # Run this file to recreate the current configuration. |
| 1853 | # Compiler output produced by configure, useful for debugging |
| 1854 | # configure, is in config.log if it exists. |
| 1855 | |
| 1856 | debug=false |
| 1857 | ac_cs_recheck=false |
| 1858 | ac_cs_silent=false |
| 1859 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 1860 | _ACEOF |
| 1861 | |
| 1862 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 1863 | ## --------------------- ## |
| 1864 | ## M4sh Initialization. ## |
| 1865 | ## --------------------- ## |
| 1866 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1867 | # Be more Bourne compatible |
| 1868 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1869 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 1870 | emulate sh |
| 1871 | NULLCMD=: |
| 1872 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 1873 | # is contrary to our usage. Disable this feature. |
| 1874 | alias -g '${1+"$@"}'='"$@"' |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1875 | setopt NO_GLOB_SUBST |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1876 | else |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1877 | case `(set -o) 2>/dev/null` in |
| 1878 | *posix*) set -o posix ;; |
| 1879 | esac |
| 1880 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1881 | fi |
| 1882 | |
| 1883 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1884 | |
| 1885 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1886 | # PATH needs CR |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1887 | # Avoid depending upon Character Ranges. |
| 1888 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 1889 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 1890 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 1891 | as_cr_digits='0123456789' |
| 1892 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 1893 | |
| 1894 | # The user is always right. |
| 1895 | if test "${PATH_SEPARATOR+set}" != set; then |
| 1896 | echo "#! /bin/sh" >conf$$.sh |
| 1897 | echo "exit 0" >>conf$$.sh |
| 1898 | chmod +x conf$$.sh |
| 1899 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 1900 | PATH_SEPARATOR=';' |
| 1901 | else |
| 1902 | PATH_SEPARATOR=: |
| 1903 | fi |
| 1904 | rm -f conf$$.sh |
| 1905 | fi |
| 1906 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1907 | # Support unset when possible. |
| 1908 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 1909 | as_unset=unset |
| 1910 | else |
| 1911 | as_unset=false |
| 1912 | fi |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1913 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1914 | |
| 1915 | # IFS |
| 1916 | # We need space, tab and new line, in precisely that order. Quoting is |
| 1917 | # there to prevent editors from complaining about space-tab. |
| 1918 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 1919 | # splitting by setting IFS to empty value.) |
| 1920 | as_nl=' |
| 1921 | ' |
| 1922 | IFS=" "" $as_nl" |
| 1923 | |
| 1924 | # Find who we are. Look in the path if we contain no directory separator. |
| 1925 | case $0 in |
| 1926 | *[\\/]* ) as_myself=$0 ;; |
| 1927 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1928 | for as_dir in $PATH |
| 1929 | do |
| 1930 | IFS=$as_save_IFS |
| 1931 | test -z "$as_dir" && as_dir=. |
| 1932 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 1933 | done |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1934 | IFS=$as_save_IFS |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1935 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1936 | ;; |
| 1937 | esac |
| 1938 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 1939 | # in which case we are not to be found in the path. |
| 1940 | if test "x$as_myself" = x; then |
| 1941 | as_myself=$0 |
| 1942 | fi |
| 1943 | if test ! -f "$as_myself"; then |
| 1944 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 1945 | { (exit 1); exit 1; } |
| 1946 | fi |
| 1947 | |
| 1948 | # Work around bugs in pre-3.0 UWIN ksh. |
| 1949 | for as_var in ENV MAIL MAILPATH |
| 1950 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 1951 | done |
| 1952 | PS1='$ ' |
| 1953 | PS2='> ' |
| 1954 | PS4='+ ' |
| 1955 | |
| 1956 | # NLS nuisances. |
| 1957 | for as_var in \ |
| 1958 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 1959 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 1960 | LC_TELEPHONE LC_TIME |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1961 | do |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1962 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 1963 | eval $as_var=C; export $as_var |
| 1964 | else |
| 1965 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 1966 | fi |
| 1967 | done |
| 1968 | |
| 1969 | # Required to use basename. |
| 1970 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 1971 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 1972 | as_expr=expr |
| 1973 | else |
| 1974 | as_expr=false |
| 1975 | fi |
| 1976 | |
| 1977 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 1978 | as_basename=basename |
| 1979 | else |
| 1980 | as_basename=false |
| 1981 | fi |
| 1982 | |
| 1983 | |
| 1984 | # Name of the executable. |
| 1985 | as_me=`$as_basename -- "$0" || |
| 1986 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 1987 | X"$0" : 'X\(//\)$' \| \ |
| 1988 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 1989 | echo X/"$0" | |
| 1990 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 1991 | s//\1/ |
| 1992 | q |
| 1993 | } |
| 1994 | /^X\/\(\/\/\)$/{ |
| 1995 | s//\1/ |
| 1996 | q |
| 1997 | } |
| 1998 | /^X\/\(\/\).*/{ |
| 1999 | s//\1/ |
| 2000 | q |
| 2001 | } |
| 2002 | s/.*/./; q'` |
| 2003 | |
| 2004 | # CDPATH. |
| 2005 | $as_unset CDPATH |
| 2006 | |
| 2007 | |
| 2008 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2009 | as_lineno_1=$LINENO |
| 2010 | as_lineno_2=$LINENO |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2011 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2012 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2013 | |
| 2014 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 2015 | # uniformly replaced by the line number. The first 'sed' inserts a |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2016 | # line-number line after each line using $LINENO; the second 'sed' |
| 2017 | # does the real work. The second script uses 'N' to pair each |
| 2018 | # line-number line with the line containing $LINENO, and appends |
| 2019 | # trailing '-' during substitution so that $LINENO is not a special |
| 2020 | # case at line end. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2021 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2022 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 2023 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 2024 | sed -n ' |
| 2025 | p |
| 2026 | /[$]LINENO/= |
| 2027 | ' <$as_myself | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2028 | sed ' |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2029 | s/[$]LINENO.*/&-/ |
| 2030 | t lineno |
| 2031 | b |
| 2032 | :lineno |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2033 | N |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2034 | :loop |
| 2035 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2036 | t loop |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2037 | s/-\n.*// |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2038 | ' >$as_me.lineno && |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2039 | chmod +x "$as_me.lineno" || |
| 2040 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2041 | { (exit 1); exit 1; }; } |
| 2042 | |
| 2043 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 2044 | # (the dirname of $[0] is not the place where we might find the |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2045 | # original and so on. Autoconf is especially sensitive to this). |
| 2046 | . "./$as_me.lineno" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2047 | # Exit status is that of the last command. |
| 2048 | exit |
| 2049 | } |
| 2050 | |
| 2051 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2052 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 2053 | as_dirname=dirname |
| 2054 | else |
| 2055 | as_dirname=false |
| 2056 | fi |
| 2057 | |
| 2058 | ECHO_C= ECHO_N= ECHO_T= |
| 2059 | case `echo -n x` in |
| 2060 | -n*) |
| 2061 | case `echo 'x\c'` in |
| 2062 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 2063 | *) ECHO_C='\c';; |
| 2064 | esac;; |
| 2065 | *) |
| 2066 | ECHO_N='-n';; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2067 | esac |
| 2068 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2069 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 2070 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2071 | as_expr=expr |
| 2072 | else |
| 2073 | as_expr=false |
| 2074 | fi |
| 2075 | |
| 2076 | rm -f conf$$ conf$$.exe conf$$.file |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2077 | if test -d conf$$.dir; then |
| 2078 | rm -f conf$$.dir/conf$$.file |
| 2079 | else |
| 2080 | rm -f conf$$.dir |
| 2081 | mkdir conf$$.dir |
| 2082 | fi |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2083 | echo >conf$$.file |
| 2084 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2085 | as_ln_s='ln -s' |
| 2086 | # ... but there are two gotchas: |
| 2087 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 2088 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 2089 | # In both cases, we have to default to `cp -p'. |
| 2090 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2091 | as_ln_s='cp -p' |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2092 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 2093 | as_ln_s=ln |
| 2094 | else |
| 2095 | as_ln_s='cp -p' |
| 2096 | fi |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2097 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 2098 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2099 | |
| 2100 | if mkdir -p . 2>/dev/null; then |
| 2101 | as_mkdir_p=: |
| 2102 | else |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 2103 | test -d ./-p && rmdir ./-p |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2104 | as_mkdir_p=false |
| 2105 | fi |
| 2106 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2107 | if test -x / >/dev/null 2>&1; then |
| 2108 | as_test_x='test -x' |
| 2109 | else |
| 2110 | if ls -dL / >/dev/null 2>&1; then |
| 2111 | as_ls_L_option=L |
| 2112 | else |
| 2113 | as_ls_L_option= |
| 2114 | fi |
| 2115 | as_test_x=' |
| 2116 | eval sh -c '\'' |
| 2117 | if test -d "$1"; then |
| 2118 | test -d "$1/."; |
| 2119 | else |
| 2120 | case $1 in |
| 2121 | -*)set "./$1";; |
| 2122 | esac; |
| 2123 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 2124 | ???[sx]*):;;*)false;;esac;fi |
| 2125 | '\'' sh |
| 2126 | ' |
| 2127 | fi |
| 2128 | as_executable_p=$as_test_x |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2129 | |
| 2130 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 2131 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2132 | |
| 2133 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 2134 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2135 | |
| 2136 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2137 | exec 6>&1 |
| 2138 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2139 | # Save the log message, to keep $[0] and so on meaningful, and to |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2140 | # report actual input values of CONFIG_FILES etc. instead of their |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2141 | # values after options handling. |
| 2142 | ac_log=" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2143 | This file was extended by [SAMPLE] $as_me [x.xx], which was |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2144 | generated by GNU Autoconf 2.61. Invocation command line was |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2145 | |
| 2146 | CONFIG_FILES = $CONFIG_FILES |
| 2147 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 2148 | CONFIG_LINKS = $CONFIG_LINKS |
| 2149 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 2150 | $ $0 $@ |
| 2151 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2152 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2153 | " |
| 2154 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2155 | _ACEOF |
| 2156 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2157 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2158 | # Files that config.status was made for. |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2159 | config_files="$ac_config_files" |
| 2160 | config_commands="$ac_config_commands" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2161 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2162 | _ACEOF |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2163 | |
| 2164 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2165 | ac_cs_usage="\ |
| 2166 | \`$as_me' instantiates files from templates according to the |
| 2167 | current configuration. |
| 2168 | |
| 2169 | Usage: $0 [OPTIONS] [FILE]... |
| 2170 | |
| 2171 | -h, --help print this help, then exit |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2172 | -V, --version print version number and configuration settings, then exit |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2173 | -q, --quiet do not print progress messages |
| 2174 | -d, --debug don't remove temporary files |
| 2175 | --recheck update $as_me by reconfiguring in the same conditions |
| 2176 | --file=FILE[:TEMPLATE] |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 2177 | instantiate the configuration file FILE |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2178 | |
| 2179 | Configuration files: |
| 2180 | $config_files |
| 2181 | |
| 2182 | Configuration commands: |
| 2183 | $config_commands |
| 2184 | |
| 2185 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2186 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2187 | _ACEOF |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2188 | cat >>$CONFIG_STATUS <<_ACEOF |
| 2189 | ac_cs_version="\\ |
| 2190 | [SAMPLE] config.status [x.xx] |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2191 | configured by $0, generated by GNU Autoconf 2.61, |
| 2192 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2193 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2194 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2195 | This config.status script is free software; the Free Software Foundation |
| 2196 | gives unlimited permission to copy, distribute and modify it." |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2197 | |
| 2198 | ac_pwd='$ac_pwd' |
| 2199 | srcdir='$srcdir' |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2200 | _ACEOF |
| 2201 | |
| 2202 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 2203 | # If no file are specified by the user, then we need to provide default |
| 2204 | # value. By we need to know if files were specified by the user. |
| 2205 | ac_need_defaults=: |
| 2206 | while test $# != 0 |
| 2207 | do |
| 2208 | case $1 in |
| 2209 | --*=*) |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2210 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 2211 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2212 | ac_shift=: |
| 2213 | ;; |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2214 | *) |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2215 | ac_option=$1 |
| 2216 | ac_optarg=$2 |
| 2217 | ac_shift=shift |
| 2218 | ;; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2219 | esac |
| 2220 | |
| 2221 | case $ac_option in |
| 2222 | # Handling of the options. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2223 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 2224 | ac_cs_recheck=: ;; |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2225 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 2226 | echo "$ac_cs_version"; exit ;; |
| 2227 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2228 | debug=: ;; |
| 2229 | --file | --fil | --fi | --f ) |
| 2230 | $ac_shift |
| 2231 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 2232 | ac_need_defaults=false;; |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2233 | --he | --h | --help | --hel | -h ) |
| 2234 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2235 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2236 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 2237 | ac_cs_silent=: ;; |
| 2238 | |
| 2239 | # This is an error. |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2240 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 2241 | Try \`$0 --help' for more information." >&2 |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2242 | { (exit 1); exit 1; }; } ;; |
| 2243 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2244 | *) ac_config_targets="$ac_config_targets $1" |
| 2245 | ac_need_defaults=false ;; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2246 | |
| 2247 | esac |
| 2248 | shift |
| 2249 | done |
| 2250 | |
| 2251 | ac_configure_extra_args= |
| 2252 | |
| 2253 | if $ac_cs_silent; then |
| 2254 | exec 6>/dev/null |
| 2255 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 2256 | fi |
| 2257 | |
| 2258 | _ACEOF |
| 2259 | cat >>$CONFIG_STATUS <<_ACEOF |
| 2260 | if \$ac_cs_recheck; then |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2261 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 2262 | CONFIG_SHELL=$SHELL |
| 2263 | export CONFIG_SHELL |
| 2264 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2265 | fi |
| 2266 | |
| 2267 | _ACEOF |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2268 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 2269 | exec 5>>config.log |
| 2270 | { |
| 2271 | echo |
| 2272 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 2273 | ## Running $as_me. ## |
| 2274 | _ASBOX |
| 2275 | echo "$ac_log" |
| 2276 | } >&5 |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2277 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2278 | _ACEOF |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2279 | cat >>$CONFIG_STATUS <<_ACEOF |
| 2280 | # |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2281 | # INIT-COMMANDS |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2282 | # |
Reid Spencer | 421ec05 | 2005-02-24 18:53:47 +0000 | [diff] [blame] | 2283 | llvm_src="${LLVM_SRC}" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2284 | |
| 2285 | _ACEOF |
| 2286 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2287 | cat >>$CONFIG_STATUS <<\_ACEOF |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2288 | |
| 2289 | # Handling of arguments. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2290 | for ac_config_target in $ac_config_targets |
| 2291 | do |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2292 | case $ac_config_target in |
| 2293 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 2294 | "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;; |
| 2295 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 2296 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
| 2297 | "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;; |
| 2298 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 2299 | "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;; |
| 2300 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2301 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 2302 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 2303 | { (exit 1); exit 1; }; };; |
| 2304 | esac |
| 2305 | done |
| 2306 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2307 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2308 | # If the user did not use the arguments to specify the items to instantiate, |
| 2309 | # then the envvar interface is used. Set only those that are not. |
| 2310 | # We use the long form for the default assignment because of an extremely |
| 2311 | # bizarre bug on SunOS 4.1.3. |
| 2312 | if $ac_need_defaults; then |
| 2313 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 2314 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 2315 | fi |
| 2316 | |
| 2317 | # Have a temporary directory for convenience. Make it in the build tree |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2318 | # simply because there is no reason against having it here, and in addition, |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2319 | # creating and moving files from /tmp can sometimes cause problems. |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2320 | # Hook for its removal unless debugging. |
| 2321 | # Note that there is a small window in which the directory will not be cleaned: |
| 2322 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2323 | $debug || |
| 2324 | { |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2325 | tmp= |
| 2326 | trap 'exit_status=$? |
| 2327 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 2328 | ' 0 |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2329 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 2330 | } |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2331 | # Create a (secure) tmp directory for tmp files. |
| 2332 | |
| 2333 | { |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2334 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2335 | test -n "$tmp" && test -d "$tmp" |
| 2336 | } || |
| 2337 | { |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2338 | tmp=./conf$$-$RANDOM |
| 2339 | (umask 077 && mkdir "$tmp") |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2340 | } || |
| 2341 | { |
| 2342 | echo "$me: cannot create a temporary directory in ." >&2 |
| 2343 | { (exit 1); exit 1; } |
| 2344 | } |
| 2345 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2346 | # |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2347 | # Set up the sed scripts for CONFIG_FILES section. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2348 | # |
| 2349 | |
| 2350 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 2351 | # This happens for instance when ./config.status config.h |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2352 | if test -n "$CONFIG_FILES"; then |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2353 | |
| 2354 | _ACEOF |
| 2355 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2356 | |
| 2357 | |
| 2358 | ac_delim='%!_!# ' |
| 2359 | for ac_last_try in false false false false false :; do |
| 2360 | cat >conf$$subs.sed <<_ACEOF |
| 2361 | SHELL!$SHELL$ac_delim |
| 2362 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 2363 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 2364 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 2365 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 2366 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 2367 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 2368 | exec_prefix!$exec_prefix$ac_delim |
| 2369 | prefix!$prefix$ac_delim |
| 2370 | program_transform_name!$program_transform_name$ac_delim |
| 2371 | bindir!$bindir$ac_delim |
| 2372 | sbindir!$sbindir$ac_delim |
| 2373 | libexecdir!$libexecdir$ac_delim |
| 2374 | datarootdir!$datarootdir$ac_delim |
| 2375 | datadir!$datadir$ac_delim |
| 2376 | sysconfdir!$sysconfdir$ac_delim |
| 2377 | sharedstatedir!$sharedstatedir$ac_delim |
| 2378 | localstatedir!$localstatedir$ac_delim |
| 2379 | includedir!$includedir$ac_delim |
| 2380 | oldincludedir!$oldincludedir$ac_delim |
| 2381 | docdir!$docdir$ac_delim |
| 2382 | infodir!$infodir$ac_delim |
| 2383 | htmldir!$htmldir$ac_delim |
| 2384 | dvidir!$dvidir$ac_delim |
| 2385 | pdfdir!$pdfdir$ac_delim |
| 2386 | psdir!$psdir$ac_delim |
| 2387 | libdir!$libdir$ac_delim |
| 2388 | localedir!$localedir$ac_delim |
| 2389 | mandir!$mandir$ac_delim |
| 2390 | DEFS!$DEFS$ac_delim |
| 2391 | ECHO_C!$ECHO_C$ac_delim |
| 2392 | ECHO_N!$ECHO_N$ac_delim |
| 2393 | ECHO_T!$ECHO_T$ac_delim |
| 2394 | LIBS!$LIBS$ac_delim |
| 2395 | build_alias!$build_alias$ac_delim |
| 2396 | host_alias!$host_alias$ac_delim |
| 2397 | target_alias!$target_alias$ac_delim |
| 2398 | LLVM_SRC!$LLVM_SRC$ac_delim |
| 2399 | LLVM_OBJ!$LLVM_OBJ$ac_delim |
| 2400 | LIBOBJS!$LIBOBJS$ac_delim |
| 2401 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 2402 | _ACEOF |
| 2403 | |
| 2404 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 41; then |
| 2405 | break |
| 2406 | elif $ac_last_try; then |
| 2407 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 2408 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 2409 | { (exit 1); exit 1; }; } |
| 2410 | else |
| 2411 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2412 | fi |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2413 | done |
| 2414 | |
| 2415 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 2416 | if test -n "$ac_eof"; then |
| 2417 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 2418 | ac_eof=`expr $ac_eof + 1` |
| 2419 | fi |
| 2420 | |
| 2421 | cat >>$CONFIG_STATUS <<_ACEOF |
| 2422 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 2423 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 2424 | _ACEOF |
| 2425 | sed ' |
| 2426 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 2427 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 2428 | :n |
| 2429 | t n |
| 2430 | s/'"$ac_delim"'$/,g/; t |
| 2431 | s/$/\\/; p |
| 2432 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 2433 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 2434 | rm -f conf$$subs.sed |
| 2435 | cat >>$CONFIG_STATUS <<_ACEOF |
| 2436 | :end |
| 2437 | s/|#_!!_#|//g |
| 2438 | CEOF$ac_eof |
| 2439 | _ACEOF |
| 2440 | |
| 2441 | |
| 2442 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 2443 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 2444 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 2445 | # (actually we leave an empty line to preserve line numbers). |
| 2446 | if test "x$srcdir" = x.; then |
| 2447 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 2448 | s/:*\$(srcdir):*/:/ |
| 2449 | s/:*\${srcdir}:*/:/ |
| 2450 | s/:*@srcdir@:*/:/ |
| 2451 | s/^\([^=]*=[ ]*\):*/\1/ |
| 2452 | s/:*$// |
| 2453 | s/^[^=]*=[ ]*$// |
| 2454 | }' |
| 2455 | fi |
| 2456 | |
| 2457 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2458 | fi # test -n "$CONFIG_FILES" |
| 2459 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2460 | |
| 2461 | for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS |
| 2462 | do |
| 2463 | case $ac_tag in |
| 2464 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 2465 | esac |
| 2466 | case $ac_mode$ac_tag in |
| 2467 | :[FHL]*:*);; |
| 2468 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 2469 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 2470 | { (exit 1); exit 1; }; };; |
| 2471 | :[FH]-) ac_tag=-:-;; |
| 2472 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 2473 | esac |
| 2474 | ac_save_IFS=$IFS |
| 2475 | IFS=: |
| 2476 | set x $ac_tag |
| 2477 | IFS=$ac_save_IFS |
| 2478 | shift |
| 2479 | ac_file=$1 |
| 2480 | shift |
| 2481 | |
| 2482 | case $ac_mode in |
| 2483 | :L) ac_source=$1;; |
| 2484 | :[FH]) |
| 2485 | ac_file_inputs= |
| 2486 | for ac_f |
| 2487 | do |
| 2488 | case $ac_f in |
| 2489 | -) ac_f="$tmp/stdin";; |
| 2490 | *) # Look for the file first in the build tree, then in the source tree |
| 2491 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 2492 | # because $ac_f cannot contain `:'. |
| 2493 | test -f "$ac_f" || |
| 2494 | case $ac_f in |
| 2495 | [\\/$]*) false;; |
| 2496 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 2497 | esac || |
| 2498 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 2499 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 2500 | { (exit 1); exit 1; }; };; |
| 2501 | esac |
| 2502 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 2503 | done |
| 2504 | |
| 2505 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 2506 | # use $as_me), people would be surprised to read: |
| 2507 | # /* config.h. Generated by config.status. */ |
| 2508 | configure_input="Generated from "`IFS=: |
| 2509 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 2510 | if test x"$ac_file" != x-; then |
| 2511 | configure_input="$ac_file. $configure_input" |
| 2512 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 2513 | echo "$as_me: creating $ac_file" >&6;} |
| 2514 | fi |
| 2515 | |
| 2516 | case $ac_tag in |
| 2517 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 2518 | esac |
| 2519 | ;; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2520 | esac |
| 2521 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2522 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2523 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 2524 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 2525 | X"$ac_file" : 'X\(//\)$' \| \ |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2526 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2527 | echo X"$ac_file" | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2528 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 2529 | s//\1/ |
| 2530 | q |
| 2531 | } |
| 2532 | /^X\(\/\/\)[^/].*/{ |
| 2533 | s//\1/ |
| 2534 | q |
| 2535 | } |
| 2536 | /^X\(\/\/\)$/{ |
| 2537 | s//\1/ |
| 2538 | q |
| 2539 | } |
| 2540 | /^X\(\/\).*/{ |
| 2541 | s//\1/ |
| 2542 | q |
| 2543 | } |
| 2544 | s/.*/./; q'` |
| 2545 | { as_dir="$ac_dir" |
| 2546 | case $as_dir in #( |
| 2547 | -*) as_dir=./$as_dir;; |
| 2548 | esac |
| 2549 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2550 | as_dirs= |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2551 | while :; do |
| 2552 | case $as_dir in #( |
| 2553 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 2554 | *) as_qdir=$as_dir;; |
| 2555 | esac |
| 2556 | as_dirs="'$as_qdir' $as_dirs" |
| 2557 | as_dir=`$as_dirname -- "$as_dir" || |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2558 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 2559 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 2560 | X"$as_dir" : 'X\(//\)$' \| \ |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2561 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2562 | echo X"$as_dir" | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2563 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 2564 | s//\1/ |
| 2565 | q |
| 2566 | } |
| 2567 | /^X\(\/\/\)[^/].*/{ |
| 2568 | s//\1/ |
| 2569 | q |
| 2570 | } |
| 2571 | /^X\(\/\/\)$/{ |
| 2572 | s//\1/ |
| 2573 | q |
| 2574 | } |
| 2575 | /^X\(\/\).*/{ |
| 2576 | s//\1/ |
| 2577 | q |
| 2578 | } |
| 2579 | s/.*/./; q'` |
| 2580 | test -d "$as_dir" && break |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2581 | done |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2582 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 2583 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 2584 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2585 | { (exit 1); exit 1; }; }; } |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2586 | ac_builddir=. |
| 2587 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2588 | case "$ac_dir" in |
| 2589 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 2590 | *) |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2591 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2592 | # A ".." for each directory in $ac_dir_suffix. |
| 2593 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 2594 | case $ac_top_builddir_sub in |
| 2595 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 2596 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 2597 | esac ;; |
| 2598 | esac |
| 2599 | ac_abs_top_builddir=$ac_pwd |
| 2600 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 2601 | # for backward compatibility: |
| 2602 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2603 | |
| 2604 | case $srcdir in |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2605 | .) # We are building in place. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2606 | ac_srcdir=. |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2607 | ac_top_srcdir=$ac_top_builddir_sub |
| 2608 | ac_abs_top_srcdir=$ac_pwd ;; |
| 2609 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2610 | ac_srcdir=$srcdir$ac_dir_suffix; |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2611 | ac_top_srcdir=$srcdir |
| 2612 | ac_abs_top_srcdir=$srcdir ;; |
| 2613 | *) # Relative name. |
| 2614 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 2615 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 2616 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2617 | esac |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2618 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2619 | |
| 2620 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2621 | case $ac_mode in |
| 2622 | :F) |
| 2623 | # |
| 2624 | # CONFIG_FILE |
| 2625 | # |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2626 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2627 | _ACEOF |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2628 | |
| 2629 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 2630 | # If the template does not know about datarootdir, expand it. |
| 2631 | # FIXME: This hack should be removed a few years after 2.60. |
| 2632 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 2633 | |
| 2634 | case `sed -n '/datarootdir/ { |
| 2635 | p |
| 2636 | q |
| 2637 | } |
| 2638 | /@datadir@/p |
| 2639 | /@docdir@/p |
| 2640 | /@infodir@/p |
| 2641 | /@localedir@/p |
| 2642 | /@mandir@/p |
| 2643 | ' $ac_file_inputs` in |
| 2644 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 2645 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 2646 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 2647 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 2648 | _ACEOF |
| 2649 | cat >>$CONFIG_STATUS <<_ACEOF |
| 2650 | ac_datarootdir_hack=' |
| 2651 | s&@datadir@&$datadir&g |
| 2652 | s&@docdir@&$docdir&g |
| 2653 | s&@infodir@&$infodir&g |
| 2654 | s&@localedir@&$localedir&g |
| 2655 | s&@mandir@&$mandir&g |
| 2656 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 2657 | esac |
| 2658 | _ACEOF |
| 2659 | |
| 2660 | # Neutralize VPATH when `$srcdir' = `.'. |
| 2661 | # Shell code in configure.ac might set extrasub. |
| 2662 | # FIXME: do we really want to maintain this feature? |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2663 | cat >>$CONFIG_STATUS <<_ACEOF |
| 2664 | sed "$ac_vpsub |
| 2665 | $extrasub |
| 2666 | _ACEOF |
| 2667 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 2668 | :t |
| 2669 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2670 | s&@configure_input@&$configure_input&;t t |
| 2671 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 2672 | s&@srcdir@&$ac_srcdir&;t t |
| 2673 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 2674 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 2675 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 2676 | s&@builddir@&$ac_builddir&;t t |
| 2677 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 2678 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 2679 | $ac_datarootdir_hack |
| 2680 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2681 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2682 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 2683 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 2684 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 2685 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 2686 | which seems to be undefined. Please make sure it is defined." >&5 |
| 2687 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 2688 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2689 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2690 | rm -f "$tmp/stdin" |
| 2691 | case $ac_file in |
| 2692 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 2693 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2694 | esac |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2695 | ;; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2696 | |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 2697 | |
| 2698 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 2699 | echo "$as_me: executing $ac_file commands" >&6;} |
| 2700 | ;; |
| 2701 | esac |
| 2702 | |
| 2703 | |
| 2704 | case $ac_file$ac_mode in |
| 2705 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
| 2706 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;; |
| 2707 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
| 2708 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;; |
| 2709 | "lib/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile` |
| 2710 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;; |
| 2711 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
| 2712 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;; |
| 2713 | "tools/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile` |
| 2714 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;; |
| 2715 | |
| 2716 | esac |
| 2717 | done # for ac_tag |
| 2718 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2719 | |
| 2720 | { (exit 0); exit 0; } |
| 2721 | _ACEOF |
| 2722 | chmod +x $CONFIG_STATUS |
| 2723 | ac_clean_files=$ac_clean_files_save |
| 2724 | |
| 2725 | |
| 2726 | # configure is writing to config.log, and then calls config.status. |
| 2727 | # config.status does its own redirection, appending to config.log. |
| 2728 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 2729 | # by configure, so config.status won't be able to write to it; its |
| 2730 | # output is simply discarded. So we exec the FD to /dev/null, |
| 2731 | # effectively closing config.log, so it can be properly (re)opened and |
| 2732 | # appended to by config.status. When coming back to configure, we |
| 2733 | # need to make the FD available again. |
| 2734 | if test "$no_create" != yes; then |
| 2735 | ac_cs_success=: |
| 2736 | ac_config_status_args= |
| 2737 | test "$silent" = yes && |
| 2738 | ac_config_status_args="$ac_config_status_args --quiet" |
| 2739 | exec 5>/dev/null |
| 2740 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 2741 | exec 5>>config.log |
| 2742 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 2743 | # would make configure fail if this is the last instruction. |
| 2744 | $ac_cs_success || { (exit 1); exit 1; } |
| 2745 | fi |
| 2746 | |