annotate configure @ 485:b6c00a0a618e integration_library

Do not start transform factory's uninstalled transforms population thread in library edition -- don't want network access
author Chris Cannam
date Tue, 18 Oct 2011 10:15:05 +0100
parents e0e554997d3c
children
rev   line source
Chris@350 1 #! /bin/sh
Chris@350 2 # Guess values for system-dependent variables and create Makefiles.
mathieu@468 3 # Generated by GNU Autoconf 2.61 for Sonic Visualiser 1.9-kiosk-hg.
Chris@350 4 #
Chris@350 5 # Report bugs to <cannam@all-day-breakfast.com>.
Chris@350 6 #
Chris@350 7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
mathieu@468 8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Chris@350 9 # This configure script is free software; the Free Software Foundation
Chris@350 10 # gives unlimited permission to copy, distribute and modify it.
mathieu@468 11 ## --------------------- ##
mathieu@468 12 ## M4sh Initialization. ##
mathieu@468 13 ## --------------------- ##
Chris@350 14
Chris@350 15 # Be more Bourne compatible
Chris@350 16 DUALCASE=1; export DUALCASE # for MKS sh
mathieu@468 17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
Chris@350 18 emulate sh
Chris@350 19 NULLCMD=:
mathieu@468 20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
Chris@350 21 # is contrary to our usage. Disable this feature.
Chris@350 22 alias -g '${1+"$@"}'='"$@"'
Chris@350 23 setopt NO_GLOB_SUBST
Chris@350 24 else
mathieu@468 25 case `(set -o) 2>/dev/null` in
mathieu@468 26 *posix*) set -o posix ;;
mathieu@468 27 esac
mathieu@468 28
mathieu@468 29 fi
mathieu@468 30
mathieu@468 31
mathieu@468 32
mathieu@468 33
mathieu@468 34 # PATH needs CR
mathieu@468 35 # Avoid depending upon Character Ranges.
mathieu@468 36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
mathieu@468 37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
mathieu@468 38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
mathieu@468 39 as_cr_digits='0123456789'
mathieu@468 40 as_cr_alnum=$as_cr_Letters$as_cr_digits
Chris@350 41
Chris@350 42 # The user is always right.
Chris@350 43 if test "${PATH_SEPARATOR+set}" != set; then
mathieu@468 44 echo "#! /bin/sh" >conf$$.sh
mathieu@468 45 echo "exit 0" >>conf$$.sh
mathieu@468 46 chmod +x conf$$.sh
mathieu@468 47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
mathieu@468 48 PATH_SEPARATOR=';'
mathieu@468 49 else
mathieu@468 50 PATH_SEPARATOR=:
mathieu@468 51 fi
mathieu@468 52 rm -f conf$$.sh
mathieu@468 53 fi
mathieu@468 54
mathieu@468 55 # Support unset when possible.
mathieu@468 56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
mathieu@468 57 as_unset=unset
mathieu@468 58 else
mathieu@468 59 as_unset=false
Chris@350 60 fi
Chris@350 61
Chris@350 62
Chris@350 63 # IFS
Chris@350 64 # We need space, tab and new line, in precisely that order. Quoting is
Chris@350 65 # there to prevent editors from complaining about space-tab.
Chris@350 66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
Chris@350 67 # splitting by setting IFS to empty value.)
mathieu@468 68 as_nl='
mathieu@468 69 '
Chris@350 70 IFS=" "" $as_nl"
Chris@350 71
Chris@350 72 # Find who we are. Look in the path if we contain no directory separator.
mathieu@468 73 case $0 in
Chris@350 74 *[\\/]* ) as_myself=$0 ;;
Chris@350 75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 76 for as_dir in $PATH
Chris@350 77 do
Chris@350 78 IFS=$as_save_IFS
Chris@350 79 test -z "$as_dir" && as_dir=.
mathieu@468 80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
mathieu@468 81 done
Chris@350 82 IFS=$as_save_IFS
Chris@350 83
Chris@350 84 ;;
Chris@350 85 esac
Chris@350 86 # We did not find ourselves, most probably we were run as `sh COMMAND'
Chris@350 87 # in which case we are not to be found in the path.
Chris@350 88 if test "x$as_myself" = x; then
Chris@350 89 as_myself=$0
Chris@350 90 fi
Chris@350 91 if test ! -f "$as_myself"; then
mathieu@468 92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
mathieu@468 93 { (exit 1); exit 1; }
mathieu@468 94 fi
mathieu@468 95
mathieu@468 96 # Work around bugs in pre-3.0 UWIN ksh.
mathieu@468 97 for as_var in ENV MAIL MAILPATH
mathieu@468 98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Chris@350 99 done
Chris@350 100 PS1='$ '
Chris@350 101 PS2='> '
Chris@350 102 PS4='+ '
Chris@350 103
Chris@350 104 # NLS nuisances.
mathieu@468 105 for as_var in \
mathieu@468 106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
mathieu@468 107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
mathieu@468 108 LC_TELEPHONE LC_TIME
Chris@350 109 do
mathieu@468 110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
mathieu@468 111 eval $as_var=C; export $as_var
mathieu@468 112 else
mathieu@468 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
mathieu@468 114 fi
Chris@350 115 done
mathieu@468 116
mathieu@468 117 # Required to use basename.
Chris@350 118 if expr a : '\(a\)' >/dev/null 2>&1 &&
Chris@350 119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Chris@350 120 as_expr=expr
Chris@350 121 else
Chris@350 122 as_expr=false
Chris@350 123 fi
Chris@350 124
Chris@350 125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Chris@350 126 as_basename=basename
Chris@350 127 else
Chris@350 128 as_basename=false
Chris@350 129 fi
Chris@350 130
mathieu@468 131
mathieu@468 132 # Name of the executable.
Chris@350 133 as_me=`$as_basename -- "$0" ||
Chris@350 134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
Chris@350 135 X"$0" : 'X\(//\)$' \| \
Chris@350 136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
mathieu@468 137 echo X/"$0" |
Chris@350 138 sed '/^.*\/\([^/][^/]*\)\/*$/{
Chris@350 139 s//\1/
Chris@350 140 q
Chris@350 141 }
Chris@350 142 /^X\/\(\/\/\)$/{
Chris@350 143 s//\1/
Chris@350 144 q
Chris@350 145 }
Chris@350 146 /^X\/\(\/\).*/{
Chris@350 147 s//\1/
Chris@350 148 q
Chris@350 149 }
Chris@350 150 s/.*/./; q'`
Chris@350 151
mathieu@468 152 # CDPATH.
mathieu@468 153 $as_unset CDPATH
mathieu@468 154
mathieu@468 155
mathieu@468 156 if test "x$CONFIG_SHELL" = x; then
mathieu@468 157 if (eval ":") 2>/dev/null; then
mathieu@468 158 as_have_required=yes
mathieu@468 159 else
mathieu@468 160 as_have_required=no
mathieu@468 161 fi
mathieu@468 162
mathieu@468 163 if test $as_have_required = yes && (eval ":
mathieu@468 164 (as_func_return () {
mathieu@468 165 (exit \$1)
mathieu@468 166 }
mathieu@468 167 as_func_success () {
mathieu@468 168 as_func_return 0
mathieu@468 169 }
mathieu@468 170 as_func_failure () {
mathieu@468 171 as_func_return 1
mathieu@468 172 }
mathieu@468 173 as_func_ret_success () {
mathieu@468 174 return 0
mathieu@468 175 }
mathieu@468 176 as_func_ret_failure () {
mathieu@468 177 return 1
mathieu@468 178 }
mathieu@468 179
mathieu@468 180 exitcode=0
mathieu@468 181 if as_func_success; then
mathieu@468 182 :
mathieu@468 183 else
mathieu@468 184 exitcode=1
mathieu@468 185 echo as_func_success failed.
mathieu@468 186 fi
mathieu@468 187
mathieu@468 188 if as_func_failure; then
mathieu@468 189 exitcode=1
mathieu@468 190 echo as_func_failure succeeded.
mathieu@468 191 fi
mathieu@468 192
mathieu@468 193 if as_func_ret_success; then
mathieu@468 194 :
mathieu@468 195 else
mathieu@468 196 exitcode=1
mathieu@468 197 echo as_func_ret_success failed.
mathieu@468 198 fi
mathieu@468 199
mathieu@468 200 if as_func_ret_failure; then
mathieu@468 201 exitcode=1
mathieu@468 202 echo as_func_ret_failure succeeded.
mathieu@468 203 fi
mathieu@468 204
mathieu@468 205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
mathieu@468 206 :
mathieu@468 207 else
mathieu@468 208 exitcode=1
mathieu@468 209 echo positional parameters were not saved.
mathieu@468 210 fi
mathieu@468 211
mathieu@468 212 test \$exitcode = 0) || { (exit 1); exit 1; }
mathieu@468 213
mathieu@468 214 (
mathieu@468 215 as_lineno_1=\$LINENO
mathieu@468 216 as_lineno_2=\$LINENO
mathieu@468 217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
mathieu@468 218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
mathieu@468 219 ") 2> /dev/null; then
mathieu@468 220 :
mathieu@468 221 else
mathieu@468 222 as_candidate_shells=
mathieu@468 223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
mathieu@468 224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
mathieu@468 225 do
mathieu@468 226 IFS=$as_save_IFS
mathieu@468 227 test -z "$as_dir" && as_dir=.
mathieu@468 228 case $as_dir in
mathieu@468 229 /*)
mathieu@468 230 for as_base in sh bash ksh sh5; do
mathieu@468 231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
mathieu@468 232 done;;
mathieu@468 233 esac
mathieu@468 234 done
mathieu@468 235 IFS=$as_save_IFS
mathieu@468 236
mathieu@468 237
mathieu@468 238 for as_shell in $as_candidate_shells $SHELL; do
mathieu@468 239 # Try only shells that exist, to save several forks.
mathieu@468 240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
mathieu@468 241 { ("$as_shell") 2> /dev/null <<\_ASEOF
mathieu@468 242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
mathieu@468 243 emulate sh
mathieu@468 244 NULLCMD=:
mathieu@468 245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
mathieu@468 246 # is contrary to our usage. Disable this feature.
mathieu@468 247 alias -g '${1+"$@"}'='"$@"'
mathieu@468 248 setopt NO_GLOB_SUBST
mathieu@468 249 else
mathieu@468 250 case `(set -o) 2>/dev/null` in
mathieu@468 251 *posix*) set -o posix ;;
mathieu@468 252 esac
mathieu@468 253
mathieu@468 254 fi
mathieu@468 255
mathieu@468 256
mathieu@468 257 :
mathieu@468 258 _ASEOF
mathieu@468 259 }; then
mathieu@468 260 CONFIG_SHELL=$as_shell
mathieu@468 261 as_have_required=yes
mathieu@468 262 if { "$as_shell" 2> /dev/null <<\_ASEOF
mathieu@468 263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
mathieu@468 264 emulate sh
mathieu@468 265 NULLCMD=:
mathieu@468 266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
mathieu@468 267 # is contrary to our usage. Disable this feature.
mathieu@468 268 alias -g '${1+"$@"}'='"$@"'
mathieu@468 269 setopt NO_GLOB_SUBST
mathieu@468 270 else
mathieu@468 271 case `(set -o) 2>/dev/null` in
mathieu@468 272 *posix*) set -o posix ;;
mathieu@468 273 esac
mathieu@468 274
mathieu@468 275 fi
mathieu@468 276
mathieu@468 277
mathieu@468 278 :
mathieu@468 279 (as_func_return () {
mathieu@468 280 (exit $1)
mathieu@468 281 }
mathieu@468 282 as_func_success () {
mathieu@468 283 as_func_return 0
mathieu@468 284 }
mathieu@468 285 as_func_failure () {
mathieu@468 286 as_func_return 1
mathieu@468 287 }
mathieu@468 288 as_func_ret_success () {
mathieu@468 289 return 0
mathieu@468 290 }
mathieu@468 291 as_func_ret_failure () {
mathieu@468 292 return 1
mathieu@468 293 }
mathieu@468 294
mathieu@468 295 exitcode=0
mathieu@468 296 if as_func_success; then
mathieu@468 297 :
mathieu@468 298 else
mathieu@468 299 exitcode=1
mathieu@468 300 echo as_func_success failed.
mathieu@468 301 fi
mathieu@468 302
mathieu@468 303 if as_func_failure; then
mathieu@468 304 exitcode=1
mathieu@468 305 echo as_func_failure succeeded.
mathieu@468 306 fi
mathieu@468 307
mathieu@468 308 if as_func_ret_success; then
mathieu@468 309 :
mathieu@468 310 else
mathieu@468 311 exitcode=1
mathieu@468 312 echo as_func_ret_success failed.
mathieu@468 313 fi
mathieu@468 314
mathieu@468 315 if as_func_ret_failure; then
mathieu@468 316 exitcode=1
mathieu@468 317 echo as_func_ret_failure succeeded.
mathieu@468 318 fi
mathieu@468 319
mathieu@468 320 if ( set x; as_func_ret_success y && test x = "$1" ); then
mathieu@468 321 :
mathieu@468 322 else
mathieu@468 323 exitcode=1
mathieu@468 324 echo positional parameters were not saved.
mathieu@468 325 fi
mathieu@468 326
mathieu@468 327 test $exitcode = 0) || { (exit 1); exit 1; }
mathieu@468 328
mathieu@468 329 (
mathieu@468 330 as_lineno_1=$LINENO
mathieu@468 331 as_lineno_2=$LINENO
mathieu@468 332 test "x$as_lineno_1" != "x$as_lineno_2" &&
mathieu@468 333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
mathieu@468 334
mathieu@468 335 _ASEOF
mathieu@468 336 }; then
mathieu@468 337 break
mathieu@468 338 fi
mathieu@468 339
mathieu@468 340 fi
mathieu@468 341
mathieu@468 342 done
mathieu@468 343
mathieu@468 344 if test "x$CONFIG_SHELL" != x; then
mathieu@468 345 for as_var in BASH_ENV ENV
mathieu@468 346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
mathieu@468 347 done
mathieu@468 348 export CONFIG_SHELL
mathieu@468 349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
mathieu@468 350 fi
mathieu@468 351
mathieu@468 352
mathieu@468 353 if test $as_have_required = no; then
mathieu@468 354 echo This script requires a shell more modern than all the
mathieu@468 355 echo shells that I found on your system. Please install a
mathieu@468 356 echo modern shell, or manually run the script under such a
mathieu@468 357 echo shell if you do have one.
mathieu@468 358 { (exit 1); exit 1; }
mathieu@468 359 fi
mathieu@468 360
mathieu@468 361
mathieu@468 362 fi
mathieu@468 363
mathieu@468 364 fi
mathieu@468 365
mathieu@468 366
mathieu@468 367
mathieu@468 368 (eval "as_func_return () {
mathieu@468 369 (exit \$1)
mathieu@468 370 }
mathieu@468 371 as_func_success () {
mathieu@468 372 as_func_return 0
mathieu@468 373 }
mathieu@468 374 as_func_failure () {
mathieu@468 375 as_func_return 1
mathieu@468 376 }
mathieu@468 377 as_func_ret_success () {
mathieu@468 378 return 0
mathieu@468 379 }
mathieu@468 380 as_func_ret_failure () {
mathieu@468 381 return 1
mathieu@468 382 }
mathieu@468 383
mathieu@468 384 exitcode=0
mathieu@468 385 if as_func_success; then
mathieu@468 386 :
mathieu@468 387 else
mathieu@468 388 exitcode=1
mathieu@468 389 echo as_func_success failed.
mathieu@468 390 fi
mathieu@468 391
mathieu@468 392 if as_func_failure; then
mathieu@468 393 exitcode=1
mathieu@468 394 echo as_func_failure succeeded.
mathieu@468 395 fi
mathieu@468 396
mathieu@468 397 if as_func_ret_success; then
mathieu@468 398 :
mathieu@468 399 else
mathieu@468 400 exitcode=1
mathieu@468 401 echo as_func_ret_success failed.
mathieu@468 402 fi
mathieu@468 403
mathieu@468 404 if as_func_ret_failure; then
mathieu@468 405 exitcode=1
mathieu@468 406 echo as_func_ret_failure succeeded.
mathieu@468 407 fi
mathieu@468 408
mathieu@468 409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
mathieu@468 410 :
mathieu@468 411 else
mathieu@468 412 exitcode=1
mathieu@468 413 echo positional parameters were not saved.
mathieu@468 414 fi
mathieu@468 415
mathieu@468 416 test \$exitcode = 0") || {
mathieu@468 417 echo No shell found that supports shell functions.
mathieu@468 418 echo Please tell autoconf@gnu.org about your system,
mathieu@468 419 echo including any error possibly output before this
mathieu@468 420 echo message
mathieu@468 421 }
mathieu@468 422
mathieu@468 423
mathieu@468 424
mathieu@468 425 as_lineno_1=$LINENO
mathieu@468 426 as_lineno_2=$LINENO
mathieu@468 427 test "x$as_lineno_1" != "x$as_lineno_2" &&
mathieu@468 428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
mathieu@468 429
mathieu@468 430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
mathieu@468 431 # uniformly replaced by the line number. The first 'sed' inserts a
mathieu@468 432 # line-number line after each line using $LINENO; the second 'sed'
mathieu@468 433 # does the real work. The second script uses 'N' to pair each
mathieu@468 434 # line-number line with the line containing $LINENO, and appends
mathieu@468 435 # trailing '-' during substitution so that $LINENO is not a special
mathieu@468 436 # case at line end.
mathieu@468 437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
mathieu@468 438 # scripts with optimization help from Paolo Bonzini. Blame Lee
mathieu@468 439 # E. McMahon (1931-1989) for sed's syntax. :-)
Chris@350 440 sed -n '
Chris@350 441 p
Chris@350 442 /[$]LINENO/=
Chris@350 443 ' <$as_myself |
Chris@350 444 sed '
Chris@350 445 s/[$]LINENO.*/&-/
Chris@350 446 t lineno
Chris@350 447 b
Chris@350 448 :lineno
Chris@350 449 N
Chris@350 450 :loop
Chris@350 451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Chris@350 452 t loop
Chris@350 453 s/-\n.*//
Chris@350 454 ' >$as_me.lineno &&
Chris@350 455 chmod +x "$as_me.lineno" ||
mathieu@468 456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
mathieu@468 457 { (exit 1); exit 1; }; }
Chris@350 458
Chris@350 459 # Don't try to exec as it changes $[0], causing all sort of problems
Chris@350 460 # (the dirname of $[0] is not the place where we might find the
Chris@350 461 # original and so on. Autoconf is especially sensitive to this).
Chris@350 462 . "./$as_me.lineno"
Chris@350 463 # Exit status is that of the last command.
Chris@350 464 exit
Chris@350 465 }
Chris@350 466
mathieu@468 467
mathieu@468 468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
mathieu@468 469 as_dirname=dirname
mathieu@468 470 else
mathieu@468 471 as_dirname=false
mathieu@468 472 fi
mathieu@468 473
Chris@350 474 ECHO_C= ECHO_N= ECHO_T=
mathieu@468 475 case `echo -n x` in
Chris@350 476 -n*)
mathieu@468 477 case `echo 'x\c'` in
Chris@350 478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
mathieu@468 479 *) ECHO_C='\c';;
Chris@350 480 esac;;
Chris@350 481 *)
Chris@350 482 ECHO_N='-n';;
Chris@350 483 esac
Chris@350 484
mathieu@468 485 if expr a : '\(a\)' >/dev/null 2>&1 &&
mathieu@468 486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mathieu@468 487 as_expr=expr
mathieu@468 488 else
mathieu@468 489 as_expr=false
mathieu@468 490 fi
mathieu@468 491
Chris@350 492 rm -f conf$$ conf$$.exe conf$$.file
Chris@350 493 if test -d conf$$.dir; then
Chris@350 494 rm -f conf$$.dir/conf$$.file
Chris@350 495 else
Chris@350 496 rm -f conf$$.dir
mathieu@468 497 mkdir conf$$.dir
mathieu@468 498 fi
mathieu@468 499 echo >conf$$.file
mathieu@468 500 if ln -s conf$$.file conf$$ 2>/dev/null; then
mathieu@468 501 as_ln_s='ln -s'
mathieu@468 502 # ... but there are two gotchas:
mathieu@468 503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
mathieu@468 504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
mathieu@468 505 # In both cases, we have to default to `cp -p'.
mathieu@468 506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Chris@350 507 as_ln_s='cp -p'
mathieu@468 508 elif ln conf$$.file conf$$ 2>/dev/null; then
mathieu@468 509 as_ln_s=ln
Chris@350 510 else
Chris@350 511 as_ln_s='cp -p'
Chris@350 512 fi
Chris@350 513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
Chris@350 514 rmdir conf$$.dir 2>/dev/null
Chris@350 515
Chris@350 516 if mkdir -p . 2>/dev/null; then
mathieu@468 517 as_mkdir_p=:
Chris@350 518 else
Chris@350 519 test -d ./-p && rmdir ./-p
Chris@350 520 as_mkdir_p=false
Chris@350 521 fi
Chris@350 522
Chris@350 523 if test -x / >/dev/null 2>&1; then
Chris@350 524 as_test_x='test -x'
Chris@350 525 else
Chris@350 526 if ls -dL / >/dev/null 2>&1; then
Chris@350 527 as_ls_L_option=L
Chris@350 528 else
Chris@350 529 as_ls_L_option=
Chris@350 530 fi
Chris@350 531 as_test_x='
Chris@350 532 eval sh -c '\''
Chris@350 533 if test -d "$1"; then
mathieu@468 534 test -d "$1/.";
Chris@350 535 else
mathieu@468 536 case $1 in
mathieu@468 537 -*)set "./$1";;
Chris@350 538 esac;
mathieu@468 539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
Chris@350 540 ???[sx]*):;;*)false;;esac;fi
Chris@350 541 '\'' sh
Chris@350 542 '
Chris@350 543 fi
Chris@350 544 as_executable_p=$as_test_x
Chris@350 545
Chris@350 546 # Sed expression to map a string onto a valid CPP name.
Chris@350 547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Chris@350 548
Chris@350 549 # Sed expression to map a string onto a valid variable name.
Chris@350 550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Chris@350 551
Chris@350 552
mathieu@468 553
mathieu@468 554 exec 7<&0 </dev/null 6>&1
Chris@350 555
Chris@350 556 # Name of the host.
mathieu@468 557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
Chris@350 558 # so uname gets run too.
Chris@350 559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@350 560
Chris@350 561 #
Chris@350 562 # Initializations.
Chris@350 563 #
Chris@350 564 ac_default_prefix=/usr/local
Chris@350 565 ac_clean_files=
Chris@350 566 ac_config_libobj_dir=.
Chris@350 567 LIBOBJS=
Chris@350 568 cross_compiling=no
Chris@350 569 subdirs=
Chris@350 570 MFLAGS=
Chris@350 571 MAKEFLAGS=
mathieu@468 572 SHELL=${CONFIG_SHELL-/bin/sh}
Chris@350 573
Chris@350 574 # Identity of this package.
Chris@351 575 PACKAGE_NAME='Sonic Visualiser'
Chris@351 576 PACKAGE_TARNAME='sonic-visualiser'
mathieu@468 577 PACKAGE_VERSION='1.9-kiosk-hg'
mathieu@468 578 PACKAGE_STRING='Sonic Visualiser 1.9-kiosk-hg'
Chris@350 579 PACKAGE_BUGREPORT='cannam@all-day-breakfast.com'
Chris@350 580
Chris@351 581 ac_unique_file="main/main.cpp"
Chris@350 582 # Factoring default headers for most tests.
Chris@350 583 ac_includes_default="\
Chris@350 584 #include <stdio.h>
Chris@350 585 #ifdef HAVE_SYS_TYPES_H
Chris@350 586 # include <sys/types.h>
Chris@350 587 #endif
Chris@350 588 #ifdef HAVE_SYS_STAT_H
Chris@350 589 # include <sys/stat.h>
Chris@350 590 #endif
Chris@350 591 #ifdef STDC_HEADERS
Chris@350 592 # include <stdlib.h>
Chris@350 593 # include <stddef.h>
Chris@350 594 #else
Chris@350 595 # ifdef HAVE_STDLIB_H
Chris@350 596 # include <stdlib.h>
Chris@350 597 # endif
Chris@350 598 #endif
Chris@350 599 #ifdef HAVE_STRING_H
Chris@350 600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Chris@350 601 # include <memory.h>
Chris@350 602 # endif
Chris@350 603 # include <string.h>
Chris@350 604 #endif
Chris@350 605 #ifdef HAVE_STRINGS_H
Chris@350 606 # include <strings.h>
Chris@350 607 #endif
Chris@350 608 #ifdef HAVE_INTTYPES_H
Chris@350 609 # include <inttypes.h>
Chris@350 610 #endif
Chris@350 611 #ifdef HAVE_STDINT_H
Chris@350 612 # include <stdint.h>
Chris@350 613 #endif
Chris@350 614 #ifdef HAVE_UNISTD_H
Chris@350 615 # include <unistd.h>
Chris@350 616 #endif"
Chris@350 617
mathieu@468 618 ac_subst_vars='SHELL
mathieu@468 619 PATH_SEPARATOR
mathieu@468 620 PACKAGE_NAME
mathieu@468 621 PACKAGE_TARNAME
mathieu@468 622 PACKAGE_VERSION
mathieu@468 623 PACKAGE_STRING
mathieu@468 624 PACKAGE_BUGREPORT
mathieu@468 625 exec_prefix
mathieu@468 626 prefix
mathieu@468 627 program_transform_name
mathieu@468 628 bindir
mathieu@468 629 sbindir
mathieu@468 630 libexecdir
mathieu@468 631 datarootdir
mathieu@468 632 datadir
mathieu@468 633 sysconfdir
mathieu@468 634 sharedstatedir
mathieu@468 635 localstatedir
mathieu@468 636 includedir
mathieu@468 637 oldincludedir
mathieu@468 638 docdir
mathieu@468 639 infodir
mathieu@468 640 htmldir
mathieu@468 641 dvidir
mathieu@468 642 pdfdir
mathieu@468 643 psdir
mathieu@468 644 libdir
mathieu@468 645 localedir
mathieu@468 646 mandir
mathieu@468 647 DEFS
mathieu@468 648 ECHO_C
mathieu@468 649 ECHO_N
mathieu@468 650 ECHO_T
mathieu@468 651 LIBS
mathieu@468 652 build_alias
mathieu@468 653 host_alias
mathieu@468 654 target_alias
mathieu@468 655 CC
mathieu@468 656 CFLAGS
mathieu@468 657 LDFLAGS
mathieu@468 658 CPPFLAGS
mathieu@468 659 ac_ct_CC
mathieu@468 660 EXEEXT
mathieu@468 661 OBJEXT
mathieu@468 662 CXX
mathieu@468 663 CXXFLAGS
mathieu@468 664 ac_ct_CXX
mathieu@468 665 INSTALL_PROGRAM
mathieu@468 666 INSTALL_SCRIPT
mathieu@468 667 INSTALL_DATA
mathieu@468 668 CXXCPP
mathieu@468 669 GREP
mathieu@468 670 EGREP
mathieu@468 671 QMAKE
mathieu@468 672 PERL
mathieu@468 673 XARGS
mathieu@468 674 MAKEDEPEND
mathieu@468 675 SHA1SUM
mathieu@468 676 CUT
mathieu@468 677 CXXFLAGS_MINIMAL
mathieu@468 678 HAVES
mathieu@468 679 QMAKE_CONFIG
mathieu@468 680 CODENAME
Chris@350 681 LIBOBJS
mathieu@468 682 LTLIBOBJS'
Chris@350 683 ac_subst_files=''
Chris@350 684 ac_precious_vars='build_alias
Chris@350 685 host_alias
Chris@350 686 target_alias
Chris@350 687 CC
Chris@350 688 CFLAGS
Chris@350 689 LDFLAGS
Chris@350 690 LIBS
Chris@350 691 CPPFLAGS
Chris@350 692 CXX
Chris@350 693 CXXFLAGS
Chris@350 694 CCC
mathieu@480 695 CXXCPP'
Chris@350 696
Chris@350 697
Chris@350 698 # Initialize some variables set by options.
Chris@350 699 ac_init_help=
Chris@350 700 ac_init_version=false
Chris@350 701 # The variables have the same names as the options, with
Chris@350 702 # dashes changed to underlines.
Chris@350 703 cache_file=/dev/null
Chris@350 704 exec_prefix=NONE
Chris@350 705 no_create=
Chris@350 706 no_recursion=
Chris@350 707 prefix=NONE
Chris@350 708 program_prefix=NONE
Chris@350 709 program_suffix=NONE
Chris@350 710 program_transform_name=s,x,x,
Chris@350 711 silent=
Chris@350 712 site=
Chris@350 713 srcdir=
Chris@350 714 verbose=
Chris@350 715 x_includes=NONE
Chris@350 716 x_libraries=NONE
Chris@350 717
Chris@350 718 # Installation directory options.
Chris@350 719 # These are left unexpanded so users can "make install exec_prefix=/foo"
Chris@350 720 # and all the variables that are supposed to be based on exec_prefix
Chris@350 721 # by default will actually change.
Chris@350 722 # Use braces instead of parens because sh, perl, etc. also accept them.
Chris@350 723 # (The list follows the same order as the GNU Coding Standards.)
Chris@350 724 bindir='${exec_prefix}/bin'
Chris@350 725 sbindir='${exec_prefix}/sbin'
Chris@350 726 libexecdir='${exec_prefix}/libexec'
Chris@350 727 datarootdir='${prefix}/share'
Chris@350 728 datadir='${datarootdir}'
Chris@350 729 sysconfdir='${prefix}/etc'
Chris@350 730 sharedstatedir='${prefix}/com'
Chris@350 731 localstatedir='${prefix}/var'
Chris@350 732 includedir='${prefix}/include'
Chris@350 733 oldincludedir='/usr/include'
Chris@350 734 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
Chris@350 735 infodir='${datarootdir}/info'
Chris@350 736 htmldir='${docdir}'
Chris@350 737 dvidir='${docdir}'
Chris@350 738 pdfdir='${docdir}'
Chris@350 739 psdir='${docdir}'
Chris@350 740 libdir='${exec_prefix}/lib'
Chris@350 741 localedir='${datarootdir}/locale'
Chris@350 742 mandir='${datarootdir}/man'
Chris@350 743
Chris@350 744 ac_prev=
Chris@350 745 ac_dashdash=
Chris@350 746 for ac_option
Chris@350 747 do
Chris@350 748 # If the previous option needs an argument, assign it.
Chris@350 749 if test -n "$ac_prev"; then
Chris@350 750 eval $ac_prev=\$ac_option
Chris@350 751 ac_prev=
Chris@350 752 continue
Chris@350 753 fi
Chris@350 754
Chris@350 755 case $ac_option in
mathieu@468 756 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
mathieu@468 757 *) ac_optarg=yes ;;
Chris@350 758 esac
Chris@350 759
Chris@350 760 # Accept the important Cygnus configure options, so we can diagnose typos.
Chris@350 761
Chris@350 762 case $ac_dashdash$ac_option in
Chris@350 763 --)
Chris@350 764 ac_dashdash=yes ;;
Chris@350 765
Chris@350 766 -bindir | --bindir | --bindi | --bind | --bin | --bi)
Chris@350 767 ac_prev=bindir ;;
Chris@350 768 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Chris@350 769 bindir=$ac_optarg ;;
Chris@350 770
Chris@350 771 -build | --build | --buil | --bui | --bu)
Chris@350 772 ac_prev=build_alias ;;
Chris@350 773 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Chris@350 774 build_alias=$ac_optarg ;;
Chris@350 775
Chris@350 776 -cache-file | --cache-file | --cache-fil | --cache-fi \
Chris@350 777 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
Chris@350 778 ac_prev=cache_file ;;
Chris@350 779 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
Chris@350 780 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Chris@350 781 cache_file=$ac_optarg ;;
Chris@350 782
Chris@350 783 --config-cache | -C)
Chris@350 784 cache_file=config.cache ;;
Chris@350 785
Chris@350 786 -datadir | --datadir | --datadi | --datad)
Chris@350 787 ac_prev=datadir ;;
Chris@350 788 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Chris@350 789 datadir=$ac_optarg ;;
Chris@350 790
Chris@350 791 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
Chris@350 792 | --dataroo | --dataro | --datar)
Chris@350 793 ac_prev=datarootdir ;;
Chris@350 794 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
Chris@350 795 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
Chris@350 796 datarootdir=$ac_optarg ;;
Chris@350 797
Chris@350 798 -disable-* | --disable-*)
mathieu@468 799 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Chris@350 800 # Reject names that are not valid shell variable names.
mathieu@468 801 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
mathieu@468 802 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
mathieu@468 803 { (exit 1); exit 1; }; }
mathieu@468 804 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
mathieu@468 805 eval enable_$ac_feature=no ;;
Chris@350 806
Chris@350 807 -docdir | --docdir | --docdi | --doc | --do)
Chris@350 808 ac_prev=docdir ;;
Chris@350 809 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
Chris@350 810 docdir=$ac_optarg ;;
Chris@350 811
Chris@350 812 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
Chris@350 813 ac_prev=dvidir ;;
Chris@350 814 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
Chris@350 815 dvidir=$ac_optarg ;;
Chris@350 816
Chris@350 817 -enable-* | --enable-*)
mathieu@468 818 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Chris@350 819 # Reject names that are not valid shell variable names.
mathieu@468 820 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
mathieu@468 821 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
mathieu@468 822 { (exit 1); exit 1; }; }
mathieu@468 823 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
mathieu@468 824 eval enable_$ac_feature=\$ac_optarg ;;
Chris@350 825
Chris@350 826 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
Chris@350 827 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
Chris@350 828 | --exec | --exe | --ex)
Chris@350 829 ac_prev=exec_prefix ;;
Chris@350 830 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
Chris@350 831 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
Chris@350 832 | --exec=* | --exe=* | --ex=*)
Chris@350 833 exec_prefix=$ac_optarg ;;
Chris@350 834
Chris@350 835 -gas | --gas | --ga | --g)
Chris@350 836 # Obsolete; use --with-gas.
Chris@350 837 with_gas=yes ;;
Chris@350 838
Chris@350 839 -help | --help | --hel | --he | -h)
Chris@350 840 ac_init_help=long ;;
Chris@350 841 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
Chris@350 842 ac_init_help=recursive ;;
Chris@350 843 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
Chris@350 844 ac_init_help=short ;;
Chris@350 845
Chris@350 846 -host | --host | --hos | --ho)
Chris@350 847 ac_prev=host_alias ;;
Chris@350 848 -host=* | --host=* | --hos=* | --ho=*)
Chris@350 849 host_alias=$ac_optarg ;;
Chris@350 850
Chris@350 851 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
Chris@350 852 ac_prev=htmldir ;;
Chris@350 853 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
Chris@350 854 | --ht=*)
Chris@350 855 htmldir=$ac_optarg ;;
Chris@350 856
Chris@350 857 -includedir | --includedir | --includedi | --included | --include \
Chris@350 858 | --includ | --inclu | --incl | --inc)
Chris@350 859 ac_prev=includedir ;;
Chris@350 860 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
Chris@350 861 | --includ=* | --inclu=* | --incl=* | --inc=*)
Chris@350 862 includedir=$ac_optarg ;;
Chris@350 863
Chris@350 864 -infodir | --infodir | --infodi | --infod | --info | --inf)
Chris@350 865 ac_prev=infodir ;;
Chris@350 866 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Chris@350 867 infodir=$ac_optarg ;;
Chris@350 868
Chris@350 869 -libdir | --libdir | --libdi | --libd)
Chris@350 870 ac_prev=libdir ;;
Chris@350 871 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Chris@350 872 libdir=$ac_optarg ;;
Chris@350 873
Chris@350 874 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
Chris@350 875 | --libexe | --libex | --libe)
Chris@350 876 ac_prev=libexecdir ;;
Chris@350 877 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
Chris@350 878 | --libexe=* | --libex=* | --libe=*)
Chris@350 879 libexecdir=$ac_optarg ;;
Chris@350 880
Chris@350 881 -localedir | --localedir | --localedi | --localed | --locale)
Chris@350 882 ac_prev=localedir ;;
Chris@350 883 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
Chris@350 884 localedir=$ac_optarg ;;
Chris@350 885
Chris@350 886 -localstatedir | --localstatedir | --localstatedi | --localstated \
Chris@350 887 | --localstate | --localstat | --localsta | --localst | --locals)
Chris@350 888 ac_prev=localstatedir ;;
Chris@350 889 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Chris@350 890 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Chris@350 891 localstatedir=$ac_optarg ;;
Chris@350 892
Chris@350 893 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
Chris@350 894 ac_prev=mandir ;;
Chris@350 895 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Chris@350 896 mandir=$ac_optarg ;;
Chris@350 897
Chris@350 898 -nfp | --nfp | --nf)
Chris@350 899 # Obsolete; use --without-fp.
Chris@350 900 with_fp=no ;;
Chris@350 901
Chris@350 902 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Chris@350 903 | --no-cr | --no-c | -n)
Chris@350 904 no_create=yes ;;
Chris@350 905
Chris@350 906 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
Chris@350 907 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
Chris@350 908 no_recursion=yes ;;
Chris@350 909
Chris@350 910 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
Chris@350 911 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
Chris@350 912 | --oldin | --oldi | --old | --ol | --o)
Chris@350 913 ac_prev=oldincludedir ;;
Chris@350 914 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
Chris@350 915 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
Chris@350 916 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Chris@350 917 oldincludedir=$ac_optarg ;;
Chris@350 918
Chris@350 919 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
Chris@350 920 ac_prev=prefix ;;
Chris@350 921 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Chris@350 922 prefix=$ac_optarg ;;
Chris@350 923
Chris@350 924 -program-prefix | --program-prefix | --program-prefi | --program-pref \
Chris@350 925 | --program-pre | --program-pr | --program-p)
Chris@350 926 ac_prev=program_prefix ;;
Chris@350 927 -program-prefix=* | --program-prefix=* | --program-prefi=* \
Chris@350 928 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Chris@350 929 program_prefix=$ac_optarg ;;
Chris@350 930
Chris@350 931 -program-suffix | --program-suffix | --program-suffi | --program-suff \
Chris@350 932 | --program-suf | --program-su | --program-s)
Chris@350 933 ac_prev=program_suffix ;;
Chris@350 934 -program-suffix=* | --program-suffix=* | --program-suffi=* \
Chris@350 935 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Chris@350 936 program_suffix=$ac_optarg ;;
Chris@350 937
Chris@350 938 -program-transform-name | --program-transform-name \
Chris@350 939 | --program-transform-nam | --program-transform-na \
Chris@350 940 | --program-transform-n | --program-transform- \
Chris@350 941 | --program-transform | --program-transfor \
Chris@350 942 | --program-transfo | --program-transf \
Chris@350 943 | --program-trans | --program-tran \
Chris@350 944 | --progr-tra | --program-tr | --program-t)
Chris@350 945 ac_prev=program_transform_name ;;
Chris@350 946 -program-transform-name=* | --program-transform-name=* \
Chris@350 947 | --program-transform-nam=* | --program-transform-na=* \
Chris@350 948 | --program-transform-n=* | --program-transform-=* \
Chris@350 949 | --program-transform=* | --program-transfor=* \
Chris@350 950 | --program-transfo=* | --program-transf=* \
Chris@350 951 | --program-trans=* | --program-tran=* \
Chris@350 952 | --progr-tra=* | --program-tr=* | --program-t=*)
Chris@350 953 program_transform_name=$ac_optarg ;;
Chris@350 954
Chris@350 955 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
Chris@350 956 ac_prev=pdfdir ;;
Chris@350 957 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
Chris@350 958 pdfdir=$ac_optarg ;;
Chris@350 959
Chris@350 960 -psdir | --psdir | --psdi | --psd | --ps)
Chris@350 961 ac_prev=psdir ;;
Chris@350 962 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
Chris@350 963 psdir=$ac_optarg ;;
Chris@350 964
Chris@350 965 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@350 966 | -silent | --silent | --silen | --sile | --sil)
Chris@350 967 silent=yes ;;
Chris@350 968
Chris@350 969 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
Chris@350 970 ac_prev=sbindir ;;
Chris@350 971 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
Chris@350 972 | --sbi=* | --sb=*)
Chris@350 973 sbindir=$ac_optarg ;;
Chris@350 974
Chris@350 975 -sharedstatedir | --sharedstatedir | --sharedstatedi \
Chris@350 976 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
Chris@350 977 | --sharedst | --shareds | --shared | --share | --shar \
Chris@350 978 | --sha | --sh)
Chris@350 979 ac_prev=sharedstatedir ;;
Chris@350 980 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
Chris@350 981 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
Chris@350 982 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
Chris@350 983 | --sha=* | --sh=*)
Chris@350 984 sharedstatedir=$ac_optarg ;;
Chris@350 985
Chris@350 986 -site | --site | --sit)
Chris@350 987 ac_prev=site ;;
Chris@350 988 -site=* | --site=* | --sit=*)
Chris@350 989 site=$ac_optarg ;;
Chris@350 990
Chris@350 991 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
Chris@350 992 ac_prev=srcdir ;;
Chris@350 993 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Chris@350 994 srcdir=$ac_optarg ;;
Chris@350 995
Chris@350 996 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
Chris@350 997 | --syscon | --sysco | --sysc | --sys | --sy)
Chris@350 998 ac_prev=sysconfdir ;;
Chris@350 999 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
Chris@350 1000 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Chris@350 1001 sysconfdir=$ac_optarg ;;
Chris@350 1002
Chris@350 1003 -target | --target | --targe | --targ | --tar | --ta | --t)
Chris@350 1004 ac_prev=target_alias ;;
Chris@350 1005 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Chris@350 1006 target_alias=$ac_optarg ;;
Chris@350 1007
Chris@350 1008 -v | -verbose | --verbose | --verbos | --verbo | --verb)
Chris@350 1009 verbose=yes ;;
Chris@350 1010
Chris@350 1011 -version | --version | --versio | --versi | --vers | -V)
Chris@350 1012 ac_init_version=: ;;
Chris@350 1013
Chris@350 1014 -with-* | --with-*)
mathieu@468 1015 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Chris@350 1016 # Reject names that are not valid shell variable names.
mathieu@468 1017 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
mathieu@468 1018 { echo "$as_me: error: invalid package name: $ac_package" >&2
mathieu@468 1019 { (exit 1); exit 1; }; }
mathieu@468 1020 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
mathieu@468 1021 eval with_$ac_package=\$ac_optarg ;;
Chris@350 1022
Chris@350 1023 -without-* | --without-*)
mathieu@468 1024 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Chris@350 1025 # Reject names that are not valid shell variable names.
mathieu@468 1026 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
mathieu@468 1027 { echo "$as_me: error: invalid package name: $ac_package" >&2
mathieu@468 1028 { (exit 1); exit 1; }; }
mathieu@468 1029 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
mathieu@468 1030 eval with_$ac_package=no ;;
Chris@350 1031
Chris@350 1032 --x)
Chris@350 1033 # Obsolete; use --with-x.
Chris@350 1034 with_x=yes ;;
Chris@350 1035
Chris@350 1036 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
Chris@350 1037 | --x-incl | --x-inc | --x-in | --x-i)
Chris@350 1038 ac_prev=x_includes ;;
Chris@350 1039 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
Chris@350 1040 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Chris@350 1041 x_includes=$ac_optarg ;;
Chris@350 1042
Chris@350 1043 -x-libraries | --x-libraries | --x-librarie | --x-librari \
Chris@350 1044 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
Chris@350 1045 ac_prev=x_libraries ;;
Chris@350 1046 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
Chris@350 1047 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Chris@350 1048 x_libraries=$ac_optarg ;;
Chris@350 1049
mathieu@468 1050 -*) { echo "$as_me: error: unrecognized option: $ac_option
mathieu@468 1051 Try \`$0 --help' for more information." >&2
mathieu@468 1052 { (exit 1); exit 1; }; }
Chris@350 1053 ;;
Chris@350 1054
Chris@350 1055 *=*)
Chris@350 1056 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
Chris@350 1057 # Reject names that are not valid shell variable names.
mathieu@468 1058 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
mathieu@468 1059 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
mathieu@468 1060 { (exit 1); exit 1; }; }
Chris@350 1061 eval $ac_envvar=\$ac_optarg
Chris@350 1062 export $ac_envvar ;;
Chris@350 1063
Chris@350 1064 *)
Chris@350 1065 # FIXME: should be removed in autoconf 3.0.
mathieu@468 1066 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Chris@350 1067 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
mathieu@468 1068 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Chris@475 1069 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Chris@350 1070 ;;
Chris@350 1071
Chris@350 1072 esac
Chris@350 1073 done
Chris@350 1074
Chris@350 1075 if test -n "$ac_prev"; then
Chris@350 1076 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
mathieu@468 1077 { echo "$as_me: error: missing argument to $ac_option" >&2
mathieu@468 1078 { (exit 1); exit 1; }; }
mathieu@468 1079 fi
mathieu@468 1080
mathieu@468 1081 # Be sure to have absolute directory names.
Chris@350 1082 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
Chris@350 1083 datadir sysconfdir sharedstatedir localstatedir includedir \
Chris@350 1084 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Chris@350 1085 libdir localedir mandir
Chris@350 1086 do
Chris@350 1087 eval ac_val=\$$ac_var
Chris@350 1088 case $ac_val in
Chris@350 1089 [\\/$]* | ?:[\\/]* ) continue;;
Chris@350 1090 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Chris@350 1091 esac
mathieu@468 1092 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
mathieu@468 1093 { (exit 1); exit 1; }; }
Chris@350 1094 done
Chris@350 1095
Chris@350 1096 # There might be people who depend on the old broken behavior: `$host'
Chris@350 1097 # used to hold the argument of --host etc.
Chris@350 1098 # FIXME: To remove some day.
Chris@350 1099 build=$build_alias
Chris@350 1100 host=$host_alias
Chris@350 1101 target=$target_alias
Chris@350 1102
Chris@350 1103 # FIXME: To remove some day.
Chris@350 1104 if test "x$host_alias" != x; then
Chris@350 1105 if test "x$build_alias" = x; then
Chris@350 1106 cross_compiling=maybe
mathieu@468 1107 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
mathieu@468 1108 If a cross compiler is detected then cross compile mode will be used." >&2
Chris@350 1109 elif test "x$build_alias" != "x$host_alias"; then
Chris@350 1110 cross_compiling=yes
Chris@350 1111 fi
Chris@350 1112 fi
Chris@350 1113
Chris@350 1114 ac_tool_prefix=
Chris@350 1115 test -n "$host_alias" && ac_tool_prefix=$host_alias-
Chris@350 1116
Chris@350 1117 test "$silent" = yes && exec 6>/dev/null
Chris@350 1118
Chris@350 1119
Chris@350 1120 ac_pwd=`pwd` && test -n "$ac_pwd" &&
Chris@350 1121 ac_ls_di=`ls -di .` &&
Chris@350 1122 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
mathieu@468 1123 { echo "$as_me: error: Working directory cannot be determined" >&2
mathieu@468 1124 { (exit 1); exit 1; }; }
Chris@350 1125 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
mathieu@468 1126 { echo "$as_me: error: pwd does not report name of working directory" >&2
mathieu@468 1127 { (exit 1); exit 1; }; }
Chris@350 1128
Chris@350 1129
Chris@350 1130 # Find the source files, if location was not specified.
Chris@350 1131 if test -z "$srcdir"; then
Chris@350 1132 ac_srcdir_defaulted=yes
Chris@350 1133 # Try the directory containing this script, then the parent directory.
mathieu@468 1134 ac_confdir=`$as_dirname -- "$0" ||
mathieu@468 1135 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mathieu@468 1136 X"$0" : 'X\(//\)[^/]' \| \
mathieu@468 1137 X"$0" : 'X\(//\)$' \| \
mathieu@468 1138 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
mathieu@468 1139 echo X"$0" |
Chris@350 1140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@350 1141 s//\1/
Chris@350 1142 q
Chris@350 1143 }
Chris@350 1144 /^X\(\/\/\)[^/].*/{
Chris@350 1145 s//\1/
Chris@350 1146 q
Chris@350 1147 }
Chris@350 1148 /^X\(\/\/\)$/{
Chris@350 1149 s//\1/
Chris@350 1150 q
Chris@350 1151 }
Chris@350 1152 /^X\(\/\).*/{
Chris@350 1153 s//\1/
Chris@350 1154 q
Chris@350 1155 }
Chris@350 1156 s/.*/./; q'`
Chris@350 1157 srcdir=$ac_confdir
Chris@350 1158 if test ! -r "$srcdir/$ac_unique_file"; then
Chris@350 1159 srcdir=..
Chris@350 1160 fi
Chris@350 1161 else
Chris@350 1162 ac_srcdir_defaulted=no
Chris@350 1163 fi
Chris@350 1164 if test ! -r "$srcdir/$ac_unique_file"; then
Chris@350 1165 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
mathieu@468 1166 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
mathieu@468 1167 { (exit 1); exit 1; }; }
Chris@350 1168 fi
Chris@350 1169 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
Chris@350 1170 ac_abs_confdir=`(
mathieu@468 1171 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
mathieu@468 1172 { (exit 1); exit 1; }; }
Chris@350 1173 pwd)`
Chris@350 1174 # When building in place, set srcdir=.
Chris@350 1175 if test "$ac_abs_confdir" = "$ac_pwd"; then
Chris@350 1176 srcdir=.
Chris@350 1177 fi
Chris@350 1178 # Remove unnecessary trailing slashes from srcdir.
Chris@350 1179 # Double slashes in file names in object file debugging info
Chris@350 1180 # mess up M-x gdb in Emacs.
Chris@350 1181 case $srcdir in
Chris@350 1182 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
Chris@350 1183 esac
Chris@350 1184 for ac_var in $ac_precious_vars; do
Chris@350 1185 eval ac_env_${ac_var}_set=\${${ac_var}+set}
Chris@350 1186 eval ac_env_${ac_var}_value=\$${ac_var}
Chris@350 1187 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
Chris@350 1188 eval ac_cv_env_${ac_var}_value=\$${ac_var}
Chris@350 1189 done
Chris@350 1190
Chris@350 1191 #
Chris@350 1192 # Report the --help message.
Chris@350 1193 #
Chris@350 1194 if test "$ac_init_help" = "long"; then
Chris@350 1195 # Omit some internal or obsolete options to make the list less imposing.
Chris@350 1196 # This message is too long to be a string in the A/UX 3.1 sh.
Chris@350 1197 cat <<_ACEOF
mathieu@468 1198 \`configure' configures Sonic Visualiser 1.9-kiosk-hg to adapt to many kinds of systems.
Chris@350 1199
Chris@350 1200 Usage: $0 [OPTION]... [VAR=VALUE]...
Chris@350 1201
Chris@350 1202 To assign environment variables (e.g., CC, CFLAGS...), specify them as
Chris@350 1203 VAR=VALUE. See below for descriptions of some of the useful variables.
Chris@350 1204
Chris@350 1205 Defaults for the options are specified in brackets.
Chris@350 1206
Chris@350 1207 Configuration:
Chris@350 1208 -h, --help display this help and exit
Chris@350 1209 --help=short display options specific to this package
Chris@350 1210 --help=recursive display the short help of all the included packages
Chris@350 1211 -V, --version display version information and exit
mathieu@468 1212 -q, --quiet, --silent do not print \`checking...' messages
Chris@350 1213 --cache-file=FILE cache test results in FILE [disabled]
Chris@350 1214 -C, --config-cache alias for \`--cache-file=config.cache'
Chris@350 1215 -n, --no-create do not create output files
Chris@350 1216 --srcdir=DIR find the sources in DIR [configure dir or \`..']
Chris@350 1217
Chris@350 1218 Installation directories:
Chris@350 1219 --prefix=PREFIX install architecture-independent files in PREFIX
mathieu@468 1220 [$ac_default_prefix]
Chris@350 1221 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
mathieu@468 1222 [PREFIX]
Chris@350 1223
Chris@350 1224 By default, \`make install' will install all the files in
Chris@350 1225 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
Chris@350 1226 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
Chris@350 1227 for instance \`--prefix=\$HOME'.
Chris@350 1228
Chris@350 1229 For better control, use the options below.
Chris@350 1230
Chris@350 1231 Fine tuning of the installation directories:
mathieu@468 1232 --bindir=DIR user executables [EPREFIX/bin]
mathieu@468 1233 --sbindir=DIR system admin executables [EPREFIX/sbin]
mathieu@468 1234 --libexecdir=DIR program executables [EPREFIX/libexec]
mathieu@468 1235 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
mathieu@468 1236 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
mathieu@468 1237 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
mathieu@468 1238 --libdir=DIR object code libraries [EPREFIX/lib]
mathieu@468 1239 --includedir=DIR C header files [PREFIX/include]
mathieu@468 1240 --oldincludedir=DIR C header files for non-gcc [/usr/include]
mathieu@468 1241 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
mathieu@468 1242 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
mathieu@468 1243 --infodir=DIR info documentation [DATAROOTDIR/info]
mathieu@468 1244 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
mathieu@468 1245 --mandir=DIR man documentation [DATAROOTDIR/man]
mathieu@468 1246 --docdir=DIR documentation root [DATAROOTDIR/doc/sonic-visualiser]
mathieu@468 1247 --htmldir=DIR html documentation [DOCDIR]
mathieu@468 1248 --dvidir=DIR dvi documentation [DOCDIR]
mathieu@468 1249 --pdfdir=DIR pdf documentation [DOCDIR]
mathieu@468 1250 --psdir=DIR ps documentation [DOCDIR]
Chris@350 1251 _ACEOF
Chris@350 1252
Chris@350 1253 cat <<\_ACEOF
Chris@350 1254 _ACEOF
Chris@350 1255 fi
Chris@350 1256
Chris@350 1257 if test -n "$ac_init_help"; then
Chris@350 1258 case $ac_init_help in
mathieu@468 1259 short | recursive ) echo "Configuration of Sonic Visualiser 1.9-kiosk-hg:";;
Chris@350 1260 esac
Chris@350 1261 cat <<\_ACEOF
Chris@350 1262
Chris@350 1263 Optional Features:
Chris@350 1264 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
Chris@350 1265 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Chris@350 1266 --enable-debug enable debug support [default=no]
Chris@350 1267
Chris@350 1268 Some influential environment variables:
Chris@350 1269 CC C compiler command
Chris@350 1270 CFLAGS C compiler flags
Chris@350 1271 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
Chris@350 1272 nonstandard directory <lib dir>
Chris@350 1273 LIBS libraries to pass to the linker, e.g. -l<library>
mathieu@468 1274 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Chris@350 1275 you have headers in a nonstandard directory <include dir>
Chris@350 1276 CXX C++ compiler command
Chris@350 1277 CXXFLAGS C++ compiler flags
Chris@350 1278 CXXCPP C++ preprocessor
Chris@350 1279
Chris@350 1280 Use these variables to override the choices made by `configure' or to help
Chris@350 1281 it to find libraries and programs with nonstandard names/locations.
Chris@350 1282
Chris@350 1283 Report bugs to <cannam@all-day-breakfast.com>.
Chris@350 1284 _ACEOF
Chris@350 1285 ac_status=$?
Chris@350 1286 fi
Chris@350 1287
Chris@350 1288 if test "$ac_init_help" = "recursive"; then
Chris@350 1289 # If there are subdirs, report their specific --help.
Chris@350 1290 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
mathieu@468 1291 test -d "$ac_dir" || continue
Chris@350 1292 ac_builddir=.
Chris@350 1293
Chris@350 1294 case "$ac_dir" in
Chris@350 1295 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@350 1296 *)
mathieu@468 1297 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Chris@350 1298 # A ".." for each directory in $ac_dir_suffix.
mathieu@468 1299 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Chris@350 1300 case $ac_top_builddir_sub in
Chris@350 1301 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@350 1302 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
Chris@350 1303 esac ;;
Chris@350 1304 esac
Chris@350 1305 ac_abs_top_builddir=$ac_pwd
Chris@350 1306 ac_abs_builddir=$ac_pwd$ac_dir_suffix
Chris@350 1307 # for backward compatibility:
Chris@350 1308 ac_top_builddir=$ac_top_build_prefix
Chris@350 1309
Chris@350 1310 case $srcdir in
Chris@350 1311 .) # We are building in place.
Chris@350 1312 ac_srcdir=.
Chris@350 1313 ac_top_srcdir=$ac_top_builddir_sub
Chris@350 1314 ac_abs_top_srcdir=$ac_pwd ;;
Chris@350 1315 [\\/]* | ?:[\\/]* ) # Absolute name.
Chris@350 1316 ac_srcdir=$srcdir$ac_dir_suffix;
Chris@350 1317 ac_top_srcdir=$srcdir
Chris@350 1318 ac_abs_top_srcdir=$srcdir ;;
Chris@350 1319 *) # Relative name.
Chris@350 1320 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
Chris@350 1321 ac_top_srcdir=$ac_top_build_prefix$srcdir
Chris@350 1322 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Chris@350 1323 esac
Chris@350 1324 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Chris@350 1325
Chris@350 1326 cd "$ac_dir" || { ac_status=$?; continue; }
Chris@350 1327 # Check for guested configure.
Chris@350 1328 if test -f "$ac_srcdir/configure.gnu"; then
Chris@350 1329 echo &&
Chris@350 1330 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
Chris@350 1331 elif test -f "$ac_srcdir/configure"; then
Chris@350 1332 echo &&
Chris@350 1333 $SHELL "$ac_srcdir/configure" --help=recursive
Chris@350 1334 else
mathieu@468 1335 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Chris@350 1336 fi || ac_status=$?
Chris@350 1337 cd "$ac_pwd" || { ac_status=$?; break; }
Chris@350 1338 done
Chris@350 1339 fi
Chris@350 1340
Chris@350 1341 test -n "$ac_init_help" && exit $ac_status
Chris@350 1342 if $ac_init_version; then
Chris@350 1343 cat <<\_ACEOF
mathieu@468 1344 Sonic Visualiser configure 1.9-kiosk-hg
mathieu@468 1345 generated by GNU Autoconf 2.61
mathieu@468 1346
mathieu@468 1347 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
mathieu@468 1348 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Chris@350 1349 This configure script is free software; the Free Software Foundation
Chris@350 1350 gives unlimited permission to copy, distribute and modify it.
Chris@350 1351 _ACEOF
Chris@350 1352 exit
Chris@350 1353 fi
Chris@350 1354 cat >config.log <<_ACEOF
Chris@350 1355 This file contains any messages produced by compilers while
Chris@350 1356 running configure, to aid debugging if configure makes a mistake.
Chris@350 1357
mathieu@468 1358 It was created by Sonic Visualiser $as_me 1.9-kiosk-hg, which was
mathieu@468 1359 generated by GNU Autoconf 2.61. Invocation command line was
Chris@350 1360
Chris@350 1361 $ $0 $@
Chris@350 1362
Chris@350 1363 _ACEOF
Chris@350 1364 exec 5>>config.log
Chris@350 1365 {
Chris@350 1366 cat <<_ASUNAME
Chris@350 1367 ## --------- ##
Chris@350 1368 ## Platform. ##
Chris@350 1369 ## --------- ##
Chris@350 1370
Chris@350 1371 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@350 1372 uname -m = `(uname -m) 2>/dev/null || echo unknown`
Chris@350 1373 uname -r = `(uname -r) 2>/dev/null || echo unknown`
Chris@350 1374 uname -s = `(uname -s) 2>/dev/null || echo unknown`
Chris@350 1375 uname -v = `(uname -v) 2>/dev/null || echo unknown`
Chris@350 1376
Chris@350 1377 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
Chris@350 1378 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
Chris@350 1379
Chris@350 1380 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
Chris@350 1381 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
Chris@350 1382 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Chris@350 1383 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Chris@350 1384 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
Chris@350 1385 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
Chris@350 1386 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
Chris@350 1387
Chris@350 1388 _ASUNAME
Chris@350 1389
Chris@350 1390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 1391 for as_dir in $PATH
Chris@350 1392 do
Chris@350 1393 IFS=$as_save_IFS
Chris@350 1394 test -z "$as_dir" && as_dir=.
mathieu@468 1395 echo "PATH: $as_dir"
mathieu@468 1396 done
Chris@350 1397 IFS=$as_save_IFS
Chris@350 1398
Chris@350 1399 } >&5
Chris@350 1400
Chris@350 1401 cat >&5 <<_ACEOF
Chris@350 1402
Chris@350 1403
Chris@350 1404 ## ----------- ##
Chris@350 1405 ## Core tests. ##
Chris@350 1406 ## ----------- ##
Chris@350 1407
Chris@350 1408 _ACEOF
Chris@350 1409
Chris@350 1410
Chris@350 1411 # Keep a trace of the command line.
Chris@350 1412 # Strip out --no-create and --no-recursion so they do not pile up.
Chris@350 1413 # Strip out --silent because we don't want to record it for future runs.
Chris@350 1414 # Also quote any args containing shell meta-characters.
Chris@350 1415 # Make two passes to allow for proper duplicate-argument suppression.
Chris@350 1416 ac_configure_args=
Chris@350 1417 ac_configure_args0=
Chris@350 1418 ac_configure_args1=
Chris@350 1419 ac_must_keep_next=false
Chris@350 1420 for ac_pass in 1 2
Chris@350 1421 do
Chris@350 1422 for ac_arg
Chris@350 1423 do
Chris@350 1424 case $ac_arg in
Chris@350 1425 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
Chris@350 1426 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@350 1427 | -silent | --silent | --silen | --sile | --sil)
Chris@350 1428 continue ;;
Chris@350 1429 *\'*)
mathieu@468 1430 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@350 1431 esac
Chris@350 1432 case $ac_pass in
mathieu@468 1433 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
Chris@350 1434 2)
mathieu@468 1435 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
Chris@350 1436 if test $ac_must_keep_next = true; then
Chris@350 1437 ac_must_keep_next=false # Got value, back to normal.
Chris@350 1438 else
Chris@350 1439 case $ac_arg in
Chris@350 1440 *=* | --config-cache | -C | -disable-* | --disable-* \
Chris@350 1441 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
Chris@350 1442 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
Chris@350 1443 | -with-* | --with-* | -without-* | --without-* | --x)
Chris@350 1444 case "$ac_configure_args0 " in
Chris@350 1445 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
Chris@350 1446 esac
Chris@350 1447 ;;
Chris@350 1448 -* ) ac_must_keep_next=true ;;
Chris@350 1449 esac
Chris@350 1450 fi
mathieu@468 1451 ac_configure_args="$ac_configure_args '$ac_arg'"
Chris@350 1452 ;;
Chris@350 1453 esac
Chris@350 1454 done
Chris@350 1455 done
mathieu@468 1456 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
mathieu@468 1457 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
Chris@350 1458
Chris@350 1459 # When interrupted or exit'd, cleanup temporary files, and complete
Chris@350 1460 # config.log. We remove comments because anyway the quotes in there
Chris@350 1461 # would cause problems or look ugly.
Chris@350 1462 # WARNING: Use '\'' to represent an apostrophe within the trap.
Chris@350 1463 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Chris@350 1464 trap 'exit_status=$?
Chris@350 1465 # Save into config.log some information that might help in debugging.
Chris@350 1466 {
Chris@350 1467 echo
Chris@350 1468
mathieu@468 1469 cat <<\_ASBOX
mathieu@468 1470 ## ---------------- ##
Chris@350 1471 ## Cache variables. ##
mathieu@468 1472 ## ---------------- ##
mathieu@468 1473 _ASBOX
Chris@350 1474 echo
Chris@350 1475 # The following way of writing the cache mishandles newlines in values,
Chris@350 1476 (
Chris@350 1477 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
Chris@350 1478 eval ac_val=\$$ac_var
Chris@350 1479 case $ac_val in #(
Chris@350 1480 *${as_nl}*)
Chris@350 1481 case $ac_var in #(
mathieu@468 1482 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
mathieu@468 1483 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Chris@350 1484 esac
Chris@350 1485 case $ac_var in #(
Chris@350 1486 _ | IFS | as_nl) ;; #(
mathieu@468 1487 *) $as_unset $ac_var ;;
Chris@350 1488 esac ;;
Chris@350 1489 esac
Chris@350 1490 done
Chris@350 1491 (set) 2>&1 |
Chris@350 1492 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
Chris@350 1493 *${as_nl}ac_space=\ *)
Chris@350 1494 sed -n \
Chris@350 1495 "s/'\''/'\''\\\\'\'''\''/g;
Chris@350 1496 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
Chris@350 1497 ;; #(
Chris@350 1498 *)
Chris@350 1499 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Chris@350 1500 ;;
Chris@350 1501 esac |
Chris@350 1502 sort
Chris@350 1503 )
Chris@350 1504 echo
Chris@350 1505
mathieu@468 1506 cat <<\_ASBOX
mathieu@468 1507 ## ----------------- ##
Chris@350 1508 ## Output variables. ##
mathieu@468 1509 ## ----------------- ##
mathieu@468 1510 _ASBOX
Chris@350 1511 echo
Chris@350 1512 for ac_var in $ac_subst_vars
Chris@350 1513 do
Chris@350 1514 eval ac_val=\$$ac_var
Chris@350 1515 case $ac_val in
mathieu@468 1516 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Chris@350 1517 esac
mathieu@468 1518 echo "$ac_var='\''$ac_val'\''"
Chris@350 1519 done | sort
Chris@350 1520 echo
Chris@350 1521
Chris@350 1522 if test -n "$ac_subst_files"; then
mathieu@468 1523 cat <<\_ASBOX
mathieu@468 1524 ## ------------------- ##
Chris@350 1525 ## File substitutions. ##
mathieu@468 1526 ## ------------------- ##
mathieu@468 1527 _ASBOX
Chris@350 1528 echo
Chris@350 1529 for ac_var in $ac_subst_files
Chris@350 1530 do
Chris@350 1531 eval ac_val=\$$ac_var
Chris@350 1532 case $ac_val in
mathieu@468 1533 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Chris@350 1534 esac
mathieu@468 1535 echo "$ac_var='\''$ac_val'\''"
Chris@350 1536 done | sort
Chris@350 1537 echo
Chris@350 1538 fi
Chris@350 1539
Chris@350 1540 if test -s confdefs.h; then
mathieu@468 1541 cat <<\_ASBOX
mathieu@468 1542 ## ----------- ##
Chris@350 1543 ## confdefs.h. ##
mathieu@468 1544 ## ----------- ##
mathieu@468 1545 _ASBOX
Chris@350 1546 echo
Chris@350 1547 cat confdefs.h
Chris@350 1548 echo
Chris@350 1549 fi
Chris@350 1550 test "$ac_signal" != 0 &&
mathieu@468 1551 echo "$as_me: caught signal $ac_signal"
mathieu@468 1552 echo "$as_me: exit $exit_status"
Chris@350 1553 } >&5
Chris@350 1554 rm -f core *.core core.conftest.* &&
Chris@350 1555 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Chris@350 1556 exit $exit_status
Chris@350 1557 ' 0
Chris@350 1558 for ac_signal in 1 2 13 15; do
mathieu@468 1559 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
Chris@350 1560 done
Chris@350 1561 ac_signal=0
Chris@350 1562
Chris@350 1563 # confdefs.h avoids OS command line length limits that DEFS can exceed.
Chris@350 1564 rm -f -r conftest* confdefs.h
Chris@350 1565
Chris@350 1566 # Predefined preprocessor variables.
Chris@350 1567
Chris@350 1568 cat >>confdefs.h <<_ACEOF
Chris@350 1569 #define PACKAGE_NAME "$PACKAGE_NAME"
Chris@350 1570 _ACEOF
Chris@350 1571
mathieu@468 1572
Chris@350 1573 cat >>confdefs.h <<_ACEOF
Chris@350 1574 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
Chris@350 1575 _ACEOF
Chris@350 1576
mathieu@468 1577
Chris@350 1578 cat >>confdefs.h <<_ACEOF
Chris@350 1579 #define PACKAGE_VERSION "$PACKAGE_VERSION"
Chris@350 1580 _ACEOF
Chris@350 1581
mathieu@468 1582
Chris@350 1583 cat >>confdefs.h <<_ACEOF
Chris@350 1584 #define PACKAGE_STRING "$PACKAGE_STRING"
Chris@350 1585 _ACEOF
Chris@350 1586
mathieu@468 1587
Chris@350 1588 cat >>confdefs.h <<_ACEOF
Chris@350 1589 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
Chris@350 1590 _ACEOF
Chris@350 1591
Chris@350 1592
Chris@350 1593 # Let the site file select an alternate cache file if it wants to.
mathieu@468 1594 # Prefer explicitly selected file to automatically selected ones.
Chris@350 1595 if test -n "$CONFIG_SITE"; then
mathieu@468 1596 set x "$CONFIG_SITE"
Chris@350 1597 elif test "x$prefix" != xNONE; then
mathieu@468 1598 set x "$prefix/share/config.site" "$prefix/etc/config.site"
mathieu@468 1599 else
mathieu@468 1600 set x "$ac_default_prefix/share/config.site" \
mathieu@468 1601 "$ac_default_prefix/etc/config.site"
mathieu@468 1602 fi
mathieu@468 1603 shift
mathieu@468 1604 for ac_site_file
Chris@350 1605 do
mathieu@468 1606 if test -r "$ac_site_file"; then
mathieu@468 1607 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
mathieu@468 1608 echo "$as_me: loading site script $ac_site_file" >&6;}
Chris@350 1609 sed 's/^/| /' "$ac_site_file" >&5
mathieu@468 1610 . "$ac_site_file"
Chris@350 1611 fi
Chris@350 1612 done
Chris@350 1613
Chris@350 1614 if test -r "$cache_file"; then
mathieu@468 1615 # Some versions of bash will fail to source /dev/null (special
mathieu@468 1616 # files actually), so we avoid doing that.
mathieu@468 1617 if test -f "$cache_file"; then
mathieu@468 1618 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
mathieu@468 1619 echo "$as_me: loading cache $cache_file" >&6;}
Chris@350 1620 case $cache_file in
Chris@350 1621 [\\/]* | ?:[\\/]* ) . "$cache_file";;
Chris@350 1622 *) . "./$cache_file";;
Chris@350 1623 esac
Chris@350 1624 fi
Chris@350 1625 else
mathieu@468 1626 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
mathieu@468 1627 echo "$as_me: creating cache $cache_file" >&6;}
Chris@350 1628 >$cache_file
Chris@350 1629 fi
Chris@350 1630
Chris@350 1631 # Check that the precious variables saved in the cache have kept the same
Chris@350 1632 # value.
Chris@350 1633 ac_cache_corrupted=false
Chris@350 1634 for ac_var in $ac_precious_vars; do
Chris@350 1635 eval ac_old_set=\$ac_cv_env_${ac_var}_set
Chris@350 1636 eval ac_new_set=\$ac_env_${ac_var}_set
Chris@350 1637 eval ac_old_val=\$ac_cv_env_${ac_var}_value
Chris@350 1638 eval ac_new_val=\$ac_env_${ac_var}_value
Chris@350 1639 case $ac_old_set,$ac_new_set in
Chris@350 1640 set,)
mathieu@468 1641 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
mathieu@468 1642 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Chris@350 1643 ac_cache_corrupted=: ;;
Chris@350 1644 ,set)
mathieu@468 1645 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
mathieu@468 1646 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Chris@350 1647 ac_cache_corrupted=: ;;
Chris@350 1648 ,);;
Chris@350 1649 *)
Chris@350 1650 if test "x$ac_old_val" != "x$ac_new_val"; then
mathieu@468 1651 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
mathieu@468 1652 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
mathieu@468 1653 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
mathieu@468 1654 echo "$as_me: former value: $ac_old_val" >&2;}
mathieu@468 1655 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
mathieu@468 1656 echo "$as_me: current value: $ac_new_val" >&2;}
mathieu@468 1657 ac_cache_corrupted=:
Chris@350 1658 fi;;
Chris@350 1659 esac
Chris@350 1660 # Pass precious variables to config.status.
Chris@350 1661 if test "$ac_new_set" = set; then
Chris@350 1662 case $ac_new_val in
mathieu@468 1663 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@350 1664 *) ac_arg=$ac_var=$ac_new_val ;;
Chris@350 1665 esac
Chris@350 1666 case " $ac_configure_args " in
Chris@350 1667 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
mathieu@468 1668 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Chris@350 1669 esac
Chris@350 1670 fi
Chris@350 1671 done
Chris@350 1672 if $ac_cache_corrupted; then
mathieu@468 1673 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
mathieu@468 1674 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
mathieu@468 1675 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
mathieu@468 1676 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
mathieu@468 1677 { (exit 1); exit 1; }; }
mathieu@468 1678 fi
mathieu@468 1679
mathieu@468 1680
mathieu@468 1681
mathieu@468 1682
mathieu@468 1683
mathieu@468 1684
mathieu@468 1685
mathieu@468 1686
mathieu@468 1687
mathieu@468 1688
mathieu@468 1689
mathieu@468 1690
mathieu@468 1691
mathieu@468 1692
mathieu@468 1693
mathieu@468 1694
mathieu@468 1695
mathieu@468 1696
mathieu@468 1697
mathieu@468 1698
mathieu@468 1699
mathieu@468 1700
mathieu@468 1701
mathieu@468 1702
Chris@350 1703
Chris@350 1704 ac_ext=c
Chris@350 1705 ac_cpp='$CPP $CPPFLAGS'
Chris@350 1706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@350 1707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@350 1708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@350 1709
Chris@350 1710
Chris@350 1711
Chris@350 1712
Chris@350 1713
Chris@350 1714 # Autoconf will set CXXFLAGS; we don't usually want it to, because we
Chris@350 1715 # either define our own flags (at least if GCC is in use) or else use
Chris@350 1716 # the user's preferences. We need to ensure CXXFLAGS is only set if
Chris@350 1717 # the user has expressly set it. So, save the user's (or empty)
Chris@350 1718 # setting now and restore it after Autoconf has done its bit of
Chris@350 1719 # piddling about.
Chris@350 1720 USER_CXXFLAGS="$CXXFLAGS"
Chris@350 1721
Chris@405 1722 # If the user supplied CFLAGS but not CXXFLAGS, use CFLAGS instead
Chris@405 1723 if test x"$USER_CXXFLAGS" = x; then
Chris@405 1724 if test x"$CFLAGS" != x; then
Chris@405 1725 USER_CXXFLAGS="$CFLAGS"
Chris@405 1726 fi
Chris@405 1727 fi
Chris@405 1728
Chris@350 1729 ac_ext=cpp
Chris@350 1730 ac_cpp='$CXXCPP $CPPFLAGS'
Chris@350 1731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@350 1732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@350 1733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Chris@350 1734
Chris@350 1735
Chris@350 1736 ac_ext=c
Chris@350 1737 ac_cpp='$CPP $CPPFLAGS'
Chris@350 1738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@350 1739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@350 1740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@350 1741 if test -n "$ac_tool_prefix"; then
Chris@350 1742 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
Chris@350 1743 set dummy ${ac_tool_prefix}gcc; ac_word=$2
mathieu@468 1744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
mathieu@468 1745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
mathieu@468 1746 if test "${ac_cv_prog_CC+set}" = set; then
mathieu@468 1747 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 1748 else
Chris@350 1749 if test -n "$CC"; then
Chris@350 1750 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@350 1751 else
Chris@350 1752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 1753 for as_dir in $PATH
Chris@350 1754 do
Chris@350 1755 IFS=$as_save_IFS
Chris@350 1756 test -z "$as_dir" && as_dir=.
mathieu@468 1757 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@350 1758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@350 1759 ac_cv_prog_CC="${ac_tool_prefix}gcc"
mathieu@468 1760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@350 1761 break 2
Chris@350 1762 fi
Chris@350 1763 done
mathieu@468 1764 done
Chris@350 1765 IFS=$as_save_IFS
Chris@350 1766
Chris@350 1767 fi
Chris@350 1768 fi
Chris@350 1769 CC=$ac_cv_prog_CC
Chris@350 1770 if test -n "$CC"; then
mathieu@468 1771 { echo "$as_me:$LINENO: result: $CC" >&5
mathieu@468 1772 echo "${ECHO_T}$CC" >&6; }
mathieu@468 1773 else
mathieu@468 1774 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 1775 echo "${ECHO_T}no" >&6; }
Chris@350 1776 fi
Chris@350 1777
Chris@350 1778
Chris@350 1779 fi
Chris@350 1780 if test -z "$ac_cv_prog_CC"; then
Chris@350 1781 ac_ct_CC=$CC
Chris@350 1782 # Extract the first word of "gcc", so it can be a program name with args.
Chris@350 1783 set dummy gcc; ac_word=$2
mathieu@468 1784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
mathieu@468 1785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
mathieu@468 1786 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
mathieu@468 1787 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 1788 else
Chris@350 1789 if test -n "$ac_ct_CC"; then
Chris@350 1790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
Chris@350 1791 else
Chris@350 1792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 1793 for as_dir in $PATH
Chris@350 1794 do
Chris@350 1795 IFS=$as_save_IFS
Chris@350 1796 test -z "$as_dir" && as_dir=.
mathieu@468 1797 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@350 1798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@350 1799 ac_cv_prog_ac_ct_CC="gcc"
mathieu@468 1800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@350 1801 break 2
Chris@350 1802 fi
Chris@350 1803 done
mathieu@468 1804 done
Chris@350 1805 IFS=$as_save_IFS
Chris@350 1806
Chris@350 1807 fi
Chris@350 1808 fi
Chris@350 1809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
Chris@350 1810 if test -n "$ac_ct_CC"; then
mathieu@468 1811 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
mathieu@468 1812 echo "${ECHO_T}$ac_ct_CC" >&6; }
mathieu@468 1813 else
mathieu@468 1814 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 1815 echo "${ECHO_T}no" >&6; }
Chris@350 1816 fi
Chris@350 1817
Chris@350 1818 if test "x$ac_ct_CC" = x; then
Chris@350 1819 CC=""
Chris@350 1820 else
Chris@350 1821 case $cross_compiling:$ac_tool_warned in
Chris@350 1822 yes:)
mathieu@468 1823 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
mathieu@468 1824 whose name does not start with the host triplet. If you think this
mathieu@468 1825 configuration is useful to you, please write to autoconf@gnu.org." >&5
mathieu@468 1826 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
mathieu@468 1827 whose name does not start with the host triplet. If you think this
mathieu@468 1828 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Chris@350 1829 ac_tool_warned=yes ;;
Chris@350 1830 esac
Chris@350 1831 CC=$ac_ct_CC
Chris@350 1832 fi
Chris@350 1833 else
Chris@350 1834 CC="$ac_cv_prog_CC"
Chris@350 1835 fi
Chris@350 1836
Chris@350 1837 if test -z "$CC"; then
Chris@350 1838 if test -n "$ac_tool_prefix"; then
Chris@350 1839 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Chris@350 1840 set dummy ${ac_tool_prefix}cc; ac_word=$2
mathieu@468 1841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
mathieu@468 1842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
mathieu@468 1843 if test "${ac_cv_prog_CC+set}" = set; then
mathieu@468 1844 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 1845 else
Chris@350 1846 if test -n "$CC"; then
Chris@350 1847 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@350 1848 else
Chris@350 1849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 1850 for as_dir in $PATH
Chris@350 1851 do
Chris@350 1852 IFS=$as_save_IFS
Chris@350 1853 test -z "$as_dir" && as_dir=.
mathieu@468 1854 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@350 1855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@350 1856 ac_cv_prog_CC="${ac_tool_prefix}cc"
mathieu@468 1857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@350 1858 break 2
Chris@350 1859 fi
Chris@350 1860 done
mathieu@468 1861 done
Chris@350 1862 IFS=$as_save_IFS
Chris@350 1863
Chris@350 1864 fi
Chris@350 1865 fi
Chris@350 1866 CC=$ac_cv_prog_CC
Chris@350 1867 if test -n "$CC"; then
mathieu@468 1868 { echo "$as_me:$LINENO: result: $CC" >&5
mathieu@468 1869 echo "${ECHO_T}$CC" >&6; }
mathieu@468 1870 else
mathieu@468 1871 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 1872 echo "${ECHO_T}no" >&6; }
Chris@350 1873 fi
Chris@350 1874
Chris@350 1875
Chris@350 1876 fi
Chris@350 1877 fi
Chris@350 1878 if test -z "$CC"; then
Chris@350 1879 # Extract the first word of "cc", so it can be a program name with args.
Chris@350 1880 set dummy cc; ac_word=$2
mathieu@468 1881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
mathieu@468 1882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
mathieu@468 1883 if test "${ac_cv_prog_CC+set}" = set; then
mathieu@468 1884 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 1885 else
Chris@350 1886 if test -n "$CC"; then
Chris@350 1887 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@350 1888 else
Chris@350 1889 ac_prog_rejected=no
Chris@350 1890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 1891 for as_dir in $PATH
Chris@350 1892 do
Chris@350 1893 IFS=$as_save_IFS
Chris@350 1894 test -z "$as_dir" && as_dir=.
mathieu@468 1895 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@350 1896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@350 1897 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
Chris@350 1898 ac_prog_rejected=yes
Chris@350 1899 continue
Chris@350 1900 fi
Chris@350 1901 ac_cv_prog_CC="cc"
mathieu@468 1902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@350 1903 break 2
Chris@350 1904 fi
Chris@350 1905 done
mathieu@468 1906 done
Chris@350 1907 IFS=$as_save_IFS
Chris@350 1908
Chris@350 1909 if test $ac_prog_rejected = yes; then
Chris@350 1910 # We found a bogon in the path, so make sure we never use it.
Chris@350 1911 set dummy $ac_cv_prog_CC
Chris@350 1912 shift
Chris@350 1913 if test $# != 0; then
Chris@350 1914 # We chose a different compiler from the bogus one.
Chris@350 1915 # However, it has the same basename, so the bogon will be chosen
Chris@350 1916 # first if we set CC to just the basename; use the full file name.
Chris@350 1917 shift
Chris@350 1918 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Chris@350 1919 fi
Chris@350 1920 fi
Chris@350 1921 fi
Chris@350 1922 fi
Chris@350 1923 CC=$ac_cv_prog_CC
Chris@350 1924 if test -n "$CC"; then
mathieu@468 1925 { echo "$as_me:$LINENO: result: $CC" >&5
mathieu@468 1926 echo "${ECHO_T}$CC" >&6; }
mathieu@468 1927 else
mathieu@468 1928 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 1929 echo "${ECHO_T}no" >&6; }
Chris@350 1930 fi
Chris@350 1931
Chris@350 1932
Chris@350 1933 fi
Chris@350 1934 if test -z "$CC"; then
Chris@350 1935 if test -n "$ac_tool_prefix"; then
Chris@350 1936 for ac_prog in cl.exe
Chris@350 1937 do
Chris@350 1938 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@350 1939 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
mathieu@468 1940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
mathieu@468 1941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
mathieu@468 1942 if test "${ac_cv_prog_CC+set}" = set; then
mathieu@468 1943 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 1944 else
Chris@350 1945 if test -n "$CC"; then
Chris@350 1946 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@350 1947 else
Chris@350 1948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 1949 for as_dir in $PATH
Chris@350 1950 do
Chris@350 1951 IFS=$as_save_IFS
Chris@350 1952 test -z "$as_dir" && as_dir=.
mathieu@468 1953 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@350 1954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@350 1955 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
mathieu@468 1956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@350 1957 break 2
Chris@350 1958 fi
Chris@350 1959 done
mathieu@468 1960 done
Chris@350 1961 IFS=$as_save_IFS
Chris@350 1962
Chris@350 1963 fi
Chris@350 1964 fi
Chris@350 1965 CC=$ac_cv_prog_CC
Chris@350 1966 if test -n "$CC"; then
mathieu@468 1967 { echo "$as_me:$LINENO: result: $CC" >&5
mathieu@468 1968 echo "${ECHO_T}$CC" >&6; }
mathieu@468 1969 else
mathieu@468 1970 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 1971 echo "${ECHO_T}no" >&6; }
Chris@350 1972 fi
Chris@350 1973
Chris@350 1974
Chris@350 1975 test -n "$CC" && break
Chris@350 1976 done
Chris@350 1977 fi
Chris@350 1978 if test -z "$CC"; then
Chris@350 1979 ac_ct_CC=$CC
Chris@350 1980 for ac_prog in cl.exe
Chris@350 1981 do
Chris@350 1982 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@350 1983 set dummy $ac_prog; ac_word=$2
mathieu@468 1984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
mathieu@468 1985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
mathieu@468 1986 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
mathieu@468 1987 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 1988 else
Chris@350 1989 if test -n "$ac_ct_CC"; then
Chris@350 1990 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
Chris@350 1991 else
Chris@350 1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 1993 for as_dir in $PATH
Chris@350 1994 do
Chris@350 1995 IFS=$as_save_IFS
Chris@350 1996 test -z "$as_dir" && as_dir=.
mathieu@468 1997 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@350 1998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@350 1999 ac_cv_prog_ac_ct_CC="$ac_prog"
mathieu@468 2000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@350 2001 break 2
Chris@350 2002 fi
Chris@350 2003 done
mathieu@468 2004 done
Chris@350 2005 IFS=$as_save_IFS
Chris@350 2006
Chris@350 2007 fi
Chris@350 2008 fi
Chris@350 2009 ac_ct_CC=$ac_cv_prog_ac_ct_CC
Chris@350 2010 if test -n "$ac_ct_CC"; then
mathieu@468 2011 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
mathieu@468 2012 echo "${ECHO_T}$ac_ct_CC" >&6; }
mathieu@468 2013 else
mathieu@468 2014 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 2015 echo "${ECHO_T}no" >&6; }
Chris@350 2016 fi
Chris@350 2017
Chris@350 2018
Chris@350 2019 test -n "$ac_ct_CC" && break
Chris@350 2020 done
Chris@350 2021
Chris@350 2022 if test "x$ac_ct_CC" = x; then
Chris@350 2023 CC=""
Chris@350 2024 else
Chris@350 2025 case $cross_compiling:$ac_tool_warned in
Chris@350 2026 yes:)
mathieu@468 2027 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
mathieu@468 2028 whose name does not start with the host triplet. If you think this
mathieu@468 2029 configuration is useful to you, please write to autoconf@gnu.org." >&5
mathieu@468 2030 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
mathieu@468 2031 whose name does not start with the host triplet. If you think this
mathieu@468 2032 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Chris@350 2033 ac_tool_warned=yes ;;
Chris@350 2034 esac
Chris@350 2035 CC=$ac_ct_CC
Chris@350 2036 fi
Chris@350 2037 fi
Chris@350 2038
Chris@350 2039 fi
Chris@350 2040
Chris@350 2041
mathieu@468 2042 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
mathieu@468 2043 See \`config.log' for more details." >&5
mathieu@468 2044 echo "$as_me: error: no acceptable C compiler found in \$PATH
mathieu@468 2045 See \`config.log' for more details." >&2;}
mathieu@468 2046 { (exit 1); exit 1; }; }
Chris@350 2047
Chris@350 2048 # Provide some information about the compiler.
mathieu@468 2049 echo "$as_me:$LINENO: checking for C compiler version" >&5
mathieu@468 2050 ac_compiler=`set X $ac_compile; echo $2`
mathieu@468 2051 { (ac_try="$ac_compiler --version >&5"
Chris@350 2052 case "(($ac_try" in
Chris@350 2053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@350 2054 *) ac_try_echo=$ac_try;;
Chris@350 2055 esac
mathieu@468 2056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 2057 (eval "$ac_compiler --version >&5") 2>&5
Chris@350 2058 ac_status=$?
mathieu@468 2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 2060 (exit $ac_status); }
mathieu@468 2061 { (ac_try="$ac_compiler -v >&5"
mathieu@468 2062 case "(($ac_try" in
mathieu@468 2063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 2064 *) ac_try_echo=$ac_try;;
mathieu@468 2065 esac
mathieu@468 2066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 2067 (eval "$ac_compiler -v >&5") 2>&5
mathieu@468 2068 ac_status=$?
mathieu@468 2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 2070 (exit $ac_status); }
mathieu@468 2071 { (ac_try="$ac_compiler -V >&5"
mathieu@468 2072 case "(($ac_try" in
mathieu@468 2073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 2074 *) ac_try_echo=$ac_try;;
mathieu@468 2075 esac
mathieu@468 2076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 2077 (eval "$ac_compiler -V >&5") 2>&5
mathieu@468 2078 ac_status=$?
mathieu@468 2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 2080 (exit $ac_status); }
mathieu@468 2081
mathieu@468 2082 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 2083 /* confdefs.h. */
mathieu@468 2084 _ACEOF
mathieu@468 2085 cat confdefs.h >>conftest.$ac_ext
mathieu@468 2086 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 2087 /* end confdefs.h. */
Chris@350 2088
Chris@350 2089 int
Chris@350 2090 main ()
Chris@350 2091 {
Chris@350 2092
Chris@350 2093 ;
Chris@350 2094 return 0;
Chris@350 2095 }
Chris@350 2096 _ACEOF
Chris@350 2097 ac_clean_files_save=$ac_clean_files
mathieu@468 2098 ac_clean_files="$ac_clean_files a.out a.exe b.out"
Chris@350 2099 # Try to create an executable without -o first, disregard a.out.
Chris@350 2100 # It will help us diagnose broken compilers, and finding out an intuition
Chris@350 2101 # of exeext.
mathieu@468 2102 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
mathieu@468 2103 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
mathieu@468 2104 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
mathieu@468 2105 #
mathieu@468 2106 # List of possible output files, starting from the most likely.
mathieu@468 2107 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
mathieu@468 2108 # only as a last resort. b.out is created by i960 compilers.
mathieu@468 2109 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
mathieu@468 2110 #
mathieu@468 2111 # The IRIX 6 linker writes into existing files which may not be
mathieu@468 2112 # executable, retaining their permissions. Remove them first so a
mathieu@468 2113 # subsequent execution test works.
Chris@350 2114 ac_rmfiles=
Chris@350 2115 for ac_file in $ac_files
Chris@350 2116 do
Chris@350 2117 case $ac_file in
mathieu@468 2118 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Chris@350 2119 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
Chris@350 2120 esac
Chris@350 2121 done
Chris@350 2122 rm -f $ac_rmfiles
Chris@350 2123
mathieu@468 2124 if { (ac_try="$ac_link_default"
Chris@350 2125 case "(($ac_try" in
Chris@350 2126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@350 2127 *) ac_try_echo=$ac_try;;
Chris@350 2128 esac
mathieu@468 2129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Chris@350 2130 (eval "$ac_link_default") 2>&5
Chris@350 2131 ac_status=$?
mathieu@468 2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 2133 (exit $ac_status); }; then
Chris@350 2134 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
Chris@350 2135 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
Chris@350 2136 # in a Makefile. We should not override ac_cv_exeext if it was cached,
Chris@350 2137 # so that the user can short-circuit this test for compilers unknown to
Chris@350 2138 # Autoconf.
Chris@350 2139 for ac_file in $ac_files ''
Chris@350 2140 do
Chris@350 2141 test -f "$ac_file" || continue
Chris@350 2142 case $ac_file in
mathieu@468 2143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Chris@350 2144 ;;
Chris@350 2145 [ab].out )
Chris@350 2146 # We found the default executable, but exeext='' is most
Chris@350 2147 # certainly right.
Chris@350 2148 break;;
Chris@350 2149 *.* )
mathieu@468 2150 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Chris@350 2151 then :; else
Chris@350 2152 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Chris@350 2153 fi
Chris@350 2154 # We set ac_cv_exeext here because the later test for it is not
Chris@350 2155 # safe: cross compilers may not add the suffix if given an `-o'
Chris@350 2156 # argument, so we may need to know it at that point already.
Chris@350 2157 # Even if this section looks crufty: it has the advantage of
Chris@350 2158 # actually working.
Chris@350 2159 break;;
Chris@350 2160 * )
Chris@350 2161 break;;
Chris@350 2162 esac
Chris@350 2163 done
Chris@350 2164 test "$ac_cv_exeext" = no && ac_cv_exeext=
Chris@350 2165
Chris@350 2166 else
Chris@350 2167 ac_file=''
Chris@350 2168 fi
mathieu@468 2169
mathieu@468 2170 { echo "$as_me:$LINENO: result: $ac_file" >&5
mathieu@468 2171 echo "${ECHO_T}$ac_file" >&6; }
mathieu@468 2172 if test -z "$ac_file"; then
mathieu@468 2173 echo "$as_me: failed program was:" >&5
Chris@350 2174 sed 's/^/| /' conftest.$ac_ext >&5
Chris@350 2175
mathieu@468 2176 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
mathieu@468 2177 See \`config.log' for more details." >&5
mathieu@468 2178 echo "$as_me: error: C compiler cannot create executables
mathieu@468 2179 See \`config.log' for more details." >&2;}
mathieu@468 2180 { (exit 77); exit 77; }; }
mathieu@468 2181 fi
mathieu@468 2182
Chris@350 2183 ac_exeext=$ac_cv_exeext
Chris@350 2184
mathieu@468 2185 # Check that the compiler produces executables we can run. If not, either
mathieu@468 2186 # the compiler is broken, or we cross compile.
mathieu@468 2187 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
mathieu@468 2188 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
mathieu@468 2189 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
mathieu@468 2190 # If not cross compiling, check that we can run a simple program.
mathieu@468 2191 if test "$cross_compiling" != yes; then
mathieu@468 2192 if { ac_try='./$ac_file'
mathieu@468 2193 { (case "(($ac_try" in
mathieu@468 2194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 2195 *) ac_try_echo=$ac_try;;
mathieu@468 2196 esac
mathieu@468 2197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 2198 (eval "$ac_try") 2>&5
mathieu@468 2199 ac_status=$?
mathieu@468 2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 2201 (exit $ac_status); }; }; then
mathieu@468 2202 cross_compiling=no
mathieu@468 2203 else
mathieu@468 2204 if test "$cross_compiling" = maybe; then
mathieu@468 2205 cross_compiling=yes
mathieu@468 2206 else
mathieu@468 2207 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
mathieu@468 2208 If you meant to cross compile, use \`--host'.
mathieu@468 2209 See \`config.log' for more details." >&5
mathieu@468 2210 echo "$as_me: error: cannot run C compiled programs.
mathieu@468 2211 If you meant to cross compile, use \`--host'.
mathieu@468 2212 See \`config.log' for more details." >&2;}
mathieu@468 2213 { (exit 1); exit 1; }; }
mathieu@468 2214 fi
mathieu@468 2215 fi
mathieu@468 2216 fi
mathieu@468 2217 { echo "$as_me:$LINENO: result: yes" >&5
mathieu@468 2218 echo "${ECHO_T}yes" >&6; }
mathieu@468 2219
mathieu@468 2220 rm -f a.out a.exe conftest$ac_cv_exeext b.out
Chris@350 2221 ac_clean_files=$ac_clean_files_save
mathieu@468 2222 # Check that the compiler produces executables we can run. If not, either
mathieu@468 2223 # the compiler is broken, or we cross compile.
mathieu@468 2224 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
mathieu@468 2225 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
mathieu@468 2226 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
mathieu@468 2227 echo "${ECHO_T}$cross_compiling" >&6; }
mathieu@468 2228
mathieu@468 2229 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
mathieu@468 2230 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
mathieu@468 2231 if { (ac_try="$ac_link"
Chris@350 2232 case "(($ac_try" in
Chris@350 2233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@350 2234 *) ac_try_echo=$ac_try;;
Chris@350 2235 esac
mathieu@468 2236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Chris@350 2237 (eval "$ac_link") 2>&5
Chris@350 2238 ac_status=$?
mathieu@468 2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 2240 (exit $ac_status); }; then
Chris@350 2241 # If both `conftest.exe' and `conftest' are `present' (well, observable)
Chris@350 2242 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
Chris@350 2243 # work properly (i.e., refer to `conftest.exe'), while it won't with
Chris@350 2244 # `rm'.
Chris@350 2245 for ac_file in conftest.exe conftest conftest.*; do
Chris@350 2246 test -f "$ac_file" || continue
Chris@350 2247 case $ac_file in
mathieu@468 2248 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Chris@350 2249 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Chris@350 2250 break;;
Chris@350 2251 * ) break;;
Chris@350 2252 esac
Chris@350 2253 done
Chris@350 2254 else
mathieu@468 2255 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
mathieu@468 2256 See \`config.log' for more details." >&5
mathieu@468 2257 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
mathieu@468 2258 See \`config.log' for more details." >&2;}
mathieu@468 2259 { (exit 1); exit 1; }; }
mathieu@468 2260 fi
mathieu@468 2261
mathieu@468 2262 rm -f conftest$ac_cv_exeext
mathieu@468 2263 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
mathieu@468 2264 echo "${ECHO_T}$ac_cv_exeext" >&6; }
Chris@350 2265
Chris@350 2266 rm -f conftest.$ac_ext
Chris@350 2267 EXEEXT=$ac_cv_exeext
Chris@350 2268 ac_exeext=$EXEEXT
mathieu@468 2269 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
mathieu@468 2270 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
mathieu@468 2271 if test "${ac_cv_objext+set}" = set; then
mathieu@468 2272 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 2273 else
mathieu@468 2274 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 2275 /* confdefs.h. */
mathieu@468 2276 _ACEOF
mathieu@468 2277 cat confdefs.h >>conftest.$ac_ext
mathieu@468 2278 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 2279 /* end confdefs.h. */
mathieu@468 2280
Chris@350 2281 int
Chris@350 2282 main ()
Chris@350 2283 {
Chris@350 2284
Chris@350 2285 ;
Chris@350 2286 return 0;
Chris@350 2287 }
Chris@350 2288 _ACEOF
Chris@457 2289 rm -f conftest.o conftest.obj
mathieu@468 2290 if { (ac_try="$ac_compile"
Chris@350 2291 case "(($ac_try" in
Chris@350 2292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@350 2293 *) ac_try_echo=$ac_try;;
Chris@350 2294 esac
mathieu@468 2295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Chris@350 2296 (eval "$ac_compile") 2>&5
Chris@350 2297 ac_status=$?
mathieu@468 2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 2299 (exit $ac_status); }; then
Chris@350 2300 for ac_file in conftest.o conftest.obj conftest.*; do
Chris@350 2301 test -f "$ac_file" || continue;
Chris@350 2302 case $ac_file in
mathieu@468 2303 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Chris@350 2304 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
Chris@350 2305 break;;
Chris@350 2306 esac
Chris@350 2307 done
Chris@350 2308 else
mathieu@468 2309 echo "$as_me: failed program was:" >&5
Chris@350 2310 sed 's/^/| /' conftest.$ac_ext >&5
Chris@350 2311
mathieu@468 2312 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
mathieu@468 2313 See \`config.log' for more details." >&5
mathieu@468 2314 echo "$as_me: error: cannot compute suffix of object files: cannot compile
mathieu@468 2315 See \`config.log' for more details." >&2;}
mathieu@468 2316 { (exit 1); exit 1; }; }
mathieu@468 2317 fi
mathieu@468 2318
Chris@350 2319 rm -f conftest.$ac_cv_objext conftest.$ac_ext
Chris@350 2320 fi
mathieu@468 2321 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
mathieu@468 2322 echo "${ECHO_T}$ac_cv_objext" >&6; }
Chris@350 2323 OBJEXT=$ac_cv_objext
Chris@350 2324 ac_objext=$OBJEXT
mathieu@468 2325 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
mathieu@468 2326 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
mathieu@468 2327 if test "${ac_cv_c_compiler_gnu+set}" = set; then
mathieu@468 2328 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 2329 else
mathieu@468 2330 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 2331 /* confdefs.h. */
mathieu@468 2332 _ACEOF
mathieu@468 2333 cat confdefs.h >>conftest.$ac_ext
mathieu@468 2334 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 2335 /* end confdefs.h. */
Chris@350 2336
Chris@350 2337 int
Chris@350 2338 main ()
Chris@350 2339 {
Chris@350 2340 #ifndef __GNUC__
Chris@350 2341 choke me
Chris@350 2342 #endif
Chris@350 2343
Chris@350 2344 ;
Chris@350 2345 return 0;
Chris@350 2346 }
Chris@350 2347 _ACEOF
mathieu@468 2348 rm -f conftest.$ac_objext
mathieu@468 2349 if { (ac_try="$ac_compile"
mathieu@468 2350 case "(($ac_try" in
mathieu@468 2351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 2352 *) ac_try_echo=$ac_try;;
mathieu@468 2353 esac
mathieu@468 2354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 2355 (eval "$ac_compile") 2>conftest.er1
mathieu@468 2356 ac_status=$?
mathieu@468 2357 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 2358 rm -f conftest.er1
mathieu@468 2359 cat conftest.err >&5
mathieu@468 2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 2361 (exit $ac_status); } && {
mathieu@468 2362 test -z "$ac_c_werror_flag" ||
mathieu@468 2363 test ! -s conftest.err
mathieu@468 2364 } && test -s conftest.$ac_objext; then
Chris@350 2365 ac_compiler_gnu=yes
Chris@350 2366 else
mathieu@468 2367 echo "$as_me: failed program was:" >&5
mathieu@468 2368 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 2369
mathieu@468 2370 ac_compiler_gnu=no
mathieu@468 2371 fi
mathieu@468 2372
Chris@350 2373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@350 2374 ac_cv_c_compiler_gnu=$ac_compiler_gnu
Chris@350 2375
Chris@350 2376 fi
mathieu@468 2377 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
mathieu@468 2378 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
mathieu@468 2379 GCC=`test $ac_compiler_gnu = yes && echo yes`
Chris@350 2380 ac_test_CFLAGS=${CFLAGS+set}
Chris@350 2381 ac_save_CFLAGS=$CFLAGS
mathieu@468 2382 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
mathieu@468 2383 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
mathieu@468 2384 if test "${ac_cv_prog_cc_g+set}" = set; then
mathieu@468 2385 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 2386 else
Chris@350 2387 ac_save_c_werror_flag=$ac_c_werror_flag
Chris@350 2388 ac_c_werror_flag=yes
Chris@350 2389 ac_cv_prog_cc_g=no
Chris@350 2390 CFLAGS="-g"
mathieu@468 2391 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 2392 /* confdefs.h. */
mathieu@468 2393 _ACEOF
mathieu@468 2394 cat confdefs.h >>conftest.$ac_ext
mathieu@468 2395 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 2396 /* end confdefs.h. */
Chris@350 2397
Chris@350 2398 int
Chris@350 2399 main ()
Chris@350 2400 {
Chris@350 2401
Chris@350 2402 ;
Chris@350 2403 return 0;
Chris@350 2404 }
Chris@350 2405 _ACEOF
mathieu@468 2406 rm -f conftest.$ac_objext
mathieu@468 2407 if { (ac_try="$ac_compile"
mathieu@468 2408 case "(($ac_try" in
mathieu@468 2409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 2410 *) ac_try_echo=$ac_try;;
mathieu@468 2411 esac
mathieu@468 2412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 2413 (eval "$ac_compile") 2>conftest.er1
mathieu@468 2414 ac_status=$?
mathieu@468 2415 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 2416 rm -f conftest.er1
mathieu@468 2417 cat conftest.err >&5
mathieu@468 2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 2419 (exit $ac_status); } && {
mathieu@468 2420 test -z "$ac_c_werror_flag" ||
mathieu@468 2421 test ! -s conftest.err
mathieu@468 2422 } && test -s conftest.$ac_objext; then
Chris@350 2423 ac_cv_prog_cc_g=yes
Chris@350 2424 else
mathieu@468 2425 echo "$as_me: failed program was:" >&5
mathieu@468 2426 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 2427
mathieu@468 2428 CFLAGS=""
mathieu@468 2429 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 2430 /* confdefs.h. */
mathieu@468 2431 _ACEOF
mathieu@468 2432 cat confdefs.h >>conftest.$ac_ext
mathieu@468 2433 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 2434 /* end confdefs.h. */
Chris@350 2435
Chris@350 2436 int
Chris@350 2437 main ()
Chris@350 2438 {
Chris@350 2439
Chris@350 2440 ;
Chris@350 2441 return 0;
Chris@350 2442 }
Chris@350 2443 _ACEOF
mathieu@468 2444 rm -f conftest.$ac_objext
mathieu@468 2445 if { (ac_try="$ac_compile"
mathieu@468 2446 case "(($ac_try" in
mathieu@468 2447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 2448 *) ac_try_echo=$ac_try;;
mathieu@468 2449 esac
mathieu@468 2450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 2451 (eval "$ac_compile") 2>conftest.er1
mathieu@468 2452 ac_status=$?
mathieu@468 2453 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 2454 rm -f conftest.er1
mathieu@468 2455 cat conftest.err >&5
mathieu@468 2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 2457 (exit $ac_status); } && {
mathieu@468 2458 test -z "$ac_c_werror_flag" ||
mathieu@468 2459 test ! -s conftest.err
mathieu@468 2460 } && test -s conftest.$ac_objext; then
mathieu@468 2461 :
mathieu@468 2462 else
mathieu@468 2463 echo "$as_me: failed program was:" >&5
mathieu@468 2464 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 2465
mathieu@468 2466 ac_c_werror_flag=$ac_save_c_werror_flag
Chris@350 2467 CFLAGS="-g"
mathieu@468 2468 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 2469 /* confdefs.h. */
mathieu@468 2470 _ACEOF
mathieu@468 2471 cat confdefs.h >>conftest.$ac_ext
mathieu@468 2472 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 2473 /* end confdefs.h. */
Chris@350 2474
Chris@350 2475 int
Chris@350 2476 main ()
Chris@350 2477 {
Chris@350 2478
Chris@350 2479 ;
Chris@350 2480 return 0;
Chris@350 2481 }
Chris@350 2482 _ACEOF
mathieu@468 2483 rm -f conftest.$ac_objext
mathieu@468 2484 if { (ac_try="$ac_compile"
mathieu@468 2485 case "(($ac_try" in
mathieu@468 2486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 2487 *) ac_try_echo=$ac_try;;
mathieu@468 2488 esac
mathieu@468 2489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 2490 (eval "$ac_compile") 2>conftest.er1
mathieu@468 2491 ac_status=$?
mathieu@468 2492 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 2493 rm -f conftest.er1
mathieu@468 2494 cat conftest.err >&5
mathieu@468 2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 2496 (exit $ac_status); } && {
mathieu@468 2497 test -z "$ac_c_werror_flag" ||
mathieu@468 2498 test ! -s conftest.err
mathieu@468 2499 } && test -s conftest.$ac_objext; then
Chris@350 2500 ac_cv_prog_cc_g=yes
mathieu@468 2501 else
mathieu@468 2502 echo "$as_me: failed program was:" >&5
mathieu@468 2503 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 2504
mathieu@468 2505
mathieu@468 2506 fi
mathieu@468 2507
Chris@350 2508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@350 2509 fi
mathieu@468 2510
Chris@350 2511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@350 2512 fi
mathieu@468 2513
Chris@350 2514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@350 2515 ac_c_werror_flag=$ac_save_c_werror_flag
Chris@350 2516 fi
mathieu@468 2517 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
mathieu@468 2518 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Chris@350 2519 if test "$ac_test_CFLAGS" = set; then
Chris@350 2520 CFLAGS=$ac_save_CFLAGS
Chris@350 2521 elif test $ac_cv_prog_cc_g = yes; then
Chris@350 2522 if test "$GCC" = yes; then
Chris@350 2523 CFLAGS="-g -O2"
Chris@350 2524 else
Chris@350 2525 CFLAGS="-g"
Chris@350 2526 fi
Chris@350 2527 else
Chris@350 2528 if test "$GCC" = yes; then
Chris@350 2529 CFLAGS="-O2"
Chris@350 2530 else
Chris@350 2531 CFLAGS=
Chris@350 2532 fi
Chris@350 2533 fi
mathieu@468 2534 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
mathieu@468 2535 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
mathieu@468 2536 if test "${ac_cv_prog_cc_c89+set}" = set; then
mathieu@468 2537 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 2538 else
Chris@350 2539 ac_cv_prog_cc_c89=no
Chris@350 2540 ac_save_CC=$CC
mathieu@468 2541 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 2542 /* confdefs.h. */
mathieu@468 2543 _ACEOF
mathieu@468 2544 cat confdefs.h >>conftest.$ac_ext
mathieu@468 2545 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 2546 /* end confdefs.h. */
Chris@350 2547 #include <stdarg.h>
Chris@350 2548 #include <stdio.h>
Chris@350 2549 #include <sys/types.h>
Chris@350 2550 #include <sys/stat.h>
Chris@350 2551 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
Chris@350 2552 struct buf { int x; };
Chris@350 2553 FILE * (*rcsopen) (struct buf *, struct stat *, int);
Chris@350 2554 static char *e (p, i)
Chris@350 2555 char **p;
Chris@350 2556 int i;
Chris@350 2557 {
Chris@350 2558 return p[i];
Chris@350 2559 }
Chris@350 2560 static char *f (char * (*g) (char **, int), char **p, ...)
Chris@350 2561 {
Chris@350 2562 char *s;
Chris@350 2563 va_list v;
Chris@350 2564 va_start (v,p);
Chris@350 2565 s = g (p, va_arg (v,int));
Chris@350 2566 va_end (v);
Chris@350 2567 return s;
Chris@350 2568 }
Chris@350 2569
Chris@350 2570 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
Chris@350 2571 function prototypes and stuff, but not '\xHH' hex character constants.
Chris@350 2572 These don't provoke an error unfortunately, instead are silently treated
Chris@350 2573 as 'x'. The following induces an error, until -std is added to get
Chris@350 2574 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
Chris@350 2575 array size at least. It's necessary to write '\x00'==0 to get something
Chris@350 2576 that's true only with -std. */
Chris@350 2577 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
Chris@350 2578
Chris@350 2579 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
Chris@350 2580 inside strings and character constants. */
Chris@350 2581 #define FOO(x) 'x'
Chris@350 2582 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
Chris@350 2583
Chris@350 2584 int test (int i, double x);
Chris@350 2585 struct s1 {int (*f) (int a);};
Chris@350 2586 struct s2 {int (*f) (double a);};
Chris@350 2587 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
Chris@350 2588 int argc;
Chris@350 2589 char **argv;
Chris@350 2590 int
Chris@350 2591 main ()
Chris@350 2592 {
Chris@350 2593 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
Chris@350 2594 ;
Chris@350 2595 return 0;
Chris@350 2596 }
Chris@350 2597 _ACEOF
Chris@350 2598 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
Chris@350 2599 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Chris@350 2600 do
Chris@350 2601 CC="$ac_save_CC $ac_arg"
mathieu@468 2602 rm -f conftest.$ac_objext
mathieu@468 2603 if { (ac_try="$ac_compile"
mathieu@468 2604 case "(($ac_try" in
mathieu@468 2605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 2606 *) ac_try_echo=$ac_try;;
mathieu@468 2607 esac
mathieu@468 2608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 2609 (eval "$ac_compile") 2>conftest.er1
mathieu@468 2610 ac_status=$?
mathieu@468 2611 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 2612 rm -f conftest.er1
mathieu@468 2613 cat conftest.err >&5
mathieu@468 2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 2615 (exit $ac_status); } && {
mathieu@468 2616 test -z "$ac_c_werror_flag" ||
mathieu@468 2617 test ! -s conftest.err
mathieu@468 2618 } && test -s conftest.$ac_objext; then
Chris@350 2619 ac_cv_prog_cc_c89=$ac_arg
mathieu@468 2620 else
mathieu@468 2621 echo "$as_me: failed program was:" >&5
mathieu@468 2622 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 2623
mathieu@468 2624
mathieu@468 2625 fi
mathieu@468 2626
Chris@350 2627 rm -f core conftest.err conftest.$ac_objext
Chris@350 2628 test "x$ac_cv_prog_cc_c89" != "xno" && break
Chris@350 2629 done
Chris@350 2630 rm -f conftest.$ac_ext
Chris@350 2631 CC=$ac_save_CC
Chris@350 2632
Chris@350 2633 fi
Chris@350 2634 # AC_CACHE_VAL
Chris@350 2635 case "x$ac_cv_prog_cc_c89" in
Chris@350 2636 x)
mathieu@468 2637 { echo "$as_me:$LINENO: result: none needed" >&5
mathieu@468 2638 echo "${ECHO_T}none needed" >&6; } ;;
Chris@350 2639 xno)
mathieu@468 2640 { echo "$as_me:$LINENO: result: unsupported" >&5
mathieu@468 2641 echo "${ECHO_T}unsupported" >&6; } ;;
Chris@350 2642 *)
Chris@350 2643 CC="$CC $ac_cv_prog_cc_c89"
mathieu@468 2644 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
mathieu@468 2645 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
mathieu@468 2646 esac
mathieu@468 2647
Chris@350 2648
Chris@350 2649 ac_ext=cpp
Chris@350 2650 ac_cpp='$CXXCPP $CPPFLAGS'
Chris@350 2651 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@350 2652 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@350 2653 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Chris@350 2654
Chris@350 2655 ac_ext=cpp
Chris@350 2656 ac_cpp='$CXXCPP $CPPFLAGS'
Chris@350 2657 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@350 2658 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@350 2659 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Chris@350 2660 if test -z "$CXX"; then
Chris@350 2661 if test -n "$CCC"; then
Chris@350 2662 CXX=$CCC
Chris@350 2663 else
Chris@350 2664 if test -n "$ac_tool_prefix"; then
Chris@350 2665 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
Chris@350 2666 do
Chris@350 2667 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@350 2668 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
mathieu@468 2669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
mathieu@468 2670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
mathieu@468 2671 if test "${ac_cv_prog_CXX+set}" = set; then
mathieu@468 2672 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 2673 else
Chris@350 2674 if test -n "$CXX"; then
Chris@350 2675 ac_cv_prog_CXX="$CXX" # Let the user override the test.
Chris@350 2676 else
Chris@350 2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 2678 for as_dir in $PATH
Chris@350 2679 do
Chris@350 2680 IFS=$as_save_IFS
Chris@350 2681 test -z "$as_dir" && as_dir=.
mathieu@468 2682 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@350 2683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@350 2684 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
mathieu@468 2685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@350 2686 break 2
Chris@350 2687 fi
Chris@350 2688 done
mathieu@468 2689 done
Chris@350 2690 IFS=$as_save_IFS
Chris@350 2691
Chris@350 2692 fi
Chris@350 2693 fi
Chris@350 2694 CXX=$ac_cv_prog_CXX
Chris@350 2695 if test -n "$CXX"; then
mathieu@468 2696 { echo "$as_me:$LINENO: result: $CXX" >&5
mathieu@468 2697 echo "${ECHO_T}$CXX" >&6; }
mathieu@468 2698 else
mathieu@468 2699 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 2700 echo "${ECHO_T}no" >&6; }
Chris@350 2701 fi
Chris@350 2702
Chris@350 2703
Chris@350 2704 test -n "$CXX" && break
Chris@350 2705 done
Chris@350 2706 fi
Chris@350 2707 if test -z "$CXX"; then
Chris@350 2708 ac_ct_CXX=$CXX
Chris@350 2709 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
Chris@350 2710 do
Chris@350 2711 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@350 2712 set dummy $ac_prog; ac_word=$2
mathieu@468 2713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
mathieu@468 2714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
mathieu@468 2715 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
mathieu@468 2716 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 2717 else
Chris@350 2718 if test -n "$ac_ct_CXX"; then
Chris@350 2719 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
Chris@350 2720 else
Chris@350 2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 2722 for as_dir in $PATH
Chris@350 2723 do
Chris@350 2724 IFS=$as_save_IFS
Chris@350 2725 test -z "$as_dir" && as_dir=.
mathieu@468 2726 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@350 2727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@350 2728 ac_cv_prog_ac_ct_CXX="$ac_prog"
mathieu@468 2729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@350 2730 break 2
Chris@350 2731 fi
Chris@350 2732 done
mathieu@468 2733 done
Chris@350 2734 IFS=$as_save_IFS
Chris@350 2735
Chris@350 2736 fi
Chris@350 2737 fi
Chris@350 2738 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
Chris@350 2739 if test -n "$ac_ct_CXX"; then
mathieu@468 2740 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
mathieu@468 2741 echo "${ECHO_T}$ac_ct_CXX" >&6; }
mathieu@468 2742 else
mathieu@468 2743 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 2744 echo "${ECHO_T}no" >&6; }
Chris@350 2745 fi
Chris@350 2746
Chris@350 2747
Chris@350 2748 test -n "$ac_ct_CXX" && break
Chris@350 2749 done
Chris@350 2750
Chris@350 2751 if test "x$ac_ct_CXX" = x; then
Chris@350 2752 CXX="g++"
Chris@350 2753 else
Chris@350 2754 case $cross_compiling:$ac_tool_warned in
Chris@350 2755 yes:)
mathieu@468 2756 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
mathieu@468 2757 whose name does not start with the host triplet. If you think this
mathieu@468 2758 configuration is useful to you, please write to autoconf@gnu.org." >&5
mathieu@468 2759 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
mathieu@468 2760 whose name does not start with the host triplet. If you think this
mathieu@468 2761 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Chris@350 2762 ac_tool_warned=yes ;;
Chris@350 2763 esac
Chris@350 2764 CXX=$ac_ct_CXX
Chris@350 2765 fi
Chris@350 2766 fi
Chris@350 2767
Chris@350 2768 fi
Chris@350 2769 fi
Chris@350 2770 # Provide some information about the compiler.
mathieu@468 2771 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
mathieu@468 2772 ac_compiler=`set X $ac_compile; echo $2`
mathieu@468 2773 { (ac_try="$ac_compiler --version >&5"
Chris@350 2774 case "(($ac_try" in
Chris@350 2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@350 2776 *) ac_try_echo=$ac_try;;
Chris@350 2777 esac
mathieu@468 2778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 2779 (eval "$ac_compiler --version >&5") 2>&5
Chris@350 2780 ac_status=$?
mathieu@468 2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 2782 (exit $ac_status); }
mathieu@468 2783 { (ac_try="$ac_compiler -v >&5"
mathieu@468 2784 case "(($ac_try" in
mathieu@468 2785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 2786 *) ac_try_echo=$ac_try;;
mathieu@468 2787 esac
mathieu@468 2788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 2789 (eval "$ac_compiler -v >&5") 2>&5
mathieu@468 2790 ac_status=$?
mathieu@468 2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 2792 (exit $ac_status); }
mathieu@468 2793 { (ac_try="$ac_compiler -V >&5"
mathieu@468 2794 case "(($ac_try" in
mathieu@468 2795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 2796 *) ac_try_echo=$ac_try;;
mathieu@468 2797 esac
mathieu@468 2798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 2799 (eval "$ac_compiler -V >&5") 2>&5
mathieu@468 2800 ac_status=$?
mathieu@468 2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 2802 (exit $ac_status); }
mathieu@468 2803
mathieu@468 2804 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
mathieu@468 2805 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
mathieu@468 2806 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
mathieu@468 2807 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 2808 else
mathieu@468 2809 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 2810 /* confdefs.h. */
mathieu@468 2811 _ACEOF
mathieu@468 2812 cat confdefs.h >>conftest.$ac_ext
mathieu@468 2813 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 2814 /* end confdefs.h. */
Chris@350 2815
Chris@350 2816 int
Chris@350 2817 main ()
Chris@350 2818 {
Chris@350 2819 #ifndef __GNUC__
Chris@350 2820 choke me
Chris@350 2821 #endif
Chris@350 2822
Chris@350 2823 ;
Chris@350 2824 return 0;
Chris@350 2825 }
Chris@350 2826 _ACEOF
mathieu@468 2827 rm -f conftest.$ac_objext
mathieu@468 2828 if { (ac_try="$ac_compile"
mathieu@468 2829 case "(($ac_try" in
mathieu@468 2830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 2831 *) ac_try_echo=$ac_try;;
mathieu@468 2832 esac
mathieu@468 2833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 2834 (eval "$ac_compile") 2>conftest.er1
mathieu@468 2835 ac_status=$?
mathieu@468 2836 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 2837 rm -f conftest.er1
mathieu@468 2838 cat conftest.err >&5
mathieu@468 2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 2840 (exit $ac_status); } && {
mathieu@468 2841 test -z "$ac_cxx_werror_flag" ||
mathieu@468 2842 test ! -s conftest.err
mathieu@468 2843 } && test -s conftest.$ac_objext; then
Chris@350 2844 ac_compiler_gnu=yes
Chris@350 2845 else
mathieu@468 2846 echo "$as_me: failed program was:" >&5
mathieu@468 2847 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 2848
mathieu@468 2849 ac_compiler_gnu=no
mathieu@468 2850 fi
mathieu@468 2851
Chris@350 2852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@350 2853 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
Chris@350 2854
Chris@350 2855 fi
mathieu@468 2856 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
mathieu@468 2857 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
mathieu@468 2858 GXX=`test $ac_compiler_gnu = yes && echo yes`
Chris@350 2859 ac_test_CXXFLAGS=${CXXFLAGS+set}
Chris@350 2860 ac_save_CXXFLAGS=$CXXFLAGS
mathieu@468 2861 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
mathieu@468 2862 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
mathieu@468 2863 if test "${ac_cv_prog_cxx_g+set}" = set; then
mathieu@468 2864 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 2865 else
Chris@350 2866 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
Chris@350 2867 ac_cxx_werror_flag=yes
Chris@350 2868 ac_cv_prog_cxx_g=no
Chris@350 2869 CXXFLAGS="-g"
mathieu@468 2870 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 2871 /* confdefs.h. */
mathieu@468 2872 _ACEOF
mathieu@468 2873 cat confdefs.h >>conftest.$ac_ext
mathieu@468 2874 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 2875 /* end confdefs.h. */
Chris@350 2876
Chris@350 2877 int
Chris@350 2878 main ()
Chris@350 2879 {
Chris@350 2880
Chris@350 2881 ;
Chris@350 2882 return 0;
Chris@350 2883 }
Chris@350 2884 _ACEOF
mathieu@468 2885 rm -f conftest.$ac_objext
mathieu@468 2886 if { (ac_try="$ac_compile"
mathieu@468 2887 case "(($ac_try" in
mathieu@468 2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 2889 *) ac_try_echo=$ac_try;;
mathieu@468 2890 esac
mathieu@468 2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 2892 (eval "$ac_compile") 2>conftest.er1
mathieu@468 2893 ac_status=$?
mathieu@468 2894 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 2895 rm -f conftest.er1
mathieu@468 2896 cat conftest.err >&5
mathieu@468 2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 2898 (exit $ac_status); } && {
mathieu@468 2899 test -z "$ac_cxx_werror_flag" ||
mathieu@468 2900 test ! -s conftest.err
mathieu@468 2901 } && test -s conftest.$ac_objext; then
Chris@350 2902 ac_cv_prog_cxx_g=yes
Chris@350 2903 else
mathieu@468 2904 echo "$as_me: failed program was:" >&5
mathieu@468 2905 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 2906
mathieu@468 2907 CXXFLAGS=""
mathieu@468 2908 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 2909 /* confdefs.h. */
mathieu@468 2910 _ACEOF
mathieu@468 2911 cat confdefs.h >>conftest.$ac_ext
mathieu@468 2912 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 2913 /* end confdefs.h. */
Chris@350 2914
Chris@350 2915 int
Chris@350 2916 main ()
Chris@350 2917 {
Chris@350 2918
Chris@350 2919 ;
Chris@350 2920 return 0;
Chris@350 2921 }
Chris@350 2922 _ACEOF
mathieu@468 2923 rm -f conftest.$ac_objext
mathieu@468 2924 if { (ac_try="$ac_compile"
mathieu@468 2925 case "(($ac_try" in
mathieu@468 2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 2927 *) ac_try_echo=$ac_try;;
mathieu@468 2928 esac
mathieu@468 2929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 2930 (eval "$ac_compile") 2>conftest.er1
mathieu@468 2931 ac_status=$?
mathieu@468 2932 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 2933 rm -f conftest.er1
mathieu@468 2934 cat conftest.err >&5
mathieu@468 2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 2936 (exit $ac_status); } && {
mathieu@468 2937 test -z "$ac_cxx_werror_flag" ||
mathieu@468 2938 test ! -s conftest.err
mathieu@468 2939 } && test -s conftest.$ac_objext; then
mathieu@468 2940 :
mathieu@468 2941 else
mathieu@468 2942 echo "$as_me: failed program was:" >&5
mathieu@468 2943 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 2944
mathieu@468 2945 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Chris@350 2946 CXXFLAGS="-g"
mathieu@468 2947 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 2948 /* confdefs.h. */
mathieu@468 2949 _ACEOF
mathieu@468 2950 cat confdefs.h >>conftest.$ac_ext
mathieu@468 2951 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 2952 /* end confdefs.h. */
Chris@350 2953
Chris@350 2954 int
Chris@350 2955 main ()
Chris@350 2956 {
Chris@350 2957
Chris@350 2958 ;
Chris@350 2959 return 0;
Chris@350 2960 }
Chris@350 2961 _ACEOF
mathieu@468 2962 rm -f conftest.$ac_objext
mathieu@468 2963 if { (ac_try="$ac_compile"
mathieu@468 2964 case "(($ac_try" in
mathieu@468 2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 2966 *) ac_try_echo=$ac_try;;
mathieu@468 2967 esac
mathieu@468 2968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 2969 (eval "$ac_compile") 2>conftest.er1
mathieu@468 2970 ac_status=$?
mathieu@468 2971 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 2972 rm -f conftest.er1
mathieu@468 2973 cat conftest.err >&5
mathieu@468 2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 2975 (exit $ac_status); } && {
mathieu@468 2976 test -z "$ac_cxx_werror_flag" ||
mathieu@468 2977 test ! -s conftest.err
mathieu@468 2978 } && test -s conftest.$ac_objext; then
Chris@350 2979 ac_cv_prog_cxx_g=yes
mathieu@468 2980 else
mathieu@468 2981 echo "$as_me: failed program was:" >&5
mathieu@468 2982 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 2983
mathieu@468 2984
mathieu@468 2985 fi
mathieu@468 2986
Chris@350 2987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@350 2988 fi
mathieu@468 2989
Chris@350 2990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@350 2991 fi
mathieu@468 2992
Chris@350 2993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@350 2994 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Chris@350 2995 fi
mathieu@468 2996 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
mathieu@468 2997 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Chris@350 2998 if test "$ac_test_CXXFLAGS" = set; then
Chris@350 2999 CXXFLAGS=$ac_save_CXXFLAGS
Chris@350 3000 elif test $ac_cv_prog_cxx_g = yes; then
Chris@350 3001 if test "$GXX" = yes; then
Chris@350 3002 CXXFLAGS="-g -O2"
Chris@350 3003 else
Chris@350 3004 CXXFLAGS="-g"
Chris@350 3005 fi
Chris@350 3006 else
Chris@350 3007 if test "$GXX" = yes; then
Chris@350 3008 CXXFLAGS="-O2"
Chris@350 3009 else
Chris@350 3010 CXXFLAGS=
Chris@350 3011 fi
Chris@350 3012 fi
Chris@350 3013 ac_ext=cpp
Chris@350 3014 ac_cpp='$CXXCPP $CPPFLAGS'
Chris@350 3015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@350 3016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@350 3017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Chris@350 3018
Chris@350 3019 ac_aux_dir=
Chris@350 3020 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Chris@405 3021 if test -f "$ac_dir/install-sh"; then
Chris@405 3022 ac_aux_dir=$ac_dir
Chris@405 3023 ac_install_sh="$ac_aux_dir/install-sh -c"
Chris@405 3024 break
Chris@405 3025 elif test -f "$ac_dir/install.sh"; then
Chris@405 3026 ac_aux_dir=$ac_dir
Chris@405 3027 ac_install_sh="$ac_aux_dir/install.sh -c"
Chris@405 3028 break
Chris@405 3029 elif test -f "$ac_dir/shtool"; then
Chris@405 3030 ac_aux_dir=$ac_dir
Chris@405 3031 ac_install_sh="$ac_aux_dir/shtool install -c"
Chris@405 3032 break
Chris@405 3033 fi
Chris@350 3034 done
Chris@350 3035 if test -z "$ac_aux_dir"; then
mathieu@468 3036 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
mathieu@468 3037 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
mathieu@468 3038 { (exit 1); exit 1; }; }
Chris@350 3039 fi
Chris@350 3040
Chris@350 3041 # These three variables are undocumented and unsupported,
Chris@350 3042 # and are intended to be withdrawn in a future Autoconf release.
Chris@350 3043 # They can cause serious problems if a builder's source tree is in a directory
Chris@350 3044 # whose full name contains unusual characters.
Chris@350 3045 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
Chris@350 3046 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
Chris@350 3047 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
Chris@350 3048
Chris@350 3049
Chris@350 3050 # Find a good install program. We prefer a C program (faster),
Chris@350 3051 # so one script is as good as another. But avoid the broken or
Chris@350 3052 # incompatible versions:
Chris@350 3053 # SysV /etc/install, /usr/sbin/install
Chris@350 3054 # SunOS /usr/etc/install
Chris@350 3055 # IRIX /sbin/install
Chris@350 3056 # AIX /bin/install
Chris@350 3057 # AmigaOS /C/install, which installs bootblocks on floppy discs
Chris@350 3058 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Chris@350 3059 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
Chris@350 3060 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Chris@350 3061 # OS/2's system install, which has a completely different semantic
Chris@350 3062 # ./install, which can be erroneously created by make from ./install.sh.
mathieu@468 3063 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
mathieu@468 3064 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Chris@350 3065 if test -z "$INSTALL"; then
mathieu@468 3066 if test "${ac_cv_path_install+set}" = set; then
mathieu@468 3067 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 3068 else
Chris@350 3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 3070 for as_dir in $PATH
Chris@350 3071 do
Chris@350 3072 IFS=$as_save_IFS
Chris@350 3073 test -z "$as_dir" && as_dir=.
mathieu@468 3074 # Account for people who put trailing slashes in PATH elements.
mathieu@468 3075 case $as_dir/ in
mathieu@468 3076 ./ | .// | /cC/* | \
Chris@350 3077 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
mathieu@468 3078 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Chris@350 3079 /usr/ucb/* ) ;;
Chris@350 3080 *)
Chris@350 3081 # OSF1 and SCO ODT 3.0 have their own names for install.
Chris@350 3082 # Don't use installbsd from OSF since it installs stuff as root
Chris@350 3083 # by default.
Chris@350 3084 for ac_prog in ginstall scoinst install; do
Chris@350 3085 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@350 3086 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
Chris@350 3087 if test $ac_prog = install &&
Chris@350 3088 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Chris@350 3089 # AIX install. It has an incompatible calling convention.
Chris@350 3090 :
Chris@350 3091 elif test $ac_prog = install &&
Chris@350 3092 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Chris@350 3093 # program-specific install script used by HP pwplus--don't use.
Chris@350 3094 :
Chris@350 3095 else
mathieu@468 3096 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
mathieu@468 3097 break 3
Chris@350 3098 fi
Chris@350 3099 fi
Chris@350 3100 done
Chris@350 3101 done
Chris@350 3102 ;;
Chris@350 3103 esac
mathieu@468 3104 done
Chris@350 3105 IFS=$as_save_IFS
Chris@350 3106
Chris@350 3107
Chris@350 3108 fi
Chris@350 3109 if test "${ac_cv_path_install+set}" = set; then
Chris@350 3110 INSTALL=$ac_cv_path_install
Chris@350 3111 else
Chris@350 3112 # As a last resort, use the slow shell script. Don't cache a
Chris@350 3113 # value for INSTALL within a source directory, because that will
Chris@350 3114 # break other packages using the cache if that directory is
Chris@350 3115 # removed, or if the value is a relative name.
Chris@350 3116 INSTALL=$ac_install_sh
Chris@350 3117 fi
Chris@350 3118 fi
mathieu@468 3119 { echo "$as_me:$LINENO: result: $INSTALL" >&5
mathieu@468 3120 echo "${ECHO_T}$INSTALL" >&6; }
Chris@350 3121
Chris@350 3122 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
Chris@350 3123 # It thinks the first close brace ends the variable substitution.
Chris@350 3124 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
Chris@350 3125
Chris@350 3126 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Chris@350 3127
Chris@350 3128 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
Chris@350 3129
mathieu@468 3130 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
mathieu@468 3131 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
Chris@350 3132 if test -z "$MKDIR_P"; then
mathieu@468 3133 if test "${ac_cv_path_mkdir+set}" = set; then
mathieu@468 3134 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 3135 else
Chris@350 3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 3137 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
Chris@350 3138 do
Chris@350 3139 IFS=$as_save_IFS
Chris@350 3140 test -z "$as_dir" && as_dir=.
mathieu@468 3141 for ac_prog in mkdir gmkdir; do
Chris@350 3142 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@350 3143 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
Chris@350 3144 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
Chris@350 3145 'mkdir (GNU coreutils) '* | \
Chris@350 3146 'mkdir (coreutils) '* | \
Chris@350 3147 'mkdir (fileutils) '4.1*)
Chris@350 3148 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
Chris@350 3149 break 3;;
Chris@350 3150 esac
Chris@350 3151 done
Chris@350 3152 done
mathieu@468 3153 done
Chris@350 3154 IFS=$as_save_IFS
Chris@350 3155
Chris@350 3156 fi
Chris@350 3157
Chris@350 3158 if test "${ac_cv_path_mkdir+set}" = set; then
Chris@350 3159 MKDIR_P="$ac_cv_path_mkdir -p"
Chris@350 3160 else
Chris@350 3161 # As a last resort, use the slow shell script. Don't cache a
Chris@350 3162 # value for MKDIR_P within a source directory, because that will
Chris@350 3163 # break other packages using the cache if that directory is
Chris@350 3164 # removed, or if the value is a relative name.
mathieu@468 3165 test -d ./--version && rmdir ./--version
Chris@350 3166 MKDIR_P="$ac_install_sh -d"
Chris@350 3167 fi
Chris@350 3168 fi
mathieu@468 3169 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
mathieu@468 3170 echo "${ECHO_T}$MKDIR_P" >&6; }
Chris@350 3171
Chris@350 3172
Chris@350 3173
Chris@350 3174 ac_ext=cpp
Chris@350 3175 ac_cpp='$CXXCPP $CPPFLAGS'
Chris@350 3176 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@350 3177 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@350 3178 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
mathieu@468 3179 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
mathieu@468 3180 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
Chris@350 3181 if test -z "$CXXCPP"; then
mathieu@468 3182 if test "${ac_cv_prog_CXXCPP+set}" = set; then
mathieu@468 3183 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 3184 else
Chris@350 3185 # Double quotes because CXXCPP needs to be expanded
Chris@350 3186 for CXXCPP in "$CXX -E" "/lib/cpp"
Chris@350 3187 do
Chris@350 3188 ac_preproc_ok=false
Chris@350 3189 for ac_cxx_preproc_warn_flag in '' yes
Chris@350 3190 do
Chris@350 3191 # Use a header file that comes with gcc, so configuring glibc
Chris@350 3192 # with a fresh cross-compiler works.
Chris@350 3193 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@350 3194 # <limits.h> exists even on freestanding compilers.
Chris@350 3195 # On the NeXT, cc -E runs the code through the compiler's parser,
Chris@350 3196 # not just through cpp. "Syntax error" is here to catch this case.
mathieu@468 3197 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 3198 /* confdefs.h. */
mathieu@468 3199 _ACEOF
mathieu@468 3200 cat confdefs.h >>conftest.$ac_ext
mathieu@468 3201 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 3202 /* end confdefs.h. */
Chris@350 3203 #ifdef __STDC__
Chris@350 3204 # include <limits.h>
Chris@350 3205 #else
Chris@350 3206 # include <assert.h>
Chris@350 3207 #endif
Chris@350 3208 Syntax error
Chris@350 3209 _ACEOF
mathieu@468 3210 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 3211 case "(($ac_try" in
mathieu@468 3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 3213 *) ac_try_echo=$ac_try;;
mathieu@468 3214 esac
mathieu@468 3215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 3216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
mathieu@468 3217 ac_status=$?
mathieu@468 3218 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 3219 rm -f conftest.er1
mathieu@468 3220 cat conftest.err >&5
mathieu@468 3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 3222 (exit $ac_status); } >/dev/null && {
mathieu@468 3223 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 3224 test ! -s conftest.err
mathieu@468 3225 }; then
mathieu@468 3226 :
mathieu@468 3227 else
mathieu@468 3228 echo "$as_me: failed program was:" >&5
mathieu@468 3229 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 3230
Chris@350 3231 # Broken: fails on valid input.
Chris@350 3232 continue
Chris@350 3233 fi
mathieu@468 3234
mathieu@468 3235 rm -f conftest.err conftest.$ac_ext
Chris@350 3236
Chris@350 3237 # OK, works on sane cases. Now check whether nonexistent headers
Chris@350 3238 # can be detected and how.
mathieu@468 3239 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 3240 /* confdefs.h. */
mathieu@468 3241 _ACEOF
mathieu@468 3242 cat confdefs.h >>conftest.$ac_ext
mathieu@468 3243 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 3244 /* end confdefs.h. */
Chris@350 3245 #include <ac_nonexistent.h>
Chris@350 3246 _ACEOF
mathieu@468 3247 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 3248 case "(($ac_try" in
mathieu@468 3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 3250 *) ac_try_echo=$ac_try;;
mathieu@468 3251 esac
mathieu@468 3252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 3253 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
mathieu@468 3254 ac_status=$?
mathieu@468 3255 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 3256 rm -f conftest.er1
mathieu@468 3257 cat conftest.err >&5
mathieu@468 3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 3259 (exit $ac_status); } >/dev/null && {
mathieu@468 3260 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 3261 test ! -s conftest.err
mathieu@468 3262 }; then
Chris@350 3263 # Broken: success on invalid input.
Chris@350 3264 continue
Chris@350 3265 else
mathieu@468 3266 echo "$as_me: failed program was:" >&5
mathieu@468 3267 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 3268
Chris@350 3269 # Passes both tests.
Chris@350 3270 ac_preproc_ok=:
Chris@350 3271 break
Chris@350 3272 fi
mathieu@468 3273
mathieu@468 3274 rm -f conftest.err conftest.$ac_ext
Chris@350 3275
Chris@350 3276 done
Chris@350 3277 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
mathieu@468 3278 rm -f conftest.err conftest.$ac_ext
mathieu@468 3279 if $ac_preproc_ok; then
Chris@350 3280 break
Chris@350 3281 fi
Chris@350 3282
Chris@350 3283 done
Chris@350 3284 ac_cv_prog_CXXCPP=$CXXCPP
Chris@350 3285
Chris@350 3286 fi
Chris@350 3287 CXXCPP=$ac_cv_prog_CXXCPP
Chris@350 3288 else
Chris@350 3289 ac_cv_prog_CXXCPP=$CXXCPP
Chris@350 3290 fi
mathieu@468 3291 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
mathieu@468 3292 echo "${ECHO_T}$CXXCPP" >&6; }
Chris@350 3293 ac_preproc_ok=false
Chris@350 3294 for ac_cxx_preproc_warn_flag in '' yes
Chris@350 3295 do
Chris@350 3296 # Use a header file that comes with gcc, so configuring glibc
Chris@350 3297 # with a fresh cross-compiler works.
Chris@350 3298 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@350 3299 # <limits.h> exists even on freestanding compilers.
Chris@350 3300 # On the NeXT, cc -E runs the code through the compiler's parser,
Chris@350 3301 # not just through cpp. "Syntax error" is here to catch this case.
mathieu@468 3302 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 3303 /* confdefs.h. */
mathieu@468 3304 _ACEOF
mathieu@468 3305 cat confdefs.h >>conftest.$ac_ext
mathieu@468 3306 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 3307 /* end confdefs.h. */
Chris@350 3308 #ifdef __STDC__
Chris@350 3309 # include <limits.h>
Chris@350 3310 #else
Chris@350 3311 # include <assert.h>
Chris@350 3312 #endif
Chris@350 3313 Syntax error
Chris@350 3314 _ACEOF
mathieu@468 3315 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 3316 case "(($ac_try" in
mathieu@468 3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 3318 *) ac_try_echo=$ac_try;;
mathieu@468 3319 esac
mathieu@468 3320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 3321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
mathieu@468 3322 ac_status=$?
mathieu@468 3323 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 3324 rm -f conftest.er1
mathieu@468 3325 cat conftest.err >&5
mathieu@468 3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 3327 (exit $ac_status); } >/dev/null && {
mathieu@468 3328 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 3329 test ! -s conftest.err
mathieu@468 3330 }; then
mathieu@468 3331 :
mathieu@468 3332 else
mathieu@468 3333 echo "$as_me: failed program was:" >&5
mathieu@468 3334 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 3335
Chris@350 3336 # Broken: fails on valid input.
Chris@350 3337 continue
Chris@350 3338 fi
mathieu@468 3339
mathieu@468 3340 rm -f conftest.err conftest.$ac_ext
Chris@350 3341
Chris@350 3342 # OK, works on sane cases. Now check whether nonexistent headers
Chris@350 3343 # can be detected and how.
mathieu@468 3344 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 3345 /* confdefs.h. */
mathieu@468 3346 _ACEOF
mathieu@468 3347 cat confdefs.h >>conftest.$ac_ext
mathieu@468 3348 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 3349 /* end confdefs.h. */
Chris@350 3350 #include <ac_nonexistent.h>
Chris@350 3351 _ACEOF
mathieu@468 3352 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 3353 case "(($ac_try" in
mathieu@468 3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 3355 *) ac_try_echo=$ac_try;;
mathieu@468 3356 esac
mathieu@468 3357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 3358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
mathieu@468 3359 ac_status=$?
mathieu@468 3360 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 3361 rm -f conftest.er1
mathieu@468 3362 cat conftest.err >&5
mathieu@468 3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 3364 (exit $ac_status); } >/dev/null && {
mathieu@468 3365 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 3366 test ! -s conftest.err
mathieu@468 3367 }; then
Chris@350 3368 # Broken: success on invalid input.
Chris@350 3369 continue
Chris@350 3370 else
mathieu@468 3371 echo "$as_me: failed program was:" >&5
mathieu@468 3372 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 3373
Chris@350 3374 # Passes both tests.
Chris@350 3375 ac_preproc_ok=:
Chris@350 3376 break
Chris@350 3377 fi
mathieu@468 3378
mathieu@468 3379 rm -f conftest.err conftest.$ac_ext
Chris@350 3380
Chris@350 3381 done
Chris@350 3382 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
mathieu@468 3383 rm -f conftest.err conftest.$ac_ext
mathieu@468 3384 if $ac_preproc_ok; then
mathieu@468 3385 :
mathieu@468 3386 else
mathieu@468 3387 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
mathieu@468 3388 See \`config.log' for more details." >&5
mathieu@468 3389 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
mathieu@468 3390 See \`config.log' for more details." >&2;}
mathieu@468 3391 { (exit 1); exit 1; }; }
Chris@350 3392 fi
Chris@350 3393
Chris@350 3394 ac_ext=cpp
Chris@350 3395 ac_cpp='$CXXCPP $CPPFLAGS'
Chris@350 3396 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@350 3397 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@350 3398 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Chris@350 3399
Chris@350 3400
mathieu@468 3401 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
mathieu@468 3402 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
mathieu@468 3403 if test "${ac_cv_path_GREP+set}" = set; then
mathieu@468 3404 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 3405 else
mathieu@468 3406 # Extract the first word of "grep ggrep" to use in msg output
mathieu@468 3407 if test -z "$GREP"; then
mathieu@468 3408 set dummy grep ggrep; ac_prog_name=$2
mathieu@468 3409 if test "${ac_cv_path_GREP+set}" = set; then
mathieu@468 3410 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 3411 else
Chris@350 3412 ac_path_GREP_found=false
mathieu@468 3413 # Loop through the user's path and test for each of PROGNAME-LIST
mathieu@468 3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 3415 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Chris@350 3416 do
Chris@350 3417 IFS=$as_save_IFS
Chris@350 3418 test -z "$as_dir" && as_dir=.
mathieu@468 3419 for ac_prog in grep ggrep; do
mathieu@468 3420 for ac_exec_ext in '' $ac_executable_extensions; do
mathieu@468 3421 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
mathieu@468 3422 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
mathieu@468 3423 # Check for GNU ac_path_GREP and select it if it is found.
Chris@350 3424 # Check for GNU $ac_path_GREP
Chris@350 3425 case `"$ac_path_GREP" --version 2>&1` in
Chris@350 3426 *GNU*)
Chris@350 3427 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
Chris@350 3428 *)
Chris@350 3429 ac_count=0
mathieu@468 3430 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Chris@350 3431 while :
Chris@350 3432 do
Chris@350 3433 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@350 3434 mv "conftest.tmp" "conftest.in"
Chris@350 3435 cp "conftest.in" "conftest.nl"
mathieu@468 3436 echo 'GREP' >> "conftest.nl"
Chris@350 3437 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@350 3438 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
mathieu@468 3439 ac_count=`expr $ac_count + 1`
Chris@350 3440 if test $ac_count -gt ${ac_path_GREP_max-0}; then
Chris@350 3441 # Best one so far, save it but keep looking for a better one
Chris@350 3442 ac_cv_path_GREP="$ac_path_GREP"
Chris@350 3443 ac_path_GREP_max=$ac_count
Chris@350 3444 fi
Chris@350 3445 # 10*(2^10) chars as input seems more than enough
Chris@350 3446 test $ac_count -gt 10 && break
Chris@350 3447 done
Chris@350 3448 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@350 3449 esac
Chris@350 3450
mathieu@468 3451
mathieu@468 3452 $ac_path_GREP_found && break 3
Chris@350 3453 done
mathieu@468 3454 done
mathieu@468 3455
mathieu@468 3456 done
Chris@350 3457 IFS=$as_save_IFS
mathieu@468 3458
mathieu@468 3459
mathieu@468 3460 fi
mathieu@468 3461
mathieu@468 3462 GREP="$ac_cv_path_GREP"
mathieu@468 3463 if test -z "$GREP"; then
mathieu@468 3464 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
mathieu@468 3465 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
mathieu@468 3466 { (exit 1); exit 1; }; }
mathieu@468 3467 fi
mathieu@468 3468
Chris@350 3469 else
Chris@350 3470 ac_cv_path_GREP=$GREP
Chris@350 3471 fi
Chris@350 3472
mathieu@468 3473
mathieu@468 3474 fi
mathieu@468 3475 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
mathieu@468 3476 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Chris@350 3477 GREP="$ac_cv_path_GREP"
Chris@350 3478
Chris@350 3479
mathieu@468 3480 { echo "$as_me:$LINENO: checking for egrep" >&5
mathieu@468 3481 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
mathieu@468 3482 if test "${ac_cv_path_EGREP+set}" = set; then
mathieu@468 3483 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 3484 else
Chris@350 3485 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
Chris@350 3486 then ac_cv_path_EGREP="$GREP -E"
Chris@350 3487 else
mathieu@468 3488 # Extract the first word of "egrep" to use in msg output
mathieu@468 3489 if test -z "$EGREP"; then
mathieu@468 3490 set dummy egrep; ac_prog_name=$2
mathieu@468 3491 if test "${ac_cv_path_EGREP+set}" = set; then
mathieu@468 3492 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 3493 else
Chris@350 3494 ac_path_EGREP_found=false
mathieu@468 3495 # Loop through the user's path and test for each of PROGNAME-LIST
mathieu@468 3496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 3497 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Chris@350 3498 do
Chris@350 3499 IFS=$as_save_IFS
Chris@350 3500 test -z "$as_dir" && as_dir=.
mathieu@468 3501 for ac_prog in egrep; do
mathieu@468 3502 for ac_exec_ext in '' $ac_executable_extensions; do
mathieu@468 3503 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
mathieu@468 3504 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
mathieu@468 3505 # Check for GNU ac_path_EGREP and select it if it is found.
Chris@350 3506 # Check for GNU $ac_path_EGREP
Chris@350 3507 case `"$ac_path_EGREP" --version 2>&1` in
Chris@350 3508 *GNU*)
Chris@350 3509 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
Chris@350 3510 *)
Chris@350 3511 ac_count=0
mathieu@468 3512 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Chris@350 3513 while :
Chris@350 3514 do
Chris@350 3515 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@350 3516 mv "conftest.tmp" "conftest.in"
Chris@350 3517 cp "conftest.in" "conftest.nl"
mathieu@468 3518 echo 'EGREP' >> "conftest.nl"
Chris@350 3519 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@350 3520 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
mathieu@468 3521 ac_count=`expr $ac_count + 1`
Chris@350 3522 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
Chris@350 3523 # Best one so far, save it but keep looking for a better one
Chris@350 3524 ac_cv_path_EGREP="$ac_path_EGREP"
Chris@350 3525 ac_path_EGREP_max=$ac_count
Chris@350 3526 fi
Chris@350 3527 # 10*(2^10) chars as input seems more than enough
Chris@350 3528 test $ac_count -gt 10 && break
Chris@350 3529 done
Chris@350 3530 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@350 3531 esac
Chris@350 3532
mathieu@468 3533
mathieu@468 3534 $ac_path_EGREP_found && break 3
Chris@350 3535 done
mathieu@468 3536 done
mathieu@468 3537
mathieu@468 3538 done
Chris@350 3539 IFS=$as_save_IFS
mathieu@468 3540
mathieu@468 3541
mathieu@468 3542 fi
mathieu@468 3543
mathieu@468 3544 EGREP="$ac_cv_path_EGREP"
mathieu@468 3545 if test -z "$EGREP"; then
mathieu@468 3546 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
mathieu@468 3547 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
mathieu@468 3548 { (exit 1); exit 1; }; }
mathieu@468 3549 fi
mathieu@468 3550
Chris@350 3551 else
Chris@350 3552 ac_cv_path_EGREP=$EGREP
Chris@350 3553 fi
Chris@350 3554
mathieu@468 3555
Chris@350 3556 fi
Chris@350 3557 fi
mathieu@468 3558 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
mathieu@468 3559 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Chris@350 3560 EGREP="$ac_cv_path_EGREP"
Chris@350 3561
Chris@350 3562
mathieu@468 3563 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
mathieu@468 3564 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
mathieu@468 3565 if test "${ac_cv_header_stdc+set}" = set; then
mathieu@468 3566 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 3567 else
mathieu@468 3568 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 3569 /* confdefs.h. */
mathieu@468 3570 _ACEOF
mathieu@468 3571 cat confdefs.h >>conftest.$ac_ext
mathieu@468 3572 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 3573 /* end confdefs.h. */
Chris@350 3574 #include <stdlib.h>
Chris@350 3575 #include <stdarg.h>
Chris@350 3576 #include <string.h>
Chris@350 3577 #include <float.h>
Chris@350 3578
Chris@350 3579 int
Chris@350 3580 main ()
Chris@350 3581 {
Chris@350 3582
Chris@350 3583 ;
Chris@350 3584 return 0;
Chris@350 3585 }
Chris@350 3586 _ACEOF
mathieu@468 3587 rm -f conftest.$ac_objext
mathieu@468 3588 if { (ac_try="$ac_compile"
mathieu@468 3589 case "(($ac_try" in
mathieu@468 3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 3591 *) ac_try_echo=$ac_try;;
mathieu@468 3592 esac
mathieu@468 3593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 3594 (eval "$ac_compile") 2>conftest.er1
mathieu@468 3595 ac_status=$?
mathieu@468 3596 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 3597 rm -f conftest.er1
mathieu@468 3598 cat conftest.err >&5
mathieu@468 3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 3600 (exit $ac_status); } && {
mathieu@468 3601 test -z "$ac_cxx_werror_flag" ||
mathieu@468 3602 test ! -s conftest.err
mathieu@468 3603 } && test -s conftest.$ac_objext; then
Chris@350 3604 ac_cv_header_stdc=yes
Chris@350 3605 else
mathieu@468 3606 echo "$as_me: failed program was:" >&5
mathieu@468 3607 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 3608
mathieu@468 3609 ac_cv_header_stdc=no
mathieu@468 3610 fi
mathieu@468 3611
Chris@350 3612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@350 3613
Chris@350 3614 if test $ac_cv_header_stdc = yes; then
Chris@350 3615 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
mathieu@468 3616 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 3617 /* confdefs.h. */
mathieu@468 3618 _ACEOF
mathieu@468 3619 cat confdefs.h >>conftest.$ac_ext
mathieu@468 3620 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 3621 /* end confdefs.h. */
Chris@350 3622 #include <string.h>
Chris@350 3623
Chris@350 3624 _ACEOF
Chris@350 3625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
mathieu@468 3626 $EGREP "memchr" >/dev/null 2>&1; then
mathieu@468 3627 :
Chris@350 3628 else
Chris@350 3629 ac_cv_header_stdc=no
Chris@350 3630 fi
Chris@350 3631 rm -f conftest*
Chris@350 3632
Chris@350 3633 fi
Chris@350 3634
Chris@350 3635 if test $ac_cv_header_stdc = yes; then
Chris@350 3636 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
mathieu@468 3637 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 3638 /* confdefs.h. */
mathieu@468 3639 _ACEOF
mathieu@468 3640 cat confdefs.h >>conftest.$ac_ext
mathieu@468 3641 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 3642 /* end confdefs.h. */
Chris@350 3643 #include <stdlib.h>
Chris@350 3644
Chris@350 3645 _ACEOF
Chris@350 3646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
mathieu@468 3647 $EGREP "free" >/dev/null 2>&1; then
mathieu@468 3648 :
Chris@350 3649 else
Chris@350 3650 ac_cv_header_stdc=no
Chris@350 3651 fi
Chris@350 3652 rm -f conftest*
Chris@350 3653
Chris@350 3654 fi
Chris@350 3655
Chris@350 3656 if test $ac_cv_header_stdc = yes; then
Chris@350 3657 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
mathieu@468 3658 if test "$cross_compiling" = yes; then
Chris@350 3659 :
Chris@350 3660 else
mathieu@468 3661 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 3662 /* confdefs.h. */
mathieu@468 3663 _ACEOF
mathieu@468 3664 cat confdefs.h >>conftest.$ac_ext
mathieu@468 3665 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 3666 /* end confdefs.h. */
Chris@350 3667 #include <ctype.h>
Chris@350 3668 #include <stdlib.h>
Chris@350 3669 #if ((' ' & 0x0FF) == 0x020)
Chris@350 3670 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
Chris@350 3671 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
Chris@350 3672 #else
Chris@350 3673 # define ISLOWER(c) \
Chris@350 3674 (('a' <= (c) && (c) <= 'i') \
Chris@350 3675 || ('j' <= (c) && (c) <= 'r') \
Chris@350 3676 || ('s' <= (c) && (c) <= 'z'))
Chris@350 3677 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
Chris@350 3678 #endif
Chris@350 3679
Chris@350 3680 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
Chris@350 3681 int
Chris@350 3682 main ()
Chris@350 3683 {
Chris@350 3684 int i;
Chris@350 3685 for (i = 0; i < 256; i++)
Chris@350 3686 if (XOR (islower (i), ISLOWER (i))
Chris@350 3687 || toupper (i) != TOUPPER (i))
Chris@350 3688 return 2;
Chris@350 3689 return 0;
Chris@350 3690 }
Chris@350 3691 _ACEOF
mathieu@468 3692 rm -f conftest$ac_exeext
mathieu@468 3693 if { (ac_try="$ac_link"
mathieu@468 3694 case "(($ac_try" in
mathieu@468 3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 3696 *) ac_try_echo=$ac_try;;
mathieu@468 3697 esac
mathieu@468 3698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 3699 (eval "$ac_link") 2>&5
mathieu@468 3700 ac_status=$?
mathieu@468 3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 3702 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
mathieu@468 3703 { (case "(($ac_try" in
mathieu@468 3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 3705 *) ac_try_echo=$ac_try;;
mathieu@468 3706 esac
mathieu@468 3707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 3708 (eval "$ac_try") 2>&5
mathieu@468 3709 ac_status=$?
mathieu@468 3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 3711 (exit $ac_status); }; }; then
mathieu@468 3712 :
mathieu@468 3713 else
mathieu@468 3714 echo "$as_me: program exited with status $ac_status" >&5
mathieu@468 3715 echo "$as_me: failed program was:" >&5
mathieu@468 3716 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 3717
mathieu@468 3718 ( exit $ac_status )
mathieu@468 3719 ac_cv_header_stdc=no
mathieu@468 3720 fi
mathieu@468 3721 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
mathieu@468 3722 fi
mathieu@468 3723
mathieu@468 3724
mathieu@468 3725 fi
mathieu@468 3726 fi
mathieu@468 3727 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
mathieu@468 3728 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Chris@350 3729 if test $ac_cv_header_stdc = yes; then
Chris@350 3730
mathieu@468 3731 cat >>confdefs.h <<\_ACEOF
mathieu@468 3732 #define STDC_HEADERS 1
mathieu@468 3733 _ACEOF
Chris@350 3734
Chris@350 3735 fi
Chris@350 3736
Chris@350 3737
Chris@350 3738 # These are the flags Autoconf guesses for us; we use them later if
Chris@350 3739 # the user has set none and we are not using GCC (so lack our own
Chris@350 3740 # preferred flags)
Chris@350 3741 AUTOCONF_CXXFLAGS="$CXXFLAGS"
Chris@350 3742
mathieu@480 3743 PKG_PROG_PKG_CONFIG
Chris@354 3744
Chris@354 3745
Chris@354 3746
Chris@354 3747
Chris@354 3748 if test x$QMAKE = x ; then
Chris@354 3749 # Extract the first word of "qmake-qt4", so it can be a program name with args.
Chris@350 3750 set dummy qmake-qt4; ac_word=$2
mathieu@468 3751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
mathieu@468 3752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
mathieu@468 3753 if test "${ac_cv_prog_QMAKE+set}" = set; then
mathieu@468 3754 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 3755 else
Chris@350 3756 if test -n "$QMAKE"; then
Chris@350 3757 ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
Chris@350 3758 else
Chris@350 3759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 3760 for as_dir in $QTDIR/bin/
Chris@350 3761 do
Chris@350 3762 IFS=$as_save_IFS
Chris@350 3763 test -z "$as_dir" && as_dir=.
mathieu@468 3764 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@350 3765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@350 3766 ac_cv_prog_QMAKE="$QTDIR/bin/qmake-qt4"
mathieu@468 3767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@350 3768 break 2
Chris@350 3769 fi
Chris@350 3770 done
mathieu@468 3771 done
Chris@350 3772 IFS=$as_save_IFS
Chris@350 3773
Chris@350 3774 fi
Chris@350 3775 fi
Chris@350 3776 QMAKE=$ac_cv_prog_QMAKE
Chris@350 3777 if test -n "$QMAKE"; then
mathieu@468 3778 { echo "$as_me:$LINENO: result: $QMAKE" >&5
mathieu@468 3779 echo "${ECHO_T}$QMAKE" >&6; }
mathieu@468 3780 else
mathieu@468 3781 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 3782 echo "${ECHO_T}no" >&6; }
Chris@350 3783 fi
Chris@350 3784
Chris@350 3785
Chris@354 3786 fi
Chris@350 3787 if test x$QMAKE = x ; then
Chris@354 3788 # Extract the first word of "qmake", so it can be a program name with args.
Chris@350 3789 set dummy qmake; ac_word=$2
mathieu@468 3790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
mathieu@468 3791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
mathieu@468 3792 if test "${ac_cv_prog_QMAKE+set}" = set; then
mathieu@468 3793 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 3794 else
Chris@350 3795 if test -n "$QMAKE"; then
Chris@350 3796 ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
Chris@350 3797 else
Chris@350 3798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 3799 for as_dir in $QTDIR/bin/
Chris@350 3800 do
Chris@350 3801 IFS=$as_save_IFS
Chris@350 3802 test -z "$as_dir" && as_dir=.
mathieu@468 3803 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@350 3804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@350 3805 ac_cv_prog_QMAKE="$QTDIR/bin/qmake"
mathieu@468 3806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@350 3807 break 2
Chris@350 3808 fi
Chris@350 3809 done
mathieu@468 3810 done
Chris@350 3811 IFS=$as_save_IFS
Chris@350 3812
Chris@350 3813 fi
Chris@350 3814 fi
Chris@350 3815 QMAKE=$ac_cv_prog_QMAKE
Chris@350 3816 if test -n "$QMAKE"; then
mathieu@468 3817 { echo "$as_me:$LINENO: result: $QMAKE" >&5
mathieu@468 3818 echo "${ECHO_T}$QMAKE" >&6; }
mathieu@468 3819 else
mathieu@468 3820 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 3821 echo "${ECHO_T}no" >&6; }
Chris@350 3822 fi
Chris@350 3823
Chris@350 3824
Chris@354 3825 fi
Chris@354 3826 if test x$QMAKE = x ; then
Chris@354 3827 # Extract the first word of "qmake.exe", so it can be a program name with args.
Chris@350 3828 set dummy qmake.exe; ac_word=$2
mathieu@468 3829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
mathieu@468 3830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
mathieu@468 3831 if test "${ac_cv_prog_QMAKE+set}" = set; then
mathieu@468 3832 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 3833 else
Chris@350 3834 if test -n "$QMAKE"; then
Chris@350 3835 ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
Chris@350 3836 else
Chris@350 3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 3838 for as_dir in $QTDIR/bin/
Chris@350 3839 do
Chris@350 3840 IFS=$as_save_IFS
Chris@350 3841 test -z "$as_dir" && as_dir=.
mathieu@468 3842 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@350 3843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@350 3844 ac_cv_prog_QMAKE="$QTDIR/bin/qmake.exe"
mathieu@468 3845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@350 3846 break 2
Chris@350 3847 fi
Chris@350 3848 done
mathieu@468 3849 done
Chris@350 3850 IFS=$as_save_IFS
Chris@350 3851
Chris@350 3852 fi
Chris@350 3853 fi
Chris@350 3854 QMAKE=$ac_cv_prog_QMAKE
Chris@350 3855 if test -n "$QMAKE"; then
mathieu@468 3856 { echo "$as_me:$LINENO: result: $QMAKE" >&5
mathieu@468 3857 echo "${ECHO_T}$QMAKE" >&6; }
mathieu@468 3858 else
mathieu@468 3859 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 3860 echo "${ECHO_T}no" >&6; }
Chris@350 3861 fi
Chris@350 3862
Chris@350 3863
Chris@354 3864 fi
Chris@354 3865 if test x$QMAKE = x ; then
Chris@354 3866 # Extract the first word of "qmake-qt4", so it can be a program name with args.
Chris@354 3867 set dummy qmake-qt4; ac_word=$2
mathieu@468 3868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
mathieu@468 3869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
mathieu@468 3870 if test "${ac_cv_prog_QMAKE+set}" = set; then
mathieu@468 3871 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@354 3872 else
Chris@354 3873 if test -n "$QMAKE"; then
Chris@354 3874 ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
Chris@354 3875 else
Chris@354 3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@354 3877 for as_dir in $PATH
Chris@354 3878 do
Chris@354 3879 IFS=$as_save_IFS
Chris@354 3880 test -z "$as_dir" && as_dir=.
mathieu@468 3881 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@354 3882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@354 3883 ac_cv_prog_QMAKE="qmake-qt4"
mathieu@468 3884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@354 3885 break 2
Chris@354 3886 fi
Chris@354 3887 done
mathieu@468 3888 done
Chris@354 3889 IFS=$as_save_IFS
Chris@354 3890
Chris@354 3891 fi
Chris@354 3892 fi
Chris@354 3893 QMAKE=$ac_cv_prog_QMAKE
Chris@354 3894 if test -n "$QMAKE"; then
mathieu@468 3895 { echo "$as_me:$LINENO: result: $QMAKE" >&5
mathieu@468 3896 echo "${ECHO_T}$QMAKE" >&6; }
mathieu@468 3897 else
mathieu@468 3898 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 3899 echo "${ECHO_T}no" >&6; }
Chris@354 3900 fi
Chris@354 3901
Chris@354 3902
Chris@354 3903 fi
Chris@354 3904 if test x$QMAKE = x ; then
Chris@354 3905 # Extract the first word of "qmake", so it can be a program name with args.
Chris@354 3906 set dummy qmake; ac_word=$2
mathieu@468 3907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
mathieu@468 3908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
mathieu@468 3909 if test "${ac_cv_prog_QMAKE+set}" = set; then
mathieu@468 3910 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@354 3911 else
Chris@354 3912 if test -n "$QMAKE"; then
Chris@354 3913 ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
Chris@354 3914 else
Chris@354 3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@354 3916 for as_dir in $PATH
Chris@354 3917 do
Chris@354 3918 IFS=$as_save_IFS
Chris@354 3919 test -z "$as_dir" && as_dir=.
mathieu@468 3920 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@354 3921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@354 3922 ac_cv_prog_QMAKE="qmake"
mathieu@468 3923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@354 3924 break 2
Chris@354 3925 fi
Chris@354 3926 done
mathieu@468 3927 done
Chris@354 3928 IFS=$as_save_IFS
Chris@354 3929
Chris@354 3930 fi
Chris@354 3931 fi
Chris@354 3932 QMAKE=$ac_cv_prog_QMAKE
Chris@354 3933 if test -n "$QMAKE"; then
mathieu@468 3934 { echo "$as_me:$LINENO: result: $QMAKE" >&5
mathieu@468 3935 echo "${ECHO_T}$QMAKE" >&6; }
mathieu@468 3936 else
mathieu@468 3937 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 3938 echo "${ECHO_T}no" >&6; }
Chris@354 3939 fi
Chris@354 3940
Chris@354 3941
Chris@354 3942 fi
Chris@354 3943 if test x$QMAKE = x ; then
mathieu@468 3944 { { echo "$as_me:$LINENO: error:
Chris@350 3945 Failed to find the required qmake-qt4 or qmake program. Please
Chris@354 3946 ensure you have the necessary Qt4 development files installed, and
Chris@354 3947 if necessary set QTDIR to the location of your Qt4 installation.
mathieu@468 3948 " >&5
mathieu@468 3949 echo "$as_me: error:
mathieu@468 3950 Failed to find the required qmake-qt4 or qmake program. Please
mathieu@468 3951 ensure you have the necessary Qt4 development files installed, and
mathieu@468 3952 if necessary set QTDIR to the location of your Qt4 installation.
mathieu@468 3953 " >&2;}
mathieu@468 3954 { (exit 1); exit 1; }; }
Chris@350 3955 fi
Chris@350 3956
Chris@350 3957 # Suitable versions of qmake should print out something like:
Chris@350 3958 #
Chris@350 3959 # QMake version 2.01a
Chris@350 3960 # Using Qt version 4.6.3 in /usr/lib
Chris@350 3961 #
Chris@350 3962 # This may be translated, so we check only for the numbers (2.x and 4.x
Chris@350 3963 # in that order).
Chris@350 3964 #
Chris@350 3965 QMAKE_VERSION_OUTPUT=`$QMAKE -v`
Chris@350 3966 case "$QMAKE_VERSION_OUTPUT" in
Chris@350 3967 *2.*4.*) ;;
mathieu@468 3968 *) { echo "$as_me:$LINENO: WARNING:
Chris@350 3969 *** The version of qmake found in \"$QMAKE\" looks like it might be
Chris@350 3970 from the wrong version of Qt (Qt4 is required). Please check
Chris@350 3971 that this is the correct version of qmake for Qt4 builds.
Chris@350 3972 " >&5
mathieu@468 3973 echo "$as_me: WARNING:
Chris@350 3974 *** The version of qmake found in \"$QMAKE\" looks like it might be
Chris@350 3975 from the wrong version of Qt (Qt4 is required). Please check
Chris@350 3976 that this is the correct version of qmake for Qt4 builds.
Chris@350 3977 " >&2;}
Chris@350 3978 esac
Chris@350 3979
Chris@359 3980 case "`uname`" in
Chris@360 3981 *Darwin*) QMAKE="$QMAKE -spec macx-g++";;
Chris@359 3982 esac
Chris@359 3983
Chris@350 3984
Chris@350 3985
Chris@350 3986 SV_DEFINES_DEBUG="-DDEBUG -DBUILD_DEBUG -DWANT_TIMING"
Chris@350 3987 SV_DEFINES_RELEASE="-DNDEBUG -DBUILD_RELEASE -DNO_TIMING"
Chris@350 3988 SV_DEFINES_MINIMAL="$SV_DEFINES_RELEASE"
Chris@350 3989
Chris@350 3990 # Now we have: USER_CXXFLAGS contains any flags the user set
Chris@350 3991 # explicitly; AUTOCONF_CXXFLAGS contains flags that Autoconf thought
Chris@350 3992 # we should use. If we have GCC, we override the latter but then
Chris@350 3993 # allow ourselves to be overridden (later) by the former
Chris@350 3994
Chris@350 3995 CXXFLAGS_DEBUG="$AUTOCONF_CXXFLAGS"
Chris@350 3996 CXXFLAGS_RELEASE="$AUTOCONF_CXXFLAGS"
Chris@350 3997 CXXFLAGS_MINIMAL="$AUTOCONF_CXXFLAGS"
Chris@350 3998
Chris@350 3999 if test "x$GCC" = "xyes"; then
Chris@350 4000 CXXFLAGS_DEBUG="-Wall -Woverloaded-virtual -Wextra -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -g -pipe"
Chris@350 4001 CXXFLAGS_RELEASE="-g0 -O2 -Wall -pipe"
Chris@350 4002 CXXFLAGS_MINIMAL="-g0 -O0"
Chris@350 4003 fi
Chris@350 4004
Chris@350 4005 CXXFLAGS_BUILD="$CXXFLAGS_RELEASE"
Chris@350 4006 SV_DEFINES_BUILD="$SV_DEFINES_RELEASE"
Chris@350 4007
Chris@361 4008 QMAKE_CONFIG="release"
Chris@361 4009
Chris@350 4010 # Check whether --enable-debug was given.
mathieu@468 4011 if test "${enable_debug+set}" = set; then
mathieu@468 4012 enableval=$enable_debug; { echo "$as_me:$LINENO: enabling debug build" >&5
mathieu@468 4013 echo "$as_me: enabling debug build" >&6;}
Chris@361 4014 QMAKE_CONFIG="debug"
Chris@350 4015 CXXFLAGS_BUILD="$CXXFLAGS_DEBUG"
Chris@350 4016 SV_DEFINES_BUILD="$SV_DEFINES_DEBUG"
Chris@350 4017 fi
Chris@350 4018
Chris@350 4019
Chris@350 4020 if test x"$USER_CXXFLAGS" != x; then
mathieu@468 4021 { echo "$as_me:$LINENO: The CXXFLAGS environment variable is set to \"$USER_CXXFLAGS\"." >&5
mathieu@468 4022 echo "$as_me: The CXXFLAGS environment variable is set to \"$USER_CXXFLAGS\"." >&6;}
mathieu@468 4023 { echo "$as_me:$LINENO: Overriding default compiler flags with the above user setting." >&5
mathieu@468 4024 echo "$as_me: Overriding default compiler flags with the above user setting." >&6;}
Chris@350 4025 CXXFLAGS_BUILD="$USER_CXXFLAGS"
Chris@350 4026 CXXFLAGS_MINIMAL="$USER_CXXFLAGS"
Chris@350 4027 fi
Chris@350 4028
Chris@350 4029 CXXFLAGS="$CXXFLAGS_BUILD $SV_DEFINES_BUILD"
Chris@350 4030
Chris@350 4031 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
mathieu@468 4032
mathieu@468 4033
mathieu@468 4034
mathieu@468 4035
mathieu@468 4036
mathieu@468 4037
mathieu@468 4038
mathieu@468 4039
mathieu@468 4040
Chris@350 4041 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Chris@350 4042 inttypes.h stdint.h unistd.h
mathieu@468 4043 do
mathieu@468 4044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
mathieu@468 4045 { echo "$as_me:$LINENO: checking for $ac_header" >&5
mathieu@468 4046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
mathieu@468 4047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 4048 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 4049 else
mathieu@468 4050 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 4051 /* confdefs.h. */
mathieu@468 4052 _ACEOF
mathieu@468 4053 cat confdefs.h >>conftest.$ac_ext
mathieu@468 4054 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 4055 /* end confdefs.h. */
mathieu@468 4056 $ac_includes_default
mathieu@468 4057
mathieu@468 4058 #include <$ac_header>
mathieu@468 4059 _ACEOF
mathieu@468 4060 rm -f conftest.$ac_objext
mathieu@468 4061 if { (ac_try="$ac_compile"
mathieu@468 4062 case "(($ac_try" in
mathieu@468 4063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 4064 *) ac_try_echo=$ac_try;;
mathieu@468 4065 esac
mathieu@468 4066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 4067 (eval "$ac_compile") 2>conftest.er1
mathieu@468 4068 ac_status=$?
mathieu@468 4069 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 4070 rm -f conftest.er1
mathieu@468 4071 cat conftest.err >&5
mathieu@468 4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 4073 (exit $ac_status); } && {
mathieu@468 4074 test -z "$ac_cxx_werror_flag" ||
mathieu@468 4075 test ! -s conftest.err
mathieu@468 4076 } && test -s conftest.$ac_objext; then
mathieu@468 4077 eval "$as_ac_Header=yes"
mathieu@468 4078 else
mathieu@468 4079 echo "$as_me: failed program was:" >&5
mathieu@468 4080 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 4081
mathieu@468 4082 eval "$as_ac_Header=no"
mathieu@468 4083 fi
mathieu@468 4084
mathieu@468 4085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 4086 fi
mathieu@468 4087 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 4088 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 4089 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 4090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 4091 cat >>confdefs.h <<_ACEOF
mathieu@468 4092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris@350 4093 _ACEOF
Chris@350 4094
Chris@350 4095 fi
Chris@350 4096
Chris@350 4097 done
Chris@350 4098
Chris@350 4099
Chris@350 4100
Chris@350 4101 SV_MODULE_MODULE=bz2
Chris@350 4102 SV_MODULE_VERSION_TEST=""
Chris@350 4103 SV_MODULE_HEADER=bzlib.h
Chris@350 4104 SV_MODULE_LIB=bz2
Chris@350 4105 SV_MODULE_FUNC=BZ2_bzReadOpen
Chris@350 4106 SV_MODULE_HAVE=HAVE_$(echo bz2 | tr 'a-z' 'A-Z')
Chris@350 4107 SV_MODULE_FAILED=1
Chris@405 4108 if test -n "$bz2_LIBS" ; then
mathieu@468 4109 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 4110 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@405 4111 CXXFLAGS="$CXXFLAGS $bz2_CFLAGS"
Chris@405 4112 LIBS="$LIBS $bz2_LIBS"
Chris@405 4113 SV_MODULE_FAILED=""
Chris@405 4114 fi
Chris@350 4115 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 4116 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 4117 fi
Chris@405 4118 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
mathieu@480 4119 PKG_CHECK_MODULES(bz2,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $bz2_CFLAGS";LIBS="$LIBS $bz2_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means]))
Chris@457 4120 fi
Chris@457 4121 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 4122 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 4123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 4124 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 4125 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 4126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 4127 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 4128 fi
mathieu@468 4129 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 4130 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 4131 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 4132 else
mathieu@468 4133 # Is the header compilable?
mathieu@468 4134 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 4135 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 4136 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 4137 /* confdefs.h. */
mathieu@468 4138 _ACEOF
mathieu@468 4139 cat confdefs.h >>conftest.$ac_ext
mathieu@468 4140 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 4141 /* end confdefs.h. */
mathieu@468 4142 $ac_includes_default
mathieu@468 4143 #include <$SV_MODULE_HEADER>
mathieu@468 4144 _ACEOF
mathieu@468 4145 rm -f conftest.$ac_objext
mathieu@468 4146 if { (ac_try="$ac_compile"
mathieu@468 4147 case "(($ac_try" in
mathieu@468 4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 4149 *) ac_try_echo=$ac_try;;
mathieu@468 4150 esac
mathieu@468 4151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 4152 (eval "$ac_compile") 2>conftest.er1
Chris@350 4153 ac_status=$?
mathieu@468 4154 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 4155 rm -f conftest.er1
mathieu@468 4156 cat conftest.err >&5
mathieu@468 4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 4158 (exit $ac_status); } && {
mathieu@468 4159 test -z "$ac_cxx_werror_flag" ||
mathieu@468 4160 test ! -s conftest.err
mathieu@468 4161 } && test -s conftest.$ac_objext; then
mathieu@468 4162 ac_header_compiler=yes
mathieu@468 4163 else
mathieu@468 4164 echo "$as_me: failed program was:" >&5
mathieu@468 4165 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 4166
mathieu@468 4167 ac_header_compiler=no
mathieu@468 4168 fi
mathieu@468 4169
mathieu@468 4170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 4171 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 4172 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 4173
mathieu@468 4174 # Is the header present?
mathieu@468 4175 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 4176 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 4177 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 4178 /* confdefs.h. */
mathieu@468 4179 _ACEOF
mathieu@468 4180 cat confdefs.h >>conftest.$ac_ext
mathieu@468 4181 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 4182 /* end confdefs.h. */
mathieu@468 4183 #include <$SV_MODULE_HEADER>
mathieu@468 4184 _ACEOF
mathieu@468 4185 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 4186 case "(($ac_try" in
mathieu@468 4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 4188 *) ac_try_echo=$ac_try;;
mathieu@468 4189 esac
mathieu@468 4190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 4191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris@350 4192 ac_status=$?
mathieu@468 4193 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 4194 rm -f conftest.er1
mathieu@468 4195 cat conftest.err >&5
mathieu@468 4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 4197 (exit $ac_status); } >/dev/null && {
mathieu@468 4198 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 4199 test ! -s conftest.err
mathieu@468 4200 }; then
mathieu@468 4201 ac_header_preproc=yes
mathieu@468 4202 else
mathieu@468 4203 echo "$as_me: failed program was:" >&5
mathieu@468 4204 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 4205
mathieu@468 4206 ac_header_preproc=no
mathieu@468 4207 fi
mathieu@468 4208
mathieu@468 4209 rm -f conftest.err conftest.$ac_ext
mathieu@468 4210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 4211 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 4212
mathieu@468 4213 # So? What about this header?
mathieu@468 4214 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 4215 yes:no: )
mathieu@468 4216 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 4217 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 4218 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 4219 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 4220 ac_header_preproc=yes
mathieu@468 4221 ;;
mathieu@468 4222 no:yes:* )
mathieu@468 4223 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 4224 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 4225 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 4226 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 4227 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 4228 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 4229 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 4230 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 4231 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 4232 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 4233 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 4234 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 4235 ( cat <<\_ASBOX
mathieu@468 4236 ## ------------------------------------------- ##
mathieu@468 4237 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 4238 ## ------------------------------------------- ##
mathieu@468 4239 _ASBOX
mathieu@468 4240 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 4241 ;;
mathieu@468 4242 esac
mathieu@468 4243 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 4244 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 4245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 4246 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 4247 else
mathieu@468 4248 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 4249 fi
mathieu@468 4250 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 4251 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 4252 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 4253
mathieu@468 4254 fi
mathieu@468 4255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 4256 HAVES="$HAVES $SV_MODULE_HAVE"
Chris@350 4257 else
mathieu@468 4258 { { echo "$as_me:$LINENO: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&5
mathieu@468 4259 echo "$as_me: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 4260 { (exit 1); exit 1; }; }
Chris@350 4261 fi
Chris@350 4262
Chris@350 4263
Chris@350 4264 if test -n "$SV_MODULE_LIB"; then
mathieu@468 4265 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 4266 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 4267 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 4268 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 4269 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 4270 else
Chris@350 4271 ac_check_lib_save_LIBS=$LIBS
Chris@350 4272 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 4273 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 4274 /* confdefs.h. */
mathieu@468 4275 _ACEOF
mathieu@468 4276 cat confdefs.h >>conftest.$ac_ext
mathieu@468 4277 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 4278 /* end confdefs.h. */
Chris@350 4279
Chris@350 4280 /* Override any GCC internal prototype to avoid an error.
Chris@350 4281 Use char because int might match the return type of a GCC
Chris@350 4282 builtin and then its argument prototype would still apply. */
Chris@350 4283 #ifdef __cplusplus
Chris@350 4284 extern "C"
Chris@350 4285 #endif
Chris@350 4286 char $SV_MODULE_FUNC ();
Chris@350 4287 int
Chris@350 4288 main ()
Chris@350 4289 {
Chris@350 4290 return $SV_MODULE_FUNC ();
Chris@350 4291 ;
Chris@350 4292 return 0;
Chris@350 4293 }
Chris@350 4294 _ACEOF
mathieu@468 4295 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 4296 if { (ac_try="$ac_link"
mathieu@468 4297 case "(($ac_try" in
mathieu@468 4298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 4299 *) ac_try_echo=$ac_try;;
mathieu@468 4300 esac
mathieu@468 4301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 4302 (eval "$ac_link") 2>conftest.er1
mathieu@468 4303 ac_status=$?
mathieu@468 4304 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 4305 rm -f conftest.er1
mathieu@468 4306 cat conftest.err >&5
mathieu@468 4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 4308 (exit $ac_status); } && {
mathieu@468 4309 test -z "$ac_cxx_werror_flag" ||
mathieu@468 4310 test ! -s conftest.err
mathieu@468 4311 } && test -s conftest$ac_exeext &&
mathieu@468 4312 $as_test_x conftest$ac_exeext; then
Chris@350 4313 eval "$as_ac_Lib=yes"
Chris@350 4314 else
mathieu@468 4315 echo "$as_me: failed program was:" >&5
mathieu@468 4316 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 4317
mathieu@468 4318 eval "$as_ac_Lib=no"
mathieu@468 4319 fi
mathieu@468 4320
mathieu@468 4321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 4322 conftest$ac_exeext conftest.$ac_ext
Chris@350 4323 LIBS=$ac_check_lib_save_LIBS
Chris@350 4324 fi
mathieu@468 4325 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 4326 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 4327 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 4328 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@350 4329 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 4330 else
mathieu@468 4331 { { echo "$as_me:$LINENO: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&5
mathieu@468 4332 echo "$as_me: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 4333 { (exit 1); exit 1; }; }
Chris@350 4334 fi
Chris@350 4335
Chris@350 4336 fi
Chris@350 4337 fi
Chris@350 4338
Chris@350 4339
Chris@350 4340 SV_MODULE_MODULE=fftw3
Chris@350 4341 SV_MODULE_VERSION_TEST="fftw3 >= 3.0.0"
Chris@350 4342 SV_MODULE_HEADER=fftw3.h
Chris@350 4343 SV_MODULE_LIB=fftw3
Chris@350 4344 SV_MODULE_FUNC=fftw_execute
Chris@350 4345 SV_MODULE_HAVE=HAVE_$(echo fftw3 | tr 'a-z' 'A-Z')
Chris@350 4346 SV_MODULE_FAILED=1
Chris@405 4347 if test -n "$fftw3_LIBS" ; then
mathieu@468 4348 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 4349 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@405 4350 CXXFLAGS="$CXXFLAGS $fftw3_CFLAGS"
Chris@405 4351 LIBS="$LIBS $fftw3_LIBS"
Chris@405 4352 SV_MODULE_FAILED=""
Chris@405 4353 fi
Chris@350 4354 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 4355 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 4356 fi
Chris@405 4357 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
mathieu@480 4358 PKG_CHECK_MODULES(fftw3,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $fftw3_CFLAGS";LIBS="$LIBS $fftw3_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means]))
Chris@457 4359 fi
Chris@457 4360 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 4361 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 4362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 4363 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 4364 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 4365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 4366 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 4367 fi
mathieu@468 4368 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 4369 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 4370 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 4371 else
mathieu@468 4372 # Is the header compilable?
mathieu@468 4373 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 4374 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 4375 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 4376 /* confdefs.h. */
mathieu@468 4377 _ACEOF
mathieu@468 4378 cat confdefs.h >>conftest.$ac_ext
mathieu@468 4379 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 4380 /* end confdefs.h. */
mathieu@468 4381 $ac_includes_default
mathieu@468 4382 #include <$SV_MODULE_HEADER>
mathieu@468 4383 _ACEOF
mathieu@468 4384 rm -f conftest.$ac_objext
mathieu@468 4385 if { (ac_try="$ac_compile"
mathieu@468 4386 case "(($ac_try" in
mathieu@468 4387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 4388 *) ac_try_echo=$ac_try;;
mathieu@468 4389 esac
mathieu@468 4390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 4391 (eval "$ac_compile") 2>conftest.er1
Chris@350 4392 ac_status=$?
mathieu@468 4393 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 4394 rm -f conftest.er1
mathieu@468 4395 cat conftest.err >&5
mathieu@468 4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 4397 (exit $ac_status); } && {
mathieu@468 4398 test -z "$ac_cxx_werror_flag" ||
mathieu@468 4399 test ! -s conftest.err
mathieu@468 4400 } && test -s conftest.$ac_objext; then
mathieu@468 4401 ac_header_compiler=yes
mathieu@468 4402 else
mathieu@468 4403 echo "$as_me: failed program was:" >&5
mathieu@468 4404 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 4405
mathieu@468 4406 ac_header_compiler=no
mathieu@468 4407 fi
mathieu@468 4408
mathieu@468 4409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 4410 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 4411 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 4412
mathieu@468 4413 # Is the header present?
mathieu@468 4414 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 4415 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 4416 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 4417 /* confdefs.h. */
mathieu@468 4418 _ACEOF
mathieu@468 4419 cat confdefs.h >>conftest.$ac_ext
mathieu@468 4420 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 4421 /* end confdefs.h. */
mathieu@468 4422 #include <$SV_MODULE_HEADER>
mathieu@468 4423 _ACEOF
mathieu@468 4424 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 4425 case "(($ac_try" in
mathieu@468 4426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 4427 *) ac_try_echo=$ac_try;;
mathieu@468 4428 esac
mathieu@468 4429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 4430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris@350 4431 ac_status=$?
mathieu@468 4432 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 4433 rm -f conftest.er1
mathieu@468 4434 cat conftest.err >&5
mathieu@468 4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 4436 (exit $ac_status); } >/dev/null && {
mathieu@468 4437 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 4438 test ! -s conftest.err
mathieu@468 4439 }; then
mathieu@468 4440 ac_header_preproc=yes
mathieu@468 4441 else
mathieu@468 4442 echo "$as_me: failed program was:" >&5
mathieu@468 4443 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 4444
mathieu@468 4445 ac_header_preproc=no
mathieu@468 4446 fi
mathieu@468 4447
mathieu@468 4448 rm -f conftest.err conftest.$ac_ext
mathieu@468 4449 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 4450 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 4451
mathieu@468 4452 # So? What about this header?
mathieu@468 4453 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 4454 yes:no: )
mathieu@468 4455 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 4456 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 4457 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 4458 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 4459 ac_header_preproc=yes
mathieu@468 4460 ;;
mathieu@468 4461 no:yes:* )
mathieu@468 4462 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 4463 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 4464 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 4465 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 4466 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 4467 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 4468 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 4469 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 4470 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 4471 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 4472 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 4473 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 4474 ( cat <<\_ASBOX
mathieu@468 4475 ## ------------------------------------------- ##
mathieu@468 4476 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 4477 ## ------------------------------------------- ##
mathieu@468 4478 _ASBOX
mathieu@468 4479 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 4480 ;;
mathieu@468 4481 esac
mathieu@468 4482 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 4483 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 4484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 4485 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 4486 else
mathieu@468 4487 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 4488 fi
mathieu@468 4489 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 4490 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 4491 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 4492
mathieu@468 4493 fi
mathieu@468 4494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 4495 HAVES="$HAVES $SV_MODULE_HAVE"
Chris@350 4496 else
mathieu@468 4497 { { echo "$as_me:$LINENO: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&5
mathieu@468 4498 echo "$as_me: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 4499 { (exit 1); exit 1; }; }
Chris@350 4500 fi
Chris@350 4501
Chris@350 4502
Chris@350 4503 if test -n "$SV_MODULE_LIB"; then
mathieu@468 4504 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 4505 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 4506 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 4507 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 4508 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 4509 else
Chris@350 4510 ac_check_lib_save_LIBS=$LIBS
Chris@350 4511 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 4512 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 4513 /* confdefs.h. */
mathieu@468 4514 _ACEOF
mathieu@468 4515 cat confdefs.h >>conftest.$ac_ext
mathieu@468 4516 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 4517 /* end confdefs.h. */
Chris@350 4518
Chris@350 4519 /* Override any GCC internal prototype to avoid an error.
Chris@350 4520 Use char because int might match the return type of a GCC
Chris@350 4521 builtin and then its argument prototype would still apply. */
Chris@350 4522 #ifdef __cplusplus
Chris@350 4523 extern "C"
Chris@350 4524 #endif
Chris@350 4525 char $SV_MODULE_FUNC ();
Chris@350 4526 int
Chris@350 4527 main ()
Chris@350 4528 {
Chris@350 4529 return $SV_MODULE_FUNC ();
Chris@350 4530 ;
Chris@350 4531 return 0;
Chris@350 4532 }
Chris@350 4533 _ACEOF
mathieu@468 4534 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 4535 if { (ac_try="$ac_link"
mathieu@468 4536 case "(($ac_try" in
mathieu@468 4537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 4538 *) ac_try_echo=$ac_try;;
mathieu@468 4539 esac
mathieu@468 4540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 4541 (eval "$ac_link") 2>conftest.er1
mathieu@468 4542 ac_status=$?
mathieu@468 4543 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 4544 rm -f conftest.er1
mathieu@468 4545 cat conftest.err >&5
mathieu@468 4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 4547 (exit $ac_status); } && {
mathieu@468 4548 test -z "$ac_cxx_werror_flag" ||
mathieu@468 4549 test ! -s conftest.err
mathieu@468 4550 } && test -s conftest$ac_exeext &&
mathieu@468 4551 $as_test_x conftest$ac_exeext; then
Chris@350 4552 eval "$as_ac_Lib=yes"
Chris@350 4553 else
mathieu@468 4554 echo "$as_me: failed program was:" >&5
mathieu@468 4555 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 4556
mathieu@468 4557 eval "$as_ac_Lib=no"
mathieu@468 4558 fi
mathieu@468 4559
mathieu@468 4560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 4561 conftest$ac_exeext conftest.$ac_ext
Chris@350 4562 LIBS=$ac_check_lib_save_LIBS
Chris@350 4563 fi
mathieu@468 4564 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 4565 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 4566 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 4567 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@350 4568 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 4569 else
mathieu@468 4570 { { echo "$as_me:$LINENO: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&5
mathieu@468 4571 echo "$as_me: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 4572 { (exit 1); exit 1; }; }
Chris@350 4573 fi
Chris@350 4574
Chris@350 4575 fi
Chris@350 4576 fi
Chris@350 4577
Chris@350 4578
Chris@350 4579 SV_MODULE_MODULE=fftw3f
Chris@350 4580 SV_MODULE_VERSION_TEST="fftw3f >= 3.0.0"
Chris@350 4581 SV_MODULE_HEADER=fftw3.h
Chris@350 4582 SV_MODULE_LIB=fftw3f
Chris@350 4583 SV_MODULE_FUNC=fftwf_execute
Chris@350 4584 SV_MODULE_HAVE=HAVE_$(echo fftw3f | tr 'a-z' 'A-Z')
Chris@350 4585 SV_MODULE_FAILED=1
Chris@405 4586 if test -n "$fftw3f_LIBS" ; then
mathieu@468 4587 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 4588 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@405 4589 CXXFLAGS="$CXXFLAGS $fftw3f_CFLAGS"
Chris@405 4590 LIBS="$LIBS $fftw3f_LIBS"
Chris@405 4591 SV_MODULE_FAILED=""
Chris@405 4592 fi
Chris@350 4593 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 4594 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 4595 fi
Chris@405 4596 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
mathieu@480 4597 PKG_CHECK_MODULES(fftw3f,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $fftw3f_CFLAGS";LIBS="$LIBS $fftw3f_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means]))
Chris@457 4598 fi
Chris@457 4599 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 4600 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 4601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 4602 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 4603 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 4604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 4605 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 4606 fi
mathieu@468 4607 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 4608 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 4609 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 4610 else
mathieu@468 4611 # Is the header compilable?
mathieu@468 4612 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 4613 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 4614 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 4615 /* confdefs.h. */
mathieu@468 4616 _ACEOF
mathieu@468 4617 cat confdefs.h >>conftest.$ac_ext
mathieu@468 4618 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 4619 /* end confdefs.h. */
mathieu@468 4620 $ac_includes_default
mathieu@468 4621 #include <$SV_MODULE_HEADER>
mathieu@468 4622 _ACEOF
mathieu@468 4623 rm -f conftest.$ac_objext
mathieu@468 4624 if { (ac_try="$ac_compile"
mathieu@468 4625 case "(($ac_try" in
mathieu@468 4626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 4627 *) ac_try_echo=$ac_try;;
mathieu@468 4628 esac
mathieu@468 4629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 4630 (eval "$ac_compile") 2>conftest.er1
Chris@350 4631 ac_status=$?
mathieu@468 4632 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 4633 rm -f conftest.er1
mathieu@468 4634 cat conftest.err >&5
mathieu@468 4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 4636 (exit $ac_status); } && {
mathieu@468 4637 test -z "$ac_cxx_werror_flag" ||
mathieu@468 4638 test ! -s conftest.err
mathieu@468 4639 } && test -s conftest.$ac_objext; then
mathieu@468 4640 ac_header_compiler=yes
mathieu@468 4641 else
mathieu@468 4642 echo "$as_me: failed program was:" >&5
mathieu@468 4643 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 4644
mathieu@468 4645 ac_header_compiler=no
mathieu@468 4646 fi
mathieu@468 4647
mathieu@468 4648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 4649 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 4650 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 4651
mathieu@468 4652 # Is the header present?
mathieu@468 4653 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 4654 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 4655 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 4656 /* confdefs.h. */
mathieu@468 4657 _ACEOF
mathieu@468 4658 cat confdefs.h >>conftest.$ac_ext
mathieu@468 4659 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 4660 /* end confdefs.h. */
mathieu@468 4661 #include <$SV_MODULE_HEADER>
mathieu@468 4662 _ACEOF
mathieu@468 4663 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 4664 case "(($ac_try" in
mathieu@468 4665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 4666 *) ac_try_echo=$ac_try;;
mathieu@468 4667 esac
mathieu@468 4668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 4669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris@350 4670 ac_status=$?
mathieu@468 4671 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 4672 rm -f conftest.er1
mathieu@468 4673 cat conftest.err >&5
mathieu@468 4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 4675 (exit $ac_status); } >/dev/null && {
mathieu@468 4676 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 4677 test ! -s conftest.err
mathieu@468 4678 }; then
mathieu@468 4679 ac_header_preproc=yes
mathieu@468 4680 else
mathieu@468 4681 echo "$as_me: failed program was:" >&5
mathieu@468 4682 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 4683
mathieu@468 4684 ac_header_preproc=no
mathieu@468 4685 fi
mathieu@468 4686
mathieu@468 4687 rm -f conftest.err conftest.$ac_ext
mathieu@468 4688 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 4689 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 4690
mathieu@468 4691 # So? What about this header?
mathieu@468 4692 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 4693 yes:no: )
mathieu@468 4694 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 4695 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 4696 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 4697 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 4698 ac_header_preproc=yes
mathieu@468 4699 ;;
mathieu@468 4700 no:yes:* )
mathieu@468 4701 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 4702 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 4703 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 4704 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 4705 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 4706 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 4707 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 4708 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 4709 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 4710 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 4711 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 4712 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 4713 ( cat <<\_ASBOX
mathieu@468 4714 ## ------------------------------------------- ##
mathieu@468 4715 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 4716 ## ------------------------------------------- ##
mathieu@468 4717 _ASBOX
mathieu@468 4718 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 4719 ;;
mathieu@468 4720 esac
mathieu@468 4721 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 4722 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 4723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 4724 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 4725 else
mathieu@468 4726 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 4727 fi
mathieu@468 4728 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 4729 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 4730 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 4731
mathieu@468 4732 fi
mathieu@468 4733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 4734 HAVES="$HAVES $SV_MODULE_HAVE"
Chris@350 4735 else
mathieu@468 4736 { { echo "$as_me:$LINENO: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&5
mathieu@468 4737 echo "$as_me: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 4738 { (exit 1); exit 1; }; }
Chris@350 4739 fi
Chris@350 4740
Chris@350 4741
Chris@350 4742 if test -n "$SV_MODULE_LIB"; then
mathieu@468 4743 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 4744 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 4745 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 4746 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 4747 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 4748 else
Chris@350 4749 ac_check_lib_save_LIBS=$LIBS
Chris@350 4750 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 4751 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 4752 /* confdefs.h. */
mathieu@468 4753 _ACEOF
mathieu@468 4754 cat confdefs.h >>conftest.$ac_ext
mathieu@468 4755 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 4756 /* end confdefs.h. */
Chris@350 4757
Chris@350 4758 /* Override any GCC internal prototype to avoid an error.
Chris@350 4759 Use char because int might match the return type of a GCC
Chris@350 4760 builtin and then its argument prototype would still apply. */
Chris@350 4761 #ifdef __cplusplus
Chris@350 4762 extern "C"
Chris@350 4763 #endif
Chris@350 4764 char $SV_MODULE_FUNC ();
Chris@350 4765 int
Chris@350 4766 main ()
Chris@350 4767 {
Chris@350 4768 return $SV_MODULE_FUNC ();
Chris@350 4769 ;
Chris@350 4770 return 0;
Chris@350 4771 }
Chris@350 4772 _ACEOF
mathieu@468 4773 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 4774 if { (ac_try="$ac_link"
mathieu@468 4775 case "(($ac_try" in
mathieu@468 4776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 4777 *) ac_try_echo=$ac_try;;
mathieu@468 4778 esac
mathieu@468 4779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 4780 (eval "$ac_link") 2>conftest.er1
mathieu@468 4781 ac_status=$?
mathieu@468 4782 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 4783 rm -f conftest.er1
mathieu@468 4784 cat conftest.err >&5
mathieu@468 4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 4786 (exit $ac_status); } && {
mathieu@468 4787 test -z "$ac_cxx_werror_flag" ||
mathieu@468 4788 test ! -s conftest.err
mathieu@468 4789 } && test -s conftest$ac_exeext &&
mathieu@468 4790 $as_test_x conftest$ac_exeext; then
Chris@350 4791 eval "$as_ac_Lib=yes"
Chris@350 4792 else
mathieu@468 4793 echo "$as_me: failed program was:" >&5
mathieu@468 4794 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 4795
mathieu@468 4796 eval "$as_ac_Lib=no"
mathieu@468 4797 fi
mathieu@468 4798
mathieu@468 4799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 4800 conftest$ac_exeext conftest.$ac_ext
Chris@350 4801 LIBS=$ac_check_lib_save_LIBS
Chris@350 4802 fi
mathieu@468 4803 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 4804 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 4805 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 4806 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@350 4807 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 4808 else
mathieu@468 4809 { { echo "$as_me:$LINENO: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&5
mathieu@468 4810 echo "$as_me: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 4811 { (exit 1); exit 1; }; }
Chris@350 4812 fi
Chris@350 4813
Chris@350 4814 fi
Chris@350 4815 fi
Chris@350 4816
Chris@350 4817
Chris@350 4818 SV_MODULE_MODULE=sndfile
Chris@350 4819 SV_MODULE_VERSION_TEST="sndfile >= 1.0.16"
Chris@350 4820 SV_MODULE_HEADER=sndfile.h
Chris@350 4821 SV_MODULE_LIB=sndfile
Chris@350 4822 SV_MODULE_FUNC=sf_open
Chris@350 4823 SV_MODULE_HAVE=HAVE_$(echo sndfile | tr 'a-z' 'A-Z')
Chris@350 4824 SV_MODULE_FAILED=1
Chris@405 4825 if test -n "$sndfile_LIBS" ; then
mathieu@468 4826 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 4827 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@405 4828 CXXFLAGS="$CXXFLAGS $sndfile_CFLAGS"
Chris@405 4829 LIBS="$LIBS $sndfile_LIBS"
Chris@405 4830 SV_MODULE_FAILED=""
Chris@405 4831 fi
Chris@350 4832 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 4833 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 4834 fi
Chris@405 4835 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
mathieu@480 4836 PKG_CHECK_MODULES(sndfile,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $sndfile_CFLAGS";LIBS="$LIBS $sndfile_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means]))
Chris@457 4837 fi
Chris@457 4838 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 4839 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 4840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 4841 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 4842 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 4843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 4844 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 4845 fi
mathieu@468 4846 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 4847 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 4848 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 4849 else
mathieu@468 4850 # Is the header compilable?
mathieu@468 4851 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 4852 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 4853 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 4854 /* confdefs.h. */
mathieu@468 4855 _ACEOF
mathieu@468 4856 cat confdefs.h >>conftest.$ac_ext
mathieu@468 4857 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 4858 /* end confdefs.h. */
mathieu@468 4859 $ac_includes_default
mathieu@468 4860 #include <$SV_MODULE_HEADER>
mathieu@468 4861 _ACEOF
mathieu@468 4862 rm -f conftest.$ac_objext
mathieu@468 4863 if { (ac_try="$ac_compile"
mathieu@468 4864 case "(($ac_try" in
mathieu@468 4865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 4866 *) ac_try_echo=$ac_try;;
mathieu@468 4867 esac
mathieu@468 4868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 4869 (eval "$ac_compile") 2>conftest.er1
Chris@350 4870 ac_status=$?
mathieu@468 4871 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 4872 rm -f conftest.er1
mathieu@468 4873 cat conftest.err >&5
mathieu@468 4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 4875 (exit $ac_status); } && {
mathieu@468 4876 test -z "$ac_cxx_werror_flag" ||
mathieu@468 4877 test ! -s conftest.err
mathieu@468 4878 } && test -s conftest.$ac_objext; then
mathieu@468 4879 ac_header_compiler=yes
mathieu@468 4880 else
mathieu@468 4881 echo "$as_me: failed program was:" >&5
mathieu@468 4882 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 4883
mathieu@468 4884 ac_header_compiler=no
mathieu@468 4885 fi
mathieu@468 4886
mathieu@468 4887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 4888 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 4889 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 4890
mathieu@468 4891 # Is the header present?
mathieu@468 4892 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 4893 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 4894 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 4895 /* confdefs.h. */
mathieu@468 4896 _ACEOF
mathieu@468 4897 cat confdefs.h >>conftest.$ac_ext
mathieu@468 4898 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 4899 /* end confdefs.h. */
mathieu@468 4900 #include <$SV_MODULE_HEADER>
mathieu@468 4901 _ACEOF
mathieu@468 4902 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 4903 case "(($ac_try" in
mathieu@468 4904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 4905 *) ac_try_echo=$ac_try;;
mathieu@468 4906 esac
mathieu@468 4907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 4908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris@350 4909 ac_status=$?
mathieu@468 4910 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 4911 rm -f conftest.er1
mathieu@468 4912 cat conftest.err >&5
mathieu@468 4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 4914 (exit $ac_status); } >/dev/null && {
mathieu@468 4915 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 4916 test ! -s conftest.err
mathieu@468 4917 }; then
mathieu@468 4918 ac_header_preproc=yes
mathieu@468 4919 else
mathieu@468 4920 echo "$as_me: failed program was:" >&5
mathieu@468 4921 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 4922
mathieu@468 4923 ac_header_preproc=no
mathieu@468 4924 fi
mathieu@468 4925
mathieu@468 4926 rm -f conftest.err conftest.$ac_ext
mathieu@468 4927 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 4928 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 4929
mathieu@468 4930 # So? What about this header?
mathieu@468 4931 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 4932 yes:no: )
mathieu@468 4933 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 4934 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 4935 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 4936 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 4937 ac_header_preproc=yes
mathieu@468 4938 ;;
mathieu@468 4939 no:yes:* )
mathieu@468 4940 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 4941 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 4942 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 4943 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 4944 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 4945 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 4946 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 4947 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 4948 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 4949 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 4950 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 4951 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 4952 ( cat <<\_ASBOX
mathieu@468 4953 ## ------------------------------------------- ##
mathieu@468 4954 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 4955 ## ------------------------------------------- ##
mathieu@468 4956 _ASBOX
mathieu@468 4957 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 4958 ;;
mathieu@468 4959 esac
mathieu@468 4960 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 4961 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 4962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 4963 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 4964 else
mathieu@468 4965 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 4966 fi
mathieu@468 4967 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 4968 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 4969 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 4970
mathieu@468 4971 fi
mathieu@468 4972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 4973 HAVES="$HAVES $SV_MODULE_HAVE"
Chris@350 4974 else
mathieu@468 4975 { { echo "$as_me:$LINENO: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&5
mathieu@468 4976 echo "$as_me: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 4977 { (exit 1); exit 1; }; }
Chris@350 4978 fi
Chris@350 4979
Chris@350 4980
Chris@350 4981 if test -n "$SV_MODULE_LIB"; then
mathieu@468 4982 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 4983 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 4984 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 4985 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 4986 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 4987 else
Chris@350 4988 ac_check_lib_save_LIBS=$LIBS
Chris@350 4989 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 4990 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 4991 /* confdefs.h. */
mathieu@468 4992 _ACEOF
mathieu@468 4993 cat confdefs.h >>conftest.$ac_ext
mathieu@468 4994 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 4995 /* end confdefs.h. */
Chris@350 4996
Chris@350 4997 /* Override any GCC internal prototype to avoid an error.
Chris@350 4998 Use char because int might match the return type of a GCC
Chris@350 4999 builtin and then its argument prototype would still apply. */
Chris@350 5000 #ifdef __cplusplus
Chris@350 5001 extern "C"
Chris@350 5002 #endif
Chris@350 5003 char $SV_MODULE_FUNC ();
Chris@350 5004 int
Chris@350 5005 main ()
Chris@350 5006 {
Chris@350 5007 return $SV_MODULE_FUNC ();
Chris@350 5008 ;
Chris@350 5009 return 0;
Chris@350 5010 }
Chris@350 5011 _ACEOF
mathieu@468 5012 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 5013 if { (ac_try="$ac_link"
mathieu@468 5014 case "(($ac_try" in
mathieu@468 5015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 5016 *) ac_try_echo=$ac_try;;
mathieu@468 5017 esac
mathieu@468 5018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 5019 (eval "$ac_link") 2>conftest.er1
mathieu@468 5020 ac_status=$?
mathieu@468 5021 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 5022 rm -f conftest.er1
mathieu@468 5023 cat conftest.err >&5
mathieu@468 5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 5025 (exit $ac_status); } && {
mathieu@468 5026 test -z "$ac_cxx_werror_flag" ||
mathieu@468 5027 test ! -s conftest.err
mathieu@468 5028 } && test -s conftest$ac_exeext &&
mathieu@468 5029 $as_test_x conftest$ac_exeext; then
Chris@350 5030 eval "$as_ac_Lib=yes"
Chris@350 5031 else
mathieu@468 5032 echo "$as_me: failed program was:" >&5
mathieu@468 5033 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 5034
mathieu@468 5035 eval "$as_ac_Lib=no"
mathieu@468 5036 fi
mathieu@468 5037
mathieu@468 5038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 5039 conftest$ac_exeext conftest.$ac_ext
Chris@350 5040 LIBS=$ac_check_lib_save_LIBS
Chris@350 5041 fi
mathieu@468 5042 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 5043 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 5044 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 5045 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@350 5046 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 5047 else
mathieu@468 5048 { { echo "$as_me:$LINENO: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&5
mathieu@468 5049 echo "$as_me: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 5050 { (exit 1); exit 1; }; }
Chris@350 5051 fi
Chris@350 5052
Chris@350 5053 fi
Chris@350 5054 fi
Chris@350 5055
Chris@350 5056
Chris@350 5057 SV_MODULE_MODULE=samplerate
Chris@350 5058 SV_MODULE_VERSION_TEST="samplerate >= 0.1.2"
Chris@350 5059 SV_MODULE_HEADER=samplerate.h
Chris@350 5060 SV_MODULE_LIB=samplerate
Chris@350 5061 SV_MODULE_FUNC=src_new
Chris@350 5062 SV_MODULE_HAVE=HAVE_$(echo samplerate | tr 'a-z' 'A-Z')
Chris@350 5063 SV_MODULE_FAILED=1
Chris@405 5064 if test -n "$samplerate_LIBS" ; then
mathieu@468 5065 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 5066 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@405 5067 CXXFLAGS="$CXXFLAGS $samplerate_CFLAGS"
Chris@405 5068 LIBS="$LIBS $samplerate_LIBS"
Chris@405 5069 SV_MODULE_FAILED=""
Chris@405 5070 fi
Chris@350 5071 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 5072 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 5073 fi
Chris@405 5074 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
mathieu@480 5075 PKG_CHECK_MODULES(samplerate,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $samplerate_CFLAGS";LIBS="$LIBS $samplerate_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means]))
Chris@457 5076 fi
Chris@457 5077 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 5078 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 5079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 5080 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 5081 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 5082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 5083 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 5084 fi
mathieu@468 5085 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 5086 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 5087 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 5088 else
mathieu@468 5089 # Is the header compilable?
mathieu@468 5090 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 5091 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 5092 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 5093 /* confdefs.h. */
mathieu@468 5094 _ACEOF
mathieu@468 5095 cat confdefs.h >>conftest.$ac_ext
mathieu@468 5096 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 5097 /* end confdefs.h. */
mathieu@468 5098 $ac_includes_default
mathieu@468 5099 #include <$SV_MODULE_HEADER>
mathieu@468 5100 _ACEOF
mathieu@468 5101 rm -f conftest.$ac_objext
mathieu@468 5102 if { (ac_try="$ac_compile"
mathieu@468 5103 case "(($ac_try" in
mathieu@468 5104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 5105 *) ac_try_echo=$ac_try;;
mathieu@468 5106 esac
mathieu@468 5107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 5108 (eval "$ac_compile") 2>conftest.er1
Chris@350 5109 ac_status=$?
mathieu@468 5110 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 5111 rm -f conftest.er1
mathieu@468 5112 cat conftest.err >&5
mathieu@468 5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 5114 (exit $ac_status); } && {
mathieu@468 5115 test -z "$ac_cxx_werror_flag" ||
mathieu@468 5116 test ! -s conftest.err
mathieu@468 5117 } && test -s conftest.$ac_objext; then
mathieu@468 5118 ac_header_compiler=yes
mathieu@468 5119 else
mathieu@468 5120 echo "$as_me: failed program was:" >&5
mathieu@468 5121 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 5122
mathieu@468 5123 ac_header_compiler=no
mathieu@468 5124 fi
mathieu@468 5125
mathieu@468 5126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 5127 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 5128 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 5129
mathieu@468 5130 # Is the header present?
mathieu@468 5131 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 5132 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 5133 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 5134 /* confdefs.h. */
mathieu@468 5135 _ACEOF
mathieu@468 5136 cat confdefs.h >>conftest.$ac_ext
mathieu@468 5137 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 5138 /* end confdefs.h. */
mathieu@468 5139 #include <$SV_MODULE_HEADER>
mathieu@468 5140 _ACEOF
mathieu@468 5141 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 5142 case "(($ac_try" in
mathieu@468 5143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 5144 *) ac_try_echo=$ac_try;;
mathieu@468 5145 esac
mathieu@468 5146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 5147 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris@350 5148 ac_status=$?
mathieu@468 5149 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 5150 rm -f conftest.er1
mathieu@468 5151 cat conftest.err >&5
mathieu@468 5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 5153 (exit $ac_status); } >/dev/null && {
mathieu@468 5154 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 5155 test ! -s conftest.err
mathieu@468 5156 }; then
mathieu@468 5157 ac_header_preproc=yes
mathieu@468 5158 else
mathieu@468 5159 echo "$as_me: failed program was:" >&5
mathieu@468 5160 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 5161
mathieu@468 5162 ac_header_preproc=no
mathieu@468 5163 fi
mathieu@468 5164
mathieu@468 5165 rm -f conftest.err conftest.$ac_ext
mathieu@468 5166 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 5167 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 5168
mathieu@468 5169 # So? What about this header?
mathieu@468 5170 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 5171 yes:no: )
mathieu@468 5172 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 5173 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 5174 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 5175 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 5176 ac_header_preproc=yes
mathieu@468 5177 ;;
mathieu@468 5178 no:yes:* )
mathieu@468 5179 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 5180 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 5181 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 5182 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 5183 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 5184 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 5185 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 5186 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 5187 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 5188 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 5189 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 5190 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 5191 ( cat <<\_ASBOX
mathieu@468 5192 ## ------------------------------------------- ##
mathieu@468 5193 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 5194 ## ------------------------------------------- ##
mathieu@468 5195 _ASBOX
mathieu@468 5196 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 5197 ;;
mathieu@468 5198 esac
mathieu@468 5199 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 5200 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 5201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 5202 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 5203 else
mathieu@468 5204 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 5205 fi
mathieu@468 5206 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 5207 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 5208 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 5209
mathieu@468 5210 fi
mathieu@468 5211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 5212 HAVES="$HAVES $SV_MODULE_HAVE"
Chris@350 5213 else
mathieu@468 5214 { { echo "$as_me:$LINENO: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&5
mathieu@468 5215 echo "$as_me: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 5216 { (exit 1); exit 1; }; }
Chris@350 5217 fi
Chris@350 5218
Chris@350 5219
Chris@350 5220 if test -n "$SV_MODULE_LIB"; then
mathieu@468 5221 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 5222 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 5223 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 5224 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 5225 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 5226 else
Chris@350 5227 ac_check_lib_save_LIBS=$LIBS
Chris@350 5228 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 5229 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 5230 /* confdefs.h. */
mathieu@468 5231 _ACEOF
mathieu@468 5232 cat confdefs.h >>conftest.$ac_ext
mathieu@468 5233 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 5234 /* end confdefs.h. */
Chris@350 5235
Chris@350 5236 /* Override any GCC internal prototype to avoid an error.
Chris@350 5237 Use char because int might match the return type of a GCC
Chris@350 5238 builtin and then its argument prototype would still apply. */
Chris@350 5239 #ifdef __cplusplus
Chris@350 5240 extern "C"
Chris@350 5241 #endif
Chris@350 5242 char $SV_MODULE_FUNC ();
Chris@350 5243 int
Chris@350 5244 main ()
Chris@350 5245 {
Chris@350 5246 return $SV_MODULE_FUNC ();
Chris@350 5247 ;
Chris@350 5248 return 0;
Chris@350 5249 }
Chris@350 5250 _ACEOF
mathieu@468 5251 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 5252 if { (ac_try="$ac_link"
mathieu@468 5253 case "(($ac_try" in
mathieu@468 5254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 5255 *) ac_try_echo=$ac_try;;
mathieu@468 5256 esac
mathieu@468 5257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 5258 (eval "$ac_link") 2>conftest.er1
mathieu@468 5259 ac_status=$?
mathieu@468 5260 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 5261 rm -f conftest.er1
mathieu@468 5262 cat conftest.err >&5
mathieu@468 5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 5264 (exit $ac_status); } && {
mathieu@468 5265 test -z "$ac_cxx_werror_flag" ||
mathieu@468 5266 test ! -s conftest.err
mathieu@468 5267 } && test -s conftest$ac_exeext &&
mathieu@468 5268 $as_test_x conftest$ac_exeext; then
Chris@350 5269 eval "$as_ac_Lib=yes"
Chris@350 5270 else
mathieu@468 5271 echo "$as_me: failed program was:" >&5
mathieu@468 5272 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 5273
mathieu@468 5274 eval "$as_ac_Lib=no"
mathieu@468 5275 fi
mathieu@468 5276
mathieu@468 5277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 5278 conftest$ac_exeext conftest.$ac_ext
Chris@350 5279 LIBS=$ac_check_lib_save_LIBS
Chris@350 5280 fi
mathieu@468 5281 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 5282 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 5283 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 5284 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@350 5285 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 5286 else
mathieu@468 5287 { { echo "$as_me:$LINENO: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&5
mathieu@468 5288 echo "$as_me: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 5289 { (exit 1); exit 1; }; }
Chris@350 5290 fi
Chris@350 5291
Chris@350 5292 fi
Chris@350 5293 fi
Chris@350 5294
Chris@350 5295
Chris@350 5296 SV_MODULE_MODULE=vamp
Chris@350 5297 SV_MODULE_VERSION_TEST="vamp >= 2.1"
Chris@350 5298 SV_MODULE_HEADER=vamp/vamp.h
Chris@350 5299 SV_MODULE_LIB=
Chris@350 5300 SV_MODULE_FUNC=
Chris@350 5301 SV_MODULE_HAVE=HAVE_$(echo vamp | tr 'a-z' 'A-Z')
Chris@350 5302 SV_MODULE_FAILED=1
Chris@405 5303 if test -n "$vamp_LIBS" ; then
mathieu@468 5304 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 5305 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@405 5306 CXXFLAGS="$CXXFLAGS $vamp_CFLAGS"
Chris@405 5307 LIBS="$LIBS $vamp_LIBS"
Chris@405 5308 SV_MODULE_FAILED=""
Chris@405 5309 fi
Chris@350 5310 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 5311 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 5312 fi
Chris@405 5313 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
mathieu@480 5314 PKG_CHECK_MODULES(vamp,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $vamp_CFLAGS";LIBS="$LIBS $vamp_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means]))
Chris@457 5315 fi
Chris@457 5316 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 5317 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 5318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 5319 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 5320 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 5321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 5322 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 5323 fi
mathieu@468 5324 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 5325 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 5326 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 5327 else
mathieu@468 5328 # Is the header compilable?
mathieu@468 5329 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 5330 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 5331 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 5332 /* confdefs.h. */
mathieu@468 5333 _ACEOF
mathieu@468 5334 cat confdefs.h >>conftest.$ac_ext
mathieu@468 5335 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 5336 /* end confdefs.h. */
mathieu@468 5337 $ac_includes_default
mathieu@468 5338 #include <$SV_MODULE_HEADER>
mathieu@468 5339 _ACEOF
mathieu@468 5340 rm -f conftest.$ac_objext
mathieu@468 5341 if { (ac_try="$ac_compile"
mathieu@468 5342 case "(($ac_try" in
mathieu@468 5343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 5344 *) ac_try_echo=$ac_try;;
mathieu@468 5345 esac
mathieu@468 5346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 5347 (eval "$ac_compile") 2>conftest.er1
Chris@350 5348 ac_status=$?
mathieu@468 5349 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 5350 rm -f conftest.er1
mathieu@468 5351 cat conftest.err >&5
mathieu@468 5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 5353 (exit $ac_status); } && {
mathieu@468 5354 test -z "$ac_cxx_werror_flag" ||
mathieu@468 5355 test ! -s conftest.err
mathieu@468 5356 } && test -s conftest.$ac_objext; then
mathieu@468 5357 ac_header_compiler=yes
mathieu@468 5358 else
mathieu@468 5359 echo "$as_me: failed program was:" >&5
mathieu@468 5360 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 5361
mathieu@468 5362 ac_header_compiler=no
mathieu@468 5363 fi
mathieu@468 5364
mathieu@468 5365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 5366 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 5367 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 5368
mathieu@468 5369 # Is the header present?
mathieu@468 5370 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 5371 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 5372 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 5373 /* confdefs.h. */
mathieu@468 5374 _ACEOF
mathieu@468 5375 cat confdefs.h >>conftest.$ac_ext
mathieu@468 5376 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 5377 /* end confdefs.h. */
mathieu@468 5378 #include <$SV_MODULE_HEADER>
mathieu@468 5379 _ACEOF
mathieu@468 5380 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 5381 case "(($ac_try" in
mathieu@468 5382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 5383 *) ac_try_echo=$ac_try;;
mathieu@468 5384 esac
mathieu@468 5385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 5386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris@350 5387 ac_status=$?
mathieu@468 5388 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 5389 rm -f conftest.er1
mathieu@468 5390 cat conftest.err >&5
mathieu@468 5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 5392 (exit $ac_status); } >/dev/null && {
mathieu@468 5393 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 5394 test ! -s conftest.err
mathieu@468 5395 }; then
mathieu@468 5396 ac_header_preproc=yes
mathieu@468 5397 else
mathieu@468 5398 echo "$as_me: failed program was:" >&5
mathieu@468 5399 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 5400
mathieu@468 5401 ac_header_preproc=no
mathieu@468 5402 fi
mathieu@468 5403
mathieu@468 5404 rm -f conftest.err conftest.$ac_ext
mathieu@468 5405 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 5406 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 5407
mathieu@468 5408 # So? What about this header?
mathieu@468 5409 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 5410 yes:no: )
mathieu@468 5411 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 5412 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 5413 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 5414 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 5415 ac_header_preproc=yes
mathieu@468 5416 ;;
mathieu@468 5417 no:yes:* )
mathieu@468 5418 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 5419 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 5420 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 5421 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 5422 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 5423 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 5424 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 5425 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 5426 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 5427 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 5428 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 5429 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 5430 ( cat <<\_ASBOX
mathieu@468 5431 ## ------------------------------------------- ##
mathieu@468 5432 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 5433 ## ------------------------------------------- ##
mathieu@468 5434 _ASBOX
mathieu@468 5435 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 5436 ;;
mathieu@468 5437 esac
mathieu@468 5438 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 5439 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 5440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 5441 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 5442 else
mathieu@468 5443 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 5444 fi
mathieu@468 5445 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 5446 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 5447 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 5448
mathieu@468 5449 fi
mathieu@468 5450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 5451 HAVES="$HAVES $SV_MODULE_HAVE"
Chris@350 5452 else
mathieu@468 5453 { { echo "$as_me:$LINENO: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&5
mathieu@468 5454 echo "$as_me: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 5455 { (exit 1); exit 1; }; }
Chris@350 5456 fi
Chris@350 5457
Chris@350 5458
Chris@350 5459 if test -n "$SV_MODULE_LIB"; then
mathieu@468 5460 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 5461 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 5462 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 5463 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 5464 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 5465 else
Chris@350 5466 ac_check_lib_save_LIBS=$LIBS
Chris@350 5467 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 5468 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 5469 /* confdefs.h. */
mathieu@468 5470 _ACEOF
mathieu@468 5471 cat confdefs.h >>conftest.$ac_ext
mathieu@468 5472 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 5473 /* end confdefs.h. */
Chris@350 5474
Chris@350 5475 /* Override any GCC internal prototype to avoid an error.
Chris@350 5476 Use char because int might match the return type of a GCC
Chris@350 5477 builtin and then its argument prototype would still apply. */
Chris@350 5478 #ifdef __cplusplus
Chris@350 5479 extern "C"
Chris@350 5480 #endif
Chris@350 5481 char $SV_MODULE_FUNC ();
Chris@350 5482 int
Chris@350 5483 main ()
Chris@350 5484 {
Chris@350 5485 return $SV_MODULE_FUNC ();
Chris@350 5486 ;
Chris@350 5487 return 0;
Chris@350 5488 }
Chris@350 5489 _ACEOF
mathieu@468 5490 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 5491 if { (ac_try="$ac_link"
mathieu@468 5492 case "(($ac_try" in
mathieu@468 5493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 5494 *) ac_try_echo=$ac_try;;
mathieu@468 5495 esac
mathieu@468 5496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 5497 (eval "$ac_link") 2>conftest.er1
mathieu@468 5498 ac_status=$?
mathieu@468 5499 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 5500 rm -f conftest.er1
mathieu@468 5501 cat conftest.err >&5
mathieu@468 5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 5503 (exit $ac_status); } && {
mathieu@468 5504 test -z "$ac_cxx_werror_flag" ||
mathieu@468 5505 test ! -s conftest.err
mathieu@468 5506 } && test -s conftest$ac_exeext &&
mathieu@468 5507 $as_test_x conftest$ac_exeext; then
Chris@350 5508 eval "$as_ac_Lib=yes"
Chris@350 5509 else
mathieu@468 5510 echo "$as_me: failed program was:" >&5
mathieu@468 5511 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 5512
mathieu@468 5513 eval "$as_ac_Lib=no"
mathieu@468 5514 fi
mathieu@468 5515
mathieu@468 5516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 5517 conftest$ac_exeext conftest.$ac_ext
Chris@350 5518 LIBS=$ac_check_lib_save_LIBS
Chris@350 5519 fi
mathieu@468 5520 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 5521 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 5522 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 5523 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@350 5524 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 5525 else
mathieu@468 5526 { { echo "$as_me:$LINENO: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&5
mathieu@468 5527 echo "$as_me: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 5528 { (exit 1); exit 1; }; }
Chris@350 5529 fi
Chris@350 5530
Chris@350 5531 fi
Chris@350 5532 fi
Chris@350 5533
Chris@350 5534
Chris@350 5535 SV_MODULE_MODULE=vamphostsdk
Chris@350 5536 SV_MODULE_VERSION_TEST="vamp-hostsdk >= 2.0"
Chris@350 5537 SV_MODULE_HEADER=vamp-hostsdk/PluginLoader.h
Chris@350 5538 SV_MODULE_LIB=
Chris@350 5539 SV_MODULE_FUNC=
Chris@350 5540 SV_MODULE_HAVE=HAVE_$(echo vamphostsdk | tr 'a-z' 'A-Z')
Chris@350 5541 SV_MODULE_FAILED=1
Chris@405 5542 if test -n "$vamphostsdk_LIBS" ; then
mathieu@468 5543 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 5544 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@405 5545 CXXFLAGS="$CXXFLAGS $vamphostsdk_CFLAGS"
Chris@405 5546 LIBS="$LIBS $vamphostsdk_LIBS"
Chris@405 5547 SV_MODULE_FAILED=""
Chris@405 5548 fi
Chris@350 5549 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 5550 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 5551 fi
Chris@405 5552 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
mathieu@480 5553 PKG_CHECK_MODULES(vamphostsdk,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $vamphostsdk_CFLAGS";LIBS="$LIBS $vamphostsdk_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means]))
Chris@457 5554 fi
Chris@457 5555 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 5556 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 5557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 5558 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 5559 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 5560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 5561 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 5562 fi
mathieu@468 5563 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 5564 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 5565 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 5566 else
mathieu@468 5567 # Is the header compilable?
mathieu@468 5568 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 5569 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 5570 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 5571 /* confdefs.h. */
mathieu@468 5572 _ACEOF
mathieu@468 5573 cat confdefs.h >>conftest.$ac_ext
mathieu@468 5574 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 5575 /* end confdefs.h. */
mathieu@468 5576 $ac_includes_default
mathieu@468 5577 #include <$SV_MODULE_HEADER>
mathieu@468 5578 _ACEOF
mathieu@468 5579 rm -f conftest.$ac_objext
mathieu@468 5580 if { (ac_try="$ac_compile"
mathieu@468 5581 case "(($ac_try" in
mathieu@468 5582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 5583 *) ac_try_echo=$ac_try;;
mathieu@468 5584 esac
mathieu@468 5585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 5586 (eval "$ac_compile") 2>conftest.er1
Chris@350 5587 ac_status=$?
mathieu@468 5588 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 5589 rm -f conftest.er1
mathieu@468 5590 cat conftest.err >&5
mathieu@468 5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 5592 (exit $ac_status); } && {
mathieu@468 5593 test -z "$ac_cxx_werror_flag" ||
mathieu@468 5594 test ! -s conftest.err
mathieu@468 5595 } && test -s conftest.$ac_objext; then
mathieu@468 5596 ac_header_compiler=yes
mathieu@468 5597 else
mathieu@468 5598 echo "$as_me: failed program was:" >&5
mathieu@468 5599 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 5600
mathieu@468 5601 ac_header_compiler=no
mathieu@468 5602 fi
mathieu@468 5603
mathieu@468 5604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 5605 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 5606 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 5607
mathieu@468 5608 # Is the header present?
mathieu@468 5609 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 5610 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 5611 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 5612 /* confdefs.h. */
mathieu@468 5613 _ACEOF
mathieu@468 5614 cat confdefs.h >>conftest.$ac_ext
mathieu@468 5615 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 5616 /* end confdefs.h. */
mathieu@468 5617 #include <$SV_MODULE_HEADER>
mathieu@468 5618 _ACEOF
mathieu@468 5619 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 5620 case "(($ac_try" in
mathieu@468 5621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 5622 *) ac_try_echo=$ac_try;;
mathieu@468 5623 esac
mathieu@468 5624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 5625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris@350 5626 ac_status=$?
mathieu@468 5627 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 5628 rm -f conftest.er1
mathieu@468 5629 cat conftest.err >&5
mathieu@468 5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 5631 (exit $ac_status); } >/dev/null && {
mathieu@468 5632 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 5633 test ! -s conftest.err
mathieu@468 5634 }; then
mathieu@468 5635 ac_header_preproc=yes
mathieu@468 5636 else
mathieu@468 5637 echo "$as_me: failed program was:" >&5
mathieu@468 5638 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 5639
mathieu@468 5640 ac_header_preproc=no
mathieu@468 5641 fi
mathieu@468 5642
mathieu@468 5643 rm -f conftest.err conftest.$ac_ext
mathieu@468 5644 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 5645 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 5646
mathieu@468 5647 # So? What about this header?
mathieu@468 5648 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 5649 yes:no: )
mathieu@468 5650 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 5651 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 5652 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 5653 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 5654 ac_header_preproc=yes
mathieu@468 5655 ;;
mathieu@468 5656 no:yes:* )
mathieu@468 5657 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 5658 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 5659 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 5660 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 5661 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 5662 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 5663 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 5664 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 5665 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 5666 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 5667 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 5668 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 5669 ( cat <<\_ASBOX
mathieu@468 5670 ## ------------------------------------------- ##
mathieu@468 5671 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 5672 ## ------------------------------------------- ##
mathieu@468 5673 _ASBOX
mathieu@468 5674 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 5675 ;;
mathieu@468 5676 esac
mathieu@468 5677 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 5678 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 5679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 5680 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 5681 else
mathieu@468 5682 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 5683 fi
mathieu@468 5684 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 5685 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 5686 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 5687
mathieu@468 5688 fi
mathieu@468 5689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 5690 HAVES="$HAVES $SV_MODULE_HAVE"
Chris@350 5691 else
mathieu@468 5692 { { echo "$as_me:$LINENO: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&5
mathieu@468 5693 echo "$as_me: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 5694 { (exit 1); exit 1; }; }
Chris@350 5695 fi
Chris@350 5696
Chris@350 5697
Chris@350 5698 if test -n "$SV_MODULE_LIB"; then
mathieu@468 5699 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 5700 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 5701 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 5702 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 5703 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 5704 else
Chris@350 5705 ac_check_lib_save_LIBS=$LIBS
Chris@350 5706 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 5707 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 5708 /* confdefs.h. */
mathieu@468 5709 _ACEOF
mathieu@468 5710 cat confdefs.h >>conftest.$ac_ext
mathieu@468 5711 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 5712 /* end confdefs.h. */
Chris@350 5713
Chris@350 5714 /* Override any GCC internal prototype to avoid an error.
Chris@350 5715 Use char because int might match the return type of a GCC
Chris@350 5716 builtin and then its argument prototype would still apply. */
Chris@350 5717 #ifdef __cplusplus
Chris@350 5718 extern "C"
Chris@350 5719 #endif
Chris@350 5720 char $SV_MODULE_FUNC ();
Chris@350 5721 int
Chris@350 5722 main ()
Chris@350 5723 {
Chris@350 5724 return $SV_MODULE_FUNC ();
Chris@350 5725 ;
Chris@350 5726 return 0;
Chris@350 5727 }
Chris@350 5728 _ACEOF
mathieu@468 5729 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 5730 if { (ac_try="$ac_link"
mathieu@468 5731 case "(($ac_try" in
mathieu@468 5732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 5733 *) ac_try_echo=$ac_try;;
mathieu@468 5734 esac
mathieu@468 5735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 5736 (eval "$ac_link") 2>conftest.er1
mathieu@468 5737 ac_status=$?
mathieu@468 5738 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 5739 rm -f conftest.er1
mathieu@468 5740 cat conftest.err >&5
mathieu@468 5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 5742 (exit $ac_status); } && {
mathieu@468 5743 test -z "$ac_cxx_werror_flag" ||
mathieu@468 5744 test ! -s conftest.err
mathieu@468 5745 } && test -s conftest$ac_exeext &&
mathieu@468 5746 $as_test_x conftest$ac_exeext; then
Chris@350 5747 eval "$as_ac_Lib=yes"
Chris@350 5748 else
mathieu@468 5749 echo "$as_me: failed program was:" >&5
mathieu@468 5750 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 5751
mathieu@468 5752 eval "$as_ac_Lib=no"
mathieu@468 5753 fi
mathieu@468 5754
mathieu@468 5755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 5756 conftest$ac_exeext conftest.$ac_ext
Chris@350 5757 LIBS=$ac_check_lib_save_LIBS
Chris@350 5758 fi
mathieu@468 5759 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 5760 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 5761 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 5762 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@350 5763 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 5764 else
mathieu@468 5765 { { echo "$as_me:$LINENO: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&5
mathieu@468 5766 echo "$as_me: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 5767 { (exit 1); exit 1; }; }
Chris@350 5768 fi
Chris@350 5769
Chris@350 5770 fi
Chris@350 5771 fi
Chris@350 5772
Chris@350 5773
Chris@350 5774 SV_MODULE_MODULE=rubberband
Chris@350 5775 SV_MODULE_VERSION_TEST="rubberband"
Chris@350 5776 SV_MODULE_HEADER=rubberband/RubberBandStretcher.h
Chris@350 5777 SV_MODULE_LIB=rubberband
Chris@350 5778 SV_MODULE_FUNC=rubberband_new
Chris@350 5779 SV_MODULE_HAVE=HAVE_$(echo rubberband | tr 'a-z' 'A-Z')
Chris@350 5780 SV_MODULE_FAILED=1
Chris@405 5781 if test -n "$rubberband_LIBS" ; then
mathieu@468 5782 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 5783 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@405 5784 CXXFLAGS="$CXXFLAGS $rubberband_CFLAGS"
Chris@405 5785 LIBS="$LIBS $rubberband_LIBS"
Chris@405 5786 SV_MODULE_FAILED=""
Chris@405 5787 fi
Chris@350 5788 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 5789 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 5790 fi
Chris@405 5791 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
mathieu@480 5792 PKG_CHECK_MODULES(rubberband,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $rubberband_CFLAGS";LIBS="$LIBS $rubberband_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means]))
Chris@457 5793 fi
Chris@457 5794 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 5795 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 5796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 5797 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 5798 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 5799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 5800 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 5801 fi
mathieu@468 5802 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 5803 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 5804 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 5805 else
mathieu@468 5806 # Is the header compilable?
mathieu@468 5807 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 5808 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 5809 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 5810 /* confdefs.h. */
mathieu@468 5811 _ACEOF
mathieu@468 5812 cat confdefs.h >>conftest.$ac_ext
mathieu@468 5813 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 5814 /* end confdefs.h. */
mathieu@468 5815 $ac_includes_default
mathieu@468 5816 #include <$SV_MODULE_HEADER>
mathieu@468 5817 _ACEOF
mathieu@468 5818 rm -f conftest.$ac_objext
mathieu@468 5819 if { (ac_try="$ac_compile"
mathieu@468 5820 case "(($ac_try" in
mathieu@468 5821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 5822 *) ac_try_echo=$ac_try;;
mathieu@468 5823 esac
mathieu@468 5824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 5825 (eval "$ac_compile") 2>conftest.er1
Chris@350 5826 ac_status=$?
mathieu@468 5827 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 5828 rm -f conftest.er1
mathieu@468 5829 cat conftest.err >&5
mathieu@468 5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 5831 (exit $ac_status); } && {
mathieu@468 5832 test -z "$ac_cxx_werror_flag" ||
mathieu@468 5833 test ! -s conftest.err
mathieu@468 5834 } && test -s conftest.$ac_objext; then
mathieu@468 5835 ac_header_compiler=yes
mathieu@468 5836 else
mathieu@468 5837 echo "$as_me: failed program was:" >&5
mathieu@468 5838 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 5839
mathieu@468 5840 ac_header_compiler=no
mathieu@468 5841 fi
mathieu@468 5842
mathieu@468 5843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 5844 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 5845 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 5846
mathieu@468 5847 # Is the header present?
mathieu@468 5848 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 5849 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 5850 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 5851 /* confdefs.h. */
mathieu@468 5852 _ACEOF
mathieu@468 5853 cat confdefs.h >>conftest.$ac_ext
mathieu@468 5854 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 5855 /* end confdefs.h. */
mathieu@468 5856 #include <$SV_MODULE_HEADER>
mathieu@468 5857 _ACEOF
mathieu@468 5858 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 5859 case "(($ac_try" in
mathieu@468 5860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 5861 *) ac_try_echo=$ac_try;;
mathieu@468 5862 esac
mathieu@468 5863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 5864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris@350 5865 ac_status=$?
mathieu@468 5866 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 5867 rm -f conftest.er1
mathieu@468 5868 cat conftest.err >&5
mathieu@468 5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 5870 (exit $ac_status); } >/dev/null && {
mathieu@468 5871 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 5872 test ! -s conftest.err
mathieu@468 5873 }; then
mathieu@468 5874 ac_header_preproc=yes
mathieu@468 5875 else
mathieu@468 5876 echo "$as_me: failed program was:" >&5
mathieu@468 5877 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 5878
mathieu@468 5879 ac_header_preproc=no
mathieu@468 5880 fi
mathieu@468 5881
mathieu@468 5882 rm -f conftest.err conftest.$ac_ext
mathieu@468 5883 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 5884 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 5885
mathieu@468 5886 # So? What about this header?
mathieu@468 5887 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 5888 yes:no: )
mathieu@468 5889 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 5890 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 5891 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 5892 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 5893 ac_header_preproc=yes
mathieu@468 5894 ;;
mathieu@468 5895 no:yes:* )
mathieu@468 5896 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 5897 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 5898 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 5899 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 5900 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 5901 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 5902 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 5903 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 5904 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 5905 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 5906 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 5907 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 5908 ( cat <<\_ASBOX
mathieu@468 5909 ## ------------------------------------------- ##
mathieu@468 5910 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 5911 ## ------------------------------------------- ##
mathieu@468 5912 _ASBOX
mathieu@468 5913 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 5914 ;;
mathieu@468 5915 esac
mathieu@468 5916 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 5917 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 5918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 5919 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 5920 else
mathieu@468 5921 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 5922 fi
mathieu@468 5923 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 5924 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 5925 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 5926
mathieu@468 5927 fi
mathieu@468 5928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 5929 HAVES="$HAVES $SV_MODULE_HAVE"
Chris@350 5930 else
mathieu@468 5931 { { echo "$as_me:$LINENO: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&5
mathieu@468 5932 echo "$as_me: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 5933 { (exit 1); exit 1; }; }
Chris@350 5934 fi
Chris@350 5935
Chris@350 5936
Chris@350 5937 if test -n "$SV_MODULE_LIB"; then
mathieu@468 5938 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 5939 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 5940 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 5941 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 5942 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 5943 else
Chris@350 5944 ac_check_lib_save_LIBS=$LIBS
Chris@350 5945 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 5946 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 5947 /* confdefs.h. */
mathieu@468 5948 _ACEOF
mathieu@468 5949 cat confdefs.h >>conftest.$ac_ext
mathieu@468 5950 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 5951 /* end confdefs.h. */
Chris@350 5952
Chris@350 5953 /* Override any GCC internal prototype to avoid an error.
Chris@350 5954 Use char because int might match the return type of a GCC
Chris@350 5955 builtin and then its argument prototype would still apply. */
Chris@350 5956 #ifdef __cplusplus
Chris@350 5957 extern "C"
Chris@350 5958 #endif
Chris@350 5959 char $SV_MODULE_FUNC ();
Chris@350 5960 int
Chris@350 5961 main ()
Chris@350 5962 {
Chris@350 5963 return $SV_MODULE_FUNC ();
Chris@350 5964 ;
Chris@350 5965 return 0;
Chris@350 5966 }
Chris@350 5967 _ACEOF
mathieu@468 5968 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 5969 if { (ac_try="$ac_link"
mathieu@468 5970 case "(($ac_try" in
mathieu@468 5971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 5972 *) ac_try_echo=$ac_try;;
mathieu@468 5973 esac
mathieu@468 5974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 5975 (eval "$ac_link") 2>conftest.er1
mathieu@468 5976 ac_status=$?
mathieu@468 5977 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 5978 rm -f conftest.er1
mathieu@468 5979 cat conftest.err >&5
mathieu@468 5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 5981 (exit $ac_status); } && {
mathieu@468 5982 test -z "$ac_cxx_werror_flag" ||
mathieu@468 5983 test ! -s conftest.err
mathieu@468 5984 } && test -s conftest$ac_exeext &&
mathieu@468 5985 $as_test_x conftest$ac_exeext; then
Chris@350 5986 eval "$as_ac_Lib=yes"
Chris@350 5987 else
mathieu@468 5988 echo "$as_me: failed program was:" >&5
mathieu@468 5989 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 5990
mathieu@468 5991 eval "$as_ac_Lib=no"
mathieu@468 5992 fi
mathieu@468 5993
mathieu@468 5994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 5995 conftest$ac_exeext conftest.$ac_ext
Chris@350 5996 LIBS=$ac_check_lib_save_LIBS
Chris@350 5997 fi
mathieu@468 5998 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 5999 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 6000 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 6001 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@350 6002 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 6003 else
mathieu@468 6004 { { echo "$as_me:$LINENO: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&5
mathieu@468 6005 echo "$as_me: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 6006 { (exit 1); exit 1; }; }
Chris@350 6007 fi
Chris@350 6008
Chris@350 6009 fi
Chris@350 6010 fi
Chris@350 6011
Chris@350 6012
Chris@457 6013 SV_MODULE_MODULE=raptor
Chris@457 6014 SV_MODULE_VERSION_TEST="raptor >= 1.4.20"
Chris@457 6015 SV_MODULE_HEADER=raptor.h
Chris@457 6016 SV_MODULE_LIB=raptor
Chris@457 6017 SV_MODULE_FUNC=raptor_start_parse
Chris@457 6018 SV_MODULE_HAVE=HAVE_$(echo raptor | tr 'a-z' 'A-Z')
Chris@350 6019 SV_MODULE_FAILED=1
Chris@457 6020 if test -n "$raptor_LIBS" ; then
mathieu@468 6021 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 6022 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@457 6023 CXXFLAGS="$CXXFLAGS $raptor_CFLAGS"
Chris@457 6024 LIBS="$LIBS $raptor_LIBS"
Chris@405 6025 SV_MODULE_FAILED=""
Chris@405 6026 fi
Chris@350 6027 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 6028 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 6029 fi
Chris@405 6030 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
mathieu@480 6031 PKG_CHECK_MODULES(raptor,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $raptor_CFLAGS";LIBS="$LIBS $raptor_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means]))
Chris@457 6032 fi
Chris@457 6033 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 6034 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 6035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 6036 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 6037 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 6038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 6039 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 6040 fi
mathieu@468 6041 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 6042 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 6043 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 6044 else
mathieu@468 6045 # Is the header compilable?
mathieu@468 6046 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 6047 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 6048 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 6049 /* confdefs.h. */
mathieu@468 6050 _ACEOF
mathieu@468 6051 cat confdefs.h >>conftest.$ac_ext
mathieu@468 6052 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 6053 /* end confdefs.h. */
mathieu@468 6054 $ac_includes_default
mathieu@468 6055 #include <$SV_MODULE_HEADER>
mathieu@468 6056 _ACEOF
mathieu@468 6057 rm -f conftest.$ac_objext
mathieu@468 6058 if { (ac_try="$ac_compile"
mathieu@468 6059 case "(($ac_try" in
mathieu@468 6060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 6061 *) ac_try_echo=$ac_try;;
mathieu@468 6062 esac
mathieu@468 6063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 6064 (eval "$ac_compile") 2>conftest.er1
Chris@350 6065 ac_status=$?
mathieu@468 6066 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 6067 rm -f conftest.er1
mathieu@468 6068 cat conftest.err >&5
mathieu@468 6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 6070 (exit $ac_status); } && {
mathieu@468 6071 test -z "$ac_cxx_werror_flag" ||
mathieu@468 6072 test ! -s conftest.err
mathieu@468 6073 } && test -s conftest.$ac_objext; then
mathieu@468 6074 ac_header_compiler=yes
mathieu@468 6075 else
mathieu@468 6076 echo "$as_me: failed program was:" >&5
mathieu@468 6077 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 6078
mathieu@468 6079 ac_header_compiler=no
mathieu@468 6080 fi
mathieu@468 6081
mathieu@468 6082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 6083 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 6084 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 6085
mathieu@468 6086 # Is the header present?
mathieu@468 6087 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 6088 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 6089 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 6090 /* confdefs.h. */
mathieu@468 6091 _ACEOF
mathieu@468 6092 cat confdefs.h >>conftest.$ac_ext
mathieu@468 6093 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 6094 /* end confdefs.h. */
mathieu@468 6095 #include <$SV_MODULE_HEADER>
mathieu@468 6096 _ACEOF
mathieu@468 6097 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 6098 case "(($ac_try" in
mathieu@468 6099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 6100 *) ac_try_echo=$ac_try;;
mathieu@468 6101 esac
mathieu@468 6102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 6103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris@350 6104 ac_status=$?
mathieu@468 6105 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 6106 rm -f conftest.er1
mathieu@468 6107 cat conftest.err >&5
mathieu@468 6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 6109 (exit $ac_status); } >/dev/null && {
mathieu@468 6110 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 6111 test ! -s conftest.err
mathieu@468 6112 }; then
mathieu@468 6113 ac_header_preproc=yes
mathieu@468 6114 else
mathieu@468 6115 echo "$as_me: failed program was:" >&5
mathieu@468 6116 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 6117
mathieu@468 6118 ac_header_preproc=no
mathieu@468 6119 fi
mathieu@468 6120
mathieu@468 6121 rm -f conftest.err conftest.$ac_ext
mathieu@468 6122 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 6123 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 6124
mathieu@468 6125 # So? What about this header?
mathieu@468 6126 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 6127 yes:no: )
mathieu@468 6128 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 6129 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 6130 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 6131 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 6132 ac_header_preproc=yes
mathieu@468 6133 ;;
mathieu@468 6134 no:yes:* )
mathieu@468 6135 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 6136 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 6137 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 6138 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 6139 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 6140 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 6141 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 6142 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 6143 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 6144 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 6145 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 6146 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 6147 ( cat <<\_ASBOX
mathieu@468 6148 ## ------------------------------------------- ##
mathieu@468 6149 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 6150 ## ------------------------------------------- ##
mathieu@468 6151 _ASBOX
mathieu@468 6152 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 6153 ;;
mathieu@468 6154 esac
mathieu@468 6155 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 6156 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 6157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 6158 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 6159 else
mathieu@468 6160 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 6161 fi
mathieu@468 6162 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 6163 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 6164 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 6165
mathieu@468 6166 fi
mathieu@468 6167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 6168 HAVES="$HAVES $SV_MODULE_HAVE"
Chris@350 6169 else
mathieu@468 6170 { { echo "$as_me:$LINENO: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&5
mathieu@468 6171 echo "$as_me: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 6172 { (exit 1); exit 1; }; }
Chris@350 6173 fi
Chris@350 6174
Chris@350 6175
Chris@350 6176 if test -n "$SV_MODULE_LIB"; then
mathieu@468 6177 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 6178 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 6179 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 6180 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 6181 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 6182 else
Chris@350 6183 ac_check_lib_save_LIBS=$LIBS
Chris@350 6184 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 6185 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 6186 /* confdefs.h. */
mathieu@468 6187 _ACEOF
mathieu@468 6188 cat confdefs.h >>conftest.$ac_ext
mathieu@468 6189 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 6190 /* end confdefs.h. */
Chris@350 6191
Chris@350 6192 /* Override any GCC internal prototype to avoid an error.
Chris@350 6193 Use char because int might match the return type of a GCC
Chris@350 6194 builtin and then its argument prototype would still apply. */
Chris@350 6195 #ifdef __cplusplus
Chris@350 6196 extern "C"
Chris@350 6197 #endif
Chris@350 6198 char $SV_MODULE_FUNC ();
Chris@350 6199 int
Chris@350 6200 main ()
Chris@350 6201 {
Chris@350 6202 return $SV_MODULE_FUNC ();
Chris@350 6203 ;
Chris@350 6204 return 0;
Chris@350 6205 }
Chris@350 6206 _ACEOF
mathieu@468 6207 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 6208 if { (ac_try="$ac_link"
mathieu@468 6209 case "(($ac_try" in
mathieu@468 6210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 6211 *) ac_try_echo=$ac_try;;
mathieu@468 6212 esac
mathieu@468 6213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 6214 (eval "$ac_link") 2>conftest.er1
mathieu@468 6215 ac_status=$?
mathieu@468 6216 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 6217 rm -f conftest.er1
mathieu@468 6218 cat conftest.err >&5
mathieu@468 6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 6220 (exit $ac_status); } && {
mathieu@468 6221 test -z "$ac_cxx_werror_flag" ||
mathieu@468 6222 test ! -s conftest.err
mathieu@468 6223 } && test -s conftest$ac_exeext &&
mathieu@468 6224 $as_test_x conftest$ac_exeext; then
Chris@350 6225 eval "$as_ac_Lib=yes"
Chris@350 6226 else
mathieu@468 6227 echo "$as_me: failed program was:" >&5
mathieu@468 6228 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 6229
mathieu@468 6230 eval "$as_ac_Lib=no"
mathieu@468 6231 fi
mathieu@468 6232
mathieu@468 6233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 6234 conftest$ac_exeext conftest.$ac_ext
Chris@350 6235 LIBS=$ac_check_lib_save_LIBS
Chris@350 6236 fi
mathieu@468 6237 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 6238 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 6239 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 6240 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@350 6241 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 6242 else
mathieu@468 6243 { { echo "$as_me:$LINENO: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&5
mathieu@468 6244 echo "$as_me: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 6245 { (exit 1); exit 1; }; }
Chris@350 6246 fi
Chris@350 6247
Chris@350 6248 fi
Chris@350 6249 fi
Chris@350 6250
Chris@350 6251
Chris@457 6252 SV_MODULE_MODULE=rasqal
Chris@457 6253 SV_MODULE_VERSION_TEST="rasqal >= 0.9.19"
Chris@457 6254 SV_MODULE_HEADER=rasqal/rasqal.h
Chris@457 6255 SV_MODULE_LIB=rasqal
Chris@457 6256 SV_MODULE_FUNC=rasqal_new_world
Chris@457 6257 SV_MODULE_HAVE=HAVE_$(echo rasqal | tr 'a-z' 'A-Z')
Chris@350 6258 SV_MODULE_FAILED=1
Chris@457 6259 if test -n "$rasqal_LIBS" ; then
mathieu@468 6260 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 6261 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@457 6262 CXXFLAGS="$CXXFLAGS $rasqal_CFLAGS"
Chris@457 6263 LIBS="$LIBS $rasqal_LIBS"
Chris@405 6264 SV_MODULE_FAILED=""
Chris@405 6265 fi
Chris@350 6266 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 6267 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 6268 fi
Chris@405 6269 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
mathieu@480 6270 PKG_CHECK_MODULES(rasqal,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $rasqal_CFLAGS";LIBS="$LIBS $rasqal_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means]))
Chris@457 6271 fi
Chris@457 6272 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 6273 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 6274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 6275 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 6276 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 6277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 6278 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 6279 fi
mathieu@468 6280 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 6281 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 6282 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 6283 else
mathieu@468 6284 # Is the header compilable?
mathieu@468 6285 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 6286 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 6287 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 6288 /* confdefs.h. */
mathieu@468 6289 _ACEOF
mathieu@468 6290 cat confdefs.h >>conftest.$ac_ext
mathieu@468 6291 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 6292 /* end confdefs.h. */
mathieu@468 6293 $ac_includes_default
mathieu@468 6294 #include <$SV_MODULE_HEADER>
mathieu@468 6295 _ACEOF
mathieu@468 6296 rm -f conftest.$ac_objext
mathieu@468 6297 if { (ac_try="$ac_compile"
mathieu@468 6298 case "(($ac_try" in
mathieu@468 6299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 6300 *) ac_try_echo=$ac_try;;
mathieu@468 6301 esac
mathieu@468 6302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 6303 (eval "$ac_compile") 2>conftest.er1
Chris@350 6304 ac_status=$?
mathieu@468 6305 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 6306 rm -f conftest.er1
mathieu@468 6307 cat conftest.err >&5
mathieu@468 6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 6309 (exit $ac_status); } && {
mathieu@468 6310 test -z "$ac_cxx_werror_flag" ||
mathieu@468 6311 test ! -s conftest.err
mathieu@468 6312 } && test -s conftest.$ac_objext; then
mathieu@468 6313 ac_header_compiler=yes
mathieu@468 6314 else
mathieu@468 6315 echo "$as_me: failed program was:" >&5
mathieu@468 6316 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 6317
mathieu@468 6318 ac_header_compiler=no
mathieu@468 6319 fi
mathieu@468 6320
mathieu@468 6321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 6322 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 6323 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 6324
mathieu@468 6325 # Is the header present?
mathieu@468 6326 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 6327 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 6328 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 6329 /* confdefs.h. */
mathieu@468 6330 _ACEOF
mathieu@468 6331 cat confdefs.h >>conftest.$ac_ext
mathieu@468 6332 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 6333 /* end confdefs.h. */
mathieu@468 6334 #include <$SV_MODULE_HEADER>
mathieu@468 6335 _ACEOF
mathieu@468 6336 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 6337 case "(($ac_try" in
mathieu@468 6338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 6339 *) ac_try_echo=$ac_try;;
mathieu@468 6340 esac
mathieu@468 6341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 6342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris@350 6343 ac_status=$?
mathieu@468 6344 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 6345 rm -f conftest.er1
mathieu@468 6346 cat conftest.err >&5
mathieu@468 6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 6348 (exit $ac_status); } >/dev/null && {
mathieu@468 6349 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 6350 test ! -s conftest.err
mathieu@468 6351 }; then
mathieu@468 6352 ac_header_preproc=yes
mathieu@468 6353 else
mathieu@468 6354 echo "$as_me: failed program was:" >&5
mathieu@468 6355 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 6356
mathieu@468 6357 ac_header_preproc=no
mathieu@468 6358 fi
mathieu@468 6359
mathieu@468 6360 rm -f conftest.err conftest.$ac_ext
mathieu@468 6361 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 6362 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 6363
mathieu@468 6364 # So? What about this header?
mathieu@468 6365 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 6366 yes:no: )
mathieu@468 6367 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 6368 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 6369 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 6370 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 6371 ac_header_preproc=yes
mathieu@468 6372 ;;
mathieu@468 6373 no:yes:* )
mathieu@468 6374 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 6375 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 6376 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 6377 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 6378 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 6379 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 6380 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 6381 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 6382 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 6383 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 6384 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 6385 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 6386 ( cat <<\_ASBOX
mathieu@468 6387 ## ------------------------------------------- ##
mathieu@468 6388 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 6389 ## ------------------------------------------- ##
mathieu@468 6390 _ASBOX
mathieu@468 6391 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 6392 ;;
mathieu@468 6393 esac
mathieu@468 6394 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 6395 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 6396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 6397 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 6398 else
mathieu@468 6399 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 6400 fi
mathieu@468 6401 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 6402 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 6403 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 6404
mathieu@468 6405 fi
mathieu@468 6406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 6407 HAVES="$HAVES $SV_MODULE_HAVE"
Chris@350 6408 else
mathieu@468 6409 { { echo "$as_me:$LINENO: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&5
mathieu@468 6410 echo "$as_me: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 6411 { (exit 1); exit 1; }; }
Chris@350 6412 fi
Chris@350 6413
Chris@350 6414
Chris@350 6415 if test -n "$SV_MODULE_LIB"; then
mathieu@468 6416 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 6417 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 6418 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 6419 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 6420 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 6421 else
Chris@350 6422 ac_check_lib_save_LIBS=$LIBS
Chris@350 6423 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 6424 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 6425 /* confdefs.h. */
mathieu@468 6426 _ACEOF
mathieu@468 6427 cat confdefs.h >>conftest.$ac_ext
mathieu@468 6428 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 6429 /* end confdefs.h. */
Chris@350 6430
Chris@350 6431 /* Override any GCC internal prototype to avoid an error.
Chris@350 6432 Use char because int might match the return type of a GCC
Chris@350 6433 builtin and then its argument prototype would still apply. */
Chris@350 6434 #ifdef __cplusplus
Chris@350 6435 extern "C"
Chris@350 6436 #endif
Chris@350 6437 char $SV_MODULE_FUNC ();
Chris@350 6438 int
Chris@350 6439 main ()
Chris@350 6440 {
Chris@350 6441 return $SV_MODULE_FUNC ();
Chris@350 6442 ;
Chris@350 6443 return 0;
Chris@350 6444 }
Chris@350 6445 _ACEOF
mathieu@468 6446 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 6447 if { (ac_try="$ac_link"
mathieu@468 6448 case "(($ac_try" in
mathieu@468 6449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 6450 *) ac_try_echo=$ac_try;;
mathieu@468 6451 esac
mathieu@468 6452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 6453 (eval "$ac_link") 2>conftest.er1
mathieu@468 6454 ac_status=$?
mathieu@468 6455 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 6456 rm -f conftest.er1
mathieu@468 6457 cat conftest.err >&5
mathieu@468 6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 6459 (exit $ac_status); } && {
mathieu@468 6460 test -z "$ac_cxx_werror_flag" ||
mathieu@468 6461 test ! -s conftest.err
mathieu@468 6462 } && test -s conftest$ac_exeext &&
mathieu@468 6463 $as_test_x conftest$ac_exeext; then
Chris@350 6464 eval "$as_ac_Lib=yes"
Chris@350 6465 else
mathieu@468 6466 echo "$as_me: failed program was:" >&5
mathieu@468 6467 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 6468
mathieu@468 6469 eval "$as_ac_Lib=no"
mathieu@468 6470 fi
mathieu@468 6471
mathieu@468 6472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 6473 conftest$ac_exeext conftest.$ac_ext
Chris@350 6474 LIBS=$ac_check_lib_save_LIBS
Chris@350 6475 fi
mathieu@468 6476 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 6477 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 6478 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 6479 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@350 6480 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 6481 else
mathieu@468 6482 { { echo "$as_me:$LINENO: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&5
mathieu@468 6483 echo "$as_me: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 6484 { (exit 1); exit 1; }; }
Chris@350 6485 fi
Chris@350 6486
Chris@350 6487 fi
Chris@350 6488 fi
Chris@350 6489
Chris@350 6490
Chris@457 6491 SV_MODULE_MODULE=redland
Chris@457 6492 SV_MODULE_VERSION_TEST="redland >= 1.0.10"
Chris@457 6493 SV_MODULE_HEADER=librdf.h
Chris@457 6494 SV_MODULE_LIB=rdf
Chris@457 6495 SV_MODULE_FUNC=librdf_new_world
Chris@457 6496 SV_MODULE_HAVE=HAVE_$(echo redland | tr 'a-z' 'A-Z')
Chris@350 6497 SV_MODULE_FAILED=1
Chris@457 6498 if test -n "$redland_LIBS" ; then
mathieu@468 6499 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 6500 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@457 6501 CXXFLAGS="$CXXFLAGS $redland_CFLAGS"
Chris@457 6502 LIBS="$LIBS $redland_LIBS"
Chris@405 6503 SV_MODULE_FAILED=""
Chris@405 6504 fi
Chris@350 6505 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 6506 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 6507 fi
Chris@405 6508 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
mathieu@480 6509 PKG_CHECK_MODULES(redland,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $redland_CFLAGS";LIBS="$LIBS $redland_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means]))
Chris@457 6510 fi
Chris@457 6511 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 6512 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 6513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 6514 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 6515 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 6516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 6517 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 6518 fi
mathieu@468 6519 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 6520 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 6521 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 6522 else
mathieu@468 6523 # Is the header compilable?
mathieu@468 6524 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 6525 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 6526 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 6527 /* confdefs.h. */
mathieu@468 6528 _ACEOF
mathieu@468 6529 cat confdefs.h >>conftest.$ac_ext
mathieu@468 6530 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 6531 /* end confdefs.h. */
mathieu@468 6532 $ac_includes_default
mathieu@468 6533 #include <$SV_MODULE_HEADER>
mathieu@468 6534 _ACEOF
mathieu@468 6535 rm -f conftest.$ac_objext
mathieu@468 6536 if { (ac_try="$ac_compile"
mathieu@468 6537 case "(($ac_try" in
mathieu@468 6538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 6539 *) ac_try_echo=$ac_try;;
mathieu@468 6540 esac
mathieu@468 6541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 6542 (eval "$ac_compile") 2>conftest.er1
Chris@350 6543 ac_status=$?
mathieu@468 6544 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 6545 rm -f conftest.er1
mathieu@468 6546 cat conftest.err >&5
mathieu@468 6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 6548 (exit $ac_status); } && {
mathieu@468 6549 test -z "$ac_cxx_werror_flag" ||
mathieu@468 6550 test ! -s conftest.err
mathieu@468 6551 } && test -s conftest.$ac_objext; then
mathieu@468 6552 ac_header_compiler=yes
mathieu@468 6553 else
mathieu@468 6554 echo "$as_me: failed program was:" >&5
mathieu@468 6555 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 6556
mathieu@468 6557 ac_header_compiler=no
mathieu@468 6558 fi
mathieu@468 6559
mathieu@468 6560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 6561 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 6562 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 6563
mathieu@468 6564 # Is the header present?
mathieu@468 6565 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 6566 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 6567 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 6568 /* confdefs.h. */
mathieu@468 6569 _ACEOF
mathieu@468 6570 cat confdefs.h >>conftest.$ac_ext
mathieu@468 6571 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 6572 /* end confdefs.h. */
mathieu@468 6573 #include <$SV_MODULE_HEADER>
mathieu@468 6574 _ACEOF
mathieu@468 6575 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 6576 case "(($ac_try" in
mathieu@468 6577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 6578 *) ac_try_echo=$ac_try;;
mathieu@468 6579 esac
mathieu@468 6580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 6581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris@350 6582 ac_status=$?
mathieu@468 6583 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 6584 rm -f conftest.er1
mathieu@468 6585 cat conftest.err >&5
mathieu@468 6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 6587 (exit $ac_status); } >/dev/null && {
mathieu@468 6588 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 6589 test ! -s conftest.err
mathieu@468 6590 }; then
mathieu@468 6591 ac_header_preproc=yes
mathieu@468 6592 else
mathieu@468 6593 echo "$as_me: failed program was:" >&5
mathieu@468 6594 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 6595
mathieu@468 6596 ac_header_preproc=no
mathieu@468 6597 fi
mathieu@468 6598
mathieu@468 6599 rm -f conftest.err conftest.$ac_ext
mathieu@468 6600 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 6601 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 6602
mathieu@468 6603 # So? What about this header?
mathieu@468 6604 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 6605 yes:no: )
mathieu@468 6606 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 6607 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 6608 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 6609 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 6610 ac_header_preproc=yes
mathieu@468 6611 ;;
mathieu@468 6612 no:yes:* )
mathieu@468 6613 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 6614 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 6615 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 6616 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 6617 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 6618 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 6619 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 6620 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 6621 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 6622 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 6623 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 6624 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 6625 ( cat <<\_ASBOX
mathieu@468 6626 ## ------------------------------------------- ##
mathieu@468 6627 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 6628 ## ------------------------------------------- ##
mathieu@468 6629 _ASBOX
mathieu@468 6630 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 6631 ;;
mathieu@468 6632 esac
mathieu@468 6633 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 6634 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 6635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 6636 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 6637 else
mathieu@468 6638 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 6639 fi
mathieu@468 6640 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 6641 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 6642 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 6643
mathieu@468 6644 fi
mathieu@468 6645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@457 6646 HAVES="$HAVES $SV_MODULE_HAVE"
Chris@457 6647 else
mathieu@468 6648 { { echo "$as_me:$LINENO: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&5
mathieu@468 6649 echo "$as_me: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 6650 { (exit 1); exit 1; }; }
Chris@457 6651 fi
Chris@457 6652
Chris@457 6653
Chris@457 6654 if test -n "$SV_MODULE_LIB"; then
mathieu@468 6655 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 6656 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 6657 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 6658 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 6659 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 6660 else
Chris@350 6661 ac_check_lib_save_LIBS=$LIBS
Chris@350 6662 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 6663 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 6664 /* confdefs.h. */
mathieu@468 6665 _ACEOF
mathieu@468 6666 cat confdefs.h >>conftest.$ac_ext
mathieu@468 6667 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 6668 /* end confdefs.h. */
Chris@350 6669
Chris@350 6670 /* Override any GCC internal prototype to avoid an error.
Chris@350 6671 Use char because int might match the return type of a GCC
Chris@350 6672 builtin and then its argument prototype would still apply. */
Chris@350 6673 #ifdef __cplusplus
Chris@350 6674 extern "C"
Chris@350 6675 #endif
Chris@350 6676 char $SV_MODULE_FUNC ();
Chris@350 6677 int
Chris@350 6678 main ()
Chris@350 6679 {
Chris@350 6680 return $SV_MODULE_FUNC ();
Chris@350 6681 ;
Chris@350 6682 return 0;
Chris@350 6683 }
Chris@350 6684 _ACEOF
mathieu@468 6685 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 6686 if { (ac_try="$ac_link"
mathieu@468 6687 case "(($ac_try" in
mathieu@468 6688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 6689 *) ac_try_echo=$ac_try;;
mathieu@468 6690 esac
mathieu@468 6691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 6692 (eval "$ac_link") 2>conftest.er1
mathieu@468 6693 ac_status=$?
mathieu@468 6694 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 6695 rm -f conftest.er1
mathieu@468 6696 cat conftest.err >&5
mathieu@468 6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 6698 (exit $ac_status); } && {
mathieu@468 6699 test -z "$ac_cxx_werror_flag" ||
mathieu@468 6700 test ! -s conftest.err
mathieu@468 6701 } && test -s conftest$ac_exeext &&
mathieu@468 6702 $as_test_x conftest$ac_exeext; then
Chris@350 6703 eval "$as_ac_Lib=yes"
Chris@350 6704 else
mathieu@468 6705 echo "$as_me: failed program was:" >&5
mathieu@468 6706 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 6707
mathieu@468 6708 eval "$as_ac_Lib=no"
mathieu@468 6709 fi
mathieu@468 6710
mathieu@468 6711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 6712 conftest$ac_exeext conftest.$ac_ext
Chris@350 6713 LIBS=$ac_check_lib_save_LIBS
Chris@350 6714 fi
mathieu@468 6715 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 6716 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 6717 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 6718 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@350 6719 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 6720 else
mathieu@468 6721 { { echo "$as_me:$LINENO: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&5
mathieu@468 6722 echo "$as_me: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 6723 { (exit 1); exit 1; }; }
Chris@457 6724 fi
Chris@457 6725
Chris@350 6726 fi
Chris@350 6727 fi
Chris@350 6728
Chris@350 6729
Chris@457 6730
Chris@457 6731 SV_MODULE_MODULE=liblo
Chris@457 6732 SV_MODULE_VERSION_TEST=""
Chris@457 6733 SV_MODULE_HEADER=lo/lo.h
Chris@457 6734 SV_MODULE_LIB=lo
Chris@457 6735 SV_MODULE_FUNC=lo_address_new
Chris@457 6736 SV_MODULE_HAVE=HAVE_$(echo liblo | tr 'a-z' 'A-Z')
Chris@350 6737 SV_MODULE_FAILED=1
Chris@457 6738 if test -n "$liblo_LIBS" ; then
mathieu@468 6739 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 6740 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@457 6741 CXXFLAGS="$CXXFLAGS $liblo_CFLAGS"
Chris@457 6742 LIBS="$LIBS $liblo_LIBS"
Chris@405 6743 SV_MODULE_FAILED=""
Chris@405 6744 fi
Chris@350 6745 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 6746 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 6747 fi
Chris@405 6748 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
mathieu@480 6749 PKG_CHECK_MODULES(liblo,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $liblo_CFLAGS";LIBS="$LIBS $liblo_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means]))
Chris@457 6750 fi
Chris@457 6751 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 6752 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 6753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 6754 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 6755 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 6756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 6757 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 6758 fi
mathieu@468 6759 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 6760 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 6761 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 6762 else
mathieu@468 6763 # Is the header compilable?
mathieu@468 6764 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 6765 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 6766 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 6767 /* confdefs.h. */
mathieu@468 6768 _ACEOF
mathieu@468 6769 cat confdefs.h >>conftest.$ac_ext
mathieu@468 6770 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 6771 /* end confdefs.h. */
mathieu@468 6772 $ac_includes_default
mathieu@468 6773 #include <$SV_MODULE_HEADER>
mathieu@468 6774 _ACEOF
mathieu@468 6775 rm -f conftest.$ac_objext
mathieu@468 6776 if { (ac_try="$ac_compile"
mathieu@468 6777 case "(($ac_try" in
mathieu@468 6778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 6779 *) ac_try_echo=$ac_try;;
mathieu@468 6780 esac
mathieu@468 6781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 6782 (eval "$ac_compile") 2>conftest.er1
Chris@350 6783 ac_status=$?
mathieu@468 6784 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 6785 rm -f conftest.er1
mathieu@468 6786 cat conftest.err >&5
mathieu@468 6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 6788 (exit $ac_status); } && {
mathieu@468 6789 test -z "$ac_cxx_werror_flag" ||
mathieu@468 6790 test ! -s conftest.err
mathieu@468 6791 } && test -s conftest.$ac_objext; then
mathieu@468 6792 ac_header_compiler=yes
mathieu@468 6793 else
mathieu@468 6794 echo "$as_me: failed program was:" >&5
mathieu@468 6795 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 6796
mathieu@468 6797 ac_header_compiler=no
mathieu@468 6798 fi
mathieu@468 6799
mathieu@468 6800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 6801 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 6802 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 6803
mathieu@468 6804 # Is the header present?
mathieu@468 6805 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 6806 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 6807 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 6808 /* confdefs.h. */
mathieu@468 6809 _ACEOF
mathieu@468 6810 cat confdefs.h >>conftest.$ac_ext
mathieu@468 6811 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 6812 /* end confdefs.h. */
mathieu@468 6813 #include <$SV_MODULE_HEADER>
mathieu@468 6814 _ACEOF
mathieu@468 6815 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 6816 case "(($ac_try" in
mathieu@468 6817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 6818 *) ac_try_echo=$ac_try;;
mathieu@468 6819 esac
mathieu@468 6820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 6821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris@350 6822 ac_status=$?
mathieu@468 6823 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 6824 rm -f conftest.er1
mathieu@468 6825 cat conftest.err >&5
mathieu@468 6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 6827 (exit $ac_status); } >/dev/null && {
mathieu@468 6828 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 6829 test ! -s conftest.err
mathieu@468 6830 }; then
mathieu@468 6831 ac_header_preproc=yes
mathieu@468 6832 else
mathieu@468 6833 echo "$as_me: failed program was:" >&5
mathieu@468 6834 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 6835
mathieu@468 6836 ac_header_preproc=no
mathieu@468 6837 fi
mathieu@468 6838
mathieu@468 6839 rm -f conftest.err conftest.$ac_ext
mathieu@468 6840 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 6841 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 6842
mathieu@468 6843 # So? What about this header?
mathieu@468 6844 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 6845 yes:no: )
mathieu@468 6846 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 6847 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 6848 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 6849 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 6850 ac_header_preproc=yes
mathieu@468 6851 ;;
mathieu@468 6852 no:yes:* )
mathieu@468 6853 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 6854 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 6855 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 6856 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 6857 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 6858 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 6859 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 6860 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 6861 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 6862 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 6863 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 6864 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 6865 ( cat <<\_ASBOX
mathieu@468 6866 ## ------------------------------------------- ##
mathieu@468 6867 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 6868 ## ------------------------------------------- ##
mathieu@468 6869 _ASBOX
mathieu@468 6870 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 6871 ;;
mathieu@468 6872 esac
mathieu@468 6873 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 6874 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 6875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 6876 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 6877 else
mathieu@468 6878 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 6879 fi
mathieu@468 6880 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 6881 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 6882 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 6883
mathieu@468 6884 fi
mathieu@468 6885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 6886 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
Chris@350 6887 else
mathieu@468 6888 { echo "$as_me:$LINENO: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
mathieu@468 6889 echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
Chris@350 6890 fi
Chris@350 6891
Chris@350 6892
Chris@350 6893 if test -z "$SV_MODULE_FAILED"; then
Chris@350 6894 if test -n "$SV_MODULE_LIB"; then
mathieu@468 6895 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 6896 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 6897 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 6898 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 6899 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 6900 else
Chris@350 6901 ac_check_lib_save_LIBS=$LIBS
Chris@350 6902 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 6903 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 6904 /* confdefs.h. */
mathieu@468 6905 _ACEOF
mathieu@468 6906 cat confdefs.h >>conftest.$ac_ext
mathieu@468 6907 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 6908 /* end confdefs.h. */
Chris@350 6909
Chris@350 6910 /* Override any GCC internal prototype to avoid an error.
Chris@350 6911 Use char because int might match the return type of a GCC
Chris@350 6912 builtin and then its argument prototype would still apply. */
Chris@350 6913 #ifdef __cplusplus
Chris@350 6914 extern "C"
Chris@350 6915 #endif
Chris@350 6916 char $SV_MODULE_FUNC ();
Chris@350 6917 int
Chris@350 6918 main ()
Chris@350 6919 {
Chris@350 6920 return $SV_MODULE_FUNC ();
Chris@350 6921 ;
Chris@350 6922 return 0;
Chris@350 6923 }
Chris@350 6924 _ACEOF
mathieu@468 6925 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 6926 if { (ac_try="$ac_link"
mathieu@468 6927 case "(($ac_try" in
mathieu@468 6928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 6929 *) ac_try_echo=$ac_try;;
mathieu@468 6930 esac
mathieu@468 6931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 6932 (eval "$ac_link") 2>conftest.er1
mathieu@468 6933 ac_status=$?
mathieu@468 6934 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 6935 rm -f conftest.er1
mathieu@468 6936 cat conftest.err >&5
mathieu@468 6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 6938 (exit $ac_status); } && {
mathieu@468 6939 test -z "$ac_cxx_werror_flag" ||
mathieu@468 6940 test ! -s conftest.err
mathieu@468 6941 } && test -s conftest$ac_exeext &&
mathieu@468 6942 $as_test_x conftest$ac_exeext; then
Chris@350 6943 eval "$as_ac_Lib=yes"
Chris@350 6944 else
mathieu@468 6945 echo "$as_me: failed program was:" >&5
mathieu@468 6946 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 6947
mathieu@468 6948 eval "$as_ac_Lib=no"
mathieu@468 6949 fi
mathieu@468 6950
mathieu@468 6951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 6952 conftest$ac_exeext conftest.$ac_ext
Chris@350 6953 LIBS=$ac_check_lib_save_LIBS
Chris@350 6954 fi
mathieu@468 6955 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 6956 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 6957 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 6958 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@350 6959 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 6960 else
mathieu@468 6961 { echo "$as_me:$LINENO: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
mathieu@468 6962 echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
Chris@350 6963 fi
Chris@350 6964
Chris@350 6965 fi
Chris@350 6966 fi
Chris@350 6967 fi
Chris@350 6968
Chris@350 6969
Chris@457 6970 SV_MODULE_MODULE=portaudio_2_0
Chris@457 6971 SV_MODULE_VERSION_TEST="portaudio-2.0 >= 19"
Chris@457 6972 SV_MODULE_HEADER=portaudio.h
Chris@457 6973 SV_MODULE_LIB=portaudio
Chris@457 6974 SV_MODULE_FUNC=Pa_IsFormatSupported
Chris@457 6975 SV_MODULE_HAVE=HAVE_$(echo portaudio_2_0 | tr 'a-z' 'A-Z')
Chris@358 6976 SV_MODULE_FAILED=1
Chris@457 6977 if test -n "$portaudio_2_0_LIBS" ; then
mathieu@468 6978 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 6979 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@457 6980 CXXFLAGS="$CXXFLAGS $portaudio_2_0_CFLAGS"
Chris@457 6981 LIBS="$LIBS $portaudio_2_0_LIBS"
Chris@405 6982 SV_MODULE_FAILED=""
Chris@405 6983 fi
Chris@358 6984 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@358 6985 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@358 6986 fi
Chris@405 6987 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
mathieu@480 6988 PKG_CHECK_MODULES(portaudio_2_0,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $portaudio_2_0_CFLAGS";LIBS="$LIBS $portaudio_2_0_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means]))
Chris@457 6989 fi
Chris@457 6990 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 6991 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 6992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 6993 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 6994 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 6995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 6996 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 6997 fi
mathieu@468 6998 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 6999 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 7000 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 7001 else
mathieu@468 7002 # Is the header compilable?
mathieu@468 7003 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 7004 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 7005 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 7006 /* confdefs.h. */
mathieu@468 7007 _ACEOF
mathieu@468 7008 cat confdefs.h >>conftest.$ac_ext
mathieu@468 7009 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 7010 /* end confdefs.h. */
mathieu@468 7011 $ac_includes_default
mathieu@468 7012 #include <$SV_MODULE_HEADER>
mathieu@468 7013 _ACEOF
mathieu@468 7014 rm -f conftest.$ac_objext
mathieu@468 7015 if { (ac_try="$ac_compile"
mathieu@468 7016 case "(($ac_try" in
mathieu@468 7017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 7018 *) ac_try_echo=$ac_try;;
mathieu@468 7019 esac
mathieu@468 7020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 7021 (eval "$ac_compile") 2>conftest.er1
Chris@358 7022 ac_status=$?
mathieu@468 7023 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 7024 rm -f conftest.er1
mathieu@468 7025 cat conftest.err >&5
mathieu@468 7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 7027 (exit $ac_status); } && {
mathieu@468 7028 test -z "$ac_cxx_werror_flag" ||
mathieu@468 7029 test ! -s conftest.err
mathieu@468 7030 } && test -s conftest.$ac_objext; then
mathieu@468 7031 ac_header_compiler=yes
mathieu@468 7032 else
mathieu@468 7033 echo "$as_me: failed program was:" >&5
mathieu@468 7034 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 7035
mathieu@468 7036 ac_header_compiler=no
mathieu@468 7037 fi
mathieu@468 7038
mathieu@468 7039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 7040 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 7041 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 7042
mathieu@468 7043 # Is the header present?
mathieu@468 7044 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 7045 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 7046 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 7047 /* confdefs.h. */
mathieu@468 7048 _ACEOF
mathieu@468 7049 cat confdefs.h >>conftest.$ac_ext
mathieu@468 7050 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 7051 /* end confdefs.h. */
mathieu@468 7052 #include <$SV_MODULE_HEADER>
mathieu@468 7053 _ACEOF
mathieu@468 7054 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 7055 case "(($ac_try" in
mathieu@468 7056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 7057 *) ac_try_echo=$ac_try;;
mathieu@468 7058 esac
mathieu@468 7059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 7060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris@358 7061 ac_status=$?
mathieu@468 7062 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 7063 rm -f conftest.er1
mathieu@468 7064 cat conftest.err >&5
mathieu@468 7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 7066 (exit $ac_status); } >/dev/null && {
mathieu@468 7067 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 7068 test ! -s conftest.err
mathieu@468 7069 }; then
mathieu@468 7070 ac_header_preproc=yes
mathieu@468 7071 else
mathieu@468 7072 echo "$as_me: failed program was:" >&5
mathieu@468 7073 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 7074
mathieu@468 7075 ac_header_preproc=no
mathieu@468 7076 fi
mathieu@468 7077
mathieu@468 7078 rm -f conftest.err conftest.$ac_ext
mathieu@468 7079 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 7080 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 7081
mathieu@468 7082 # So? What about this header?
mathieu@468 7083 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 7084 yes:no: )
mathieu@468 7085 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 7086 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 7087 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 7088 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 7089 ac_header_preproc=yes
mathieu@468 7090 ;;
mathieu@468 7091 no:yes:* )
mathieu@468 7092 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 7093 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 7094 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 7095 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 7096 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 7097 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 7098 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 7099 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 7100 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 7101 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 7102 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 7103 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 7104 ( cat <<\_ASBOX
mathieu@468 7105 ## ------------------------------------------- ##
mathieu@468 7106 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 7107 ## ------------------------------------------- ##
mathieu@468 7108 _ASBOX
mathieu@468 7109 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 7110 ;;
mathieu@468 7111 esac
mathieu@468 7112 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 7113 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 7114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 7115 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 7116 else
mathieu@468 7117 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 7118 fi
mathieu@468 7119 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 7120 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 7121 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 7122
mathieu@468 7123 fi
mathieu@468 7124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@358 7125 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
Chris@358 7126 else
mathieu@468 7127 { echo "$as_me:$LINENO: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
mathieu@468 7128 echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
Chris@358 7129 fi
Chris@358 7130
Chris@358 7131
Chris@358 7132 if test -z "$SV_MODULE_FAILED"; then
Chris@358 7133 if test -n "$SV_MODULE_LIB"; then
mathieu@468 7134 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 7135 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 7136 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 7137 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 7138 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@358 7139 else
Chris@358 7140 ac_check_lib_save_LIBS=$LIBS
Chris@358 7141 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 7142 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 7143 /* confdefs.h. */
mathieu@468 7144 _ACEOF
mathieu@468 7145 cat confdefs.h >>conftest.$ac_ext
mathieu@468 7146 cat >>conftest.$ac_ext <<_ACEOF
Chris@358 7147 /* end confdefs.h. */
Chris@358 7148
Chris@358 7149 /* Override any GCC internal prototype to avoid an error.
Chris@358 7150 Use char because int might match the return type of a GCC
Chris@358 7151 builtin and then its argument prototype would still apply. */
Chris@358 7152 #ifdef __cplusplus
Chris@358 7153 extern "C"
Chris@358 7154 #endif
Chris@358 7155 char $SV_MODULE_FUNC ();
Chris@358 7156 int
Chris@358 7157 main ()
Chris@358 7158 {
Chris@358 7159 return $SV_MODULE_FUNC ();
Chris@358 7160 ;
Chris@358 7161 return 0;
Chris@358 7162 }
Chris@358 7163 _ACEOF
mathieu@468 7164 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 7165 if { (ac_try="$ac_link"
mathieu@468 7166 case "(($ac_try" in
mathieu@468 7167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 7168 *) ac_try_echo=$ac_try;;
mathieu@468 7169 esac
mathieu@468 7170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 7171 (eval "$ac_link") 2>conftest.er1
mathieu@468 7172 ac_status=$?
mathieu@468 7173 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 7174 rm -f conftest.er1
mathieu@468 7175 cat conftest.err >&5
mathieu@468 7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 7177 (exit $ac_status); } && {
mathieu@468 7178 test -z "$ac_cxx_werror_flag" ||
mathieu@468 7179 test ! -s conftest.err
mathieu@468 7180 } && test -s conftest$ac_exeext &&
mathieu@468 7181 $as_test_x conftest$ac_exeext; then
Chris@358 7182 eval "$as_ac_Lib=yes"
Chris@358 7183 else
mathieu@468 7184 echo "$as_me: failed program was:" >&5
mathieu@468 7185 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 7186
mathieu@468 7187 eval "$as_ac_Lib=no"
mathieu@468 7188 fi
mathieu@468 7189
mathieu@468 7190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 7191 conftest$ac_exeext conftest.$ac_ext
Chris@358 7192 LIBS=$ac_check_lib_save_LIBS
Chris@358 7193 fi
mathieu@468 7194 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 7195 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 7196 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 7197 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@358 7198 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@358 7199 else
mathieu@468 7200 { echo "$as_me:$LINENO: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
mathieu@468 7201 echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
Chris@358 7202 fi
Chris@358 7203
Chris@358 7204 fi
Chris@358 7205 fi
Chris@358 7206 fi
Chris@358 7207
Chris@358 7208
Chris@457 7209 SV_MODULE_MODULE=JACK
Chris@457 7210 SV_MODULE_VERSION_TEST="jack >= 0.100"
Chris@457 7211 SV_MODULE_HEADER=jack/jack.h
Chris@457 7212 SV_MODULE_LIB=jack
Chris@457 7213 SV_MODULE_FUNC=jack_client_open
Chris@457 7214 SV_MODULE_HAVE=HAVE_$(echo JACK | tr 'a-z' 'A-Z')
Chris@350 7215 SV_MODULE_FAILED=1
Chris@457 7216 if test -n "$JACK_LIBS" ; then
mathieu@468 7217 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 7218 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@457 7219 CXXFLAGS="$CXXFLAGS $JACK_CFLAGS"
Chris@457 7220 LIBS="$LIBS $JACK_LIBS"
Chris@405 7221 SV_MODULE_FAILED=""
Chris@405 7222 fi
Chris@350 7223 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 7224 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 7225 fi
Chris@405 7226 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
mathieu@480 7227 PKG_CHECK_MODULES(JACK,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $JACK_CFLAGS";LIBS="$LIBS $JACK_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means]))
Chris@457 7228 fi
Chris@457 7229 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 7230 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 7231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 7232 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 7233 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 7234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 7235 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 7236 fi
mathieu@468 7237 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 7238 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 7239 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 7240 else
mathieu@468 7241 # Is the header compilable?
mathieu@468 7242 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 7243 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 7244 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 7245 /* confdefs.h. */
mathieu@468 7246 _ACEOF
mathieu@468 7247 cat confdefs.h >>conftest.$ac_ext
mathieu@468 7248 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 7249 /* end confdefs.h. */
mathieu@468 7250 $ac_includes_default
mathieu@468 7251 #include <$SV_MODULE_HEADER>
mathieu@468 7252 _ACEOF
mathieu@468 7253 rm -f conftest.$ac_objext
mathieu@468 7254 if { (ac_try="$ac_compile"
mathieu@468 7255 case "(($ac_try" in
mathieu@468 7256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 7257 *) ac_try_echo=$ac_try;;
mathieu@468 7258 esac
mathieu@468 7259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 7260 (eval "$ac_compile") 2>conftest.er1
Chris@350 7261 ac_status=$?
mathieu@468 7262 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 7263 rm -f conftest.er1
mathieu@468 7264 cat conftest.err >&5
mathieu@468 7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 7266 (exit $ac_status); } && {
mathieu@468 7267 test -z "$ac_cxx_werror_flag" ||
mathieu@468 7268 test ! -s conftest.err
mathieu@468 7269 } && test -s conftest.$ac_objext; then
mathieu@468 7270 ac_header_compiler=yes
mathieu@468 7271 else
mathieu@468 7272 echo "$as_me: failed program was:" >&5
mathieu@468 7273 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 7274
mathieu@468 7275 ac_header_compiler=no
mathieu@468 7276 fi
mathieu@468 7277
mathieu@468 7278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 7279 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 7280 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 7281
mathieu@468 7282 # Is the header present?
mathieu@468 7283 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 7284 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 7285 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 7286 /* confdefs.h. */
mathieu@468 7287 _ACEOF
mathieu@468 7288 cat confdefs.h >>conftest.$ac_ext
mathieu@468 7289 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 7290 /* end confdefs.h. */
mathieu@468 7291 #include <$SV_MODULE_HEADER>
mathieu@468 7292 _ACEOF
mathieu@468 7293 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 7294 case "(($ac_try" in
mathieu@468 7295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 7296 *) ac_try_echo=$ac_try;;
mathieu@468 7297 esac
mathieu@468 7298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 7299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris@350 7300 ac_status=$?
mathieu@468 7301 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 7302 rm -f conftest.er1
mathieu@468 7303 cat conftest.err >&5
mathieu@468 7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 7305 (exit $ac_status); } >/dev/null && {
mathieu@468 7306 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 7307 test ! -s conftest.err
mathieu@468 7308 }; then
mathieu@468 7309 ac_header_preproc=yes
mathieu@468 7310 else
mathieu@468 7311 echo "$as_me: failed program was:" >&5
mathieu@468 7312 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 7313
mathieu@468 7314 ac_header_preproc=no
mathieu@468 7315 fi
mathieu@468 7316
mathieu@468 7317 rm -f conftest.err conftest.$ac_ext
mathieu@468 7318 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 7319 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 7320
mathieu@468 7321 # So? What about this header?
mathieu@468 7322 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 7323 yes:no: )
mathieu@468 7324 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 7325 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 7326 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 7327 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 7328 ac_header_preproc=yes
mathieu@468 7329 ;;
mathieu@468 7330 no:yes:* )
mathieu@468 7331 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 7332 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 7333 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 7334 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 7335 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 7336 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 7337 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 7338 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 7339 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 7340 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 7341 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 7342 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 7343 ( cat <<\_ASBOX
mathieu@468 7344 ## ------------------------------------------- ##
mathieu@468 7345 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 7346 ## ------------------------------------------- ##
mathieu@468 7347 _ASBOX
mathieu@468 7348 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 7349 ;;
mathieu@468 7350 esac
mathieu@468 7351 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 7352 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 7353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 7354 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 7355 else
mathieu@468 7356 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 7357 fi
mathieu@468 7358 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 7359 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 7360 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 7361
mathieu@468 7362 fi
mathieu@468 7363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 7364 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
Chris@350 7365 else
mathieu@468 7366 { echo "$as_me:$LINENO: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
mathieu@468 7367 echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
Chris@350 7368 fi
Chris@350 7369
Chris@350 7370
Chris@350 7371 if test -z "$SV_MODULE_FAILED"; then
Chris@350 7372 if test -n "$SV_MODULE_LIB"; then
mathieu@468 7373 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 7374 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 7375 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 7376 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 7377 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 7378 else
Chris@350 7379 ac_check_lib_save_LIBS=$LIBS
Chris@350 7380 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 7381 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 7382 /* confdefs.h. */
mathieu@468 7383 _ACEOF
mathieu@468 7384 cat confdefs.h >>conftest.$ac_ext
mathieu@468 7385 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 7386 /* end confdefs.h. */
Chris@350 7387
Chris@350 7388 /* Override any GCC internal prototype to avoid an error.
Chris@350 7389 Use char because int might match the return type of a GCC
Chris@350 7390 builtin and then its argument prototype would still apply. */
Chris@350 7391 #ifdef __cplusplus
Chris@350 7392 extern "C"
Chris@350 7393 #endif
Chris@350 7394 char $SV_MODULE_FUNC ();
Chris@350 7395 int
Chris@350 7396 main ()
Chris@350 7397 {
Chris@350 7398 return $SV_MODULE_FUNC ();
Chris@350 7399 ;
Chris@350 7400 return 0;
Chris@350 7401 }
Chris@350 7402 _ACEOF
mathieu@468 7403 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 7404 if { (ac_try="$ac_link"
mathieu@468 7405 case "(($ac_try" in
mathieu@468 7406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 7407 *) ac_try_echo=$ac_try;;
mathieu@468 7408 esac
mathieu@468 7409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 7410 (eval "$ac_link") 2>conftest.er1
mathieu@468 7411 ac_status=$?
mathieu@468 7412 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 7413 rm -f conftest.er1
mathieu@468 7414 cat conftest.err >&5
mathieu@468 7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 7416 (exit $ac_status); } && {
mathieu@468 7417 test -z "$ac_cxx_werror_flag" ||
mathieu@468 7418 test ! -s conftest.err
mathieu@468 7419 } && test -s conftest$ac_exeext &&
mathieu@468 7420 $as_test_x conftest$ac_exeext; then
Chris@350 7421 eval "$as_ac_Lib=yes"
Chris@350 7422 else
mathieu@468 7423 echo "$as_me: failed program was:" >&5
mathieu@468 7424 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 7425
mathieu@468 7426 eval "$as_ac_Lib=no"
mathieu@468 7427 fi
mathieu@468 7428
mathieu@468 7429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 7430 conftest$ac_exeext conftest.$ac_ext
Chris@350 7431 LIBS=$ac_check_lib_save_LIBS
Chris@350 7432 fi
mathieu@468 7433 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 7434 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 7435 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 7436 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@350 7437 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 7438 else
mathieu@468 7439 { echo "$as_me:$LINENO: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
mathieu@468 7440 echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
Chris@350 7441 fi
Chris@350 7442
Chris@350 7443 fi
Chris@350 7444 fi
Chris@350 7445 fi
Chris@350 7446
Chris@350 7447
Chris@457 7448 SV_MODULE_MODULE=libpulse
Chris@457 7449 SV_MODULE_VERSION_TEST="libpulse >= 0.9"
Chris@457 7450 SV_MODULE_HEADER=pulse/pulseaudio.h
Chris@457 7451 SV_MODULE_LIB=pulse
Chris@457 7452 SV_MODULE_FUNC=pa_stream_new
Chris@457 7453 SV_MODULE_HAVE=HAVE_$(echo libpulse | tr 'a-z' 'A-Z')
Chris@350 7454 SV_MODULE_FAILED=1
Chris@457 7455 if test -n "$libpulse_LIBS" ; then
mathieu@468 7456 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 7457 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@457 7458 CXXFLAGS="$CXXFLAGS $libpulse_CFLAGS"
Chris@457 7459 LIBS="$LIBS $libpulse_LIBS"
Chris@405 7460 SV_MODULE_FAILED=""
Chris@405 7461 fi
Chris@350 7462 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 7463 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 7464 fi
Chris@405 7465 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
mathieu@480 7466 PKG_CHECK_MODULES(libpulse,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $libpulse_CFLAGS";LIBS="$LIBS $libpulse_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means]))
Chris@457 7467 fi
Chris@457 7468 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 7469 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 7470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 7471 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 7472 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 7473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 7474 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 7475 fi
mathieu@468 7476 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 7477 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 7478 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 7479 else
mathieu@468 7480 # Is the header compilable?
mathieu@468 7481 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 7482 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 7483 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 7484 /* confdefs.h. */
mathieu@468 7485 _ACEOF
mathieu@468 7486 cat confdefs.h >>conftest.$ac_ext
mathieu@468 7487 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 7488 /* end confdefs.h. */
mathieu@468 7489 $ac_includes_default
mathieu@468 7490 #include <$SV_MODULE_HEADER>
mathieu@468 7491 _ACEOF
mathieu@468 7492 rm -f conftest.$ac_objext
mathieu@468 7493 if { (ac_try="$ac_compile"
mathieu@468 7494 case "(($ac_try" in
mathieu@468 7495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 7496 *) ac_try_echo=$ac_try;;
mathieu@468 7497 esac
mathieu@468 7498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 7499 (eval "$ac_compile") 2>conftest.er1
Chris@350 7500 ac_status=$?
mathieu@468 7501 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 7502 rm -f conftest.er1
mathieu@468 7503 cat conftest.err >&5
mathieu@468 7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 7505 (exit $ac_status); } && {
mathieu@468 7506 test -z "$ac_cxx_werror_flag" ||
mathieu@468 7507 test ! -s conftest.err
mathieu@468 7508 } && test -s conftest.$ac_objext; then
mathieu@468 7509 ac_header_compiler=yes
mathieu@468 7510 else
mathieu@468 7511 echo "$as_me: failed program was:" >&5
mathieu@468 7512 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 7513
mathieu@468 7514 ac_header_compiler=no
mathieu@468 7515 fi
mathieu@468 7516
mathieu@468 7517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 7518 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 7519 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 7520
mathieu@468 7521 # Is the header present?
mathieu@468 7522 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 7523 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 7524 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 7525 /* confdefs.h. */
mathieu@468 7526 _ACEOF
mathieu@468 7527 cat confdefs.h >>conftest.$ac_ext
mathieu@468 7528 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 7529 /* end confdefs.h. */
mathieu@468 7530 #include <$SV_MODULE_HEADER>
mathieu@468 7531 _ACEOF
mathieu@468 7532 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 7533 case "(($ac_try" in
mathieu@468 7534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 7535 *) ac_try_echo=$ac_try;;
mathieu@468 7536 esac
mathieu@468 7537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 7538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris@350 7539 ac_status=$?
mathieu@468 7540 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 7541 rm -f conftest.er1
mathieu@468 7542 cat conftest.err >&5
mathieu@468 7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 7544 (exit $ac_status); } >/dev/null && {
mathieu@468 7545 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 7546 test ! -s conftest.err
mathieu@468 7547 }; then
mathieu@468 7548 ac_header_preproc=yes
mathieu@468 7549 else
mathieu@468 7550 echo "$as_me: failed program was:" >&5
mathieu@468 7551 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 7552
mathieu@468 7553 ac_header_preproc=no
mathieu@468 7554 fi
mathieu@468 7555
mathieu@468 7556 rm -f conftest.err conftest.$ac_ext
mathieu@468 7557 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 7558 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 7559
mathieu@468 7560 # So? What about this header?
mathieu@468 7561 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 7562 yes:no: )
mathieu@468 7563 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 7564 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 7565 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 7566 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 7567 ac_header_preproc=yes
mathieu@468 7568 ;;
mathieu@468 7569 no:yes:* )
mathieu@468 7570 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 7571 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 7572 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 7573 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 7574 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 7575 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 7576 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 7577 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 7578 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 7579 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 7580 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 7581 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 7582 ( cat <<\_ASBOX
mathieu@468 7583 ## ------------------------------------------- ##
mathieu@468 7584 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 7585 ## ------------------------------------------- ##
mathieu@468 7586 _ASBOX
mathieu@468 7587 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 7588 ;;
mathieu@468 7589 esac
mathieu@468 7590 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 7591 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 7592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 7593 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 7594 else
mathieu@468 7595 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 7596 fi
mathieu@468 7597 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 7598 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 7599 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 7600
mathieu@468 7601 fi
mathieu@468 7602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 7603 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
Chris@350 7604 else
mathieu@468 7605 { echo "$as_me:$LINENO: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
mathieu@468 7606 echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
Chris@350 7607 fi
Chris@350 7608
Chris@350 7609
Chris@350 7610 if test -z "$SV_MODULE_FAILED"; then
Chris@350 7611 if test -n "$SV_MODULE_LIB"; then
mathieu@468 7612 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 7613 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 7614 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 7615 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 7616 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 7617 else
Chris@350 7618 ac_check_lib_save_LIBS=$LIBS
Chris@350 7619 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 7620 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 7621 /* confdefs.h. */
mathieu@468 7622 _ACEOF
mathieu@468 7623 cat confdefs.h >>conftest.$ac_ext
mathieu@468 7624 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 7625 /* end confdefs.h. */
Chris@350 7626
Chris@350 7627 /* Override any GCC internal prototype to avoid an error.
Chris@350 7628 Use char because int might match the return type of a GCC
Chris@350 7629 builtin and then its argument prototype would still apply. */
Chris@350 7630 #ifdef __cplusplus
Chris@350 7631 extern "C"
Chris@350 7632 #endif
Chris@350 7633 char $SV_MODULE_FUNC ();
Chris@350 7634 int
Chris@350 7635 main ()
Chris@350 7636 {
Chris@350 7637 return $SV_MODULE_FUNC ();
Chris@350 7638 ;
Chris@350 7639 return 0;
Chris@350 7640 }
Chris@350 7641 _ACEOF
mathieu@468 7642 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 7643 if { (ac_try="$ac_link"
mathieu@468 7644 case "(($ac_try" in
mathieu@468 7645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 7646 *) ac_try_echo=$ac_try;;
mathieu@468 7647 esac
mathieu@468 7648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 7649 (eval "$ac_link") 2>conftest.er1
mathieu@468 7650 ac_status=$?
mathieu@468 7651 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 7652 rm -f conftest.er1
mathieu@468 7653 cat conftest.err >&5
mathieu@468 7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 7655 (exit $ac_status); } && {
mathieu@468 7656 test -z "$ac_cxx_werror_flag" ||
mathieu@468 7657 test ! -s conftest.err
mathieu@468 7658 } && test -s conftest$ac_exeext &&
mathieu@468 7659 $as_test_x conftest$ac_exeext; then
Chris@350 7660 eval "$as_ac_Lib=yes"
Chris@350 7661 else
mathieu@468 7662 echo "$as_me: failed program was:" >&5
mathieu@468 7663 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 7664
mathieu@468 7665 eval "$as_ac_Lib=no"
mathieu@468 7666 fi
mathieu@468 7667
mathieu@468 7668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 7669 conftest$ac_exeext conftest.$ac_ext
Chris@350 7670 LIBS=$ac_check_lib_save_LIBS
Chris@350 7671 fi
mathieu@468 7672 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 7673 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 7674 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 7675 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@350 7676 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 7677 else
mathieu@468 7678 { echo "$as_me:$LINENO: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
mathieu@468 7679 echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
Chris@350 7680 fi
Chris@350 7681
Chris@350 7682 fi
Chris@350 7683 fi
Chris@350 7684 fi
Chris@350 7685
Chris@350 7686
Chris@457 7687 SV_MODULE_MODULE=lrdf
Chris@457 7688 SV_MODULE_VERSION_TEST="lrdf >= 0.2"
Chris@457 7689 SV_MODULE_HEADER=lrdf.h
Chris@457 7690 SV_MODULE_LIB=lrdf
Chris@457 7691 SV_MODULE_FUNC=lrdf_init
Chris@457 7692 SV_MODULE_HAVE=HAVE_$(echo lrdf | tr 'a-z' 'A-Z')
Chris@350 7693 SV_MODULE_FAILED=1
Chris@457 7694 if test -n "$lrdf_LIBS" ; then
mathieu@468 7695 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 7696 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@457 7697 CXXFLAGS="$CXXFLAGS $lrdf_CFLAGS"
Chris@457 7698 LIBS="$LIBS $lrdf_LIBS"
Chris@405 7699 SV_MODULE_FAILED=""
Chris@405 7700 fi
Chris@350 7701 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 7702 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 7703 fi
Chris@405 7704 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
mathieu@480 7705 PKG_CHECK_MODULES(lrdf,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $lrdf_CFLAGS";LIBS="$LIBS $lrdf_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means]))
Chris@457 7706 fi
Chris@457 7707 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 7708 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 7709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 7710 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 7711 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 7712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 7713 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 7714 fi
mathieu@468 7715 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 7716 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 7717 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 7718 else
mathieu@468 7719 # Is the header compilable?
mathieu@468 7720 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 7721 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 7722 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 7723 /* confdefs.h. */
mathieu@468 7724 _ACEOF
mathieu@468 7725 cat confdefs.h >>conftest.$ac_ext
mathieu@468 7726 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 7727 /* end confdefs.h. */
mathieu@468 7728 $ac_includes_default
mathieu@468 7729 #include <$SV_MODULE_HEADER>
mathieu@468 7730 _ACEOF
mathieu@468 7731 rm -f conftest.$ac_objext
mathieu@468 7732 if { (ac_try="$ac_compile"
mathieu@468 7733 case "(($ac_try" in
mathieu@468 7734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 7735 *) ac_try_echo=$ac_try;;
mathieu@468 7736 esac
mathieu@468 7737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 7738 (eval "$ac_compile") 2>conftest.er1
Chris@350 7739 ac_status=$?
mathieu@468 7740 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 7741 rm -f conftest.er1
mathieu@468 7742 cat conftest.err >&5
mathieu@468 7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 7744 (exit $ac_status); } && {
mathieu@468 7745 test -z "$ac_cxx_werror_flag" ||
mathieu@468 7746 test ! -s conftest.err
mathieu@468 7747 } && test -s conftest.$ac_objext; then
mathieu@468 7748 ac_header_compiler=yes
mathieu@468 7749 else
mathieu@468 7750 echo "$as_me: failed program was:" >&5
mathieu@468 7751 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 7752
mathieu@468 7753 ac_header_compiler=no
mathieu@468 7754 fi
mathieu@468 7755
mathieu@468 7756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 7757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 7758 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 7759
mathieu@468 7760 # Is the header present?
mathieu@468 7761 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 7762 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 7763 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 7764 /* confdefs.h. */
mathieu@468 7765 _ACEOF
mathieu@468 7766 cat confdefs.h >>conftest.$ac_ext
mathieu@468 7767 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 7768 /* end confdefs.h. */
mathieu@468 7769 #include <$SV_MODULE_HEADER>
mathieu@468 7770 _ACEOF
mathieu@468 7771 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 7772 case "(($ac_try" in
mathieu@468 7773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 7774 *) ac_try_echo=$ac_try;;
mathieu@468 7775 esac
mathieu@468 7776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 7777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris@350 7778 ac_status=$?
mathieu@468 7779 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 7780 rm -f conftest.er1
mathieu@468 7781 cat conftest.err >&5
mathieu@468 7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 7783 (exit $ac_status); } >/dev/null && {
mathieu@468 7784 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 7785 test ! -s conftest.err
mathieu@468 7786 }; then
mathieu@468 7787 ac_header_preproc=yes
mathieu@468 7788 else
mathieu@468 7789 echo "$as_me: failed program was:" >&5
mathieu@468 7790 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 7791
mathieu@468 7792 ac_header_preproc=no
mathieu@468 7793 fi
mathieu@468 7794
mathieu@468 7795 rm -f conftest.err conftest.$ac_ext
mathieu@468 7796 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 7797 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 7798
mathieu@468 7799 # So? What about this header?
mathieu@468 7800 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 7801 yes:no: )
mathieu@468 7802 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 7803 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 7804 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 7805 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 7806 ac_header_preproc=yes
mathieu@468 7807 ;;
mathieu@468 7808 no:yes:* )
mathieu@468 7809 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 7810 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 7811 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 7812 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 7813 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 7814 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 7815 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 7816 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 7817 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 7818 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 7819 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 7820 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 7821 ( cat <<\_ASBOX
mathieu@468 7822 ## ------------------------------------------- ##
mathieu@468 7823 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 7824 ## ------------------------------------------- ##
mathieu@468 7825 _ASBOX
mathieu@468 7826 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 7827 ;;
mathieu@468 7828 esac
mathieu@468 7829 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 7830 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 7831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 7832 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 7833 else
mathieu@468 7834 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 7835 fi
mathieu@468 7836 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 7837 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 7838 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 7839
mathieu@468 7840 fi
mathieu@468 7841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 7842 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
Chris@350 7843 else
mathieu@468 7844 { echo "$as_me:$LINENO: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
mathieu@468 7845 echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
Chris@350 7846 fi
Chris@350 7847
Chris@350 7848
Chris@350 7849 if test -z "$SV_MODULE_FAILED"; then
Chris@350 7850 if test -n "$SV_MODULE_LIB"; then
mathieu@468 7851 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 7852 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 7853 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 7854 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 7855 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 7856 else
Chris@350 7857 ac_check_lib_save_LIBS=$LIBS
Chris@350 7858 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 7859 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 7860 /* confdefs.h. */
mathieu@468 7861 _ACEOF
mathieu@468 7862 cat confdefs.h >>conftest.$ac_ext
mathieu@468 7863 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 7864 /* end confdefs.h. */
Chris@350 7865
Chris@350 7866 /* Override any GCC internal prototype to avoid an error.
Chris@350 7867 Use char because int might match the return type of a GCC
Chris@350 7868 builtin and then its argument prototype would still apply. */
Chris@350 7869 #ifdef __cplusplus
Chris@350 7870 extern "C"
Chris@350 7871 #endif
Chris@350 7872 char $SV_MODULE_FUNC ();
Chris@350 7873 int
Chris@350 7874 main ()
Chris@350 7875 {
Chris@350 7876 return $SV_MODULE_FUNC ();
Chris@350 7877 ;
Chris@350 7878 return 0;
Chris@350 7879 }
Chris@350 7880 _ACEOF
mathieu@468 7881 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 7882 if { (ac_try="$ac_link"
mathieu@468 7883 case "(($ac_try" in
mathieu@468 7884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 7885 *) ac_try_echo=$ac_try;;
mathieu@468 7886 esac
mathieu@468 7887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 7888 (eval "$ac_link") 2>conftest.er1
mathieu@468 7889 ac_status=$?
mathieu@468 7890 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 7891 rm -f conftest.er1
mathieu@468 7892 cat conftest.err >&5
mathieu@468 7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 7894 (exit $ac_status); } && {
mathieu@468 7895 test -z "$ac_cxx_werror_flag" ||
mathieu@468 7896 test ! -s conftest.err
mathieu@468 7897 } && test -s conftest$ac_exeext &&
mathieu@468 7898 $as_test_x conftest$ac_exeext; then
Chris@350 7899 eval "$as_ac_Lib=yes"
Chris@350 7900 else
mathieu@468 7901 echo "$as_me: failed program was:" >&5
mathieu@468 7902 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 7903
mathieu@468 7904 eval "$as_ac_Lib=no"
mathieu@468 7905 fi
mathieu@468 7906
mathieu@468 7907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 7908 conftest$ac_exeext conftest.$ac_ext
Chris@350 7909 LIBS=$ac_check_lib_save_LIBS
Chris@350 7910 fi
mathieu@468 7911 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 7912 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 7913 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 7914 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@350 7915 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 7916 else
mathieu@468 7917 { echo "$as_me:$LINENO: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
mathieu@468 7918 echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
Chris@350 7919 fi
Chris@350 7920
Chris@350 7921 fi
Chris@350 7922 fi
Chris@350 7923 fi
Chris@350 7924
Chris@350 7925
Chris@457 7926 SV_MODULE_MODULE=oggz
Chris@457 7927 SV_MODULE_VERSION_TEST="oggz >= 1.0.0"
Chris@457 7928 SV_MODULE_HEADER=oggz/oggz.h
Chris@457 7929 SV_MODULE_LIB=oggz
Chris@457 7930 SV_MODULE_FUNC=oggz_run
Chris@457 7931 SV_MODULE_HAVE=HAVE_$(echo oggz | tr 'a-z' 'A-Z')
Chris@350 7932 SV_MODULE_FAILED=1
Chris@457 7933 if test -n "$oggz_LIBS" ; then
mathieu@468 7934 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 7935 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@457 7936 CXXFLAGS="$CXXFLAGS $oggz_CFLAGS"
Chris@457 7937 LIBS="$LIBS $oggz_LIBS"
Chris@405 7938 SV_MODULE_FAILED=""
Chris@405 7939 fi
Chris@350 7940 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 7941 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 7942 fi
Chris@405 7943 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
mathieu@480 7944 PKG_CHECK_MODULES(oggz,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $oggz_CFLAGS";LIBS="$LIBS $oggz_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means]))
Chris@457 7945 fi
Chris@457 7946 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 7947 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 7948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 7949 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 7950 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 7951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 7952 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 7953 fi
mathieu@468 7954 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 7955 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 7956 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 7957 else
mathieu@468 7958 # Is the header compilable?
mathieu@468 7959 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 7960 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 7961 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 7962 /* confdefs.h. */
mathieu@468 7963 _ACEOF
mathieu@468 7964 cat confdefs.h >>conftest.$ac_ext
mathieu@468 7965 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 7966 /* end confdefs.h. */
mathieu@468 7967 $ac_includes_default
mathieu@468 7968 #include <$SV_MODULE_HEADER>
mathieu@468 7969 _ACEOF
mathieu@468 7970 rm -f conftest.$ac_objext
mathieu@468 7971 if { (ac_try="$ac_compile"
mathieu@468 7972 case "(($ac_try" in
mathieu@468 7973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 7974 *) ac_try_echo=$ac_try;;
mathieu@468 7975 esac
mathieu@468 7976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 7977 (eval "$ac_compile") 2>conftest.er1
Chris@350 7978 ac_status=$?
mathieu@468 7979 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 7980 rm -f conftest.er1
mathieu@468 7981 cat conftest.err >&5
mathieu@468 7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 7983 (exit $ac_status); } && {
mathieu@468 7984 test -z "$ac_cxx_werror_flag" ||
mathieu@468 7985 test ! -s conftest.err
mathieu@468 7986 } && test -s conftest.$ac_objext; then
mathieu@468 7987 ac_header_compiler=yes
mathieu@468 7988 else
mathieu@468 7989 echo "$as_me: failed program was:" >&5
mathieu@468 7990 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 7991
mathieu@468 7992 ac_header_compiler=no
mathieu@468 7993 fi
mathieu@468 7994
mathieu@468 7995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 7996 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 7997 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 7998
mathieu@468 7999 # Is the header present?
mathieu@468 8000 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 8001 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 8002 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 8003 /* confdefs.h. */
mathieu@468 8004 _ACEOF
mathieu@468 8005 cat confdefs.h >>conftest.$ac_ext
mathieu@468 8006 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 8007 /* end confdefs.h. */
mathieu@468 8008 #include <$SV_MODULE_HEADER>
mathieu@468 8009 _ACEOF
mathieu@468 8010 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 8011 case "(($ac_try" in
mathieu@468 8012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 8013 *) ac_try_echo=$ac_try;;
mathieu@468 8014 esac
mathieu@468 8015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 8016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris@350 8017 ac_status=$?
mathieu@468 8018 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 8019 rm -f conftest.er1
mathieu@468 8020 cat conftest.err >&5
mathieu@468 8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 8022 (exit $ac_status); } >/dev/null && {
mathieu@468 8023 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 8024 test ! -s conftest.err
mathieu@468 8025 }; then
mathieu@468 8026 ac_header_preproc=yes
mathieu@468 8027 else
mathieu@468 8028 echo "$as_me: failed program was:" >&5
mathieu@468 8029 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 8030
mathieu@468 8031 ac_header_preproc=no
mathieu@468 8032 fi
mathieu@468 8033
mathieu@468 8034 rm -f conftest.err conftest.$ac_ext
mathieu@468 8035 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 8036 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 8037
mathieu@468 8038 # So? What about this header?
mathieu@468 8039 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 8040 yes:no: )
mathieu@468 8041 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 8042 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 8043 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 8044 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 8045 ac_header_preproc=yes
mathieu@468 8046 ;;
mathieu@468 8047 no:yes:* )
mathieu@468 8048 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 8049 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 8050 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 8051 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 8052 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 8053 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 8054 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 8055 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 8056 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 8057 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 8058 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 8059 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 8060 ( cat <<\_ASBOX
mathieu@468 8061 ## ------------------------------------------- ##
mathieu@468 8062 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 8063 ## ------------------------------------------- ##
mathieu@468 8064 _ASBOX
mathieu@468 8065 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 8066 ;;
mathieu@468 8067 esac
mathieu@468 8068 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 8069 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 8070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 8071 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 8072 else
mathieu@468 8073 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 8074 fi
mathieu@468 8075 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 8076 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 8077 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 8078
mathieu@468 8079 fi
mathieu@468 8080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 8081 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
Chris@350 8082 else
mathieu@468 8083 { echo "$as_me:$LINENO: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
mathieu@468 8084 echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
Chris@350 8085 fi
Chris@350 8086
Chris@350 8087
Chris@350 8088 if test -z "$SV_MODULE_FAILED"; then
Chris@350 8089 if test -n "$SV_MODULE_LIB"; then
mathieu@468 8090 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 8091 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 8092 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 8093 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 8094 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 8095 else
Chris@350 8096 ac_check_lib_save_LIBS=$LIBS
Chris@350 8097 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 8098 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 8099 /* confdefs.h. */
mathieu@468 8100 _ACEOF
mathieu@468 8101 cat confdefs.h >>conftest.$ac_ext
mathieu@468 8102 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 8103 /* end confdefs.h. */
Chris@350 8104
Chris@350 8105 /* Override any GCC internal prototype to avoid an error.
Chris@350 8106 Use char because int might match the return type of a GCC
Chris@350 8107 builtin and then its argument prototype would still apply. */
Chris@350 8108 #ifdef __cplusplus
Chris@350 8109 extern "C"
Chris@350 8110 #endif
Chris@350 8111 char $SV_MODULE_FUNC ();
Chris@350 8112 int
Chris@350 8113 main ()
Chris@350 8114 {
Chris@350 8115 return $SV_MODULE_FUNC ();
Chris@350 8116 ;
Chris@350 8117 return 0;
Chris@350 8118 }
Chris@350 8119 _ACEOF
mathieu@468 8120 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 8121 if { (ac_try="$ac_link"
mathieu@468 8122 case "(($ac_try" in
mathieu@468 8123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 8124 *) ac_try_echo=$ac_try;;
mathieu@468 8125 esac
mathieu@468 8126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 8127 (eval "$ac_link") 2>conftest.er1
mathieu@468 8128 ac_status=$?
mathieu@468 8129 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 8130 rm -f conftest.er1
mathieu@468 8131 cat conftest.err >&5
mathieu@468 8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 8133 (exit $ac_status); } && {
mathieu@468 8134 test -z "$ac_cxx_werror_flag" ||
mathieu@468 8135 test ! -s conftest.err
mathieu@468 8136 } && test -s conftest$ac_exeext &&
mathieu@468 8137 $as_test_x conftest$ac_exeext; then
Chris@350 8138 eval "$as_ac_Lib=yes"
Chris@350 8139 else
mathieu@468 8140 echo "$as_me: failed program was:" >&5
mathieu@468 8141 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 8142
mathieu@468 8143 eval "$as_ac_Lib=no"
mathieu@468 8144 fi
mathieu@468 8145
mathieu@468 8146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 8147 conftest$ac_exeext conftest.$ac_ext
Chris@350 8148 LIBS=$ac_check_lib_save_LIBS
Chris@350 8149 fi
mathieu@468 8150 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 8151 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 8152 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 8153 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@350 8154 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 8155 else
mathieu@468 8156 { echo "$as_me:$LINENO: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
mathieu@468 8157 echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
Chris@350 8158 fi
Chris@350 8159
Chris@350 8160 fi
Chris@350 8161 fi
Chris@350 8162 fi
Chris@350 8163
Chris@350 8164
Chris@457 8165 SV_MODULE_MODULE=fishsound
Chris@457 8166 SV_MODULE_VERSION_TEST="fishsound >= 1.0.0"
Chris@457 8167 SV_MODULE_HEADER=fishsound/fishsound.h
Chris@457 8168 SV_MODULE_LIB=fishsound
Chris@457 8169 SV_MODULE_FUNC=fish_sound_new
Chris@457 8170 SV_MODULE_HAVE=HAVE_$(echo fishsound | tr 'a-z' 'A-Z')
Chris@350 8171 SV_MODULE_FAILED=1
Chris@457 8172 if test -n "$fishsound_LIBS" ; then
mathieu@468 8173 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 8174 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@457 8175 CXXFLAGS="$CXXFLAGS $fishsound_CFLAGS"
Chris@457 8176 LIBS="$LIBS $fishsound_LIBS"
Chris@405 8177 SV_MODULE_FAILED=""
Chris@405 8178 fi
Chris@350 8179 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 8180 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 8181 fi
Chris@405 8182 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
mathieu@480 8183 PKG_CHECK_MODULES(fishsound,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $fishsound_CFLAGS";LIBS="$LIBS $fishsound_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means]))
Chris@457 8184 fi
Chris@457 8185 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 8186 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 8187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 8188 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 8189 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 8190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 8191 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 8192 fi
mathieu@468 8193 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 8194 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 8195 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 8196 else
mathieu@468 8197 # Is the header compilable?
mathieu@468 8198 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 8199 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 8200 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 8201 /* confdefs.h. */
mathieu@468 8202 _ACEOF
mathieu@468 8203 cat confdefs.h >>conftest.$ac_ext
mathieu@468 8204 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 8205 /* end confdefs.h. */
mathieu@468 8206 $ac_includes_default
mathieu@468 8207 #include <$SV_MODULE_HEADER>
mathieu@468 8208 _ACEOF
mathieu@468 8209 rm -f conftest.$ac_objext
mathieu@468 8210 if { (ac_try="$ac_compile"
mathieu@468 8211 case "(($ac_try" in
mathieu@468 8212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 8213 *) ac_try_echo=$ac_try;;
mathieu@468 8214 esac
mathieu@468 8215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 8216 (eval "$ac_compile") 2>conftest.er1
Chris@350 8217 ac_status=$?
mathieu@468 8218 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 8219 rm -f conftest.er1
mathieu@468 8220 cat conftest.err >&5
mathieu@468 8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 8222 (exit $ac_status); } && {
mathieu@468 8223 test -z "$ac_cxx_werror_flag" ||
mathieu@468 8224 test ! -s conftest.err
mathieu@468 8225 } && test -s conftest.$ac_objext; then
mathieu@468 8226 ac_header_compiler=yes
mathieu@468 8227 else
mathieu@468 8228 echo "$as_me: failed program was:" >&5
mathieu@468 8229 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 8230
mathieu@468 8231 ac_header_compiler=no
mathieu@468 8232 fi
mathieu@468 8233
mathieu@468 8234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 8235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 8236 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 8237
mathieu@468 8238 # Is the header present?
mathieu@468 8239 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 8240 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 8241 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 8242 /* confdefs.h. */
mathieu@468 8243 _ACEOF
mathieu@468 8244 cat confdefs.h >>conftest.$ac_ext
mathieu@468 8245 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 8246 /* end confdefs.h. */
mathieu@468 8247 #include <$SV_MODULE_HEADER>
mathieu@468 8248 _ACEOF
mathieu@468 8249 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 8250 case "(($ac_try" in
mathieu@468 8251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 8252 *) ac_try_echo=$ac_try;;
mathieu@468 8253 esac
mathieu@468 8254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 8255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris@350 8256 ac_status=$?
mathieu@468 8257 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 8258 rm -f conftest.er1
mathieu@468 8259 cat conftest.err >&5
mathieu@468 8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 8261 (exit $ac_status); } >/dev/null && {
mathieu@468 8262 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 8263 test ! -s conftest.err
mathieu@468 8264 }; then
mathieu@468 8265 ac_header_preproc=yes
mathieu@468 8266 else
mathieu@468 8267 echo "$as_me: failed program was:" >&5
mathieu@468 8268 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 8269
mathieu@468 8270 ac_header_preproc=no
mathieu@468 8271 fi
mathieu@468 8272
mathieu@468 8273 rm -f conftest.err conftest.$ac_ext
mathieu@468 8274 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 8275 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 8276
mathieu@468 8277 # So? What about this header?
mathieu@468 8278 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 8279 yes:no: )
mathieu@468 8280 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 8281 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 8282 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 8283 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 8284 ac_header_preproc=yes
mathieu@468 8285 ;;
mathieu@468 8286 no:yes:* )
mathieu@468 8287 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 8288 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 8289 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 8290 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 8291 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 8292 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 8293 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 8294 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 8295 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 8296 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 8297 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 8298 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 8299 ( cat <<\_ASBOX
mathieu@468 8300 ## ------------------------------------------- ##
mathieu@468 8301 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 8302 ## ------------------------------------------- ##
mathieu@468 8303 _ASBOX
mathieu@468 8304 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 8305 ;;
mathieu@468 8306 esac
mathieu@468 8307 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 8308 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 8309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 8310 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 8311 else
mathieu@468 8312 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 8313 fi
mathieu@468 8314 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 8315 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 8316 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 8317
mathieu@468 8318 fi
mathieu@468 8319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 8320 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
Chris@350 8321 else
mathieu@468 8322 { echo "$as_me:$LINENO: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
mathieu@468 8323 echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
Chris@350 8324 fi
Chris@350 8325
Chris@350 8326
Chris@350 8327 if test -z "$SV_MODULE_FAILED"; then
Chris@350 8328 if test -n "$SV_MODULE_LIB"; then
mathieu@468 8329 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 8330 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 8331 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 8332 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 8333 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 8334 else
Chris@350 8335 ac_check_lib_save_LIBS=$LIBS
Chris@350 8336 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 8337 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 8338 /* confdefs.h. */
mathieu@468 8339 _ACEOF
mathieu@468 8340 cat confdefs.h >>conftest.$ac_ext
mathieu@468 8341 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 8342 /* end confdefs.h. */
Chris@350 8343
Chris@350 8344 /* Override any GCC internal prototype to avoid an error.
Chris@350 8345 Use char because int might match the return type of a GCC
Chris@350 8346 builtin and then its argument prototype would still apply. */
Chris@350 8347 #ifdef __cplusplus
Chris@350 8348 extern "C"
Chris@350 8349 #endif
Chris@350 8350 char $SV_MODULE_FUNC ();
Chris@350 8351 int
Chris@350 8352 main ()
Chris@350 8353 {
Chris@350 8354 return $SV_MODULE_FUNC ();
Chris@350 8355 ;
Chris@350 8356 return 0;
Chris@350 8357 }
Chris@350 8358 _ACEOF
mathieu@468 8359 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 8360 if { (ac_try="$ac_link"
mathieu@468 8361 case "(($ac_try" in
mathieu@468 8362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 8363 *) ac_try_echo=$ac_try;;
mathieu@468 8364 esac
mathieu@468 8365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 8366 (eval "$ac_link") 2>conftest.er1
mathieu@468 8367 ac_status=$?
mathieu@468 8368 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 8369 rm -f conftest.er1
mathieu@468 8370 cat conftest.err >&5
mathieu@468 8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 8372 (exit $ac_status); } && {
mathieu@468 8373 test -z "$ac_cxx_werror_flag" ||
mathieu@468 8374 test ! -s conftest.err
mathieu@468 8375 } && test -s conftest$ac_exeext &&
mathieu@468 8376 $as_test_x conftest$ac_exeext; then
Chris@350 8377 eval "$as_ac_Lib=yes"
Chris@350 8378 else
mathieu@468 8379 echo "$as_me: failed program was:" >&5
mathieu@468 8380 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 8381
mathieu@468 8382 eval "$as_ac_Lib=no"
mathieu@468 8383 fi
mathieu@468 8384
mathieu@468 8385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 8386 conftest$ac_exeext conftest.$ac_ext
Chris@350 8387 LIBS=$ac_check_lib_save_LIBS
Chris@350 8388 fi
mathieu@468 8389 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 8390 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 8391 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 8392 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@350 8393 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 8394 else
mathieu@468 8395 { echo "$as_me:$LINENO: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
mathieu@468 8396 echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
Chris@350 8397 fi
Chris@350 8398
Chris@350 8399 fi
Chris@350 8400 fi
Chris@350 8401 fi
Chris@350 8402
Chris@350 8403
Chris@457 8404 SV_MODULE_MODULE=mad
Chris@457 8405 SV_MODULE_VERSION_TEST="mad >= 0.15.0"
Chris@457 8406 SV_MODULE_HEADER=mad.h
Chris@457 8407 SV_MODULE_LIB=mad
Chris@457 8408 SV_MODULE_FUNC=mad_decoder_init
Chris@457 8409 SV_MODULE_HAVE=HAVE_$(echo mad | tr 'a-z' 'A-Z')
Chris@350 8410 SV_MODULE_FAILED=1
Chris@457 8411 if test -n "$mad_LIBS" ; then
mathieu@468 8412 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 8413 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@457 8414 CXXFLAGS="$CXXFLAGS $mad_CFLAGS"
Chris@457 8415 LIBS="$LIBS $mad_LIBS"
Chris@405 8416 SV_MODULE_FAILED=""
Chris@405 8417 fi
Chris@350 8418 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 8419 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 8420 fi
Chris@405 8421 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
mathieu@480 8422 PKG_CHECK_MODULES(mad,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $mad_CFLAGS";LIBS="$LIBS $mad_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means]))
Chris@457 8423 fi
Chris@457 8424 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 8425 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 8426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 8427 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 8428 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 8429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 8430 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 8431 fi
mathieu@468 8432 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 8433 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 8434 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 8435 else
mathieu@468 8436 # Is the header compilable?
mathieu@468 8437 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 8438 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 8439 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 8440 /* confdefs.h. */
mathieu@468 8441 _ACEOF
mathieu@468 8442 cat confdefs.h >>conftest.$ac_ext
mathieu@468 8443 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 8444 /* end confdefs.h. */
mathieu@468 8445 $ac_includes_default
mathieu@468 8446 #include <$SV_MODULE_HEADER>
mathieu@468 8447 _ACEOF
mathieu@468 8448 rm -f conftest.$ac_objext
mathieu@468 8449 if { (ac_try="$ac_compile"
mathieu@468 8450 case "(($ac_try" in
mathieu@468 8451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 8452 *) ac_try_echo=$ac_try;;
mathieu@468 8453 esac
mathieu@468 8454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 8455 (eval "$ac_compile") 2>conftest.er1
Chris@350 8456 ac_status=$?
mathieu@468 8457 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 8458 rm -f conftest.er1
mathieu@468 8459 cat conftest.err >&5
mathieu@468 8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 8461 (exit $ac_status); } && {
mathieu@468 8462 test -z "$ac_cxx_werror_flag" ||
mathieu@468 8463 test ! -s conftest.err
mathieu@468 8464 } && test -s conftest.$ac_objext; then
mathieu@468 8465 ac_header_compiler=yes
mathieu@468 8466 else
mathieu@468 8467 echo "$as_me: failed program was:" >&5
mathieu@468 8468 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 8469
mathieu@468 8470 ac_header_compiler=no
mathieu@468 8471 fi
mathieu@468 8472
mathieu@468 8473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 8474 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 8475 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 8476
mathieu@468 8477 # Is the header present?
mathieu@468 8478 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 8479 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 8480 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 8481 /* confdefs.h. */
mathieu@468 8482 _ACEOF
mathieu@468 8483 cat confdefs.h >>conftest.$ac_ext
mathieu@468 8484 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 8485 /* end confdefs.h. */
mathieu@468 8486 #include <$SV_MODULE_HEADER>
mathieu@468 8487 _ACEOF
mathieu@468 8488 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 8489 case "(($ac_try" in
mathieu@468 8490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 8491 *) ac_try_echo=$ac_try;;
mathieu@468 8492 esac
mathieu@468 8493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 8494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris@350 8495 ac_status=$?
mathieu@468 8496 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 8497 rm -f conftest.er1
mathieu@468 8498 cat conftest.err >&5
mathieu@468 8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 8500 (exit $ac_status); } >/dev/null && {
mathieu@468 8501 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 8502 test ! -s conftest.err
mathieu@468 8503 }; then
mathieu@468 8504 ac_header_preproc=yes
mathieu@468 8505 else
mathieu@468 8506 echo "$as_me: failed program was:" >&5
mathieu@468 8507 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 8508
mathieu@468 8509 ac_header_preproc=no
mathieu@468 8510 fi
mathieu@468 8511
mathieu@468 8512 rm -f conftest.err conftest.$ac_ext
mathieu@468 8513 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 8514 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 8515
mathieu@468 8516 # So? What about this header?
mathieu@468 8517 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 8518 yes:no: )
mathieu@468 8519 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 8520 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 8521 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 8522 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 8523 ac_header_preproc=yes
mathieu@468 8524 ;;
mathieu@468 8525 no:yes:* )
mathieu@468 8526 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 8527 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 8528 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 8529 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 8530 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 8531 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 8532 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 8533 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 8534 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 8535 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 8536 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 8537 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 8538 ( cat <<\_ASBOX
mathieu@468 8539 ## ------------------------------------------- ##
mathieu@468 8540 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 8541 ## ------------------------------------------- ##
mathieu@468 8542 _ASBOX
mathieu@468 8543 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 8544 ;;
mathieu@468 8545 esac
mathieu@468 8546 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 8547 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 8548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 8549 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 8550 else
mathieu@468 8551 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 8552 fi
mathieu@468 8553 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 8554 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 8555 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 8556
mathieu@468 8557 fi
mathieu@468 8558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 8559 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
Chris@350 8560 else
mathieu@468 8561 { echo "$as_me:$LINENO: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
mathieu@468 8562 echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
Chris@350 8563 fi
Chris@350 8564
Chris@350 8565
Chris@350 8566 if test -z "$SV_MODULE_FAILED"; then
Chris@350 8567 if test -n "$SV_MODULE_LIB"; then
mathieu@468 8568 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 8569 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 8570 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 8571 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 8572 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 8573 else
Chris@350 8574 ac_check_lib_save_LIBS=$LIBS
Chris@350 8575 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 8576 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 8577 /* confdefs.h. */
mathieu@468 8578 _ACEOF
mathieu@468 8579 cat confdefs.h >>conftest.$ac_ext
mathieu@468 8580 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 8581 /* end confdefs.h. */
Chris@350 8582
Chris@350 8583 /* Override any GCC internal prototype to avoid an error.
Chris@350 8584 Use char because int might match the return type of a GCC
Chris@350 8585 builtin and then its argument prototype would still apply. */
Chris@350 8586 #ifdef __cplusplus
Chris@350 8587 extern "C"
Chris@350 8588 #endif
Chris@350 8589 char $SV_MODULE_FUNC ();
Chris@350 8590 int
Chris@350 8591 main ()
Chris@350 8592 {
Chris@350 8593 return $SV_MODULE_FUNC ();
Chris@350 8594 ;
Chris@350 8595 return 0;
Chris@350 8596 }
Chris@350 8597 _ACEOF
mathieu@468 8598 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 8599 if { (ac_try="$ac_link"
mathieu@468 8600 case "(($ac_try" in
mathieu@468 8601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 8602 *) ac_try_echo=$ac_try;;
mathieu@468 8603 esac
mathieu@468 8604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 8605 (eval "$ac_link") 2>conftest.er1
mathieu@468 8606 ac_status=$?
mathieu@468 8607 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 8608 rm -f conftest.er1
mathieu@468 8609 cat conftest.err >&5
mathieu@468 8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 8611 (exit $ac_status); } && {
mathieu@468 8612 test -z "$ac_cxx_werror_flag" ||
mathieu@468 8613 test ! -s conftest.err
mathieu@468 8614 } && test -s conftest$ac_exeext &&
mathieu@468 8615 $as_test_x conftest$ac_exeext; then
Chris@350 8616 eval "$as_ac_Lib=yes"
Chris@350 8617 else
mathieu@468 8618 echo "$as_me: failed program was:" >&5
mathieu@468 8619 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 8620
mathieu@468 8621 eval "$as_ac_Lib=no"
mathieu@468 8622 fi
mathieu@468 8623
mathieu@468 8624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 8625 conftest$ac_exeext conftest.$ac_ext
Chris@350 8626 LIBS=$ac_check_lib_save_LIBS
Chris@350 8627 fi
mathieu@468 8628 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 8629 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 8630 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 8631 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@350 8632 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 8633 else
mathieu@468 8634 { echo "$as_me:$LINENO: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
mathieu@468 8635 echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
Chris@457 8636 fi
Chris@457 8637
Chris@457 8638 fi
Chris@457 8639 fi
Chris@457 8640 fi
Chris@457 8641
Chris@457 8642
Chris@457 8643 SV_MODULE_MODULE=id3tag
Chris@457 8644 SV_MODULE_VERSION_TEST="id3tag >= 0.15.0"
Chris@457 8645 SV_MODULE_HEADER=id3tag.h
Chris@457 8646 SV_MODULE_LIB=id3tag
Chris@457 8647 SV_MODULE_FUNC=id3_tag_new
Chris@457 8648 SV_MODULE_HAVE=HAVE_$(echo id3tag | tr 'a-z' 'A-Z')
Chris@457 8649 SV_MODULE_FAILED=1
Chris@457 8650 if test -n "$id3tag_LIBS" ; then
mathieu@468 8651 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 8652 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@457 8653 CXXFLAGS="$CXXFLAGS $id3tag_CFLAGS"
Chris@457 8654 LIBS="$LIBS $id3tag_LIBS"
Chris@457 8655 SV_MODULE_FAILED=""
Chris@457 8656 fi
Chris@457 8657 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@457 8658 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@457 8659 fi
Chris@457 8660 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
mathieu@480 8661 PKG_CHECK_MODULES(id3tag,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $id3tag_CFLAGS";LIBS="$LIBS $id3tag_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means]))
Chris@457 8662 fi
Chris@457 8663 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 8664 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 8665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 8666 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 8667 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 8668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 8669 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 8670 fi
mathieu@468 8671 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 8672 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 8673 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 8674 else
mathieu@468 8675 # Is the header compilable?
mathieu@468 8676 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 8677 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 8678 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 8679 /* confdefs.h. */
mathieu@468 8680 _ACEOF
mathieu@468 8681 cat confdefs.h >>conftest.$ac_ext
mathieu@468 8682 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 8683 /* end confdefs.h. */
mathieu@468 8684 $ac_includes_default
mathieu@468 8685 #include <$SV_MODULE_HEADER>
mathieu@468 8686 _ACEOF
mathieu@468 8687 rm -f conftest.$ac_objext
mathieu@468 8688 if { (ac_try="$ac_compile"
mathieu@468 8689 case "(($ac_try" in
mathieu@468 8690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 8691 *) ac_try_echo=$ac_try;;
mathieu@468 8692 esac
mathieu@468 8693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 8694 (eval "$ac_compile") 2>conftest.er1
mathieu@468 8695 ac_status=$?
mathieu@468 8696 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 8697 rm -f conftest.er1
mathieu@468 8698 cat conftest.err >&5
mathieu@468 8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 8700 (exit $ac_status); } && {
mathieu@468 8701 test -z "$ac_cxx_werror_flag" ||
mathieu@468 8702 test ! -s conftest.err
mathieu@468 8703 } && test -s conftest.$ac_objext; then
mathieu@468 8704 ac_header_compiler=yes
mathieu@468 8705 else
mathieu@468 8706 echo "$as_me: failed program was:" >&5
mathieu@468 8707 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 8708
mathieu@468 8709 ac_header_compiler=no
mathieu@468 8710 fi
mathieu@468 8711
mathieu@468 8712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 8713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 8714 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 8715
mathieu@468 8716 # Is the header present?
mathieu@468 8717 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 8718 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 8719 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 8720 /* confdefs.h. */
mathieu@468 8721 _ACEOF
mathieu@468 8722 cat confdefs.h >>conftest.$ac_ext
mathieu@468 8723 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 8724 /* end confdefs.h. */
mathieu@468 8725 #include <$SV_MODULE_HEADER>
mathieu@468 8726 _ACEOF
mathieu@468 8727 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 8728 case "(($ac_try" in
mathieu@468 8729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 8730 *) ac_try_echo=$ac_try;;
mathieu@468 8731 esac
mathieu@468 8732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 8733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
mathieu@468 8734 ac_status=$?
mathieu@468 8735 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 8736 rm -f conftest.er1
mathieu@468 8737 cat conftest.err >&5
mathieu@468 8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 8739 (exit $ac_status); } >/dev/null && {
mathieu@468 8740 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 8741 test ! -s conftest.err
mathieu@468 8742 }; then
mathieu@468 8743 ac_header_preproc=yes
mathieu@468 8744 else
mathieu@468 8745 echo "$as_me: failed program was:" >&5
mathieu@468 8746 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 8747
mathieu@468 8748 ac_header_preproc=no
mathieu@468 8749 fi
mathieu@468 8750
mathieu@468 8751 rm -f conftest.err conftest.$ac_ext
mathieu@468 8752 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 8753 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 8754
mathieu@468 8755 # So? What about this header?
mathieu@468 8756 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 8757 yes:no: )
mathieu@468 8758 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 8759 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 8760 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 8761 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 8762 ac_header_preproc=yes
mathieu@468 8763 ;;
mathieu@468 8764 no:yes:* )
mathieu@468 8765 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 8766 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 8767 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 8768 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 8769 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 8770 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 8771 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 8772 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 8773 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 8774 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 8775 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 8776 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 8777 ( cat <<\_ASBOX
mathieu@468 8778 ## ------------------------------------------- ##
mathieu@468 8779 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 8780 ## ------------------------------------------- ##
mathieu@468 8781 _ASBOX
mathieu@468 8782 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 8783 ;;
mathieu@468 8784 esac
mathieu@468 8785 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 8786 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 8787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 8788 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 8789 else
mathieu@468 8790 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 8791 fi
mathieu@468 8792 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 8793 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 8794 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 8795
mathieu@468 8796 fi
mathieu@468 8797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@457 8798 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
Chris@457 8799 else
mathieu@468 8800 { echo "$as_me:$LINENO: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
mathieu@468 8801 echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
Chris@457 8802 fi
Chris@457 8803
Chris@457 8804
Chris@457 8805 if test -z "$SV_MODULE_FAILED"; then
Chris@457 8806 if test -n "$SV_MODULE_LIB"; then
mathieu@468 8807 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 8808 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 8809 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 8810 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 8811 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@457 8812 else
Chris@457 8813 ac_check_lib_save_LIBS=$LIBS
Chris@457 8814 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 8815 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 8816 /* confdefs.h. */
mathieu@468 8817 _ACEOF
mathieu@468 8818 cat confdefs.h >>conftest.$ac_ext
mathieu@468 8819 cat >>conftest.$ac_ext <<_ACEOF
Chris@457 8820 /* end confdefs.h. */
Chris@457 8821
Chris@457 8822 /* Override any GCC internal prototype to avoid an error.
Chris@457 8823 Use char because int might match the return type of a GCC
Chris@457 8824 builtin and then its argument prototype would still apply. */
Chris@457 8825 #ifdef __cplusplus
Chris@457 8826 extern "C"
Chris@457 8827 #endif
Chris@457 8828 char $SV_MODULE_FUNC ();
Chris@457 8829 int
Chris@457 8830 main ()
Chris@457 8831 {
Chris@457 8832 return $SV_MODULE_FUNC ();
Chris@457 8833 ;
Chris@457 8834 return 0;
Chris@457 8835 }
Chris@457 8836 _ACEOF
mathieu@468 8837 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 8838 if { (ac_try="$ac_link"
mathieu@468 8839 case "(($ac_try" in
mathieu@468 8840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 8841 *) ac_try_echo=$ac_try;;
mathieu@468 8842 esac
mathieu@468 8843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 8844 (eval "$ac_link") 2>conftest.er1
mathieu@468 8845 ac_status=$?
mathieu@468 8846 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 8847 rm -f conftest.er1
mathieu@468 8848 cat conftest.err >&5
mathieu@468 8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 8850 (exit $ac_status); } && {
mathieu@468 8851 test -z "$ac_cxx_werror_flag" ||
mathieu@468 8852 test ! -s conftest.err
mathieu@468 8853 } && test -s conftest$ac_exeext &&
mathieu@468 8854 $as_test_x conftest$ac_exeext; then
Chris@457 8855 eval "$as_ac_Lib=yes"
Chris@457 8856 else
mathieu@468 8857 echo "$as_me: failed program was:" >&5
mathieu@468 8858 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 8859
mathieu@468 8860 eval "$as_ac_Lib=no"
mathieu@468 8861 fi
mathieu@468 8862
mathieu@468 8863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 8864 conftest$ac_exeext conftest.$ac_ext
Chris@457 8865 LIBS=$ac_check_lib_save_LIBS
Chris@457 8866 fi
mathieu@468 8867 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 8868 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 8869 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 8870 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@457 8871 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@457 8872 else
mathieu@468 8873 { echo "$as_me:$LINENO: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
mathieu@468 8874 echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
Chris@350 8875 fi
Chris@350 8876
Chris@350 8877 fi
Chris@350 8878 fi
Chris@350 8879 fi
Chris@350 8880
Chris@350 8881
Chris@350 8882
Chris@350 8883
Chris@350 8884
Chris@350 8885
Chris@350 8886
Chris@350 8887
Chris@350 8888
Chris@350 8889
Chris@350 8890
Chris@350 8891
Chris@350 8892
Chris@350 8893
Chris@350 8894
Chris@350 8895
Chris@350 8896
Chris@350 8897
Chris@350 8898
Chris@361 8899
Chris@361 8900
Chris@350 8901 ac_config_files="$ac_config_files config.pri"
Chris@350 8902
Chris@350 8903 cat >confcache <<\_ACEOF
Chris@350 8904 # This file is a shell script that caches the results of configure
Chris@350 8905 # tests run on this system so they can be shared between configure
Chris@350 8906 # scripts and configure runs, see configure's option --config-cache.
Chris@350 8907 # It is not useful on other systems. If it contains results you don't
Chris@350 8908 # want to keep, you may remove or edit it.
Chris@350 8909 #
Chris@350 8910 # config.status only pays attention to the cache file if you give it
Chris@350 8911 # the --recheck option to rerun configure.
Chris@350 8912 #
Chris@350 8913 # `ac_cv_env_foo' variables (set or unset) will be overridden when
Chris@350 8914 # loading this file, other *unset* `ac_cv_foo' will be assigned the
Chris@350 8915 # following values.
Chris@350 8916
Chris@350 8917 _ACEOF
Chris@350 8918
Chris@350 8919 # The following way of writing the cache mishandles newlines in values,
Chris@350 8920 # but we know of no workaround that is simple, portable, and efficient.
Chris@350 8921 # So, we kill variables containing newlines.
Chris@350 8922 # Ultrix sh set writes to stderr and can't be redirected directly,
Chris@350 8923 # and sets the high bit in the cache file unless we assign to the vars.
Chris@350 8924 (
Chris@350 8925 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
Chris@350 8926 eval ac_val=\$$ac_var
Chris@350 8927 case $ac_val in #(
Chris@350 8928 *${as_nl}*)
Chris@350 8929 case $ac_var in #(
mathieu@468 8930 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
mathieu@468 8931 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Chris@350 8932 esac
Chris@350 8933 case $ac_var in #(
Chris@350 8934 _ | IFS | as_nl) ;; #(
mathieu@468 8935 *) $as_unset $ac_var ;;
Chris@350 8936 esac ;;
Chris@350 8937 esac
Chris@350 8938 done
Chris@350 8939
Chris@350 8940 (set) 2>&1 |
Chris@350 8941 case $as_nl`(ac_space=' '; set) 2>&1` in #(
Chris@350 8942 *${as_nl}ac_space=\ *)
mathieu@468 8943 # `set' does not quote correctly, so add quotes (double-quote
mathieu@468 8944 # substitution turns \\\\ into \\, and sed turns \\ into \).
Chris@350 8945 sed -n \
Chris@350 8946 "s/'/'\\\\''/g;
Chris@350 8947 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Chris@350 8948 ;; #(
Chris@350 8949 *)
Chris@350 8950 # `set' quotes correctly as required by POSIX, so do not add quotes.
Chris@350 8951 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Chris@350 8952 ;;
Chris@350 8953 esac |
Chris@350 8954 sort
Chris@350 8955 ) |
Chris@350 8956 sed '
Chris@350 8957 /^ac_cv_env_/b end
Chris@350 8958 t clear
Chris@350 8959 :clear
Chris@350 8960 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
Chris@350 8961 t end
Chris@350 8962 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
Chris@350 8963 :end' >>confcache
Chris@350 8964 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
Chris@350 8965 if test -w "$cache_file"; then
Chris@475 8966 test "x$cache_file" != "x/dev/null" &&
mathieu@468 8967 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
mathieu@468 8968 echo "$as_me: updating cache $cache_file" >&6;}
Chris@475 8969 cat confcache >$cache_file
Chris@350 8970 else
mathieu@468 8971 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
mathieu@468 8972 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Chris@350 8973 fi
Chris@350 8974 fi
Chris@350 8975 rm -f confcache
Chris@350 8976
Chris@350 8977 test "x$prefix" = xNONE && prefix=$ac_default_prefix
Chris@350 8978 # Let make expand exec_prefix.
Chris@350 8979 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
Chris@350 8980
Chris@350 8981 # Transform confdefs.h into DEFS.
Chris@350 8982 # Protect against shell expansion while executing Makefile rules.
Chris@350 8983 # Protect against Makefile macro expansion.
Chris@350 8984 #
Chris@350 8985 # If the first sed substitution is executed (which looks for macros that
Chris@350 8986 # take arguments), then branch to the quote section. Otherwise,
Chris@350 8987 # look for a macro that doesn't take arguments.
Chris@350 8988 ac_script='
Chris@350 8989 t clear
Chris@350 8990 :clear
Chris@350 8991 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Chris@350 8992 t quote
Chris@350 8993 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Chris@350 8994 t quote
Chris@350 8995 b any
Chris@350 8996 :quote
Chris@350 8997 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
Chris@350 8998 s/\[/\\&/g
Chris@350 8999 s/\]/\\&/g
Chris@350 9000 s/\$/$$/g
Chris@350 9001 H
Chris@350 9002 :any
Chris@350 9003 ${
Chris@350 9004 g
Chris@350 9005 s/^\n//
Chris@350 9006 s/\n/ /g
Chris@350 9007 p
Chris@350 9008 }
Chris@350 9009 '
Chris@350 9010 DEFS=`sed -n "$ac_script" confdefs.h`
Chris@350 9011
Chris@350 9012
Chris@350 9013 ac_libobjs=
Chris@350 9014 ac_ltlibobjs=
Chris@350 9015 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
Chris@350 9016 # 1. Remove the extension, and $U if already installed.
Chris@350 9017 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
mathieu@468 9018 ac_i=`echo "$ac_i" | sed "$ac_script"`
Chris@350 9019 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
Chris@350 9020 # will be set to the directory where LIBOBJS objects are built.
mathieu@468 9021 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
mathieu@468 9022 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Chris@350 9023 done
Chris@350 9024 LIBOBJS=$ac_libobjs
Chris@350 9025
Chris@350 9026 LTLIBOBJS=$ac_ltlibobjs
Chris@350 9027
Chris@350 9028
Chris@350 9029
Chris@475 9030 : ${CONFIG_STATUS=./config.status}
Chris@350 9031 ac_clean_files_save=$ac_clean_files
Chris@350 9032 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
mathieu@468 9033 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
mathieu@468 9034 echo "$as_me: creating $CONFIG_STATUS" >&6;}
mathieu@468 9035 cat >$CONFIG_STATUS <<_ACEOF
Chris@350 9036 #! $SHELL
Chris@350 9037 # Generated by $as_me.
Chris@350 9038 # Run this file to recreate the current configuration.
Chris@350 9039 # Compiler output produced by configure, useful for debugging
Chris@350 9040 # configure, is in config.log if it exists.
Chris@350 9041
Chris@350 9042 debug=false
Chris@350 9043 ac_cs_recheck=false
Chris@350 9044 ac_cs_silent=false
Chris@350 9045 SHELL=\${CONFIG_SHELL-$SHELL}
mathieu@468 9046 _ACEOF
mathieu@468 9047
mathieu@468 9048 cat >>$CONFIG_STATUS <<\_ACEOF
mathieu@468 9049 ## --------------------- ##
mathieu@468 9050 ## M4sh Initialization. ##
mathieu@468 9051 ## --------------------- ##
Chris@350 9052
Chris@350 9053 # Be more Bourne compatible
Chris@350 9054 DUALCASE=1; export DUALCASE # for MKS sh
mathieu@468 9055 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
Chris@350 9056 emulate sh
Chris@350 9057 NULLCMD=:
mathieu@468 9058 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
Chris@350 9059 # is contrary to our usage. Disable this feature.
Chris@350 9060 alias -g '${1+"$@"}'='"$@"'
Chris@350 9061 setopt NO_GLOB_SUBST
Chris@350 9062 else
mathieu@468 9063 case `(set -o) 2>/dev/null` in
mathieu@468 9064 *posix*) set -o posix ;;
mathieu@468 9065 esac
mathieu@468 9066
mathieu@468 9067 fi
mathieu@468 9068
mathieu@468 9069
mathieu@468 9070
mathieu@468 9071
mathieu@468 9072 # PATH needs CR
mathieu@468 9073 # Avoid depending upon Character Ranges.
mathieu@468 9074 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
mathieu@468 9075 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
mathieu@468 9076 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
mathieu@468 9077 as_cr_digits='0123456789'
mathieu@468 9078 as_cr_alnum=$as_cr_Letters$as_cr_digits
Chris@350 9079
Chris@350 9080 # The user is always right.
Chris@350 9081 if test "${PATH_SEPARATOR+set}" != set; then
mathieu@468 9082 echo "#! /bin/sh" >conf$$.sh
mathieu@468 9083 echo "exit 0" >>conf$$.sh
mathieu@468 9084 chmod +x conf$$.sh
mathieu@468 9085 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
mathieu@468 9086 PATH_SEPARATOR=';'
mathieu@468 9087 else
mathieu@468 9088 PATH_SEPARATOR=:
mathieu@468 9089 fi
mathieu@468 9090 rm -f conf$$.sh
mathieu@468 9091 fi
mathieu@468 9092
mathieu@468 9093 # Support unset when possible.
mathieu@468 9094 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
mathieu@468 9095 as_unset=unset
mathieu@468 9096 else
mathieu@468 9097 as_unset=false
Chris@350 9098 fi
Chris@350 9099
Chris@350 9100
Chris@350 9101 # IFS
Chris@350 9102 # We need space, tab and new line, in precisely that order. Quoting is
Chris@350 9103 # there to prevent editors from complaining about space-tab.
Chris@350 9104 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
Chris@350 9105 # splitting by setting IFS to empty value.)
mathieu@468 9106 as_nl='
mathieu@468 9107 '
Chris@350 9108 IFS=" "" $as_nl"
Chris@350 9109
Chris@350 9110 # Find who we are. Look in the path if we contain no directory separator.
mathieu@468 9111 case $0 in
Chris@350 9112 *[\\/]* ) as_myself=$0 ;;
Chris@350 9113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 9114 for as_dir in $PATH
Chris@350 9115 do
Chris@350 9116 IFS=$as_save_IFS
Chris@350 9117 test -z "$as_dir" && as_dir=.
mathieu@468 9118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
mathieu@468 9119 done
Chris@350 9120 IFS=$as_save_IFS
Chris@350 9121
Chris@350 9122 ;;
Chris@350 9123 esac
Chris@350 9124 # We did not find ourselves, most probably we were run as `sh COMMAND'
Chris@350 9125 # in which case we are not to be found in the path.
Chris@350 9126 if test "x$as_myself" = x; then
Chris@350 9127 as_myself=$0
Chris@350 9128 fi
Chris@350 9129 if test ! -f "$as_myself"; then
mathieu@468 9130 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
mathieu@468 9131 { (exit 1); exit 1; }
mathieu@468 9132 fi
mathieu@468 9133
mathieu@468 9134 # Work around bugs in pre-3.0 UWIN ksh.
mathieu@468 9135 for as_var in ENV MAIL MAILPATH
mathieu@468 9136 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Chris@350 9137 done
Chris@350 9138 PS1='$ '
Chris@350 9139 PS2='> '
Chris@350 9140 PS4='+ '
Chris@350 9141
Chris@350 9142 # NLS nuisances.
mathieu@468 9143 for as_var in \
mathieu@468 9144 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
mathieu@468 9145 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
mathieu@468 9146 LC_TELEPHONE LC_TIME
mathieu@468 9147 do
mathieu@468 9148 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
mathieu@468 9149 eval $as_var=C; export $as_var
mathieu@468 9150 else
mathieu@468 9151 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Chris@350 9152 fi
mathieu@468 9153 done
mathieu@468 9154
mathieu@468 9155 # Required to use basename.
Chris@350 9156 if expr a : '\(a\)' >/dev/null 2>&1 &&
Chris@350 9157 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Chris@350 9158 as_expr=expr
Chris@350 9159 else
Chris@350 9160 as_expr=false
Chris@350 9161 fi
Chris@350 9162
Chris@350 9163 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Chris@350 9164 as_basename=basename
Chris@350 9165 else
Chris@350 9166 as_basename=false
Chris@350 9167 fi
Chris@350 9168
mathieu@468 9169
mathieu@468 9170 # Name of the executable.
Chris@350 9171 as_me=`$as_basename -- "$0" ||
Chris@350 9172 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
Chris@350 9173 X"$0" : 'X\(//\)$' \| \
Chris@350 9174 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
mathieu@468 9175 echo X/"$0" |
Chris@350 9176 sed '/^.*\/\([^/][^/]*\)\/*$/{
Chris@350 9177 s//\1/
Chris@350 9178 q
Chris@350 9179 }
Chris@350 9180 /^X\/\(\/\/\)$/{
Chris@350 9181 s//\1/
Chris@350 9182 q
Chris@350 9183 }
Chris@350 9184 /^X\/\(\/\).*/{
Chris@350 9185 s//\1/
Chris@350 9186 q
Chris@350 9187 }
Chris@350 9188 s/.*/./; q'`
Chris@350 9189
mathieu@468 9190 # CDPATH.
mathieu@468 9191 $as_unset CDPATH
mathieu@468 9192
mathieu@468 9193
mathieu@468 9194
mathieu@468 9195 as_lineno_1=$LINENO
mathieu@468 9196 as_lineno_2=$LINENO
mathieu@468 9197 test "x$as_lineno_1" != "x$as_lineno_2" &&
mathieu@468 9198 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
mathieu@468 9199
mathieu@468 9200 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
mathieu@468 9201 # uniformly replaced by the line number. The first 'sed' inserts a
mathieu@468 9202 # line-number line after each line using $LINENO; the second 'sed'
mathieu@468 9203 # does the real work. The second script uses 'N' to pair each
mathieu@468 9204 # line-number line with the line containing $LINENO, and appends
mathieu@468 9205 # trailing '-' during substitution so that $LINENO is not a special
mathieu@468 9206 # case at line end.
mathieu@468 9207 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
mathieu@468 9208 # scripts with optimization help from Paolo Bonzini. Blame Lee
mathieu@468 9209 # E. McMahon (1931-1989) for sed's syntax. :-)
mathieu@468 9210 sed -n '
mathieu@468 9211 p
mathieu@468 9212 /[$]LINENO/=
mathieu@468 9213 ' <$as_myself |
mathieu@468 9214 sed '
mathieu@468 9215 s/[$]LINENO.*/&-/
mathieu@468 9216 t lineno
mathieu@468 9217 b
mathieu@468 9218 :lineno
mathieu@468 9219 N
mathieu@468 9220 :loop
mathieu@468 9221 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
mathieu@468 9222 t loop
mathieu@468 9223 s/-\n.*//
mathieu@468 9224 ' >$as_me.lineno &&
mathieu@468 9225 chmod +x "$as_me.lineno" ||
mathieu@468 9226 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
mathieu@468 9227 { (exit 1); exit 1; }; }
mathieu@468 9228
mathieu@468 9229 # Don't try to exec as it changes $[0], causing all sort of problems
mathieu@468 9230 # (the dirname of $[0] is not the place where we might find the
mathieu@468 9231 # original and so on. Autoconf is especially sensitive to this).
mathieu@468 9232 . "./$as_me.lineno"
mathieu@468 9233 # Exit status is that of the last command.
mathieu@468 9234 exit
mathieu@468 9235 }
mathieu@468 9236
mathieu@468 9237
mathieu@468 9238 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
mathieu@468 9239 as_dirname=dirname
mathieu@468 9240 else
mathieu@468 9241 as_dirname=false
mathieu@468 9242 fi
Chris@350 9243
Chris@350 9244 ECHO_C= ECHO_N= ECHO_T=
mathieu@468 9245 case `echo -n x` in
Chris@350 9246 -n*)
mathieu@468 9247 case `echo 'x\c'` in
Chris@350 9248 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
mathieu@468 9249 *) ECHO_C='\c';;
Chris@350 9250 esac;;
Chris@350 9251 *)
Chris@350 9252 ECHO_N='-n';;
Chris@350 9253 esac
Chris@350 9254
mathieu@468 9255 if expr a : '\(a\)' >/dev/null 2>&1 &&
mathieu@468 9256 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mathieu@468 9257 as_expr=expr
mathieu@468 9258 else
mathieu@468 9259 as_expr=false
mathieu@468 9260 fi
mathieu@468 9261
Chris@350 9262 rm -f conf$$ conf$$.exe conf$$.file
Chris@350 9263 if test -d conf$$.dir; then
Chris@350 9264 rm -f conf$$.dir/conf$$.file
Chris@350 9265 else
Chris@350 9266 rm -f conf$$.dir
mathieu@468 9267 mkdir conf$$.dir
mathieu@468 9268 fi
mathieu@468 9269 echo >conf$$.file
mathieu@468 9270 if ln -s conf$$.file conf$$ 2>/dev/null; then
mathieu@468 9271 as_ln_s='ln -s'
mathieu@468 9272 # ... but there are two gotchas:
mathieu@468 9273 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
mathieu@468 9274 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
mathieu@468 9275 # In both cases, we have to default to `cp -p'.
mathieu@468 9276 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Chris@350 9277 as_ln_s='cp -p'
mathieu@468 9278 elif ln conf$$.file conf$$ 2>/dev/null; then
mathieu@468 9279 as_ln_s=ln
Chris@350 9280 else
Chris@350 9281 as_ln_s='cp -p'
Chris@350 9282 fi
Chris@350 9283 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
Chris@350 9284 rmdir conf$$.dir 2>/dev/null
Chris@350 9285
mathieu@468 9286 if mkdir -p . 2>/dev/null; then
mathieu@468 9287 as_mkdir_p=:
mathieu@468 9288 else
mathieu@468 9289 test -d ./-p && rmdir ./-p
mathieu@468 9290 as_mkdir_p=false
mathieu@468 9291 fi
mathieu@468 9292
mathieu@468 9293 if test -x / >/dev/null 2>&1; then
mathieu@468 9294 as_test_x='test -x'
mathieu@468 9295 else
mathieu@468 9296 if ls -dL / >/dev/null 2>&1; then
mathieu@468 9297 as_ls_L_option=L
mathieu@468 9298 else
mathieu@468 9299 as_ls_L_option=
mathieu@468 9300 fi
mathieu@468 9301 as_test_x='
mathieu@468 9302 eval sh -c '\''
mathieu@468 9303 if test -d "$1"; then
mathieu@468 9304 test -d "$1/.";
mathieu@468 9305 else
mathieu@468 9306 case $1 in
mathieu@468 9307 -*)set "./$1";;
mathieu@468 9308 esac;
mathieu@468 9309 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
mathieu@468 9310 ???[sx]*):;;*)false;;esac;fi
mathieu@468 9311 '\'' sh
mathieu@468 9312 '
mathieu@468 9313 fi
mathieu@468 9314 as_executable_p=$as_test_x
mathieu@468 9315
mathieu@468 9316 # Sed expression to map a string onto a valid CPP name.
mathieu@468 9317 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
mathieu@468 9318
mathieu@468 9319 # Sed expression to map a string onto a valid variable name.
mathieu@468 9320 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
mathieu@468 9321
mathieu@468 9322
mathieu@468 9323 exec 6>&1
mathieu@468 9324
mathieu@468 9325 # Save the log message, to keep $[0] and so on meaningful, and to
mathieu@468 9326 # report actual input values of CONFIG_FILES etc. instead of their
mathieu@468 9327 # values after options handling.
mathieu@468 9328 ac_log="
mathieu@468 9329 This file was extended by Sonic Visualiser $as_me 1.9-kiosk-hg, which was
mathieu@468 9330 generated by GNU Autoconf 2.61. Invocation command line was
mathieu@468 9331
mathieu@468 9332 CONFIG_FILES = $CONFIG_FILES
mathieu@468 9333 CONFIG_HEADERS = $CONFIG_HEADERS
mathieu@468 9334 CONFIG_LINKS = $CONFIG_LINKS
mathieu@468 9335 CONFIG_COMMANDS = $CONFIG_COMMANDS
mathieu@468 9336 $ $0 $@
mathieu@468 9337
mathieu@468 9338 on `(hostname || uname -n) 2>/dev/null | sed 1q`
mathieu@468 9339 "
mathieu@468 9340
mathieu@468 9341 _ACEOF
mathieu@468 9342
mathieu@468 9343 cat >>$CONFIG_STATUS <<_ACEOF
mathieu@468 9344 # Files that config.status was made for.
mathieu@468 9345 config_files="$ac_config_files"
mathieu@468 9346
mathieu@468 9347 _ACEOF
mathieu@468 9348
mathieu@468 9349 cat >>$CONFIG_STATUS <<\_ACEOF
mathieu@468 9350 ac_cs_usage="\
mathieu@468 9351 \`$as_me' instantiates files from templates according to the
mathieu@468 9352 current configuration.
mathieu@468 9353
mathieu@468 9354 Usage: $0 [OPTIONS] [FILE]...
mathieu@468 9355
mathieu@468 9356 -h, --help print this help, then exit
mathieu@468 9357 -V, --version print version number and configuration settings, then exit
mathieu@468 9358 -q, --quiet do not print progress messages
mathieu@468 9359 -d, --debug don't remove temporary files
mathieu@468 9360 --recheck update $as_me by reconfiguring in the same conditions
mathieu@468 9361 --file=FILE[:TEMPLATE]
mathieu@468 9362 instantiate the configuration file FILE
mathieu@468 9363
mathieu@468 9364 Configuration files:
mathieu@468 9365 $config_files
mathieu@468 9366
mathieu@468 9367 Report bugs to <bug-autoconf@gnu.org>."
mathieu@468 9368
mathieu@468 9369 _ACEOF
mathieu@468 9370 cat >>$CONFIG_STATUS <<_ACEOF
mathieu@468 9371 ac_cs_version="\\
mathieu@468 9372 Sonic Visualiser config.status 1.9-kiosk-hg
mathieu@468 9373 configured by $0, generated by GNU Autoconf 2.61,
mathieu@468 9374 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
mathieu@468 9375
mathieu@468 9376 Copyright (C) 2006 Free Software Foundation, Inc.
mathieu@468 9377 This config.status script is free software; the Free Software Foundation
mathieu@468 9378 gives unlimited permission to copy, distribute and modify it."
mathieu@468 9379
mathieu@468 9380 ac_pwd='$ac_pwd'
mathieu@468 9381 srcdir='$srcdir'
mathieu@468 9382 INSTALL='$INSTALL'
mathieu@468 9383 MKDIR_P='$MKDIR_P'
mathieu@468 9384 _ACEOF
mathieu@468 9385
mathieu@468 9386 cat >>$CONFIG_STATUS <<\_ACEOF
mathieu@468 9387 # If no file are specified by the user, then we need to provide default
mathieu@468 9388 # value. By we need to know if files were specified by the user.
mathieu@468 9389 ac_need_defaults=:
mathieu@468 9390 while test $# != 0
mathieu@468 9391 do
mathieu@468 9392 case $1 in
mathieu@468 9393 --*=*)
mathieu@468 9394 ac_option=`expr "X$1" : 'X\([^=]*\)='`
mathieu@468 9395 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
mathieu@468 9396 ac_shift=:
mathieu@468 9397 ;;
mathieu@468 9398 *)
mathieu@468 9399 ac_option=$1
mathieu@468 9400 ac_optarg=$2
mathieu@468 9401 ac_shift=shift
mathieu@468 9402 ;;
mathieu@468 9403 esac
mathieu@468 9404
mathieu@468 9405 case $ac_option in
mathieu@468 9406 # Handling of the options.
mathieu@468 9407 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
mathieu@468 9408 ac_cs_recheck=: ;;
mathieu@468 9409 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
mathieu@468 9410 echo "$ac_cs_version"; exit ;;
mathieu@468 9411 --debug | --debu | --deb | --de | --d | -d )
mathieu@468 9412 debug=: ;;
mathieu@468 9413 --file | --fil | --fi | --f )
mathieu@468 9414 $ac_shift
mathieu@468 9415 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
mathieu@468 9416 ac_need_defaults=false;;
mathieu@468 9417 --he | --h | --help | --hel | -h )
mathieu@468 9418 echo "$ac_cs_usage"; exit ;;
mathieu@468 9419 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
mathieu@468 9420 | -silent | --silent | --silen | --sile | --sil | --si | --s)
mathieu@468 9421 ac_cs_silent=: ;;
mathieu@468 9422
mathieu@468 9423 # This is an error.
mathieu@468 9424 -*) { echo "$as_me: error: unrecognized option: $1
mathieu@468 9425 Try \`$0 --help' for more information." >&2
mathieu@468 9426 { (exit 1); exit 1; }; } ;;
mathieu@468 9427
mathieu@468 9428 *) ac_config_targets="$ac_config_targets $1"
mathieu@468 9429 ac_need_defaults=false ;;
mathieu@468 9430
mathieu@468 9431 esac
mathieu@468 9432 shift
mathieu@468 9433 done
mathieu@468 9434
mathieu@468 9435 ac_configure_extra_args=
mathieu@468 9436
mathieu@468 9437 if $ac_cs_silent; then
mathieu@468 9438 exec 6>/dev/null
mathieu@468 9439 ac_configure_extra_args="$ac_configure_extra_args --silent"
mathieu@468 9440 fi
mathieu@468 9441
mathieu@468 9442 _ACEOF
mathieu@468 9443 cat >>$CONFIG_STATUS <<_ACEOF
mathieu@468 9444 if \$ac_cs_recheck; then
mathieu@468 9445 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
mathieu@468 9446 CONFIG_SHELL=$SHELL
mathieu@468 9447 export CONFIG_SHELL
mathieu@468 9448 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
mathieu@468 9449 fi
mathieu@468 9450
mathieu@468 9451 _ACEOF
mathieu@468 9452 cat >>$CONFIG_STATUS <<\_ACEOF
mathieu@468 9453 exec 5>>config.log
Chris@350 9454 {
mathieu@468 9455 echo
mathieu@468 9456 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
mathieu@468 9457 ## Running $as_me. ##
mathieu@468 9458 _ASBOX
mathieu@468 9459 echo "$ac_log"
mathieu@468 9460 } >&5
mathieu@468 9461
mathieu@468 9462 _ACEOF
mathieu@468 9463 cat >>$CONFIG_STATUS <<_ACEOF
mathieu@468 9464 _ACEOF
mathieu@468 9465
mathieu@468 9466 cat >>$CONFIG_STATUS <<\_ACEOF
mathieu@468 9467
mathieu@468 9468 # Handling of arguments.
mathieu@468 9469 for ac_config_target in $ac_config_targets
mathieu@468 9470 do
mathieu@468 9471 case $ac_config_target in
mathieu@468 9472 "config.pri") CONFIG_FILES="$CONFIG_FILES config.pri" ;;
mathieu@468 9473
mathieu@468 9474 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
mathieu@468 9475 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
mathieu@468 9476 { (exit 1); exit 1; }; };;
mathieu@468 9477 esac
mathieu@468 9478 done
mathieu@468 9479
mathieu@468 9480
mathieu@468 9481 # If the user did not use the arguments to specify the items to instantiate,
mathieu@468 9482 # then the envvar interface is used. Set only those that are not.
mathieu@468 9483 # We use the long form for the default assignment because of an extremely
mathieu@468 9484 # bizarre bug on SunOS 4.1.3.
mathieu@468 9485 if $ac_need_defaults; then
mathieu@468 9486 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mathieu@468 9487 fi
mathieu@468 9488
mathieu@468 9489 # Have a temporary directory for convenience. Make it in the build tree
mathieu@468 9490 # simply because there is no reason against having it here, and in addition,
mathieu@468 9491 # creating and moving files from /tmp can sometimes cause problems.
mathieu@468 9492 # Hook for its removal unless debugging.
mathieu@468 9493 # Note that there is a small window in which the directory will not be cleaned:
mathieu@468 9494 # after its creation but before its name has been assigned to `$tmp'.
mathieu@468 9495 $debug ||
mathieu@468 9496 {
mathieu@468 9497 tmp=
mathieu@468 9498 trap 'exit_status=$?
mathieu@468 9499 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
mathieu@468 9500 ' 0
mathieu@468 9501 trap '{ (exit 1); exit 1; }' 1 2 13 15
mathieu@468 9502 }
mathieu@468 9503 # Create a (secure) tmp directory for tmp files.
mathieu@468 9504
mathieu@468 9505 {
mathieu@468 9506 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
mathieu@468 9507 test -n "$tmp" && test -d "$tmp"
mathieu@468 9508 } ||
mathieu@468 9509 {
mathieu@468 9510 tmp=./conf$$-$RANDOM
mathieu@468 9511 (umask 077 && mkdir "$tmp")
mathieu@468 9512 } ||
mathieu@468 9513 {
mathieu@468 9514 echo "$me: cannot create a temporary directory in ." >&2
mathieu@468 9515 { (exit 1); exit 1; }
mathieu@468 9516 }
mathieu@468 9517
mathieu@468 9518 #
mathieu@468 9519 # Set up the sed scripts for CONFIG_FILES section.
mathieu@468 9520 #
mathieu@468 9521
mathieu@468 9522 # No need to generate the scripts if there are no CONFIG_FILES.
mathieu@468 9523 # This happens for instance when ./config.status config.h
mathieu@468 9524 if test -n "$CONFIG_FILES"; then
mathieu@468 9525
mathieu@468 9526 _ACEOF
mathieu@468 9527
mathieu@468 9528
mathieu@468 9529
mathieu@468 9530 ac_delim='%!_!# '
mathieu@468 9531 for ac_last_try in false false false false false :; do
mathieu@468 9532 cat >conf$$subs.sed <<_ACEOF
mathieu@468 9533 SHELL!$SHELL$ac_delim
mathieu@468 9534 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
mathieu@468 9535 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
mathieu@468 9536 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
mathieu@468 9537 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
mathieu@468 9538 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
mathieu@468 9539 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
mathieu@468 9540 exec_prefix!$exec_prefix$ac_delim
mathieu@468 9541 prefix!$prefix$ac_delim
mathieu@468 9542 program_transform_name!$program_transform_name$ac_delim
mathieu@468 9543 bindir!$bindir$ac_delim
mathieu@468 9544 sbindir!$sbindir$ac_delim
mathieu@468 9545 libexecdir!$libexecdir$ac_delim
mathieu@468 9546 datarootdir!$datarootdir$ac_delim
mathieu@468 9547 datadir!$datadir$ac_delim
mathieu@468 9548 sysconfdir!$sysconfdir$ac_delim
mathieu@468 9549 sharedstatedir!$sharedstatedir$ac_delim
mathieu@468 9550 localstatedir!$localstatedir$ac_delim
mathieu@468 9551 includedir!$includedir$ac_delim
mathieu@468 9552 oldincludedir!$oldincludedir$ac_delim
mathieu@468 9553 docdir!$docdir$ac_delim
mathieu@468 9554 infodir!$infodir$ac_delim
mathieu@468 9555 htmldir!$htmldir$ac_delim
mathieu@468 9556 dvidir!$dvidir$ac_delim
mathieu@468 9557 pdfdir!$pdfdir$ac_delim
mathieu@468 9558 psdir!$psdir$ac_delim
mathieu@468 9559 libdir!$libdir$ac_delim
mathieu@468 9560 localedir!$localedir$ac_delim
mathieu@468 9561 mandir!$mandir$ac_delim
mathieu@468 9562 DEFS!$DEFS$ac_delim
mathieu@468 9563 ECHO_C!$ECHO_C$ac_delim
mathieu@468 9564 ECHO_N!$ECHO_N$ac_delim
mathieu@468 9565 ECHO_T!$ECHO_T$ac_delim
mathieu@468 9566 LIBS!$LIBS$ac_delim
mathieu@468 9567 build_alias!$build_alias$ac_delim
mathieu@468 9568 host_alias!$host_alias$ac_delim
mathieu@468 9569 target_alias!$target_alias$ac_delim
mathieu@468 9570 CC!$CC$ac_delim
mathieu@468 9571 CFLAGS!$CFLAGS$ac_delim
mathieu@468 9572 LDFLAGS!$LDFLAGS$ac_delim
mathieu@468 9573 CPPFLAGS!$CPPFLAGS$ac_delim
mathieu@468 9574 ac_ct_CC!$ac_ct_CC$ac_delim
mathieu@468 9575 EXEEXT!$EXEEXT$ac_delim
mathieu@468 9576 OBJEXT!$OBJEXT$ac_delim
mathieu@468 9577 CXX!$CXX$ac_delim
mathieu@468 9578 CXXFLAGS!$CXXFLAGS$ac_delim
mathieu@468 9579 ac_ct_CXX!$ac_ct_CXX$ac_delim
mathieu@468 9580 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
mathieu@468 9581 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
mathieu@468 9582 INSTALL_DATA!$INSTALL_DATA$ac_delim
mathieu@468 9583 CXXCPP!$CXXCPP$ac_delim
mathieu@468 9584 GREP!$GREP$ac_delim
mathieu@468 9585 EGREP!$EGREP$ac_delim
mathieu@468 9586 QMAKE!$QMAKE$ac_delim
mathieu@468 9587 PERL!$PERL$ac_delim
mathieu@468 9588 XARGS!$XARGS$ac_delim
mathieu@468 9589 MAKEDEPEND!$MAKEDEPEND$ac_delim
mathieu@468 9590 SHA1SUM!$SHA1SUM$ac_delim
mathieu@468 9591 CUT!$CUT$ac_delim
mathieu@468 9592 CXXFLAGS_MINIMAL!$CXXFLAGS_MINIMAL$ac_delim
mathieu@468 9593 HAVES!$HAVES$ac_delim
mathieu@468 9594 QMAKE_CONFIG!$QMAKE_CONFIG$ac_delim
mathieu@468 9595 CODENAME!$CODENAME$ac_delim
mathieu@468 9596 LIBOBJS!$LIBOBJS$ac_delim
mathieu@468 9597 LTLIBOBJS!$LTLIBOBJS$ac_delim
mathieu@468 9598 _ACEOF
mathieu@468 9599
mathieu@480 9600 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 65; then
mathieu@468 9601 break
mathieu@468 9602 elif $ac_last_try; then
mathieu@468 9603 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
mathieu@468 9604 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
mathieu@468 9605 { (exit 1); exit 1; }; }
mathieu@468 9606 else
mathieu@468 9607 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
mathieu@468 9608 fi
mathieu@468 9609 done
mathieu@468 9610
mathieu@468 9611 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
mathieu@468 9612 if test -n "$ac_eof"; then
mathieu@468 9613 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
mathieu@468 9614 ac_eof=`expr $ac_eof + 1`
mathieu@468 9615 fi
mathieu@468 9616
mathieu@468 9617 cat >>$CONFIG_STATUS <<_ACEOF
mathieu@480 9618 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
mathieu@468 9619 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
mathieu@468 9620 _ACEOF
mathieu@468 9621 sed '
mathieu@468 9622 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
mathieu@468 9623 s/^/s,@/; s/!/@,|#_!!_#|/
mathieu@468 9624 :n
mathieu@468 9625 t n
mathieu@468 9626 s/'"$ac_delim"'$/,g/; t
mathieu@468 9627 s/$/\\/; p
mathieu@468 9628 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
mathieu@468 9629 ' >>$CONFIG_STATUS <conf$$subs.sed
mathieu@468 9630 rm -f conf$$subs.sed
mathieu@468 9631 cat >>$CONFIG_STATUS <<_ACEOF
mathieu@468 9632 :end
mathieu@468 9633 s/|#_!!_#|//g
mathieu@468 9634 CEOF$ac_eof
mathieu@468 9635 _ACEOF
mathieu@468 9636
mathieu@468 9637
mathieu@468 9638 # VPATH may cause trouble with some makes, so we remove $(srcdir),
mathieu@468 9639 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
mathieu@468 9640 # trailing colons and then remove the whole line if VPATH becomes empty
mathieu@468 9641 # (actually we leave an empty line to preserve line numbers).
mathieu@468 9642 if test "x$srcdir" = x.; then
mathieu@468 9643 ac_vpsub='/^[ ]*VPATH[ ]*=/{
mathieu@468 9644 s/:*\$(srcdir):*/:/
mathieu@468 9645 s/:*\${srcdir}:*/:/
mathieu@468 9646 s/:*@srcdir@:*/:/
mathieu@468 9647 s/^\([^=]*=[ ]*\):*/\1/
mathieu@468 9648 s/:*$//
mathieu@468 9649 s/^[^=]*=[ ]*$//
mathieu@468 9650 }'
mathieu@468 9651 fi
mathieu@468 9652
mathieu@468 9653 cat >>$CONFIG_STATUS <<\_ACEOF
mathieu@468 9654 fi # test -n "$CONFIG_FILES"
mathieu@468 9655
mathieu@468 9656
mathieu@468 9657 for ac_tag in :F $CONFIG_FILES
mathieu@468 9658 do
mathieu@468 9659 case $ac_tag in
mathieu@468 9660 :[FHLC]) ac_mode=$ac_tag; continue;;
mathieu@468 9661 esac
mathieu@468 9662 case $ac_mode$ac_tag in
mathieu@468 9663 :[FHL]*:*);;
mathieu@468 9664 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
mathieu@468 9665 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
mathieu@468 9666 { (exit 1); exit 1; }; };;
mathieu@468 9667 :[FH]-) ac_tag=-:-;;
mathieu@468 9668 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
mathieu@468 9669 esac
mathieu@468 9670 ac_save_IFS=$IFS
mathieu@468 9671 IFS=:
mathieu@468 9672 set x $ac_tag
mathieu@468 9673 IFS=$ac_save_IFS
mathieu@468 9674 shift
mathieu@468 9675 ac_file=$1
mathieu@468 9676 shift
mathieu@468 9677
mathieu@468 9678 case $ac_mode in
mathieu@468 9679 :L) ac_source=$1;;
mathieu@468 9680 :[FH])
mathieu@468 9681 ac_file_inputs=
mathieu@468 9682 for ac_f
mathieu@468 9683 do
mathieu@468 9684 case $ac_f in
mathieu@468 9685 -) ac_f="$tmp/stdin";;
mathieu@468 9686 *) # Look for the file first in the build tree, then in the source tree
mathieu@468 9687 # (if the path is not absolute). The absolute path cannot be DOS-style,
mathieu@468 9688 # because $ac_f cannot contain `:'.
mathieu@468 9689 test -f "$ac_f" ||
mathieu@468 9690 case $ac_f in
mathieu@468 9691 [\\/$]*) false;;
mathieu@468 9692 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
mathieu@468 9693 esac ||
mathieu@468 9694 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
mathieu@468 9695 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
mathieu@468 9696 { (exit 1); exit 1; }; };;
mathieu@468 9697 esac
mathieu@468 9698 ac_file_inputs="$ac_file_inputs $ac_f"
mathieu@468 9699 done
mathieu@468 9700
mathieu@468 9701 # Let's still pretend it is `configure' which instantiates (i.e., don't
mathieu@468 9702 # use $as_me), people would be surprised to read:
mathieu@468 9703 # /* config.h. Generated by config.status. */
mathieu@468 9704 configure_input="Generated from "`IFS=:
mathieu@468 9705 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
mathieu@468 9706 if test x"$ac_file" != x-; then
mathieu@468 9707 configure_input="$ac_file. $configure_input"
mathieu@468 9708 { echo "$as_me:$LINENO: creating $ac_file" >&5
mathieu@468 9709 echo "$as_me: creating $ac_file" >&6;}
mathieu@468 9710 fi
mathieu@468 9711
mathieu@468 9712 case $ac_tag in
mathieu@468 9713 *:-:* | *:-) cat >"$tmp/stdin";;
mathieu@468 9714 esac
mathieu@468 9715 ;;
mathieu@468 9716 esac
mathieu@468 9717
mathieu@468 9718 ac_dir=`$as_dirname -- "$ac_file" ||
mathieu@468 9719 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mathieu@468 9720 X"$ac_file" : 'X\(//\)[^/]' \| \
mathieu@468 9721 X"$ac_file" : 'X\(//\)$' \| \
mathieu@468 9722 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
mathieu@468 9723 echo X"$ac_file" |
mathieu@468 9724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
mathieu@468 9725 s//\1/
mathieu@468 9726 q
mathieu@468 9727 }
mathieu@468 9728 /^X\(\/\/\)[^/].*/{
mathieu@468 9729 s//\1/
mathieu@468 9730 q
mathieu@468 9731 }
mathieu@468 9732 /^X\(\/\/\)$/{
mathieu@468 9733 s//\1/
mathieu@468 9734 q
mathieu@468 9735 }
mathieu@468 9736 /^X\(\/\).*/{
mathieu@468 9737 s//\1/
mathieu@468 9738 q
mathieu@468 9739 }
mathieu@468 9740 s/.*/./; q'`
mathieu@468 9741 { as_dir="$ac_dir"
Chris@350 9742 case $as_dir in #(
Chris@350 9743 -*) as_dir=./$as_dir;;
Chris@350 9744 esac
mathieu@468 9745 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Chris@350 9746 as_dirs=
Chris@350 9747 while :; do
Chris@350 9748 case $as_dir in #(
mathieu@468 9749 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
Chris@350 9750 *) as_qdir=$as_dir;;
Chris@350 9751 esac
Chris@350 9752 as_dirs="'$as_qdir' $as_dirs"
Chris@350 9753 as_dir=`$as_dirname -- "$as_dir" ||
Chris@350 9754 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@350 9755 X"$as_dir" : 'X\(//\)[^/]' \| \
Chris@350 9756 X"$as_dir" : 'X\(//\)$' \| \
Chris@350 9757 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
mathieu@468 9758 echo X"$as_dir" |
Chris@350 9759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@350 9760 s//\1/
Chris@350 9761 q
Chris@350 9762 }
Chris@350 9763 /^X\(\/\/\)[^/].*/{
Chris@350 9764 s//\1/
Chris@350 9765 q
Chris@350 9766 }
Chris@350 9767 /^X\(\/\/\)$/{
Chris@350 9768 s//\1/
Chris@350 9769 q
Chris@350 9770 }
Chris@350 9771 /^X\(\/\).*/{
Chris@350 9772 s//\1/
Chris@350 9773 q
Chris@350 9774 }
Chris@350 9775 s/.*/./; q'`
Chris@350 9776 test -d "$as_dir" && break
Chris@350 9777 done
Chris@350 9778 test -z "$as_dirs" || eval "mkdir $as_dirs"
mathieu@468 9779 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
mathieu@468 9780 echo "$as_me: error: cannot create directory $as_dir" >&2;}
mathieu@468 9781 { (exit 1); exit 1; }; }; }
Chris@350 9782 ac_builddir=.
Chris@350 9783
Chris@350 9784 case "$ac_dir" in
Chris@350 9785 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@350 9786 *)
mathieu@468 9787 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Chris@350 9788 # A ".." for each directory in $ac_dir_suffix.
mathieu@468 9789 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Chris@350 9790 case $ac_top_builddir_sub in
Chris@350 9791 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@350 9792 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
Chris@350 9793 esac ;;
Chris@350 9794 esac
Chris@350 9795 ac_abs_top_builddir=$ac_pwd
Chris@350 9796 ac_abs_builddir=$ac_pwd$ac_dir_suffix
Chris@350 9797 # for backward compatibility:
Chris@350 9798 ac_top_builddir=$ac_top_build_prefix
Chris@350 9799
Chris@350 9800 case $srcdir in
Chris@350 9801 .) # We are building in place.
Chris@350 9802 ac_srcdir=.
Chris@350 9803 ac_top_srcdir=$ac_top_builddir_sub
Chris@350 9804 ac_abs_top_srcdir=$ac_pwd ;;
Chris@350 9805 [\\/]* | ?:[\\/]* ) # Absolute name.
Chris@350 9806 ac_srcdir=$srcdir$ac_dir_suffix;
Chris@350 9807 ac_top_srcdir=$srcdir
Chris@350 9808 ac_abs_top_srcdir=$srcdir ;;
Chris@350 9809 *) # Relative name.
Chris@350 9810 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
Chris@350 9811 ac_top_srcdir=$ac_top_build_prefix$srcdir
Chris@350 9812 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Chris@350 9813 esac
Chris@350 9814 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Chris@350 9815
Chris@350 9816
Chris@350 9817 case $ac_mode in
Chris@350 9818 :F)
Chris@350 9819 #
Chris@350 9820 # CONFIG_FILE
Chris@350 9821 #
Chris@350 9822
Chris@350 9823 case $INSTALL in
Chris@350 9824 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Chris@350 9825 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Chris@350 9826 esac
Chris@350 9827 ac_MKDIR_P=$MKDIR_P
Chris@350 9828 case $MKDIR_P in
Chris@350 9829 [\\/$]* | ?:[\\/]* ) ;;
Chris@350 9830 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
Chris@350 9831 esac
Chris@350 9832 _ACEOF
Chris@350 9833
mathieu@468 9834 cat >>$CONFIG_STATUS <<\_ACEOF
Chris@350 9835 # If the template does not know about datarootdir, expand it.
Chris@350 9836 # FIXME: This hack should be removed a few years after 2.60.
Chris@350 9837 ac_datarootdir_hack=; ac_datarootdir_seen=
mathieu@468 9838
mathieu@468 9839 case `sed -n '/datarootdir/ {
Chris@350 9840 p
Chris@350 9841 q
Chris@350 9842 }
Chris@350 9843 /@datadir@/p
Chris@350 9844 /@docdir@/p
Chris@350 9845 /@infodir@/p
Chris@350 9846 /@localedir@/p
mathieu@468 9847 /@mandir@/p
mathieu@468 9848 ' $ac_file_inputs` in
Chris@350 9849 *datarootdir*) ac_datarootdir_seen=yes;;
Chris@350 9850 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
mathieu@468 9851 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
mathieu@468 9852 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
mathieu@468 9853 _ACEOF
mathieu@468 9854 cat >>$CONFIG_STATUS <<_ACEOF
Chris@350 9855 ac_datarootdir_hack='
Chris@350 9856 s&@datadir@&$datadir&g
Chris@350 9857 s&@docdir@&$docdir&g
Chris@350 9858 s&@infodir@&$infodir&g
Chris@350 9859 s&@localedir@&$localedir&g
Chris@350 9860 s&@mandir@&$mandir&g
mathieu@468 9861 s&\\\${datarootdir}&$datarootdir&g' ;;
Chris@350 9862 esac
Chris@350 9863 _ACEOF
Chris@350 9864
Chris@350 9865 # Neutralize VPATH when `$srcdir' = `.'.
Chris@350 9866 # Shell code in configure.ac might set extrasub.
Chris@350 9867 # FIXME: do we really want to maintain this feature?
mathieu@468 9868 cat >>$CONFIG_STATUS <<_ACEOF
mathieu@468 9869 sed "$ac_vpsub
Chris@350 9870 $extrasub
Chris@350 9871 _ACEOF
mathieu@468 9872 cat >>$CONFIG_STATUS <<\_ACEOF
Chris@350 9873 :t
Chris@350 9874 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
mathieu@468 9875 s&@configure_input@&$configure_input&;t t
Chris@350 9876 s&@top_builddir@&$ac_top_builddir_sub&;t t
Chris@350 9877 s&@srcdir@&$ac_srcdir&;t t
Chris@350 9878 s&@abs_srcdir@&$ac_abs_srcdir&;t t
Chris@350 9879 s&@top_srcdir@&$ac_top_srcdir&;t t
Chris@350 9880 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
Chris@350 9881 s&@builddir@&$ac_builddir&;t t
Chris@350 9882 s&@abs_builddir@&$ac_abs_builddir&;t t
Chris@350 9883 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
Chris@350 9884 s&@INSTALL@&$ac_INSTALL&;t t
Chris@350 9885 s&@MKDIR_P@&$ac_MKDIR_P&;t t
Chris@350 9886 $ac_datarootdir_hack
mathieu@480 9887 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
Chris@350 9888
Chris@350 9889 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Chris@475 9890 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
Chris@475 9891 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
mathieu@468 9892 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
mathieu@468 9893 which seems to be undefined. Please make sure it is defined." >&5
mathieu@468 9894 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
mathieu@468 9895 which seems to be undefined. Please make sure it is defined." >&2;}
Chris@350 9896
Chris@475 9897 rm -f "$tmp/stdin"
Chris@350 9898 case $ac_file in
mathieu@468 9899 -) cat "$tmp/out"; rm -f "$tmp/out";;
mathieu@468 9900 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
mathieu@468 9901 esac
Chris@350 9902 ;;
Chris@350 9903
Chris@350 9904
Chris@350 9905
Chris@350 9906 esac
Chris@350 9907
Chris@350 9908 done # for ac_tag
Chris@350 9909
Chris@350 9910
mathieu@468 9911 { (exit 0); exit 0; }
mathieu@468 9912 _ACEOF
mathieu@468 9913 chmod +x $CONFIG_STATUS
Chris@350 9914 ac_clean_files=$ac_clean_files_save
Chris@350 9915
Chris@350 9916
Chris@350 9917 # configure is writing to config.log, and then calls config.status.
Chris@350 9918 # config.status does its own redirection, appending to config.log.
Chris@350 9919 # Unfortunately, on DOS this fails, as config.log is still kept open
Chris@350 9920 # by configure, so config.status won't be able to write to it; its
Chris@350 9921 # output is simply discarded. So we exec the FD to /dev/null,
Chris@350 9922 # effectively closing config.log, so it can be properly (re)opened and
Chris@350 9923 # appended to by config.status. When coming back to configure, we
Chris@350 9924 # need to make the FD available again.
Chris@350 9925 if test "$no_create" != yes; then
Chris@350 9926 ac_cs_success=:
Chris@350 9927 ac_config_status_args=
Chris@350 9928 test "$silent" = yes &&
Chris@350 9929 ac_config_status_args="$ac_config_status_args --quiet"
Chris@350 9930 exec 5>/dev/null
Chris@350 9931 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Chris@350 9932 exec 5>>config.log
Chris@350 9933 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
Chris@350 9934 # would make configure fail if this is the last instruction.
mathieu@468 9935 $ac_cs_success || { (exit 1); exit 1; }
Chris@350 9936 fi
Chris@350 9937
Chris@351 9938 ac_config_files="$ac_config_files version.h"
Chris@351 9939
Chris@351 9940 cat >confcache <<\_ACEOF
Chris@351 9941 # This file is a shell script that caches the results of configure
Chris@351 9942 # tests run on this system so they can be shared between configure
Chris@351 9943 # scripts and configure runs, see configure's option --config-cache.
Chris@351 9944 # It is not useful on other systems. If it contains results you don't
Chris@351 9945 # want to keep, you may remove or edit it.
Chris@351 9946 #
Chris@351 9947 # config.status only pays attention to the cache file if you give it
Chris@351 9948 # the --recheck option to rerun configure.
Chris@351 9949 #
Chris@351 9950 # `ac_cv_env_foo' variables (set or unset) will be overridden when
Chris@351 9951 # loading this file, other *unset* `ac_cv_foo' will be assigned the
Chris@351 9952 # following values.
Chris@351 9953
Chris@351 9954 _ACEOF
Chris@351 9955
Chris@351 9956 # The following way of writing the cache mishandles newlines in values,
Chris@351 9957 # but we know of no workaround that is simple, portable, and efficient.
Chris@351 9958 # So, we kill variables containing newlines.
Chris@351 9959 # Ultrix sh set writes to stderr and can't be redirected directly,
Chris@351 9960 # and sets the high bit in the cache file unless we assign to the vars.
Chris@351 9961 (
Chris@351 9962 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
Chris@351 9963 eval ac_val=\$$ac_var
Chris@351 9964 case $ac_val in #(
Chris@351 9965 *${as_nl}*)
Chris@351 9966 case $ac_var in #(
mathieu@468 9967 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
mathieu@468 9968 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Chris@351 9969 esac
Chris@351 9970 case $ac_var in #(
Chris@351 9971 _ | IFS | as_nl) ;; #(
mathieu@468 9972 *) $as_unset $ac_var ;;
Chris@351 9973 esac ;;
Chris@351 9974 esac
Chris@351 9975 done
Chris@351 9976
Chris@351 9977 (set) 2>&1 |
Chris@351 9978 case $as_nl`(ac_space=' '; set) 2>&1` in #(
Chris@351 9979 *${as_nl}ac_space=\ *)
mathieu@468 9980 # `set' does not quote correctly, so add quotes (double-quote
mathieu@468 9981 # substitution turns \\\\ into \\, and sed turns \\ into \).
Chris@351 9982 sed -n \
Chris@351 9983 "s/'/'\\\\''/g;
Chris@351 9984 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Chris@351 9985 ;; #(
Chris@351 9986 *)
Chris@351 9987 # `set' quotes correctly as required by POSIX, so do not add quotes.
Chris@351 9988 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Chris@351 9989 ;;
Chris@351 9990 esac |
Chris@351 9991 sort
Chris@351 9992 ) |
Chris@351 9993 sed '
Chris@351 9994 /^ac_cv_env_/b end
Chris@351 9995 t clear
Chris@351 9996 :clear
Chris@351 9997 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
Chris@351 9998 t end
Chris@351 9999 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
Chris@351 10000 :end' >>confcache
Chris@351 10001 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
Chris@351 10002 if test -w "$cache_file"; then
Chris@475 10003 test "x$cache_file" != "x/dev/null" &&
mathieu@468 10004 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
mathieu@468 10005 echo "$as_me: updating cache $cache_file" >&6;}
Chris@475 10006 cat confcache >$cache_file
Chris@351 10007 else
mathieu@468 10008 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
mathieu@468 10009 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Chris@351 10010 fi
Chris@351 10011 fi
Chris@351 10012 rm -f confcache
Chris@351 10013
Chris@351 10014 test "x$prefix" = xNONE && prefix=$ac_default_prefix
Chris@351 10015 # Let make expand exec_prefix.
Chris@351 10016 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
Chris@351 10017
Chris@351 10018 # Transform confdefs.h into DEFS.
Chris@351 10019 # Protect against shell expansion while executing Makefile rules.
Chris@351 10020 # Protect against Makefile macro expansion.
Chris@351 10021 #
Chris@351 10022 # If the first sed substitution is executed (which looks for macros that
Chris@351 10023 # take arguments), then branch to the quote section. Otherwise,
Chris@351 10024 # look for a macro that doesn't take arguments.
Chris@351 10025 ac_script='
Chris@351 10026 t clear
Chris@351 10027 :clear
Chris@351 10028 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Chris@351 10029 t quote
Chris@351 10030 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Chris@351 10031 t quote
Chris@351 10032 b any
Chris@351 10033 :quote
Chris@351 10034 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
Chris@351 10035 s/\[/\\&/g
Chris@351 10036 s/\]/\\&/g
Chris@351 10037 s/\$/$$/g
Chris@351 10038 H
Chris@351 10039 :any
Chris@351 10040 ${
Chris@351 10041 g
Chris@351 10042 s/^\n//
Chris@351 10043 s/\n/ /g
Chris@351 10044 p
Chris@351 10045 }
Chris@351 10046 '
Chris@351 10047 DEFS=`sed -n "$ac_script" confdefs.h`
Chris@351 10048
Chris@351 10049
Chris@351 10050 ac_libobjs=
Chris@351 10051 ac_ltlibobjs=
Chris@351 10052 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
Chris@351 10053 # 1. Remove the extension, and $U if already installed.
Chris@351 10054 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
mathieu@468 10055 ac_i=`echo "$ac_i" | sed "$ac_script"`
Chris@351 10056 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
Chris@351 10057 # will be set to the directory where LIBOBJS objects are built.
mathieu@468 10058 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
mathieu@468 10059 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Chris@351 10060 done
Chris@351 10061 LIBOBJS=$ac_libobjs
Chris@351 10062
Chris@351 10063 LTLIBOBJS=$ac_ltlibobjs
Chris@351 10064
Chris@351 10065
Chris@351 10066
Chris@475 10067 : ${CONFIG_STATUS=./config.status}
Chris@351 10068 ac_clean_files_save=$ac_clean_files
Chris@351 10069 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
mathieu@468 10070 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
mathieu@468 10071 echo "$as_me: creating $CONFIG_STATUS" >&6;}
mathieu@468 10072 cat >$CONFIG_STATUS <<_ACEOF
Chris@351 10073 #! $SHELL
Chris@351 10074 # Generated by $as_me.
Chris@351 10075 # Run this file to recreate the current configuration.
Chris@351 10076 # Compiler output produced by configure, useful for debugging
Chris@351 10077 # configure, is in config.log if it exists.
Chris@351 10078
Chris@351 10079 debug=false
Chris@351 10080 ac_cs_recheck=false
Chris@351 10081 ac_cs_silent=false
Chris@351 10082 SHELL=\${CONFIG_SHELL-$SHELL}
mathieu@468 10083 _ACEOF
mathieu@468 10084
mathieu@468 10085 cat >>$CONFIG_STATUS <<\_ACEOF
mathieu@468 10086 ## --------------------- ##
mathieu@468 10087 ## M4sh Initialization. ##
mathieu@468 10088 ## --------------------- ##
Chris@351 10089
Chris@351 10090 # Be more Bourne compatible
Chris@351 10091 DUALCASE=1; export DUALCASE # for MKS sh
mathieu@468 10092 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
Chris@351 10093 emulate sh
Chris@351 10094 NULLCMD=:
mathieu@468 10095 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
Chris@351 10096 # is contrary to our usage. Disable this feature.
Chris@351 10097 alias -g '${1+"$@"}'='"$@"'
Chris@351 10098 setopt NO_GLOB_SUBST
Chris@351 10099 else
mathieu@468 10100 case `(set -o) 2>/dev/null` in
mathieu@468 10101 *posix*) set -o posix ;;
mathieu@468 10102 esac
mathieu@468 10103
mathieu@468 10104 fi
mathieu@468 10105
mathieu@468 10106
mathieu@468 10107
mathieu@468 10108
mathieu@468 10109 # PATH needs CR
mathieu@468 10110 # Avoid depending upon Character Ranges.
mathieu@468 10111 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
mathieu@468 10112 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
mathieu@468 10113 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
mathieu@468 10114 as_cr_digits='0123456789'
mathieu@468 10115 as_cr_alnum=$as_cr_Letters$as_cr_digits
Chris@351 10116
Chris@351 10117 # The user is always right.
Chris@351 10118 if test "${PATH_SEPARATOR+set}" != set; then
mathieu@468 10119 echo "#! /bin/sh" >conf$$.sh
mathieu@468 10120 echo "exit 0" >>conf$$.sh
mathieu@468 10121 chmod +x conf$$.sh
mathieu@468 10122 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
mathieu@468 10123 PATH_SEPARATOR=';'
mathieu@468 10124 else
mathieu@468 10125 PATH_SEPARATOR=:
mathieu@468 10126 fi
mathieu@468 10127 rm -f conf$$.sh
mathieu@468 10128 fi
mathieu@468 10129
mathieu@468 10130 # Support unset when possible.
mathieu@468 10131 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
mathieu@468 10132 as_unset=unset
mathieu@468 10133 else
mathieu@468 10134 as_unset=false
Chris@351 10135 fi
Chris@351 10136
Chris@351 10137
Chris@351 10138 # IFS
Chris@351 10139 # We need space, tab and new line, in precisely that order. Quoting is
Chris@351 10140 # there to prevent editors from complaining about space-tab.
Chris@351 10141 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
Chris@351 10142 # splitting by setting IFS to empty value.)
mathieu@468 10143 as_nl='
mathieu@468 10144 '
Chris@351 10145 IFS=" "" $as_nl"
Chris@351 10146
Chris@351 10147 # Find who we are. Look in the path if we contain no directory separator.
mathieu@468 10148 case $0 in
Chris@351 10149 *[\\/]* ) as_myself=$0 ;;
Chris@351 10150 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@351 10151 for as_dir in $PATH
Chris@351 10152 do
Chris@351 10153 IFS=$as_save_IFS
Chris@351 10154 test -z "$as_dir" && as_dir=.
mathieu@468 10155 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
mathieu@468 10156 done
Chris@351 10157 IFS=$as_save_IFS
Chris@351 10158
Chris@351 10159 ;;
Chris@351 10160 esac
Chris@351 10161 # We did not find ourselves, most probably we were run as `sh COMMAND'
Chris@351 10162 # in which case we are not to be found in the path.
Chris@351 10163 if test "x$as_myself" = x; then
Chris@351 10164 as_myself=$0
Chris@351 10165 fi
Chris@351 10166 if test ! -f "$as_myself"; then
mathieu@468 10167 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
mathieu@468 10168 { (exit 1); exit 1; }
mathieu@468 10169 fi
mathieu@468 10170
mathieu@468 10171 # Work around bugs in pre-3.0 UWIN ksh.
mathieu@468 10172 for as_var in ENV MAIL MAILPATH
mathieu@468 10173 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Chris@351 10174 done
Chris@351 10175 PS1='$ '
Chris@351 10176 PS2='> '
Chris@351 10177 PS4='+ '
Chris@351 10178
Chris@351 10179 # NLS nuisances.
mathieu@468 10180 for as_var in \
mathieu@468 10181 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
mathieu@468 10182 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
mathieu@468 10183 LC_TELEPHONE LC_TIME
mathieu@468 10184 do
mathieu@468 10185 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
mathieu@468 10186 eval $as_var=C; export $as_var
mathieu@468 10187 else
mathieu@468 10188 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Chris@351 10189 fi
mathieu@468 10190 done
mathieu@468 10191
mathieu@468 10192 # Required to use basename.
Chris@351 10193 if expr a : '\(a\)' >/dev/null 2>&1 &&
Chris@351 10194 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Chris@351 10195 as_expr=expr
Chris@351 10196 else
Chris@351 10197 as_expr=false
Chris@351 10198 fi
Chris@351 10199
Chris@351 10200 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Chris@351 10201 as_basename=basename
Chris@351 10202 else
Chris@351 10203 as_basename=false
Chris@351 10204 fi
Chris@351 10205
mathieu@468 10206
mathieu@468 10207 # Name of the executable.
Chris@351 10208 as_me=`$as_basename -- "$0" ||
Chris@351 10209 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
Chris@351 10210 X"$0" : 'X\(//\)$' \| \
Chris@351 10211 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
mathieu@468 10212 echo X/"$0" |
Chris@351 10213 sed '/^.*\/\([^/][^/]*\)\/*$/{
Chris@351 10214 s//\1/
Chris@351 10215 q
Chris@351 10216 }
Chris@351 10217 /^X\/\(\/\/\)$/{
Chris@351 10218 s//\1/
Chris@351 10219 q
Chris@351 10220 }
Chris@351 10221 /^X\/\(\/\).*/{
Chris@351 10222 s//\1/
Chris@351 10223 q
Chris@351 10224 }
Chris@351 10225 s/.*/./; q'`
Chris@351 10226
mathieu@468 10227 # CDPATH.
mathieu@468 10228 $as_unset CDPATH
mathieu@468 10229
mathieu@468 10230
mathieu@468 10231
mathieu@468 10232 as_lineno_1=$LINENO
mathieu@468 10233 as_lineno_2=$LINENO
mathieu@468 10234 test "x$as_lineno_1" != "x$as_lineno_2" &&
mathieu@468 10235 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
mathieu@468 10236
mathieu@468 10237 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
mathieu@468 10238 # uniformly replaced by the line number. The first 'sed' inserts a
mathieu@468 10239 # line-number line after each line using $LINENO; the second 'sed'
mathieu@468 10240 # does the real work. The second script uses 'N' to pair each
mathieu@468 10241 # line-number line with the line containing $LINENO, and appends
mathieu@468 10242 # trailing '-' during substitution so that $LINENO is not a special
mathieu@468 10243 # case at line end.
mathieu@468 10244 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
mathieu@468 10245 # scripts with optimization help from Paolo Bonzini. Blame Lee
mathieu@468 10246 # E. McMahon (1931-1989) for sed's syntax. :-)
mathieu@468 10247 sed -n '
mathieu@468 10248 p
mathieu@468 10249 /[$]LINENO/=
mathieu@468 10250 ' <$as_myself |
mathieu@468 10251 sed '
mathieu@468 10252 s/[$]LINENO.*/&-/
mathieu@468 10253 t lineno
mathieu@468 10254 b
mathieu@468 10255 :lineno
mathieu@468 10256 N
mathieu@468 10257 :loop
mathieu@468 10258 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
mathieu@468 10259 t loop
mathieu@468 10260 s/-\n.*//
mathieu@468 10261 ' >$as_me.lineno &&
mathieu@468 10262 chmod +x "$as_me.lineno" ||
mathieu@468 10263 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
mathieu@468 10264 { (exit 1); exit 1; }; }
mathieu@468 10265
mathieu@468 10266 # Don't try to exec as it changes $[0], causing all sort of problems
mathieu@468 10267 # (the dirname of $[0] is not the place where we might find the
mathieu@468 10268 # original and so on. Autoconf is especially sensitive to this).
mathieu@468 10269 . "./$as_me.lineno"
mathieu@468 10270 # Exit status is that of the last command.
mathieu@468 10271 exit
mathieu@468 10272 }
mathieu@468 10273
mathieu@468 10274
mathieu@468 10275 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
mathieu@468 10276 as_dirname=dirname
mathieu@468 10277 else
mathieu@468 10278 as_dirname=false
mathieu@468 10279 fi
Chris@351 10280
Chris@351 10281 ECHO_C= ECHO_N= ECHO_T=
mathieu@468 10282 case `echo -n x` in
Chris@351 10283 -n*)
mathieu@468 10284 case `echo 'x\c'` in
Chris@351 10285 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
mathieu@468 10286 *) ECHO_C='\c';;
Chris@351 10287 esac;;
Chris@351 10288 *)
Chris@351 10289 ECHO_N='-n';;
Chris@351 10290 esac
Chris@351 10291
mathieu@468 10292 if expr a : '\(a\)' >/dev/null 2>&1 &&
mathieu@468 10293 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mathieu@468 10294 as_expr=expr
mathieu@468 10295 else
mathieu@468 10296 as_expr=false
mathieu@468 10297 fi
mathieu@468 10298
Chris@351 10299 rm -f conf$$ conf$$.exe conf$$.file
Chris@351 10300 if test -d conf$$.dir; then
Chris@351 10301 rm -f conf$$.dir/conf$$.file
Chris@351 10302 else
Chris@351 10303 rm -f conf$$.dir
mathieu@468 10304 mkdir conf$$.dir
mathieu@468 10305 fi
mathieu@468 10306 echo >conf$$.file
mathieu@468 10307 if ln -s conf$$.file conf$$ 2>/dev/null; then
mathieu@468 10308 as_ln_s='ln -s'
mathieu@468 10309 # ... but there are two gotchas:
mathieu@468 10310 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
mathieu@468 10311 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
mathieu@468 10312 # In both cases, we have to default to `cp -p'.
mathieu@468 10313 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Chris@351 10314 as_ln_s='cp -p'
mathieu@468 10315 elif ln conf$$.file conf$$ 2>/dev/null; then
mathieu@468 10316 as_ln_s=ln
Chris@351 10317 else
Chris@351 10318 as_ln_s='cp -p'
Chris@351 10319 fi
Chris@351 10320 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
Chris@351 10321 rmdir conf$$.dir 2>/dev/null
Chris@351 10322
mathieu@468 10323 if mkdir -p . 2>/dev/null; then
mathieu@468 10324 as_mkdir_p=:
mathieu@468 10325 else
mathieu@468 10326 test -d ./-p && rmdir ./-p
mathieu@468 10327 as_mkdir_p=false
mathieu@468 10328 fi
mathieu@468 10329
mathieu@468 10330 if test -x / >/dev/null 2>&1; then
mathieu@468 10331 as_test_x='test -x'
mathieu@468 10332 else
mathieu@468 10333 if ls -dL / >/dev/null 2>&1; then
mathieu@468 10334 as_ls_L_option=L
mathieu@468 10335 else
mathieu@468 10336 as_ls_L_option=
mathieu@468 10337 fi
mathieu@468 10338 as_test_x='
mathieu@468 10339 eval sh -c '\''
mathieu@468 10340 if test -d "$1"; then
mathieu@468 10341 test -d "$1/.";
mathieu@468 10342 else
mathieu@468 10343 case $1 in
mathieu@468 10344 -*)set "./$1";;
mathieu@468 10345 esac;
mathieu@468 10346 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
mathieu@468 10347 ???[sx]*):;;*)false;;esac;fi
mathieu@468 10348 '\'' sh
mathieu@468 10349 '
mathieu@468 10350 fi
mathieu@468 10351 as_executable_p=$as_test_x
mathieu@468 10352
mathieu@468 10353 # Sed expression to map a string onto a valid CPP name.
mathieu@468 10354 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
mathieu@468 10355
mathieu@468 10356 # Sed expression to map a string onto a valid variable name.
mathieu@468 10357 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
mathieu@468 10358
mathieu@468 10359
mathieu@468 10360 exec 6>&1
mathieu@468 10361
mathieu@468 10362 # Save the log message, to keep $[0] and so on meaningful, and to
mathieu@468 10363 # report actual input values of CONFIG_FILES etc. instead of their
mathieu@468 10364 # values after options handling.
mathieu@468 10365 ac_log="
mathieu@468 10366 This file was extended by Sonic Visualiser $as_me 1.9-kiosk-hg, which was
mathieu@468 10367 generated by GNU Autoconf 2.61. Invocation command line was
mathieu@468 10368
mathieu@468 10369 CONFIG_FILES = $CONFIG_FILES
mathieu@468 10370 CONFIG_HEADERS = $CONFIG_HEADERS
mathieu@468 10371 CONFIG_LINKS = $CONFIG_LINKS
mathieu@468 10372 CONFIG_COMMANDS = $CONFIG_COMMANDS
mathieu@468 10373 $ $0 $@
mathieu@468 10374
mathieu@468 10375 on `(hostname || uname -n) 2>/dev/null | sed 1q`
mathieu@468 10376 "
mathieu@468 10377
mathieu@468 10378 _ACEOF
mathieu@468 10379
mathieu@468 10380 cat >>$CONFIG_STATUS <<_ACEOF
mathieu@468 10381 # Files that config.status was made for.
mathieu@468 10382 config_files="$ac_config_files"
mathieu@468 10383
mathieu@468 10384 _ACEOF
mathieu@468 10385
mathieu@468 10386 cat >>$CONFIG_STATUS <<\_ACEOF
mathieu@468 10387 ac_cs_usage="\
mathieu@468 10388 \`$as_me' instantiates files from templates according to the
mathieu@468 10389 current configuration.
mathieu@468 10390
mathieu@468 10391 Usage: $0 [OPTIONS] [FILE]...
mathieu@468 10392
mathieu@468 10393 -h, --help print this help, then exit
mathieu@468 10394 -V, --version print version number and configuration settings, then exit
mathieu@468 10395 -q, --quiet do not print progress messages
mathieu@468 10396 -d, --debug don't remove temporary files
mathieu@468 10397 --recheck update $as_me by reconfiguring in the same conditions
mathieu@468 10398 --file=FILE[:TEMPLATE]
mathieu@468 10399 instantiate the configuration file FILE
mathieu@468 10400
mathieu@468 10401 Configuration files:
mathieu@468 10402 $config_files
mathieu@468 10403
mathieu@468 10404 Report bugs to <bug-autoconf@gnu.org>."
mathieu@468 10405
mathieu@468 10406 _ACEOF
mathieu@468 10407 cat >>$CONFIG_STATUS <<_ACEOF
mathieu@468 10408 ac_cs_version="\\
mathieu@468 10409 Sonic Visualiser config.status 1.9-kiosk-hg
mathieu@468 10410 configured by $0, generated by GNU Autoconf 2.61,
mathieu@468 10411 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
mathieu@468 10412
mathieu@468 10413 Copyright (C) 2006 Free Software Foundation, Inc.
mathieu@468 10414 This config.status script is free software; the Free Software Foundation
mathieu@468 10415 gives unlimited permission to copy, distribute and modify it."
mathieu@468 10416
mathieu@468 10417 ac_pwd='$ac_pwd'
mathieu@468 10418 srcdir='$srcdir'
mathieu@468 10419 INSTALL='$INSTALL'
mathieu@468 10420 MKDIR_P='$MKDIR_P'
mathieu@468 10421 _ACEOF
mathieu@468 10422
mathieu@468 10423 cat >>$CONFIG_STATUS <<\_ACEOF
mathieu@468 10424 # If no file are specified by the user, then we need to provide default
mathieu@468 10425 # value. By we need to know if files were specified by the user.
mathieu@468 10426 ac_need_defaults=:
mathieu@468 10427 while test $# != 0
mathieu@468 10428 do
mathieu@468 10429 case $1 in
mathieu@468 10430 --*=*)
mathieu@468 10431 ac_option=`expr "X$1" : 'X\([^=]*\)='`
mathieu@468 10432 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
mathieu@468 10433 ac_shift=:
mathieu@468 10434 ;;
mathieu@468 10435 *)
mathieu@468 10436 ac_option=$1
mathieu@468 10437 ac_optarg=$2
mathieu@468 10438 ac_shift=shift
mathieu@468 10439 ;;
mathieu@468 10440 esac
mathieu@468 10441
mathieu@468 10442 case $ac_option in
mathieu@468 10443 # Handling of the options.
mathieu@468 10444 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
mathieu@468 10445 ac_cs_recheck=: ;;
mathieu@468 10446 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
mathieu@468 10447 echo "$ac_cs_version"; exit ;;
mathieu@468 10448 --debug | --debu | --deb | --de | --d | -d )
mathieu@468 10449 debug=: ;;
mathieu@468 10450 --file | --fil | --fi | --f )
mathieu@468 10451 $ac_shift
mathieu@468 10452 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
mathieu@468 10453 ac_need_defaults=false;;
mathieu@468 10454 --he | --h | --help | --hel | -h )
mathieu@468 10455 echo "$ac_cs_usage"; exit ;;
mathieu@468 10456 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
mathieu@468 10457 | -silent | --silent | --silen | --sile | --sil | --si | --s)
mathieu@468 10458 ac_cs_silent=: ;;
mathieu@468 10459
mathieu@468 10460 # This is an error.
mathieu@468 10461 -*) { echo "$as_me: error: unrecognized option: $1
mathieu@468 10462 Try \`$0 --help' for more information." >&2
mathieu@468 10463 { (exit 1); exit 1; }; } ;;
mathieu@468 10464
mathieu@468 10465 *) ac_config_targets="$ac_config_targets $1"
mathieu@468 10466 ac_need_defaults=false ;;
mathieu@468 10467
mathieu@468 10468 esac
mathieu@468 10469 shift
mathieu@468 10470 done
mathieu@468 10471
mathieu@468 10472 ac_configure_extra_args=
mathieu@468 10473
mathieu@468 10474 if $ac_cs_silent; then
mathieu@468 10475 exec 6>/dev/null
mathieu@468 10476 ac_configure_extra_args="$ac_configure_extra_args --silent"
mathieu@468 10477 fi
mathieu@468 10478
mathieu@468 10479 _ACEOF
mathieu@468 10480 cat >>$CONFIG_STATUS <<_ACEOF
mathieu@468 10481 if \$ac_cs_recheck; then
mathieu@468 10482 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
mathieu@468 10483 CONFIG_SHELL=$SHELL
mathieu@468 10484 export CONFIG_SHELL
mathieu@468 10485 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
mathieu@468 10486 fi
mathieu@468 10487
mathieu@468 10488 _ACEOF
mathieu@468 10489 cat >>$CONFIG_STATUS <<\_ACEOF
mathieu@468 10490 exec 5>>config.log
Chris@351 10491 {
mathieu@468 10492 echo
mathieu@468 10493 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
mathieu@468 10494 ## Running $as_me. ##
mathieu@468 10495 _ASBOX
mathieu@468 10496 echo "$ac_log"
mathieu@468 10497 } >&5
mathieu@468 10498
mathieu@468 10499 _ACEOF
mathieu@468 10500 cat >>$CONFIG_STATUS <<_ACEOF
mathieu@468 10501 _ACEOF
mathieu@468 10502
mathieu@468 10503 cat >>$CONFIG_STATUS <<\_ACEOF
mathieu@468 10504
mathieu@468 10505 # Handling of arguments.
mathieu@468 10506 for ac_config_target in $ac_config_targets
mathieu@468 10507 do
mathieu@468 10508 case $ac_config_target in
mathieu@468 10509 "config.pri") CONFIG_FILES="$CONFIG_FILES config.pri" ;;
mathieu@468 10510 "version.h") CONFIG_FILES="$CONFIG_FILES version.h" ;;
mathieu@468 10511
mathieu@468 10512 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
mathieu@468 10513 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
mathieu@468 10514 { (exit 1); exit 1; }; };;
mathieu@468 10515 esac
mathieu@468 10516 done
mathieu@468 10517
mathieu@468 10518
mathieu@468 10519 # If the user did not use the arguments to specify the items to instantiate,
mathieu@468 10520 # then the envvar interface is used. Set only those that are not.
mathieu@468 10521 # We use the long form for the default assignment because of an extremely
mathieu@468 10522 # bizarre bug on SunOS 4.1.3.
mathieu@468 10523 if $ac_need_defaults; then
mathieu@468 10524 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mathieu@468 10525 fi
mathieu@468 10526
mathieu@468 10527 # Have a temporary directory for convenience. Make it in the build tree
mathieu@468 10528 # simply because there is no reason against having it here, and in addition,
mathieu@468 10529 # creating and moving files from /tmp can sometimes cause problems.
mathieu@468 10530 # Hook for its removal unless debugging.
mathieu@468 10531 # Note that there is a small window in which the directory will not be cleaned:
mathieu@468 10532 # after its creation but before its name has been assigned to `$tmp'.
mathieu@468 10533 $debug ||
mathieu@468 10534 {
mathieu@468 10535 tmp=
mathieu@468 10536 trap 'exit_status=$?
mathieu@468 10537 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
mathieu@468 10538 ' 0
mathieu@468 10539 trap '{ (exit 1); exit 1; }' 1 2 13 15
mathieu@468 10540 }
mathieu@468 10541 # Create a (secure) tmp directory for tmp files.
mathieu@468 10542
mathieu@468 10543 {
mathieu@468 10544 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
mathieu@468 10545 test -n "$tmp" && test -d "$tmp"
mathieu@468 10546 } ||
mathieu@468 10547 {
mathieu@468 10548 tmp=./conf$$-$RANDOM
mathieu@468 10549 (umask 077 && mkdir "$tmp")
mathieu@468 10550 } ||
mathieu@468 10551 {
mathieu@468 10552 echo "$me: cannot create a temporary directory in ." >&2
mathieu@468 10553 { (exit 1); exit 1; }
mathieu@468 10554 }
mathieu@468 10555
mathieu@468 10556 #
mathieu@468 10557 # Set up the sed scripts for CONFIG_FILES section.
mathieu@468 10558 #
mathieu@468 10559
mathieu@468 10560 # No need to generate the scripts if there are no CONFIG_FILES.
mathieu@468 10561 # This happens for instance when ./config.status config.h
mathieu@468 10562 if test -n "$CONFIG_FILES"; then
mathieu@468 10563
mathieu@468 10564 _ACEOF
mathieu@468 10565
mathieu@468 10566
mathieu@468 10567
mathieu@468 10568 ac_delim='%!_!# '
mathieu@468 10569 for ac_last_try in false false false false false :; do
mathieu@468 10570 cat >conf$$subs.sed <<_ACEOF
mathieu@468 10571 SHELL!$SHELL$ac_delim
mathieu@468 10572 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
mathieu@468 10573 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
mathieu@468 10574 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
mathieu@468 10575 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
mathieu@468 10576 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
mathieu@468 10577 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
mathieu@468 10578 exec_prefix!$exec_prefix$ac_delim
mathieu@468 10579 prefix!$prefix$ac_delim
mathieu@468 10580 program_transform_name!$program_transform_name$ac_delim
mathieu@468 10581 bindir!$bindir$ac_delim
mathieu@468 10582 sbindir!$sbindir$ac_delim
mathieu@468 10583 libexecdir!$libexecdir$ac_delim
mathieu@468 10584 datarootdir!$datarootdir$ac_delim
mathieu@468 10585 datadir!$datadir$ac_delim
mathieu@468 10586 sysconfdir!$sysconfdir$ac_delim
mathieu@468 10587 sharedstatedir!$sharedstatedir$ac_delim
mathieu@468 10588 localstatedir!$localstatedir$ac_delim
mathieu@468 10589 includedir!$includedir$ac_delim
mathieu@468 10590 oldincludedir!$oldincludedir$ac_delim
mathieu@468 10591 docdir!$docdir$ac_delim
mathieu@468 10592 infodir!$infodir$ac_delim
mathieu@468 10593 htmldir!$htmldir$ac_delim
mathieu@468 10594 dvidir!$dvidir$ac_delim
mathieu@468 10595 pdfdir!$pdfdir$ac_delim
mathieu@468 10596 psdir!$psdir$ac_delim
mathieu@468 10597 libdir!$libdir$ac_delim
mathieu@468 10598 localedir!$localedir$ac_delim
mathieu@468 10599 mandir!$mandir$ac_delim
mathieu@468 10600 DEFS!$DEFS$ac_delim
mathieu@468 10601 ECHO_C!$ECHO_C$ac_delim
mathieu@468 10602 ECHO_N!$ECHO_N$ac_delim
mathieu@468 10603 ECHO_T!$ECHO_T$ac_delim
mathieu@468 10604 LIBS!$LIBS$ac_delim
mathieu@468 10605 build_alias!$build_alias$ac_delim
mathieu@468 10606 host_alias!$host_alias$ac_delim
mathieu@468 10607 target_alias!$target_alias$ac_delim
mathieu@468 10608 CC!$CC$ac_delim
mathieu@468 10609 CFLAGS!$CFLAGS$ac_delim
mathieu@468 10610 LDFLAGS!$LDFLAGS$ac_delim
mathieu@468 10611 CPPFLAGS!$CPPFLAGS$ac_delim
mathieu@468 10612 ac_ct_CC!$ac_ct_CC$ac_delim
mathieu@468 10613 EXEEXT!$EXEEXT$ac_delim
mathieu@468 10614 OBJEXT!$OBJEXT$ac_delim
mathieu@468 10615 CXX!$CXX$ac_delim
mathieu@468 10616 CXXFLAGS!$CXXFLAGS$ac_delim
mathieu@468 10617 ac_ct_CXX!$ac_ct_CXX$ac_delim
mathieu@468 10618 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
mathieu@468 10619 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
mathieu@468 10620 INSTALL_DATA!$INSTALL_DATA$ac_delim
mathieu@468 10621 CXXCPP!$CXXCPP$ac_delim
mathieu@468 10622 GREP!$GREP$ac_delim
mathieu@468 10623 EGREP!$EGREP$ac_delim
mathieu@468 10624 QMAKE!$QMAKE$ac_delim
mathieu@468 10625 PERL!$PERL$ac_delim
mathieu@468 10626 XARGS!$XARGS$ac_delim
mathieu@468 10627 MAKEDEPEND!$MAKEDEPEND$ac_delim
mathieu@468 10628 SHA1SUM!$SHA1SUM$ac_delim
mathieu@468 10629 CUT!$CUT$ac_delim
mathieu@468 10630 CXXFLAGS_MINIMAL!$CXXFLAGS_MINIMAL$ac_delim
mathieu@468 10631 HAVES!$HAVES$ac_delim
mathieu@468 10632 QMAKE_CONFIG!$QMAKE_CONFIG$ac_delim
mathieu@468 10633 CODENAME!$CODENAME$ac_delim
mathieu@468 10634 LIBOBJS!$LIBOBJS$ac_delim
mathieu@468 10635 LTLIBOBJS!$LTLIBOBJS$ac_delim
mathieu@468 10636 _ACEOF
mathieu@468 10637
mathieu@480 10638 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 65; then
mathieu@468 10639 break
mathieu@468 10640 elif $ac_last_try; then
mathieu@468 10641 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
mathieu@468 10642 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
mathieu@468 10643 { (exit 1); exit 1; }; }
mathieu@468 10644 else
mathieu@468 10645 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
mathieu@468 10646 fi
mathieu@468 10647 done
mathieu@468 10648
mathieu@468 10649 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
mathieu@468 10650 if test -n "$ac_eof"; then
mathieu@468 10651 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
mathieu@468 10652 ac_eof=`expr $ac_eof + 1`
mathieu@468 10653 fi
mathieu@468 10654
mathieu@468 10655 cat >>$CONFIG_STATUS <<_ACEOF
mathieu@480 10656 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
mathieu@468 10657 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
mathieu@468 10658 _ACEOF
mathieu@468 10659 sed '
mathieu@468 10660 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
mathieu@468 10661 s/^/s,@/; s/!/@,|#_!!_#|/
mathieu@468 10662 :n
mathieu@468 10663 t n
mathieu@468 10664 s/'"$ac_delim"'$/,g/; t
mathieu@468 10665 s/$/\\/; p
mathieu@468 10666 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
mathieu@468 10667 ' >>$CONFIG_STATUS <conf$$subs.sed
mathieu@468 10668 rm -f conf$$subs.sed
mathieu@468 10669 cat >>$CONFIG_STATUS <<_ACEOF
mathieu@468 10670 :end
mathieu@468 10671 s/|#_!!_#|//g
mathieu@468 10672 CEOF$ac_eof
mathieu@468 10673 _ACEOF
mathieu@468 10674
mathieu@468 10675
mathieu@468 10676 # VPATH may cause trouble with some makes, so we remove $(srcdir),
mathieu@468 10677 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
mathieu@468 10678 # trailing colons and then remove the whole line if VPATH becomes empty
mathieu@468 10679 # (actually we leave an empty line to preserve line numbers).
mathieu@468 10680 if test "x$srcdir" = x.; then
mathieu@468 10681 ac_vpsub='/^[ ]*VPATH[ ]*=/{
mathieu@468 10682 s/:*\$(srcdir):*/:/
mathieu@468 10683 s/:*\${srcdir}:*/:/
mathieu@468 10684 s/:*@srcdir@:*/:/
mathieu@468 10685 s/^\([^=]*=[ ]*\):*/\1/
mathieu@468 10686 s/:*$//
mathieu@468 10687 s/^[^=]*=[ ]*$//
mathieu@468 10688 }'
mathieu@468 10689 fi
mathieu@468 10690
mathieu@468 10691 cat >>$CONFIG_STATUS <<\_ACEOF
mathieu@468 10692 fi # test -n "$CONFIG_FILES"
mathieu@468 10693
mathieu@468 10694
mathieu@468 10695 for ac_tag in :F $CONFIG_FILES
mathieu@468 10696 do
mathieu@468 10697 case $ac_tag in
mathieu@468 10698 :[FHLC]) ac_mode=$ac_tag; continue;;
mathieu@468 10699 esac
mathieu@468 10700 case $ac_mode$ac_tag in
mathieu@468 10701 :[FHL]*:*);;
mathieu@468 10702 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
mathieu@468 10703 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
mathieu@468 10704 { (exit 1); exit 1; }; };;
mathieu@468 10705 :[FH]-) ac_tag=-:-;;
mathieu@468 10706 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
mathieu@468 10707 esac
mathieu@468 10708 ac_save_IFS=$IFS
mathieu@468 10709 IFS=:
mathieu@468 10710 set x $ac_tag
mathieu@468 10711 IFS=$ac_save_IFS
mathieu@468 10712 shift
mathieu@468 10713 ac_file=$1
mathieu@468 10714 shift
mathieu@468 10715
mathieu@468 10716 case $ac_mode in
mathieu@468 10717 :L) ac_source=$1;;
mathieu@468 10718 :[FH])
mathieu@468 10719 ac_file_inputs=
mathieu@468 10720 for ac_f
mathieu@468 10721 do
mathieu@468 10722 case $ac_f in
mathieu@468 10723 -) ac_f="$tmp/stdin";;
mathieu@468 10724 *) # Look for the file first in the build tree, then in the source tree
mathieu@468 10725 # (if the path is not absolute). The absolute path cannot be DOS-style,
mathieu@468 10726 # because $ac_f cannot contain `:'.
mathieu@468 10727 test -f "$ac_f" ||
mathieu@468 10728 case $ac_f in
mathieu@468 10729 [\\/$]*) false;;
mathieu@468 10730 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
mathieu@468 10731 esac ||
mathieu@468 10732 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
mathieu@468 10733 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
mathieu@468 10734 { (exit 1); exit 1; }; };;
mathieu@468 10735 esac
mathieu@468 10736 ac_file_inputs="$ac_file_inputs $ac_f"
mathieu@468 10737 done
mathieu@468 10738
mathieu@468 10739 # Let's still pretend it is `configure' which instantiates (i.e., don't
mathieu@468 10740 # use $as_me), people would be surprised to read:
mathieu@468 10741 # /* config.h. Generated by config.status. */
mathieu@468 10742 configure_input="Generated from "`IFS=:
mathieu@468 10743 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
mathieu@468 10744 if test x"$ac_file" != x-; then
mathieu@468 10745 configure_input="$ac_file. $configure_input"
mathieu@468 10746 { echo "$as_me:$LINENO: creating $ac_file" >&5
mathieu@468 10747 echo "$as_me: creating $ac_file" >&6;}
mathieu@468 10748 fi
mathieu@468 10749
mathieu@468 10750 case $ac_tag in
mathieu@468 10751 *:-:* | *:-) cat >"$tmp/stdin";;
mathieu@468 10752 esac
mathieu@468 10753 ;;
mathieu@468 10754 esac
mathieu@468 10755
mathieu@468 10756 ac_dir=`$as_dirname -- "$ac_file" ||
mathieu@468 10757 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mathieu@468 10758 X"$ac_file" : 'X\(//\)[^/]' \| \
mathieu@468 10759 X"$ac_file" : 'X\(//\)$' \| \
mathieu@468 10760 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
mathieu@468 10761 echo X"$ac_file" |
mathieu@468 10762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
mathieu@468 10763 s//\1/
mathieu@468 10764 q
mathieu@468 10765 }
mathieu@468 10766 /^X\(\/\/\)[^/].*/{
mathieu@468 10767 s//\1/
mathieu@468 10768 q
mathieu@468 10769 }
mathieu@468 10770 /^X\(\/\/\)$/{
mathieu@468 10771 s//\1/
mathieu@468 10772 q
mathieu@468 10773 }
mathieu@468 10774 /^X\(\/\).*/{
mathieu@468 10775 s//\1/
mathieu@468 10776 q
mathieu@468 10777 }
mathieu@468 10778 s/.*/./; q'`
mathieu@468 10779 { as_dir="$ac_dir"
Chris@351 10780 case $as_dir in #(
Chris@351 10781 -*) as_dir=./$as_dir;;
Chris@351 10782 esac
mathieu@468 10783 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Chris@351 10784 as_dirs=
Chris@351 10785 while :; do
Chris@351 10786 case $as_dir in #(
mathieu@468 10787 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
Chris@351 10788 *) as_qdir=$as_dir;;
Chris@351 10789 esac
Chris@351 10790 as_dirs="'$as_qdir' $as_dirs"
Chris@351 10791 as_dir=`$as_dirname -- "$as_dir" ||
Chris@351 10792 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@351 10793 X"$as_dir" : 'X\(//\)[^/]' \| \
Chris@351 10794 X"$as_dir" : 'X\(//\)$' \| \
Chris@351 10795 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
mathieu@468 10796 echo X"$as_dir" |
Chris@351 10797 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@351 10798 s//\1/
Chris@351 10799 q
Chris@351 10800 }
Chris@351 10801 /^X\(\/\/\)[^/].*/{
Chris@351 10802 s//\1/
Chris@351 10803 q
Chris@351 10804 }
Chris@351 10805 /^X\(\/\/\)$/{
Chris@351 10806 s//\1/
Chris@351 10807 q
Chris@351 10808 }
Chris@351 10809 /^X\(\/\).*/{
Chris@351 10810 s//\1/
Chris@351 10811 q
Chris@351 10812 }
Chris@351 10813 s/.*/./; q'`
Chris@351 10814 test -d "$as_dir" && break
Chris@351 10815 done
Chris@351 10816 test -z "$as_dirs" || eval "mkdir $as_dirs"
mathieu@468 10817 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
mathieu@468 10818 echo "$as_me: error: cannot create directory $as_dir" >&2;}
mathieu@468 10819 { (exit 1); exit 1; }; }; }
Chris@351 10820 ac_builddir=.
Chris@351 10821
Chris@351 10822 case "$ac_dir" in
Chris@351 10823 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@351 10824 *)
mathieu@468 10825 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Chris@351 10826 # A ".." for each directory in $ac_dir_suffix.
mathieu@468 10827 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Chris@351 10828 case $ac_top_builddir_sub in
Chris@351 10829 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@351 10830 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
Chris@351 10831 esac ;;
Chris@351 10832 esac
Chris@351 10833 ac_abs_top_builddir=$ac_pwd
Chris@351 10834 ac_abs_builddir=$ac_pwd$ac_dir_suffix
Chris@351 10835 # for backward compatibility:
Chris@351 10836 ac_top_builddir=$ac_top_build_prefix
Chris@351 10837
Chris@351 10838 case $srcdir in
Chris@351 10839 .) # We are building in place.
Chris@351 10840 ac_srcdir=.
Chris@351 10841 ac_top_srcdir=$ac_top_builddir_sub
Chris@351 10842 ac_abs_top_srcdir=$ac_pwd ;;
Chris@351 10843 [\\/]* | ?:[\\/]* ) # Absolute name.
Chris@351 10844 ac_srcdir=$srcdir$ac_dir_suffix;
Chris@351 10845 ac_top_srcdir=$srcdir
Chris@351 10846 ac_abs_top_srcdir=$srcdir ;;
Chris@351 10847 *) # Relative name.
Chris@351 10848 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
Chris@351 10849 ac_top_srcdir=$ac_top_build_prefix$srcdir
Chris@351 10850 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Chris@351 10851 esac
Chris@351 10852 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Chris@351 10853
Chris@351 10854
Chris@351 10855 case $ac_mode in
Chris@351 10856 :F)
Chris@351 10857 #
Chris@351 10858 # CONFIG_FILE
Chris@351 10859 #
Chris@351 10860
Chris@351 10861 case $INSTALL in
Chris@351 10862 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Chris@351 10863 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Chris@351 10864 esac
Chris@351 10865 ac_MKDIR_P=$MKDIR_P
Chris@351 10866 case $MKDIR_P in
Chris@351 10867 [\\/$]* | ?:[\\/]* ) ;;
Chris@351 10868 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
Chris@351 10869 esac
Chris@351 10870 _ACEOF
Chris@351 10871
mathieu@468 10872 cat >>$CONFIG_STATUS <<\_ACEOF
Chris@351 10873 # If the template does not know about datarootdir, expand it.
Chris@351 10874 # FIXME: This hack should be removed a few years after 2.60.
Chris@351 10875 ac_datarootdir_hack=; ac_datarootdir_seen=
mathieu@468 10876
mathieu@468 10877 case `sed -n '/datarootdir/ {
Chris@351 10878 p
Chris@351 10879 q
Chris@351 10880 }
Chris@351 10881 /@datadir@/p
Chris@351 10882 /@docdir@/p
Chris@351 10883 /@infodir@/p
Chris@351 10884 /@localedir@/p
mathieu@468 10885 /@mandir@/p
mathieu@468 10886 ' $ac_file_inputs` in
Chris@351 10887 *datarootdir*) ac_datarootdir_seen=yes;;
Chris@351 10888 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
mathieu@468 10889 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
mathieu@468 10890 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
mathieu@468 10891 _ACEOF
mathieu@468 10892 cat >>$CONFIG_STATUS <<_ACEOF
Chris@351 10893 ac_datarootdir_hack='
Chris@351 10894 s&@datadir@&$datadir&g
Chris@351 10895 s&@docdir@&$docdir&g
Chris@351 10896 s&@infodir@&$infodir&g
Chris@351 10897 s&@localedir@&$localedir&g
Chris@351 10898 s&@mandir@&$mandir&g
mathieu@468 10899 s&\\\${datarootdir}&$datarootdir&g' ;;
Chris@351 10900 esac
Chris@351 10901 _ACEOF
Chris@351 10902
Chris@351 10903 # Neutralize VPATH when `$srcdir' = `.'.
Chris@351 10904 # Shell code in configure.ac might set extrasub.
Chris@351 10905 # FIXME: do we really want to maintain this feature?
mathieu@468 10906 cat >>$CONFIG_STATUS <<_ACEOF
mathieu@468 10907 sed "$ac_vpsub
Chris@351 10908 $extrasub
Chris@351 10909 _ACEOF
mathieu@468 10910 cat >>$CONFIG_STATUS <<\_ACEOF
Chris@351 10911 :t
Chris@351 10912 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
mathieu@468 10913 s&@configure_input@&$configure_input&;t t
Chris@351 10914 s&@top_builddir@&$ac_top_builddir_sub&;t t
Chris@351 10915 s&@srcdir@&$ac_srcdir&;t t
Chris@351 10916 s&@abs_srcdir@&$ac_abs_srcdir&;t t
Chris@351 10917 s&@top_srcdir@&$ac_top_srcdir&;t t
Chris@351 10918 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
Chris@351 10919 s&@builddir@&$ac_builddir&;t t
Chris@351 10920 s&@abs_builddir@&$ac_abs_builddir&;t t
Chris@351 10921 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
Chris@351 10922 s&@INSTALL@&$ac_INSTALL&;t t
Chris@351 10923 s&@MKDIR_P@&$ac_MKDIR_P&;t t
Chris@351 10924 $ac_datarootdir_hack
mathieu@480 10925 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
Chris@351 10926
Chris@351 10927 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Chris@475 10928 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
Chris@475 10929 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
mathieu@468 10930 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
mathieu@468 10931 which seems to be undefined. Please make sure it is defined." >&5
mathieu@468 10932 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
mathieu@468 10933 which seems to be undefined. Please make sure it is defined." >&2;}
Chris@351 10934
Chris@475 10935 rm -f "$tmp/stdin"
Chris@351 10936 case $ac_file in
mathieu@468 10937 -) cat "$tmp/out"; rm -f "$tmp/out";;
mathieu@468 10938 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
mathieu@468 10939 esac
Chris@351 10940 ;;
Chris@351 10941
Chris@351 10942
Chris@351 10943
Chris@351 10944 esac
Chris@351 10945
Chris@351 10946 done # for ac_tag
Chris@351 10947
Chris@351 10948
mathieu@468 10949 { (exit 0); exit 0; }
mathieu@468 10950 _ACEOF
mathieu@468 10951 chmod +x $CONFIG_STATUS
Chris@351 10952 ac_clean_files=$ac_clean_files_save
Chris@351 10953
Chris@351 10954
Chris@351 10955 # configure is writing to config.log, and then calls config.status.
Chris@351 10956 # config.status does its own redirection, appending to config.log.
Chris@351 10957 # Unfortunately, on DOS this fails, as config.log is still kept open
Chris@351 10958 # by configure, so config.status won't be able to write to it; its
Chris@351 10959 # output is simply discarded. So we exec the FD to /dev/null,
Chris@351 10960 # effectively closing config.log, so it can be properly (re)opened and
Chris@351 10961 # appended to by config.status. When coming back to configure, we
Chris@351 10962 # need to make the FD available again.
Chris@351 10963 if test "$no_create" != yes; then
Chris@351 10964 ac_cs_success=:
Chris@351 10965 ac_config_status_args=
Chris@351 10966 test "$silent" = yes &&
Chris@351 10967 ac_config_status_args="$ac_config_status_args --quiet"
Chris@351 10968 exec 5>/dev/null
Chris@351 10969 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Chris@351 10970 exec 5>>config.log
Chris@351 10971 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
Chris@351 10972 # would make configure fail if this is the last instruction.
mathieu@468 10973 $ac_cs_success || { (exit 1); exit 1; }
Chris@351 10974 fi
Chris@351 10975
Chris@350 10976
Chris@350 10977 if ! $QMAKE -r; then
mathieu@468 10978 { { echo "$as_me:$LINENO: error: qmake failed: Command was \"$QMAKE -r\"" >&5
mathieu@468 10979 echo "$as_me: error: qmake failed: Command was \"$QMAKE -r\"" >&2;}
mathieu@468 10980 { (exit 1); exit 1; }; }
mathieu@468 10981 fi
mathieu@468 10982
mathieu@468 10983 { echo "$as_me:$LINENO:
Chris@350 10984
Chris@350 10985 Configuration complete.
Chris@350 10986 Please check the above messages for any warnings that you
Chris@350 10987 might care about, and then run \"make\".
Chris@350 10988
Chris@350 10989 The file config.pri contains the configuration settings for
Chris@350 10990 qmake. If you want to adjust these by hand, edit config.pri
Chris@350 10991 and run \"qmake -r\" again to regenerate the Makefile.
Chris@350 10992 " >&5
mathieu@468 10993 echo "$as_me:
Chris@350 10994
Chris@350 10995 Configuration complete.
Chris@350 10996 Please check the above messages for any warnings that you
Chris@350 10997 might care about, and then run \"make\".
Chris@350 10998
Chris@350 10999 The file config.pri contains the configuration settings for
Chris@350 11000 qmake. If you want to adjust these by hand, edit config.pri
Chris@350 11001 and run \"qmake -r\" again to regenerate the Makefile.
Chris@350 11002 " >&6;}