annotate configure @ 477:f474ada02444 integration_library

Change to sonic-visualiser.pro (win32 compilation)
author mathieub <mathieu.barthet@eecs.qmul.ac.uk>
date Mon, 10 Oct 2011 19:52:06 +0100
parents 91eeab6c70a3
children afc6b5453fb9
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 PKG_CONFIG
mathieu@468 672 PKG_CONFIG_PATH
mathieu@468 673 PKG_CONFIG_LIBDIR
mathieu@468 674 QMAKE
mathieu@468 675 bz2_CFLAGS
mathieu@468 676 bz2_LIBS
mathieu@468 677 fftw3_CFLAGS
mathieu@468 678 fftw3_LIBS
mathieu@468 679 fftw3f_CFLAGS
mathieu@468 680 fftw3f_LIBS
mathieu@468 681 sndfile_CFLAGS
mathieu@468 682 sndfile_LIBS
mathieu@468 683 samplerate_CFLAGS
mathieu@468 684 samplerate_LIBS
mathieu@468 685 vamp_CFLAGS
mathieu@468 686 vamp_LIBS
mathieu@468 687 vamphostsdk_CFLAGS
mathieu@468 688 vamphostsdk_LIBS
mathieu@468 689 rubberband_CFLAGS
mathieu@468 690 rubberband_LIBS
mathieu@468 691 raptor_CFLAGS
mathieu@468 692 raptor_LIBS
mathieu@468 693 rasqal_CFLAGS
mathieu@468 694 rasqal_LIBS
mathieu@468 695 redland_CFLAGS
mathieu@468 696 redland_LIBS
mathieu@468 697 liblo_CFLAGS
mathieu@468 698 liblo_LIBS
mathieu@468 699 portaudio_2_0_CFLAGS
mathieu@468 700 portaudio_2_0_LIBS
mathieu@468 701 JACK_CFLAGS
mathieu@468 702 JACK_LIBS
mathieu@468 703 libpulse_CFLAGS
mathieu@468 704 libpulse_LIBS
mathieu@468 705 lrdf_CFLAGS
mathieu@468 706 lrdf_LIBS
mathieu@468 707 oggz_CFLAGS
mathieu@468 708 oggz_LIBS
mathieu@468 709 fishsound_CFLAGS
mathieu@468 710 fishsound_LIBS
mathieu@468 711 mad_CFLAGS
mathieu@468 712 mad_LIBS
mathieu@468 713 id3tag_CFLAGS
mathieu@468 714 id3tag_LIBS
mathieu@468 715 PERL
mathieu@468 716 XARGS
mathieu@468 717 MAKEDEPEND
mathieu@468 718 SHA1SUM
mathieu@468 719 CUT
mathieu@468 720 CXXFLAGS_MINIMAL
mathieu@468 721 HAVES
mathieu@468 722 QMAKE_CONFIG
mathieu@468 723 CODENAME
Chris@350 724 LIBOBJS
mathieu@468 725 LTLIBOBJS'
Chris@350 726 ac_subst_files=''
Chris@350 727 ac_precious_vars='build_alias
Chris@350 728 host_alias
Chris@350 729 target_alias
Chris@350 730 CC
Chris@350 731 CFLAGS
Chris@350 732 LDFLAGS
Chris@350 733 LIBS
Chris@350 734 CPPFLAGS
Chris@350 735 CXX
Chris@350 736 CXXFLAGS
Chris@350 737 CCC
Chris@350 738 CXXCPP
Chris@350 739 PKG_CONFIG
Chris@457 740 PKG_CONFIG_PATH
Chris@457 741 PKG_CONFIG_LIBDIR
Chris@350 742 bz2_CFLAGS
Chris@350 743 bz2_LIBS
Chris@350 744 fftw3_CFLAGS
Chris@350 745 fftw3_LIBS
Chris@350 746 fftw3f_CFLAGS
Chris@350 747 fftw3f_LIBS
Chris@350 748 sndfile_CFLAGS
Chris@350 749 sndfile_LIBS
Chris@350 750 samplerate_CFLAGS
Chris@350 751 samplerate_LIBS
Chris@350 752 vamp_CFLAGS
Chris@350 753 vamp_LIBS
Chris@350 754 vamphostsdk_CFLAGS
Chris@350 755 vamphostsdk_LIBS
Chris@350 756 rubberband_CFLAGS
Chris@350 757 rubberband_LIBS
Chris@350 758 raptor_CFLAGS
Chris@350 759 raptor_LIBS
Chris@350 760 rasqal_CFLAGS
Chris@350 761 rasqal_LIBS
Chris@350 762 redland_CFLAGS
Chris@350 763 redland_LIBS
Chris@350 764 liblo_CFLAGS
Chris@350 765 liblo_LIBS
Chris@358 766 portaudio_2_0_CFLAGS
Chris@358 767 portaudio_2_0_LIBS
Chris@350 768 JACK_CFLAGS
Chris@350 769 JACK_LIBS
Chris@350 770 libpulse_CFLAGS
Chris@350 771 libpulse_LIBS
Chris@350 772 lrdf_CFLAGS
Chris@350 773 lrdf_LIBS
Chris@350 774 oggz_CFLAGS
Chris@350 775 oggz_LIBS
Chris@350 776 fishsound_CFLAGS
Chris@350 777 fishsound_LIBS
Chris@350 778 mad_CFLAGS
Chris@350 779 mad_LIBS
Chris@350 780 id3tag_CFLAGS
Chris@350 781 id3tag_LIBS'
Chris@350 782
Chris@350 783
Chris@350 784 # Initialize some variables set by options.
Chris@350 785 ac_init_help=
Chris@350 786 ac_init_version=false
Chris@350 787 # The variables have the same names as the options, with
Chris@350 788 # dashes changed to underlines.
Chris@350 789 cache_file=/dev/null
Chris@350 790 exec_prefix=NONE
Chris@350 791 no_create=
Chris@350 792 no_recursion=
Chris@350 793 prefix=NONE
Chris@350 794 program_prefix=NONE
Chris@350 795 program_suffix=NONE
Chris@350 796 program_transform_name=s,x,x,
Chris@350 797 silent=
Chris@350 798 site=
Chris@350 799 srcdir=
Chris@350 800 verbose=
Chris@350 801 x_includes=NONE
Chris@350 802 x_libraries=NONE
Chris@350 803
Chris@350 804 # Installation directory options.
Chris@350 805 # These are left unexpanded so users can "make install exec_prefix=/foo"
Chris@350 806 # and all the variables that are supposed to be based on exec_prefix
Chris@350 807 # by default will actually change.
Chris@350 808 # Use braces instead of parens because sh, perl, etc. also accept them.
Chris@350 809 # (The list follows the same order as the GNU Coding Standards.)
Chris@350 810 bindir='${exec_prefix}/bin'
Chris@350 811 sbindir='${exec_prefix}/sbin'
Chris@350 812 libexecdir='${exec_prefix}/libexec'
Chris@350 813 datarootdir='${prefix}/share'
Chris@350 814 datadir='${datarootdir}'
Chris@350 815 sysconfdir='${prefix}/etc'
Chris@350 816 sharedstatedir='${prefix}/com'
Chris@350 817 localstatedir='${prefix}/var'
Chris@350 818 includedir='${prefix}/include'
Chris@350 819 oldincludedir='/usr/include'
Chris@350 820 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
Chris@350 821 infodir='${datarootdir}/info'
Chris@350 822 htmldir='${docdir}'
Chris@350 823 dvidir='${docdir}'
Chris@350 824 pdfdir='${docdir}'
Chris@350 825 psdir='${docdir}'
Chris@350 826 libdir='${exec_prefix}/lib'
Chris@350 827 localedir='${datarootdir}/locale'
Chris@350 828 mandir='${datarootdir}/man'
Chris@350 829
Chris@350 830 ac_prev=
Chris@350 831 ac_dashdash=
Chris@350 832 for ac_option
Chris@350 833 do
Chris@350 834 # If the previous option needs an argument, assign it.
Chris@350 835 if test -n "$ac_prev"; then
Chris@350 836 eval $ac_prev=\$ac_option
Chris@350 837 ac_prev=
Chris@350 838 continue
Chris@350 839 fi
Chris@350 840
Chris@350 841 case $ac_option in
mathieu@468 842 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
mathieu@468 843 *) ac_optarg=yes ;;
Chris@350 844 esac
Chris@350 845
Chris@350 846 # Accept the important Cygnus configure options, so we can diagnose typos.
Chris@350 847
Chris@350 848 case $ac_dashdash$ac_option in
Chris@350 849 --)
Chris@350 850 ac_dashdash=yes ;;
Chris@350 851
Chris@350 852 -bindir | --bindir | --bindi | --bind | --bin | --bi)
Chris@350 853 ac_prev=bindir ;;
Chris@350 854 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Chris@350 855 bindir=$ac_optarg ;;
Chris@350 856
Chris@350 857 -build | --build | --buil | --bui | --bu)
Chris@350 858 ac_prev=build_alias ;;
Chris@350 859 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Chris@350 860 build_alias=$ac_optarg ;;
Chris@350 861
Chris@350 862 -cache-file | --cache-file | --cache-fil | --cache-fi \
Chris@350 863 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
Chris@350 864 ac_prev=cache_file ;;
Chris@350 865 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
Chris@350 866 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Chris@350 867 cache_file=$ac_optarg ;;
Chris@350 868
Chris@350 869 --config-cache | -C)
Chris@350 870 cache_file=config.cache ;;
Chris@350 871
Chris@350 872 -datadir | --datadir | --datadi | --datad)
Chris@350 873 ac_prev=datadir ;;
Chris@350 874 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Chris@350 875 datadir=$ac_optarg ;;
Chris@350 876
Chris@350 877 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
Chris@350 878 | --dataroo | --dataro | --datar)
Chris@350 879 ac_prev=datarootdir ;;
Chris@350 880 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
Chris@350 881 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
Chris@350 882 datarootdir=$ac_optarg ;;
Chris@350 883
Chris@350 884 -disable-* | --disable-*)
mathieu@468 885 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Chris@350 886 # Reject names that are not valid shell variable names.
mathieu@468 887 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
mathieu@468 888 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
mathieu@468 889 { (exit 1); exit 1; }; }
mathieu@468 890 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
mathieu@468 891 eval enable_$ac_feature=no ;;
Chris@350 892
Chris@350 893 -docdir | --docdir | --docdi | --doc | --do)
Chris@350 894 ac_prev=docdir ;;
Chris@350 895 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
Chris@350 896 docdir=$ac_optarg ;;
Chris@350 897
Chris@350 898 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
Chris@350 899 ac_prev=dvidir ;;
Chris@350 900 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
Chris@350 901 dvidir=$ac_optarg ;;
Chris@350 902
Chris@350 903 -enable-* | --enable-*)
mathieu@468 904 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Chris@350 905 # Reject names that are not valid shell variable names.
mathieu@468 906 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
mathieu@468 907 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
mathieu@468 908 { (exit 1); exit 1; }; }
mathieu@468 909 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
mathieu@468 910 eval enable_$ac_feature=\$ac_optarg ;;
Chris@350 911
Chris@350 912 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
Chris@350 913 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
Chris@350 914 | --exec | --exe | --ex)
Chris@350 915 ac_prev=exec_prefix ;;
Chris@350 916 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
Chris@350 917 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
Chris@350 918 | --exec=* | --exe=* | --ex=*)
Chris@350 919 exec_prefix=$ac_optarg ;;
Chris@350 920
Chris@350 921 -gas | --gas | --ga | --g)
Chris@350 922 # Obsolete; use --with-gas.
Chris@350 923 with_gas=yes ;;
Chris@350 924
Chris@350 925 -help | --help | --hel | --he | -h)
Chris@350 926 ac_init_help=long ;;
Chris@350 927 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
Chris@350 928 ac_init_help=recursive ;;
Chris@350 929 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
Chris@350 930 ac_init_help=short ;;
Chris@350 931
Chris@350 932 -host | --host | --hos | --ho)
Chris@350 933 ac_prev=host_alias ;;
Chris@350 934 -host=* | --host=* | --hos=* | --ho=*)
Chris@350 935 host_alias=$ac_optarg ;;
Chris@350 936
Chris@350 937 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
Chris@350 938 ac_prev=htmldir ;;
Chris@350 939 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
Chris@350 940 | --ht=*)
Chris@350 941 htmldir=$ac_optarg ;;
Chris@350 942
Chris@350 943 -includedir | --includedir | --includedi | --included | --include \
Chris@350 944 | --includ | --inclu | --incl | --inc)
Chris@350 945 ac_prev=includedir ;;
Chris@350 946 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
Chris@350 947 | --includ=* | --inclu=* | --incl=* | --inc=*)
Chris@350 948 includedir=$ac_optarg ;;
Chris@350 949
Chris@350 950 -infodir | --infodir | --infodi | --infod | --info | --inf)
Chris@350 951 ac_prev=infodir ;;
Chris@350 952 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Chris@350 953 infodir=$ac_optarg ;;
Chris@350 954
Chris@350 955 -libdir | --libdir | --libdi | --libd)
Chris@350 956 ac_prev=libdir ;;
Chris@350 957 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Chris@350 958 libdir=$ac_optarg ;;
Chris@350 959
Chris@350 960 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
Chris@350 961 | --libexe | --libex | --libe)
Chris@350 962 ac_prev=libexecdir ;;
Chris@350 963 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
Chris@350 964 | --libexe=* | --libex=* | --libe=*)
Chris@350 965 libexecdir=$ac_optarg ;;
Chris@350 966
Chris@350 967 -localedir | --localedir | --localedi | --localed | --locale)
Chris@350 968 ac_prev=localedir ;;
Chris@350 969 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
Chris@350 970 localedir=$ac_optarg ;;
Chris@350 971
Chris@350 972 -localstatedir | --localstatedir | --localstatedi | --localstated \
Chris@350 973 | --localstate | --localstat | --localsta | --localst | --locals)
Chris@350 974 ac_prev=localstatedir ;;
Chris@350 975 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Chris@350 976 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Chris@350 977 localstatedir=$ac_optarg ;;
Chris@350 978
Chris@350 979 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
Chris@350 980 ac_prev=mandir ;;
Chris@350 981 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Chris@350 982 mandir=$ac_optarg ;;
Chris@350 983
Chris@350 984 -nfp | --nfp | --nf)
Chris@350 985 # Obsolete; use --without-fp.
Chris@350 986 with_fp=no ;;
Chris@350 987
Chris@350 988 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Chris@350 989 | --no-cr | --no-c | -n)
Chris@350 990 no_create=yes ;;
Chris@350 991
Chris@350 992 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
Chris@350 993 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
Chris@350 994 no_recursion=yes ;;
Chris@350 995
Chris@350 996 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
Chris@350 997 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
Chris@350 998 | --oldin | --oldi | --old | --ol | --o)
Chris@350 999 ac_prev=oldincludedir ;;
Chris@350 1000 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
Chris@350 1001 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
Chris@350 1002 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Chris@350 1003 oldincludedir=$ac_optarg ;;
Chris@350 1004
Chris@350 1005 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
Chris@350 1006 ac_prev=prefix ;;
Chris@350 1007 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Chris@350 1008 prefix=$ac_optarg ;;
Chris@350 1009
Chris@350 1010 -program-prefix | --program-prefix | --program-prefi | --program-pref \
Chris@350 1011 | --program-pre | --program-pr | --program-p)
Chris@350 1012 ac_prev=program_prefix ;;
Chris@350 1013 -program-prefix=* | --program-prefix=* | --program-prefi=* \
Chris@350 1014 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Chris@350 1015 program_prefix=$ac_optarg ;;
Chris@350 1016
Chris@350 1017 -program-suffix | --program-suffix | --program-suffi | --program-suff \
Chris@350 1018 | --program-suf | --program-su | --program-s)
Chris@350 1019 ac_prev=program_suffix ;;
Chris@350 1020 -program-suffix=* | --program-suffix=* | --program-suffi=* \
Chris@350 1021 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Chris@350 1022 program_suffix=$ac_optarg ;;
Chris@350 1023
Chris@350 1024 -program-transform-name | --program-transform-name \
Chris@350 1025 | --program-transform-nam | --program-transform-na \
Chris@350 1026 | --program-transform-n | --program-transform- \
Chris@350 1027 | --program-transform | --program-transfor \
Chris@350 1028 | --program-transfo | --program-transf \
Chris@350 1029 | --program-trans | --program-tran \
Chris@350 1030 | --progr-tra | --program-tr | --program-t)
Chris@350 1031 ac_prev=program_transform_name ;;
Chris@350 1032 -program-transform-name=* | --program-transform-name=* \
Chris@350 1033 | --program-transform-nam=* | --program-transform-na=* \
Chris@350 1034 | --program-transform-n=* | --program-transform-=* \
Chris@350 1035 | --program-transform=* | --program-transfor=* \
Chris@350 1036 | --program-transfo=* | --program-transf=* \
Chris@350 1037 | --program-trans=* | --program-tran=* \
Chris@350 1038 | --progr-tra=* | --program-tr=* | --program-t=*)
Chris@350 1039 program_transform_name=$ac_optarg ;;
Chris@350 1040
Chris@350 1041 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
Chris@350 1042 ac_prev=pdfdir ;;
Chris@350 1043 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
Chris@350 1044 pdfdir=$ac_optarg ;;
Chris@350 1045
Chris@350 1046 -psdir | --psdir | --psdi | --psd | --ps)
Chris@350 1047 ac_prev=psdir ;;
Chris@350 1048 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
Chris@350 1049 psdir=$ac_optarg ;;
Chris@350 1050
Chris@350 1051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@350 1052 | -silent | --silent | --silen | --sile | --sil)
Chris@350 1053 silent=yes ;;
Chris@350 1054
Chris@350 1055 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
Chris@350 1056 ac_prev=sbindir ;;
Chris@350 1057 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
Chris@350 1058 | --sbi=* | --sb=*)
Chris@350 1059 sbindir=$ac_optarg ;;
Chris@350 1060
Chris@350 1061 -sharedstatedir | --sharedstatedir | --sharedstatedi \
Chris@350 1062 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
Chris@350 1063 | --sharedst | --shareds | --shared | --share | --shar \
Chris@350 1064 | --sha | --sh)
Chris@350 1065 ac_prev=sharedstatedir ;;
Chris@350 1066 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
Chris@350 1067 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
Chris@350 1068 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
Chris@350 1069 | --sha=* | --sh=*)
Chris@350 1070 sharedstatedir=$ac_optarg ;;
Chris@350 1071
Chris@350 1072 -site | --site | --sit)
Chris@350 1073 ac_prev=site ;;
Chris@350 1074 -site=* | --site=* | --sit=*)
Chris@350 1075 site=$ac_optarg ;;
Chris@350 1076
Chris@350 1077 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
Chris@350 1078 ac_prev=srcdir ;;
Chris@350 1079 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Chris@350 1080 srcdir=$ac_optarg ;;
Chris@350 1081
Chris@350 1082 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
Chris@350 1083 | --syscon | --sysco | --sysc | --sys | --sy)
Chris@350 1084 ac_prev=sysconfdir ;;
Chris@350 1085 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
Chris@350 1086 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Chris@350 1087 sysconfdir=$ac_optarg ;;
Chris@350 1088
Chris@350 1089 -target | --target | --targe | --targ | --tar | --ta | --t)
Chris@350 1090 ac_prev=target_alias ;;
Chris@350 1091 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Chris@350 1092 target_alias=$ac_optarg ;;
Chris@350 1093
Chris@350 1094 -v | -verbose | --verbose | --verbos | --verbo | --verb)
Chris@350 1095 verbose=yes ;;
Chris@350 1096
Chris@350 1097 -version | --version | --versio | --versi | --vers | -V)
Chris@350 1098 ac_init_version=: ;;
Chris@350 1099
Chris@350 1100 -with-* | --with-*)
mathieu@468 1101 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Chris@350 1102 # Reject names that are not valid shell variable names.
mathieu@468 1103 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
mathieu@468 1104 { echo "$as_me: error: invalid package name: $ac_package" >&2
mathieu@468 1105 { (exit 1); exit 1; }; }
mathieu@468 1106 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
mathieu@468 1107 eval with_$ac_package=\$ac_optarg ;;
Chris@350 1108
Chris@350 1109 -without-* | --without-*)
mathieu@468 1110 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Chris@350 1111 # Reject names that are not valid shell variable names.
mathieu@468 1112 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
mathieu@468 1113 { echo "$as_me: error: invalid package name: $ac_package" >&2
mathieu@468 1114 { (exit 1); exit 1; }; }
mathieu@468 1115 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
mathieu@468 1116 eval with_$ac_package=no ;;
Chris@350 1117
Chris@350 1118 --x)
Chris@350 1119 # Obsolete; use --with-x.
Chris@350 1120 with_x=yes ;;
Chris@350 1121
Chris@350 1122 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
Chris@350 1123 | --x-incl | --x-inc | --x-in | --x-i)
Chris@350 1124 ac_prev=x_includes ;;
Chris@350 1125 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
Chris@350 1126 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Chris@350 1127 x_includes=$ac_optarg ;;
Chris@350 1128
Chris@350 1129 -x-libraries | --x-libraries | --x-librarie | --x-librari \
Chris@350 1130 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
Chris@350 1131 ac_prev=x_libraries ;;
Chris@350 1132 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
Chris@350 1133 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Chris@350 1134 x_libraries=$ac_optarg ;;
Chris@350 1135
mathieu@468 1136 -*) { echo "$as_me: error: unrecognized option: $ac_option
mathieu@468 1137 Try \`$0 --help' for more information." >&2
mathieu@468 1138 { (exit 1); exit 1; }; }
Chris@350 1139 ;;
Chris@350 1140
Chris@350 1141 *=*)
Chris@350 1142 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
Chris@350 1143 # Reject names that are not valid shell variable names.
mathieu@468 1144 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
mathieu@468 1145 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
mathieu@468 1146 { (exit 1); exit 1; }; }
Chris@350 1147 eval $ac_envvar=\$ac_optarg
Chris@350 1148 export $ac_envvar ;;
Chris@350 1149
Chris@350 1150 *)
Chris@350 1151 # FIXME: should be removed in autoconf 3.0.
mathieu@468 1152 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Chris@350 1153 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
mathieu@468 1154 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Chris@350 1155 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Chris@350 1156 ;;
Chris@350 1157
Chris@350 1158 esac
Chris@350 1159 done
Chris@350 1160
Chris@350 1161 if test -n "$ac_prev"; then
Chris@350 1162 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
mathieu@468 1163 { echo "$as_me: error: missing argument to $ac_option" >&2
mathieu@468 1164 { (exit 1); exit 1; }; }
mathieu@468 1165 fi
mathieu@468 1166
mathieu@468 1167 # Be sure to have absolute directory names.
Chris@350 1168 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
Chris@350 1169 datadir sysconfdir sharedstatedir localstatedir includedir \
Chris@350 1170 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Chris@350 1171 libdir localedir mandir
Chris@350 1172 do
Chris@350 1173 eval ac_val=\$$ac_var
Chris@350 1174 case $ac_val in
Chris@350 1175 [\\/$]* | ?:[\\/]* ) continue;;
Chris@350 1176 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Chris@350 1177 esac
mathieu@468 1178 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
mathieu@468 1179 { (exit 1); exit 1; }; }
Chris@350 1180 done
Chris@350 1181
Chris@350 1182 # There might be people who depend on the old broken behavior: `$host'
Chris@350 1183 # used to hold the argument of --host etc.
Chris@350 1184 # FIXME: To remove some day.
Chris@350 1185 build=$build_alias
Chris@350 1186 host=$host_alias
Chris@350 1187 target=$target_alias
Chris@350 1188
Chris@350 1189 # FIXME: To remove some day.
Chris@350 1190 if test "x$host_alias" != x; then
Chris@350 1191 if test "x$build_alias" = x; then
Chris@350 1192 cross_compiling=maybe
mathieu@468 1193 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
mathieu@468 1194 If a cross compiler is detected then cross compile mode will be used." >&2
Chris@350 1195 elif test "x$build_alias" != "x$host_alias"; then
Chris@350 1196 cross_compiling=yes
Chris@350 1197 fi
Chris@350 1198 fi
Chris@350 1199
Chris@350 1200 ac_tool_prefix=
Chris@350 1201 test -n "$host_alias" && ac_tool_prefix=$host_alias-
Chris@350 1202
Chris@350 1203 test "$silent" = yes && exec 6>/dev/null
Chris@350 1204
Chris@350 1205
Chris@350 1206 ac_pwd=`pwd` && test -n "$ac_pwd" &&
Chris@350 1207 ac_ls_di=`ls -di .` &&
Chris@350 1208 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
mathieu@468 1209 { echo "$as_me: error: Working directory cannot be determined" >&2
mathieu@468 1210 { (exit 1); exit 1; }; }
Chris@350 1211 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
mathieu@468 1212 { echo "$as_me: error: pwd does not report name of working directory" >&2
mathieu@468 1213 { (exit 1); exit 1; }; }
Chris@350 1214
Chris@350 1215
Chris@350 1216 # Find the source files, if location was not specified.
Chris@350 1217 if test -z "$srcdir"; then
Chris@350 1218 ac_srcdir_defaulted=yes
Chris@350 1219 # Try the directory containing this script, then the parent directory.
mathieu@468 1220 ac_confdir=`$as_dirname -- "$0" ||
mathieu@468 1221 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mathieu@468 1222 X"$0" : 'X\(//\)[^/]' \| \
mathieu@468 1223 X"$0" : 'X\(//\)$' \| \
mathieu@468 1224 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
mathieu@468 1225 echo X"$0" |
Chris@350 1226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@350 1227 s//\1/
Chris@350 1228 q
Chris@350 1229 }
Chris@350 1230 /^X\(\/\/\)[^/].*/{
Chris@350 1231 s//\1/
Chris@350 1232 q
Chris@350 1233 }
Chris@350 1234 /^X\(\/\/\)$/{
Chris@350 1235 s//\1/
Chris@350 1236 q
Chris@350 1237 }
Chris@350 1238 /^X\(\/\).*/{
Chris@350 1239 s//\1/
Chris@350 1240 q
Chris@350 1241 }
Chris@350 1242 s/.*/./; q'`
Chris@350 1243 srcdir=$ac_confdir
Chris@350 1244 if test ! -r "$srcdir/$ac_unique_file"; then
Chris@350 1245 srcdir=..
Chris@350 1246 fi
Chris@350 1247 else
Chris@350 1248 ac_srcdir_defaulted=no
Chris@350 1249 fi
Chris@350 1250 if test ! -r "$srcdir/$ac_unique_file"; then
Chris@350 1251 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
mathieu@468 1252 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
mathieu@468 1253 { (exit 1); exit 1; }; }
Chris@350 1254 fi
Chris@350 1255 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
Chris@350 1256 ac_abs_confdir=`(
mathieu@468 1257 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
mathieu@468 1258 { (exit 1); exit 1; }; }
Chris@350 1259 pwd)`
Chris@350 1260 # When building in place, set srcdir=.
Chris@350 1261 if test "$ac_abs_confdir" = "$ac_pwd"; then
Chris@350 1262 srcdir=.
Chris@350 1263 fi
Chris@350 1264 # Remove unnecessary trailing slashes from srcdir.
Chris@350 1265 # Double slashes in file names in object file debugging info
Chris@350 1266 # mess up M-x gdb in Emacs.
Chris@350 1267 case $srcdir in
Chris@350 1268 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
Chris@350 1269 esac
Chris@350 1270 for ac_var in $ac_precious_vars; do
Chris@350 1271 eval ac_env_${ac_var}_set=\${${ac_var}+set}
Chris@350 1272 eval ac_env_${ac_var}_value=\$${ac_var}
Chris@350 1273 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
Chris@350 1274 eval ac_cv_env_${ac_var}_value=\$${ac_var}
Chris@350 1275 done
Chris@350 1276
Chris@350 1277 #
Chris@350 1278 # Report the --help message.
Chris@350 1279 #
Chris@350 1280 if test "$ac_init_help" = "long"; then
Chris@350 1281 # Omit some internal or obsolete options to make the list less imposing.
Chris@350 1282 # This message is too long to be a string in the A/UX 3.1 sh.
Chris@350 1283 cat <<_ACEOF
mathieu@468 1284 \`configure' configures Sonic Visualiser 1.9-kiosk-hg to adapt to many kinds of systems.
Chris@350 1285
Chris@350 1286 Usage: $0 [OPTION]... [VAR=VALUE]...
Chris@350 1287
Chris@350 1288 To assign environment variables (e.g., CC, CFLAGS...), specify them as
Chris@350 1289 VAR=VALUE. See below for descriptions of some of the useful variables.
Chris@350 1290
Chris@350 1291 Defaults for the options are specified in brackets.
Chris@350 1292
Chris@350 1293 Configuration:
Chris@350 1294 -h, --help display this help and exit
Chris@350 1295 --help=short display options specific to this package
Chris@350 1296 --help=recursive display the short help of all the included packages
Chris@350 1297 -V, --version display version information and exit
mathieu@468 1298 -q, --quiet, --silent do not print \`checking...' messages
Chris@350 1299 --cache-file=FILE cache test results in FILE [disabled]
Chris@350 1300 -C, --config-cache alias for \`--cache-file=config.cache'
Chris@350 1301 -n, --no-create do not create output files
Chris@350 1302 --srcdir=DIR find the sources in DIR [configure dir or \`..']
Chris@350 1303
Chris@350 1304 Installation directories:
Chris@350 1305 --prefix=PREFIX install architecture-independent files in PREFIX
mathieu@468 1306 [$ac_default_prefix]
Chris@350 1307 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
mathieu@468 1308 [PREFIX]
Chris@350 1309
Chris@350 1310 By default, \`make install' will install all the files in
Chris@350 1311 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
Chris@350 1312 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
Chris@350 1313 for instance \`--prefix=\$HOME'.
Chris@350 1314
Chris@350 1315 For better control, use the options below.
Chris@350 1316
Chris@350 1317 Fine tuning of the installation directories:
mathieu@468 1318 --bindir=DIR user executables [EPREFIX/bin]
mathieu@468 1319 --sbindir=DIR system admin executables [EPREFIX/sbin]
mathieu@468 1320 --libexecdir=DIR program executables [EPREFIX/libexec]
mathieu@468 1321 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
mathieu@468 1322 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
mathieu@468 1323 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
mathieu@468 1324 --libdir=DIR object code libraries [EPREFIX/lib]
mathieu@468 1325 --includedir=DIR C header files [PREFIX/include]
mathieu@468 1326 --oldincludedir=DIR C header files for non-gcc [/usr/include]
mathieu@468 1327 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
mathieu@468 1328 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
mathieu@468 1329 --infodir=DIR info documentation [DATAROOTDIR/info]
mathieu@468 1330 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
mathieu@468 1331 --mandir=DIR man documentation [DATAROOTDIR/man]
mathieu@468 1332 --docdir=DIR documentation root [DATAROOTDIR/doc/sonic-visualiser]
mathieu@468 1333 --htmldir=DIR html documentation [DOCDIR]
mathieu@468 1334 --dvidir=DIR dvi documentation [DOCDIR]
mathieu@468 1335 --pdfdir=DIR pdf documentation [DOCDIR]
mathieu@468 1336 --psdir=DIR ps documentation [DOCDIR]
Chris@350 1337 _ACEOF
Chris@350 1338
Chris@350 1339 cat <<\_ACEOF
Chris@350 1340 _ACEOF
Chris@350 1341 fi
Chris@350 1342
Chris@350 1343 if test -n "$ac_init_help"; then
Chris@350 1344 case $ac_init_help in
mathieu@468 1345 short | recursive ) echo "Configuration of Sonic Visualiser 1.9-kiosk-hg:";;
Chris@350 1346 esac
Chris@350 1347 cat <<\_ACEOF
Chris@350 1348
Chris@350 1349 Optional Features:
Chris@350 1350 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
Chris@350 1351 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Chris@350 1352 --enable-debug enable debug support [default=no]
Chris@350 1353
Chris@350 1354 Some influential environment variables:
Chris@350 1355 CC C compiler command
Chris@350 1356 CFLAGS C compiler flags
Chris@350 1357 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
Chris@350 1358 nonstandard directory <lib dir>
Chris@350 1359 LIBS libraries to pass to the linker, e.g. -l<library>
mathieu@468 1360 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Chris@350 1361 you have headers in a nonstandard directory <include dir>
Chris@350 1362 CXX C++ compiler command
Chris@350 1363 CXXFLAGS C++ compiler flags
Chris@350 1364 CXXCPP C++ preprocessor
Chris@350 1365 PKG_CONFIG path to pkg-config utility
Chris@457 1366 PKG_CONFIG_PATH
Chris@457 1367 directories to add to pkg-config's search path
Chris@457 1368 PKG_CONFIG_LIBDIR
Chris@457 1369 path overriding pkg-config's built-in search path
Chris@350 1370 bz2_CFLAGS C compiler flags for bz2, overriding pkg-config
Chris@350 1371 bz2_LIBS linker flags for bz2, overriding pkg-config
Chris@350 1372 fftw3_CFLAGS
Chris@350 1373 C compiler flags for fftw3, overriding pkg-config
Chris@350 1374 fftw3_LIBS linker flags for fftw3, overriding pkg-config
Chris@350 1375 fftw3f_CFLAGS
Chris@350 1376 C compiler flags for fftw3f, overriding pkg-config
Chris@350 1377 fftw3f_LIBS linker flags for fftw3f, overriding pkg-config
Chris@350 1378 sndfile_CFLAGS
Chris@350 1379 C compiler flags for sndfile, overriding pkg-config
Chris@350 1380 sndfile_LIBS
Chris@350 1381 linker flags for sndfile, overriding pkg-config
Chris@350 1382 samplerate_CFLAGS
Chris@350 1383 C compiler flags for samplerate, overriding pkg-config
Chris@350 1384 samplerate_LIBS
Chris@350 1385 linker flags for samplerate, overriding pkg-config
Chris@350 1386 vamp_CFLAGS C compiler flags for vamp, overriding pkg-config
Chris@350 1387 vamp_LIBS linker flags for vamp, overriding pkg-config
Chris@350 1388 vamphostsdk_CFLAGS
Chris@350 1389 C compiler flags for vamphostsdk, overriding pkg-config
Chris@350 1390 vamphostsdk_LIBS
Chris@350 1391 linker flags for vamphostsdk, overriding pkg-config
Chris@350 1392 rubberband_CFLAGS
Chris@350 1393 C compiler flags for rubberband, overriding pkg-config
Chris@350 1394 rubberband_LIBS
Chris@350 1395 linker flags for rubberband, overriding pkg-config
Chris@350 1396 raptor_CFLAGS
Chris@350 1397 C compiler flags for raptor, overriding pkg-config
Chris@350 1398 raptor_LIBS linker flags for raptor, overriding pkg-config
Chris@350 1399 rasqal_CFLAGS
Chris@350 1400 C compiler flags for rasqal, overriding pkg-config
Chris@350 1401 rasqal_LIBS linker flags for rasqal, overriding pkg-config
Chris@350 1402 redland_CFLAGS
Chris@350 1403 C compiler flags for redland, overriding pkg-config
Chris@350 1404 redland_LIBS
Chris@350 1405 linker flags for redland, overriding pkg-config
Chris@350 1406 liblo_CFLAGS
Chris@350 1407 C compiler flags for liblo, overriding pkg-config
Chris@350 1408 liblo_LIBS linker flags for liblo, overriding pkg-config
Chris@358 1409 portaudio_2_0_CFLAGS
Chris@358 1410 C compiler flags for portaudio_2_0, overriding pkg-config
Chris@358 1411 portaudio_2_0_LIBS
Chris@358 1412 linker flags for portaudio_2_0, overriding pkg-config
Chris@350 1413 JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
Chris@350 1414 JACK_LIBS linker flags for JACK, overriding pkg-config
Chris@350 1415 libpulse_CFLAGS
Chris@350 1416 C compiler flags for libpulse, overriding pkg-config
Chris@350 1417 libpulse_LIBS
Chris@350 1418 linker flags for libpulse, overriding pkg-config
Chris@350 1419 lrdf_CFLAGS C compiler flags for lrdf, overriding pkg-config
Chris@350 1420 lrdf_LIBS linker flags for lrdf, overriding pkg-config
Chris@350 1421 oggz_CFLAGS C compiler flags for oggz, overriding pkg-config
Chris@350 1422 oggz_LIBS linker flags for oggz, overriding pkg-config
Chris@350 1423 fishsound_CFLAGS
Chris@350 1424 C compiler flags for fishsound, overriding pkg-config
Chris@350 1425 fishsound_LIBS
Chris@350 1426 linker flags for fishsound, overriding pkg-config
Chris@350 1427 mad_CFLAGS C compiler flags for mad, overriding pkg-config
Chris@350 1428 mad_LIBS linker flags for mad, overriding pkg-config
Chris@350 1429 id3tag_CFLAGS
Chris@350 1430 C compiler flags for id3tag, overriding pkg-config
Chris@350 1431 id3tag_LIBS linker flags for id3tag, overriding pkg-config
Chris@350 1432
Chris@350 1433 Use these variables to override the choices made by `configure' or to help
Chris@350 1434 it to find libraries and programs with nonstandard names/locations.
Chris@350 1435
Chris@350 1436 Report bugs to <cannam@all-day-breakfast.com>.
Chris@350 1437 _ACEOF
Chris@350 1438 ac_status=$?
Chris@350 1439 fi
Chris@350 1440
Chris@350 1441 if test "$ac_init_help" = "recursive"; then
Chris@350 1442 # If there are subdirs, report their specific --help.
Chris@350 1443 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
mathieu@468 1444 test -d "$ac_dir" || continue
Chris@350 1445 ac_builddir=.
Chris@350 1446
Chris@350 1447 case "$ac_dir" in
Chris@350 1448 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@350 1449 *)
mathieu@468 1450 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Chris@350 1451 # A ".." for each directory in $ac_dir_suffix.
mathieu@468 1452 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Chris@350 1453 case $ac_top_builddir_sub in
Chris@350 1454 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@350 1455 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
Chris@350 1456 esac ;;
Chris@350 1457 esac
Chris@350 1458 ac_abs_top_builddir=$ac_pwd
Chris@350 1459 ac_abs_builddir=$ac_pwd$ac_dir_suffix
Chris@350 1460 # for backward compatibility:
Chris@350 1461 ac_top_builddir=$ac_top_build_prefix
Chris@350 1462
Chris@350 1463 case $srcdir in
Chris@350 1464 .) # We are building in place.
Chris@350 1465 ac_srcdir=.
Chris@350 1466 ac_top_srcdir=$ac_top_builddir_sub
Chris@350 1467 ac_abs_top_srcdir=$ac_pwd ;;
Chris@350 1468 [\\/]* | ?:[\\/]* ) # Absolute name.
Chris@350 1469 ac_srcdir=$srcdir$ac_dir_suffix;
Chris@350 1470 ac_top_srcdir=$srcdir
Chris@350 1471 ac_abs_top_srcdir=$srcdir ;;
Chris@350 1472 *) # Relative name.
Chris@350 1473 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
Chris@350 1474 ac_top_srcdir=$ac_top_build_prefix$srcdir
Chris@350 1475 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Chris@350 1476 esac
Chris@350 1477 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Chris@350 1478
Chris@350 1479 cd "$ac_dir" || { ac_status=$?; continue; }
Chris@350 1480 # Check for guested configure.
Chris@350 1481 if test -f "$ac_srcdir/configure.gnu"; then
Chris@350 1482 echo &&
Chris@350 1483 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
Chris@350 1484 elif test -f "$ac_srcdir/configure"; then
Chris@350 1485 echo &&
Chris@350 1486 $SHELL "$ac_srcdir/configure" --help=recursive
Chris@350 1487 else
mathieu@468 1488 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Chris@350 1489 fi || ac_status=$?
Chris@350 1490 cd "$ac_pwd" || { ac_status=$?; break; }
Chris@350 1491 done
Chris@350 1492 fi
Chris@350 1493
Chris@350 1494 test -n "$ac_init_help" && exit $ac_status
Chris@350 1495 if $ac_init_version; then
Chris@350 1496 cat <<\_ACEOF
mathieu@468 1497 Sonic Visualiser configure 1.9-kiosk-hg
mathieu@468 1498 generated by GNU Autoconf 2.61
mathieu@468 1499
mathieu@468 1500 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
mathieu@468 1501 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Chris@350 1502 This configure script is free software; the Free Software Foundation
Chris@350 1503 gives unlimited permission to copy, distribute and modify it.
Chris@350 1504 _ACEOF
Chris@350 1505 exit
Chris@350 1506 fi
Chris@350 1507 cat >config.log <<_ACEOF
Chris@350 1508 This file contains any messages produced by compilers while
Chris@350 1509 running configure, to aid debugging if configure makes a mistake.
Chris@350 1510
mathieu@468 1511 It was created by Sonic Visualiser $as_me 1.9-kiosk-hg, which was
mathieu@468 1512 generated by GNU Autoconf 2.61. Invocation command line was
Chris@350 1513
Chris@350 1514 $ $0 $@
Chris@350 1515
Chris@350 1516 _ACEOF
Chris@350 1517 exec 5>>config.log
Chris@350 1518 {
Chris@350 1519 cat <<_ASUNAME
Chris@350 1520 ## --------- ##
Chris@350 1521 ## Platform. ##
Chris@350 1522 ## --------- ##
Chris@350 1523
Chris@350 1524 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@350 1525 uname -m = `(uname -m) 2>/dev/null || echo unknown`
Chris@350 1526 uname -r = `(uname -r) 2>/dev/null || echo unknown`
Chris@350 1527 uname -s = `(uname -s) 2>/dev/null || echo unknown`
Chris@350 1528 uname -v = `(uname -v) 2>/dev/null || echo unknown`
Chris@350 1529
Chris@350 1530 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
Chris@350 1531 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
Chris@350 1532
Chris@350 1533 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
Chris@350 1534 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
Chris@350 1535 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Chris@350 1536 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Chris@350 1537 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
Chris@350 1538 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
Chris@350 1539 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
Chris@350 1540
Chris@350 1541 _ASUNAME
Chris@350 1542
Chris@350 1543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 1544 for as_dir in $PATH
Chris@350 1545 do
Chris@350 1546 IFS=$as_save_IFS
Chris@350 1547 test -z "$as_dir" && as_dir=.
mathieu@468 1548 echo "PATH: $as_dir"
mathieu@468 1549 done
Chris@350 1550 IFS=$as_save_IFS
Chris@350 1551
Chris@350 1552 } >&5
Chris@350 1553
Chris@350 1554 cat >&5 <<_ACEOF
Chris@350 1555
Chris@350 1556
Chris@350 1557 ## ----------- ##
Chris@350 1558 ## Core tests. ##
Chris@350 1559 ## ----------- ##
Chris@350 1560
Chris@350 1561 _ACEOF
Chris@350 1562
Chris@350 1563
Chris@350 1564 # Keep a trace of the command line.
Chris@350 1565 # Strip out --no-create and --no-recursion so they do not pile up.
Chris@350 1566 # Strip out --silent because we don't want to record it for future runs.
Chris@350 1567 # Also quote any args containing shell meta-characters.
Chris@350 1568 # Make two passes to allow for proper duplicate-argument suppression.
Chris@350 1569 ac_configure_args=
Chris@350 1570 ac_configure_args0=
Chris@350 1571 ac_configure_args1=
Chris@350 1572 ac_must_keep_next=false
Chris@350 1573 for ac_pass in 1 2
Chris@350 1574 do
Chris@350 1575 for ac_arg
Chris@350 1576 do
Chris@350 1577 case $ac_arg in
Chris@350 1578 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
Chris@350 1579 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@350 1580 | -silent | --silent | --silen | --sile | --sil)
Chris@350 1581 continue ;;
Chris@350 1582 *\'*)
mathieu@468 1583 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@350 1584 esac
Chris@350 1585 case $ac_pass in
mathieu@468 1586 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
Chris@350 1587 2)
mathieu@468 1588 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
Chris@350 1589 if test $ac_must_keep_next = true; then
Chris@350 1590 ac_must_keep_next=false # Got value, back to normal.
Chris@350 1591 else
Chris@350 1592 case $ac_arg in
Chris@350 1593 *=* | --config-cache | -C | -disable-* | --disable-* \
Chris@350 1594 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
Chris@350 1595 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
Chris@350 1596 | -with-* | --with-* | -without-* | --without-* | --x)
Chris@350 1597 case "$ac_configure_args0 " in
Chris@350 1598 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
Chris@350 1599 esac
Chris@350 1600 ;;
Chris@350 1601 -* ) ac_must_keep_next=true ;;
Chris@350 1602 esac
Chris@350 1603 fi
mathieu@468 1604 ac_configure_args="$ac_configure_args '$ac_arg'"
Chris@350 1605 ;;
Chris@350 1606 esac
Chris@350 1607 done
Chris@350 1608 done
mathieu@468 1609 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
mathieu@468 1610 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
Chris@350 1611
Chris@350 1612 # When interrupted or exit'd, cleanup temporary files, and complete
Chris@350 1613 # config.log. We remove comments because anyway the quotes in there
Chris@350 1614 # would cause problems or look ugly.
Chris@350 1615 # WARNING: Use '\'' to represent an apostrophe within the trap.
Chris@350 1616 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Chris@350 1617 trap 'exit_status=$?
Chris@350 1618 # Save into config.log some information that might help in debugging.
Chris@350 1619 {
Chris@350 1620 echo
Chris@350 1621
mathieu@468 1622 cat <<\_ASBOX
mathieu@468 1623 ## ---------------- ##
Chris@350 1624 ## Cache variables. ##
mathieu@468 1625 ## ---------------- ##
mathieu@468 1626 _ASBOX
Chris@350 1627 echo
Chris@350 1628 # The following way of writing the cache mishandles newlines in values,
Chris@350 1629 (
Chris@350 1630 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
Chris@350 1631 eval ac_val=\$$ac_var
Chris@350 1632 case $ac_val in #(
Chris@350 1633 *${as_nl}*)
Chris@350 1634 case $ac_var in #(
mathieu@468 1635 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
mathieu@468 1636 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Chris@350 1637 esac
Chris@350 1638 case $ac_var in #(
Chris@350 1639 _ | IFS | as_nl) ;; #(
mathieu@468 1640 *) $as_unset $ac_var ;;
Chris@350 1641 esac ;;
Chris@350 1642 esac
Chris@350 1643 done
Chris@350 1644 (set) 2>&1 |
Chris@350 1645 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
Chris@350 1646 *${as_nl}ac_space=\ *)
Chris@350 1647 sed -n \
Chris@350 1648 "s/'\''/'\''\\\\'\'''\''/g;
Chris@350 1649 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
Chris@350 1650 ;; #(
Chris@350 1651 *)
Chris@350 1652 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Chris@350 1653 ;;
Chris@350 1654 esac |
Chris@350 1655 sort
Chris@350 1656 )
Chris@350 1657 echo
Chris@350 1658
mathieu@468 1659 cat <<\_ASBOX
mathieu@468 1660 ## ----------------- ##
Chris@350 1661 ## Output variables. ##
mathieu@468 1662 ## ----------------- ##
mathieu@468 1663 _ASBOX
Chris@350 1664 echo
Chris@350 1665 for ac_var in $ac_subst_vars
Chris@350 1666 do
Chris@350 1667 eval ac_val=\$$ac_var
Chris@350 1668 case $ac_val in
mathieu@468 1669 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Chris@350 1670 esac
mathieu@468 1671 echo "$ac_var='\''$ac_val'\''"
Chris@350 1672 done | sort
Chris@350 1673 echo
Chris@350 1674
Chris@350 1675 if test -n "$ac_subst_files"; then
mathieu@468 1676 cat <<\_ASBOX
mathieu@468 1677 ## ------------------- ##
Chris@350 1678 ## File substitutions. ##
mathieu@468 1679 ## ------------------- ##
mathieu@468 1680 _ASBOX
Chris@350 1681 echo
Chris@350 1682 for ac_var in $ac_subst_files
Chris@350 1683 do
Chris@350 1684 eval ac_val=\$$ac_var
Chris@350 1685 case $ac_val in
mathieu@468 1686 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Chris@350 1687 esac
mathieu@468 1688 echo "$ac_var='\''$ac_val'\''"
Chris@350 1689 done | sort
Chris@350 1690 echo
Chris@350 1691 fi
Chris@350 1692
Chris@350 1693 if test -s confdefs.h; then
mathieu@468 1694 cat <<\_ASBOX
mathieu@468 1695 ## ----------- ##
Chris@350 1696 ## confdefs.h. ##
mathieu@468 1697 ## ----------- ##
mathieu@468 1698 _ASBOX
Chris@350 1699 echo
Chris@350 1700 cat confdefs.h
Chris@350 1701 echo
Chris@350 1702 fi
Chris@350 1703 test "$ac_signal" != 0 &&
mathieu@468 1704 echo "$as_me: caught signal $ac_signal"
mathieu@468 1705 echo "$as_me: exit $exit_status"
Chris@350 1706 } >&5
Chris@350 1707 rm -f core *.core core.conftest.* &&
Chris@350 1708 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Chris@350 1709 exit $exit_status
Chris@350 1710 ' 0
Chris@350 1711 for ac_signal in 1 2 13 15; do
mathieu@468 1712 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
Chris@350 1713 done
Chris@350 1714 ac_signal=0
Chris@350 1715
Chris@350 1716 # confdefs.h avoids OS command line length limits that DEFS can exceed.
Chris@350 1717 rm -f -r conftest* confdefs.h
Chris@350 1718
Chris@350 1719 # Predefined preprocessor variables.
Chris@350 1720
Chris@350 1721 cat >>confdefs.h <<_ACEOF
Chris@350 1722 #define PACKAGE_NAME "$PACKAGE_NAME"
Chris@350 1723 _ACEOF
Chris@350 1724
mathieu@468 1725
Chris@350 1726 cat >>confdefs.h <<_ACEOF
Chris@350 1727 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
Chris@350 1728 _ACEOF
Chris@350 1729
mathieu@468 1730
Chris@350 1731 cat >>confdefs.h <<_ACEOF
Chris@350 1732 #define PACKAGE_VERSION "$PACKAGE_VERSION"
Chris@350 1733 _ACEOF
Chris@350 1734
mathieu@468 1735
Chris@350 1736 cat >>confdefs.h <<_ACEOF
Chris@350 1737 #define PACKAGE_STRING "$PACKAGE_STRING"
Chris@350 1738 _ACEOF
Chris@350 1739
mathieu@468 1740
Chris@350 1741 cat >>confdefs.h <<_ACEOF
Chris@350 1742 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
Chris@350 1743 _ACEOF
Chris@350 1744
Chris@350 1745
Chris@350 1746 # Let the site file select an alternate cache file if it wants to.
mathieu@468 1747 # Prefer explicitly selected file to automatically selected ones.
Chris@350 1748 if test -n "$CONFIG_SITE"; then
mathieu@468 1749 set x "$CONFIG_SITE"
Chris@350 1750 elif test "x$prefix" != xNONE; then
mathieu@468 1751 set x "$prefix/share/config.site" "$prefix/etc/config.site"
mathieu@468 1752 else
mathieu@468 1753 set x "$ac_default_prefix/share/config.site" \
mathieu@468 1754 "$ac_default_prefix/etc/config.site"
mathieu@468 1755 fi
mathieu@468 1756 shift
mathieu@468 1757 for ac_site_file
Chris@350 1758 do
mathieu@468 1759 if test -r "$ac_site_file"; then
mathieu@468 1760 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
mathieu@468 1761 echo "$as_me: loading site script $ac_site_file" >&6;}
Chris@350 1762 sed 's/^/| /' "$ac_site_file" >&5
mathieu@468 1763 . "$ac_site_file"
Chris@350 1764 fi
Chris@350 1765 done
Chris@350 1766
Chris@350 1767 if test -r "$cache_file"; then
mathieu@468 1768 # Some versions of bash will fail to source /dev/null (special
mathieu@468 1769 # files actually), so we avoid doing that.
mathieu@468 1770 if test -f "$cache_file"; then
mathieu@468 1771 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
mathieu@468 1772 echo "$as_me: loading cache $cache_file" >&6;}
Chris@350 1773 case $cache_file in
Chris@350 1774 [\\/]* | ?:[\\/]* ) . "$cache_file";;
Chris@350 1775 *) . "./$cache_file";;
Chris@350 1776 esac
Chris@350 1777 fi
Chris@350 1778 else
mathieu@468 1779 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
mathieu@468 1780 echo "$as_me: creating cache $cache_file" >&6;}
Chris@350 1781 >$cache_file
Chris@350 1782 fi
Chris@350 1783
Chris@350 1784 # Check that the precious variables saved in the cache have kept the same
Chris@350 1785 # value.
Chris@350 1786 ac_cache_corrupted=false
Chris@350 1787 for ac_var in $ac_precious_vars; do
Chris@350 1788 eval ac_old_set=\$ac_cv_env_${ac_var}_set
Chris@350 1789 eval ac_new_set=\$ac_env_${ac_var}_set
Chris@350 1790 eval ac_old_val=\$ac_cv_env_${ac_var}_value
Chris@350 1791 eval ac_new_val=\$ac_env_${ac_var}_value
Chris@350 1792 case $ac_old_set,$ac_new_set in
Chris@350 1793 set,)
mathieu@468 1794 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
mathieu@468 1795 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Chris@350 1796 ac_cache_corrupted=: ;;
Chris@350 1797 ,set)
mathieu@468 1798 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
mathieu@468 1799 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Chris@350 1800 ac_cache_corrupted=: ;;
Chris@350 1801 ,);;
Chris@350 1802 *)
Chris@350 1803 if test "x$ac_old_val" != "x$ac_new_val"; then
mathieu@468 1804 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
mathieu@468 1805 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
mathieu@468 1806 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
mathieu@468 1807 echo "$as_me: former value: $ac_old_val" >&2;}
mathieu@468 1808 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
mathieu@468 1809 echo "$as_me: current value: $ac_new_val" >&2;}
mathieu@468 1810 ac_cache_corrupted=:
Chris@350 1811 fi;;
Chris@350 1812 esac
Chris@350 1813 # Pass precious variables to config.status.
Chris@350 1814 if test "$ac_new_set" = set; then
Chris@350 1815 case $ac_new_val in
mathieu@468 1816 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@350 1817 *) ac_arg=$ac_var=$ac_new_val ;;
Chris@350 1818 esac
Chris@350 1819 case " $ac_configure_args " in
Chris@350 1820 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
mathieu@468 1821 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Chris@350 1822 esac
Chris@350 1823 fi
Chris@350 1824 done
Chris@350 1825 if $ac_cache_corrupted; then
mathieu@468 1826 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
mathieu@468 1827 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
mathieu@468 1828 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
mathieu@468 1829 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
mathieu@468 1830 { (exit 1); exit 1; }; }
mathieu@468 1831 fi
mathieu@468 1832
mathieu@468 1833
mathieu@468 1834
mathieu@468 1835
mathieu@468 1836
mathieu@468 1837
mathieu@468 1838
mathieu@468 1839
mathieu@468 1840
mathieu@468 1841
mathieu@468 1842
mathieu@468 1843
mathieu@468 1844
mathieu@468 1845
mathieu@468 1846
mathieu@468 1847
mathieu@468 1848
mathieu@468 1849
mathieu@468 1850
mathieu@468 1851
mathieu@468 1852
mathieu@468 1853
mathieu@468 1854
mathieu@468 1855
Chris@350 1856
Chris@350 1857 ac_ext=c
Chris@350 1858 ac_cpp='$CPP $CPPFLAGS'
Chris@350 1859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@350 1860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@350 1861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@350 1862
Chris@350 1863
Chris@350 1864
Chris@350 1865
Chris@350 1866
Chris@350 1867 # Autoconf will set CXXFLAGS; we don't usually want it to, because we
Chris@350 1868 # either define our own flags (at least if GCC is in use) or else use
Chris@350 1869 # the user's preferences. We need to ensure CXXFLAGS is only set if
Chris@350 1870 # the user has expressly set it. So, save the user's (or empty)
Chris@350 1871 # setting now and restore it after Autoconf has done its bit of
Chris@350 1872 # piddling about.
Chris@350 1873 USER_CXXFLAGS="$CXXFLAGS"
Chris@350 1874
Chris@405 1875 # If the user supplied CFLAGS but not CXXFLAGS, use CFLAGS instead
Chris@405 1876 if test x"$USER_CXXFLAGS" = x; then
Chris@405 1877 if test x"$CFLAGS" != x; then
Chris@405 1878 USER_CXXFLAGS="$CFLAGS"
Chris@405 1879 fi
Chris@405 1880 fi
Chris@405 1881
Chris@350 1882 ac_ext=cpp
Chris@350 1883 ac_cpp='$CXXCPP $CPPFLAGS'
Chris@350 1884 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@350 1885 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@350 1886 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Chris@350 1887
Chris@350 1888
Chris@350 1889 ac_ext=c
Chris@350 1890 ac_cpp='$CPP $CPPFLAGS'
Chris@350 1891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@350 1892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@350 1893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@350 1894 if test -n "$ac_tool_prefix"; then
Chris@350 1895 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
Chris@350 1896 set dummy ${ac_tool_prefix}gcc; ac_word=$2
mathieu@468 1897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
mathieu@468 1898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
mathieu@468 1899 if test "${ac_cv_prog_CC+set}" = set; then
mathieu@468 1900 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 1901 else
Chris@350 1902 if test -n "$CC"; then
Chris@350 1903 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@350 1904 else
Chris@350 1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 1906 for as_dir in $PATH
Chris@350 1907 do
Chris@350 1908 IFS=$as_save_IFS
Chris@350 1909 test -z "$as_dir" && as_dir=.
mathieu@468 1910 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@350 1911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@350 1912 ac_cv_prog_CC="${ac_tool_prefix}gcc"
mathieu@468 1913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@350 1914 break 2
Chris@350 1915 fi
Chris@350 1916 done
mathieu@468 1917 done
Chris@350 1918 IFS=$as_save_IFS
Chris@350 1919
Chris@350 1920 fi
Chris@350 1921 fi
Chris@350 1922 CC=$ac_cv_prog_CC
Chris@350 1923 if test -n "$CC"; then
mathieu@468 1924 { echo "$as_me:$LINENO: result: $CC" >&5
mathieu@468 1925 echo "${ECHO_T}$CC" >&6; }
mathieu@468 1926 else
mathieu@468 1927 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 1928 echo "${ECHO_T}no" >&6; }
Chris@350 1929 fi
Chris@350 1930
Chris@350 1931
Chris@350 1932 fi
Chris@350 1933 if test -z "$ac_cv_prog_CC"; then
Chris@350 1934 ac_ct_CC=$CC
Chris@350 1935 # Extract the first word of "gcc", so it can be a program name with args.
Chris@350 1936 set dummy gcc; ac_word=$2
mathieu@468 1937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
mathieu@468 1938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
mathieu@468 1939 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
mathieu@468 1940 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 1941 else
Chris@350 1942 if test -n "$ac_ct_CC"; then
Chris@350 1943 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
Chris@350 1944 else
Chris@350 1945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 1946 for as_dir in $PATH
Chris@350 1947 do
Chris@350 1948 IFS=$as_save_IFS
Chris@350 1949 test -z "$as_dir" && as_dir=.
mathieu@468 1950 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@350 1951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@350 1952 ac_cv_prog_ac_ct_CC="gcc"
mathieu@468 1953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@350 1954 break 2
Chris@350 1955 fi
Chris@350 1956 done
mathieu@468 1957 done
Chris@350 1958 IFS=$as_save_IFS
Chris@350 1959
Chris@350 1960 fi
Chris@350 1961 fi
Chris@350 1962 ac_ct_CC=$ac_cv_prog_ac_ct_CC
Chris@350 1963 if test -n "$ac_ct_CC"; then
mathieu@468 1964 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
mathieu@468 1965 echo "${ECHO_T}$ac_ct_CC" >&6; }
mathieu@468 1966 else
mathieu@468 1967 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 1968 echo "${ECHO_T}no" >&6; }
Chris@350 1969 fi
Chris@350 1970
Chris@350 1971 if test "x$ac_ct_CC" = x; then
Chris@350 1972 CC=""
Chris@350 1973 else
Chris@350 1974 case $cross_compiling:$ac_tool_warned in
Chris@350 1975 yes:)
mathieu@468 1976 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
mathieu@468 1977 whose name does not start with the host triplet. If you think this
mathieu@468 1978 configuration is useful to you, please write to autoconf@gnu.org." >&5
mathieu@468 1979 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
mathieu@468 1980 whose name does not start with the host triplet. If you think this
mathieu@468 1981 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Chris@350 1982 ac_tool_warned=yes ;;
Chris@350 1983 esac
Chris@350 1984 CC=$ac_ct_CC
Chris@350 1985 fi
Chris@350 1986 else
Chris@350 1987 CC="$ac_cv_prog_CC"
Chris@350 1988 fi
Chris@350 1989
Chris@350 1990 if test -z "$CC"; then
Chris@350 1991 if test -n "$ac_tool_prefix"; then
Chris@350 1992 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Chris@350 1993 set dummy ${ac_tool_prefix}cc; ac_word=$2
mathieu@468 1994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
mathieu@468 1995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
mathieu@468 1996 if test "${ac_cv_prog_CC+set}" = set; then
mathieu@468 1997 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 1998 else
Chris@350 1999 if test -n "$CC"; then
Chris@350 2000 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@350 2001 else
Chris@350 2002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 2003 for as_dir in $PATH
Chris@350 2004 do
Chris@350 2005 IFS=$as_save_IFS
Chris@350 2006 test -z "$as_dir" && as_dir=.
mathieu@468 2007 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@350 2008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@350 2009 ac_cv_prog_CC="${ac_tool_prefix}cc"
mathieu@468 2010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@350 2011 break 2
Chris@350 2012 fi
Chris@350 2013 done
mathieu@468 2014 done
Chris@350 2015 IFS=$as_save_IFS
Chris@350 2016
Chris@350 2017 fi
Chris@350 2018 fi
Chris@350 2019 CC=$ac_cv_prog_CC
Chris@350 2020 if test -n "$CC"; then
mathieu@468 2021 { echo "$as_me:$LINENO: result: $CC" >&5
mathieu@468 2022 echo "${ECHO_T}$CC" >&6; }
mathieu@468 2023 else
mathieu@468 2024 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 2025 echo "${ECHO_T}no" >&6; }
Chris@350 2026 fi
Chris@350 2027
Chris@350 2028
Chris@350 2029 fi
Chris@350 2030 fi
Chris@350 2031 if test -z "$CC"; then
Chris@350 2032 # Extract the first word of "cc", so it can be a program name with args.
Chris@350 2033 set dummy cc; ac_word=$2
mathieu@468 2034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
mathieu@468 2035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
mathieu@468 2036 if test "${ac_cv_prog_CC+set}" = set; then
mathieu@468 2037 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 2038 else
Chris@350 2039 if test -n "$CC"; then
Chris@350 2040 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@350 2041 else
Chris@350 2042 ac_prog_rejected=no
Chris@350 2043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 2044 for as_dir in $PATH
Chris@350 2045 do
Chris@350 2046 IFS=$as_save_IFS
Chris@350 2047 test -z "$as_dir" && as_dir=.
mathieu@468 2048 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@350 2049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@350 2050 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
Chris@350 2051 ac_prog_rejected=yes
Chris@350 2052 continue
Chris@350 2053 fi
Chris@350 2054 ac_cv_prog_CC="cc"
mathieu@468 2055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@350 2056 break 2
Chris@350 2057 fi
Chris@350 2058 done
mathieu@468 2059 done
Chris@350 2060 IFS=$as_save_IFS
Chris@350 2061
Chris@350 2062 if test $ac_prog_rejected = yes; then
Chris@350 2063 # We found a bogon in the path, so make sure we never use it.
Chris@350 2064 set dummy $ac_cv_prog_CC
Chris@350 2065 shift
Chris@350 2066 if test $# != 0; then
Chris@350 2067 # We chose a different compiler from the bogus one.
Chris@350 2068 # However, it has the same basename, so the bogon will be chosen
Chris@350 2069 # first if we set CC to just the basename; use the full file name.
Chris@350 2070 shift
Chris@350 2071 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Chris@350 2072 fi
Chris@350 2073 fi
Chris@350 2074 fi
Chris@350 2075 fi
Chris@350 2076 CC=$ac_cv_prog_CC
Chris@350 2077 if test -n "$CC"; then
mathieu@468 2078 { echo "$as_me:$LINENO: result: $CC" >&5
mathieu@468 2079 echo "${ECHO_T}$CC" >&6; }
mathieu@468 2080 else
mathieu@468 2081 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 2082 echo "${ECHO_T}no" >&6; }
Chris@350 2083 fi
Chris@350 2084
Chris@350 2085
Chris@350 2086 fi
Chris@350 2087 if test -z "$CC"; then
Chris@350 2088 if test -n "$ac_tool_prefix"; then
Chris@350 2089 for ac_prog in cl.exe
Chris@350 2090 do
Chris@350 2091 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@350 2092 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
mathieu@468 2093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
mathieu@468 2094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
mathieu@468 2095 if test "${ac_cv_prog_CC+set}" = set; then
mathieu@468 2096 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 2097 else
Chris@350 2098 if test -n "$CC"; then
Chris@350 2099 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@350 2100 else
Chris@350 2101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 2102 for as_dir in $PATH
Chris@350 2103 do
Chris@350 2104 IFS=$as_save_IFS
Chris@350 2105 test -z "$as_dir" && as_dir=.
mathieu@468 2106 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@350 2107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@350 2108 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
mathieu@468 2109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@350 2110 break 2
Chris@350 2111 fi
Chris@350 2112 done
mathieu@468 2113 done
Chris@350 2114 IFS=$as_save_IFS
Chris@350 2115
Chris@350 2116 fi
Chris@350 2117 fi
Chris@350 2118 CC=$ac_cv_prog_CC
Chris@350 2119 if test -n "$CC"; then
mathieu@468 2120 { echo "$as_me:$LINENO: result: $CC" >&5
mathieu@468 2121 echo "${ECHO_T}$CC" >&6; }
mathieu@468 2122 else
mathieu@468 2123 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 2124 echo "${ECHO_T}no" >&6; }
Chris@350 2125 fi
Chris@350 2126
Chris@350 2127
Chris@350 2128 test -n "$CC" && break
Chris@350 2129 done
Chris@350 2130 fi
Chris@350 2131 if test -z "$CC"; then
Chris@350 2132 ac_ct_CC=$CC
Chris@350 2133 for ac_prog in cl.exe
Chris@350 2134 do
Chris@350 2135 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@350 2136 set dummy $ac_prog; ac_word=$2
mathieu@468 2137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
mathieu@468 2138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
mathieu@468 2139 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
mathieu@468 2140 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 2141 else
Chris@350 2142 if test -n "$ac_ct_CC"; then
Chris@350 2143 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
Chris@350 2144 else
Chris@350 2145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 2146 for as_dir in $PATH
Chris@350 2147 do
Chris@350 2148 IFS=$as_save_IFS
Chris@350 2149 test -z "$as_dir" && as_dir=.
mathieu@468 2150 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@350 2151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@350 2152 ac_cv_prog_ac_ct_CC="$ac_prog"
mathieu@468 2153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@350 2154 break 2
Chris@350 2155 fi
Chris@350 2156 done
mathieu@468 2157 done
Chris@350 2158 IFS=$as_save_IFS
Chris@350 2159
Chris@350 2160 fi
Chris@350 2161 fi
Chris@350 2162 ac_ct_CC=$ac_cv_prog_ac_ct_CC
Chris@350 2163 if test -n "$ac_ct_CC"; then
mathieu@468 2164 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
mathieu@468 2165 echo "${ECHO_T}$ac_ct_CC" >&6; }
mathieu@468 2166 else
mathieu@468 2167 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 2168 echo "${ECHO_T}no" >&6; }
Chris@350 2169 fi
Chris@350 2170
Chris@350 2171
Chris@350 2172 test -n "$ac_ct_CC" && break
Chris@350 2173 done
Chris@350 2174
Chris@350 2175 if test "x$ac_ct_CC" = x; then
Chris@350 2176 CC=""
Chris@350 2177 else
Chris@350 2178 case $cross_compiling:$ac_tool_warned in
Chris@350 2179 yes:)
mathieu@468 2180 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
mathieu@468 2181 whose name does not start with the host triplet. If you think this
mathieu@468 2182 configuration is useful to you, please write to autoconf@gnu.org." >&5
mathieu@468 2183 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
mathieu@468 2184 whose name does not start with the host triplet. If you think this
mathieu@468 2185 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Chris@350 2186 ac_tool_warned=yes ;;
Chris@350 2187 esac
Chris@350 2188 CC=$ac_ct_CC
Chris@350 2189 fi
Chris@350 2190 fi
Chris@350 2191
Chris@350 2192 fi
Chris@350 2193
Chris@350 2194
mathieu@468 2195 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
mathieu@468 2196 See \`config.log' for more details." >&5
mathieu@468 2197 echo "$as_me: error: no acceptable C compiler found in \$PATH
mathieu@468 2198 See \`config.log' for more details." >&2;}
mathieu@468 2199 { (exit 1); exit 1; }; }
Chris@350 2200
Chris@350 2201 # Provide some information about the compiler.
mathieu@468 2202 echo "$as_me:$LINENO: checking for C compiler version" >&5
mathieu@468 2203 ac_compiler=`set X $ac_compile; echo $2`
mathieu@468 2204 { (ac_try="$ac_compiler --version >&5"
mathieu@468 2205 case "(($ac_try" in
mathieu@468 2206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 2207 *) ac_try_echo=$ac_try;;
mathieu@468 2208 esac
mathieu@468 2209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 2210 (eval "$ac_compiler --version >&5") 2>&5
mathieu@468 2211 ac_status=$?
mathieu@468 2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 2213 (exit $ac_status); }
mathieu@468 2214 { (ac_try="$ac_compiler -v >&5"
mathieu@468 2215 case "(($ac_try" in
mathieu@468 2216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 2217 *) ac_try_echo=$ac_try;;
mathieu@468 2218 esac
mathieu@468 2219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 2220 (eval "$ac_compiler -v >&5") 2>&5
mathieu@468 2221 ac_status=$?
mathieu@468 2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 2223 (exit $ac_status); }
mathieu@468 2224 { (ac_try="$ac_compiler -V >&5"
mathieu@468 2225 case "(($ac_try" in
mathieu@468 2226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 2227 *) ac_try_echo=$ac_try;;
mathieu@468 2228 esac
mathieu@468 2229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 2230 (eval "$ac_compiler -V >&5") 2>&5
mathieu@468 2231 ac_status=$?
mathieu@468 2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 2233 (exit $ac_status); }
mathieu@468 2234
mathieu@468 2235 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 2236 /* confdefs.h. */
mathieu@468 2237 _ACEOF
mathieu@468 2238 cat confdefs.h >>conftest.$ac_ext
mathieu@468 2239 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 2240 /* end confdefs.h. */
Chris@350 2241
Chris@350 2242 int
Chris@350 2243 main ()
Chris@350 2244 {
Chris@350 2245
Chris@350 2246 ;
Chris@350 2247 return 0;
Chris@350 2248 }
Chris@350 2249 _ACEOF
Chris@350 2250 ac_clean_files_save=$ac_clean_files
mathieu@468 2251 ac_clean_files="$ac_clean_files a.out a.exe b.out"
Chris@350 2252 # Try to create an executable without -o first, disregard a.out.
Chris@350 2253 # It will help us diagnose broken compilers, and finding out an intuition
Chris@350 2254 # of exeext.
mathieu@468 2255 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
mathieu@468 2256 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
mathieu@468 2257 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
mathieu@468 2258 #
mathieu@468 2259 # List of possible output files, starting from the most likely.
mathieu@468 2260 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
mathieu@468 2261 # only as a last resort. b.out is created by i960 compilers.
mathieu@468 2262 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
mathieu@468 2263 #
mathieu@468 2264 # The IRIX 6 linker writes into existing files which may not be
mathieu@468 2265 # executable, retaining their permissions. Remove them first so a
mathieu@468 2266 # subsequent execution test works.
Chris@350 2267 ac_rmfiles=
Chris@350 2268 for ac_file in $ac_files
Chris@350 2269 do
Chris@350 2270 case $ac_file in
mathieu@468 2271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Chris@350 2272 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
Chris@350 2273 esac
Chris@350 2274 done
Chris@350 2275 rm -f $ac_rmfiles
Chris@350 2276
mathieu@468 2277 if { (ac_try="$ac_link_default"
mathieu@468 2278 case "(($ac_try" in
mathieu@468 2279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 2280 *) ac_try_echo=$ac_try;;
mathieu@468 2281 esac
mathieu@468 2282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Chris@350 2283 (eval "$ac_link_default") 2>&5
Chris@350 2284 ac_status=$?
mathieu@468 2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 2286 (exit $ac_status); }; then
Chris@350 2287 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
Chris@350 2288 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
Chris@350 2289 # in a Makefile. We should not override ac_cv_exeext if it was cached,
Chris@350 2290 # so that the user can short-circuit this test for compilers unknown to
Chris@350 2291 # Autoconf.
Chris@350 2292 for ac_file in $ac_files ''
Chris@350 2293 do
Chris@350 2294 test -f "$ac_file" || continue
Chris@350 2295 case $ac_file in
mathieu@468 2296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Chris@350 2297 ;;
Chris@350 2298 [ab].out )
Chris@350 2299 # We found the default executable, but exeext='' is most
Chris@350 2300 # certainly right.
Chris@350 2301 break;;
Chris@350 2302 *.* )
mathieu@468 2303 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Chris@350 2304 then :; else
Chris@350 2305 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Chris@350 2306 fi
Chris@350 2307 # We set ac_cv_exeext here because the later test for it is not
Chris@350 2308 # safe: cross compilers may not add the suffix if given an `-o'
Chris@350 2309 # argument, so we may need to know it at that point already.
Chris@350 2310 # Even if this section looks crufty: it has the advantage of
Chris@350 2311 # actually working.
Chris@350 2312 break;;
Chris@350 2313 * )
Chris@350 2314 break;;
Chris@350 2315 esac
Chris@350 2316 done
Chris@350 2317 test "$ac_cv_exeext" = no && ac_cv_exeext=
Chris@350 2318
Chris@350 2319 else
Chris@350 2320 ac_file=''
Chris@350 2321 fi
mathieu@468 2322
mathieu@468 2323 { echo "$as_me:$LINENO: result: $ac_file" >&5
mathieu@468 2324 echo "${ECHO_T}$ac_file" >&6; }
mathieu@468 2325 if test -z "$ac_file"; then
mathieu@468 2326 echo "$as_me: failed program was:" >&5
mathieu@468 2327 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 2328
mathieu@468 2329 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
mathieu@468 2330 See \`config.log' for more details." >&5
mathieu@468 2331 echo "$as_me: error: C compiler cannot create executables
mathieu@468 2332 See \`config.log' for more details." >&2;}
mathieu@468 2333 { (exit 77); exit 77; }; }
mathieu@468 2334 fi
mathieu@468 2335
Chris@350 2336 ac_exeext=$ac_cv_exeext
Chris@350 2337
mathieu@468 2338 # Check that the compiler produces executables we can run. If not, either
mathieu@468 2339 # the compiler is broken, or we cross compile.
mathieu@468 2340 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
mathieu@468 2341 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
mathieu@468 2342 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
mathieu@468 2343 # If not cross compiling, check that we can run a simple program.
mathieu@468 2344 if test "$cross_compiling" != yes; then
mathieu@468 2345 if { ac_try='./$ac_file'
mathieu@468 2346 { (case "(($ac_try" in
mathieu@468 2347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 2348 *) ac_try_echo=$ac_try;;
mathieu@468 2349 esac
mathieu@468 2350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 2351 (eval "$ac_try") 2>&5
mathieu@468 2352 ac_status=$?
mathieu@468 2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 2354 (exit $ac_status); }; }; then
mathieu@468 2355 cross_compiling=no
mathieu@468 2356 else
mathieu@468 2357 if test "$cross_compiling" = maybe; then
mathieu@468 2358 cross_compiling=yes
mathieu@468 2359 else
mathieu@468 2360 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
mathieu@468 2361 If you meant to cross compile, use \`--host'.
mathieu@468 2362 See \`config.log' for more details." >&5
mathieu@468 2363 echo "$as_me: error: cannot run C compiled programs.
mathieu@468 2364 If you meant to cross compile, use \`--host'.
mathieu@468 2365 See \`config.log' for more details." >&2;}
mathieu@468 2366 { (exit 1); exit 1; }; }
mathieu@468 2367 fi
mathieu@468 2368 fi
mathieu@468 2369 fi
mathieu@468 2370 { echo "$as_me:$LINENO: result: yes" >&5
mathieu@468 2371 echo "${ECHO_T}yes" >&6; }
mathieu@468 2372
mathieu@468 2373 rm -f a.out a.exe conftest$ac_cv_exeext b.out
Chris@350 2374 ac_clean_files=$ac_clean_files_save
mathieu@468 2375 # Check that the compiler produces executables we can run. If not, either
mathieu@468 2376 # the compiler is broken, or we cross compile.
mathieu@468 2377 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
mathieu@468 2378 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
mathieu@468 2379 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
mathieu@468 2380 echo "${ECHO_T}$cross_compiling" >&6; }
mathieu@468 2381
mathieu@468 2382 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
mathieu@468 2383 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
mathieu@468 2384 if { (ac_try="$ac_link"
mathieu@468 2385 case "(($ac_try" in
mathieu@468 2386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 2387 *) ac_try_echo=$ac_try;;
mathieu@468 2388 esac
mathieu@468 2389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Chris@350 2390 (eval "$ac_link") 2>&5
Chris@350 2391 ac_status=$?
mathieu@468 2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 2393 (exit $ac_status); }; then
Chris@350 2394 # If both `conftest.exe' and `conftest' are `present' (well, observable)
Chris@350 2395 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
Chris@350 2396 # work properly (i.e., refer to `conftest.exe'), while it won't with
Chris@350 2397 # `rm'.
Chris@350 2398 for ac_file in conftest.exe conftest conftest.*; do
Chris@350 2399 test -f "$ac_file" || continue
Chris@350 2400 case $ac_file in
mathieu@468 2401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Chris@350 2402 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Chris@350 2403 break;;
Chris@350 2404 * ) break;;
Chris@350 2405 esac
Chris@350 2406 done
Chris@350 2407 else
mathieu@468 2408 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
mathieu@468 2409 See \`config.log' for more details." >&5
mathieu@468 2410 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
mathieu@468 2411 See \`config.log' for more details." >&2;}
mathieu@468 2412 { (exit 1); exit 1; }; }
mathieu@468 2413 fi
mathieu@468 2414
mathieu@468 2415 rm -f conftest$ac_cv_exeext
mathieu@468 2416 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
mathieu@468 2417 echo "${ECHO_T}$ac_cv_exeext" >&6; }
Chris@350 2418
Chris@350 2419 rm -f conftest.$ac_ext
Chris@350 2420 EXEEXT=$ac_cv_exeext
Chris@350 2421 ac_exeext=$EXEEXT
mathieu@468 2422 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
mathieu@468 2423 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
mathieu@468 2424 if test "${ac_cv_objext+set}" = set; then
mathieu@468 2425 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 2426 else
mathieu@468 2427 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 2428 /* confdefs.h. */
mathieu@468 2429 _ACEOF
mathieu@468 2430 cat confdefs.h >>conftest.$ac_ext
mathieu@468 2431 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 2432 /* end confdefs.h. */
mathieu@468 2433
Chris@350 2434 int
Chris@350 2435 main ()
Chris@350 2436 {
Chris@350 2437
Chris@350 2438 ;
Chris@350 2439 return 0;
Chris@350 2440 }
Chris@350 2441 _ACEOF
Chris@350 2442 rm -f conftest.o conftest.obj
mathieu@468 2443 if { (ac_try="$ac_compile"
mathieu@468 2444 case "(($ac_try" in
mathieu@468 2445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 2446 *) ac_try_echo=$ac_try;;
mathieu@468 2447 esac
mathieu@468 2448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Chris@350 2449 (eval "$ac_compile") 2>&5
Chris@350 2450 ac_status=$?
mathieu@468 2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 2452 (exit $ac_status); }; then
Chris@350 2453 for ac_file in conftest.o conftest.obj conftest.*; do
Chris@350 2454 test -f "$ac_file" || continue;
Chris@350 2455 case $ac_file in
mathieu@468 2456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Chris@350 2457 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
Chris@350 2458 break;;
Chris@350 2459 esac
Chris@350 2460 done
Chris@350 2461 else
mathieu@468 2462 echo "$as_me: failed program was:" >&5
mathieu@468 2463 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 2464
mathieu@468 2465 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
mathieu@468 2466 See \`config.log' for more details." >&5
mathieu@468 2467 echo "$as_me: error: cannot compute suffix of object files: cannot compile
mathieu@468 2468 See \`config.log' for more details." >&2;}
mathieu@468 2469 { (exit 1); exit 1; }; }
mathieu@468 2470 fi
mathieu@468 2471
Chris@350 2472 rm -f conftest.$ac_cv_objext conftest.$ac_ext
Chris@350 2473 fi
mathieu@468 2474 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
mathieu@468 2475 echo "${ECHO_T}$ac_cv_objext" >&6; }
Chris@350 2476 OBJEXT=$ac_cv_objext
Chris@350 2477 ac_objext=$OBJEXT
mathieu@468 2478 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
mathieu@468 2479 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
mathieu@468 2480 if test "${ac_cv_c_compiler_gnu+set}" = set; then
mathieu@468 2481 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 2482 else
mathieu@468 2483 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 2484 /* confdefs.h. */
mathieu@468 2485 _ACEOF
mathieu@468 2486 cat confdefs.h >>conftest.$ac_ext
mathieu@468 2487 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 2488 /* end confdefs.h. */
Chris@350 2489
Chris@350 2490 int
Chris@350 2491 main ()
Chris@350 2492 {
Chris@350 2493 #ifndef __GNUC__
Chris@350 2494 choke me
Chris@350 2495 #endif
Chris@350 2496
Chris@350 2497 ;
Chris@350 2498 return 0;
Chris@350 2499 }
Chris@350 2500 _ACEOF
mathieu@468 2501 rm -f conftest.$ac_objext
mathieu@468 2502 if { (ac_try="$ac_compile"
mathieu@468 2503 case "(($ac_try" in
mathieu@468 2504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 2505 *) ac_try_echo=$ac_try;;
mathieu@468 2506 esac
mathieu@468 2507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 2508 (eval "$ac_compile") 2>conftest.er1
mathieu@468 2509 ac_status=$?
mathieu@468 2510 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 2511 rm -f conftest.er1
mathieu@468 2512 cat conftest.err >&5
mathieu@468 2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 2514 (exit $ac_status); } && {
mathieu@468 2515 test -z "$ac_c_werror_flag" ||
mathieu@468 2516 test ! -s conftest.err
mathieu@468 2517 } && test -s conftest.$ac_objext; then
Chris@350 2518 ac_compiler_gnu=yes
Chris@350 2519 else
mathieu@468 2520 echo "$as_me: failed program was:" >&5
mathieu@468 2521 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 2522
mathieu@468 2523 ac_compiler_gnu=no
mathieu@468 2524 fi
mathieu@468 2525
Chris@350 2526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@350 2527 ac_cv_c_compiler_gnu=$ac_compiler_gnu
Chris@350 2528
Chris@350 2529 fi
mathieu@468 2530 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
mathieu@468 2531 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
mathieu@468 2532 GCC=`test $ac_compiler_gnu = yes && echo yes`
Chris@350 2533 ac_test_CFLAGS=${CFLAGS+set}
Chris@350 2534 ac_save_CFLAGS=$CFLAGS
mathieu@468 2535 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
mathieu@468 2536 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
mathieu@468 2537 if test "${ac_cv_prog_cc_g+set}" = set; then
mathieu@468 2538 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 2539 else
Chris@350 2540 ac_save_c_werror_flag=$ac_c_werror_flag
Chris@350 2541 ac_c_werror_flag=yes
Chris@350 2542 ac_cv_prog_cc_g=no
Chris@350 2543 CFLAGS="-g"
mathieu@468 2544 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 2545 /* confdefs.h. */
mathieu@468 2546 _ACEOF
mathieu@468 2547 cat confdefs.h >>conftest.$ac_ext
mathieu@468 2548 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 2549 /* end confdefs.h. */
Chris@350 2550
Chris@350 2551 int
Chris@350 2552 main ()
Chris@350 2553 {
Chris@350 2554
Chris@350 2555 ;
Chris@350 2556 return 0;
Chris@350 2557 }
Chris@350 2558 _ACEOF
mathieu@468 2559 rm -f conftest.$ac_objext
mathieu@468 2560 if { (ac_try="$ac_compile"
mathieu@468 2561 case "(($ac_try" in
mathieu@468 2562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 2563 *) ac_try_echo=$ac_try;;
mathieu@468 2564 esac
mathieu@468 2565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 2566 (eval "$ac_compile") 2>conftest.er1
mathieu@468 2567 ac_status=$?
mathieu@468 2568 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 2569 rm -f conftest.er1
mathieu@468 2570 cat conftest.err >&5
mathieu@468 2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 2572 (exit $ac_status); } && {
mathieu@468 2573 test -z "$ac_c_werror_flag" ||
mathieu@468 2574 test ! -s conftest.err
mathieu@468 2575 } && test -s conftest.$ac_objext; then
Chris@350 2576 ac_cv_prog_cc_g=yes
Chris@350 2577 else
mathieu@468 2578 echo "$as_me: failed program was:" >&5
mathieu@468 2579 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 2580
mathieu@468 2581 CFLAGS=""
mathieu@468 2582 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 2583 /* confdefs.h. */
mathieu@468 2584 _ACEOF
mathieu@468 2585 cat confdefs.h >>conftest.$ac_ext
mathieu@468 2586 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 2587 /* end confdefs.h. */
Chris@350 2588
Chris@350 2589 int
Chris@350 2590 main ()
Chris@350 2591 {
Chris@350 2592
Chris@350 2593 ;
Chris@350 2594 return 0;
Chris@350 2595 }
Chris@350 2596 _ACEOF
mathieu@468 2597 rm -f conftest.$ac_objext
mathieu@468 2598 if { (ac_try="$ac_compile"
mathieu@468 2599 case "(($ac_try" in
mathieu@468 2600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 2601 *) ac_try_echo=$ac_try;;
mathieu@468 2602 esac
mathieu@468 2603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 2604 (eval "$ac_compile") 2>conftest.er1
mathieu@468 2605 ac_status=$?
mathieu@468 2606 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 2607 rm -f conftest.er1
mathieu@468 2608 cat conftest.err >&5
mathieu@468 2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 2610 (exit $ac_status); } && {
mathieu@468 2611 test -z "$ac_c_werror_flag" ||
mathieu@468 2612 test ! -s conftest.err
mathieu@468 2613 } && test -s conftest.$ac_objext; then
mathieu@468 2614 :
mathieu@468 2615 else
mathieu@468 2616 echo "$as_me: failed program was:" >&5
mathieu@468 2617 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 2618
mathieu@468 2619 ac_c_werror_flag=$ac_save_c_werror_flag
Chris@350 2620 CFLAGS="-g"
mathieu@468 2621 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 2622 /* confdefs.h. */
mathieu@468 2623 _ACEOF
mathieu@468 2624 cat confdefs.h >>conftest.$ac_ext
mathieu@468 2625 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 2626 /* end confdefs.h. */
Chris@350 2627
Chris@350 2628 int
Chris@350 2629 main ()
Chris@350 2630 {
Chris@350 2631
Chris@350 2632 ;
Chris@350 2633 return 0;
Chris@350 2634 }
Chris@350 2635 _ACEOF
mathieu@468 2636 rm -f conftest.$ac_objext
mathieu@468 2637 if { (ac_try="$ac_compile"
mathieu@468 2638 case "(($ac_try" in
mathieu@468 2639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 2640 *) ac_try_echo=$ac_try;;
mathieu@468 2641 esac
mathieu@468 2642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 2643 (eval "$ac_compile") 2>conftest.er1
mathieu@468 2644 ac_status=$?
mathieu@468 2645 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 2646 rm -f conftest.er1
mathieu@468 2647 cat conftest.err >&5
mathieu@468 2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 2649 (exit $ac_status); } && {
mathieu@468 2650 test -z "$ac_c_werror_flag" ||
mathieu@468 2651 test ! -s conftest.err
mathieu@468 2652 } && test -s conftest.$ac_objext; then
Chris@350 2653 ac_cv_prog_cc_g=yes
mathieu@468 2654 else
mathieu@468 2655 echo "$as_me: failed program was:" >&5
mathieu@468 2656 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 2657
mathieu@468 2658
mathieu@468 2659 fi
mathieu@468 2660
Chris@350 2661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@350 2662 fi
mathieu@468 2663
Chris@350 2664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@350 2665 fi
mathieu@468 2666
Chris@350 2667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@350 2668 ac_c_werror_flag=$ac_save_c_werror_flag
Chris@350 2669 fi
mathieu@468 2670 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
mathieu@468 2671 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Chris@350 2672 if test "$ac_test_CFLAGS" = set; then
Chris@350 2673 CFLAGS=$ac_save_CFLAGS
Chris@350 2674 elif test $ac_cv_prog_cc_g = yes; then
Chris@350 2675 if test "$GCC" = yes; then
Chris@350 2676 CFLAGS="-g -O2"
Chris@350 2677 else
Chris@350 2678 CFLAGS="-g"
Chris@350 2679 fi
Chris@350 2680 else
Chris@350 2681 if test "$GCC" = yes; then
Chris@350 2682 CFLAGS="-O2"
Chris@350 2683 else
Chris@350 2684 CFLAGS=
Chris@350 2685 fi
Chris@350 2686 fi
mathieu@468 2687 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
mathieu@468 2688 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
mathieu@468 2689 if test "${ac_cv_prog_cc_c89+set}" = set; then
mathieu@468 2690 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 2691 else
Chris@350 2692 ac_cv_prog_cc_c89=no
Chris@350 2693 ac_save_CC=$CC
mathieu@468 2694 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 2695 /* confdefs.h. */
mathieu@468 2696 _ACEOF
mathieu@468 2697 cat confdefs.h >>conftest.$ac_ext
mathieu@468 2698 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 2699 /* end confdefs.h. */
Chris@350 2700 #include <stdarg.h>
Chris@350 2701 #include <stdio.h>
Chris@350 2702 #include <sys/types.h>
Chris@350 2703 #include <sys/stat.h>
Chris@350 2704 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
Chris@350 2705 struct buf { int x; };
Chris@350 2706 FILE * (*rcsopen) (struct buf *, struct stat *, int);
Chris@350 2707 static char *e (p, i)
Chris@350 2708 char **p;
Chris@350 2709 int i;
Chris@350 2710 {
Chris@350 2711 return p[i];
Chris@350 2712 }
Chris@350 2713 static char *f (char * (*g) (char **, int), char **p, ...)
Chris@350 2714 {
Chris@350 2715 char *s;
Chris@350 2716 va_list v;
Chris@350 2717 va_start (v,p);
Chris@350 2718 s = g (p, va_arg (v,int));
Chris@350 2719 va_end (v);
Chris@350 2720 return s;
Chris@350 2721 }
Chris@350 2722
Chris@350 2723 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
Chris@350 2724 function prototypes and stuff, but not '\xHH' hex character constants.
Chris@350 2725 These don't provoke an error unfortunately, instead are silently treated
Chris@350 2726 as 'x'. The following induces an error, until -std is added to get
Chris@350 2727 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
Chris@350 2728 array size at least. It's necessary to write '\x00'==0 to get something
Chris@350 2729 that's true only with -std. */
Chris@350 2730 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
Chris@350 2731
Chris@350 2732 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
Chris@350 2733 inside strings and character constants. */
Chris@350 2734 #define FOO(x) 'x'
Chris@350 2735 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
Chris@350 2736
Chris@350 2737 int test (int i, double x);
Chris@350 2738 struct s1 {int (*f) (int a);};
Chris@350 2739 struct s2 {int (*f) (double a);};
Chris@350 2740 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
Chris@350 2741 int argc;
Chris@350 2742 char **argv;
Chris@350 2743 int
Chris@350 2744 main ()
Chris@350 2745 {
Chris@350 2746 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
Chris@350 2747 ;
Chris@350 2748 return 0;
Chris@350 2749 }
Chris@350 2750 _ACEOF
Chris@350 2751 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
Chris@350 2752 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Chris@350 2753 do
Chris@350 2754 CC="$ac_save_CC $ac_arg"
mathieu@468 2755 rm -f conftest.$ac_objext
mathieu@468 2756 if { (ac_try="$ac_compile"
mathieu@468 2757 case "(($ac_try" in
mathieu@468 2758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 2759 *) ac_try_echo=$ac_try;;
mathieu@468 2760 esac
mathieu@468 2761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 2762 (eval "$ac_compile") 2>conftest.er1
mathieu@468 2763 ac_status=$?
mathieu@468 2764 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 2765 rm -f conftest.er1
mathieu@468 2766 cat conftest.err >&5
mathieu@468 2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 2768 (exit $ac_status); } && {
mathieu@468 2769 test -z "$ac_c_werror_flag" ||
mathieu@468 2770 test ! -s conftest.err
mathieu@468 2771 } && test -s conftest.$ac_objext; then
Chris@350 2772 ac_cv_prog_cc_c89=$ac_arg
mathieu@468 2773 else
mathieu@468 2774 echo "$as_me: failed program was:" >&5
mathieu@468 2775 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 2776
mathieu@468 2777
mathieu@468 2778 fi
mathieu@468 2779
Chris@350 2780 rm -f core conftest.err conftest.$ac_objext
Chris@350 2781 test "x$ac_cv_prog_cc_c89" != "xno" && break
Chris@350 2782 done
Chris@350 2783 rm -f conftest.$ac_ext
Chris@350 2784 CC=$ac_save_CC
Chris@350 2785
Chris@350 2786 fi
Chris@350 2787 # AC_CACHE_VAL
Chris@350 2788 case "x$ac_cv_prog_cc_c89" in
Chris@350 2789 x)
mathieu@468 2790 { echo "$as_me:$LINENO: result: none needed" >&5
mathieu@468 2791 echo "${ECHO_T}none needed" >&6; } ;;
Chris@350 2792 xno)
mathieu@468 2793 { echo "$as_me:$LINENO: result: unsupported" >&5
mathieu@468 2794 echo "${ECHO_T}unsupported" >&6; } ;;
Chris@350 2795 *)
Chris@350 2796 CC="$CC $ac_cv_prog_cc_c89"
mathieu@468 2797 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
mathieu@468 2798 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
mathieu@468 2799 esac
mathieu@468 2800
Chris@350 2801
Chris@350 2802 ac_ext=cpp
Chris@350 2803 ac_cpp='$CXXCPP $CPPFLAGS'
Chris@350 2804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@350 2805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@350 2806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Chris@350 2807
Chris@350 2808 ac_ext=cpp
Chris@350 2809 ac_cpp='$CXXCPP $CPPFLAGS'
Chris@350 2810 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@350 2811 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@350 2812 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Chris@350 2813 if test -z "$CXX"; then
Chris@350 2814 if test -n "$CCC"; then
Chris@350 2815 CXX=$CCC
Chris@350 2816 else
Chris@350 2817 if test -n "$ac_tool_prefix"; then
Chris@350 2818 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
Chris@350 2819 do
Chris@350 2820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@350 2821 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
mathieu@468 2822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
mathieu@468 2823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
mathieu@468 2824 if test "${ac_cv_prog_CXX+set}" = set; then
mathieu@468 2825 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 2826 else
Chris@350 2827 if test -n "$CXX"; then
Chris@350 2828 ac_cv_prog_CXX="$CXX" # Let the user override the test.
Chris@350 2829 else
Chris@350 2830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 2831 for as_dir in $PATH
Chris@350 2832 do
Chris@350 2833 IFS=$as_save_IFS
Chris@350 2834 test -z "$as_dir" && as_dir=.
mathieu@468 2835 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@350 2836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@350 2837 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
mathieu@468 2838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@350 2839 break 2
Chris@350 2840 fi
Chris@350 2841 done
mathieu@468 2842 done
Chris@350 2843 IFS=$as_save_IFS
Chris@350 2844
Chris@350 2845 fi
Chris@350 2846 fi
Chris@350 2847 CXX=$ac_cv_prog_CXX
Chris@350 2848 if test -n "$CXX"; then
mathieu@468 2849 { echo "$as_me:$LINENO: result: $CXX" >&5
mathieu@468 2850 echo "${ECHO_T}$CXX" >&6; }
mathieu@468 2851 else
mathieu@468 2852 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 2853 echo "${ECHO_T}no" >&6; }
Chris@350 2854 fi
Chris@350 2855
Chris@350 2856
Chris@350 2857 test -n "$CXX" && break
Chris@350 2858 done
Chris@350 2859 fi
Chris@350 2860 if test -z "$CXX"; then
Chris@350 2861 ac_ct_CXX=$CXX
Chris@350 2862 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
Chris@350 2863 do
Chris@350 2864 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@350 2865 set dummy $ac_prog; ac_word=$2
mathieu@468 2866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
mathieu@468 2867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
mathieu@468 2868 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
mathieu@468 2869 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 2870 else
Chris@350 2871 if test -n "$ac_ct_CXX"; then
Chris@350 2872 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
Chris@350 2873 else
Chris@350 2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 2875 for as_dir in $PATH
Chris@350 2876 do
Chris@350 2877 IFS=$as_save_IFS
Chris@350 2878 test -z "$as_dir" && as_dir=.
mathieu@468 2879 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@350 2880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@350 2881 ac_cv_prog_ac_ct_CXX="$ac_prog"
mathieu@468 2882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@350 2883 break 2
Chris@350 2884 fi
Chris@350 2885 done
mathieu@468 2886 done
Chris@350 2887 IFS=$as_save_IFS
Chris@350 2888
Chris@350 2889 fi
Chris@350 2890 fi
Chris@350 2891 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
Chris@350 2892 if test -n "$ac_ct_CXX"; then
mathieu@468 2893 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
mathieu@468 2894 echo "${ECHO_T}$ac_ct_CXX" >&6; }
mathieu@468 2895 else
mathieu@468 2896 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 2897 echo "${ECHO_T}no" >&6; }
Chris@350 2898 fi
Chris@350 2899
Chris@350 2900
Chris@350 2901 test -n "$ac_ct_CXX" && break
Chris@350 2902 done
Chris@350 2903
Chris@350 2904 if test "x$ac_ct_CXX" = x; then
Chris@350 2905 CXX="g++"
Chris@350 2906 else
Chris@350 2907 case $cross_compiling:$ac_tool_warned in
Chris@350 2908 yes:)
mathieu@468 2909 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
mathieu@468 2910 whose name does not start with the host triplet. If you think this
mathieu@468 2911 configuration is useful to you, please write to autoconf@gnu.org." >&5
mathieu@468 2912 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
mathieu@468 2913 whose name does not start with the host triplet. If you think this
mathieu@468 2914 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Chris@350 2915 ac_tool_warned=yes ;;
Chris@350 2916 esac
Chris@350 2917 CXX=$ac_ct_CXX
Chris@350 2918 fi
Chris@350 2919 fi
Chris@350 2920
Chris@350 2921 fi
Chris@350 2922 fi
Chris@350 2923 # Provide some information about the compiler.
mathieu@468 2924 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
mathieu@468 2925 ac_compiler=`set X $ac_compile; echo $2`
mathieu@468 2926 { (ac_try="$ac_compiler --version >&5"
mathieu@468 2927 case "(($ac_try" in
mathieu@468 2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 2929 *) ac_try_echo=$ac_try;;
mathieu@468 2930 esac
mathieu@468 2931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 2932 (eval "$ac_compiler --version >&5") 2>&5
mathieu@468 2933 ac_status=$?
mathieu@468 2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 2935 (exit $ac_status); }
mathieu@468 2936 { (ac_try="$ac_compiler -v >&5"
mathieu@468 2937 case "(($ac_try" in
mathieu@468 2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 2939 *) ac_try_echo=$ac_try;;
mathieu@468 2940 esac
mathieu@468 2941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 2942 (eval "$ac_compiler -v >&5") 2>&5
mathieu@468 2943 ac_status=$?
mathieu@468 2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 2945 (exit $ac_status); }
mathieu@468 2946 { (ac_try="$ac_compiler -V >&5"
mathieu@468 2947 case "(($ac_try" in
mathieu@468 2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 2949 *) ac_try_echo=$ac_try;;
mathieu@468 2950 esac
mathieu@468 2951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 2952 (eval "$ac_compiler -V >&5") 2>&5
mathieu@468 2953 ac_status=$?
mathieu@468 2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 2955 (exit $ac_status); }
mathieu@468 2956
mathieu@468 2957 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
mathieu@468 2958 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
mathieu@468 2959 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
mathieu@468 2960 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 2961 else
mathieu@468 2962 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 2963 /* confdefs.h. */
mathieu@468 2964 _ACEOF
mathieu@468 2965 cat confdefs.h >>conftest.$ac_ext
mathieu@468 2966 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 2967 /* end confdefs.h. */
Chris@350 2968
Chris@350 2969 int
Chris@350 2970 main ()
Chris@350 2971 {
Chris@350 2972 #ifndef __GNUC__
Chris@350 2973 choke me
Chris@350 2974 #endif
Chris@350 2975
Chris@350 2976 ;
Chris@350 2977 return 0;
Chris@350 2978 }
Chris@350 2979 _ACEOF
mathieu@468 2980 rm -f conftest.$ac_objext
mathieu@468 2981 if { (ac_try="$ac_compile"
mathieu@468 2982 case "(($ac_try" in
mathieu@468 2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 2984 *) ac_try_echo=$ac_try;;
mathieu@468 2985 esac
mathieu@468 2986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 2987 (eval "$ac_compile") 2>conftest.er1
mathieu@468 2988 ac_status=$?
mathieu@468 2989 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 2990 rm -f conftest.er1
mathieu@468 2991 cat conftest.err >&5
mathieu@468 2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 2993 (exit $ac_status); } && {
mathieu@468 2994 test -z "$ac_cxx_werror_flag" ||
mathieu@468 2995 test ! -s conftest.err
mathieu@468 2996 } && test -s conftest.$ac_objext; then
Chris@350 2997 ac_compiler_gnu=yes
Chris@350 2998 else
mathieu@468 2999 echo "$as_me: failed program was:" >&5
mathieu@468 3000 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 3001
mathieu@468 3002 ac_compiler_gnu=no
mathieu@468 3003 fi
mathieu@468 3004
Chris@350 3005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@350 3006 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
Chris@350 3007
Chris@350 3008 fi
mathieu@468 3009 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
mathieu@468 3010 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
mathieu@468 3011 GXX=`test $ac_compiler_gnu = yes && echo yes`
Chris@350 3012 ac_test_CXXFLAGS=${CXXFLAGS+set}
Chris@350 3013 ac_save_CXXFLAGS=$CXXFLAGS
mathieu@468 3014 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
mathieu@468 3015 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
mathieu@468 3016 if test "${ac_cv_prog_cxx_g+set}" = set; then
mathieu@468 3017 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 3018 else
Chris@350 3019 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
Chris@350 3020 ac_cxx_werror_flag=yes
Chris@350 3021 ac_cv_prog_cxx_g=no
Chris@350 3022 CXXFLAGS="-g"
mathieu@468 3023 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 3024 /* confdefs.h. */
mathieu@468 3025 _ACEOF
mathieu@468 3026 cat confdefs.h >>conftest.$ac_ext
mathieu@468 3027 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 3028 /* end confdefs.h. */
Chris@350 3029
Chris@350 3030 int
Chris@350 3031 main ()
Chris@350 3032 {
Chris@350 3033
Chris@350 3034 ;
Chris@350 3035 return 0;
Chris@350 3036 }
Chris@350 3037 _ACEOF
mathieu@468 3038 rm -f conftest.$ac_objext
mathieu@468 3039 if { (ac_try="$ac_compile"
mathieu@468 3040 case "(($ac_try" in
mathieu@468 3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 3042 *) ac_try_echo=$ac_try;;
mathieu@468 3043 esac
mathieu@468 3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 3045 (eval "$ac_compile") 2>conftest.er1
mathieu@468 3046 ac_status=$?
mathieu@468 3047 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 3048 rm -f conftest.er1
mathieu@468 3049 cat conftest.err >&5
mathieu@468 3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 3051 (exit $ac_status); } && {
mathieu@468 3052 test -z "$ac_cxx_werror_flag" ||
mathieu@468 3053 test ! -s conftest.err
mathieu@468 3054 } && test -s conftest.$ac_objext; then
Chris@350 3055 ac_cv_prog_cxx_g=yes
Chris@350 3056 else
mathieu@468 3057 echo "$as_me: failed program was:" >&5
mathieu@468 3058 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 3059
mathieu@468 3060 CXXFLAGS=""
mathieu@468 3061 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 3062 /* confdefs.h. */
mathieu@468 3063 _ACEOF
mathieu@468 3064 cat confdefs.h >>conftest.$ac_ext
mathieu@468 3065 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 3066 /* end confdefs.h. */
Chris@350 3067
Chris@350 3068 int
Chris@350 3069 main ()
Chris@350 3070 {
Chris@350 3071
Chris@350 3072 ;
Chris@350 3073 return 0;
Chris@350 3074 }
Chris@350 3075 _ACEOF
mathieu@468 3076 rm -f conftest.$ac_objext
mathieu@468 3077 if { (ac_try="$ac_compile"
mathieu@468 3078 case "(($ac_try" in
mathieu@468 3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 3080 *) ac_try_echo=$ac_try;;
mathieu@468 3081 esac
mathieu@468 3082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 3083 (eval "$ac_compile") 2>conftest.er1
mathieu@468 3084 ac_status=$?
mathieu@468 3085 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 3086 rm -f conftest.er1
mathieu@468 3087 cat conftest.err >&5
mathieu@468 3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 3089 (exit $ac_status); } && {
mathieu@468 3090 test -z "$ac_cxx_werror_flag" ||
mathieu@468 3091 test ! -s conftest.err
mathieu@468 3092 } && test -s conftest.$ac_objext; then
mathieu@468 3093 :
mathieu@468 3094 else
mathieu@468 3095 echo "$as_me: failed program was:" >&5
mathieu@468 3096 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 3097
mathieu@468 3098 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Chris@350 3099 CXXFLAGS="-g"
mathieu@468 3100 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 3101 /* confdefs.h. */
mathieu@468 3102 _ACEOF
mathieu@468 3103 cat confdefs.h >>conftest.$ac_ext
mathieu@468 3104 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 3105 /* end confdefs.h. */
Chris@350 3106
Chris@350 3107 int
Chris@350 3108 main ()
Chris@350 3109 {
Chris@350 3110
Chris@350 3111 ;
Chris@350 3112 return 0;
Chris@350 3113 }
Chris@350 3114 _ACEOF
mathieu@468 3115 rm -f conftest.$ac_objext
mathieu@468 3116 if { (ac_try="$ac_compile"
mathieu@468 3117 case "(($ac_try" in
mathieu@468 3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 3119 *) ac_try_echo=$ac_try;;
mathieu@468 3120 esac
mathieu@468 3121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 3122 (eval "$ac_compile") 2>conftest.er1
mathieu@468 3123 ac_status=$?
mathieu@468 3124 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 3125 rm -f conftest.er1
mathieu@468 3126 cat conftest.err >&5
mathieu@468 3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 3128 (exit $ac_status); } && {
mathieu@468 3129 test -z "$ac_cxx_werror_flag" ||
mathieu@468 3130 test ! -s conftest.err
mathieu@468 3131 } && test -s conftest.$ac_objext; then
Chris@350 3132 ac_cv_prog_cxx_g=yes
mathieu@468 3133 else
mathieu@468 3134 echo "$as_me: failed program was:" >&5
mathieu@468 3135 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 3136
mathieu@468 3137
mathieu@468 3138 fi
mathieu@468 3139
Chris@350 3140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@350 3141 fi
mathieu@468 3142
Chris@350 3143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@350 3144 fi
mathieu@468 3145
Chris@350 3146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@350 3147 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Chris@350 3148 fi
mathieu@468 3149 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
mathieu@468 3150 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Chris@350 3151 if test "$ac_test_CXXFLAGS" = set; then
Chris@350 3152 CXXFLAGS=$ac_save_CXXFLAGS
Chris@350 3153 elif test $ac_cv_prog_cxx_g = yes; then
Chris@350 3154 if test "$GXX" = yes; then
Chris@350 3155 CXXFLAGS="-g -O2"
Chris@350 3156 else
Chris@350 3157 CXXFLAGS="-g"
Chris@350 3158 fi
Chris@350 3159 else
Chris@350 3160 if test "$GXX" = yes; then
Chris@350 3161 CXXFLAGS="-O2"
Chris@350 3162 else
Chris@350 3163 CXXFLAGS=
Chris@350 3164 fi
Chris@350 3165 fi
Chris@350 3166 ac_ext=cpp
Chris@350 3167 ac_cpp='$CXXCPP $CPPFLAGS'
Chris@350 3168 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@350 3169 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@350 3170 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Chris@350 3171
Chris@350 3172 ac_aux_dir=
Chris@350 3173 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Chris@405 3174 if test -f "$ac_dir/install-sh"; then
Chris@405 3175 ac_aux_dir=$ac_dir
Chris@405 3176 ac_install_sh="$ac_aux_dir/install-sh -c"
Chris@405 3177 break
Chris@405 3178 elif test -f "$ac_dir/install.sh"; then
Chris@405 3179 ac_aux_dir=$ac_dir
Chris@405 3180 ac_install_sh="$ac_aux_dir/install.sh -c"
Chris@405 3181 break
Chris@405 3182 elif test -f "$ac_dir/shtool"; then
Chris@405 3183 ac_aux_dir=$ac_dir
Chris@405 3184 ac_install_sh="$ac_aux_dir/shtool install -c"
Chris@405 3185 break
Chris@405 3186 fi
Chris@350 3187 done
Chris@350 3188 if test -z "$ac_aux_dir"; then
mathieu@468 3189 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
mathieu@468 3190 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
mathieu@468 3191 { (exit 1); exit 1; }; }
Chris@350 3192 fi
Chris@350 3193
Chris@350 3194 # These three variables are undocumented and unsupported,
Chris@350 3195 # and are intended to be withdrawn in a future Autoconf release.
Chris@350 3196 # They can cause serious problems if a builder's source tree is in a directory
Chris@350 3197 # whose full name contains unusual characters.
Chris@350 3198 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
Chris@350 3199 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
Chris@350 3200 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
Chris@350 3201
Chris@350 3202
Chris@350 3203 # Find a good install program. We prefer a C program (faster),
Chris@350 3204 # so one script is as good as another. But avoid the broken or
Chris@350 3205 # incompatible versions:
Chris@350 3206 # SysV /etc/install, /usr/sbin/install
Chris@350 3207 # SunOS /usr/etc/install
Chris@350 3208 # IRIX /sbin/install
Chris@350 3209 # AIX /bin/install
Chris@350 3210 # AmigaOS /C/install, which installs bootblocks on floppy discs
Chris@350 3211 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Chris@350 3212 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
Chris@350 3213 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Chris@350 3214 # OS/2's system install, which has a completely different semantic
Chris@350 3215 # ./install, which can be erroneously created by make from ./install.sh.
mathieu@468 3216 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
mathieu@468 3217 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Chris@350 3218 if test -z "$INSTALL"; then
mathieu@468 3219 if test "${ac_cv_path_install+set}" = set; then
mathieu@468 3220 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 3221 else
Chris@350 3222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 3223 for as_dir in $PATH
Chris@350 3224 do
Chris@350 3225 IFS=$as_save_IFS
Chris@350 3226 test -z "$as_dir" && as_dir=.
mathieu@468 3227 # Account for people who put trailing slashes in PATH elements.
mathieu@468 3228 case $as_dir/ in
mathieu@468 3229 ./ | .// | /cC/* | \
Chris@350 3230 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
mathieu@468 3231 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Chris@350 3232 /usr/ucb/* ) ;;
Chris@350 3233 *)
Chris@350 3234 # OSF1 and SCO ODT 3.0 have their own names for install.
Chris@350 3235 # Don't use installbsd from OSF since it installs stuff as root
Chris@350 3236 # by default.
Chris@350 3237 for ac_prog in ginstall scoinst install; do
Chris@350 3238 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@350 3239 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
Chris@350 3240 if test $ac_prog = install &&
Chris@350 3241 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Chris@350 3242 # AIX install. It has an incompatible calling convention.
Chris@350 3243 :
Chris@350 3244 elif test $ac_prog = install &&
Chris@350 3245 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Chris@350 3246 # program-specific install script used by HP pwplus--don't use.
Chris@350 3247 :
Chris@350 3248 else
mathieu@468 3249 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
mathieu@468 3250 break 3
Chris@350 3251 fi
Chris@350 3252 fi
Chris@350 3253 done
Chris@350 3254 done
Chris@350 3255 ;;
Chris@350 3256 esac
mathieu@468 3257 done
Chris@350 3258 IFS=$as_save_IFS
Chris@350 3259
Chris@350 3260
Chris@350 3261 fi
Chris@350 3262 if test "${ac_cv_path_install+set}" = set; then
Chris@350 3263 INSTALL=$ac_cv_path_install
Chris@350 3264 else
Chris@350 3265 # As a last resort, use the slow shell script. Don't cache a
Chris@350 3266 # value for INSTALL within a source directory, because that will
Chris@350 3267 # break other packages using the cache if that directory is
Chris@350 3268 # removed, or if the value is a relative name.
Chris@350 3269 INSTALL=$ac_install_sh
Chris@350 3270 fi
Chris@350 3271 fi
mathieu@468 3272 { echo "$as_me:$LINENO: result: $INSTALL" >&5
mathieu@468 3273 echo "${ECHO_T}$INSTALL" >&6; }
Chris@350 3274
Chris@350 3275 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
Chris@350 3276 # It thinks the first close brace ends the variable substitution.
Chris@350 3277 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
Chris@350 3278
Chris@350 3279 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Chris@350 3280
Chris@350 3281 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
Chris@350 3282
mathieu@468 3283 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
mathieu@468 3284 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
Chris@350 3285 if test -z "$MKDIR_P"; then
mathieu@468 3286 if test "${ac_cv_path_mkdir+set}" = set; then
mathieu@468 3287 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 3288 else
Chris@350 3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 3290 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
Chris@350 3291 do
Chris@350 3292 IFS=$as_save_IFS
Chris@350 3293 test -z "$as_dir" && as_dir=.
mathieu@468 3294 for ac_prog in mkdir gmkdir; do
Chris@350 3295 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@350 3296 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
Chris@350 3297 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
Chris@350 3298 'mkdir (GNU coreutils) '* | \
Chris@350 3299 'mkdir (coreutils) '* | \
Chris@350 3300 'mkdir (fileutils) '4.1*)
Chris@350 3301 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
Chris@350 3302 break 3;;
Chris@350 3303 esac
Chris@350 3304 done
Chris@350 3305 done
mathieu@468 3306 done
Chris@350 3307 IFS=$as_save_IFS
Chris@350 3308
Chris@350 3309 fi
Chris@350 3310
Chris@350 3311 if test "${ac_cv_path_mkdir+set}" = set; then
Chris@350 3312 MKDIR_P="$ac_cv_path_mkdir -p"
Chris@350 3313 else
Chris@350 3314 # As a last resort, use the slow shell script. Don't cache a
Chris@350 3315 # value for MKDIR_P within a source directory, because that will
Chris@350 3316 # break other packages using the cache if that directory is
Chris@350 3317 # removed, or if the value is a relative name.
mathieu@468 3318 test -d ./--version && rmdir ./--version
Chris@350 3319 MKDIR_P="$ac_install_sh -d"
Chris@350 3320 fi
Chris@350 3321 fi
mathieu@468 3322 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
mathieu@468 3323 echo "${ECHO_T}$MKDIR_P" >&6; }
Chris@350 3324
Chris@350 3325
Chris@350 3326
Chris@350 3327 ac_ext=cpp
Chris@350 3328 ac_cpp='$CXXCPP $CPPFLAGS'
Chris@350 3329 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@350 3330 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@350 3331 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
mathieu@468 3332 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
mathieu@468 3333 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
Chris@350 3334 if test -z "$CXXCPP"; then
mathieu@468 3335 if test "${ac_cv_prog_CXXCPP+set}" = set; then
mathieu@468 3336 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 3337 else
Chris@350 3338 # Double quotes because CXXCPP needs to be expanded
Chris@350 3339 for CXXCPP in "$CXX -E" "/lib/cpp"
Chris@350 3340 do
Chris@350 3341 ac_preproc_ok=false
Chris@350 3342 for ac_cxx_preproc_warn_flag in '' yes
Chris@350 3343 do
Chris@350 3344 # Use a header file that comes with gcc, so configuring glibc
Chris@350 3345 # with a fresh cross-compiler works.
Chris@350 3346 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@350 3347 # <limits.h> exists even on freestanding compilers.
Chris@350 3348 # On the NeXT, cc -E runs the code through the compiler's parser,
Chris@350 3349 # not just through cpp. "Syntax error" is here to catch this case.
mathieu@468 3350 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 3351 /* confdefs.h. */
mathieu@468 3352 _ACEOF
mathieu@468 3353 cat confdefs.h >>conftest.$ac_ext
mathieu@468 3354 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 3355 /* end confdefs.h. */
Chris@350 3356 #ifdef __STDC__
Chris@350 3357 # include <limits.h>
Chris@350 3358 #else
Chris@350 3359 # include <assert.h>
Chris@350 3360 #endif
Chris@350 3361 Syntax error
Chris@350 3362 _ACEOF
mathieu@468 3363 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 3364 case "(($ac_try" in
mathieu@468 3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 3366 *) ac_try_echo=$ac_try;;
mathieu@468 3367 esac
mathieu@468 3368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 3369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
mathieu@468 3370 ac_status=$?
mathieu@468 3371 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 3372 rm -f conftest.er1
mathieu@468 3373 cat conftest.err >&5
mathieu@468 3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 3375 (exit $ac_status); } >/dev/null && {
mathieu@468 3376 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 3377 test ! -s conftest.err
mathieu@468 3378 }; then
mathieu@468 3379 :
mathieu@468 3380 else
mathieu@468 3381 echo "$as_me: failed program was:" >&5
mathieu@468 3382 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 3383
Chris@350 3384 # Broken: fails on valid input.
Chris@350 3385 continue
Chris@350 3386 fi
mathieu@468 3387
mathieu@468 3388 rm -f conftest.err conftest.$ac_ext
Chris@350 3389
Chris@350 3390 # OK, works on sane cases. Now check whether nonexistent headers
Chris@350 3391 # can be detected and how.
mathieu@468 3392 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 3393 /* confdefs.h. */
mathieu@468 3394 _ACEOF
mathieu@468 3395 cat confdefs.h >>conftest.$ac_ext
mathieu@468 3396 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 3397 /* end confdefs.h. */
Chris@350 3398 #include <ac_nonexistent.h>
Chris@350 3399 _ACEOF
mathieu@468 3400 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 3401 case "(($ac_try" in
mathieu@468 3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 3403 *) ac_try_echo=$ac_try;;
mathieu@468 3404 esac
mathieu@468 3405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 3406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
mathieu@468 3407 ac_status=$?
mathieu@468 3408 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 3409 rm -f conftest.er1
mathieu@468 3410 cat conftest.err >&5
mathieu@468 3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 3412 (exit $ac_status); } >/dev/null && {
mathieu@468 3413 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 3414 test ! -s conftest.err
mathieu@468 3415 }; then
Chris@350 3416 # Broken: success on invalid input.
Chris@350 3417 continue
Chris@350 3418 else
mathieu@468 3419 echo "$as_me: failed program was:" >&5
mathieu@468 3420 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 3421
Chris@350 3422 # Passes both tests.
Chris@350 3423 ac_preproc_ok=:
Chris@350 3424 break
Chris@350 3425 fi
mathieu@468 3426
mathieu@468 3427 rm -f conftest.err conftest.$ac_ext
Chris@350 3428
Chris@350 3429 done
Chris@350 3430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
mathieu@468 3431 rm -f conftest.err conftest.$ac_ext
mathieu@468 3432 if $ac_preproc_ok; then
Chris@350 3433 break
Chris@350 3434 fi
Chris@350 3435
Chris@350 3436 done
Chris@350 3437 ac_cv_prog_CXXCPP=$CXXCPP
Chris@350 3438
Chris@350 3439 fi
Chris@350 3440 CXXCPP=$ac_cv_prog_CXXCPP
Chris@350 3441 else
Chris@350 3442 ac_cv_prog_CXXCPP=$CXXCPP
Chris@350 3443 fi
mathieu@468 3444 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
mathieu@468 3445 echo "${ECHO_T}$CXXCPP" >&6; }
Chris@350 3446 ac_preproc_ok=false
Chris@350 3447 for ac_cxx_preproc_warn_flag in '' yes
Chris@350 3448 do
Chris@350 3449 # Use a header file that comes with gcc, so configuring glibc
Chris@350 3450 # with a fresh cross-compiler works.
Chris@350 3451 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@350 3452 # <limits.h> exists even on freestanding compilers.
Chris@350 3453 # On the NeXT, cc -E runs the code through the compiler's parser,
Chris@350 3454 # not just through cpp. "Syntax error" is here to catch this case.
mathieu@468 3455 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 3456 /* confdefs.h. */
mathieu@468 3457 _ACEOF
mathieu@468 3458 cat confdefs.h >>conftest.$ac_ext
mathieu@468 3459 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 3460 /* end confdefs.h. */
Chris@350 3461 #ifdef __STDC__
Chris@350 3462 # include <limits.h>
Chris@350 3463 #else
Chris@350 3464 # include <assert.h>
Chris@350 3465 #endif
Chris@350 3466 Syntax error
Chris@350 3467 _ACEOF
mathieu@468 3468 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 3469 case "(($ac_try" in
mathieu@468 3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 3471 *) ac_try_echo=$ac_try;;
mathieu@468 3472 esac
mathieu@468 3473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 3474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
mathieu@468 3475 ac_status=$?
mathieu@468 3476 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 3477 rm -f conftest.er1
mathieu@468 3478 cat conftest.err >&5
mathieu@468 3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 3480 (exit $ac_status); } >/dev/null && {
mathieu@468 3481 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 3482 test ! -s conftest.err
mathieu@468 3483 }; then
mathieu@468 3484 :
mathieu@468 3485 else
mathieu@468 3486 echo "$as_me: failed program was:" >&5
mathieu@468 3487 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 3488
Chris@350 3489 # Broken: fails on valid input.
Chris@350 3490 continue
Chris@350 3491 fi
mathieu@468 3492
mathieu@468 3493 rm -f conftest.err conftest.$ac_ext
Chris@350 3494
Chris@350 3495 # OK, works on sane cases. Now check whether nonexistent headers
Chris@350 3496 # can be detected and how.
mathieu@468 3497 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 3498 /* confdefs.h. */
mathieu@468 3499 _ACEOF
mathieu@468 3500 cat confdefs.h >>conftest.$ac_ext
mathieu@468 3501 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 3502 /* end confdefs.h. */
Chris@350 3503 #include <ac_nonexistent.h>
Chris@350 3504 _ACEOF
mathieu@468 3505 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 3506 case "(($ac_try" in
mathieu@468 3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 3508 *) ac_try_echo=$ac_try;;
mathieu@468 3509 esac
mathieu@468 3510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 3511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
mathieu@468 3512 ac_status=$?
mathieu@468 3513 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 3514 rm -f conftest.er1
mathieu@468 3515 cat conftest.err >&5
mathieu@468 3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 3517 (exit $ac_status); } >/dev/null && {
mathieu@468 3518 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 3519 test ! -s conftest.err
mathieu@468 3520 }; then
Chris@350 3521 # Broken: success on invalid input.
Chris@350 3522 continue
Chris@350 3523 else
mathieu@468 3524 echo "$as_me: failed program was:" >&5
mathieu@468 3525 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 3526
Chris@350 3527 # Passes both tests.
Chris@350 3528 ac_preproc_ok=:
Chris@350 3529 break
Chris@350 3530 fi
mathieu@468 3531
mathieu@468 3532 rm -f conftest.err conftest.$ac_ext
Chris@350 3533
Chris@350 3534 done
Chris@350 3535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
mathieu@468 3536 rm -f conftest.err conftest.$ac_ext
mathieu@468 3537 if $ac_preproc_ok; then
mathieu@468 3538 :
mathieu@468 3539 else
mathieu@468 3540 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
mathieu@468 3541 See \`config.log' for more details." >&5
mathieu@468 3542 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
mathieu@468 3543 See \`config.log' for more details." >&2;}
mathieu@468 3544 { (exit 1); exit 1; }; }
Chris@350 3545 fi
Chris@350 3546
Chris@350 3547 ac_ext=cpp
Chris@350 3548 ac_cpp='$CXXCPP $CPPFLAGS'
Chris@350 3549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@350 3550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@350 3551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Chris@350 3552
Chris@350 3553
mathieu@468 3554 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
mathieu@468 3555 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
mathieu@468 3556 if test "${ac_cv_path_GREP+set}" = set; then
mathieu@468 3557 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 3558 else
mathieu@468 3559 # Extract the first word of "grep ggrep" to use in msg output
mathieu@468 3560 if test -z "$GREP"; then
mathieu@468 3561 set dummy grep ggrep; ac_prog_name=$2
mathieu@468 3562 if test "${ac_cv_path_GREP+set}" = set; then
mathieu@468 3563 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 3564 else
Chris@350 3565 ac_path_GREP_found=false
mathieu@468 3566 # Loop through the user's path and test for each of PROGNAME-LIST
mathieu@468 3567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 3568 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Chris@350 3569 do
Chris@350 3570 IFS=$as_save_IFS
Chris@350 3571 test -z "$as_dir" && as_dir=.
mathieu@468 3572 for ac_prog in grep ggrep; do
mathieu@468 3573 for ac_exec_ext in '' $ac_executable_extensions; do
mathieu@468 3574 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
mathieu@468 3575 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
mathieu@468 3576 # Check for GNU ac_path_GREP and select it if it is found.
Chris@350 3577 # Check for GNU $ac_path_GREP
Chris@350 3578 case `"$ac_path_GREP" --version 2>&1` in
Chris@350 3579 *GNU*)
Chris@350 3580 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
Chris@350 3581 *)
Chris@350 3582 ac_count=0
mathieu@468 3583 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Chris@350 3584 while :
Chris@350 3585 do
Chris@350 3586 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@350 3587 mv "conftest.tmp" "conftest.in"
Chris@350 3588 cp "conftest.in" "conftest.nl"
mathieu@468 3589 echo 'GREP' >> "conftest.nl"
Chris@350 3590 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@350 3591 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
mathieu@468 3592 ac_count=`expr $ac_count + 1`
Chris@350 3593 if test $ac_count -gt ${ac_path_GREP_max-0}; then
Chris@350 3594 # Best one so far, save it but keep looking for a better one
Chris@350 3595 ac_cv_path_GREP="$ac_path_GREP"
Chris@350 3596 ac_path_GREP_max=$ac_count
Chris@350 3597 fi
Chris@350 3598 # 10*(2^10) chars as input seems more than enough
Chris@350 3599 test $ac_count -gt 10 && break
Chris@350 3600 done
Chris@350 3601 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@350 3602 esac
Chris@350 3603
mathieu@468 3604
mathieu@468 3605 $ac_path_GREP_found && break 3
Chris@350 3606 done
mathieu@468 3607 done
mathieu@468 3608
mathieu@468 3609 done
Chris@350 3610 IFS=$as_save_IFS
mathieu@468 3611
mathieu@468 3612
mathieu@468 3613 fi
mathieu@468 3614
mathieu@468 3615 GREP="$ac_cv_path_GREP"
mathieu@468 3616 if test -z "$GREP"; then
mathieu@468 3617 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
mathieu@468 3618 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
mathieu@468 3619 { (exit 1); exit 1; }; }
mathieu@468 3620 fi
mathieu@468 3621
Chris@350 3622 else
Chris@350 3623 ac_cv_path_GREP=$GREP
Chris@350 3624 fi
Chris@350 3625
mathieu@468 3626
mathieu@468 3627 fi
mathieu@468 3628 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
mathieu@468 3629 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Chris@350 3630 GREP="$ac_cv_path_GREP"
Chris@350 3631
Chris@350 3632
mathieu@468 3633 { echo "$as_me:$LINENO: checking for egrep" >&5
mathieu@468 3634 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
mathieu@468 3635 if test "${ac_cv_path_EGREP+set}" = set; then
mathieu@468 3636 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 3637 else
Chris@350 3638 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
Chris@350 3639 then ac_cv_path_EGREP="$GREP -E"
Chris@350 3640 else
mathieu@468 3641 # Extract the first word of "egrep" to use in msg output
mathieu@468 3642 if test -z "$EGREP"; then
mathieu@468 3643 set dummy egrep; ac_prog_name=$2
mathieu@468 3644 if test "${ac_cv_path_EGREP+set}" = set; then
mathieu@468 3645 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 3646 else
Chris@350 3647 ac_path_EGREP_found=false
mathieu@468 3648 # Loop through the user's path and test for each of PROGNAME-LIST
mathieu@468 3649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 3650 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Chris@350 3651 do
Chris@350 3652 IFS=$as_save_IFS
Chris@350 3653 test -z "$as_dir" && as_dir=.
mathieu@468 3654 for ac_prog in egrep; do
mathieu@468 3655 for ac_exec_ext in '' $ac_executable_extensions; do
mathieu@468 3656 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
mathieu@468 3657 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
mathieu@468 3658 # Check for GNU ac_path_EGREP and select it if it is found.
Chris@350 3659 # Check for GNU $ac_path_EGREP
Chris@350 3660 case `"$ac_path_EGREP" --version 2>&1` in
Chris@350 3661 *GNU*)
Chris@350 3662 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
Chris@350 3663 *)
Chris@350 3664 ac_count=0
mathieu@468 3665 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Chris@350 3666 while :
Chris@350 3667 do
Chris@350 3668 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@350 3669 mv "conftest.tmp" "conftest.in"
Chris@350 3670 cp "conftest.in" "conftest.nl"
mathieu@468 3671 echo 'EGREP' >> "conftest.nl"
Chris@350 3672 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@350 3673 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
mathieu@468 3674 ac_count=`expr $ac_count + 1`
Chris@350 3675 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
Chris@350 3676 # Best one so far, save it but keep looking for a better one
Chris@350 3677 ac_cv_path_EGREP="$ac_path_EGREP"
Chris@350 3678 ac_path_EGREP_max=$ac_count
Chris@350 3679 fi
Chris@350 3680 # 10*(2^10) chars as input seems more than enough
Chris@350 3681 test $ac_count -gt 10 && break
Chris@350 3682 done
Chris@350 3683 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@350 3684 esac
Chris@350 3685
mathieu@468 3686
mathieu@468 3687 $ac_path_EGREP_found && break 3
Chris@350 3688 done
mathieu@468 3689 done
mathieu@468 3690
mathieu@468 3691 done
Chris@350 3692 IFS=$as_save_IFS
mathieu@468 3693
mathieu@468 3694
mathieu@468 3695 fi
mathieu@468 3696
mathieu@468 3697 EGREP="$ac_cv_path_EGREP"
mathieu@468 3698 if test -z "$EGREP"; then
mathieu@468 3699 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
mathieu@468 3700 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
mathieu@468 3701 { (exit 1); exit 1; }; }
mathieu@468 3702 fi
mathieu@468 3703
Chris@350 3704 else
Chris@350 3705 ac_cv_path_EGREP=$EGREP
Chris@350 3706 fi
Chris@350 3707
mathieu@468 3708
Chris@350 3709 fi
Chris@350 3710 fi
mathieu@468 3711 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
mathieu@468 3712 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Chris@350 3713 EGREP="$ac_cv_path_EGREP"
Chris@350 3714
Chris@350 3715
mathieu@468 3716 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
mathieu@468 3717 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
mathieu@468 3718 if test "${ac_cv_header_stdc+set}" = set; then
mathieu@468 3719 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 3720 else
mathieu@468 3721 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 3722 /* confdefs.h. */
mathieu@468 3723 _ACEOF
mathieu@468 3724 cat confdefs.h >>conftest.$ac_ext
mathieu@468 3725 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 3726 /* end confdefs.h. */
Chris@350 3727 #include <stdlib.h>
Chris@350 3728 #include <stdarg.h>
Chris@350 3729 #include <string.h>
Chris@350 3730 #include <float.h>
Chris@350 3731
Chris@350 3732 int
Chris@350 3733 main ()
Chris@350 3734 {
Chris@350 3735
Chris@350 3736 ;
Chris@350 3737 return 0;
Chris@350 3738 }
Chris@350 3739 _ACEOF
mathieu@468 3740 rm -f conftest.$ac_objext
mathieu@468 3741 if { (ac_try="$ac_compile"
mathieu@468 3742 case "(($ac_try" in
mathieu@468 3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 3744 *) ac_try_echo=$ac_try;;
mathieu@468 3745 esac
mathieu@468 3746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 3747 (eval "$ac_compile") 2>conftest.er1
mathieu@468 3748 ac_status=$?
mathieu@468 3749 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 3750 rm -f conftest.er1
mathieu@468 3751 cat conftest.err >&5
mathieu@468 3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 3753 (exit $ac_status); } && {
mathieu@468 3754 test -z "$ac_cxx_werror_flag" ||
mathieu@468 3755 test ! -s conftest.err
mathieu@468 3756 } && test -s conftest.$ac_objext; then
Chris@350 3757 ac_cv_header_stdc=yes
Chris@350 3758 else
mathieu@468 3759 echo "$as_me: failed program was:" >&5
mathieu@468 3760 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 3761
mathieu@468 3762 ac_cv_header_stdc=no
mathieu@468 3763 fi
mathieu@468 3764
Chris@350 3765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@350 3766
Chris@350 3767 if test $ac_cv_header_stdc = yes; then
Chris@350 3768 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
mathieu@468 3769 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 3770 /* confdefs.h. */
mathieu@468 3771 _ACEOF
mathieu@468 3772 cat confdefs.h >>conftest.$ac_ext
mathieu@468 3773 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 3774 /* end confdefs.h. */
Chris@350 3775 #include <string.h>
Chris@350 3776
Chris@350 3777 _ACEOF
Chris@350 3778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
mathieu@468 3779 $EGREP "memchr" >/dev/null 2>&1; then
mathieu@468 3780 :
Chris@350 3781 else
Chris@350 3782 ac_cv_header_stdc=no
Chris@350 3783 fi
Chris@350 3784 rm -f conftest*
Chris@350 3785
Chris@350 3786 fi
Chris@350 3787
Chris@350 3788 if test $ac_cv_header_stdc = yes; then
Chris@350 3789 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
mathieu@468 3790 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 3791 /* confdefs.h. */
mathieu@468 3792 _ACEOF
mathieu@468 3793 cat confdefs.h >>conftest.$ac_ext
mathieu@468 3794 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 3795 /* end confdefs.h. */
Chris@350 3796 #include <stdlib.h>
Chris@350 3797
Chris@350 3798 _ACEOF
Chris@350 3799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
mathieu@468 3800 $EGREP "free" >/dev/null 2>&1; then
mathieu@468 3801 :
Chris@350 3802 else
Chris@350 3803 ac_cv_header_stdc=no
Chris@350 3804 fi
Chris@350 3805 rm -f conftest*
Chris@350 3806
Chris@350 3807 fi
Chris@350 3808
Chris@350 3809 if test $ac_cv_header_stdc = yes; then
Chris@350 3810 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
mathieu@468 3811 if test "$cross_compiling" = yes; then
Chris@350 3812 :
Chris@350 3813 else
mathieu@468 3814 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 3815 /* confdefs.h. */
mathieu@468 3816 _ACEOF
mathieu@468 3817 cat confdefs.h >>conftest.$ac_ext
mathieu@468 3818 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 3819 /* end confdefs.h. */
Chris@350 3820 #include <ctype.h>
Chris@350 3821 #include <stdlib.h>
Chris@350 3822 #if ((' ' & 0x0FF) == 0x020)
Chris@350 3823 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
Chris@350 3824 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
Chris@350 3825 #else
Chris@350 3826 # define ISLOWER(c) \
Chris@350 3827 (('a' <= (c) && (c) <= 'i') \
Chris@350 3828 || ('j' <= (c) && (c) <= 'r') \
Chris@350 3829 || ('s' <= (c) && (c) <= 'z'))
Chris@350 3830 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
Chris@350 3831 #endif
Chris@350 3832
Chris@350 3833 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
Chris@350 3834 int
Chris@350 3835 main ()
Chris@350 3836 {
Chris@350 3837 int i;
Chris@350 3838 for (i = 0; i < 256; i++)
Chris@350 3839 if (XOR (islower (i), ISLOWER (i))
Chris@350 3840 || toupper (i) != TOUPPER (i))
Chris@350 3841 return 2;
Chris@350 3842 return 0;
Chris@350 3843 }
Chris@350 3844 _ACEOF
mathieu@468 3845 rm -f conftest$ac_exeext
mathieu@468 3846 if { (ac_try="$ac_link"
mathieu@468 3847 case "(($ac_try" in
mathieu@468 3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 3849 *) ac_try_echo=$ac_try;;
mathieu@468 3850 esac
mathieu@468 3851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 3852 (eval "$ac_link") 2>&5
mathieu@468 3853 ac_status=$?
mathieu@468 3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 3855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
mathieu@468 3856 { (case "(($ac_try" in
mathieu@468 3857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 3858 *) ac_try_echo=$ac_try;;
mathieu@468 3859 esac
mathieu@468 3860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 3861 (eval "$ac_try") 2>&5
mathieu@468 3862 ac_status=$?
mathieu@468 3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 3864 (exit $ac_status); }; }; then
mathieu@468 3865 :
mathieu@468 3866 else
mathieu@468 3867 echo "$as_me: program exited with status $ac_status" >&5
mathieu@468 3868 echo "$as_me: failed program was:" >&5
mathieu@468 3869 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 3870
mathieu@468 3871 ( exit $ac_status )
mathieu@468 3872 ac_cv_header_stdc=no
mathieu@468 3873 fi
mathieu@468 3874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
mathieu@468 3875 fi
mathieu@468 3876
mathieu@468 3877
mathieu@468 3878 fi
mathieu@468 3879 fi
mathieu@468 3880 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
mathieu@468 3881 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Chris@350 3882 if test $ac_cv_header_stdc = yes; then
Chris@350 3883
mathieu@468 3884 cat >>confdefs.h <<\_ACEOF
mathieu@468 3885 #define STDC_HEADERS 1
mathieu@468 3886 _ACEOF
Chris@350 3887
Chris@350 3888 fi
Chris@350 3889
Chris@350 3890
Chris@350 3891 # These are the flags Autoconf guesses for us; we use them later if
Chris@350 3892 # the user has set none and we are not using GCC (so lack our own
Chris@350 3893 # preferred flags)
Chris@350 3894 AUTOCONF_CXXFLAGS="$CXXFLAGS"
Chris@350 3895
Chris@350 3896
Chris@350 3897
Chris@457 3898
Chris@457 3899
Chris@457 3900
Chris@457 3901
Chris@350 3902 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Chris@350 3903 if test -n "$ac_tool_prefix"; then
Chris@350 3904 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
Chris@350 3905 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
mathieu@468 3906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
mathieu@468 3907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
mathieu@468 3908 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
mathieu@468 3909 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 3910 else
Chris@350 3911 case $PKG_CONFIG in
Chris@350 3912 [\\/]* | ?:[\\/]*)
Chris@350 3913 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
Chris@350 3914 ;;
Chris@350 3915 *)
Chris@350 3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 3917 for as_dir in $PATH
Chris@350 3918 do
Chris@350 3919 IFS=$as_save_IFS
Chris@350 3920 test -z "$as_dir" && as_dir=.
mathieu@468 3921 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@350 3922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@350 3923 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
mathieu@468 3924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@350 3925 break 2
Chris@350 3926 fi
Chris@350 3927 done
mathieu@468 3928 done
Chris@350 3929 IFS=$as_save_IFS
Chris@350 3930
Chris@350 3931 ;;
Chris@350 3932 esac
Chris@350 3933 fi
Chris@350 3934 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
Chris@350 3935 if test -n "$PKG_CONFIG"; then
mathieu@468 3936 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
mathieu@468 3937 echo "${ECHO_T}$PKG_CONFIG" >&6; }
mathieu@468 3938 else
mathieu@468 3939 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 3940 echo "${ECHO_T}no" >&6; }
Chris@350 3941 fi
Chris@350 3942
Chris@350 3943
Chris@350 3944 fi
Chris@350 3945 if test -z "$ac_cv_path_PKG_CONFIG"; then
Chris@350 3946 ac_pt_PKG_CONFIG=$PKG_CONFIG
Chris@350 3947 # Extract the first word of "pkg-config", so it can be a program name with args.
Chris@350 3948 set dummy pkg-config; ac_word=$2
mathieu@468 3949 { echo "$as_me:$LINENO: checking for $ac_word" >&5
mathieu@468 3950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
mathieu@468 3951 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
mathieu@468 3952 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 3953 else
Chris@350 3954 case $ac_pt_PKG_CONFIG in
Chris@350 3955 [\\/]* | ?:[\\/]*)
Chris@350 3956 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
Chris@350 3957 ;;
Chris@350 3958 *)
Chris@350 3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 3960 for as_dir in $PATH
Chris@350 3961 do
Chris@350 3962 IFS=$as_save_IFS
Chris@350 3963 test -z "$as_dir" && as_dir=.
mathieu@468 3964 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@350 3965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@350 3966 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
mathieu@468 3967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@350 3968 break 2
Chris@350 3969 fi
Chris@350 3970 done
mathieu@468 3971 done
Chris@350 3972 IFS=$as_save_IFS
Chris@350 3973
Chris@350 3974 ;;
Chris@350 3975 esac
Chris@350 3976 fi
Chris@350 3977 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
Chris@350 3978 if test -n "$ac_pt_PKG_CONFIG"; then
mathieu@468 3979 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
mathieu@468 3980 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
mathieu@468 3981 else
mathieu@468 3982 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 3983 echo "${ECHO_T}no" >&6; }
Chris@350 3984 fi
Chris@350 3985
Chris@350 3986 if test "x$ac_pt_PKG_CONFIG" = x; then
Chris@350 3987 PKG_CONFIG=""
Chris@350 3988 else
Chris@350 3989 case $cross_compiling:$ac_tool_warned in
Chris@350 3990 yes:)
mathieu@468 3991 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
mathieu@468 3992 whose name does not start with the host triplet. If you think this
mathieu@468 3993 configuration is useful to you, please write to autoconf@gnu.org." >&5
mathieu@468 3994 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
mathieu@468 3995 whose name does not start with the host triplet. If you think this
mathieu@468 3996 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Chris@350 3997 ac_tool_warned=yes ;;
Chris@350 3998 esac
Chris@350 3999 PKG_CONFIG=$ac_pt_PKG_CONFIG
Chris@350 4000 fi
Chris@350 4001 else
Chris@350 4002 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
Chris@350 4003 fi
Chris@350 4004
Chris@350 4005 fi
Chris@350 4006 if test -n "$PKG_CONFIG"; then
Chris@350 4007 _pkg_min_version=0.9.0
mathieu@468 4008 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
mathieu@468 4009 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
Chris@350 4010 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
mathieu@468 4011 { echo "$as_me:$LINENO: result: yes" >&5
mathieu@468 4012 echo "${ECHO_T}yes" >&6; }
Chris@350 4013 else
mathieu@468 4014 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 4015 echo "${ECHO_T}no" >&6; }
Chris@350 4016 PKG_CONFIG=""
Chris@350 4017 fi
Chris@354 4018 fi
Chris@354 4019
Chris@354 4020
Chris@354 4021
Chris@354 4022
Chris@354 4023 if test x$QMAKE = x ; then
Chris@354 4024 # Extract the first word of "qmake-qt4", so it can be a program name with args.
Chris@350 4025 set dummy qmake-qt4; ac_word=$2
mathieu@468 4026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
mathieu@468 4027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
mathieu@468 4028 if test "${ac_cv_prog_QMAKE+set}" = set; then
mathieu@468 4029 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 4030 else
Chris@350 4031 if test -n "$QMAKE"; then
Chris@350 4032 ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
Chris@350 4033 else
Chris@350 4034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 4035 for as_dir in $QTDIR/bin/
Chris@350 4036 do
Chris@350 4037 IFS=$as_save_IFS
Chris@350 4038 test -z "$as_dir" && as_dir=.
mathieu@468 4039 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@350 4040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@350 4041 ac_cv_prog_QMAKE="$QTDIR/bin/qmake-qt4"
mathieu@468 4042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@350 4043 break 2
Chris@350 4044 fi
Chris@350 4045 done
mathieu@468 4046 done
Chris@350 4047 IFS=$as_save_IFS
Chris@350 4048
Chris@350 4049 fi
Chris@350 4050 fi
Chris@350 4051 QMAKE=$ac_cv_prog_QMAKE
Chris@350 4052 if test -n "$QMAKE"; then
mathieu@468 4053 { echo "$as_me:$LINENO: result: $QMAKE" >&5
mathieu@468 4054 echo "${ECHO_T}$QMAKE" >&6; }
mathieu@468 4055 else
mathieu@468 4056 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 4057 echo "${ECHO_T}no" >&6; }
Chris@350 4058 fi
Chris@350 4059
Chris@350 4060
Chris@354 4061 fi
Chris@350 4062 if test x$QMAKE = x ; then
Chris@354 4063 # Extract the first word of "qmake", so it can be a program name with args.
Chris@350 4064 set dummy qmake; ac_word=$2
mathieu@468 4065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
mathieu@468 4066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
mathieu@468 4067 if test "${ac_cv_prog_QMAKE+set}" = set; then
mathieu@468 4068 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 4069 else
Chris@350 4070 if test -n "$QMAKE"; then
Chris@350 4071 ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
Chris@350 4072 else
Chris@350 4073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 4074 for as_dir in $QTDIR/bin/
Chris@350 4075 do
Chris@350 4076 IFS=$as_save_IFS
Chris@350 4077 test -z "$as_dir" && as_dir=.
mathieu@468 4078 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@350 4079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@350 4080 ac_cv_prog_QMAKE="$QTDIR/bin/qmake"
mathieu@468 4081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@350 4082 break 2
Chris@350 4083 fi
Chris@350 4084 done
mathieu@468 4085 done
Chris@350 4086 IFS=$as_save_IFS
Chris@350 4087
Chris@350 4088 fi
Chris@350 4089 fi
Chris@350 4090 QMAKE=$ac_cv_prog_QMAKE
Chris@350 4091 if test -n "$QMAKE"; then
mathieu@468 4092 { echo "$as_me:$LINENO: result: $QMAKE" >&5
mathieu@468 4093 echo "${ECHO_T}$QMAKE" >&6; }
mathieu@468 4094 else
mathieu@468 4095 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 4096 echo "${ECHO_T}no" >&6; }
Chris@350 4097 fi
Chris@350 4098
Chris@350 4099
Chris@354 4100 fi
Chris@354 4101 if test x$QMAKE = x ; then
Chris@354 4102 # Extract the first word of "qmake.exe", so it can be a program name with args.
Chris@350 4103 set dummy qmake.exe; ac_word=$2
mathieu@468 4104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
mathieu@468 4105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
mathieu@468 4106 if test "${ac_cv_prog_QMAKE+set}" = set; then
mathieu@468 4107 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 4108 else
Chris@350 4109 if test -n "$QMAKE"; then
Chris@350 4110 ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
Chris@350 4111 else
Chris@350 4112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 4113 for as_dir in $QTDIR/bin/
Chris@350 4114 do
Chris@350 4115 IFS=$as_save_IFS
Chris@350 4116 test -z "$as_dir" && as_dir=.
mathieu@468 4117 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@350 4118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@350 4119 ac_cv_prog_QMAKE="$QTDIR/bin/qmake.exe"
mathieu@468 4120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@350 4121 break 2
Chris@350 4122 fi
Chris@350 4123 done
mathieu@468 4124 done
Chris@350 4125 IFS=$as_save_IFS
Chris@350 4126
Chris@350 4127 fi
Chris@350 4128 fi
Chris@350 4129 QMAKE=$ac_cv_prog_QMAKE
Chris@350 4130 if test -n "$QMAKE"; then
mathieu@468 4131 { echo "$as_me:$LINENO: result: $QMAKE" >&5
mathieu@468 4132 echo "${ECHO_T}$QMAKE" >&6; }
mathieu@468 4133 else
mathieu@468 4134 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 4135 echo "${ECHO_T}no" >&6; }
Chris@350 4136 fi
Chris@350 4137
Chris@350 4138
Chris@354 4139 fi
Chris@354 4140 if test x$QMAKE = x ; then
Chris@354 4141 # Extract the first word of "qmake-qt4", so it can be a program name with args.
Chris@354 4142 set dummy qmake-qt4; ac_word=$2
mathieu@468 4143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
mathieu@468 4144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
mathieu@468 4145 if test "${ac_cv_prog_QMAKE+set}" = set; then
mathieu@468 4146 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@354 4147 else
Chris@354 4148 if test -n "$QMAKE"; then
Chris@354 4149 ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
Chris@354 4150 else
Chris@354 4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@354 4152 for as_dir in $PATH
Chris@354 4153 do
Chris@354 4154 IFS=$as_save_IFS
Chris@354 4155 test -z "$as_dir" && as_dir=.
mathieu@468 4156 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@354 4157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@354 4158 ac_cv_prog_QMAKE="qmake-qt4"
mathieu@468 4159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@354 4160 break 2
Chris@354 4161 fi
Chris@354 4162 done
mathieu@468 4163 done
Chris@354 4164 IFS=$as_save_IFS
Chris@354 4165
Chris@354 4166 fi
Chris@354 4167 fi
Chris@354 4168 QMAKE=$ac_cv_prog_QMAKE
Chris@354 4169 if test -n "$QMAKE"; then
mathieu@468 4170 { echo "$as_me:$LINENO: result: $QMAKE" >&5
mathieu@468 4171 echo "${ECHO_T}$QMAKE" >&6; }
mathieu@468 4172 else
mathieu@468 4173 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 4174 echo "${ECHO_T}no" >&6; }
Chris@354 4175 fi
Chris@354 4176
Chris@354 4177
Chris@354 4178 fi
Chris@354 4179 if test x$QMAKE = x ; then
Chris@354 4180 # Extract the first word of "qmake", so it can be a program name with args.
Chris@354 4181 set dummy qmake; ac_word=$2
mathieu@468 4182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
mathieu@468 4183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
mathieu@468 4184 if test "${ac_cv_prog_QMAKE+set}" = set; then
mathieu@468 4185 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@354 4186 else
Chris@354 4187 if test -n "$QMAKE"; then
Chris@354 4188 ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
Chris@354 4189 else
Chris@354 4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@354 4191 for as_dir in $PATH
Chris@354 4192 do
Chris@354 4193 IFS=$as_save_IFS
Chris@354 4194 test -z "$as_dir" && as_dir=.
mathieu@468 4195 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@354 4196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@354 4197 ac_cv_prog_QMAKE="qmake"
mathieu@468 4198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@354 4199 break 2
Chris@354 4200 fi
Chris@354 4201 done
mathieu@468 4202 done
Chris@354 4203 IFS=$as_save_IFS
Chris@354 4204
Chris@354 4205 fi
Chris@354 4206 fi
Chris@354 4207 QMAKE=$ac_cv_prog_QMAKE
Chris@354 4208 if test -n "$QMAKE"; then
mathieu@468 4209 { echo "$as_me:$LINENO: result: $QMAKE" >&5
mathieu@468 4210 echo "${ECHO_T}$QMAKE" >&6; }
mathieu@468 4211 else
mathieu@468 4212 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 4213 echo "${ECHO_T}no" >&6; }
Chris@354 4214 fi
Chris@354 4215
Chris@354 4216
Chris@354 4217 fi
Chris@354 4218 if test x$QMAKE = x ; then
mathieu@468 4219 { { echo "$as_me:$LINENO: error:
Chris@350 4220 Failed to find the required qmake-qt4 or qmake program. Please
Chris@354 4221 ensure you have the necessary Qt4 development files installed, and
Chris@354 4222 if necessary set QTDIR to the location of your Qt4 installation.
mathieu@468 4223 " >&5
mathieu@468 4224 echo "$as_me: error:
mathieu@468 4225 Failed to find the required qmake-qt4 or qmake program. Please
mathieu@468 4226 ensure you have the necessary Qt4 development files installed, and
mathieu@468 4227 if necessary set QTDIR to the location of your Qt4 installation.
mathieu@468 4228 " >&2;}
mathieu@468 4229 { (exit 1); exit 1; }; }
Chris@350 4230 fi
Chris@350 4231
Chris@350 4232 # Suitable versions of qmake should print out something like:
Chris@350 4233 #
Chris@350 4234 # QMake version 2.01a
Chris@350 4235 # Using Qt version 4.6.3 in /usr/lib
Chris@350 4236 #
Chris@350 4237 # This may be translated, so we check only for the numbers (2.x and 4.x
Chris@350 4238 # in that order).
Chris@350 4239 #
Chris@350 4240 QMAKE_VERSION_OUTPUT=`$QMAKE -v`
Chris@350 4241 case "$QMAKE_VERSION_OUTPUT" in
Chris@350 4242 *2.*4.*) ;;
mathieu@468 4243 *) { echo "$as_me:$LINENO: WARNING:
Chris@350 4244 *** The version of qmake found in \"$QMAKE\" looks like it might be
Chris@350 4245 from the wrong version of Qt (Qt4 is required). Please check
Chris@350 4246 that this is the correct version of qmake for Qt4 builds.
Chris@350 4247 " >&5
mathieu@468 4248 echo "$as_me: WARNING:
Chris@350 4249 *** The version of qmake found in \"$QMAKE\" looks like it might be
Chris@350 4250 from the wrong version of Qt (Qt4 is required). Please check
Chris@350 4251 that this is the correct version of qmake for Qt4 builds.
Chris@350 4252 " >&2;}
Chris@350 4253 esac
Chris@350 4254
Chris@359 4255 case "`uname`" in
Chris@360 4256 *Darwin*) QMAKE="$QMAKE -spec macx-g++";;
Chris@359 4257 esac
Chris@359 4258
Chris@350 4259
Chris@350 4260
Chris@350 4261 SV_DEFINES_DEBUG="-DDEBUG -DBUILD_DEBUG -DWANT_TIMING"
Chris@350 4262 SV_DEFINES_RELEASE="-DNDEBUG -DBUILD_RELEASE -DNO_TIMING"
Chris@350 4263 SV_DEFINES_MINIMAL="$SV_DEFINES_RELEASE"
Chris@350 4264
Chris@350 4265 # Now we have: USER_CXXFLAGS contains any flags the user set
Chris@350 4266 # explicitly; AUTOCONF_CXXFLAGS contains flags that Autoconf thought
Chris@350 4267 # we should use. If we have GCC, we override the latter but then
Chris@350 4268 # allow ourselves to be overridden (later) by the former
Chris@350 4269
Chris@350 4270 CXXFLAGS_DEBUG="$AUTOCONF_CXXFLAGS"
Chris@350 4271 CXXFLAGS_RELEASE="$AUTOCONF_CXXFLAGS"
Chris@350 4272 CXXFLAGS_MINIMAL="$AUTOCONF_CXXFLAGS"
Chris@350 4273
Chris@350 4274 if test "x$GCC" = "xyes"; then
Chris@350 4275 CXXFLAGS_DEBUG="-Wall -Woverloaded-virtual -Wextra -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -g -pipe"
Chris@350 4276 CXXFLAGS_RELEASE="-g0 -O2 -Wall -pipe"
Chris@350 4277 CXXFLAGS_MINIMAL="-g0 -O0"
Chris@350 4278 fi
Chris@350 4279
Chris@350 4280 CXXFLAGS_BUILD="$CXXFLAGS_RELEASE"
Chris@350 4281 SV_DEFINES_BUILD="$SV_DEFINES_RELEASE"
Chris@350 4282
Chris@361 4283 QMAKE_CONFIG="release"
Chris@361 4284
Chris@350 4285 # Check whether --enable-debug was given.
mathieu@468 4286 if test "${enable_debug+set}" = set; then
mathieu@468 4287 enableval=$enable_debug; { echo "$as_me:$LINENO: enabling debug build" >&5
mathieu@468 4288 echo "$as_me: enabling debug build" >&6;}
Chris@361 4289 QMAKE_CONFIG="debug"
Chris@350 4290 CXXFLAGS_BUILD="$CXXFLAGS_DEBUG"
Chris@350 4291 SV_DEFINES_BUILD="$SV_DEFINES_DEBUG"
Chris@350 4292 fi
Chris@350 4293
Chris@350 4294
Chris@350 4295 if test x"$USER_CXXFLAGS" != x; then
mathieu@468 4296 { echo "$as_me:$LINENO: The CXXFLAGS environment variable is set to \"$USER_CXXFLAGS\"." >&5
mathieu@468 4297 echo "$as_me: The CXXFLAGS environment variable is set to \"$USER_CXXFLAGS\"." >&6;}
mathieu@468 4298 { echo "$as_me:$LINENO: Overriding default compiler flags with the above user setting." >&5
mathieu@468 4299 echo "$as_me: Overriding default compiler flags with the above user setting." >&6;}
Chris@350 4300 CXXFLAGS_BUILD="$USER_CXXFLAGS"
Chris@350 4301 CXXFLAGS_MINIMAL="$USER_CXXFLAGS"
Chris@350 4302 fi
Chris@350 4303
Chris@350 4304 CXXFLAGS="$CXXFLAGS_BUILD $SV_DEFINES_BUILD"
Chris@350 4305
Chris@350 4306 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
mathieu@468 4307
mathieu@468 4308
mathieu@468 4309
mathieu@468 4310
mathieu@468 4311
mathieu@468 4312
mathieu@468 4313
mathieu@468 4314
mathieu@468 4315
Chris@350 4316 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Chris@350 4317 inttypes.h stdint.h unistd.h
mathieu@468 4318 do
mathieu@468 4319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
mathieu@468 4320 { echo "$as_me:$LINENO: checking for $ac_header" >&5
mathieu@468 4321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
mathieu@468 4322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 4323 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 4324 else
mathieu@468 4325 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 4326 /* confdefs.h. */
mathieu@468 4327 _ACEOF
mathieu@468 4328 cat confdefs.h >>conftest.$ac_ext
mathieu@468 4329 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 4330 /* end confdefs.h. */
mathieu@468 4331 $ac_includes_default
mathieu@468 4332
mathieu@468 4333 #include <$ac_header>
mathieu@468 4334 _ACEOF
mathieu@468 4335 rm -f conftest.$ac_objext
mathieu@468 4336 if { (ac_try="$ac_compile"
mathieu@468 4337 case "(($ac_try" in
mathieu@468 4338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 4339 *) ac_try_echo=$ac_try;;
mathieu@468 4340 esac
mathieu@468 4341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 4342 (eval "$ac_compile") 2>conftest.er1
mathieu@468 4343 ac_status=$?
mathieu@468 4344 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 4345 rm -f conftest.er1
mathieu@468 4346 cat conftest.err >&5
mathieu@468 4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 4348 (exit $ac_status); } && {
mathieu@468 4349 test -z "$ac_cxx_werror_flag" ||
mathieu@468 4350 test ! -s conftest.err
mathieu@468 4351 } && test -s conftest.$ac_objext; then
mathieu@468 4352 eval "$as_ac_Header=yes"
mathieu@468 4353 else
mathieu@468 4354 echo "$as_me: failed program was:" >&5
mathieu@468 4355 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 4356
mathieu@468 4357 eval "$as_ac_Header=no"
mathieu@468 4358 fi
mathieu@468 4359
mathieu@468 4360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 4361 fi
mathieu@468 4362 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 4363 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 4364 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 4365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 4366 cat >>confdefs.h <<_ACEOF
mathieu@468 4367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris@350 4368 _ACEOF
Chris@350 4369
Chris@350 4370 fi
Chris@350 4371
Chris@350 4372 done
Chris@350 4373
Chris@350 4374
Chris@350 4375
Chris@350 4376 SV_MODULE_MODULE=bz2
Chris@350 4377 SV_MODULE_VERSION_TEST=""
Chris@350 4378 SV_MODULE_HEADER=bzlib.h
Chris@350 4379 SV_MODULE_LIB=bz2
Chris@350 4380 SV_MODULE_FUNC=BZ2_bzReadOpen
Chris@350 4381 SV_MODULE_HAVE=HAVE_$(echo bz2 | tr 'a-z' 'A-Z')
Chris@350 4382 SV_MODULE_FAILED=1
Chris@405 4383 if test -n "$bz2_LIBS" ; then
mathieu@468 4384 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 4385 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@405 4386 CXXFLAGS="$CXXFLAGS $bz2_CFLAGS"
Chris@405 4387 LIBS="$LIBS $bz2_LIBS"
Chris@405 4388 SV_MODULE_FAILED=""
Chris@405 4389 fi
Chris@350 4390 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 4391 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 4392 fi
Chris@405 4393 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@350 4394
Chris@350 4395 pkg_failed=no
mathieu@468 4396 { echo "$as_me:$LINENO: checking for bz2" >&5
mathieu@468 4397 echo $ECHO_N "checking for bz2... $ECHO_C" >&6; }
Chris@350 4398
Chris@457 4399 if test -n "$bz2_CFLAGS"; then
Chris@457 4400 pkg_cv_bz2_CFLAGS="$bz2_CFLAGS"
Chris@457 4401 elif test -n "$PKG_CONFIG"; then
Chris@457 4402 if test -n "$PKG_CONFIG" && \
mathieu@468 4403 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 4404 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 4405 ac_status=$?
mathieu@468 4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 4407 (exit $ac_status); }; then
Chris@350 4408 pkg_cv_bz2_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 4409 else
Chris@350 4410 pkg_failed=yes
Chris@350 4411 fi
Chris@457 4412 else
Chris@457 4413 pkg_failed=untried
Chris@457 4414 fi
Chris@457 4415 if test -n "$bz2_LIBS"; then
Chris@457 4416 pkg_cv_bz2_LIBS="$bz2_LIBS"
Chris@457 4417 elif test -n "$PKG_CONFIG"; then
Chris@457 4418 if test -n "$PKG_CONFIG" && \
mathieu@468 4419 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 4420 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 4421 ac_status=$?
mathieu@468 4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 4423 (exit $ac_status); }; then
Chris@350 4424 pkg_cv_bz2_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 4425 else
Chris@350 4426 pkg_failed=yes
Chris@350 4427 fi
Chris@457 4428 else
Chris@457 4429 pkg_failed=untried
Chris@350 4430 fi
Chris@350 4431
Chris@350 4432
Chris@350 4433
Chris@350 4434 if test $pkg_failed = yes; then
mathieu@468 4435 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 4436 echo "${ECHO_T}no" >&6; }
Chris@350 4437
Chris@350 4438 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@350 4439 _pkg_short_errors_supported=yes
Chris@350 4440 else
Chris@350 4441 _pkg_short_errors_supported=no
Chris@350 4442 fi
Chris@350 4443 if test $_pkg_short_errors_supported = yes; then
Chris@457 4444 bz2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 4445 else
Chris@457 4446 bz2_PKG_ERRORS=`$PKG_CONFIG --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 4447 fi
Chris@350 4448 # Put the nasty error message in config.log where it belongs
Chris@350 4449 echo "$bz2_PKG_ERRORS" >&5
Chris@350 4450
mathieu@468 4451 { echo "$as_me:$LINENO: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 4452 echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 4453 elif test $pkg_failed = untried; then
mathieu@468 4454 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 4455 echo "${ECHO_T}no" >&6; }
mathieu@468 4456 { echo "$as_me:$LINENO: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 4457 echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 4458 else
Chris@350 4459 bz2_CFLAGS=$pkg_cv_bz2_CFLAGS
Chris@350 4460 bz2_LIBS=$pkg_cv_bz2_LIBS
mathieu@468 4461 { echo "$as_me:$LINENO: result: yes" >&5
mathieu@468 4462 echo "${ECHO_T}yes" >&6; }
Chris@350 4463 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $bz2_CFLAGS";LIBS="$LIBS $bz2_LIBS";SV_MODULE_FAILED=""
Chris@350 4464 fi
Chris@350 4465 fi
Chris@350 4466 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 4467 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 4468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 4469 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 4470 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 4471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 4472 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 4473 fi
mathieu@468 4474 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 4475 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 4476 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 4477 else
mathieu@468 4478 # Is the header compilable?
mathieu@468 4479 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 4480 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 4481 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 4482 /* confdefs.h. */
mathieu@468 4483 _ACEOF
mathieu@468 4484 cat confdefs.h >>conftest.$ac_ext
mathieu@468 4485 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 4486 /* end confdefs.h. */
mathieu@468 4487 $ac_includes_default
mathieu@468 4488 #include <$SV_MODULE_HEADER>
mathieu@468 4489 _ACEOF
mathieu@468 4490 rm -f conftest.$ac_objext
mathieu@468 4491 if { (ac_try="$ac_compile"
mathieu@468 4492 case "(($ac_try" in
mathieu@468 4493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 4494 *) ac_try_echo=$ac_try;;
mathieu@468 4495 esac
mathieu@468 4496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 4497 (eval "$ac_compile") 2>conftest.er1
mathieu@468 4498 ac_status=$?
mathieu@468 4499 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 4500 rm -f conftest.er1
mathieu@468 4501 cat conftest.err >&5
mathieu@468 4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 4503 (exit $ac_status); } && {
mathieu@468 4504 test -z "$ac_cxx_werror_flag" ||
mathieu@468 4505 test ! -s conftest.err
mathieu@468 4506 } && test -s conftest.$ac_objext; then
mathieu@468 4507 ac_header_compiler=yes
mathieu@468 4508 else
mathieu@468 4509 echo "$as_me: failed program was:" >&5
mathieu@468 4510 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 4511
mathieu@468 4512 ac_header_compiler=no
mathieu@468 4513 fi
mathieu@468 4514
mathieu@468 4515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 4516 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 4517 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 4518
mathieu@468 4519 # Is the header present?
mathieu@468 4520 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 4521 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 4522 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 4523 /* confdefs.h. */
mathieu@468 4524 _ACEOF
mathieu@468 4525 cat confdefs.h >>conftest.$ac_ext
mathieu@468 4526 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 4527 /* end confdefs.h. */
mathieu@468 4528 #include <$SV_MODULE_HEADER>
mathieu@468 4529 _ACEOF
mathieu@468 4530 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 4531 case "(($ac_try" in
mathieu@468 4532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 4533 *) ac_try_echo=$ac_try;;
mathieu@468 4534 esac
mathieu@468 4535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 4536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
mathieu@468 4537 ac_status=$?
mathieu@468 4538 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 4539 rm -f conftest.er1
mathieu@468 4540 cat conftest.err >&5
mathieu@468 4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 4542 (exit $ac_status); } >/dev/null && {
mathieu@468 4543 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 4544 test ! -s conftest.err
mathieu@468 4545 }; then
mathieu@468 4546 ac_header_preproc=yes
mathieu@468 4547 else
mathieu@468 4548 echo "$as_me: failed program was:" >&5
mathieu@468 4549 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 4550
mathieu@468 4551 ac_header_preproc=no
mathieu@468 4552 fi
mathieu@468 4553
mathieu@468 4554 rm -f conftest.err conftest.$ac_ext
mathieu@468 4555 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 4556 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 4557
mathieu@468 4558 # So? What about this header?
mathieu@468 4559 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 4560 yes:no: )
mathieu@468 4561 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 4562 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 4563 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 4564 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 4565 ac_header_preproc=yes
mathieu@468 4566 ;;
mathieu@468 4567 no:yes:* )
mathieu@468 4568 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 4569 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 4570 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 4571 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 4572 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 4573 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 4574 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 4575 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 4576 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 4577 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 4578 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 4579 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 4580 ( cat <<\_ASBOX
mathieu@468 4581 ## ------------------------------------------- ##
mathieu@468 4582 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 4583 ## ------------------------------------------- ##
mathieu@468 4584 _ASBOX
mathieu@468 4585 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 4586 ;;
mathieu@468 4587 esac
mathieu@468 4588 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 4589 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 4590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 4591 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 4592 else
mathieu@468 4593 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 4594 fi
mathieu@468 4595 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 4596 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 4597 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 4598
mathieu@468 4599 fi
mathieu@468 4600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 4601 HAVES="$HAVES $SV_MODULE_HAVE"
Chris@350 4602 else
mathieu@468 4603 { { echo "$as_me:$LINENO: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&5
mathieu@468 4604 echo "$as_me: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 4605 { (exit 1); exit 1; }; }
Chris@350 4606 fi
Chris@350 4607
Chris@350 4608
Chris@350 4609 if test -n "$SV_MODULE_LIB"; then
mathieu@468 4610 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 4611 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 4612 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 4613 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 4614 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 4615 else
Chris@350 4616 ac_check_lib_save_LIBS=$LIBS
Chris@350 4617 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 4618 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 4619 /* confdefs.h. */
mathieu@468 4620 _ACEOF
mathieu@468 4621 cat confdefs.h >>conftest.$ac_ext
mathieu@468 4622 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 4623 /* end confdefs.h. */
Chris@350 4624
Chris@350 4625 /* Override any GCC internal prototype to avoid an error.
Chris@350 4626 Use char because int might match the return type of a GCC
Chris@350 4627 builtin and then its argument prototype would still apply. */
Chris@350 4628 #ifdef __cplusplus
Chris@350 4629 extern "C"
Chris@350 4630 #endif
Chris@350 4631 char $SV_MODULE_FUNC ();
Chris@350 4632 int
Chris@350 4633 main ()
Chris@350 4634 {
Chris@350 4635 return $SV_MODULE_FUNC ();
Chris@350 4636 ;
Chris@350 4637 return 0;
Chris@350 4638 }
Chris@350 4639 _ACEOF
mathieu@468 4640 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 4641 if { (ac_try="$ac_link"
mathieu@468 4642 case "(($ac_try" in
mathieu@468 4643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 4644 *) ac_try_echo=$ac_try;;
mathieu@468 4645 esac
mathieu@468 4646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 4647 (eval "$ac_link") 2>conftest.er1
mathieu@468 4648 ac_status=$?
mathieu@468 4649 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 4650 rm -f conftest.er1
mathieu@468 4651 cat conftest.err >&5
mathieu@468 4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 4653 (exit $ac_status); } && {
mathieu@468 4654 test -z "$ac_cxx_werror_flag" ||
mathieu@468 4655 test ! -s conftest.err
mathieu@468 4656 } && test -s conftest$ac_exeext &&
mathieu@468 4657 $as_test_x conftest$ac_exeext; then
Chris@350 4658 eval "$as_ac_Lib=yes"
Chris@350 4659 else
mathieu@468 4660 echo "$as_me: failed program was:" >&5
mathieu@468 4661 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 4662
mathieu@468 4663 eval "$as_ac_Lib=no"
mathieu@468 4664 fi
mathieu@468 4665
mathieu@468 4666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 4667 conftest$ac_exeext conftest.$ac_ext
Chris@350 4668 LIBS=$ac_check_lib_save_LIBS
Chris@350 4669 fi
mathieu@468 4670 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 4671 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 4672 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 4673 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@350 4674 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 4675 else
mathieu@468 4676 { { echo "$as_me:$LINENO: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&5
mathieu@468 4677 echo "$as_me: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 4678 { (exit 1); exit 1; }; }
Chris@350 4679 fi
Chris@350 4680
Chris@350 4681 fi
Chris@350 4682 fi
Chris@350 4683
Chris@350 4684
Chris@350 4685 SV_MODULE_MODULE=fftw3
Chris@350 4686 SV_MODULE_VERSION_TEST="fftw3 >= 3.0.0"
Chris@350 4687 SV_MODULE_HEADER=fftw3.h
Chris@350 4688 SV_MODULE_LIB=fftw3
Chris@350 4689 SV_MODULE_FUNC=fftw_execute
Chris@350 4690 SV_MODULE_HAVE=HAVE_$(echo fftw3 | tr 'a-z' 'A-Z')
Chris@350 4691 SV_MODULE_FAILED=1
Chris@405 4692 if test -n "$fftw3_LIBS" ; then
mathieu@468 4693 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 4694 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@405 4695 CXXFLAGS="$CXXFLAGS $fftw3_CFLAGS"
Chris@405 4696 LIBS="$LIBS $fftw3_LIBS"
Chris@405 4697 SV_MODULE_FAILED=""
Chris@405 4698 fi
Chris@350 4699 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 4700 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 4701 fi
Chris@405 4702 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@350 4703
Chris@350 4704 pkg_failed=no
mathieu@468 4705 { echo "$as_me:$LINENO: checking for fftw3" >&5
mathieu@468 4706 echo $ECHO_N "checking for fftw3... $ECHO_C" >&6; }
Chris@350 4707
Chris@457 4708 if test -n "$fftw3_CFLAGS"; then
Chris@457 4709 pkg_cv_fftw3_CFLAGS="$fftw3_CFLAGS"
Chris@457 4710 elif test -n "$PKG_CONFIG"; then
Chris@457 4711 if test -n "$PKG_CONFIG" && \
mathieu@468 4712 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 4713 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 4714 ac_status=$?
mathieu@468 4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 4716 (exit $ac_status); }; then
Chris@350 4717 pkg_cv_fftw3_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 4718 else
Chris@350 4719 pkg_failed=yes
Chris@350 4720 fi
Chris@457 4721 else
Chris@457 4722 pkg_failed=untried
Chris@457 4723 fi
Chris@457 4724 if test -n "$fftw3_LIBS"; then
Chris@457 4725 pkg_cv_fftw3_LIBS="$fftw3_LIBS"
Chris@457 4726 elif test -n "$PKG_CONFIG"; then
Chris@457 4727 if test -n "$PKG_CONFIG" && \
mathieu@468 4728 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 4729 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 4730 ac_status=$?
mathieu@468 4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 4732 (exit $ac_status); }; then
Chris@350 4733 pkg_cv_fftw3_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 4734 else
Chris@350 4735 pkg_failed=yes
Chris@350 4736 fi
Chris@457 4737 else
Chris@457 4738 pkg_failed=untried
Chris@350 4739 fi
Chris@350 4740
Chris@350 4741
Chris@350 4742
Chris@350 4743 if test $pkg_failed = yes; then
mathieu@468 4744 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 4745 echo "${ECHO_T}no" >&6; }
Chris@350 4746
Chris@350 4747 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@350 4748 _pkg_short_errors_supported=yes
Chris@350 4749 else
Chris@350 4750 _pkg_short_errors_supported=no
Chris@350 4751 fi
Chris@350 4752 if test $_pkg_short_errors_supported = yes; then
Chris@457 4753 fftw3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 4754 else
Chris@457 4755 fftw3_PKG_ERRORS=`$PKG_CONFIG --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 4756 fi
Chris@350 4757 # Put the nasty error message in config.log where it belongs
Chris@350 4758 echo "$fftw3_PKG_ERRORS" >&5
Chris@350 4759
mathieu@468 4760 { echo "$as_me:$LINENO: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 4761 echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 4762 elif test $pkg_failed = untried; then
mathieu@468 4763 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 4764 echo "${ECHO_T}no" >&6; }
mathieu@468 4765 { echo "$as_me:$LINENO: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 4766 echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 4767 else
Chris@350 4768 fftw3_CFLAGS=$pkg_cv_fftw3_CFLAGS
Chris@350 4769 fftw3_LIBS=$pkg_cv_fftw3_LIBS
mathieu@468 4770 { echo "$as_me:$LINENO: result: yes" >&5
mathieu@468 4771 echo "${ECHO_T}yes" >&6; }
Chris@350 4772 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $fftw3_CFLAGS";LIBS="$LIBS $fftw3_LIBS";SV_MODULE_FAILED=""
Chris@350 4773 fi
Chris@350 4774 fi
Chris@350 4775 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 4776 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 4777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 4778 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 4779 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 4780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 4781 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 4782 fi
mathieu@468 4783 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 4784 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 4785 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 4786 else
mathieu@468 4787 # Is the header compilable?
mathieu@468 4788 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 4789 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 4790 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 4791 /* confdefs.h. */
mathieu@468 4792 _ACEOF
mathieu@468 4793 cat confdefs.h >>conftest.$ac_ext
mathieu@468 4794 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 4795 /* end confdefs.h. */
mathieu@468 4796 $ac_includes_default
mathieu@468 4797 #include <$SV_MODULE_HEADER>
mathieu@468 4798 _ACEOF
mathieu@468 4799 rm -f conftest.$ac_objext
mathieu@468 4800 if { (ac_try="$ac_compile"
mathieu@468 4801 case "(($ac_try" in
mathieu@468 4802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 4803 *) ac_try_echo=$ac_try;;
mathieu@468 4804 esac
mathieu@468 4805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 4806 (eval "$ac_compile") 2>conftest.er1
mathieu@468 4807 ac_status=$?
mathieu@468 4808 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 4809 rm -f conftest.er1
mathieu@468 4810 cat conftest.err >&5
mathieu@468 4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 4812 (exit $ac_status); } && {
mathieu@468 4813 test -z "$ac_cxx_werror_flag" ||
mathieu@468 4814 test ! -s conftest.err
mathieu@468 4815 } && test -s conftest.$ac_objext; then
mathieu@468 4816 ac_header_compiler=yes
mathieu@468 4817 else
mathieu@468 4818 echo "$as_me: failed program was:" >&5
mathieu@468 4819 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 4820
mathieu@468 4821 ac_header_compiler=no
mathieu@468 4822 fi
mathieu@468 4823
mathieu@468 4824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 4825 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 4826 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 4827
mathieu@468 4828 # Is the header present?
mathieu@468 4829 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 4830 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 4831 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 4832 /* confdefs.h. */
mathieu@468 4833 _ACEOF
mathieu@468 4834 cat confdefs.h >>conftest.$ac_ext
mathieu@468 4835 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 4836 /* end confdefs.h. */
mathieu@468 4837 #include <$SV_MODULE_HEADER>
mathieu@468 4838 _ACEOF
mathieu@468 4839 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 4840 case "(($ac_try" in
mathieu@468 4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 4842 *) ac_try_echo=$ac_try;;
mathieu@468 4843 esac
mathieu@468 4844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 4845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
mathieu@468 4846 ac_status=$?
mathieu@468 4847 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 4848 rm -f conftest.er1
mathieu@468 4849 cat conftest.err >&5
mathieu@468 4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 4851 (exit $ac_status); } >/dev/null && {
mathieu@468 4852 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 4853 test ! -s conftest.err
mathieu@468 4854 }; then
mathieu@468 4855 ac_header_preproc=yes
mathieu@468 4856 else
mathieu@468 4857 echo "$as_me: failed program was:" >&5
mathieu@468 4858 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 4859
mathieu@468 4860 ac_header_preproc=no
mathieu@468 4861 fi
mathieu@468 4862
mathieu@468 4863 rm -f conftest.err conftest.$ac_ext
mathieu@468 4864 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 4865 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 4866
mathieu@468 4867 # So? What about this header?
mathieu@468 4868 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 4869 yes:no: )
mathieu@468 4870 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 4871 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 4872 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 4873 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 4874 ac_header_preproc=yes
mathieu@468 4875 ;;
mathieu@468 4876 no:yes:* )
mathieu@468 4877 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 4878 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 4879 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 4880 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 4881 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 4882 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 4883 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 4884 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 4885 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 4886 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 4887 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 4888 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 4889 ( cat <<\_ASBOX
mathieu@468 4890 ## ------------------------------------------- ##
mathieu@468 4891 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 4892 ## ------------------------------------------- ##
mathieu@468 4893 _ASBOX
mathieu@468 4894 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 4895 ;;
mathieu@468 4896 esac
mathieu@468 4897 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 4898 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 4899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 4900 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 4901 else
mathieu@468 4902 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 4903 fi
mathieu@468 4904 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 4905 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 4906 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 4907
mathieu@468 4908 fi
mathieu@468 4909 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 4910 HAVES="$HAVES $SV_MODULE_HAVE"
Chris@350 4911 else
mathieu@468 4912 { { echo "$as_me:$LINENO: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&5
mathieu@468 4913 echo "$as_me: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 4914 { (exit 1); exit 1; }; }
Chris@350 4915 fi
Chris@350 4916
Chris@350 4917
Chris@350 4918 if test -n "$SV_MODULE_LIB"; then
mathieu@468 4919 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 4920 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 4921 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 4922 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 4923 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 4924 else
Chris@350 4925 ac_check_lib_save_LIBS=$LIBS
Chris@350 4926 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 4927 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 4928 /* confdefs.h. */
mathieu@468 4929 _ACEOF
mathieu@468 4930 cat confdefs.h >>conftest.$ac_ext
mathieu@468 4931 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 4932 /* end confdefs.h. */
Chris@350 4933
Chris@350 4934 /* Override any GCC internal prototype to avoid an error.
Chris@350 4935 Use char because int might match the return type of a GCC
Chris@350 4936 builtin and then its argument prototype would still apply. */
Chris@350 4937 #ifdef __cplusplus
Chris@350 4938 extern "C"
Chris@350 4939 #endif
Chris@350 4940 char $SV_MODULE_FUNC ();
Chris@350 4941 int
Chris@350 4942 main ()
Chris@350 4943 {
Chris@350 4944 return $SV_MODULE_FUNC ();
Chris@350 4945 ;
Chris@350 4946 return 0;
Chris@350 4947 }
Chris@350 4948 _ACEOF
mathieu@468 4949 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 4950 if { (ac_try="$ac_link"
mathieu@468 4951 case "(($ac_try" in
mathieu@468 4952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 4953 *) ac_try_echo=$ac_try;;
mathieu@468 4954 esac
mathieu@468 4955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 4956 (eval "$ac_link") 2>conftest.er1
mathieu@468 4957 ac_status=$?
mathieu@468 4958 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 4959 rm -f conftest.er1
mathieu@468 4960 cat conftest.err >&5
mathieu@468 4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 4962 (exit $ac_status); } && {
mathieu@468 4963 test -z "$ac_cxx_werror_flag" ||
mathieu@468 4964 test ! -s conftest.err
mathieu@468 4965 } && test -s conftest$ac_exeext &&
mathieu@468 4966 $as_test_x conftest$ac_exeext; then
Chris@350 4967 eval "$as_ac_Lib=yes"
Chris@350 4968 else
mathieu@468 4969 echo "$as_me: failed program was:" >&5
mathieu@468 4970 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 4971
mathieu@468 4972 eval "$as_ac_Lib=no"
mathieu@468 4973 fi
mathieu@468 4974
mathieu@468 4975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 4976 conftest$ac_exeext conftest.$ac_ext
Chris@350 4977 LIBS=$ac_check_lib_save_LIBS
Chris@350 4978 fi
mathieu@468 4979 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 4980 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 4981 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 4982 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@350 4983 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 4984 else
mathieu@468 4985 { { echo "$as_me:$LINENO: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&5
mathieu@468 4986 echo "$as_me: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 4987 { (exit 1); exit 1; }; }
Chris@350 4988 fi
Chris@350 4989
Chris@350 4990 fi
Chris@350 4991 fi
Chris@350 4992
Chris@350 4993
Chris@350 4994 SV_MODULE_MODULE=fftw3f
Chris@350 4995 SV_MODULE_VERSION_TEST="fftw3f >= 3.0.0"
Chris@350 4996 SV_MODULE_HEADER=fftw3.h
Chris@350 4997 SV_MODULE_LIB=fftw3f
Chris@350 4998 SV_MODULE_FUNC=fftwf_execute
Chris@350 4999 SV_MODULE_HAVE=HAVE_$(echo fftw3f | tr 'a-z' 'A-Z')
Chris@350 5000 SV_MODULE_FAILED=1
Chris@405 5001 if test -n "$fftw3f_LIBS" ; then
mathieu@468 5002 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 5003 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@405 5004 CXXFLAGS="$CXXFLAGS $fftw3f_CFLAGS"
Chris@405 5005 LIBS="$LIBS $fftw3f_LIBS"
Chris@405 5006 SV_MODULE_FAILED=""
Chris@405 5007 fi
Chris@350 5008 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 5009 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 5010 fi
Chris@405 5011 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@350 5012
Chris@350 5013 pkg_failed=no
mathieu@468 5014 { echo "$as_me:$LINENO: checking for fftw3f" >&5
mathieu@468 5015 echo $ECHO_N "checking for fftw3f... $ECHO_C" >&6; }
Chris@350 5016
Chris@457 5017 if test -n "$fftw3f_CFLAGS"; then
Chris@457 5018 pkg_cv_fftw3f_CFLAGS="$fftw3f_CFLAGS"
Chris@457 5019 elif test -n "$PKG_CONFIG"; then
Chris@457 5020 if test -n "$PKG_CONFIG" && \
mathieu@468 5021 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 5022 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 5023 ac_status=$?
mathieu@468 5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 5025 (exit $ac_status); }; then
Chris@350 5026 pkg_cv_fftw3f_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 5027 else
Chris@350 5028 pkg_failed=yes
Chris@350 5029 fi
Chris@457 5030 else
Chris@457 5031 pkg_failed=untried
Chris@457 5032 fi
Chris@457 5033 if test -n "$fftw3f_LIBS"; then
Chris@457 5034 pkg_cv_fftw3f_LIBS="$fftw3f_LIBS"
Chris@457 5035 elif test -n "$PKG_CONFIG"; then
Chris@457 5036 if test -n "$PKG_CONFIG" && \
mathieu@468 5037 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 5038 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 5039 ac_status=$?
mathieu@468 5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 5041 (exit $ac_status); }; then
Chris@350 5042 pkg_cv_fftw3f_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 5043 else
Chris@350 5044 pkg_failed=yes
Chris@350 5045 fi
Chris@457 5046 else
Chris@457 5047 pkg_failed=untried
Chris@350 5048 fi
Chris@350 5049
Chris@350 5050
Chris@350 5051
Chris@350 5052 if test $pkg_failed = yes; then
mathieu@468 5053 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 5054 echo "${ECHO_T}no" >&6; }
Chris@350 5055
Chris@350 5056 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@350 5057 _pkg_short_errors_supported=yes
Chris@350 5058 else
Chris@350 5059 _pkg_short_errors_supported=no
Chris@350 5060 fi
Chris@350 5061 if test $_pkg_short_errors_supported = yes; then
Chris@457 5062 fftw3f_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 5063 else
Chris@457 5064 fftw3f_PKG_ERRORS=`$PKG_CONFIG --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 5065 fi
Chris@350 5066 # Put the nasty error message in config.log where it belongs
Chris@350 5067 echo "$fftw3f_PKG_ERRORS" >&5
Chris@350 5068
mathieu@468 5069 { echo "$as_me:$LINENO: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 5070 echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 5071 elif test $pkg_failed = untried; then
mathieu@468 5072 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 5073 echo "${ECHO_T}no" >&6; }
mathieu@468 5074 { echo "$as_me:$LINENO: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 5075 echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 5076 else
Chris@350 5077 fftw3f_CFLAGS=$pkg_cv_fftw3f_CFLAGS
Chris@350 5078 fftw3f_LIBS=$pkg_cv_fftw3f_LIBS
mathieu@468 5079 { echo "$as_me:$LINENO: result: yes" >&5
mathieu@468 5080 echo "${ECHO_T}yes" >&6; }
Chris@350 5081 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $fftw3f_CFLAGS";LIBS="$LIBS $fftw3f_LIBS";SV_MODULE_FAILED=""
Chris@350 5082 fi
Chris@350 5083 fi
Chris@350 5084 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 5085 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 5086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 5087 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 5088 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 5089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 5090 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 5091 fi
mathieu@468 5092 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 5093 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 5094 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 5095 else
mathieu@468 5096 # Is the header compilable?
mathieu@468 5097 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 5098 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 5099 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 5100 /* confdefs.h. */
mathieu@468 5101 _ACEOF
mathieu@468 5102 cat confdefs.h >>conftest.$ac_ext
mathieu@468 5103 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 5104 /* end confdefs.h. */
mathieu@468 5105 $ac_includes_default
mathieu@468 5106 #include <$SV_MODULE_HEADER>
mathieu@468 5107 _ACEOF
mathieu@468 5108 rm -f conftest.$ac_objext
mathieu@468 5109 if { (ac_try="$ac_compile"
mathieu@468 5110 case "(($ac_try" in
mathieu@468 5111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 5112 *) ac_try_echo=$ac_try;;
mathieu@468 5113 esac
mathieu@468 5114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 5115 (eval "$ac_compile") 2>conftest.er1
mathieu@468 5116 ac_status=$?
mathieu@468 5117 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 5118 rm -f conftest.er1
mathieu@468 5119 cat conftest.err >&5
mathieu@468 5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 5121 (exit $ac_status); } && {
mathieu@468 5122 test -z "$ac_cxx_werror_flag" ||
mathieu@468 5123 test ! -s conftest.err
mathieu@468 5124 } && test -s conftest.$ac_objext; then
mathieu@468 5125 ac_header_compiler=yes
mathieu@468 5126 else
mathieu@468 5127 echo "$as_me: failed program was:" >&5
mathieu@468 5128 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 5129
mathieu@468 5130 ac_header_compiler=no
mathieu@468 5131 fi
mathieu@468 5132
mathieu@468 5133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 5134 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 5135 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 5136
mathieu@468 5137 # Is the header present?
mathieu@468 5138 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 5139 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 5140 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 5141 /* confdefs.h. */
mathieu@468 5142 _ACEOF
mathieu@468 5143 cat confdefs.h >>conftest.$ac_ext
mathieu@468 5144 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 5145 /* end confdefs.h. */
mathieu@468 5146 #include <$SV_MODULE_HEADER>
mathieu@468 5147 _ACEOF
mathieu@468 5148 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 5149 case "(($ac_try" in
mathieu@468 5150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 5151 *) ac_try_echo=$ac_try;;
mathieu@468 5152 esac
mathieu@468 5153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 5154 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
mathieu@468 5155 ac_status=$?
mathieu@468 5156 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 5157 rm -f conftest.er1
mathieu@468 5158 cat conftest.err >&5
mathieu@468 5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 5160 (exit $ac_status); } >/dev/null && {
mathieu@468 5161 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 5162 test ! -s conftest.err
mathieu@468 5163 }; then
mathieu@468 5164 ac_header_preproc=yes
mathieu@468 5165 else
mathieu@468 5166 echo "$as_me: failed program was:" >&5
mathieu@468 5167 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 5168
mathieu@468 5169 ac_header_preproc=no
mathieu@468 5170 fi
mathieu@468 5171
mathieu@468 5172 rm -f conftest.err conftest.$ac_ext
mathieu@468 5173 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 5174 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 5175
mathieu@468 5176 # So? What about this header?
mathieu@468 5177 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 5178 yes:no: )
mathieu@468 5179 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 5180 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 5181 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 5182 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 5183 ac_header_preproc=yes
mathieu@468 5184 ;;
mathieu@468 5185 no:yes:* )
mathieu@468 5186 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 5187 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 5188 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 5189 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 5190 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 5191 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 5192 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 5193 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 5194 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 5195 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 5196 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 5197 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 5198 ( cat <<\_ASBOX
mathieu@468 5199 ## ------------------------------------------- ##
mathieu@468 5200 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 5201 ## ------------------------------------------- ##
mathieu@468 5202 _ASBOX
mathieu@468 5203 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 5204 ;;
mathieu@468 5205 esac
mathieu@468 5206 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 5207 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 5208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 5209 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 5210 else
mathieu@468 5211 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 5212 fi
mathieu@468 5213 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 5214 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 5215 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 5216
mathieu@468 5217 fi
mathieu@468 5218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 5219 HAVES="$HAVES $SV_MODULE_HAVE"
Chris@350 5220 else
mathieu@468 5221 { { echo "$as_me:$LINENO: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&5
mathieu@468 5222 echo "$as_me: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 5223 { (exit 1); exit 1; }; }
Chris@350 5224 fi
Chris@350 5225
Chris@350 5226
Chris@350 5227 if test -n "$SV_MODULE_LIB"; then
mathieu@468 5228 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 5229 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 5230 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 5231 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 5232 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 5233 else
Chris@350 5234 ac_check_lib_save_LIBS=$LIBS
Chris@350 5235 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 5236 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 5237 /* confdefs.h. */
mathieu@468 5238 _ACEOF
mathieu@468 5239 cat confdefs.h >>conftest.$ac_ext
mathieu@468 5240 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 5241 /* end confdefs.h. */
Chris@350 5242
Chris@350 5243 /* Override any GCC internal prototype to avoid an error.
Chris@350 5244 Use char because int might match the return type of a GCC
Chris@350 5245 builtin and then its argument prototype would still apply. */
Chris@350 5246 #ifdef __cplusplus
Chris@350 5247 extern "C"
Chris@350 5248 #endif
Chris@350 5249 char $SV_MODULE_FUNC ();
Chris@350 5250 int
Chris@350 5251 main ()
Chris@350 5252 {
Chris@350 5253 return $SV_MODULE_FUNC ();
Chris@350 5254 ;
Chris@350 5255 return 0;
Chris@350 5256 }
Chris@350 5257 _ACEOF
mathieu@468 5258 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 5259 if { (ac_try="$ac_link"
mathieu@468 5260 case "(($ac_try" in
mathieu@468 5261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 5262 *) ac_try_echo=$ac_try;;
mathieu@468 5263 esac
mathieu@468 5264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 5265 (eval "$ac_link") 2>conftest.er1
mathieu@468 5266 ac_status=$?
mathieu@468 5267 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 5268 rm -f conftest.er1
mathieu@468 5269 cat conftest.err >&5
mathieu@468 5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 5271 (exit $ac_status); } && {
mathieu@468 5272 test -z "$ac_cxx_werror_flag" ||
mathieu@468 5273 test ! -s conftest.err
mathieu@468 5274 } && test -s conftest$ac_exeext &&
mathieu@468 5275 $as_test_x conftest$ac_exeext; then
Chris@350 5276 eval "$as_ac_Lib=yes"
Chris@350 5277 else
mathieu@468 5278 echo "$as_me: failed program was:" >&5
mathieu@468 5279 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 5280
mathieu@468 5281 eval "$as_ac_Lib=no"
mathieu@468 5282 fi
mathieu@468 5283
mathieu@468 5284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 5285 conftest$ac_exeext conftest.$ac_ext
Chris@350 5286 LIBS=$ac_check_lib_save_LIBS
Chris@350 5287 fi
mathieu@468 5288 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 5289 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 5290 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 5291 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@350 5292 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 5293 else
mathieu@468 5294 { { echo "$as_me:$LINENO: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&5
mathieu@468 5295 echo "$as_me: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 5296 { (exit 1); exit 1; }; }
Chris@350 5297 fi
Chris@350 5298
Chris@350 5299 fi
Chris@350 5300 fi
Chris@350 5301
Chris@350 5302
Chris@350 5303 SV_MODULE_MODULE=sndfile
Chris@350 5304 SV_MODULE_VERSION_TEST="sndfile >= 1.0.16"
Chris@350 5305 SV_MODULE_HEADER=sndfile.h
Chris@350 5306 SV_MODULE_LIB=sndfile
Chris@350 5307 SV_MODULE_FUNC=sf_open
Chris@350 5308 SV_MODULE_HAVE=HAVE_$(echo sndfile | tr 'a-z' 'A-Z')
Chris@350 5309 SV_MODULE_FAILED=1
Chris@405 5310 if test -n "$sndfile_LIBS" ; then
mathieu@468 5311 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 5312 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@405 5313 CXXFLAGS="$CXXFLAGS $sndfile_CFLAGS"
Chris@405 5314 LIBS="$LIBS $sndfile_LIBS"
Chris@405 5315 SV_MODULE_FAILED=""
Chris@405 5316 fi
Chris@350 5317 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 5318 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 5319 fi
Chris@405 5320 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@350 5321
Chris@350 5322 pkg_failed=no
mathieu@468 5323 { echo "$as_me:$LINENO: checking for sndfile" >&5
mathieu@468 5324 echo $ECHO_N "checking for sndfile... $ECHO_C" >&6; }
Chris@350 5325
Chris@457 5326 if test -n "$sndfile_CFLAGS"; then
Chris@457 5327 pkg_cv_sndfile_CFLAGS="$sndfile_CFLAGS"
Chris@457 5328 elif test -n "$PKG_CONFIG"; then
Chris@457 5329 if test -n "$PKG_CONFIG" && \
mathieu@468 5330 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 5331 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 5332 ac_status=$?
mathieu@468 5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 5334 (exit $ac_status); }; then
Chris@350 5335 pkg_cv_sndfile_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 5336 else
Chris@350 5337 pkg_failed=yes
Chris@350 5338 fi
Chris@457 5339 else
Chris@457 5340 pkg_failed=untried
Chris@457 5341 fi
Chris@457 5342 if test -n "$sndfile_LIBS"; then
Chris@457 5343 pkg_cv_sndfile_LIBS="$sndfile_LIBS"
Chris@457 5344 elif test -n "$PKG_CONFIG"; then
Chris@457 5345 if test -n "$PKG_CONFIG" && \
mathieu@468 5346 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 5347 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 5348 ac_status=$?
mathieu@468 5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 5350 (exit $ac_status); }; then
Chris@350 5351 pkg_cv_sndfile_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 5352 else
Chris@350 5353 pkg_failed=yes
Chris@350 5354 fi
Chris@457 5355 else
Chris@457 5356 pkg_failed=untried
Chris@350 5357 fi
Chris@350 5358
Chris@350 5359
Chris@350 5360
Chris@350 5361 if test $pkg_failed = yes; then
mathieu@468 5362 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 5363 echo "${ECHO_T}no" >&6; }
Chris@350 5364
Chris@350 5365 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@350 5366 _pkg_short_errors_supported=yes
Chris@350 5367 else
Chris@350 5368 _pkg_short_errors_supported=no
Chris@350 5369 fi
Chris@350 5370 if test $_pkg_short_errors_supported = yes; then
Chris@457 5371 sndfile_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 5372 else
Chris@457 5373 sndfile_PKG_ERRORS=`$PKG_CONFIG --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 5374 fi
Chris@350 5375 # Put the nasty error message in config.log where it belongs
Chris@350 5376 echo "$sndfile_PKG_ERRORS" >&5
Chris@350 5377
mathieu@468 5378 { echo "$as_me:$LINENO: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 5379 echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 5380 elif test $pkg_failed = untried; then
mathieu@468 5381 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 5382 echo "${ECHO_T}no" >&6; }
mathieu@468 5383 { echo "$as_me:$LINENO: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 5384 echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 5385 else
Chris@350 5386 sndfile_CFLAGS=$pkg_cv_sndfile_CFLAGS
Chris@350 5387 sndfile_LIBS=$pkg_cv_sndfile_LIBS
mathieu@468 5388 { echo "$as_me:$LINENO: result: yes" >&5
mathieu@468 5389 echo "${ECHO_T}yes" >&6; }
Chris@350 5390 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $sndfile_CFLAGS";LIBS="$LIBS $sndfile_LIBS";SV_MODULE_FAILED=""
Chris@350 5391 fi
Chris@350 5392 fi
Chris@350 5393 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 5394 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 5395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 5396 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 5397 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 5398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 5399 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 5400 fi
mathieu@468 5401 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 5402 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 5403 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 5404 else
mathieu@468 5405 # Is the header compilable?
mathieu@468 5406 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 5407 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 5408 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 5409 /* confdefs.h. */
mathieu@468 5410 _ACEOF
mathieu@468 5411 cat confdefs.h >>conftest.$ac_ext
mathieu@468 5412 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 5413 /* end confdefs.h. */
mathieu@468 5414 $ac_includes_default
mathieu@468 5415 #include <$SV_MODULE_HEADER>
mathieu@468 5416 _ACEOF
mathieu@468 5417 rm -f conftest.$ac_objext
mathieu@468 5418 if { (ac_try="$ac_compile"
mathieu@468 5419 case "(($ac_try" in
mathieu@468 5420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 5421 *) ac_try_echo=$ac_try;;
mathieu@468 5422 esac
mathieu@468 5423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 5424 (eval "$ac_compile") 2>conftest.er1
mathieu@468 5425 ac_status=$?
mathieu@468 5426 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 5427 rm -f conftest.er1
mathieu@468 5428 cat conftest.err >&5
mathieu@468 5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 5430 (exit $ac_status); } && {
mathieu@468 5431 test -z "$ac_cxx_werror_flag" ||
mathieu@468 5432 test ! -s conftest.err
mathieu@468 5433 } && test -s conftest.$ac_objext; then
mathieu@468 5434 ac_header_compiler=yes
mathieu@468 5435 else
mathieu@468 5436 echo "$as_me: failed program was:" >&5
mathieu@468 5437 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 5438
mathieu@468 5439 ac_header_compiler=no
mathieu@468 5440 fi
mathieu@468 5441
mathieu@468 5442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 5443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 5444 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 5445
mathieu@468 5446 # Is the header present?
mathieu@468 5447 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 5448 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 5449 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 5450 /* confdefs.h. */
mathieu@468 5451 _ACEOF
mathieu@468 5452 cat confdefs.h >>conftest.$ac_ext
mathieu@468 5453 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 5454 /* end confdefs.h. */
mathieu@468 5455 #include <$SV_MODULE_HEADER>
mathieu@468 5456 _ACEOF
mathieu@468 5457 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 5458 case "(($ac_try" in
mathieu@468 5459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 5460 *) ac_try_echo=$ac_try;;
mathieu@468 5461 esac
mathieu@468 5462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 5463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
mathieu@468 5464 ac_status=$?
mathieu@468 5465 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 5466 rm -f conftest.er1
mathieu@468 5467 cat conftest.err >&5
mathieu@468 5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 5469 (exit $ac_status); } >/dev/null && {
mathieu@468 5470 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 5471 test ! -s conftest.err
mathieu@468 5472 }; then
mathieu@468 5473 ac_header_preproc=yes
mathieu@468 5474 else
mathieu@468 5475 echo "$as_me: failed program was:" >&5
mathieu@468 5476 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 5477
mathieu@468 5478 ac_header_preproc=no
mathieu@468 5479 fi
mathieu@468 5480
mathieu@468 5481 rm -f conftest.err conftest.$ac_ext
mathieu@468 5482 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 5483 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 5484
mathieu@468 5485 # So? What about this header?
mathieu@468 5486 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 5487 yes:no: )
mathieu@468 5488 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 5489 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 5490 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 5491 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 5492 ac_header_preproc=yes
mathieu@468 5493 ;;
mathieu@468 5494 no:yes:* )
mathieu@468 5495 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 5496 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 5497 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 5498 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 5499 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 5500 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 5501 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 5502 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 5503 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 5504 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 5505 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 5506 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 5507 ( cat <<\_ASBOX
mathieu@468 5508 ## ------------------------------------------- ##
mathieu@468 5509 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 5510 ## ------------------------------------------- ##
mathieu@468 5511 _ASBOX
mathieu@468 5512 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 5513 ;;
mathieu@468 5514 esac
mathieu@468 5515 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 5516 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 5517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 5518 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 5519 else
mathieu@468 5520 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 5521 fi
mathieu@468 5522 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 5523 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 5524 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 5525
mathieu@468 5526 fi
mathieu@468 5527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 5528 HAVES="$HAVES $SV_MODULE_HAVE"
Chris@350 5529 else
mathieu@468 5530 { { echo "$as_me:$LINENO: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&5
mathieu@468 5531 echo "$as_me: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 5532 { (exit 1); exit 1; }; }
Chris@350 5533 fi
Chris@350 5534
Chris@350 5535
Chris@350 5536 if test -n "$SV_MODULE_LIB"; then
mathieu@468 5537 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 5538 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 5539 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 5540 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 5541 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 5542 else
Chris@350 5543 ac_check_lib_save_LIBS=$LIBS
Chris@350 5544 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 5545 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 5546 /* confdefs.h. */
mathieu@468 5547 _ACEOF
mathieu@468 5548 cat confdefs.h >>conftest.$ac_ext
mathieu@468 5549 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 5550 /* end confdefs.h. */
Chris@350 5551
Chris@350 5552 /* Override any GCC internal prototype to avoid an error.
Chris@350 5553 Use char because int might match the return type of a GCC
Chris@350 5554 builtin and then its argument prototype would still apply. */
Chris@350 5555 #ifdef __cplusplus
Chris@350 5556 extern "C"
Chris@350 5557 #endif
Chris@350 5558 char $SV_MODULE_FUNC ();
Chris@350 5559 int
Chris@350 5560 main ()
Chris@350 5561 {
Chris@350 5562 return $SV_MODULE_FUNC ();
Chris@350 5563 ;
Chris@350 5564 return 0;
Chris@350 5565 }
Chris@350 5566 _ACEOF
mathieu@468 5567 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 5568 if { (ac_try="$ac_link"
mathieu@468 5569 case "(($ac_try" in
mathieu@468 5570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 5571 *) ac_try_echo=$ac_try;;
mathieu@468 5572 esac
mathieu@468 5573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 5574 (eval "$ac_link") 2>conftest.er1
mathieu@468 5575 ac_status=$?
mathieu@468 5576 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 5577 rm -f conftest.er1
mathieu@468 5578 cat conftest.err >&5
mathieu@468 5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 5580 (exit $ac_status); } && {
mathieu@468 5581 test -z "$ac_cxx_werror_flag" ||
mathieu@468 5582 test ! -s conftest.err
mathieu@468 5583 } && test -s conftest$ac_exeext &&
mathieu@468 5584 $as_test_x conftest$ac_exeext; then
Chris@350 5585 eval "$as_ac_Lib=yes"
Chris@350 5586 else
mathieu@468 5587 echo "$as_me: failed program was:" >&5
mathieu@468 5588 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 5589
mathieu@468 5590 eval "$as_ac_Lib=no"
mathieu@468 5591 fi
mathieu@468 5592
mathieu@468 5593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 5594 conftest$ac_exeext conftest.$ac_ext
Chris@350 5595 LIBS=$ac_check_lib_save_LIBS
Chris@350 5596 fi
mathieu@468 5597 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 5598 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 5599 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 5600 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@350 5601 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 5602 else
mathieu@468 5603 { { echo "$as_me:$LINENO: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&5
mathieu@468 5604 echo "$as_me: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 5605 { (exit 1); exit 1; }; }
Chris@350 5606 fi
Chris@350 5607
Chris@350 5608 fi
Chris@350 5609 fi
Chris@350 5610
Chris@350 5611
Chris@350 5612 SV_MODULE_MODULE=samplerate
Chris@350 5613 SV_MODULE_VERSION_TEST="samplerate >= 0.1.2"
Chris@350 5614 SV_MODULE_HEADER=samplerate.h
Chris@350 5615 SV_MODULE_LIB=samplerate
Chris@350 5616 SV_MODULE_FUNC=src_new
Chris@350 5617 SV_MODULE_HAVE=HAVE_$(echo samplerate | tr 'a-z' 'A-Z')
Chris@350 5618 SV_MODULE_FAILED=1
Chris@405 5619 if test -n "$samplerate_LIBS" ; then
mathieu@468 5620 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 5621 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@405 5622 CXXFLAGS="$CXXFLAGS $samplerate_CFLAGS"
Chris@405 5623 LIBS="$LIBS $samplerate_LIBS"
Chris@405 5624 SV_MODULE_FAILED=""
Chris@405 5625 fi
Chris@350 5626 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 5627 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 5628 fi
Chris@405 5629 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@350 5630
Chris@350 5631 pkg_failed=no
mathieu@468 5632 { echo "$as_me:$LINENO: checking for samplerate" >&5
mathieu@468 5633 echo $ECHO_N "checking for samplerate... $ECHO_C" >&6; }
Chris@350 5634
Chris@457 5635 if test -n "$samplerate_CFLAGS"; then
Chris@457 5636 pkg_cv_samplerate_CFLAGS="$samplerate_CFLAGS"
Chris@457 5637 elif test -n "$PKG_CONFIG"; then
Chris@457 5638 if test -n "$PKG_CONFIG" && \
mathieu@468 5639 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 5640 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 5641 ac_status=$?
mathieu@468 5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 5643 (exit $ac_status); }; then
Chris@350 5644 pkg_cv_samplerate_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 5645 else
Chris@350 5646 pkg_failed=yes
Chris@350 5647 fi
Chris@457 5648 else
Chris@457 5649 pkg_failed=untried
Chris@457 5650 fi
Chris@457 5651 if test -n "$samplerate_LIBS"; then
Chris@457 5652 pkg_cv_samplerate_LIBS="$samplerate_LIBS"
Chris@457 5653 elif test -n "$PKG_CONFIG"; then
Chris@457 5654 if test -n "$PKG_CONFIG" && \
mathieu@468 5655 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 5656 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 5657 ac_status=$?
mathieu@468 5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 5659 (exit $ac_status); }; then
Chris@350 5660 pkg_cv_samplerate_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 5661 else
Chris@350 5662 pkg_failed=yes
Chris@350 5663 fi
Chris@457 5664 else
Chris@457 5665 pkg_failed=untried
Chris@350 5666 fi
Chris@350 5667
Chris@350 5668
Chris@350 5669
Chris@350 5670 if test $pkg_failed = yes; then
mathieu@468 5671 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 5672 echo "${ECHO_T}no" >&6; }
Chris@350 5673
Chris@350 5674 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@350 5675 _pkg_short_errors_supported=yes
Chris@350 5676 else
Chris@350 5677 _pkg_short_errors_supported=no
Chris@350 5678 fi
Chris@350 5679 if test $_pkg_short_errors_supported = yes; then
Chris@457 5680 samplerate_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 5681 else
Chris@457 5682 samplerate_PKG_ERRORS=`$PKG_CONFIG --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 5683 fi
Chris@350 5684 # Put the nasty error message in config.log where it belongs
Chris@350 5685 echo "$samplerate_PKG_ERRORS" >&5
Chris@350 5686
mathieu@468 5687 { echo "$as_me:$LINENO: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 5688 echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 5689 elif test $pkg_failed = untried; then
mathieu@468 5690 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 5691 echo "${ECHO_T}no" >&6; }
mathieu@468 5692 { echo "$as_me:$LINENO: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 5693 echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 5694 else
Chris@350 5695 samplerate_CFLAGS=$pkg_cv_samplerate_CFLAGS
Chris@350 5696 samplerate_LIBS=$pkg_cv_samplerate_LIBS
mathieu@468 5697 { echo "$as_me:$LINENO: result: yes" >&5
mathieu@468 5698 echo "${ECHO_T}yes" >&6; }
Chris@350 5699 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $samplerate_CFLAGS";LIBS="$LIBS $samplerate_LIBS";SV_MODULE_FAILED=""
Chris@350 5700 fi
Chris@350 5701 fi
Chris@350 5702 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 5703 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 5704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 5705 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 5706 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 5707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 5708 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 5709 fi
mathieu@468 5710 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 5711 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 5712 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 5713 else
mathieu@468 5714 # Is the header compilable?
mathieu@468 5715 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 5716 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 5717 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 5718 /* confdefs.h. */
mathieu@468 5719 _ACEOF
mathieu@468 5720 cat confdefs.h >>conftest.$ac_ext
mathieu@468 5721 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 5722 /* end confdefs.h. */
mathieu@468 5723 $ac_includes_default
mathieu@468 5724 #include <$SV_MODULE_HEADER>
mathieu@468 5725 _ACEOF
mathieu@468 5726 rm -f conftest.$ac_objext
mathieu@468 5727 if { (ac_try="$ac_compile"
mathieu@468 5728 case "(($ac_try" in
mathieu@468 5729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 5730 *) ac_try_echo=$ac_try;;
mathieu@468 5731 esac
mathieu@468 5732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 5733 (eval "$ac_compile") 2>conftest.er1
mathieu@468 5734 ac_status=$?
mathieu@468 5735 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 5736 rm -f conftest.er1
mathieu@468 5737 cat conftest.err >&5
mathieu@468 5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 5739 (exit $ac_status); } && {
mathieu@468 5740 test -z "$ac_cxx_werror_flag" ||
mathieu@468 5741 test ! -s conftest.err
mathieu@468 5742 } && test -s conftest.$ac_objext; then
mathieu@468 5743 ac_header_compiler=yes
mathieu@468 5744 else
mathieu@468 5745 echo "$as_me: failed program was:" >&5
mathieu@468 5746 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 5747
mathieu@468 5748 ac_header_compiler=no
mathieu@468 5749 fi
mathieu@468 5750
mathieu@468 5751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 5752 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 5753 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 5754
mathieu@468 5755 # Is the header present?
mathieu@468 5756 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 5757 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 5758 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 5759 /* confdefs.h. */
mathieu@468 5760 _ACEOF
mathieu@468 5761 cat confdefs.h >>conftest.$ac_ext
mathieu@468 5762 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 5763 /* end confdefs.h. */
mathieu@468 5764 #include <$SV_MODULE_HEADER>
mathieu@468 5765 _ACEOF
mathieu@468 5766 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 5767 case "(($ac_try" in
mathieu@468 5768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 5769 *) ac_try_echo=$ac_try;;
mathieu@468 5770 esac
mathieu@468 5771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 5772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
mathieu@468 5773 ac_status=$?
mathieu@468 5774 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 5775 rm -f conftest.er1
mathieu@468 5776 cat conftest.err >&5
mathieu@468 5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 5778 (exit $ac_status); } >/dev/null && {
mathieu@468 5779 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 5780 test ! -s conftest.err
mathieu@468 5781 }; then
mathieu@468 5782 ac_header_preproc=yes
mathieu@468 5783 else
mathieu@468 5784 echo "$as_me: failed program was:" >&5
mathieu@468 5785 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 5786
mathieu@468 5787 ac_header_preproc=no
mathieu@468 5788 fi
mathieu@468 5789
mathieu@468 5790 rm -f conftest.err conftest.$ac_ext
mathieu@468 5791 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 5792 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 5793
mathieu@468 5794 # So? What about this header?
mathieu@468 5795 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 5796 yes:no: )
mathieu@468 5797 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 5798 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 5799 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 5800 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 5801 ac_header_preproc=yes
mathieu@468 5802 ;;
mathieu@468 5803 no:yes:* )
mathieu@468 5804 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 5805 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 5806 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 5807 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 5808 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 5809 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 5810 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 5811 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 5812 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 5813 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 5814 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 5815 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 5816 ( cat <<\_ASBOX
mathieu@468 5817 ## ------------------------------------------- ##
mathieu@468 5818 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 5819 ## ------------------------------------------- ##
mathieu@468 5820 _ASBOX
mathieu@468 5821 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 5822 ;;
mathieu@468 5823 esac
mathieu@468 5824 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 5825 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 5826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 5827 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 5828 else
mathieu@468 5829 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 5830 fi
mathieu@468 5831 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 5832 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 5833 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 5834
mathieu@468 5835 fi
mathieu@468 5836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 5837 HAVES="$HAVES $SV_MODULE_HAVE"
Chris@350 5838 else
mathieu@468 5839 { { echo "$as_me:$LINENO: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&5
mathieu@468 5840 echo "$as_me: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 5841 { (exit 1); exit 1; }; }
Chris@350 5842 fi
Chris@350 5843
Chris@350 5844
Chris@350 5845 if test -n "$SV_MODULE_LIB"; then
mathieu@468 5846 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 5847 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 5848 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 5849 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 5850 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 5851 else
Chris@350 5852 ac_check_lib_save_LIBS=$LIBS
Chris@350 5853 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 5854 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 5855 /* confdefs.h. */
mathieu@468 5856 _ACEOF
mathieu@468 5857 cat confdefs.h >>conftest.$ac_ext
mathieu@468 5858 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 5859 /* end confdefs.h. */
Chris@350 5860
Chris@350 5861 /* Override any GCC internal prototype to avoid an error.
Chris@350 5862 Use char because int might match the return type of a GCC
Chris@350 5863 builtin and then its argument prototype would still apply. */
Chris@350 5864 #ifdef __cplusplus
Chris@350 5865 extern "C"
Chris@350 5866 #endif
Chris@350 5867 char $SV_MODULE_FUNC ();
Chris@350 5868 int
Chris@350 5869 main ()
Chris@350 5870 {
Chris@350 5871 return $SV_MODULE_FUNC ();
Chris@350 5872 ;
Chris@350 5873 return 0;
Chris@350 5874 }
Chris@350 5875 _ACEOF
mathieu@468 5876 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 5877 if { (ac_try="$ac_link"
mathieu@468 5878 case "(($ac_try" in
mathieu@468 5879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 5880 *) ac_try_echo=$ac_try;;
mathieu@468 5881 esac
mathieu@468 5882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 5883 (eval "$ac_link") 2>conftest.er1
mathieu@468 5884 ac_status=$?
mathieu@468 5885 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 5886 rm -f conftest.er1
mathieu@468 5887 cat conftest.err >&5
mathieu@468 5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 5889 (exit $ac_status); } && {
mathieu@468 5890 test -z "$ac_cxx_werror_flag" ||
mathieu@468 5891 test ! -s conftest.err
mathieu@468 5892 } && test -s conftest$ac_exeext &&
mathieu@468 5893 $as_test_x conftest$ac_exeext; then
Chris@350 5894 eval "$as_ac_Lib=yes"
Chris@350 5895 else
mathieu@468 5896 echo "$as_me: failed program was:" >&5
mathieu@468 5897 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 5898
mathieu@468 5899 eval "$as_ac_Lib=no"
mathieu@468 5900 fi
mathieu@468 5901
mathieu@468 5902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 5903 conftest$ac_exeext conftest.$ac_ext
Chris@350 5904 LIBS=$ac_check_lib_save_LIBS
Chris@350 5905 fi
mathieu@468 5906 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 5907 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 5908 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 5909 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@350 5910 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 5911 else
mathieu@468 5912 { { echo "$as_me:$LINENO: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&5
mathieu@468 5913 echo "$as_me: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 5914 { (exit 1); exit 1; }; }
Chris@350 5915 fi
Chris@350 5916
Chris@350 5917 fi
Chris@350 5918 fi
Chris@350 5919
Chris@350 5920
Chris@350 5921 SV_MODULE_MODULE=vamp
Chris@350 5922 SV_MODULE_VERSION_TEST="vamp >= 2.1"
Chris@350 5923 SV_MODULE_HEADER=vamp/vamp.h
Chris@350 5924 SV_MODULE_LIB=
Chris@350 5925 SV_MODULE_FUNC=
Chris@350 5926 SV_MODULE_HAVE=HAVE_$(echo vamp | tr 'a-z' 'A-Z')
Chris@350 5927 SV_MODULE_FAILED=1
Chris@405 5928 if test -n "$vamp_LIBS" ; then
mathieu@468 5929 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 5930 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@405 5931 CXXFLAGS="$CXXFLAGS $vamp_CFLAGS"
Chris@405 5932 LIBS="$LIBS $vamp_LIBS"
Chris@405 5933 SV_MODULE_FAILED=""
Chris@405 5934 fi
Chris@350 5935 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 5936 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 5937 fi
Chris@405 5938 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@350 5939
Chris@350 5940 pkg_failed=no
mathieu@468 5941 { echo "$as_me:$LINENO: checking for vamp" >&5
mathieu@468 5942 echo $ECHO_N "checking for vamp... $ECHO_C" >&6; }
Chris@350 5943
Chris@457 5944 if test -n "$vamp_CFLAGS"; then
Chris@457 5945 pkg_cv_vamp_CFLAGS="$vamp_CFLAGS"
Chris@457 5946 elif test -n "$PKG_CONFIG"; then
Chris@457 5947 if test -n "$PKG_CONFIG" && \
mathieu@468 5948 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 5949 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 5950 ac_status=$?
mathieu@468 5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 5952 (exit $ac_status); }; then
Chris@350 5953 pkg_cv_vamp_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 5954 else
Chris@350 5955 pkg_failed=yes
Chris@350 5956 fi
Chris@457 5957 else
Chris@457 5958 pkg_failed=untried
Chris@457 5959 fi
Chris@457 5960 if test -n "$vamp_LIBS"; then
Chris@457 5961 pkg_cv_vamp_LIBS="$vamp_LIBS"
Chris@457 5962 elif test -n "$PKG_CONFIG"; then
Chris@457 5963 if test -n "$PKG_CONFIG" && \
mathieu@468 5964 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 5965 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 5966 ac_status=$?
mathieu@468 5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 5968 (exit $ac_status); }; then
Chris@350 5969 pkg_cv_vamp_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 5970 else
Chris@350 5971 pkg_failed=yes
Chris@350 5972 fi
Chris@457 5973 else
Chris@457 5974 pkg_failed=untried
Chris@350 5975 fi
Chris@350 5976
Chris@350 5977
Chris@350 5978
Chris@350 5979 if test $pkg_failed = yes; then
mathieu@468 5980 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 5981 echo "${ECHO_T}no" >&6; }
Chris@350 5982
Chris@350 5983 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@350 5984 _pkg_short_errors_supported=yes
Chris@350 5985 else
Chris@350 5986 _pkg_short_errors_supported=no
Chris@350 5987 fi
Chris@350 5988 if test $_pkg_short_errors_supported = yes; then
Chris@457 5989 vamp_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 5990 else
Chris@457 5991 vamp_PKG_ERRORS=`$PKG_CONFIG --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 5992 fi
Chris@350 5993 # Put the nasty error message in config.log where it belongs
Chris@350 5994 echo "$vamp_PKG_ERRORS" >&5
Chris@350 5995
mathieu@468 5996 { echo "$as_me:$LINENO: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 5997 echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 5998 elif test $pkg_failed = untried; then
mathieu@468 5999 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 6000 echo "${ECHO_T}no" >&6; }
mathieu@468 6001 { echo "$as_me:$LINENO: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 6002 echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 6003 else
Chris@350 6004 vamp_CFLAGS=$pkg_cv_vamp_CFLAGS
Chris@350 6005 vamp_LIBS=$pkg_cv_vamp_LIBS
mathieu@468 6006 { echo "$as_me:$LINENO: result: yes" >&5
mathieu@468 6007 echo "${ECHO_T}yes" >&6; }
Chris@350 6008 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $vamp_CFLAGS";LIBS="$LIBS $vamp_LIBS";SV_MODULE_FAILED=""
Chris@350 6009 fi
Chris@350 6010 fi
Chris@350 6011 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 6012 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 6013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 6014 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 6015 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 6016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 6017 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 6018 fi
mathieu@468 6019 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 6020 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 6021 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 6022 else
mathieu@468 6023 # Is the header compilable?
mathieu@468 6024 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 6025 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 6026 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 6027 /* confdefs.h. */
mathieu@468 6028 _ACEOF
mathieu@468 6029 cat confdefs.h >>conftest.$ac_ext
mathieu@468 6030 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 6031 /* end confdefs.h. */
mathieu@468 6032 $ac_includes_default
mathieu@468 6033 #include <$SV_MODULE_HEADER>
mathieu@468 6034 _ACEOF
mathieu@468 6035 rm -f conftest.$ac_objext
mathieu@468 6036 if { (ac_try="$ac_compile"
mathieu@468 6037 case "(($ac_try" in
mathieu@468 6038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 6039 *) ac_try_echo=$ac_try;;
mathieu@468 6040 esac
mathieu@468 6041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 6042 (eval "$ac_compile") 2>conftest.er1
mathieu@468 6043 ac_status=$?
mathieu@468 6044 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 6045 rm -f conftest.er1
mathieu@468 6046 cat conftest.err >&5
mathieu@468 6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 6048 (exit $ac_status); } && {
mathieu@468 6049 test -z "$ac_cxx_werror_flag" ||
mathieu@468 6050 test ! -s conftest.err
mathieu@468 6051 } && test -s conftest.$ac_objext; then
mathieu@468 6052 ac_header_compiler=yes
mathieu@468 6053 else
mathieu@468 6054 echo "$as_me: failed program was:" >&5
mathieu@468 6055 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 6056
mathieu@468 6057 ac_header_compiler=no
mathieu@468 6058 fi
mathieu@468 6059
mathieu@468 6060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 6061 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 6062 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 6063
mathieu@468 6064 # Is the header present?
mathieu@468 6065 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 6066 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 6067 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 6068 /* confdefs.h. */
mathieu@468 6069 _ACEOF
mathieu@468 6070 cat confdefs.h >>conftest.$ac_ext
mathieu@468 6071 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 6072 /* end confdefs.h. */
mathieu@468 6073 #include <$SV_MODULE_HEADER>
mathieu@468 6074 _ACEOF
mathieu@468 6075 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 6076 case "(($ac_try" in
mathieu@468 6077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 6078 *) ac_try_echo=$ac_try;;
mathieu@468 6079 esac
mathieu@468 6080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 6081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
mathieu@468 6082 ac_status=$?
mathieu@468 6083 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 6084 rm -f conftest.er1
mathieu@468 6085 cat conftest.err >&5
mathieu@468 6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 6087 (exit $ac_status); } >/dev/null && {
mathieu@468 6088 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 6089 test ! -s conftest.err
mathieu@468 6090 }; then
mathieu@468 6091 ac_header_preproc=yes
mathieu@468 6092 else
mathieu@468 6093 echo "$as_me: failed program was:" >&5
mathieu@468 6094 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 6095
mathieu@468 6096 ac_header_preproc=no
mathieu@468 6097 fi
mathieu@468 6098
mathieu@468 6099 rm -f conftest.err conftest.$ac_ext
mathieu@468 6100 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 6101 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 6102
mathieu@468 6103 # So? What about this header?
mathieu@468 6104 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 6105 yes:no: )
mathieu@468 6106 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 6107 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 6108 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 6109 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 6110 ac_header_preproc=yes
mathieu@468 6111 ;;
mathieu@468 6112 no:yes:* )
mathieu@468 6113 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 6114 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 6115 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 6116 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 6117 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 6118 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 6119 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 6120 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 6121 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 6122 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 6123 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 6124 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 6125 ( cat <<\_ASBOX
mathieu@468 6126 ## ------------------------------------------- ##
mathieu@468 6127 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 6128 ## ------------------------------------------- ##
mathieu@468 6129 _ASBOX
mathieu@468 6130 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 6131 ;;
mathieu@468 6132 esac
mathieu@468 6133 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 6134 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 6135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 6136 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 6137 else
mathieu@468 6138 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 6139 fi
mathieu@468 6140 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 6141 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 6142 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 6143
mathieu@468 6144 fi
mathieu@468 6145 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 6146 HAVES="$HAVES $SV_MODULE_HAVE"
Chris@350 6147 else
mathieu@468 6148 { { echo "$as_me:$LINENO: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&5
mathieu@468 6149 echo "$as_me: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 6150 { (exit 1); exit 1; }; }
Chris@350 6151 fi
Chris@350 6152
Chris@350 6153
Chris@350 6154 if test -n "$SV_MODULE_LIB"; then
mathieu@468 6155 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 6156 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 6157 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 6158 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 6159 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 6160 else
Chris@350 6161 ac_check_lib_save_LIBS=$LIBS
Chris@350 6162 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 6163 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 6164 /* confdefs.h. */
mathieu@468 6165 _ACEOF
mathieu@468 6166 cat confdefs.h >>conftest.$ac_ext
mathieu@468 6167 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 6168 /* end confdefs.h. */
Chris@350 6169
Chris@350 6170 /* Override any GCC internal prototype to avoid an error.
Chris@350 6171 Use char because int might match the return type of a GCC
Chris@350 6172 builtin and then its argument prototype would still apply. */
Chris@350 6173 #ifdef __cplusplus
Chris@350 6174 extern "C"
Chris@350 6175 #endif
Chris@350 6176 char $SV_MODULE_FUNC ();
Chris@350 6177 int
Chris@350 6178 main ()
Chris@350 6179 {
Chris@350 6180 return $SV_MODULE_FUNC ();
Chris@350 6181 ;
Chris@350 6182 return 0;
Chris@350 6183 }
Chris@350 6184 _ACEOF
mathieu@468 6185 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 6186 if { (ac_try="$ac_link"
mathieu@468 6187 case "(($ac_try" in
mathieu@468 6188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 6189 *) ac_try_echo=$ac_try;;
mathieu@468 6190 esac
mathieu@468 6191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 6192 (eval "$ac_link") 2>conftest.er1
mathieu@468 6193 ac_status=$?
mathieu@468 6194 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 6195 rm -f conftest.er1
mathieu@468 6196 cat conftest.err >&5
mathieu@468 6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 6198 (exit $ac_status); } && {
mathieu@468 6199 test -z "$ac_cxx_werror_flag" ||
mathieu@468 6200 test ! -s conftest.err
mathieu@468 6201 } && test -s conftest$ac_exeext &&
mathieu@468 6202 $as_test_x conftest$ac_exeext; then
Chris@350 6203 eval "$as_ac_Lib=yes"
Chris@350 6204 else
mathieu@468 6205 echo "$as_me: failed program was:" >&5
mathieu@468 6206 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 6207
mathieu@468 6208 eval "$as_ac_Lib=no"
mathieu@468 6209 fi
mathieu@468 6210
mathieu@468 6211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 6212 conftest$ac_exeext conftest.$ac_ext
Chris@350 6213 LIBS=$ac_check_lib_save_LIBS
Chris@350 6214 fi
mathieu@468 6215 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 6216 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 6217 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 6218 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@350 6219 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 6220 else
mathieu@468 6221 { { echo "$as_me:$LINENO: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&5
mathieu@468 6222 echo "$as_me: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 6223 { (exit 1); exit 1; }; }
Chris@350 6224 fi
Chris@350 6225
Chris@350 6226 fi
Chris@350 6227 fi
Chris@350 6228
Chris@350 6229
Chris@350 6230 SV_MODULE_MODULE=vamphostsdk
Chris@350 6231 SV_MODULE_VERSION_TEST="vamp-hostsdk >= 2.0"
Chris@350 6232 SV_MODULE_HEADER=vamp-hostsdk/PluginLoader.h
Chris@350 6233 SV_MODULE_LIB=
Chris@350 6234 SV_MODULE_FUNC=
Chris@350 6235 SV_MODULE_HAVE=HAVE_$(echo vamphostsdk | tr 'a-z' 'A-Z')
Chris@350 6236 SV_MODULE_FAILED=1
Chris@405 6237 if test -n "$vamphostsdk_LIBS" ; then
mathieu@468 6238 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 6239 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@405 6240 CXXFLAGS="$CXXFLAGS $vamphostsdk_CFLAGS"
Chris@405 6241 LIBS="$LIBS $vamphostsdk_LIBS"
Chris@405 6242 SV_MODULE_FAILED=""
Chris@405 6243 fi
Chris@350 6244 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 6245 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 6246 fi
Chris@405 6247 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@350 6248
Chris@350 6249 pkg_failed=no
mathieu@468 6250 { echo "$as_me:$LINENO: checking for vamphostsdk" >&5
mathieu@468 6251 echo $ECHO_N "checking for vamphostsdk... $ECHO_C" >&6; }
Chris@350 6252
Chris@457 6253 if test -n "$vamphostsdk_CFLAGS"; then
Chris@457 6254 pkg_cv_vamphostsdk_CFLAGS="$vamphostsdk_CFLAGS"
Chris@457 6255 elif test -n "$PKG_CONFIG"; then
Chris@457 6256 if test -n "$PKG_CONFIG" && \
mathieu@468 6257 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 6258 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 6259 ac_status=$?
mathieu@468 6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 6261 (exit $ac_status); }; then
Chris@350 6262 pkg_cv_vamphostsdk_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 6263 else
Chris@350 6264 pkg_failed=yes
Chris@350 6265 fi
Chris@457 6266 else
Chris@457 6267 pkg_failed=untried
Chris@457 6268 fi
Chris@457 6269 if test -n "$vamphostsdk_LIBS"; then
Chris@457 6270 pkg_cv_vamphostsdk_LIBS="$vamphostsdk_LIBS"
Chris@457 6271 elif test -n "$PKG_CONFIG"; then
Chris@457 6272 if test -n "$PKG_CONFIG" && \
mathieu@468 6273 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 6274 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 6275 ac_status=$?
mathieu@468 6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 6277 (exit $ac_status); }; then
Chris@350 6278 pkg_cv_vamphostsdk_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 6279 else
Chris@350 6280 pkg_failed=yes
Chris@350 6281 fi
Chris@457 6282 else
Chris@457 6283 pkg_failed=untried
Chris@350 6284 fi
Chris@350 6285
Chris@350 6286
Chris@350 6287
Chris@350 6288 if test $pkg_failed = yes; then
mathieu@468 6289 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 6290 echo "${ECHO_T}no" >&6; }
Chris@350 6291
Chris@350 6292 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@350 6293 _pkg_short_errors_supported=yes
Chris@350 6294 else
Chris@350 6295 _pkg_short_errors_supported=no
Chris@350 6296 fi
Chris@350 6297 if test $_pkg_short_errors_supported = yes; then
Chris@457 6298 vamphostsdk_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 6299 else
Chris@457 6300 vamphostsdk_PKG_ERRORS=`$PKG_CONFIG --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 6301 fi
Chris@350 6302 # Put the nasty error message in config.log where it belongs
Chris@350 6303 echo "$vamphostsdk_PKG_ERRORS" >&5
Chris@350 6304
mathieu@468 6305 { echo "$as_me:$LINENO: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 6306 echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 6307 elif test $pkg_failed = untried; then
mathieu@468 6308 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 6309 echo "${ECHO_T}no" >&6; }
mathieu@468 6310 { echo "$as_me:$LINENO: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 6311 echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 6312 else
Chris@350 6313 vamphostsdk_CFLAGS=$pkg_cv_vamphostsdk_CFLAGS
Chris@350 6314 vamphostsdk_LIBS=$pkg_cv_vamphostsdk_LIBS
mathieu@468 6315 { echo "$as_me:$LINENO: result: yes" >&5
mathieu@468 6316 echo "${ECHO_T}yes" >&6; }
Chris@350 6317 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $vamphostsdk_CFLAGS";LIBS="$LIBS $vamphostsdk_LIBS";SV_MODULE_FAILED=""
Chris@350 6318 fi
Chris@350 6319 fi
Chris@350 6320 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 6321 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 6322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 6323 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 6324 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 6325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 6326 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 6327 fi
mathieu@468 6328 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 6329 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 6330 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 6331 else
mathieu@468 6332 # Is the header compilable?
mathieu@468 6333 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 6334 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 6335 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 6336 /* confdefs.h. */
mathieu@468 6337 _ACEOF
mathieu@468 6338 cat confdefs.h >>conftest.$ac_ext
mathieu@468 6339 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 6340 /* end confdefs.h. */
mathieu@468 6341 $ac_includes_default
mathieu@468 6342 #include <$SV_MODULE_HEADER>
mathieu@468 6343 _ACEOF
mathieu@468 6344 rm -f conftest.$ac_objext
mathieu@468 6345 if { (ac_try="$ac_compile"
mathieu@468 6346 case "(($ac_try" in
mathieu@468 6347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 6348 *) ac_try_echo=$ac_try;;
mathieu@468 6349 esac
mathieu@468 6350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 6351 (eval "$ac_compile") 2>conftest.er1
mathieu@468 6352 ac_status=$?
mathieu@468 6353 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 6354 rm -f conftest.er1
mathieu@468 6355 cat conftest.err >&5
mathieu@468 6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 6357 (exit $ac_status); } && {
mathieu@468 6358 test -z "$ac_cxx_werror_flag" ||
mathieu@468 6359 test ! -s conftest.err
mathieu@468 6360 } && test -s conftest.$ac_objext; then
mathieu@468 6361 ac_header_compiler=yes
mathieu@468 6362 else
mathieu@468 6363 echo "$as_me: failed program was:" >&5
mathieu@468 6364 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 6365
mathieu@468 6366 ac_header_compiler=no
mathieu@468 6367 fi
mathieu@468 6368
mathieu@468 6369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 6370 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 6371 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 6372
mathieu@468 6373 # Is the header present?
mathieu@468 6374 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 6375 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 6376 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 6377 /* confdefs.h. */
mathieu@468 6378 _ACEOF
mathieu@468 6379 cat confdefs.h >>conftest.$ac_ext
mathieu@468 6380 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 6381 /* end confdefs.h. */
mathieu@468 6382 #include <$SV_MODULE_HEADER>
mathieu@468 6383 _ACEOF
mathieu@468 6384 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 6385 case "(($ac_try" in
mathieu@468 6386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 6387 *) ac_try_echo=$ac_try;;
mathieu@468 6388 esac
mathieu@468 6389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 6390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
mathieu@468 6391 ac_status=$?
mathieu@468 6392 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 6393 rm -f conftest.er1
mathieu@468 6394 cat conftest.err >&5
mathieu@468 6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 6396 (exit $ac_status); } >/dev/null && {
mathieu@468 6397 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 6398 test ! -s conftest.err
mathieu@468 6399 }; then
mathieu@468 6400 ac_header_preproc=yes
mathieu@468 6401 else
mathieu@468 6402 echo "$as_me: failed program was:" >&5
mathieu@468 6403 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 6404
mathieu@468 6405 ac_header_preproc=no
mathieu@468 6406 fi
mathieu@468 6407
mathieu@468 6408 rm -f conftest.err conftest.$ac_ext
mathieu@468 6409 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 6410 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 6411
mathieu@468 6412 # So? What about this header?
mathieu@468 6413 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 6414 yes:no: )
mathieu@468 6415 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 6416 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 6417 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 6418 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 6419 ac_header_preproc=yes
mathieu@468 6420 ;;
mathieu@468 6421 no:yes:* )
mathieu@468 6422 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 6423 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 6424 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 6425 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 6426 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 6427 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 6428 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 6429 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 6430 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 6431 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 6432 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 6433 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 6434 ( cat <<\_ASBOX
mathieu@468 6435 ## ------------------------------------------- ##
mathieu@468 6436 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 6437 ## ------------------------------------------- ##
mathieu@468 6438 _ASBOX
mathieu@468 6439 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 6440 ;;
mathieu@468 6441 esac
mathieu@468 6442 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 6443 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 6444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 6445 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 6446 else
mathieu@468 6447 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 6448 fi
mathieu@468 6449 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 6450 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 6451 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 6452
mathieu@468 6453 fi
mathieu@468 6454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 6455 HAVES="$HAVES $SV_MODULE_HAVE"
Chris@350 6456 else
mathieu@468 6457 { { echo "$as_me:$LINENO: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&5
mathieu@468 6458 echo "$as_me: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 6459 { (exit 1); exit 1; }; }
Chris@350 6460 fi
Chris@350 6461
Chris@350 6462
Chris@350 6463 if test -n "$SV_MODULE_LIB"; then
mathieu@468 6464 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 6465 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 6466 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 6467 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 6468 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 6469 else
Chris@350 6470 ac_check_lib_save_LIBS=$LIBS
Chris@350 6471 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 6472 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 6473 /* confdefs.h. */
mathieu@468 6474 _ACEOF
mathieu@468 6475 cat confdefs.h >>conftest.$ac_ext
mathieu@468 6476 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 6477 /* end confdefs.h. */
Chris@350 6478
Chris@350 6479 /* Override any GCC internal prototype to avoid an error.
Chris@350 6480 Use char because int might match the return type of a GCC
Chris@350 6481 builtin and then its argument prototype would still apply. */
Chris@350 6482 #ifdef __cplusplus
Chris@350 6483 extern "C"
Chris@350 6484 #endif
Chris@350 6485 char $SV_MODULE_FUNC ();
Chris@350 6486 int
Chris@350 6487 main ()
Chris@350 6488 {
Chris@350 6489 return $SV_MODULE_FUNC ();
Chris@350 6490 ;
Chris@350 6491 return 0;
Chris@350 6492 }
Chris@350 6493 _ACEOF
mathieu@468 6494 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 6495 if { (ac_try="$ac_link"
mathieu@468 6496 case "(($ac_try" in
mathieu@468 6497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 6498 *) ac_try_echo=$ac_try;;
mathieu@468 6499 esac
mathieu@468 6500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 6501 (eval "$ac_link") 2>conftest.er1
mathieu@468 6502 ac_status=$?
mathieu@468 6503 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 6504 rm -f conftest.er1
mathieu@468 6505 cat conftest.err >&5
mathieu@468 6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 6507 (exit $ac_status); } && {
mathieu@468 6508 test -z "$ac_cxx_werror_flag" ||
mathieu@468 6509 test ! -s conftest.err
mathieu@468 6510 } && test -s conftest$ac_exeext &&
mathieu@468 6511 $as_test_x conftest$ac_exeext; then
Chris@350 6512 eval "$as_ac_Lib=yes"
Chris@350 6513 else
mathieu@468 6514 echo "$as_me: failed program was:" >&5
mathieu@468 6515 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 6516
mathieu@468 6517 eval "$as_ac_Lib=no"
mathieu@468 6518 fi
mathieu@468 6519
mathieu@468 6520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 6521 conftest$ac_exeext conftest.$ac_ext
Chris@350 6522 LIBS=$ac_check_lib_save_LIBS
Chris@350 6523 fi
mathieu@468 6524 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 6525 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 6526 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 6527 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@350 6528 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 6529 else
mathieu@468 6530 { { echo "$as_me:$LINENO: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&5
mathieu@468 6531 echo "$as_me: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 6532 { (exit 1); exit 1; }; }
Chris@350 6533 fi
Chris@350 6534
Chris@350 6535 fi
Chris@350 6536 fi
Chris@350 6537
Chris@350 6538
Chris@350 6539 SV_MODULE_MODULE=rubberband
Chris@350 6540 SV_MODULE_VERSION_TEST="rubberband"
Chris@350 6541 SV_MODULE_HEADER=rubberband/RubberBandStretcher.h
Chris@350 6542 SV_MODULE_LIB=rubberband
Chris@350 6543 SV_MODULE_FUNC=rubberband_new
Chris@350 6544 SV_MODULE_HAVE=HAVE_$(echo rubberband | tr 'a-z' 'A-Z')
Chris@350 6545 SV_MODULE_FAILED=1
Chris@405 6546 if test -n "$rubberband_LIBS" ; then
mathieu@468 6547 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 6548 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@405 6549 CXXFLAGS="$CXXFLAGS $rubberband_CFLAGS"
Chris@405 6550 LIBS="$LIBS $rubberband_LIBS"
Chris@405 6551 SV_MODULE_FAILED=""
Chris@405 6552 fi
Chris@350 6553 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 6554 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 6555 fi
Chris@405 6556 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@350 6557
Chris@350 6558 pkg_failed=no
mathieu@468 6559 { echo "$as_me:$LINENO: checking for rubberband" >&5
mathieu@468 6560 echo $ECHO_N "checking for rubberband... $ECHO_C" >&6; }
Chris@350 6561
Chris@457 6562 if test -n "$rubberband_CFLAGS"; then
Chris@457 6563 pkg_cv_rubberband_CFLAGS="$rubberband_CFLAGS"
Chris@457 6564 elif test -n "$PKG_CONFIG"; then
Chris@457 6565 if test -n "$PKG_CONFIG" && \
mathieu@468 6566 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 6567 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 6568 ac_status=$?
mathieu@468 6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 6570 (exit $ac_status); }; then
Chris@350 6571 pkg_cv_rubberband_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 6572 else
Chris@350 6573 pkg_failed=yes
Chris@350 6574 fi
Chris@457 6575 else
Chris@457 6576 pkg_failed=untried
Chris@457 6577 fi
Chris@457 6578 if test -n "$rubberband_LIBS"; then
Chris@457 6579 pkg_cv_rubberband_LIBS="$rubberband_LIBS"
Chris@457 6580 elif test -n "$PKG_CONFIG"; then
Chris@457 6581 if test -n "$PKG_CONFIG" && \
mathieu@468 6582 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 6583 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 6584 ac_status=$?
mathieu@468 6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 6586 (exit $ac_status); }; then
Chris@350 6587 pkg_cv_rubberband_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 6588 else
Chris@350 6589 pkg_failed=yes
Chris@350 6590 fi
Chris@457 6591 else
Chris@457 6592 pkg_failed=untried
Chris@350 6593 fi
Chris@350 6594
Chris@350 6595
Chris@350 6596
Chris@350 6597 if test $pkg_failed = yes; then
mathieu@468 6598 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 6599 echo "${ECHO_T}no" >&6; }
Chris@350 6600
Chris@350 6601 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@350 6602 _pkg_short_errors_supported=yes
Chris@350 6603 else
Chris@350 6604 _pkg_short_errors_supported=no
Chris@350 6605 fi
Chris@350 6606 if test $_pkg_short_errors_supported = yes; then
Chris@457 6607 rubberband_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 6608 else
Chris@457 6609 rubberband_PKG_ERRORS=`$PKG_CONFIG --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 6610 fi
Chris@350 6611 # Put the nasty error message in config.log where it belongs
Chris@350 6612 echo "$rubberband_PKG_ERRORS" >&5
Chris@350 6613
mathieu@468 6614 { echo "$as_me:$LINENO: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 6615 echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 6616 elif test $pkg_failed = untried; then
mathieu@468 6617 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 6618 echo "${ECHO_T}no" >&6; }
mathieu@468 6619 { echo "$as_me:$LINENO: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 6620 echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 6621 else
Chris@350 6622 rubberband_CFLAGS=$pkg_cv_rubberband_CFLAGS
Chris@350 6623 rubberband_LIBS=$pkg_cv_rubberband_LIBS
mathieu@468 6624 { echo "$as_me:$LINENO: result: yes" >&5
mathieu@468 6625 echo "${ECHO_T}yes" >&6; }
Chris@350 6626 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $rubberband_CFLAGS";LIBS="$LIBS $rubberband_LIBS";SV_MODULE_FAILED=""
Chris@350 6627 fi
Chris@350 6628 fi
Chris@350 6629 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 6630 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 6631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 6632 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 6633 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 6634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 6635 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 6636 fi
mathieu@468 6637 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 6638 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 6639 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 6640 else
mathieu@468 6641 # Is the header compilable?
mathieu@468 6642 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 6643 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 6644 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 6645 /* confdefs.h. */
mathieu@468 6646 _ACEOF
mathieu@468 6647 cat confdefs.h >>conftest.$ac_ext
mathieu@468 6648 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 6649 /* end confdefs.h. */
mathieu@468 6650 $ac_includes_default
mathieu@468 6651 #include <$SV_MODULE_HEADER>
mathieu@468 6652 _ACEOF
mathieu@468 6653 rm -f conftest.$ac_objext
mathieu@468 6654 if { (ac_try="$ac_compile"
mathieu@468 6655 case "(($ac_try" in
mathieu@468 6656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 6657 *) ac_try_echo=$ac_try;;
mathieu@468 6658 esac
mathieu@468 6659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 6660 (eval "$ac_compile") 2>conftest.er1
mathieu@468 6661 ac_status=$?
mathieu@468 6662 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 6663 rm -f conftest.er1
mathieu@468 6664 cat conftest.err >&5
mathieu@468 6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 6666 (exit $ac_status); } && {
mathieu@468 6667 test -z "$ac_cxx_werror_flag" ||
mathieu@468 6668 test ! -s conftest.err
mathieu@468 6669 } && test -s conftest.$ac_objext; then
mathieu@468 6670 ac_header_compiler=yes
mathieu@468 6671 else
mathieu@468 6672 echo "$as_me: failed program was:" >&5
mathieu@468 6673 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 6674
mathieu@468 6675 ac_header_compiler=no
mathieu@468 6676 fi
mathieu@468 6677
mathieu@468 6678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 6679 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 6680 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 6681
mathieu@468 6682 # Is the header present?
mathieu@468 6683 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 6684 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 6685 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 6686 /* confdefs.h. */
mathieu@468 6687 _ACEOF
mathieu@468 6688 cat confdefs.h >>conftest.$ac_ext
mathieu@468 6689 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 6690 /* end confdefs.h. */
mathieu@468 6691 #include <$SV_MODULE_HEADER>
mathieu@468 6692 _ACEOF
mathieu@468 6693 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 6694 case "(($ac_try" in
mathieu@468 6695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 6696 *) ac_try_echo=$ac_try;;
mathieu@468 6697 esac
mathieu@468 6698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 6699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
mathieu@468 6700 ac_status=$?
mathieu@468 6701 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 6702 rm -f conftest.er1
mathieu@468 6703 cat conftest.err >&5
mathieu@468 6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 6705 (exit $ac_status); } >/dev/null && {
mathieu@468 6706 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 6707 test ! -s conftest.err
mathieu@468 6708 }; then
mathieu@468 6709 ac_header_preproc=yes
mathieu@468 6710 else
mathieu@468 6711 echo "$as_me: failed program was:" >&5
mathieu@468 6712 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 6713
mathieu@468 6714 ac_header_preproc=no
mathieu@468 6715 fi
mathieu@468 6716
mathieu@468 6717 rm -f conftest.err conftest.$ac_ext
mathieu@468 6718 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 6719 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 6720
mathieu@468 6721 # So? What about this header?
mathieu@468 6722 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 6723 yes:no: )
mathieu@468 6724 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 6725 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 6726 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 6727 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 6728 ac_header_preproc=yes
mathieu@468 6729 ;;
mathieu@468 6730 no:yes:* )
mathieu@468 6731 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 6732 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 6733 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 6734 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 6735 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 6736 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 6737 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 6738 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 6739 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 6740 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 6741 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 6742 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 6743 ( cat <<\_ASBOX
mathieu@468 6744 ## ------------------------------------------- ##
mathieu@468 6745 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 6746 ## ------------------------------------------- ##
mathieu@468 6747 _ASBOX
mathieu@468 6748 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 6749 ;;
mathieu@468 6750 esac
mathieu@468 6751 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 6752 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 6753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 6754 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 6755 else
mathieu@468 6756 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 6757 fi
mathieu@468 6758 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 6759 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 6760 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 6761
mathieu@468 6762 fi
mathieu@468 6763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 6764 HAVES="$HAVES $SV_MODULE_HAVE"
Chris@350 6765 else
mathieu@468 6766 { { echo "$as_me:$LINENO: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&5
mathieu@468 6767 echo "$as_me: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 6768 { (exit 1); exit 1; }; }
Chris@350 6769 fi
Chris@350 6770
Chris@350 6771
Chris@350 6772 if test -n "$SV_MODULE_LIB"; then
mathieu@468 6773 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 6774 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 6775 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 6776 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 6777 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 6778 else
Chris@350 6779 ac_check_lib_save_LIBS=$LIBS
Chris@350 6780 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 6781 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 6782 /* confdefs.h. */
mathieu@468 6783 _ACEOF
mathieu@468 6784 cat confdefs.h >>conftest.$ac_ext
mathieu@468 6785 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 6786 /* end confdefs.h. */
Chris@350 6787
Chris@350 6788 /* Override any GCC internal prototype to avoid an error.
Chris@350 6789 Use char because int might match the return type of a GCC
Chris@350 6790 builtin and then its argument prototype would still apply. */
Chris@350 6791 #ifdef __cplusplus
Chris@350 6792 extern "C"
Chris@350 6793 #endif
Chris@350 6794 char $SV_MODULE_FUNC ();
Chris@350 6795 int
Chris@350 6796 main ()
Chris@350 6797 {
Chris@350 6798 return $SV_MODULE_FUNC ();
Chris@350 6799 ;
Chris@350 6800 return 0;
Chris@350 6801 }
Chris@350 6802 _ACEOF
mathieu@468 6803 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 6804 if { (ac_try="$ac_link"
mathieu@468 6805 case "(($ac_try" in
mathieu@468 6806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 6807 *) ac_try_echo=$ac_try;;
mathieu@468 6808 esac
mathieu@468 6809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 6810 (eval "$ac_link") 2>conftest.er1
mathieu@468 6811 ac_status=$?
mathieu@468 6812 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 6813 rm -f conftest.er1
mathieu@468 6814 cat conftest.err >&5
mathieu@468 6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 6816 (exit $ac_status); } && {
mathieu@468 6817 test -z "$ac_cxx_werror_flag" ||
mathieu@468 6818 test ! -s conftest.err
mathieu@468 6819 } && test -s conftest$ac_exeext &&
mathieu@468 6820 $as_test_x conftest$ac_exeext; then
Chris@350 6821 eval "$as_ac_Lib=yes"
Chris@350 6822 else
mathieu@468 6823 echo "$as_me: failed program was:" >&5
mathieu@468 6824 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 6825
mathieu@468 6826 eval "$as_ac_Lib=no"
mathieu@468 6827 fi
mathieu@468 6828
mathieu@468 6829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 6830 conftest$ac_exeext conftest.$ac_ext
Chris@350 6831 LIBS=$ac_check_lib_save_LIBS
Chris@350 6832 fi
mathieu@468 6833 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 6834 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 6835 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 6836 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@350 6837 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 6838 else
mathieu@468 6839 { { echo "$as_me:$LINENO: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&5
mathieu@468 6840 echo "$as_me: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 6841 { (exit 1); exit 1; }; }
Chris@350 6842 fi
Chris@350 6843
Chris@350 6844 fi
Chris@350 6845 fi
Chris@350 6846
Chris@350 6847
Chris@350 6848 SV_MODULE_MODULE=raptor
Chris@350 6849 SV_MODULE_VERSION_TEST="raptor >= 1.4.20"
Chris@350 6850 SV_MODULE_HEADER=raptor.h
Chris@350 6851 SV_MODULE_LIB=raptor
Chris@350 6852 SV_MODULE_FUNC=raptor_start_parse
Chris@350 6853 SV_MODULE_HAVE=HAVE_$(echo raptor | tr 'a-z' 'A-Z')
Chris@350 6854 SV_MODULE_FAILED=1
Chris@405 6855 if test -n "$raptor_LIBS" ; then
mathieu@468 6856 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 6857 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@405 6858 CXXFLAGS="$CXXFLAGS $raptor_CFLAGS"
Chris@405 6859 LIBS="$LIBS $raptor_LIBS"
Chris@405 6860 SV_MODULE_FAILED=""
Chris@405 6861 fi
Chris@350 6862 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 6863 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 6864 fi
Chris@405 6865 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@350 6866
Chris@350 6867 pkg_failed=no
mathieu@468 6868 { echo "$as_me:$LINENO: checking for raptor" >&5
mathieu@468 6869 echo $ECHO_N "checking for raptor... $ECHO_C" >&6; }
Chris@350 6870
Chris@457 6871 if test -n "$raptor_CFLAGS"; then
Chris@457 6872 pkg_cv_raptor_CFLAGS="$raptor_CFLAGS"
Chris@457 6873 elif test -n "$PKG_CONFIG"; then
Chris@457 6874 if test -n "$PKG_CONFIG" && \
mathieu@468 6875 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 6876 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 6877 ac_status=$?
mathieu@468 6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 6879 (exit $ac_status); }; then
Chris@350 6880 pkg_cv_raptor_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 6881 else
Chris@350 6882 pkg_failed=yes
Chris@350 6883 fi
Chris@457 6884 else
Chris@457 6885 pkg_failed=untried
Chris@457 6886 fi
Chris@457 6887 if test -n "$raptor_LIBS"; then
Chris@457 6888 pkg_cv_raptor_LIBS="$raptor_LIBS"
Chris@457 6889 elif test -n "$PKG_CONFIG"; then
Chris@457 6890 if test -n "$PKG_CONFIG" && \
mathieu@468 6891 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 6892 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 6893 ac_status=$?
mathieu@468 6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 6895 (exit $ac_status); }; then
Chris@350 6896 pkg_cv_raptor_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 6897 else
Chris@350 6898 pkg_failed=yes
Chris@350 6899 fi
Chris@457 6900 else
Chris@457 6901 pkg_failed=untried
Chris@350 6902 fi
Chris@350 6903
Chris@350 6904
Chris@350 6905
Chris@350 6906 if test $pkg_failed = yes; then
mathieu@468 6907 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 6908 echo "${ECHO_T}no" >&6; }
Chris@350 6909
Chris@350 6910 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@350 6911 _pkg_short_errors_supported=yes
Chris@350 6912 else
Chris@350 6913 _pkg_short_errors_supported=no
Chris@350 6914 fi
Chris@350 6915 if test $_pkg_short_errors_supported = yes; then
Chris@457 6916 raptor_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 6917 else
Chris@457 6918 raptor_PKG_ERRORS=`$PKG_CONFIG --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 6919 fi
Chris@350 6920 # Put the nasty error message in config.log where it belongs
Chris@350 6921 echo "$raptor_PKG_ERRORS" >&5
Chris@350 6922
mathieu@468 6923 { echo "$as_me:$LINENO: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 6924 echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 6925 elif test $pkg_failed = untried; then
mathieu@468 6926 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 6927 echo "${ECHO_T}no" >&6; }
mathieu@468 6928 { echo "$as_me:$LINENO: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 6929 echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 6930 else
Chris@350 6931 raptor_CFLAGS=$pkg_cv_raptor_CFLAGS
Chris@350 6932 raptor_LIBS=$pkg_cv_raptor_LIBS
mathieu@468 6933 { echo "$as_me:$LINENO: result: yes" >&5
mathieu@468 6934 echo "${ECHO_T}yes" >&6; }
Chris@350 6935 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $raptor_CFLAGS";LIBS="$LIBS $raptor_LIBS";SV_MODULE_FAILED=""
Chris@350 6936 fi
Chris@350 6937 fi
Chris@350 6938 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 6939 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 6940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 6941 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 6942 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 6943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 6944 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 6945 fi
mathieu@468 6946 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 6947 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 6948 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 6949 else
mathieu@468 6950 # Is the header compilable?
mathieu@468 6951 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 6952 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 6953 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 6954 /* confdefs.h. */
mathieu@468 6955 _ACEOF
mathieu@468 6956 cat confdefs.h >>conftest.$ac_ext
mathieu@468 6957 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 6958 /* end confdefs.h. */
mathieu@468 6959 $ac_includes_default
mathieu@468 6960 #include <$SV_MODULE_HEADER>
mathieu@468 6961 _ACEOF
mathieu@468 6962 rm -f conftest.$ac_objext
mathieu@468 6963 if { (ac_try="$ac_compile"
mathieu@468 6964 case "(($ac_try" in
mathieu@468 6965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 6966 *) ac_try_echo=$ac_try;;
mathieu@468 6967 esac
mathieu@468 6968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 6969 (eval "$ac_compile") 2>conftest.er1
mathieu@468 6970 ac_status=$?
mathieu@468 6971 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 6972 rm -f conftest.er1
mathieu@468 6973 cat conftest.err >&5
mathieu@468 6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 6975 (exit $ac_status); } && {
mathieu@468 6976 test -z "$ac_cxx_werror_flag" ||
mathieu@468 6977 test ! -s conftest.err
mathieu@468 6978 } && test -s conftest.$ac_objext; then
mathieu@468 6979 ac_header_compiler=yes
mathieu@468 6980 else
mathieu@468 6981 echo "$as_me: failed program was:" >&5
mathieu@468 6982 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 6983
mathieu@468 6984 ac_header_compiler=no
mathieu@468 6985 fi
mathieu@468 6986
mathieu@468 6987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 6988 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 6989 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 6990
mathieu@468 6991 # Is the header present?
mathieu@468 6992 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 6993 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 6994 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 6995 /* confdefs.h. */
mathieu@468 6996 _ACEOF
mathieu@468 6997 cat confdefs.h >>conftest.$ac_ext
mathieu@468 6998 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 6999 /* end confdefs.h. */
mathieu@468 7000 #include <$SV_MODULE_HEADER>
mathieu@468 7001 _ACEOF
mathieu@468 7002 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 7003 case "(($ac_try" in
mathieu@468 7004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 7005 *) ac_try_echo=$ac_try;;
mathieu@468 7006 esac
mathieu@468 7007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 7008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
mathieu@468 7009 ac_status=$?
mathieu@468 7010 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 7011 rm -f conftest.er1
mathieu@468 7012 cat conftest.err >&5
mathieu@468 7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 7014 (exit $ac_status); } >/dev/null && {
mathieu@468 7015 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 7016 test ! -s conftest.err
mathieu@468 7017 }; then
mathieu@468 7018 ac_header_preproc=yes
mathieu@468 7019 else
mathieu@468 7020 echo "$as_me: failed program was:" >&5
mathieu@468 7021 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 7022
mathieu@468 7023 ac_header_preproc=no
mathieu@468 7024 fi
mathieu@468 7025
mathieu@468 7026 rm -f conftest.err conftest.$ac_ext
mathieu@468 7027 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 7028 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 7029
mathieu@468 7030 # So? What about this header?
mathieu@468 7031 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 7032 yes:no: )
mathieu@468 7033 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 7034 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 7035 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 7036 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 7037 ac_header_preproc=yes
mathieu@468 7038 ;;
mathieu@468 7039 no:yes:* )
mathieu@468 7040 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 7041 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 7042 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 7043 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 7044 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 7045 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 7046 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 7047 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 7048 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 7049 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 7050 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 7051 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 7052 ( cat <<\_ASBOX
mathieu@468 7053 ## ------------------------------------------- ##
mathieu@468 7054 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 7055 ## ------------------------------------------- ##
mathieu@468 7056 _ASBOX
mathieu@468 7057 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 7058 ;;
mathieu@468 7059 esac
mathieu@468 7060 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 7061 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 7062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 7063 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 7064 else
mathieu@468 7065 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 7066 fi
mathieu@468 7067 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 7068 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 7069 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 7070
mathieu@468 7071 fi
mathieu@468 7072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 7073 HAVES="$HAVES $SV_MODULE_HAVE"
Chris@350 7074 else
mathieu@468 7075 { { echo "$as_me:$LINENO: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&5
mathieu@468 7076 echo "$as_me: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 7077 { (exit 1); exit 1; }; }
Chris@350 7078 fi
Chris@350 7079
Chris@350 7080
Chris@350 7081 if test -n "$SV_MODULE_LIB"; then
mathieu@468 7082 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 7083 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 7084 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 7085 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 7086 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 7087 else
Chris@350 7088 ac_check_lib_save_LIBS=$LIBS
Chris@350 7089 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 7090 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 7091 /* confdefs.h. */
mathieu@468 7092 _ACEOF
mathieu@468 7093 cat confdefs.h >>conftest.$ac_ext
mathieu@468 7094 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 7095 /* end confdefs.h. */
Chris@350 7096
Chris@350 7097 /* Override any GCC internal prototype to avoid an error.
Chris@350 7098 Use char because int might match the return type of a GCC
Chris@350 7099 builtin and then its argument prototype would still apply. */
Chris@350 7100 #ifdef __cplusplus
Chris@350 7101 extern "C"
Chris@350 7102 #endif
Chris@350 7103 char $SV_MODULE_FUNC ();
Chris@350 7104 int
Chris@350 7105 main ()
Chris@350 7106 {
Chris@350 7107 return $SV_MODULE_FUNC ();
Chris@350 7108 ;
Chris@350 7109 return 0;
Chris@350 7110 }
Chris@350 7111 _ACEOF
mathieu@468 7112 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 7113 if { (ac_try="$ac_link"
mathieu@468 7114 case "(($ac_try" in
mathieu@468 7115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 7116 *) ac_try_echo=$ac_try;;
mathieu@468 7117 esac
mathieu@468 7118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 7119 (eval "$ac_link") 2>conftest.er1
mathieu@468 7120 ac_status=$?
mathieu@468 7121 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 7122 rm -f conftest.er1
mathieu@468 7123 cat conftest.err >&5
mathieu@468 7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 7125 (exit $ac_status); } && {
mathieu@468 7126 test -z "$ac_cxx_werror_flag" ||
mathieu@468 7127 test ! -s conftest.err
mathieu@468 7128 } && test -s conftest$ac_exeext &&
mathieu@468 7129 $as_test_x conftest$ac_exeext; then
Chris@350 7130 eval "$as_ac_Lib=yes"
Chris@350 7131 else
mathieu@468 7132 echo "$as_me: failed program was:" >&5
mathieu@468 7133 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 7134
mathieu@468 7135 eval "$as_ac_Lib=no"
mathieu@468 7136 fi
mathieu@468 7137
mathieu@468 7138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 7139 conftest$ac_exeext conftest.$ac_ext
Chris@350 7140 LIBS=$ac_check_lib_save_LIBS
Chris@350 7141 fi
mathieu@468 7142 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 7143 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 7144 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 7145 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@350 7146 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 7147 else
mathieu@468 7148 { { echo "$as_me:$LINENO: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&5
mathieu@468 7149 echo "$as_me: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 7150 { (exit 1); exit 1; }; }
Chris@350 7151 fi
Chris@350 7152
Chris@350 7153 fi
Chris@350 7154 fi
Chris@350 7155
Chris@350 7156
Chris@350 7157 SV_MODULE_MODULE=rasqal
Chris@350 7158 SV_MODULE_VERSION_TEST="rasqal >= 0.9.19"
Chris@350 7159 SV_MODULE_HEADER=rasqal/rasqal.h
Chris@350 7160 SV_MODULE_LIB=rasqal
Chris@350 7161 SV_MODULE_FUNC=rasqal_new_world
Chris@350 7162 SV_MODULE_HAVE=HAVE_$(echo rasqal | tr 'a-z' 'A-Z')
Chris@350 7163 SV_MODULE_FAILED=1
Chris@405 7164 if test -n "$rasqal_LIBS" ; then
mathieu@468 7165 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 7166 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@405 7167 CXXFLAGS="$CXXFLAGS $rasqal_CFLAGS"
Chris@405 7168 LIBS="$LIBS $rasqal_LIBS"
Chris@405 7169 SV_MODULE_FAILED=""
Chris@405 7170 fi
Chris@350 7171 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 7172 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 7173 fi
Chris@405 7174 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@350 7175
Chris@350 7176 pkg_failed=no
mathieu@468 7177 { echo "$as_me:$LINENO: checking for rasqal" >&5
mathieu@468 7178 echo $ECHO_N "checking for rasqal... $ECHO_C" >&6; }
Chris@350 7179
Chris@457 7180 if test -n "$rasqal_CFLAGS"; then
Chris@457 7181 pkg_cv_rasqal_CFLAGS="$rasqal_CFLAGS"
Chris@457 7182 elif test -n "$PKG_CONFIG"; then
Chris@457 7183 if test -n "$PKG_CONFIG" && \
mathieu@468 7184 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 7185 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 7186 ac_status=$?
mathieu@468 7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 7188 (exit $ac_status); }; then
Chris@350 7189 pkg_cv_rasqal_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 7190 else
Chris@350 7191 pkg_failed=yes
Chris@350 7192 fi
Chris@457 7193 else
Chris@457 7194 pkg_failed=untried
Chris@457 7195 fi
Chris@457 7196 if test -n "$rasqal_LIBS"; then
Chris@457 7197 pkg_cv_rasqal_LIBS="$rasqal_LIBS"
Chris@457 7198 elif test -n "$PKG_CONFIG"; then
Chris@457 7199 if test -n "$PKG_CONFIG" && \
mathieu@468 7200 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 7201 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 7202 ac_status=$?
mathieu@468 7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 7204 (exit $ac_status); }; then
Chris@350 7205 pkg_cv_rasqal_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 7206 else
Chris@350 7207 pkg_failed=yes
Chris@350 7208 fi
Chris@457 7209 else
Chris@457 7210 pkg_failed=untried
Chris@350 7211 fi
Chris@350 7212
Chris@350 7213
Chris@350 7214
Chris@350 7215 if test $pkg_failed = yes; then
mathieu@468 7216 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 7217 echo "${ECHO_T}no" >&6; }
Chris@350 7218
Chris@350 7219 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@350 7220 _pkg_short_errors_supported=yes
Chris@350 7221 else
Chris@350 7222 _pkg_short_errors_supported=no
Chris@350 7223 fi
Chris@350 7224 if test $_pkg_short_errors_supported = yes; then
Chris@457 7225 rasqal_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 7226 else
Chris@457 7227 rasqal_PKG_ERRORS=`$PKG_CONFIG --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 7228 fi
Chris@350 7229 # Put the nasty error message in config.log where it belongs
Chris@350 7230 echo "$rasqal_PKG_ERRORS" >&5
Chris@350 7231
mathieu@468 7232 { echo "$as_me:$LINENO: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 7233 echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 7234 elif test $pkg_failed = untried; then
mathieu@468 7235 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 7236 echo "${ECHO_T}no" >&6; }
mathieu@468 7237 { echo "$as_me:$LINENO: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 7238 echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 7239 else
Chris@350 7240 rasqal_CFLAGS=$pkg_cv_rasqal_CFLAGS
Chris@350 7241 rasqal_LIBS=$pkg_cv_rasqal_LIBS
mathieu@468 7242 { echo "$as_me:$LINENO: result: yes" >&5
mathieu@468 7243 echo "${ECHO_T}yes" >&6; }
Chris@350 7244 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $rasqal_CFLAGS";LIBS="$LIBS $rasqal_LIBS";SV_MODULE_FAILED=""
Chris@350 7245 fi
Chris@350 7246 fi
Chris@350 7247 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 7248 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 7249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 7250 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 7251 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 7252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 7253 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 7254 fi
mathieu@468 7255 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 7256 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 7257 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 7258 else
mathieu@468 7259 # Is the header compilable?
mathieu@468 7260 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 7261 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 7262 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 7263 /* confdefs.h. */
mathieu@468 7264 _ACEOF
mathieu@468 7265 cat confdefs.h >>conftest.$ac_ext
mathieu@468 7266 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 7267 /* end confdefs.h. */
mathieu@468 7268 $ac_includes_default
mathieu@468 7269 #include <$SV_MODULE_HEADER>
mathieu@468 7270 _ACEOF
mathieu@468 7271 rm -f conftest.$ac_objext
mathieu@468 7272 if { (ac_try="$ac_compile"
mathieu@468 7273 case "(($ac_try" in
mathieu@468 7274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 7275 *) ac_try_echo=$ac_try;;
mathieu@468 7276 esac
mathieu@468 7277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 7278 (eval "$ac_compile") 2>conftest.er1
mathieu@468 7279 ac_status=$?
mathieu@468 7280 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 7281 rm -f conftest.er1
mathieu@468 7282 cat conftest.err >&5
mathieu@468 7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 7284 (exit $ac_status); } && {
mathieu@468 7285 test -z "$ac_cxx_werror_flag" ||
mathieu@468 7286 test ! -s conftest.err
mathieu@468 7287 } && test -s conftest.$ac_objext; then
mathieu@468 7288 ac_header_compiler=yes
mathieu@468 7289 else
mathieu@468 7290 echo "$as_me: failed program was:" >&5
mathieu@468 7291 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 7292
mathieu@468 7293 ac_header_compiler=no
mathieu@468 7294 fi
mathieu@468 7295
mathieu@468 7296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 7297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 7298 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 7299
mathieu@468 7300 # Is the header present?
mathieu@468 7301 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 7302 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 7303 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 7304 /* confdefs.h. */
mathieu@468 7305 _ACEOF
mathieu@468 7306 cat confdefs.h >>conftest.$ac_ext
mathieu@468 7307 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 7308 /* end confdefs.h. */
mathieu@468 7309 #include <$SV_MODULE_HEADER>
mathieu@468 7310 _ACEOF
mathieu@468 7311 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 7312 case "(($ac_try" in
mathieu@468 7313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 7314 *) ac_try_echo=$ac_try;;
mathieu@468 7315 esac
mathieu@468 7316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 7317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
mathieu@468 7318 ac_status=$?
mathieu@468 7319 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 7320 rm -f conftest.er1
mathieu@468 7321 cat conftest.err >&5
mathieu@468 7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 7323 (exit $ac_status); } >/dev/null && {
mathieu@468 7324 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 7325 test ! -s conftest.err
mathieu@468 7326 }; then
mathieu@468 7327 ac_header_preproc=yes
mathieu@468 7328 else
mathieu@468 7329 echo "$as_me: failed program was:" >&5
mathieu@468 7330 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 7331
mathieu@468 7332 ac_header_preproc=no
mathieu@468 7333 fi
mathieu@468 7334
mathieu@468 7335 rm -f conftest.err conftest.$ac_ext
mathieu@468 7336 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 7337 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 7338
mathieu@468 7339 # So? What about this header?
mathieu@468 7340 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 7341 yes:no: )
mathieu@468 7342 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 7343 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 7344 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 7345 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 7346 ac_header_preproc=yes
mathieu@468 7347 ;;
mathieu@468 7348 no:yes:* )
mathieu@468 7349 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 7350 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 7351 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 7352 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 7353 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 7354 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 7355 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 7356 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 7357 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 7358 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 7359 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 7360 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 7361 ( cat <<\_ASBOX
mathieu@468 7362 ## ------------------------------------------- ##
mathieu@468 7363 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 7364 ## ------------------------------------------- ##
mathieu@468 7365 _ASBOX
mathieu@468 7366 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 7367 ;;
mathieu@468 7368 esac
mathieu@468 7369 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 7370 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 7371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 7372 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 7373 else
mathieu@468 7374 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 7375 fi
mathieu@468 7376 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 7377 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 7378 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 7379
mathieu@468 7380 fi
mathieu@468 7381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 7382 HAVES="$HAVES $SV_MODULE_HAVE"
Chris@350 7383 else
mathieu@468 7384 { { echo "$as_me:$LINENO: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&5
mathieu@468 7385 echo "$as_me: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 7386 { (exit 1); exit 1; }; }
Chris@350 7387 fi
Chris@350 7388
Chris@350 7389
Chris@350 7390 if test -n "$SV_MODULE_LIB"; then
mathieu@468 7391 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 7392 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 7393 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 7394 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 7395 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 7396 else
Chris@350 7397 ac_check_lib_save_LIBS=$LIBS
Chris@350 7398 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 7399 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 7400 /* confdefs.h. */
mathieu@468 7401 _ACEOF
mathieu@468 7402 cat confdefs.h >>conftest.$ac_ext
mathieu@468 7403 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 7404 /* end confdefs.h. */
Chris@350 7405
Chris@350 7406 /* Override any GCC internal prototype to avoid an error.
Chris@350 7407 Use char because int might match the return type of a GCC
Chris@350 7408 builtin and then its argument prototype would still apply. */
Chris@350 7409 #ifdef __cplusplus
Chris@350 7410 extern "C"
Chris@350 7411 #endif
Chris@350 7412 char $SV_MODULE_FUNC ();
Chris@350 7413 int
Chris@350 7414 main ()
Chris@350 7415 {
Chris@350 7416 return $SV_MODULE_FUNC ();
Chris@350 7417 ;
Chris@350 7418 return 0;
Chris@350 7419 }
Chris@350 7420 _ACEOF
mathieu@468 7421 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 7422 if { (ac_try="$ac_link"
mathieu@468 7423 case "(($ac_try" in
mathieu@468 7424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 7425 *) ac_try_echo=$ac_try;;
mathieu@468 7426 esac
mathieu@468 7427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 7428 (eval "$ac_link") 2>conftest.er1
mathieu@468 7429 ac_status=$?
mathieu@468 7430 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 7431 rm -f conftest.er1
mathieu@468 7432 cat conftest.err >&5
mathieu@468 7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 7434 (exit $ac_status); } && {
mathieu@468 7435 test -z "$ac_cxx_werror_flag" ||
mathieu@468 7436 test ! -s conftest.err
mathieu@468 7437 } && test -s conftest$ac_exeext &&
mathieu@468 7438 $as_test_x conftest$ac_exeext; then
Chris@350 7439 eval "$as_ac_Lib=yes"
Chris@350 7440 else
mathieu@468 7441 echo "$as_me: failed program was:" >&5
mathieu@468 7442 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 7443
mathieu@468 7444 eval "$as_ac_Lib=no"
mathieu@468 7445 fi
mathieu@468 7446
mathieu@468 7447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 7448 conftest$ac_exeext conftest.$ac_ext
Chris@350 7449 LIBS=$ac_check_lib_save_LIBS
Chris@350 7450 fi
mathieu@468 7451 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 7452 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 7453 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 7454 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@350 7455 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 7456 else
mathieu@468 7457 { { echo "$as_me:$LINENO: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&5
mathieu@468 7458 echo "$as_me: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 7459 { (exit 1); exit 1; }; }
Chris@350 7460 fi
Chris@350 7461
Chris@350 7462 fi
Chris@350 7463 fi
Chris@350 7464
Chris@350 7465
Chris@350 7466 SV_MODULE_MODULE=redland
Chris@350 7467 SV_MODULE_VERSION_TEST="redland >= 1.0.10"
Chris@350 7468 SV_MODULE_HEADER=librdf.h
Chris@350 7469 SV_MODULE_LIB=rdf
Chris@350 7470 SV_MODULE_FUNC=librdf_new_world
Chris@350 7471 SV_MODULE_HAVE=HAVE_$(echo redland | tr 'a-z' 'A-Z')
Chris@350 7472 SV_MODULE_FAILED=1
Chris@405 7473 if test -n "$redland_LIBS" ; then
mathieu@468 7474 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 7475 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@405 7476 CXXFLAGS="$CXXFLAGS $redland_CFLAGS"
Chris@405 7477 LIBS="$LIBS $redland_LIBS"
Chris@405 7478 SV_MODULE_FAILED=""
Chris@405 7479 fi
Chris@350 7480 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 7481 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 7482 fi
Chris@405 7483 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@350 7484
Chris@350 7485 pkg_failed=no
mathieu@468 7486 { echo "$as_me:$LINENO: checking for redland" >&5
mathieu@468 7487 echo $ECHO_N "checking for redland... $ECHO_C" >&6; }
Chris@350 7488
Chris@457 7489 if test -n "$redland_CFLAGS"; then
Chris@457 7490 pkg_cv_redland_CFLAGS="$redland_CFLAGS"
Chris@457 7491 elif test -n "$PKG_CONFIG"; then
Chris@457 7492 if test -n "$PKG_CONFIG" && \
mathieu@468 7493 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 7494 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 7495 ac_status=$?
mathieu@468 7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 7497 (exit $ac_status); }; then
Chris@350 7498 pkg_cv_redland_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 7499 else
Chris@350 7500 pkg_failed=yes
Chris@350 7501 fi
Chris@457 7502 else
Chris@457 7503 pkg_failed=untried
Chris@457 7504 fi
Chris@457 7505 if test -n "$redland_LIBS"; then
Chris@457 7506 pkg_cv_redland_LIBS="$redland_LIBS"
Chris@457 7507 elif test -n "$PKG_CONFIG"; then
Chris@457 7508 if test -n "$PKG_CONFIG" && \
mathieu@468 7509 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 7510 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 7511 ac_status=$?
mathieu@468 7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 7513 (exit $ac_status); }; then
Chris@350 7514 pkg_cv_redland_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 7515 else
Chris@350 7516 pkg_failed=yes
Chris@350 7517 fi
Chris@457 7518 else
Chris@457 7519 pkg_failed=untried
Chris@350 7520 fi
Chris@350 7521
Chris@350 7522
Chris@350 7523
Chris@350 7524 if test $pkg_failed = yes; then
mathieu@468 7525 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 7526 echo "${ECHO_T}no" >&6; }
Chris@350 7527
Chris@350 7528 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@350 7529 _pkg_short_errors_supported=yes
Chris@350 7530 else
Chris@350 7531 _pkg_short_errors_supported=no
Chris@350 7532 fi
Chris@350 7533 if test $_pkg_short_errors_supported = yes; then
Chris@457 7534 redland_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 7535 else
Chris@457 7536 redland_PKG_ERRORS=`$PKG_CONFIG --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 7537 fi
Chris@350 7538 # Put the nasty error message in config.log where it belongs
Chris@350 7539 echo "$redland_PKG_ERRORS" >&5
Chris@350 7540
mathieu@468 7541 { echo "$as_me:$LINENO: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 7542 echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 7543 elif test $pkg_failed = untried; then
mathieu@468 7544 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 7545 echo "${ECHO_T}no" >&6; }
mathieu@468 7546 { echo "$as_me:$LINENO: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 7547 echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 7548 else
Chris@350 7549 redland_CFLAGS=$pkg_cv_redland_CFLAGS
Chris@350 7550 redland_LIBS=$pkg_cv_redland_LIBS
mathieu@468 7551 { echo "$as_me:$LINENO: result: yes" >&5
mathieu@468 7552 echo "${ECHO_T}yes" >&6; }
Chris@350 7553 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $redland_CFLAGS";LIBS="$LIBS $redland_LIBS";SV_MODULE_FAILED=""
Chris@350 7554 fi
Chris@350 7555 fi
Chris@350 7556 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 7557 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 7558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 7559 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 7560 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 7561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 7562 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 7563 fi
mathieu@468 7564 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 7565 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 7566 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 7567 else
mathieu@468 7568 # Is the header compilable?
mathieu@468 7569 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 7570 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 7571 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 7572 /* confdefs.h. */
mathieu@468 7573 _ACEOF
mathieu@468 7574 cat confdefs.h >>conftest.$ac_ext
mathieu@468 7575 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 7576 /* end confdefs.h. */
mathieu@468 7577 $ac_includes_default
mathieu@468 7578 #include <$SV_MODULE_HEADER>
mathieu@468 7579 _ACEOF
mathieu@468 7580 rm -f conftest.$ac_objext
mathieu@468 7581 if { (ac_try="$ac_compile"
mathieu@468 7582 case "(($ac_try" in
mathieu@468 7583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 7584 *) ac_try_echo=$ac_try;;
mathieu@468 7585 esac
mathieu@468 7586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 7587 (eval "$ac_compile") 2>conftest.er1
mathieu@468 7588 ac_status=$?
mathieu@468 7589 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 7590 rm -f conftest.er1
mathieu@468 7591 cat conftest.err >&5
mathieu@468 7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 7593 (exit $ac_status); } && {
mathieu@468 7594 test -z "$ac_cxx_werror_flag" ||
mathieu@468 7595 test ! -s conftest.err
mathieu@468 7596 } && test -s conftest.$ac_objext; then
mathieu@468 7597 ac_header_compiler=yes
mathieu@468 7598 else
mathieu@468 7599 echo "$as_me: failed program was:" >&5
mathieu@468 7600 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 7601
mathieu@468 7602 ac_header_compiler=no
mathieu@468 7603 fi
mathieu@468 7604
mathieu@468 7605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 7606 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 7607 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 7608
mathieu@468 7609 # Is the header present?
mathieu@468 7610 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 7611 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 7612 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 7613 /* confdefs.h. */
mathieu@468 7614 _ACEOF
mathieu@468 7615 cat confdefs.h >>conftest.$ac_ext
mathieu@468 7616 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 7617 /* end confdefs.h. */
mathieu@468 7618 #include <$SV_MODULE_HEADER>
mathieu@468 7619 _ACEOF
mathieu@468 7620 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 7621 case "(($ac_try" in
mathieu@468 7622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 7623 *) ac_try_echo=$ac_try;;
mathieu@468 7624 esac
mathieu@468 7625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 7626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
mathieu@468 7627 ac_status=$?
mathieu@468 7628 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 7629 rm -f conftest.er1
mathieu@468 7630 cat conftest.err >&5
mathieu@468 7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 7632 (exit $ac_status); } >/dev/null && {
mathieu@468 7633 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 7634 test ! -s conftest.err
mathieu@468 7635 }; then
mathieu@468 7636 ac_header_preproc=yes
mathieu@468 7637 else
mathieu@468 7638 echo "$as_me: failed program was:" >&5
mathieu@468 7639 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 7640
mathieu@468 7641 ac_header_preproc=no
mathieu@468 7642 fi
mathieu@468 7643
mathieu@468 7644 rm -f conftest.err conftest.$ac_ext
mathieu@468 7645 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 7646 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 7647
mathieu@468 7648 # So? What about this header?
mathieu@468 7649 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 7650 yes:no: )
mathieu@468 7651 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 7652 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 7653 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 7654 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 7655 ac_header_preproc=yes
mathieu@468 7656 ;;
mathieu@468 7657 no:yes:* )
mathieu@468 7658 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 7659 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 7660 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 7661 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 7662 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 7663 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 7664 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 7665 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 7666 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 7667 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 7668 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 7669 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 7670 ( cat <<\_ASBOX
mathieu@468 7671 ## ------------------------------------------- ##
mathieu@468 7672 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 7673 ## ------------------------------------------- ##
mathieu@468 7674 _ASBOX
mathieu@468 7675 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 7676 ;;
mathieu@468 7677 esac
mathieu@468 7678 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 7679 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 7680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 7681 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 7682 else
mathieu@468 7683 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 7684 fi
mathieu@468 7685 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 7686 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 7687 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 7688
mathieu@468 7689 fi
mathieu@468 7690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 7691 HAVES="$HAVES $SV_MODULE_HAVE"
Chris@350 7692 else
mathieu@468 7693 { { echo "$as_me:$LINENO: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&5
mathieu@468 7694 echo "$as_me: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 7695 { (exit 1); exit 1; }; }
Chris@350 7696 fi
Chris@350 7697
Chris@350 7698
Chris@350 7699 if test -n "$SV_MODULE_LIB"; then
mathieu@468 7700 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 7701 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 7702 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 7703 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 7704 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 7705 else
Chris@350 7706 ac_check_lib_save_LIBS=$LIBS
Chris@350 7707 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 7708 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 7709 /* confdefs.h. */
mathieu@468 7710 _ACEOF
mathieu@468 7711 cat confdefs.h >>conftest.$ac_ext
mathieu@468 7712 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 7713 /* end confdefs.h. */
Chris@350 7714
Chris@350 7715 /* Override any GCC internal prototype to avoid an error.
Chris@350 7716 Use char because int might match the return type of a GCC
Chris@350 7717 builtin and then its argument prototype would still apply. */
Chris@350 7718 #ifdef __cplusplus
Chris@350 7719 extern "C"
Chris@350 7720 #endif
Chris@350 7721 char $SV_MODULE_FUNC ();
Chris@350 7722 int
Chris@350 7723 main ()
Chris@350 7724 {
Chris@350 7725 return $SV_MODULE_FUNC ();
Chris@350 7726 ;
Chris@350 7727 return 0;
Chris@350 7728 }
Chris@350 7729 _ACEOF
mathieu@468 7730 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 7731 if { (ac_try="$ac_link"
mathieu@468 7732 case "(($ac_try" in
mathieu@468 7733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 7734 *) ac_try_echo=$ac_try;;
mathieu@468 7735 esac
mathieu@468 7736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 7737 (eval "$ac_link") 2>conftest.er1
mathieu@468 7738 ac_status=$?
mathieu@468 7739 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 7740 rm -f conftest.er1
mathieu@468 7741 cat conftest.err >&5
mathieu@468 7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 7743 (exit $ac_status); } && {
mathieu@468 7744 test -z "$ac_cxx_werror_flag" ||
mathieu@468 7745 test ! -s conftest.err
mathieu@468 7746 } && test -s conftest$ac_exeext &&
mathieu@468 7747 $as_test_x conftest$ac_exeext; then
Chris@350 7748 eval "$as_ac_Lib=yes"
Chris@350 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 eval "$as_ac_Lib=no"
mathieu@468 7754 fi
mathieu@468 7755
mathieu@468 7756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 7757 conftest$ac_exeext conftest.$ac_ext
Chris@350 7758 LIBS=$ac_check_lib_save_LIBS
Chris@350 7759 fi
mathieu@468 7760 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 7761 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 7762 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 7763 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@350 7764 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 7765 else
mathieu@468 7766 { { echo "$as_me:$LINENO: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&5
mathieu@468 7767 echo "$as_me: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&2;}
mathieu@468 7768 { (exit 1); exit 1; }; }
Chris@350 7769 fi
Chris@350 7770
Chris@350 7771 fi
Chris@350 7772 fi
Chris@350 7773
Chris@350 7774
Chris@350 7775
Chris@350 7776 SV_MODULE_MODULE=liblo
Chris@350 7777 SV_MODULE_VERSION_TEST=""
Chris@350 7778 SV_MODULE_HEADER=lo/lo.h
Chris@350 7779 SV_MODULE_LIB=lo
Chris@350 7780 SV_MODULE_FUNC=lo_address_new
Chris@350 7781 SV_MODULE_HAVE=HAVE_$(echo liblo | tr 'a-z' 'A-Z')
Chris@350 7782 SV_MODULE_FAILED=1
Chris@405 7783 if test -n "$liblo_LIBS" ; then
mathieu@468 7784 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 7785 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@405 7786 CXXFLAGS="$CXXFLAGS $liblo_CFLAGS"
Chris@405 7787 LIBS="$LIBS $liblo_LIBS"
Chris@405 7788 SV_MODULE_FAILED=""
Chris@405 7789 fi
Chris@350 7790 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 7791 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 7792 fi
Chris@405 7793 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@350 7794
Chris@350 7795 pkg_failed=no
mathieu@468 7796 { echo "$as_me:$LINENO: checking for liblo" >&5
mathieu@468 7797 echo $ECHO_N "checking for liblo... $ECHO_C" >&6; }
Chris@350 7798
Chris@457 7799 if test -n "$liblo_CFLAGS"; then
Chris@457 7800 pkg_cv_liblo_CFLAGS="$liblo_CFLAGS"
Chris@457 7801 elif test -n "$PKG_CONFIG"; then
Chris@457 7802 if test -n "$PKG_CONFIG" && \
mathieu@468 7803 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 7804 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 7805 ac_status=$?
mathieu@468 7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 7807 (exit $ac_status); }; then
Chris@350 7808 pkg_cv_liblo_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 7809 else
Chris@350 7810 pkg_failed=yes
Chris@350 7811 fi
Chris@457 7812 else
Chris@457 7813 pkg_failed=untried
Chris@457 7814 fi
Chris@457 7815 if test -n "$liblo_LIBS"; then
Chris@457 7816 pkg_cv_liblo_LIBS="$liblo_LIBS"
Chris@457 7817 elif test -n "$PKG_CONFIG"; then
Chris@457 7818 if test -n "$PKG_CONFIG" && \
mathieu@468 7819 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 7820 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 7821 ac_status=$?
mathieu@468 7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 7823 (exit $ac_status); }; then
Chris@350 7824 pkg_cv_liblo_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 7825 else
Chris@350 7826 pkg_failed=yes
Chris@350 7827 fi
Chris@457 7828 else
Chris@457 7829 pkg_failed=untried
Chris@350 7830 fi
Chris@350 7831
Chris@350 7832
Chris@350 7833
Chris@350 7834 if test $pkg_failed = yes; then
mathieu@468 7835 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 7836 echo "${ECHO_T}no" >&6; }
Chris@350 7837
Chris@350 7838 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@350 7839 _pkg_short_errors_supported=yes
Chris@350 7840 else
Chris@350 7841 _pkg_short_errors_supported=no
Chris@350 7842 fi
Chris@350 7843 if test $_pkg_short_errors_supported = yes; then
Chris@457 7844 liblo_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 7845 else
Chris@457 7846 liblo_PKG_ERRORS=`$PKG_CONFIG --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 7847 fi
Chris@350 7848 # Put the nasty error message in config.log where it belongs
Chris@350 7849 echo "$liblo_PKG_ERRORS" >&5
Chris@350 7850
mathieu@468 7851 { echo "$as_me:$LINENO: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 7852 echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 7853 elif test $pkg_failed = untried; then
mathieu@468 7854 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 7855 echo "${ECHO_T}no" >&6; }
mathieu@468 7856 { echo "$as_me:$LINENO: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 7857 echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 7858 else
Chris@350 7859 liblo_CFLAGS=$pkg_cv_liblo_CFLAGS
Chris@350 7860 liblo_LIBS=$pkg_cv_liblo_LIBS
mathieu@468 7861 { echo "$as_me:$LINENO: result: yes" >&5
mathieu@468 7862 echo "${ECHO_T}yes" >&6; }
Chris@352 7863 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $liblo_CFLAGS";LIBS="$LIBS $liblo_LIBS";SV_MODULE_FAILED=""
Chris@350 7864 fi
Chris@350 7865 fi
Chris@350 7866 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 7867 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 7868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 7869 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 7870 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 7871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 7872 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 7873 fi
mathieu@468 7874 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 7875 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 7876 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 7877 else
mathieu@468 7878 # Is the header compilable?
mathieu@468 7879 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 7880 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 7881 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 7882 /* confdefs.h. */
mathieu@468 7883 _ACEOF
mathieu@468 7884 cat confdefs.h >>conftest.$ac_ext
mathieu@468 7885 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 7886 /* end confdefs.h. */
mathieu@468 7887 $ac_includes_default
mathieu@468 7888 #include <$SV_MODULE_HEADER>
mathieu@468 7889 _ACEOF
mathieu@468 7890 rm -f conftest.$ac_objext
mathieu@468 7891 if { (ac_try="$ac_compile"
mathieu@468 7892 case "(($ac_try" in
mathieu@468 7893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 7894 *) ac_try_echo=$ac_try;;
mathieu@468 7895 esac
mathieu@468 7896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 7897 (eval "$ac_compile") 2>conftest.er1
mathieu@468 7898 ac_status=$?
mathieu@468 7899 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 7900 rm -f conftest.er1
mathieu@468 7901 cat conftest.err >&5
mathieu@468 7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 7903 (exit $ac_status); } && {
mathieu@468 7904 test -z "$ac_cxx_werror_flag" ||
mathieu@468 7905 test ! -s conftest.err
mathieu@468 7906 } && test -s conftest.$ac_objext; then
mathieu@468 7907 ac_header_compiler=yes
mathieu@468 7908 else
mathieu@468 7909 echo "$as_me: failed program was:" >&5
mathieu@468 7910 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 7911
mathieu@468 7912 ac_header_compiler=no
mathieu@468 7913 fi
mathieu@468 7914
mathieu@468 7915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 7916 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 7917 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 7918
mathieu@468 7919 # Is the header present?
mathieu@468 7920 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 7921 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 7922 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 7923 /* confdefs.h. */
mathieu@468 7924 _ACEOF
mathieu@468 7925 cat confdefs.h >>conftest.$ac_ext
mathieu@468 7926 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 7927 /* end confdefs.h. */
mathieu@468 7928 #include <$SV_MODULE_HEADER>
mathieu@468 7929 _ACEOF
mathieu@468 7930 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 7931 case "(($ac_try" in
mathieu@468 7932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 7933 *) ac_try_echo=$ac_try;;
mathieu@468 7934 esac
mathieu@468 7935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 7936 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
mathieu@468 7937 ac_status=$?
mathieu@468 7938 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 7939 rm -f conftest.er1
mathieu@468 7940 cat conftest.err >&5
mathieu@468 7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 7942 (exit $ac_status); } >/dev/null && {
mathieu@468 7943 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 7944 test ! -s conftest.err
mathieu@468 7945 }; then
mathieu@468 7946 ac_header_preproc=yes
mathieu@468 7947 else
mathieu@468 7948 echo "$as_me: failed program was:" >&5
mathieu@468 7949 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 7950
mathieu@468 7951 ac_header_preproc=no
mathieu@468 7952 fi
mathieu@468 7953
mathieu@468 7954 rm -f conftest.err conftest.$ac_ext
mathieu@468 7955 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 7956 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 7957
mathieu@468 7958 # So? What about this header?
mathieu@468 7959 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 7960 yes:no: )
mathieu@468 7961 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 7962 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 7963 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 7964 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 7965 ac_header_preproc=yes
mathieu@468 7966 ;;
mathieu@468 7967 no:yes:* )
mathieu@468 7968 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 7969 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 7970 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 7971 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 7972 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 7973 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 7974 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 7975 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 7976 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 7977 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 7978 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 7979 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 7980 ( cat <<\_ASBOX
mathieu@468 7981 ## ------------------------------------------- ##
mathieu@468 7982 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 7983 ## ------------------------------------------- ##
mathieu@468 7984 _ASBOX
mathieu@468 7985 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 7986 ;;
mathieu@468 7987 esac
mathieu@468 7988 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 7989 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 7990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 7991 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 7992 else
mathieu@468 7993 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 7994 fi
mathieu@468 7995 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 7996 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 7997 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 7998
mathieu@468 7999 fi
mathieu@468 8000 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 8001 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
Chris@350 8002 else
mathieu@468 8003 { echo "$as_me:$LINENO: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
mathieu@468 8004 echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
Chris@350 8005 fi
Chris@350 8006
Chris@350 8007
Chris@350 8008 if test -z "$SV_MODULE_FAILED"; then
Chris@350 8009 if test -n "$SV_MODULE_LIB"; then
mathieu@468 8010 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 8011 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 8012 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 8013 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 8014 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 8015 else
Chris@350 8016 ac_check_lib_save_LIBS=$LIBS
Chris@350 8017 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 8018 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 8019 /* confdefs.h. */
mathieu@468 8020 _ACEOF
mathieu@468 8021 cat confdefs.h >>conftest.$ac_ext
mathieu@468 8022 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 8023 /* end confdefs.h. */
Chris@350 8024
Chris@350 8025 /* Override any GCC internal prototype to avoid an error.
Chris@350 8026 Use char because int might match the return type of a GCC
Chris@350 8027 builtin and then its argument prototype would still apply. */
Chris@350 8028 #ifdef __cplusplus
Chris@350 8029 extern "C"
Chris@350 8030 #endif
Chris@350 8031 char $SV_MODULE_FUNC ();
Chris@350 8032 int
Chris@350 8033 main ()
Chris@350 8034 {
Chris@350 8035 return $SV_MODULE_FUNC ();
Chris@350 8036 ;
Chris@350 8037 return 0;
Chris@350 8038 }
Chris@350 8039 _ACEOF
mathieu@468 8040 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 8041 if { (ac_try="$ac_link"
mathieu@468 8042 case "(($ac_try" in
mathieu@468 8043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 8044 *) ac_try_echo=$ac_try;;
mathieu@468 8045 esac
mathieu@468 8046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 8047 (eval "$ac_link") 2>conftest.er1
mathieu@468 8048 ac_status=$?
mathieu@468 8049 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 8050 rm -f conftest.er1
mathieu@468 8051 cat conftest.err >&5
mathieu@468 8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 8053 (exit $ac_status); } && {
mathieu@468 8054 test -z "$ac_cxx_werror_flag" ||
mathieu@468 8055 test ! -s conftest.err
mathieu@468 8056 } && test -s conftest$ac_exeext &&
mathieu@468 8057 $as_test_x conftest$ac_exeext; then
Chris@350 8058 eval "$as_ac_Lib=yes"
Chris@350 8059 else
mathieu@468 8060 echo "$as_me: failed program was:" >&5
mathieu@468 8061 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 8062
mathieu@468 8063 eval "$as_ac_Lib=no"
mathieu@468 8064 fi
mathieu@468 8065
mathieu@468 8066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 8067 conftest$ac_exeext conftest.$ac_ext
Chris@350 8068 LIBS=$ac_check_lib_save_LIBS
Chris@350 8069 fi
mathieu@468 8070 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 8071 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 8072 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 8073 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@350 8074 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 8075 else
mathieu@468 8076 { echo "$as_me:$LINENO: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
mathieu@468 8077 echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
Chris@350 8078 fi
Chris@350 8079
Chris@350 8080 fi
Chris@350 8081 fi
Chris@350 8082 fi
Chris@350 8083
Chris@350 8084
Chris@358 8085 SV_MODULE_MODULE=portaudio_2_0
Chris@358 8086 SV_MODULE_VERSION_TEST="portaudio-2.0 >= 19"
Chris@358 8087 SV_MODULE_HEADER=portaudio.h
Chris@358 8088 SV_MODULE_LIB=portaudio
Chris@358 8089 SV_MODULE_FUNC=Pa_IsFormatSupported
Chris@358 8090 SV_MODULE_HAVE=HAVE_$(echo portaudio_2_0 | tr 'a-z' 'A-Z')
Chris@358 8091 SV_MODULE_FAILED=1
Chris@405 8092 if test -n "$portaudio_2_0_LIBS" ; then
mathieu@468 8093 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 8094 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@405 8095 CXXFLAGS="$CXXFLAGS $portaudio_2_0_CFLAGS"
Chris@405 8096 LIBS="$LIBS $portaudio_2_0_LIBS"
Chris@405 8097 SV_MODULE_FAILED=""
Chris@405 8098 fi
Chris@358 8099 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@358 8100 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@358 8101 fi
Chris@405 8102 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@358 8103
Chris@358 8104 pkg_failed=no
mathieu@468 8105 { echo "$as_me:$LINENO: checking for portaudio_2_0" >&5
mathieu@468 8106 echo $ECHO_N "checking for portaudio_2_0... $ECHO_C" >&6; }
Chris@358 8107
Chris@457 8108 if test -n "$portaudio_2_0_CFLAGS"; then
Chris@457 8109 pkg_cv_portaudio_2_0_CFLAGS="$portaudio_2_0_CFLAGS"
Chris@457 8110 elif test -n "$PKG_CONFIG"; then
Chris@457 8111 if test -n "$PKG_CONFIG" && \
mathieu@468 8112 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@358 8113 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@358 8114 ac_status=$?
mathieu@468 8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 8116 (exit $ac_status); }; then
Chris@358 8117 pkg_cv_portaudio_2_0_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@358 8118 else
Chris@358 8119 pkg_failed=yes
Chris@358 8120 fi
Chris@457 8121 else
Chris@457 8122 pkg_failed=untried
Chris@457 8123 fi
Chris@457 8124 if test -n "$portaudio_2_0_LIBS"; then
Chris@457 8125 pkg_cv_portaudio_2_0_LIBS="$portaudio_2_0_LIBS"
Chris@457 8126 elif test -n "$PKG_CONFIG"; then
Chris@457 8127 if test -n "$PKG_CONFIG" && \
mathieu@468 8128 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@358 8129 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@358 8130 ac_status=$?
mathieu@468 8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 8132 (exit $ac_status); }; then
Chris@358 8133 pkg_cv_portaudio_2_0_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@358 8134 else
Chris@358 8135 pkg_failed=yes
Chris@358 8136 fi
Chris@457 8137 else
Chris@457 8138 pkg_failed=untried
Chris@358 8139 fi
Chris@358 8140
Chris@358 8141
Chris@358 8142
Chris@358 8143 if test $pkg_failed = yes; then
mathieu@468 8144 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 8145 echo "${ECHO_T}no" >&6; }
Chris@358 8146
Chris@358 8147 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@358 8148 _pkg_short_errors_supported=yes
Chris@358 8149 else
Chris@358 8150 _pkg_short_errors_supported=no
Chris@358 8151 fi
Chris@358 8152 if test $_pkg_short_errors_supported = yes; then
Chris@457 8153 portaudio_2_0_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@358 8154 else
Chris@457 8155 portaudio_2_0_PKG_ERRORS=`$PKG_CONFIG --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@358 8156 fi
Chris@358 8157 # Put the nasty error message in config.log where it belongs
Chris@358 8158 echo "$portaudio_2_0_PKG_ERRORS" >&5
Chris@358 8159
mathieu@468 8160 { echo "$as_me:$LINENO: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 8161 echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@358 8162 elif test $pkg_failed = untried; then
mathieu@468 8163 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 8164 echo "${ECHO_T}no" >&6; }
mathieu@468 8165 { echo "$as_me:$LINENO: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 8166 echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@358 8167 else
Chris@358 8168 portaudio_2_0_CFLAGS=$pkg_cv_portaudio_2_0_CFLAGS
Chris@358 8169 portaudio_2_0_LIBS=$pkg_cv_portaudio_2_0_LIBS
mathieu@468 8170 { echo "$as_me:$LINENO: result: yes" >&5
mathieu@468 8171 echo "${ECHO_T}yes" >&6; }
Chris@358 8172 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $portaudio_2_0_CFLAGS";LIBS="$LIBS $portaudio_2_0_LIBS";SV_MODULE_FAILED=""
Chris@358 8173 fi
Chris@358 8174 fi
Chris@358 8175 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 8176 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 8177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 8178 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 8179 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 8180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 8181 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 8182 fi
mathieu@468 8183 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 8184 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 8185 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 8186 else
mathieu@468 8187 # Is the header compilable?
mathieu@468 8188 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 8189 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 8190 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 8191 /* confdefs.h. */
mathieu@468 8192 _ACEOF
mathieu@468 8193 cat confdefs.h >>conftest.$ac_ext
mathieu@468 8194 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 8195 /* end confdefs.h. */
mathieu@468 8196 $ac_includes_default
mathieu@468 8197 #include <$SV_MODULE_HEADER>
mathieu@468 8198 _ACEOF
mathieu@468 8199 rm -f conftest.$ac_objext
mathieu@468 8200 if { (ac_try="$ac_compile"
mathieu@468 8201 case "(($ac_try" in
mathieu@468 8202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 8203 *) ac_try_echo=$ac_try;;
mathieu@468 8204 esac
mathieu@468 8205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 8206 (eval "$ac_compile") 2>conftest.er1
mathieu@468 8207 ac_status=$?
mathieu@468 8208 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 8209 rm -f conftest.er1
mathieu@468 8210 cat conftest.err >&5
mathieu@468 8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 8212 (exit $ac_status); } && {
mathieu@468 8213 test -z "$ac_cxx_werror_flag" ||
mathieu@468 8214 test ! -s conftest.err
mathieu@468 8215 } && test -s conftest.$ac_objext; then
mathieu@468 8216 ac_header_compiler=yes
mathieu@468 8217 else
mathieu@468 8218 echo "$as_me: failed program was:" >&5
mathieu@468 8219 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 8220
mathieu@468 8221 ac_header_compiler=no
mathieu@468 8222 fi
mathieu@468 8223
mathieu@468 8224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 8225 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 8226 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 8227
mathieu@468 8228 # Is the header present?
mathieu@468 8229 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 8230 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 8231 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 8232 /* confdefs.h. */
mathieu@468 8233 _ACEOF
mathieu@468 8234 cat confdefs.h >>conftest.$ac_ext
mathieu@468 8235 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 8236 /* end confdefs.h. */
mathieu@468 8237 #include <$SV_MODULE_HEADER>
mathieu@468 8238 _ACEOF
mathieu@468 8239 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 8240 case "(($ac_try" in
mathieu@468 8241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 8242 *) ac_try_echo=$ac_try;;
mathieu@468 8243 esac
mathieu@468 8244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 8245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
mathieu@468 8246 ac_status=$?
mathieu@468 8247 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 8248 rm -f conftest.er1
mathieu@468 8249 cat conftest.err >&5
mathieu@468 8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 8251 (exit $ac_status); } >/dev/null && {
mathieu@468 8252 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 8253 test ! -s conftest.err
mathieu@468 8254 }; then
mathieu@468 8255 ac_header_preproc=yes
mathieu@468 8256 else
mathieu@468 8257 echo "$as_me: failed program was:" >&5
mathieu@468 8258 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 8259
mathieu@468 8260 ac_header_preproc=no
mathieu@468 8261 fi
mathieu@468 8262
mathieu@468 8263 rm -f conftest.err conftest.$ac_ext
mathieu@468 8264 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 8265 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 8266
mathieu@468 8267 # So? What about this header?
mathieu@468 8268 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 8269 yes:no: )
mathieu@468 8270 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 8271 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 8272 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 8273 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 8274 ac_header_preproc=yes
mathieu@468 8275 ;;
mathieu@468 8276 no:yes:* )
mathieu@468 8277 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 8278 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 8279 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 8280 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 8281 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 8282 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 8283 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 8284 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 8285 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 8286 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 8287 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 8288 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 8289 ( cat <<\_ASBOX
mathieu@468 8290 ## ------------------------------------------- ##
mathieu@468 8291 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 8292 ## ------------------------------------------- ##
mathieu@468 8293 _ASBOX
mathieu@468 8294 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 8295 ;;
mathieu@468 8296 esac
mathieu@468 8297 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 8298 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 8299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 8300 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 8301 else
mathieu@468 8302 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 8303 fi
mathieu@468 8304 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 8305 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 8306 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 8307
mathieu@468 8308 fi
mathieu@468 8309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@358 8310 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
Chris@358 8311 else
mathieu@468 8312 { echo "$as_me:$LINENO: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
mathieu@468 8313 echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
Chris@358 8314 fi
Chris@358 8315
Chris@358 8316
Chris@358 8317 if test -z "$SV_MODULE_FAILED"; then
Chris@358 8318 if test -n "$SV_MODULE_LIB"; then
mathieu@468 8319 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 8320 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 8321 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 8322 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 8323 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@358 8324 else
Chris@358 8325 ac_check_lib_save_LIBS=$LIBS
Chris@358 8326 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 8327 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 8328 /* confdefs.h. */
mathieu@468 8329 _ACEOF
mathieu@468 8330 cat confdefs.h >>conftest.$ac_ext
mathieu@468 8331 cat >>conftest.$ac_ext <<_ACEOF
Chris@358 8332 /* end confdefs.h. */
Chris@358 8333
Chris@358 8334 /* Override any GCC internal prototype to avoid an error.
Chris@358 8335 Use char because int might match the return type of a GCC
Chris@358 8336 builtin and then its argument prototype would still apply. */
Chris@358 8337 #ifdef __cplusplus
Chris@358 8338 extern "C"
Chris@358 8339 #endif
Chris@358 8340 char $SV_MODULE_FUNC ();
Chris@358 8341 int
Chris@358 8342 main ()
Chris@358 8343 {
Chris@358 8344 return $SV_MODULE_FUNC ();
Chris@358 8345 ;
Chris@358 8346 return 0;
Chris@358 8347 }
Chris@358 8348 _ACEOF
mathieu@468 8349 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 8350 if { (ac_try="$ac_link"
mathieu@468 8351 case "(($ac_try" in
mathieu@468 8352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 8353 *) ac_try_echo=$ac_try;;
mathieu@468 8354 esac
mathieu@468 8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 8356 (eval "$ac_link") 2>conftest.er1
mathieu@468 8357 ac_status=$?
mathieu@468 8358 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 8359 rm -f conftest.er1
mathieu@468 8360 cat conftest.err >&5
mathieu@468 8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 8362 (exit $ac_status); } && {
mathieu@468 8363 test -z "$ac_cxx_werror_flag" ||
mathieu@468 8364 test ! -s conftest.err
mathieu@468 8365 } && test -s conftest$ac_exeext &&
mathieu@468 8366 $as_test_x conftest$ac_exeext; then
Chris@358 8367 eval "$as_ac_Lib=yes"
Chris@358 8368 else
mathieu@468 8369 echo "$as_me: failed program was:" >&5
mathieu@468 8370 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 8371
mathieu@468 8372 eval "$as_ac_Lib=no"
mathieu@468 8373 fi
mathieu@468 8374
mathieu@468 8375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 8376 conftest$ac_exeext conftest.$ac_ext
Chris@358 8377 LIBS=$ac_check_lib_save_LIBS
Chris@358 8378 fi
mathieu@468 8379 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 8380 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 8381 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 8382 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@358 8383 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@358 8384 else
mathieu@468 8385 { echo "$as_me:$LINENO: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
mathieu@468 8386 echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
Chris@358 8387 fi
Chris@358 8388
Chris@358 8389 fi
Chris@358 8390 fi
Chris@358 8391 fi
Chris@358 8392
Chris@358 8393
Chris@350 8394 SV_MODULE_MODULE=JACK
Chris@350 8395 SV_MODULE_VERSION_TEST="jack >= 0.100"
Chris@350 8396 SV_MODULE_HEADER=jack/jack.h
Chris@350 8397 SV_MODULE_LIB=jack
Chris@350 8398 SV_MODULE_FUNC=jack_client_open
Chris@350 8399 SV_MODULE_HAVE=HAVE_$(echo JACK | tr 'a-z' 'A-Z')
Chris@350 8400 SV_MODULE_FAILED=1
Chris@405 8401 if test -n "$JACK_LIBS" ; then
mathieu@468 8402 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 8403 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@405 8404 CXXFLAGS="$CXXFLAGS $JACK_CFLAGS"
Chris@405 8405 LIBS="$LIBS $JACK_LIBS"
Chris@405 8406 SV_MODULE_FAILED=""
Chris@405 8407 fi
Chris@350 8408 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 8409 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 8410 fi
Chris@405 8411 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@350 8412
Chris@350 8413 pkg_failed=no
mathieu@468 8414 { echo "$as_me:$LINENO: checking for JACK" >&5
mathieu@468 8415 echo $ECHO_N "checking for JACK... $ECHO_C" >&6; }
Chris@350 8416
Chris@457 8417 if test -n "$JACK_CFLAGS"; then
Chris@457 8418 pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
Chris@457 8419 elif test -n "$PKG_CONFIG"; then
Chris@457 8420 if test -n "$PKG_CONFIG" && \
mathieu@468 8421 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 8422 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 8423 ac_status=$?
mathieu@468 8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 8425 (exit $ac_status); }; then
Chris@350 8426 pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 8427 else
Chris@350 8428 pkg_failed=yes
Chris@350 8429 fi
Chris@457 8430 else
Chris@457 8431 pkg_failed=untried
Chris@457 8432 fi
Chris@457 8433 if test -n "$JACK_LIBS"; then
Chris@457 8434 pkg_cv_JACK_LIBS="$JACK_LIBS"
Chris@457 8435 elif test -n "$PKG_CONFIG"; then
Chris@457 8436 if test -n "$PKG_CONFIG" && \
mathieu@468 8437 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 8438 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 8439 ac_status=$?
mathieu@468 8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 8441 (exit $ac_status); }; then
Chris@350 8442 pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 8443 else
Chris@350 8444 pkg_failed=yes
Chris@350 8445 fi
Chris@457 8446 else
Chris@457 8447 pkg_failed=untried
Chris@350 8448 fi
Chris@350 8449
Chris@350 8450
Chris@350 8451
Chris@350 8452 if test $pkg_failed = yes; then
mathieu@468 8453 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 8454 echo "${ECHO_T}no" >&6; }
Chris@350 8455
Chris@350 8456 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@350 8457 _pkg_short_errors_supported=yes
Chris@350 8458 else
Chris@350 8459 _pkg_short_errors_supported=no
Chris@350 8460 fi
Chris@350 8461 if test $_pkg_short_errors_supported = yes; then
Chris@457 8462 JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 8463 else
Chris@457 8464 JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 8465 fi
Chris@350 8466 # Put the nasty error message in config.log where it belongs
Chris@350 8467 echo "$JACK_PKG_ERRORS" >&5
Chris@350 8468
mathieu@468 8469 { echo "$as_me:$LINENO: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 8470 echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 8471 elif test $pkg_failed = untried; then
mathieu@468 8472 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 8473 echo "${ECHO_T}no" >&6; }
mathieu@468 8474 { echo "$as_me:$LINENO: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 8475 echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 8476 else
Chris@350 8477 JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
Chris@350 8478 JACK_LIBS=$pkg_cv_JACK_LIBS
mathieu@468 8479 { echo "$as_me:$LINENO: result: yes" >&5
mathieu@468 8480 echo "${ECHO_T}yes" >&6; }
Chris@352 8481 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $JACK_CFLAGS";LIBS="$LIBS $JACK_LIBS";SV_MODULE_FAILED=""
Chris@350 8482 fi
Chris@350 8483 fi
Chris@350 8484 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 8485 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 8486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 8487 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 8488 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 8489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 8490 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 8491 fi
mathieu@468 8492 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 8493 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 8494 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 8495 else
mathieu@468 8496 # Is the header compilable?
mathieu@468 8497 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 8498 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 8499 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 8500 /* confdefs.h. */
mathieu@468 8501 _ACEOF
mathieu@468 8502 cat confdefs.h >>conftest.$ac_ext
mathieu@468 8503 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 8504 /* end confdefs.h. */
mathieu@468 8505 $ac_includes_default
mathieu@468 8506 #include <$SV_MODULE_HEADER>
mathieu@468 8507 _ACEOF
mathieu@468 8508 rm -f conftest.$ac_objext
mathieu@468 8509 if { (ac_try="$ac_compile"
mathieu@468 8510 case "(($ac_try" in
mathieu@468 8511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 8512 *) ac_try_echo=$ac_try;;
mathieu@468 8513 esac
mathieu@468 8514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 8515 (eval "$ac_compile") 2>conftest.er1
mathieu@468 8516 ac_status=$?
mathieu@468 8517 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 8518 rm -f conftest.er1
mathieu@468 8519 cat conftest.err >&5
mathieu@468 8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 8521 (exit $ac_status); } && {
mathieu@468 8522 test -z "$ac_cxx_werror_flag" ||
mathieu@468 8523 test ! -s conftest.err
mathieu@468 8524 } && test -s conftest.$ac_objext; then
mathieu@468 8525 ac_header_compiler=yes
mathieu@468 8526 else
mathieu@468 8527 echo "$as_me: failed program was:" >&5
mathieu@468 8528 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 8529
mathieu@468 8530 ac_header_compiler=no
mathieu@468 8531 fi
mathieu@468 8532
mathieu@468 8533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 8534 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 8535 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 8536
mathieu@468 8537 # Is the header present?
mathieu@468 8538 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 8539 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 8540 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 8541 /* confdefs.h. */
mathieu@468 8542 _ACEOF
mathieu@468 8543 cat confdefs.h >>conftest.$ac_ext
mathieu@468 8544 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 8545 /* end confdefs.h. */
mathieu@468 8546 #include <$SV_MODULE_HEADER>
mathieu@468 8547 _ACEOF
mathieu@468 8548 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 8549 case "(($ac_try" in
mathieu@468 8550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 8551 *) ac_try_echo=$ac_try;;
mathieu@468 8552 esac
mathieu@468 8553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 8554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
mathieu@468 8555 ac_status=$?
mathieu@468 8556 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 8557 rm -f conftest.er1
mathieu@468 8558 cat conftest.err >&5
mathieu@468 8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 8560 (exit $ac_status); } >/dev/null && {
mathieu@468 8561 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 8562 test ! -s conftest.err
mathieu@468 8563 }; then
mathieu@468 8564 ac_header_preproc=yes
mathieu@468 8565 else
mathieu@468 8566 echo "$as_me: failed program was:" >&5
mathieu@468 8567 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 8568
mathieu@468 8569 ac_header_preproc=no
mathieu@468 8570 fi
mathieu@468 8571
mathieu@468 8572 rm -f conftest.err conftest.$ac_ext
mathieu@468 8573 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 8574 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 8575
mathieu@468 8576 # So? What about this header?
mathieu@468 8577 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 8578 yes:no: )
mathieu@468 8579 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 8580 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 8581 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 8582 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 8583 ac_header_preproc=yes
mathieu@468 8584 ;;
mathieu@468 8585 no:yes:* )
mathieu@468 8586 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 8587 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 8588 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 8589 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 8590 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 8591 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 8592 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 8593 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 8594 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 8595 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 8596 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 8597 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 8598 ( cat <<\_ASBOX
mathieu@468 8599 ## ------------------------------------------- ##
mathieu@468 8600 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 8601 ## ------------------------------------------- ##
mathieu@468 8602 _ASBOX
mathieu@468 8603 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 8604 ;;
mathieu@468 8605 esac
mathieu@468 8606 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 8607 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 8608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 8609 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 8610 else
mathieu@468 8611 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 8612 fi
mathieu@468 8613 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 8614 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 8615 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 8616
mathieu@468 8617 fi
mathieu@468 8618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 8619 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
Chris@350 8620 else
mathieu@468 8621 { echo "$as_me:$LINENO: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
mathieu@468 8622 echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
Chris@350 8623 fi
Chris@350 8624
Chris@350 8625
Chris@350 8626 if test -z "$SV_MODULE_FAILED"; then
Chris@350 8627 if test -n "$SV_MODULE_LIB"; then
mathieu@468 8628 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 8629 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 8630 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 8631 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 8632 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 8633 else
Chris@350 8634 ac_check_lib_save_LIBS=$LIBS
Chris@350 8635 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 8636 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 8637 /* confdefs.h. */
mathieu@468 8638 _ACEOF
mathieu@468 8639 cat confdefs.h >>conftest.$ac_ext
mathieu@468 8640 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 8641 /* end confdefs.h. */
Chris@350 8642
Chris@350 8643 /* Override any GCC internal prototype to avoid an error.
Chris@350 8644 Use char because int might match the return type of a GCC
Chris@350 8645 builtin and then its argument prototype would still apply. */
Chris@350 8646 #ifdef __cplusplus
Chris@350 8647 extern "C"
Chris@350 8648 #endif
Chris@350 8649 char $SV_MODULE_FUNC ();
Chris@350 8650 int
Chris@350 8651 main ()
Chris@350 8652 {
Chris@350 8653 return $SV_MODULE_FUNC ();
Chris@350 8654 ;
Chris@350 8655 return 0;
Chris@350 8656 }
Chris@350 8657 _ACEOF
mathieu@468 8658 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 8659 if { (ac_try="$ac_link"
mathieu@468 8660 case "(($ac_try" in
mathieu@468 8661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 8662 *) ac_try_echo=$ac_try;;
mathieu@468 8663 esac
mathieu@468 8664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 8665 (eval "$ac_link") 2>conftest.er1
mathieu@468 8666 ac_status=$?
mathieu@468 8667 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 8668 rm -f conftest.er1
mathieu@468 8669 cat conftest.err >&5
mathieu@468 8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 8671 (exit $ac_status); } && {
mathieu@468 8672 test -z "$ac_cxx_werror_flag" ||
mathieu@468 8673 test ! -s conftest.err
mathieu@468 8674 } && test -s conftest$ac_exeext &&
mathieu@468 8675 $as_test_x conftest$ac_exeext; then
Chris@350 8676 eval "$as_ac_Lib=yes"
Chris@350 8677 else
mathieu@468 8678 echo "$as_me: failed program was:" >&5
mathieu@468 8679 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 8680
mathieu@468 8681 eval "$as_ac_Lib=no"
mathieu@468 8682 fi
mathieu@468 8683
mathieu@468 8684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 8685 conftest$ac_exeext conftest.$ac_ext
Chris@350 8686 LIBS=$ac_check_lib_save_LIBS
Chris@350 8687 fi
mathieu@468 8688 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 8689 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 8690 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 8691 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@350 8692 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 8693 else
mathieu@468 8694 { echo "$as_me:$LINENO: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
mathieu@468 8695 echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
Chris@350 8696 fi
Chris@350 8697
Chris@350 8698 fi
Chris@350 8699 fi
Chris@350 8700 fi
Chris@350 8701
Chris@350 8702
Chris@350 8703 SV_MODULE_MODULE=libpulse
Chris@350 8704 SV_MODULE_VERSION_TEST="libpulse >= 0.9"
Chris@350 8705 SV_MODULE_HEADER=pulse/pulseaudio.h
Chris@350 8706 SV_MODULE_LIB=pulse
Chris@350 8707 SV_MODULE_FUNC=pa_stream_new
Chris@350 8708 SV_MODULE_HAVE=HAVE_$(echo libpulse | tr 'a-z' 'A-Z')
Chris@350 8709 SV_MODULE_FAILED=1
Chris@405 8710 if test -n "$libpulse_LIBS" ; then
mathieu@468 8711 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 8712 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@405 8713 CXXFLAGS="$CXXFLAGS $libpulse_CFLAGS"
Chris@405 8714 LIBS="$LIBS $libpulse_LIBS"
Chris@405 8715 SV_MODULE_FAILED=""
Chris@405 8716 fi
Chris@350 8717 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 8718 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 8719 fi
Chris@405 8720 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@350 8721
Chris@350 8722 pkg_failed=no
mathieu@468 8723 { echo "$as_me:$LINENO: checking for libpulse" >&5
mathieu@468 8724 echo $ECHO_N "checking for libpulse... $ECHO_C" >&6; }
Chris@350 8725
Chris@457 8726 if test -n "$libpulse_CFLAGS"; then
Chris@457 8727 pkg_cv_libpulse_CFLAGS="$libpulse_CFLAGS"
Chris@457 8728 elif test -n "$PKG_CONFIG"; then
Chris@457 8729 if test -n "$PKG_CONFIG" && \
mathieu@468 8730 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 8731 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 8732 ac_status=$?
mathieu@468 8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 8734 (exit $ac_status); }; then
Chris@350 8735 pkg_cv_libpulse_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 8736 else
Chris@350 8737 pkg_failed=yes
Chris@350 8738 fi
Chris@457 8739 else
Chris@457 8740 pkg_failed=untried
Chris@457 8741 fi
Chris@457 8742 if test -n "$libpulse_LIBS"; then
Chris@457 8743 pkg_cv_libpulse_LIBS="$libpulse_LIBS"
Chris@457 8744 elif test -n "$PKG_CONFIG"; then
Chris@457 8745 if test -n "$PKG_CONFIG" && \
mathieu@468 8746 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 8747 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 8748 ac_status=$?
mathieu@468 8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 8750 (exit $ac_status); }; then
Chris@350 8751 pkg_cv_libpulse_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 8752 else
Chris@350 8753 pkg_failed=yes
Chris@350 8754 fi
Chris@457 8755 else
Chris@457 8756 pkg_failed=untried
Chris@350 8757 fi
Chris@350 8758
Chris@350 8759
Chris@350 8760
Chris@350 8761 if test $pkg_failed = yes; then
mathieu@468 8762 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 8763 echo "${ECHO_T}no" >&6; }
Chris@350 8764
Chris@350 8765 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@350 8766 _pkg_short_errors_supported=yes
Chris@350 8767 else
Chris@350 8768 _pkg_short_errors_supported=no
Chris@350 8769 fi
Chris@350 8770 if test $_pkg_short_errors_supported = yes; then
Chris@457 8771 libpulse_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 8772 else
Chris@457 8773 libpulse_PKG_ERRORS=`$PKG_CONFIG --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 8774 fi
Chris@350 8775 # Put the nasty error message in config.log where it belongs
Chris@350 8776 echo "$libpulse_PKG_ERRORS" >&5
Chris@350 8777
mathieu@468 8778 { echo "$as_me:$LINENO: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 8779 echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 8780 elif test $pkg_failed = untried; then
mathieu@468 8781 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 8782 echo "${ECHO_T}no" >&6; }
mathieu@468 8783 { echo "$as_me:$LINENO: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 8784 echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 8785 else
Chris@350 8786 libpulse_CFLAGS=$pkg_cv_libpulse_CFLAGS
Chris@350 8787 libpulse_LIBS=$pkg_cv_libpulse_LIBS
mathieu@468 8788 { echo "$as_me:$LINENO: result: yes" >&5
mathieu@468 8789 echo "${ECHO_T}yes" >&6; }
Chris@352 8790 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $libpulse_CFLAGS";LIBS="$LIBS $libpulse_LIBS";SV_MODULE_FAILED=""
Chris@350 8791 fi
Chris@350 8792 fi
Chris@350 8793 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 8794 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 8795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 8796 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 8797 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 8798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 8799 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 8800 fi
mathieu@468 8801 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 8802 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 8803 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 8804 else
mathieu@468 8805 # Is the header compilable?
mathieu@468 8806 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 8807 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 8808 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 8809 /* confdefs.h. */
mathieu@468 8810 _ACEOF
mathieu@468 8811 cat confdefs.h >>conftest.$ac_ext
mathieu@468 8812 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 8813 /* end confdefs.h. */
mathieu@468 8814 $ac_includes_default
mathieu@468 8815 #include <$SV_MODULE_HEADER>
mathieu@468 8816 _ACEOF
mathieu@468 8817 rm -f conftest.$ac_objext
mathieu@468 8818 if { (ac_try="$ac_compile"
mathieu@468 8819 case "(($ac_try" in
mathieu@468 8820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 8821 *) ac_try_echo=$ac_try;;
mathieu@468 8822 esac
mathieu@468 8823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 8824 (eval "$ac_compile") 2>conftest.er1
mathieu@468 8825 ac_status=$?
mathieu@468 8826 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 8827 rm -f conftest.er1
mathieu@468 8828 cat conftest.err >&5
mathieu@468 8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 8830 (exit $ac_status); } && {
mathieu@468 8831 test -z "$ac_cxx_werror_flag" ||
mathieu@468 8832 test ! -s conftest.err
mathieu@468 8833 } && test -s conftest.$ac_objext; then
mathieu@468 8834 ac_header_compiler=yes
mathieu@468 8835 else
mathieu@468 8836 echo "$as_me: failed program was:" >&5
mathieu@468 8837 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 8838
mathieu@468 8839 ac_header_compiler=no
mathieu@468 8840 fi
mathieu@468 8841
mathieu@468 8842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 8843 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 8844 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 8845
mathieu@468 8846 # Is the header present?
mathieu@468 8847 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 8848 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 8849 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 8850 /* confdefs.h. */
mathieu@468 8851 _ACEOF
mathieu@468 8852 cat confdefs.h >>conftest.$ac_ext
mathieu@468 8853 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 8854 /* end confdefs.h. */
mathieu@468 8855 #include <$SV_MODULE_HEADER>
mathieu@468 8856 _ACEOF
mathieu@468 8857 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 8858 case "(($ac_try" in
mathieu@468 8859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 8860 *) ac_try_echo=$ac_try;;
mathieu@468 8861 esac
mathieu@468 8862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 8863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
mathieu@468 8864 ac_status=$?
mathieu@468 8865 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 8866 rm -f conftest.er1
mathieu@468 8867 cat conftest.err >&5
mathieu@468 8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 8869 (exit $ac_status); } >/dev/null && {
mathieu@468 8870 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 8871 test ! -s conftest.err
mathieu@468 8872 }; then
mathieu@468 8873 ac_header_preproc=yes
mathieu@468 8874 else
mathieu@468 8875 echo "$as_me: failed program was:" >&5
mathieu@468 8876 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 8877
mathieu@468 8878 ac_header_preproc=no
mathieu@468 8879 fi
mathieu@468 8880
mathieu@468 8881 rm -f conftest.err conftest.$ac_ext
mathieu@468 8882 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 8883 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 8884
mathieu@468 8885 # So? What about this header?
mathieu@468 8886 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 8887 yes:no: )
mathieu@468 8888 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 8889 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 8890 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 8891 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 8892 ac_header_preproc=yes
mathieu@468 8893 ;;
mathieu@468 8894 no:yes:* )
mathieu@468 8895 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 8896 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 8897 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 8898 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 8899 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 8900 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 8901 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 8902 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 8903 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 8904 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 8905 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 8906 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 8907 ( cat <<\_ASBOX
mathieu@468 8908 ## ------------------------------------------- ##
mathieu@468 8909 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 8910 ## ------------------------------------------- ##
mathieu@468 8911 _ASBOX
mathieu@468 8912 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 8913 ;;
mathieu@468 8914 esac
mathieu@468 8915 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 8916 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 8917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 8918 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 8919 else
mathieu@468 8920 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 8921 fi
mathieu@468 8922 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 8923 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 8924 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 8925
mathieu@468 8926 fi
mathieu@468 8927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 8928 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
Chris@350 8929 else
mathieu@468 8930 { echo "$as_me:$LINENO: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
mathieu@468 8931 echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
Chris@350 8932 fi
Chris@350 8933
Chris@350 8934
Chris@350 8935 if test -z "$SV_MODULE_FAILED"; then
Chris@350 8936 if test -n "$SV_MODULE_LIB"; then
mathieu@468 8937 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 8938 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 8939 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 8940 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 8941 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 8942 else
Chris@350 8943 ac_check_lib_save_LIBS=$LIBS
Chris@350 8944 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 8945 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 8946 /* confdefs.h. */
mathieu@468 8947 _ACEOF
mathieu@468 8948 cat confdefs.h >>conftest.$ac_ext
mathieu@468 8949 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 8950 /* end confdefs.h. */
Chris@350 8951
Chris@350 8952 /* Override any GCC internal prototype to avoid an error.
Chris@350 8953 Use char because int might match the return type of a GCC
Chris@350 8954 builtin and then its argument prototype would still apply. */
Chris@350 8955 #ifdef __cplusplus
Chris@350 8956 extern "C"
Chris@350 8957 #endif
Chris@350 8958 char $SV_MODULE_FUNC ();
Chris@350 8959 int
Chris@350 8960 main ()
Chris@350 8961 {
Chris@350 8962 return $SV_MODULE_FUNC ();
Chris@350 8963 ;
Chris@350 8964 return 0;
Chris@350 8965 }
Chris@350 8966 _ACEOF
mathieu@468 8967 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 8968 if { (ac_try="$ac_link"
mathieu@468 8969 case "(($ac_try" in
mathieu@468 8970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 8971 *) ac_try_echo=$ac_try;;
mathieu@468 8972 esac
mathieu@468 8973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 8974 (eval "$ac_link") 2>conftest.er1
mathieu@468 8975 ac_status=$?
mathieu@468 8976 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 8977 rm -f conftest.er1
mathieu@468 8978 cat conftest.err >&5
mathieu@468 8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 8980 (exit $ac_status); } && {
mathieu@468 8981 test -z "$ac_cxx_werror_flag" ||
mathieu@468 8982 test ! -s conftest.err
mathieu@468 8983 } && test -s conftest$ac_exeext &&
mathieu@468 8984 $as_test_x conftest$ac_exeext; then
Chris@350 8985 eval "$as_ac_Lib=yes"
Chris@350 8986 else
mathieu@468 8987 echo "$as_me: failed program was:" >&5
mathieu@468 8988 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 8989
mathieu@468 8990 eval "$as_ac_Lib=no"
mathieu@468 8991 fi
mathieu@468 8992
mathieu@468 8993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 8994 conftest$ac_exeext conftest.$ac_ext
Chris@350 8995 LIBS=$ac_check_lib_save_LIBS
Chris@350 8996 fi
mathieu@468 8997 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 8998 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 8999 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 9000 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@350 9001 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 9002 else
mathieu@468 9003 { echo "$as_me:$LINENO: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
mathieu@468 9004 echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
Chris@350 9005 fi
Chris@350 9006
Chris@350 9007 fi
Chris@350 9008 fi
Chris@350 9009 fi
Chris@350 9010
Chris@350 9011
Chris@350 9012 SV_MODULE_MODULE=lrdf
Chris@350 9013 SV_MODULE_VERSION_TEST="lrdf >= 0.2"
Chris@350 9014 SV_MODULE_HEADER=lrdf.h
Chris@350 9015 SV_MODULE_LIB=lrdf
Chris@350 9016 SV_MODULE_FUNC=lrdf_init
Chris@350 9017 SV_MODULE_HAVE=HAVE_$(echo lrdf | tr 'a-z' 'A-Z')
Chris@350 9018 SV_MODULE_FAILED=1
Chris@405 9019 if test -n "$lrdf_LIBS" ; then
mathieu@468 9020 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 9021 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@405 9022 CXXFLAGS="$CXXFLAGS $lrdf_CFLAGS"
Chris@405 9023 LIBS="$LIBS $lrdf_LIBS"
Chris@405 9024 SV_MODULE_FAILED=""
Chris@405 9025 fi
Chris@350 9026 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 9027 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 9028 fi
Chris@405 9029 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@350 9030
Chris@350 9031 pkg_failed=no
mathieu@468 9032 { echo "$as_me:$LINENO: checking for lrdf" >&5
mathieu@468 9033 echo $ECHO_N "checking for lrdf... $ECHO_C" >&6; }
Chris@350 9034
Chris@457 9035 if test -n "$lrdf_CFLAGS"; then
Chris@457 9036 pkg_cv_lrdf_CFLAGS="$lrdf_CFLAGS"
Chris@457 9037 elif test -n "$PKG_CONFIG"; then
Chris@457 9038 if test -n "$PKG_CONFIG" && \
mathieu@468 9039 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 9040 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 9041 ac_status=$?
mathieu@468 9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 9043 (exit $ac_status); }; then
Chris@350 9044 pkg_cv_lrdf_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 9045 else
Chris@350 9046 pkg_failed=yes
Chris@350 9047 fi
Chris@457 9048 else
Chris@457 9049 pkg_failed=untried
Chris@457 9050 fi
Chris@457 9051 if test -n "$lrdf_LIBS"; then
Chris@457 9052 pkg_cv_lrdf_LIBS="$lrdf_LIBS"
Chris@457 9053 elif test -n "$PKG_CONFIG"; then
Chris@457 9054 if test -n "$PKG_CONFIG" && \
mathieu@468 9055 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 9056 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 9057 ac_status=$?
mathieu@468 9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 9059 (exit $ac_status); }; then
Chris@350 9060 pkg_cv_lrdf_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 9061 else
Chris@350 9062 pkg_failed=yes
Chris@350 9063 fi
Chris@457 9064 else
Chris@457 9065 pkg_failed=untried
Chris@350 9066 fi
Chris@350 9067
Chris@350 9068
Chris@350 9069
Chris@350 9070 if test $pkg_failed = yes; then
mathieu@468 9071 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 9072 echo "${ECHO_T}no" >&6; }
Chris@350 9073
Chris@350 9074 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@350 9075 _pkg_short_errors_supported=yes
Chris@350 9076 else
Chris@350 9077 _pkg_short_errors_supported=no
Chris@350 9078 fi
Chris@350 9079 if test $_pkg_short_errors_supported = yes; then
Chris@457 9080 lrdf_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 9081 else
Chris@457 9082 lrdf_PKG_ERRORS=`$PKG_CONFIG --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 9083 fi
Chris@350 9084 # Put the nasty error message in config.log where it belongs
Chris@350 9085 echo "$lrdf_PKG_ERRORS" >&5
Chris@350 9086
mathieu@468 9087 { echo "$as_me:$LINENO: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 9088 echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 9089 elif test $pkg_failed = untried; then
mathieu@468 9090 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 9091 echo "${ECHO_T}no" >&6; }
mathieu@468 9092 { echo "$as_me:$LINENO: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 9093 echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 9094 else
Chris@350 9095 lrdf_CFLAGS=$pkg_cv_lrdf_CFLAGS
Chris@350 9096 lrdf_LIBS=$pkg_cv_lrdf_LIBS
mathieu@468 9097 { echo "$as_me:$LINENO: result: yes" >&5
mathieu@468 9098 echo "${ECHO_T}yes" >&6; }
Chris@352 9099 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $lrdf_CFLAGS";LIBS="$LIBS $lrdf_LIBS";SV_MODULE_FAILED=""
Chris@350 9100 fi
Chris@350 9101 fi
Chris@350 9102 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 9103 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 9104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 9105 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 9106 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 9107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 9108 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 9109 fi
mathieu@468 9110 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 9111 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 9112 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 9113 else
mathieu@468 9114 # Is the header compilable?
mathieu@468 9115 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 9116 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 9117 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 9118 /* confdefs.h. */
mathieu@468 9119 _ACEOF
mathieu@468 9120 cat confdefs.h >>conftest.$ac_ext
mathieu@468 9121 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 9122 /* end confdefs.h. */
mathieu@468 9123 $ac_includes_default
mathieu@468 9124 #include <$SV_MODULE_HEADER>
mathieu@468 9125 _ACEOF
mathieu@468 9126 rm -f conftest.$ac_objext
mathieu@468 9127 if { (ac_try="$ac_compile"
mathieu@468 9128 case "(($ac_try" in
mathieu@468 9129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 9130 *) ac_try_echo=$ac_try;;
mathieu@468 9131 esac
mathieu@468 9132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 9133 (eval "$ac_compile") 2>conftest.er1
mathieu@468 9134 ac_status=$?
mathieu@468 9135 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 9136 rm -f conftest.er1
mathieu@468 9137 cat conftest.err >&5
mathieu@468 9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 9139 (exit $ac_status); } && {
mathieu@468 9140 test -z "$ac_cxx_werror_flag" ||
mathieu@468 9141 test ! -s conftest.err
mathieu@468 9142 } && test -s conftest.$ac_objext; then
mathieu@468 9143 ac_header_compiler=yes
mathieu@468 9144 else
mathieu@468 9145 echo "$as_me: failed program was:" >&5
mathieu@468 9146 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 9147
mathieu@468 9148 ac_header_compiler=no
mathieu@468 9149 fi
mathieu@468 9150
mathieu@468 9151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 9152 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 9153 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 9154
mathieu@468 9155 # Is the header present?
mathieu@468 9156 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 9157 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 9158 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 9159 /* confdefs.h. */
mathieu@468 9160 _ACEOF
mathieu@468 9161 cat confdefs.h >>conftest.$ac_ext
mathieu@468 9162 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 9163 /* end confdefs.h. */
mathieu@468 9164 #include <$SV_MODULE_HEADER>
mathieu@468 9165 _ACEOF
mathieu@468 9166 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 9167 case "(($ac_try" in
mathieu@468 9168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 9169 *) ac_try_echo=$ac_try;;
mathieu@468 9170 esac
mathieu@468 9171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 9172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
mathieu@468 9173 ac_status=$?
mathieu@468 9174 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 9175 rm -f conftest.er1
mathieu@468 9176 cat conftest.err >&5
mathieu@468 9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 9178 (exit $ac_status); } >/dev/null && {
mathieu@468 9179 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 9180 test ! -s conftest.err
mathieu@468 9181 }; then
mathieu@468 9182 ac_header_preproc=yes
mathieu@468 9183 else
mathieu@468 9184 echo "$as_me: failed program was:" >&5
mathieu@468 9185 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 9186
mathieu@468 9187 ac_header_preproc=no
mathieu@468 9188 fi
mathieu@468 9189
mathieu@468 9190 rm -f conftest.err conftest.$ac_ext
mathieu@468 9191 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 9192 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 9193
mathieu@468 9194 # So? What about this header?
mathieu@468 9195 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 9196 yes:no: )
mathieu@468 9197 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 9198 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 9199 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 9200 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 9201 ac_header_preproc=yes
mathieu@468 9202 ;;
mathieu@468 9203 no:yes:* )
mathieu@468 9204 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 9205 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 9206 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 9207 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 9208 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 9209 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 9210 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 9211 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 9212 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 9213 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 9214 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 9215 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 9216 ( cat <<\_ASBOX
mathieu@468 9217 ## ------------------------------------------- ##
mathieu@468 9218 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 9219 ## ------------------------------------------- ##
mathieu@468 9220 _ASBOX
mathieu@468 9221 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 9222 ;;
mathieu@468 9223 esac
mathieu@468 9224 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 9225 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 9226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 9227 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 9228 else
mathieu@468 9229 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 9230 fi
mathieu@468 9231 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 9232 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 9233 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 9234
mathieu@468 9235 fi
mathieu@468 9236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 9237 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
Chris@350 9238 else
mathieu@468 9239 { echo "$as_me:$LINENO: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
mathieu@468 9240 echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
Chris@350 9241 fi
Chris@350 9242
Chris@350 9243
Chris@350 9244 if test -z "$SV_MODULE_FAILED"; then
Chris@350 9245 if test -n "$SV_MODULE_LIB"; then
mathieu@468 9246 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 9247 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 9248 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 9249 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 9250 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 9251 else
Chris@350 9252 ac_check_lib_save_LIBS=$LIBS
Chris@350 9253 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 9254 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 9255 /* confdefs.h. */
mathieu@468 9256 _ACEOF
mathieu@468 9257 cat confdefs.h >>conftest.$ac_ext
mathieu@468 9258 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 9259 /* end confdefs.h. */
Chris@350 9260
Chris@350 9261 /* Override any GCC internal prototype to avoid an error.
Chris@350 9262 Use char because int might match the return type of a GCC
Chris@350 9263 builtin and then its argument prototype would still apply. */
Chris@350 9264 #ifdef __cplusplus
Chris@350 9265 extern "C"
Chris@350 9266 #endif
Chris@350 9267 char $SV_MODULE_FUNC ();
Chris@350 9268 int
Chris@350 9269 main ()
Chris@350 9270 {
Chris@350 9271 return $SV_MODULE_FUNC ();
Chris@350 9272 ;
Chris@350 9273 return 0;
Chris@350 9274 }
Chris@350 9275 _ACEOF
mathieu@468 9276 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 9277 if { (ac_try="$ac_link"
mathieu@468 9278 case "(($ac_try" in
mathieu@468 9279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 9280 *) ac_try_echo=$ac_try;;
mathieu@468 9281 esac
mathieu@468 9282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 9283 (eval "$ac_link") 2>conftest.er1
mathieu@468 9284 ac_status=$?
mathieu@468 9285 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 9286 rm -f conftest.er1
mathieu@468 9287 cat conftest.err >&5
mathieu@468 9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 9289 (exit $ac_status); } && {
mathieu@468 9290 test -z "$ac_cxx_werror_flag" ||
mathieu@468 9291 test ! -s conftest.err
mathieu@468 9292 } && test -s conftest$ac_exeext &&
mathieu@468 9293 $as_test_x conftest$ac_exeext; then
Chris@350 9294 eval "$as_ac_Lib=yes"
Chris@350 9295 else
mathieu@468 9296 echo "$as_me: failed program was:" >&5
mathieu@468 9297 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 9298
mathieu@468 9299 eval "$as_ac_Lib=no"
mathieu@468 9300 fi
mathieu@468 9301
mathieu@468 9302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 9303 conftest$ac_exeext conftest.$ac_ext
Chris@350 9304 LIBS=$ac_check_lib_save_LIBS
Chris@350 9305 fi
mathieu@468 9306 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 9307 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 9308 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 9309 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@350 9310 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 9311 else
mathieu@468 9312 { echo "$as_me:$LINENO: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
mathieu@468 9313 echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
Chris@350 9314 fi
Chris@350 9315
Chris@350 9316 fi
Chris@350 9317 fi
Chris@350 9318 fi
Chris@350 9319
Chris@350 9320
Chris@350 9321 SV_MODULE_MODULE=oggz
Chris@350 9322 SV_MODULE_VERSION_TEST="oggz >= 1.0.0"
Chris@350 9323 SV_MODULE_HEADER=oggz/oggz.h
Chris@350 9324 SV_MODULE_LIB=oggz
Chris@350 9325 SV_MODULE_FUNC=oggz_run
Chris@350 9326 SV_MODULE_HAVE=HAVE_$(echo oggz | tr 'a-z' 'A-Z')
Chris@350 9327 SV_MODULE_FAILED=1
Chris@405 9328 if test -n "$oggz_LIBS" ; then
mathieu@468 9329 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 9330 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@405 9331 CXXFLAGS="$CXXFLAGS $oggz_CFLAGS"
Chris@405 9332 LIBS="$LIBS $oggz_LIBS"
Chris@405 9333 SV_MODULE_FAILED=""
Chris@405 9334 fi
Chris@350 9335 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 9336 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 9337 fi
Chris@405 9338 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@350 9339
Chris@350 9340 pkg_failed=no
mathieu@468 9341 { echo "$as_me:$LINENO: checking for oggz" >&5
mathieu@468 9342 echo $ECHO_N "checking for oggz... $ECHO_C" >&6; }
Chris@350 9343
Chris@457 9344 if test -n "$oggz_CFLAGS"; then
Chris@457 9345 pkg_cv_oggz_CFLAGS="$oggz_CFLAGS"
Chris@457 9346 elif test -n "$PKG_CONFIG"; then
Chris@457 9347 if test -n "$PKG_CONFIG" && \
mathieu@468 9348 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 9349 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 9350 ac_status=$?
mathieu@468 9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 9352 (exit $ac_status); }; then
Chris@350 9353 pkg_cv_oggz_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 9354 else
Chris@350 9355 pkg_failed=yes
Chris@350 9356 fi
Chris@457 9357 else
Chris@457 9358 pkg_failed=untried
Chris@457 9359 fi
Chris@457 9360 if test -n "$oggz_LIBS"; then
Chris@457 9361 pkg_cv_oggz_LIBS="$oggz_LIBS"
Chris@457 9362 elif test -n "$PKG_CONFIG"; then
Chris@457 9363 if test -n "$PKG_CONFIG" && \
mathieu@468 9364 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 9365 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 9366 ac_status=$?
mathieu@468 9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 9368 (exit $ac_status); }; then
Chris@350 9369 pkg_cv_oggz_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 9370 else
Chris@350 9371 pkg_failed=yes
Chris@350 9372 fi
Chris@457 9373 else
Chris@457 9374 pkg_failed=untried
Chris@350 9375 fi
Chris@350 9376
Chris@350 9377
Chris@350 9378
Chris@350 9379 if test $pkg_failed = yes; then
mathieu@468 9380 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 9381 echo "${ECHO_T}no" >&6; }
Chris@350 9382
Chris@350 9383 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@350 9384 _pkg_short_errors_supported=yes
Chris@350 9385 else
Chris@350 9386 _pkg_short_errors_supported=no
Chris@350 9387 fi
Chris@350 9388 if test $_pkg_short_errors_supported = yes; then
Chris@457 9389 oggz_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 9390 else
Chris@457 9391 oggz_PKG_ERRORS=`$PKG_CONFIG --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 9392 fi
Chris@350 9393 # Put the nasty error message in config.log where it belongs
Chris@350 9394 echo "$oggz_PKG_ERRORS" >&5
Chris@350 9395
mathieu@468 9396 { echo "$as_me:$LINENO: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 9397 echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 9398 elif test $pkg_failed = untried; then
mathieu@468 9399 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 9400 echo "${ECHO_T}no" >&6; }
mathieu@468 9401 { echo "$as_me:$LINENO: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 9402 echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 9403 else
Chris@350 9404 oggz_CFLAGS=$pkg_cv_oggz_CFLAGS
Chris@350 9405 oggz_LIBS=$pkg_cv_oggz_LIBS
mathieu@468 9406 { echo "$as_me:$LINENO: result: yes" >&5
mathieu@468 9407 echo "${ECHO_T}yes" >&6; }
Chris@352 9408 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $oggz_CFLAGS";LIBS="$LIBS $oggz_LIBS";SV_MODULE_FAILED=""
Chris@350 9409 fi
Chris@350 9410 fi
Chris@350 9411 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 9412 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 9413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 9414 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 9415 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 9416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 9417 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 9418 fi
mathieu@468 9419 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 9420 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 9421 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 9422 else
mathieu@468 9423 # Is the header compilable?
mathieu@468 9424 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 9425 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 9426 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 9427 /* confdefs.h. */
mathieu@468 9428 _ACEOF
mathieu@468 9429 cat confdefs.h >>conftest.$ac_ext
mathieu@468 9430 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 9431 /* end confdefs.h. */
mathieu@468 9432 $ac_includes_default
mathieu@468 9433 #include <$SV_MODULE_HEADER>
mathieu@468 9434 _ACEOF
mathieu@468 9435 rm -f conftest.$ac_objext
mathieu@468 9436 if { (ac_try="$ac_compile"
mathieu@468 9437 case "(($ac_try" in
mathieu@468 9438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 9439 *) ac_try_echo=$ac_try;;
mathieu@468 9440 esac
mathieu@468 9441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 9442 (eval "$ac_compile") 2>conftest.er1
mathieu@468 9443 ac_status=$?
mathieu@468 9444 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 9445 rm -f conftest.er1
mathieu@468 9446 cat conftest.err >&5
mathieu@468 9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 9448 (exit $ac_status); } && {
mathieu@468 9449 test -z "$ac_cxx_werror_flag" ||
mathieu@468 9450 test ! -s conftest.err
mathieu@468 9451 } && test -s conftest.$ac_objext; then
mathieu@468 9452 ac_header_compiler=yes
mathieu@468 9453 else
mathieu@468 9454 echo "$as_me: failed program was:" >&5
mathieu@468 9455 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 9456
mathieu@468 9457 ac_header_compiler=no
mathieu@468 9458 fi
mathieu@468 9459
mathieu@468 9460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 9461 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 9462 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 9463
mathieu@468 9464 # Is the header present?
mathieu@468 9465 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 9466 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 9467 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 9468 /* confdefs.h. */
mathieu@468 9469 _ACEOF
mathieu@468 9470 cat confdefs.h >>conftest.$ac_ext
mathieu@468 9471 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 9472 /* end confdefs.h. */
mathieu@468 9473 #include <$SV_MODULE_HEADER>
mathieu@468 9474 _ACEOF
mathieu@468 9475 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 9476 case "(($ac_try" in
mathieu@468 9477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 9478 *) ac_try_echo=$ac_try;;
mathieu@468 9479 esac
mathieu@468 9480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 9481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
mathieu@468 9482 ac_status=$?
mathieu@468 9483 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 9484 rm -f conftest.er1
mathieu@468 9485 cat conftest.err >&5
mathieu@468 9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 9487 (exit $ac_status); } >/dev/null && {
mathieu@468 9488 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 9489 test ! -s conftest.err
mathieu@468 9490 }; then
mathieu@468 9491 ac_header_preproc=yes
mathieu@468 9492 else
mathieu@468 9493 echo "$as_me: failed program was:" >&5
mathieu@468 9494 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 9495
mathieu@468 9496 ac_header_preproc=no
mathieu@468 9497 fi
mathieu@468 9498
mathieu@468 9499 rm -f conftest.err conftest.$ac_ext
mathieu@468 9500 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 9501 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 9502
mathieu@468 9503 # So? What about this header?
mathieu@468 9504 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 9505 yes:no: )
mathieu@468 9506 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 9507 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 9508 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 9509 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 9510 ac_header_preproc=yes
mathieu@468 9511 ;;
mathieu@468 9512 no:yes:* )
mathieu@468 9513 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 9514 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 9515 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 9516 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 9517 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 9518 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 9519 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 9520 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 9521 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 9522 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 9523 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 9524 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 9525 ( cat <<\_ASBOX
mathieu@468 9526 ## ------------------------------------------- ##
mathieu@468 9527 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 9528 ## ------------------------------------------- ##
mathieu@468 9529 _ASBOX
mathieu@468 9530 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 9531 ;;
mathieu@468 9532 esac
mathieu@468 9533 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 9534 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 9535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 9536 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 9537 else
mathieu@468 9538 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 9539 fi
mathieu@468 9540 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 9541 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 9542 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 9543
mathieu@468 9544 fi
mathieu@468 9545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 9546 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
Chris@350 9547 else
mathieu@468 9548 { echo "$as_me:$LINENO: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
mathieu@468 9549 echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
Chris@350 9550 fi
Chris@350 9551
Chris@350 9552
Chris@350 9553 if test -z "$SV_MODULE_FAILED"; then
Chris@350 9554 if test -n "$SV_MODULE_LIB"; then
mathieu@468 9555 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 9556 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 9557 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 9558 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 9559 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 9560 else
Chris@350 9561 ac_check_lib_save_LIBS=$LIBS
Chris@350 9562 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 9563 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 9564 /* confdefs.h. */
mathieu@468 9565 _ACEOF
mathieu@468 9566 cat confdefs.h >>conftest.$ac_ext
mathieu@468 9567 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 9568 /* end confdefs.h. */
Chris@350 9569
Chris@350 9570 /* Override any GCC internal prototype to avoid an error.
Chris@350 9571 Use char because int might match the return type of a GCC
Chris@350 9572 builtin and then its argument prototype would still apply. */
Chris@350 9573 #ifdef __cplusplus
Chris@350 9574 extern "C"
Chris@350 9575 #endif
Chris@350 9576 char $SV_MODULE_FUNC ();
Chris@350 9577 int
Chris@350 9578 main ()
Chris@350 9579 {
Chris@350 9580 return $SV_MODULE_FUNC ();
Chris@350 9581 ;
Chris@350 9582 return 0;
Chris@350 9583 }
Chris@350 9584 _ACEOF
mathieu@468 9585 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 9586 if { (ac_try="$ac_link"
mathieu@468 9587 case "(($ac_try" in
mathieu@468 9588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 9589 *) ac_try_echo=$ac_try;;
mathieu@468 9590 esac
mathieu@468 9591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 9592 (eval "$ac_link") 2>conftest.er1
mathieu@468 9593 ac_status=$?
mathieu@468 9594 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 9595 rm -f conftest.er1
mathieu@468 9596 cat conftest.err >&5
mathieu@468 9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 9598 (exit $ac_status); } && {
mathieu@468 9599 test -z "$ac_cxx_werror_flag" ||
mathieu@468 9600 test ! -s conftest.err
mathieu@468 9601 } && test -s conftest$ac_exeext &&
mathieu@468 9602 $as_test_x conftest$ac_exeext; then
Chris@350 9603 eval "$as_ac_Lib=yes"
Chris@350 9604 else
mathieu@468 9605 echo "$as_me: failed program was:" >&5
mathieu@468 9606 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 9607
mathieu@468 9608 eval "$as_ac_Lib=no"
mathieu@468 9609 fi
mathieu@468 9610
mathieu@468 9611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 9612 conftest$ac_exeext conftest.$ac_ext
Chris@350 9613 LIBS=$ac_check_lib_save_LIBS
Chris@350 9614 fi
mathieu@468 9615 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 9616 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 9617 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 9618 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@350 9619 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 9620 else
mathieu@468 9621 { echo "$as_me:$LINENO: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
mathieu@468 9622 echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
Chris@350 9623 fi
Chris@350 9624
Chris@350 9625 fi
Chris@350 9626 fi
Chris@350 9627 fi
Chris@350 9628
Chris@350 9629
Chris@350 9630 SV_MODULE_MODULE=fishsound
Chris@350 9631 SV_MODULE_VERSION_TEST="fishsound >= 1.0.0"
Chris@350 9632 SV_MODULE_HEADER=fishsound/fishsound.h
Chris@350 9633 SV_MODULE_LIB=fishsound
Chris@350 9634 SV_MODULE_FUNC=fish_sound_new
Chris@350 9635 SV_MODULE_HAVE=HAVE_$(echo fishsound | tr 'a-z' 'A-Z')
Chris@350 9636 SV_MODULE_FAILED=1
Chris@405 9637 if test -n "$fishsound_LIBS" ; then
mathieu@468 9638 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 9639 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@405 9640 CXXFLAGS="$CXXFLAGS $fishsound_CFLAGS"
Chris@405 9641 LIBS="$LIBS $fishsound_LIBS"
Chris@405 9642 SV_MODULE_FAILED=""
Chris@405 9643 fi
Chris@350 9644 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 9645 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 9646 fi
Chris@405 9647 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@350 9648
Chris@350 9649 pkg_failed=no
mathieu@468 9650 { echo "$as_me:$LINENO: checking for fishsound" >&5
mathieu@468 9651 echo $ECHO_N "checking for fishsound... $ECHO_C" >&6; }
Chris@350 9652
Chris@457 9653 if test -n "$fishsound_CFLAGS"; then
Chris@457 9654 pkg_cv_fishsound_CFLAGS="$fishsound_CFLAGS"
Chris@457 9655 elif test -n "$PKG_CONFIG"; then
Chris@457 9656 if test -n "$PKG_CONFIG" && \
mathieu@468 9657 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 9658 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 9659 ac_status=$?
mathieu@468 9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 9661 (exit $ac_status); }; then
Chris@350 9662 pkg_cv_fishsound_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 9663 else
Chris@350 9664 pkg_failed=yes
Chris@350 9665 fi
Chris@457 9666 else
Chris@457 9667 pkg_failed=untried
Chris@457 9668 fi
Chris@457 9669 if test -n "$fishsound_LIBS"; then
Chris@457 9670 pkg_cv_fishsound_LIBS="$fishsound_LIBS"
Chris@457 9671 elif test -n "$PKG_CONFIG"; then
Chris@457 9672 if test -n "$PKG_CONFIG" && \
mathieu@468 9673 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 9674 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 9675 ac_status=$?
mathieu@468 9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 9677 (exit $ac_status); }; then
Chris@350 9678 pkg_cv_fishsound_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 9679 else
Chris@350 9680 pkg_failed=yes
Chris@350 9681 fi
Chris@457 9682 else
Chris@457 9683 pkg_failed=untried
Chris@350 9684 fi
Chris@350 9685
Chris@350 9686
Chris@350 9687
Chris@350 9688 if test $pkg_failed = yes; then
mathieu@468 9689 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 9690 echo "${ECHO_T}no" >&6; }
Chris@350 9691
Chris@350 9692 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@350 9693 _pkg_short_errors_supported=yes
Chris@350 9694 else
Chris@350 9695 _pkg_short_errors_supported=no
Chris@350 9696 fi
Chris@350 9697 if test $_pkg_short_errors_supported = yes; then
Chris@457 9698 fishsound_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 9699 else
Chris@457 9700 fishsound_PKG_ERRORS=`$PKG_CONFIG --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 9701 fi
Chris@350 9702 # Put the nasty error message in config.log where it belongs
Chris@350 9703 echo "$fishsound_PKG_ERRORS" >&5
Chris@350 9704
mathieu@468 9705 { echo "$as_me:$LINENO: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 9706 echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 9707 elif test $pkg_failed = untried; then
mathieu@468 9708 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 9709 echo "${ECHO_T}no" >&6; }
mathieu@468 9710 { echo "$as_me:$LINENO: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 9711 echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 9712 else
Chris@350 9713 fishsound_CFLAGS=$pkg_cv_fishsound_CFLAGS
Chris@350 9714 fishsound_LIBS=$pkg_cv_fishsound_LIBS
mathieu@468 9715 { echo "$as_me:$LINENO: result: yes" >&5
mathieu@468 9716 echo "${ECHO_T}yes" >&6; }
Chris@352 9717 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $fishsound_CFLAGS";LIBS="$LIBS $fishsound_LIBS";SV_MODULE_FAILED=""
Chris@350 9718 fi
Chris@350 9719 fi
Chris@350 9720 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 9721 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 9722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 9723 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 9724 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 9725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 9726 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 9727 fi
mathieu@468 9728 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 9729 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 9730 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 9731 else
mathieu@468 9732 # Is the header compilable?
mathieu@468 9733 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 9734 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 9735 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 9736 /* confdefs.h. */
mathieu@468 9737 _ACEOF
mathieu@468 9738 cat confdefs.h >>conftest.$ac_ext
mathieu@468 9739 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 9740 /* end confdefs.h. */
mathieu@468 9741 $ac_includes_default
mathieu@468 9742 #include <$SV_MODULE_HEADER>
mathieu@468 9743 _ACEOF
mathieu@468 9744 rm -f conftest.$ac_objext
mathieu@468 9745 if { (ac_try="$ac_compile"
mathieu@468 9746 case "(($ac_try" in
mathieu@468 9747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 9748 *) ac_try_echo=$ac_try;;
mathieu@468 9749 esac
mathieu@468 9750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 9751 (eval "$ac_compile") 2>conftest.er1
mathieu@468 9752 ac_status=$?
mathieu@468 9753 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 9754 rm -f conftest.er1
mathieu@468 9755 cat conftest.err >&5
mathieu@468 9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 9757 (exit $ac_status); } && {
mathieu@468 9758 test -z "$ac_cxx_werror_flag" ||
mathieu@468 9759 test ! -s conftest.err
mathieu@468 9760 } && test -s conftest.$ac_objext; then
mathieu@468 9761 ac_header_compiler=yes
mathieu@468 9762 else
mathieu@468 9763 echo "$as_me: failed program was:" >&5
mathieu@468 9764 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 9765
mathieu@468 9766 ac_header_compiler=no
mathieu@468 9767 fi
mathieu@468 9768
mathieu@468 9769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 9770 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 9771 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 9772
mathieu@468 9773 # Is the header present?
mathieu@468 9774 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 9775 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 9776 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 9777 /* confdefs.h. */
mathieu@468 9778 _ACEOF
mathieu@468 9779 cat confdefs.h >>conftest.$ac_ext
mathieu@468 9780 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 9781 /* end confdefs.h. */
mathieu@468 9782 #include <$SV_MODULE_HEADER>
mathieu@468 9783 _ACEOF
mathieu@468 9784 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 9785 case "(($ac_try" in
mathieu@468 9786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 9787 *) ac_try_echo=$ac_try;;
mathieu@468 9788 esac
mathieu@468 9789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 9790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
mathieu@468 9791 ac_status=$?
mathieu@468 9792 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 9793 rm -f conftest.er1
mathieu@468 9794 cat conftest.err >&5
mathieu@468 9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 9796 (exit $ac_status); } >/dev/null && {
mathieu@468 9797 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 9798 test ! -s conftest.err
mathieu@468 9799 }; then
mathieu@468 9800 ac_header_preproc=yes
mathieu@468 9801 else
mathieu@468 9802 echo "$as_me: failed program was:" >&5
mathieu@468 9803 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 9804
mathieu@468 9805 ac_header_preproc=no
mathieu@468 9806 fi
mathieu@468 9807
mathieu@468 9808 rm -f conftest.err conftest.$ac_ext
mathieu@468 9809 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 9810 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 9811
mathieu@468 9812 # So? What about this header?
mathieu@468 9813 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 9814 yes:no: )
mathieu@468 9815 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 9816 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 9817 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 9818 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 9819 ac_header_preproc=yes
mathieu@468 9820 ;;
mathieu@468 9821 no:yes:* )
mathieu@468 9822 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 9823 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 9824 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 9825 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 9826 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 9827 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 9828 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 9829 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 9830 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 9831 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 9832 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 9833 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 9834 ( cat <<\_ASBOX
mathieu@468 9835 ## ------------------------------------------- ##
mathieu@468 9836 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 9837 ## ------------------------------------------- ##
mathieu@468 9838 _ASBOX
mathieu@468 9839 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 9840 ;;
mathieu@468 9841 esac
mathieu@468 9842 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 9843 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 9844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 9845 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 9846 else
mathieu@468 9847 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 9848 fi
mathieu@468 9849 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 9850 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 9851 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 9852
mathieu@468 9853 fi
mathieu@468 9854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 9855 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
Chris@350 9856 else
mathieu@468 9857 { echo "$as_me:$LINENO: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
mathieu@468 9858 echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
Chris@350 9859 fi
Chris@350 9860
Chris@350 9861
Chris@350 9862 if test -z "$SV_MODULE_FAILED"; then
Chris@350 9863 if test -n "$SV_MODULE_LIB"; then
mathieu@468 9864 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 9865 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 9866 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 9867 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 9868 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 9869 else
Chris@350 9870 ac_check_lib_save_LIBS=$LIBS
Chris@350 9871 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 9872 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 9873 /* confdefs.h. */
mathieu@468 9874 _ACEOF
mathieu@468 9875 cat confdefs.h >>conftest.$ac_ext
mathieu@468 9876 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 9877 /* end confdefs.h. */
Chris@350 9878
Chris@350 9879 /* Override any GCC internal prototype to avoid an error.
Chris@350 9880 Use char because int might match the return type of a GCC
Chris@350 9881 builtin and then its argument prototype would still apply. */
Chris@350 9882 #ifdef __cplusplus
Chris@350 9883 extern "C"
Chris@350 9884 #endif
Chris@350 9885 char $SV_MODULE_FUNC ();
Chris@350 9886 int
Chris@350 9887 main ()
Chris@350 9888 {
Chris@350 9889 return $SV_MODULE_FUNC ();
Chris@350 9890 ;
Chris@350 9891 return 0;
Chris@350 9892 }
Chris@350 9893 _ACEOF
mathieu@468 9894 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 9895 if { (ac_try="$ac_link"
mathieu@468 9896 case "(($ac_try" in
mathieu@468 9897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 9898 *) ac_try_echo=$ac_try;;
mathieu@468 9899 esac
mathieu@468 9900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 9901 (eval "$ac_link") 2>conftest.er1
mathieu@468 9902 ac_status=$?
mathieu@468 9903 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 9904 rm -f conftest.er1
mathieu@468 9905 cat conftest.err >&5
mathieu@468 9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 9907 (exit $ac_status); } && {
mathieu@468 9908 test -z "$ac_cxx_werror_flag" ||
mathieu@468 9909 test ! -s conftest.err
mathieu@468 9910 } && test -s conftest$ac_exeext &&
mathieu@468 9911 $as_test_x conftest$ac_exeext; then
Chris@350 9912 eval "$as_ac_Lib=yes"
Chris@350 9913 else
mathieu@468 9914 echo "$as_me: failed program was:" >&5
mathieu@468 9915 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 9916
mathieu@468 9917 eval "$as_ac_Lib=no"
mathieu@468 9918 fi
mathieu@468 9919
mathieu@468 9920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 9921 conftest$ac_exeext conftest.$ac_ext
Chris@350 9922 LIBS=$ac_check_lib_save_LIBS
Chris@350 9923 fi
mathieu@468 9924 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 9925 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 9926 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 9927 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@350 9928 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 9929 else
mathieu@468 9930 { echo "$as_me:$LINENO: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
mathieu@468 9931 echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
Chris@350 9932 fi
Chris@350 9933
Chris@350 9934 fi
Chris@350 9935 fi
Chris@350 9936 fi
Chris@350 9937
Chris@350 9938
Chris@350 9939 SV_MODULE_MODULE=mad
Chris@350 9940 SV_MODULE_VERSION_TEST="mad >= 0.15.0"
Chris@350 9941 SV_MODULE_HEADER=mad.h
Chris@350 9942 SV_MODULE_LIB=mad
Chris@350 9943 SV_MODULE_FUNC=mad_decoder_init
Chris@350 9944 SV_MODULE_HAVE=HAVE_$(echo mad | tr 'a-z' 'A-Z')
Chris@350 9945 SV_MODULE_FAILED=1
Chris@405 9946 if test -n "$mad_LIBS" ; then
mathieu@468 9947 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 9948 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@405 9949 CXXFLAGS="$CXXFLAGS $mad_CFLAGS"
Chris@405 9950 LIBS="$LIBS $mad_LIBS"
Chris@405 9951 SV_MODULE_FAILED=""
Chris@405 9952 fi
Chris@350 9953 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 9954 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 9955 fi
Chris@405 9956 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@350 9957
Chris@350 9958 pkg_failed=no
mathieu@468 9959 { echo "$as_me:$LINENO: checking for mad" >&5
mathieu@468 9960 echo $ECHO_N "checking for mad... $ECHO_C" >&6; }
Chris@350 9961
Chris@457 9962 if test -n "$mad_CFLAGS"; then
Chris@457 9963 pkg_cv_mad_CFLAGS="$mad_CFLAGS"
Chris@457 9964 elif test -n "$PKG_CONFIG"; then
Chris@457 9965 if test -n "$PKG_CONFIG" && \
mathieu@468 9966 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 9967 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 9968 ac_status=$?
mathieu@468 9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 9970 (exit $ac_status); }; then
Chris@350 9971 pkg_cv_mad_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 9972 else
Chris@350 9973 pkg_failed=yes
Chris@350 9974 fi
Chris@457 9975 else
Chris@457 9976 pkg_failed=untried
Chris@457 9977 fi
Chris@457 9978 if test -n "$mad_LIBS"; then
Chris@457 9979 pkg_cv_mad_LIBS="$mad_LIBS"
Chris@457 9980 elif test -n "$PKG_CONFIG"; then
Chris@457 9981 if test -n "$PKG_CONFIG" && \
mathieu@468 9982 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 9983 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 9984 ac_status=$?
mathieu@468 9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 9986 (exit $ac_status); }; then
Chris@350 9987 pkg_cv_mad_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 9988 else
Chris@350 9989 pkg_failed=yes
Chris@350 9990 fi
Chris@457 9991 else
Chris@457 9992 pkg_failed=untried
Chris@350 9993 fi
Chris@350 9994
Chris@350 9995
Chris@350 9996
Chris@350 9997 if test $pkg_failed = yes; then
mathieu@468 9998 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 9999 echo "${ECHO_T}no" >&6; }
Chris@350 10000
Chris@350 10001 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@350 10002 _pkg_short_errors_supported=yes
Chris@350 10003 else
Chris@350 10004 _pkg_short_errors_supported=no
Chris@350 10005 fi
Chris@350 10006 if test $_pkg_short_errors_supported = yes; then
Chris@457 10007 mad_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 10008 else
Chris@457 10009 mad_PKG_ERRORS=`$PKG_CONFIG --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 10010 fi
Chris@350 10011 # Put the nasty error message in config.log where it belongs
Chris@350 10012 echo "$mad_PKG_ERRORS" >&5
Chris@350 10013
mathieu@468 10014 { echo "$as_me:$LINENO: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 10015 echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 10016 elif test $pkg_failed = untried; then
mathieu@468 10017 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 10018 echo "${ECHO_T}no" >&6; }
mathieu@468 10019 { echo "$as_me:$LINENO: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 10020 echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 10021 else
Chris@350 10022 mad_CFLAGS=$pkg_cv_mad_CFLAGS
Chris@350 10023 mad_LIBS=$pkg_cv_mad_LIBS
mathieu@468 10024 { echo "$as_me:$LINENO: result: yes" >&5
mathieu@468 10025 echo "${ECHO_T}yes" >&6; }
Chris@352 10026 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $mad_CFLAGS";LIBS="$LIBS $mad_LIBS";SV_MODULE_FAILED=""
Chris@350 10027 fi
Chris@350 10028 fi
Chris@350 10029 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 10030 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 10031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 10032 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 10033 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 10034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 10035 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 10036 fi
mathieu@468 10037 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 10038 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 10039 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 10040 else
mathieu@468 10041 # Is the header compilable?
mathieu@468 10042 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 10043 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 10044 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 10045 /* confdefs.h. */
mathieu@468 10046 _ACEOF
mathieu@468 10047 cat confdefs.h >>conftest.$ac_ext
mathieu@468 10048 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 10049 /* end confdefs.h. */
mathieu@468 10050 $ac_includes_default
mathieu@468 10051 #include <$SV_MODULE_HEADER>
mathieu@468 10052 _ACEOF
mathieu@468 10053 rm -f conftest.$ac_objext
mathieu@468 10054 if { (ac_try="$ac_compile"
mathieu@468 10055 case "(($ac_try" in
mathieu@468 10056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 10057 *) ac_try_echo=$ac_try;;
mathieu@468 10058 esac
mathieu@468 10059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 10060 (eval "$ac_compile") 2>conftest.er1
mathieu@468 10061 ac_status=$?
mathieu@468 10062 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 10063 rm -f conftest.er1
mathieu@468 10064 cat conftest.err >&5
mathieu@468 10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 10066 (exit $ac_status); } && {
mathieu@468 10067 test -z "$ac_cxx_werror_flag" ||
mathieu@468 10068 test ! -s conftest.err
mathieu@468 10069 } && test -s conftest.$ac_objext; then
mathieu@468 10070 ac_header_compiler=yes
mathieu@468 10071 else
mathieu@468 10072 echo "$as_me: failed program was:" >&5
mathieu@468 10073 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 10074
mathieu@468 10075 ac_header_compiler=no
mathieu@468 10076 fi
mathieu@468 10077
mathieu@468 10078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 10079 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 10080 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 10081
mathieu@468 10082 # Is the header present?
mathieu@468 10083 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 10084 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 10085 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 10086 /* confdefs.h. */
mathieu@468 10087 _ACEOF
mathieu@468 10088 cat confdefs.h >>conftest.$ac_ext
mathieu@468 10089 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 10090 /* end confdefs.h. */
mathieu@468 10091 #include <$SV_MODULE_HEADER>
mathieu@468 10092 _ACEOF
mathieu@468 10093 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 10094 case "(($ac_try" in
mathieu@468 10095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 10096 *) ac_try_echo=$ac_try;;
mathieu@468 10097 esac
mathieu@468 10098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 10099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
mathieu@468 10100 ac_status=$?
mathieu@468 10101 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 10102 rm -f conftest.er1
mathieu@468 10103 cat conftest.err >&5
mathieu@468 10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 10105 (exit $ac_status); } >/dev/null && {
mathieu@468 10106 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 10107 test ! -s conftest.err
mathieu@468 10108 }; then
mathieu@468 10109 ac_header_preproc=yes
mathieu@468 10110 else
mathieu@468 10111 echo "$as_me: failed program was:" >&5
mathieu@468 10112 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 10113
mathieu@468 10114 ac_header_preproc=no
mathieu@468 10115 fi
mathieu@468 10116
mathieu@468 10117 rm -f conftest.err conftest.$ac_ext
mathieu@468 10118 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 10119 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 10120
mathieu@468 10121 # So? What about this header?
mathieu@468 10122 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 10123 yes:no: )
mathieu@468 10124 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 10125 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 10126 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 10127 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 10128 ac_header_preproc=yes
mathieu@468 10129 ;;
mathieu@468 10130 no:yes:* )
mathieu@468 10131 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 10132 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 10133 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 10134 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 10135 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 10136 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 10137 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 10138 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 10139 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 10140 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 10141 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 10142 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 10143 ( cat <<\_ASBOX
mathieu@468 10144 ## ------------------------------------------- ##
mathieu@468 10145 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 10146 ## ------------------------------------------- ##
mathieu@468 10147 _ASBOX
mathieu@468 10148 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 10149 ;;
mathieu@468 10150 esac
mathieu@468 10151 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 10152 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 10153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 10154 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 10155 else
mathieu@468 10156 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 10157 fi
mathieu@468 10158 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 10159 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 10160 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 10161
mathieu@468 10162 fi
mathieu@468 10163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 10164 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
Chris@350 10165 else
mathieu@468 10166 { echo "$as_me:$LINENO: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
mathieu@468 10167 echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
Chris@350 10168 fi
Chris@350 10169
Chris@350 10170
Chris@350 10171 if test -z "$SV_MODULE_FAILED"; then
Chris@350 10172 if test -n "$SV_MODULE_LIB"; then
mathieu@468 10173 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 10174 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 10175 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 10176 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 10177 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 10178 else
Chris@350 10179 ac_check_lib_save_LIBS=$LIBS
Chris@350 10180 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 10181 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 10182 /* confdefs.h. */
mathieu@468 10183 _ACEOF
mathieu@468 10184 cat confdefs.h >>conftest.$ac_ext
mathieu@468 10185 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 10186 /* end confdefs.h. */
Chris@350 10187
Chris@350 10188 /* Override any GCC internal prototype to avoid an error.
Chris@350 10189 Use char because int might match the return type of a GCC
Chris@350 10190 builtin and then its argument prototype would still apply. */
Chris@350 10191 #ifdef __cplusplus
Chris@350 10192 extern "C"
Chris@350 10193 #endif
Chris@350 10194 char $SV_MODULE_FUNC ();
Chris@350 10195 int
Chris@350 10196 main ()
Chris@350 10197 {
Chris@350 10198 return $SV_MODULE_FUNC ();
Chris@350 10199 ;
Chris@350 10200 return 0;
Chris@350 10201 }
Chris@350 10202 _ACEOF
mathieu@468 10203 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 10204 if { (ac_try="$ac_link"
mathieu@468 10205 case "(($ac_try" in
mathieu@468 10206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 10207 *) ac_try_echo=$ac_try;;
mathieu@468 10208 esac
mathieu@468 10209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 10210 (eval "$ac_link") 2>conftest.er1
mathieu@468 10211 ac_status=$?
mathieu@468 10212 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 10213 rm -f conftest.er1
mathieu@468 10214 cat conftest.err >&5
mathieu@468 10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 10216 (exit $ac_status); } && {
mathieu@468 10217 test -z "$ac_cxx_werror_flag" ||
mathieu@468 10218 test ! -s conftest.err
mathieu@468 10219 } && test -s conftest$ac_exeext &&
mathieu@468 10220 $as_test_x conftest$ac_exeext; then
Chris@350 10221 eval "$as_ac_Lib=yes"
Chris@350 10222 else
mathieu@468 10223 echo "$as_me: failed program was:" >&5
mathieu@468 10224 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 10225
mathieu@468 10226 eval "$as_ac_Lib=no"
mathieu@468 10227 fi
mathieu@468 10228
mathieu@468 10229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 10230 conftest$ac_exeext conftest.$ac_ext
Chris@350 10231 LIBS=$ac_check_lib_save_LIBS
Chris@350 10232 fi
mathieu@468 10233 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 10234 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 10235 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 10236 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@350 10237 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 10238 else
mathieu@468 10239 { echo "$as_me:$LINENO: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
mathieu@468 10240 echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
Chris@350 10241 fi
Chris@350 10242
Chris@350 10243 fi
Chris@350 10244 fi
Chris@350 10245 fi
Chris@350 10246
Chris@350 10247
Chris@350 10248 SV_MODULE_MODULE=id3tag
Chris@350 10249 SV_MODULE_VERSION_TEST="id3tag >= 0.15.0"
Chris@350 10250 SV_MODULE_HEADER=id3tag.h
Chris@350 10251 SV_MODULE_LIB=id3tag
Chris@350 10252 SV_MODULE_FUNC=id3_tag_new
Chris@350 10253 SV_MODULE_HAVE=HAVE_$(echo id3tag | tr 'a-z' 'A-Z')
Chris@350 10254 SV_MODULE_FAILED=1
Chris@405 10255 if test -n "$id3tag_LIBS" ; then
mathieu@468 10256 { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
mathieu@468 10257 echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@405 10258 CXXFLAGS="$CXXFLAGS $id3tag_CFLAGS"
Chris@405 10259 LIBS="$LIBS $id3tag_LIBS"
Chris@405 10260 SV_MODULE_FAILED=""
Chris@405 10261 fi
Chris@350 10262 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 10263 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 10264 fi
Chris@405 10265 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@350 10266
Chris@350 10267 pkg_failed=no
mathieu@468 10268 { echo "$as_me:$LINENO: checking for id3tag" >&5
mathieu@468 10269 echo $ECHO_N "checking for id3tag... $ECHO_C" >&6; }
Chris@350 10270
Chris@457 10271 if test -n "$id3tag_CFLAGS"; then
Chris@457 10272 pkg_cv_id3tag_CFLAGS="$id3tag_CFLAGS"
Chris@457 10273 elif test -n "$PKG_CONFIG"; then
Chris@457 10274 if test -n "$PKG_CONFIG" && \
mathieu@468 10275 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 10276 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 10277 ac_status=$?
mathieu@468 10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 10279 (exit $ac_status); }; then
Chris@350 10280 pkg_cv_id3tag_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 10281 else
Chris@350 10282 pkg_failed=yes
Chris@350 10283 fi
Chris@457 10284 else
Chris@457 10285 pkg_failed=untried
Chris@457 10286 fi
Chris@457 10287 if test -n "$id3tag_LIBS"; then
Chris@457 10288 pkg_cv_id3tag_LIBS="$id3tag_LIBS"
Chris@457 10289 elif test -n "$PKG_CONFIG"; then
Chris@457 10290 if test -n "$PKG_CONFIG" && \
mathieu@468 10291 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\"") >&5
Chris@350 10292 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 10293 ac_status=$?
mathieu@468 10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 10295 (exit $ac_status); }; then
Chris@350 10296 pkg_cv_id3tag_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@350 10297 else
Chris@350 10298 pkg_failed=yes
Chris@350 10299 fi
Chris@457 10300 else
Chris@457 10301 pkg_failed=untried
Chris@350 10302 fi
Chris@350 10303
Chris@350 10304
Chris@350 10305
Chris@350 10306 if test $pkg_failed = yes; then
mathieu@468 10307 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 10308 echo "${ECHO_T}no" >&6; }
Chris@350 10309
Chris@350 10310 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@350 10311 _pkg_short_errors_supported=yes
Chris@350 10312 else
Chris@350 10313 _pkg_short_errors_supported=no
Chris@350 10314 fi
Chris@350 10315 if test $_pkg_short_errors_supported = yes; then
Chris@457 10316 id3tag_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 10317 else
Chris@457 10318 id3tag_PKG_ERRORS=`$PKG_CONFIG --print-errors "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 10319 fi
Chris@350 10320 # Put the nasty error message in config.log where it belongs
Chris@350 10321 echo "$id3tag_PKG_ERRORS" >&5
Chris@350 10322
mathieu@468 10323 { echo "$as_me:$LINENO: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 10324 echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 10325 elif test $pkg_failed = untried; then
mathieu@468 10326 { echo "$as_me:$LINENO: result: no" >&5
mathieu@468 10327 echo "${ECHO_T}no" >&6; }
mathieu@468 10328 { echo "$as_me:$LINENO: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
mathieu@468 10329 echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 10330 else
Chris@350 10331 id3tag_CFLAGS=$pkg_cv_id3tag_CFLAGS
Chris@350 10332 id3tag_LIBS=$pkg_cv_id3tag_LIBS
mathieu@468 10333 { echo "$as_me:$LINENO: result: yes" >&5
mathieu@468 10334 echo "${ECHO_T}yes" >&6; }
Chris@352 10335 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $id3tag_CFLAGS";LIBS="$LIBS $id3tag_LIBS";SV_MODULE_FAILED=""
Chris@350 10336 fi
Chris@350 10337 fi
Chris@350 10338 if test -n "$SV_MODULE_FAILED"; then
mathieu@468 10339 as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
mathieu@468 10340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 10341 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 10342 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 10343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 10344 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 10345 fi
mathieu@468 10346 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 10347 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 10348 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 10349 else
mathieu@468 10350 # Is the header compilable?
mathieu@468 10351 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5
mathieu@468 10352 echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; }
mathieu@468 10353 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 10354 /* confdefs.h. */
mathieu@468 10355 _ACEOF
mathieu@468 10356 cat confdefs.h >>conftest.$ac_ext
mathieu@468 10357 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 10358 /* end confdefs.h. */
mathieu@468 10359 $ac_includes_default
mathieu@468 10360 #include <$SV_MODULE_HEADER>
mathieu@468 10361 _ACEOF
mathieu@468 10362 rm -f conftest.$ac_objext
mathieu@468 10363 if { (ac_try="$ac_compile"
mathieu@468 10364 case "(($ac_try" in
mathieu@468 10365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 10366 *) ac_try_echo=$ac_try;;
mathieu@468 10367 esac
mathieu@468 10368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 10369 (eval "$ac_compile") 2>conftest.er1
mathieu@468 10370 ac_status=$?
mathieu@468 10371 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 10372 rm -f conftest.er1
mathieu@468 10373 cat conftest.err >&5
mathieu@468 10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 10375 (exit $ac_status); } && {
mathieu@468 10376 test -z "$ac_cxx_werror_flag" ||
mathieu@468 10377 test ! -s conftest.err
mathieu@468 10378 } && test -s conftest.$ac_objext; then
mathieu@468 10379 ac_header_compiler=yes
mathieu@468 10380 else
mathieu@468 10381 echo "$as_me: failed program was:" >&5
mathieu@468 10382 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 10383
mathieu@468 10384 ac_header_compiler=no
mathieu@468 10385 fi
mathieu@468 10386
mathieu@468 10387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mathieu@468 10388 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
mathieu@468 10389 echo "${ECHO_T}$ac_header_compiler" >&6; }
mathieu@468 10390
mathieu@468 10391 # Is the header present?
mathieu@468 10392 { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5
mathieu@468 10393 echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; }
mathieu@468 10394 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 10395 /* confdefs.h. */
mathieu@468 10396 _ACEOF
mathieu@468 10397 cat confdefs.h >>conftest.$ac_ext
mathieu@468 10398 cat >>conftest.$ac_ext <<_ACEOF
mathieu@468 10399 /* end confdefs.h. */
mathieu@468 10400 #include <$SV_MODULE_HEADER>
mathieu@468 10401 _ACEOF
mathieu@468 10402 if { (ac_try="$ac_cpp conftest.$ac_ext"
mathieu@468 10403 case "(($ac_try" in
mathieu@468 10404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 10405 *) ac_try_echo=$ac_try;;
mathieu@468 10406 esac
mathieu@468 10407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 10408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
mathieu@468 10409 ac_status=$?
mathieu@468 10410 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 10411 rm -f conftest.er1
mathieu@468 10412 cat conftest.err >&5
mathieu@468 10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 10414 (exit $ac_status); } >/dev/null && {
mathieu@468 10415 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
mathieu@468 10416 test ! -s conftest.err
mathieu@468 10417 }; then
mathieu@468 10418 ac_header_preproc=yes
mathieu@468 10419 else
mathieu@468 10420 echo "$as_me: failed program was:" >&5
mathieu@468 10421 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 10422
mathieu@468 10423 ac_header_preproc=no
mathieu@468 10424 fi
mathieu@468 10425
mathieu@468 10426 rm -f conftest.err conftest.$ac_ext
mathieu@468 10427 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
mathieu@468 10428 echo "${ECHO_T}$ac_header_preproc" >&6; }
mathieu@468 10429
mathieu@468 10430 # So? What about this header?
mathieu@468 10431 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
mathieu@468 10432 yes:no: )
mathieu@468 10433 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5
mathieu@468 10434 echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;}
mathieu@468 10435 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5
mathieu@468 10436 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;}
mathieu@468 10437 ac_header_preproc=yes
mathieu@468 10438 ;;
mathieu@468 10439 no:yes:* )
mathieu@468 10440 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5
mathieu@468 10441 echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;}
mathieu@468 10442 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5
mathieu@468 10443 echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;}
mathieu@468 10444 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5
mathieu@468 10445 echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;}
mathieu@468 10446 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5
mathieu@468 10447 echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;}
mathieu@468 10448 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5
mathieu@468 10449 echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;}
mathieu@468 10450 { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5
mathieu@468 10451 echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;}
mathieu@468 10452 ( cat <<\_ASBOX
mathieu@468 10453 ## ------------------------------------------- ##
mathieu@468 10454 ## Report this to cannam@all-day-breakfast.com ##
mathieu@468 10455 ## ------------------------------------------- ##
mathieu@468 10456 _ASBOX
mathieu@468 10457 ) | sed "s/^/$as_me: WARNING: /" >&2
mathieu@468 10458 ;;
mathieu@468 10459 esac
mathieu@468 10460 { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5
mathieu@468 10461 echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; }
mathieu@468 10462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 10463 echo $ECHO_N "(cached) $ECHO_C" >&6
mathieu@468 10464 else
mathieu@468 10465 eval "$as_ac_Header=\$ac_header_preproc"
mathieu@468 10466 fi
mathieu@468 10467 ac_res=`eval echo '${'$as_ac_Header'}'`
mathieu@468 10468 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 10469 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 10470
mathieu@468 10471 fi
mathieu@468 10472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris@350 10473 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
Chris@350 10474 else
mathieu@468 10475 { echo "$as_me:$LINENO: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
mathieu@468 10476 echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
Chris@350 10477 fi
Chris@350 10478
Chris@350 10479
Chris@350 10480 if test -z "$SV_MODULE_FAILED"; then
Chris@350 10481 if test -n "$SV_MODULE_LIB"; then
mathieu@468 10482 as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
mathieu@468 10483 { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
mathieu@468 10484 echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; }
mathieu@468 10485 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
mathieu@468 10486 echo $ECHO_N "(cached) $ECHO_C" >&6
Chris@350 10487 else
Chris@350 10488 ac_check_lib_save_LIBS=$LIBS
Chris@350 10489 LIBS="-l$SV_MODULE_LIB $LIBS"
mathieu@468 10490 cat >conftest.$ac_ext <<_ACEOF
mathieu@468 10491 /* confdefs.h. */
mathieu@468 10492 _ACEOF
mathieu@468 10493 cat confdefs.h >>conftest.$ac_ext
mathieu@468 10494 cat >>conftest.$ac_ext <<_ACEOF
Chris@350 10495 /* end confdefs.h. */
Chris@350 10496
Chris@350 10497 /* Override any GCC internal prototype to avoid an error.
Chris@350 10498 Use char because int might match the return type of a GCC
Chris@350 10499 builtin and then its argument prototype would still apply. */
Chris@350 10500 #ifdef __cplusplus
Chris@350 10501 extern "C"
Chris@350 10502 #endif
Chris@350 10503 char $SV_MODULE_FUNC ();
Chris@350 10504 int
Chris@350 10505 main ()
Chris@350 10506 {
Chris@350 10507 return $SV_MODULE_FUNC ();
Chris@350 10508 ;
Chris@350 10509 return 0;
Chris@350 10510 }
Chris@350 10511 _ACEOF
mathieu@468 10512 rm -f conftest.$ac_objext conftest$ac_exeext
mathieu@468 10513 if { (ac_try="$ac_link"
mathieu@468 10514 case "(($ac_try" in
mathieu@468 10515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
mathieu@468 10516 *) ac_try_echo=$ac_try;;
mathieu@468 10517 esac
mathieu@468 10518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
mathieu@468 10519 (eval "$ac_link") 2>conftest.er1
mathieu@468 10520 ac_status=$?
mathieu@468 10521 grep -v '^ *+' conftest.er1 >conftest.err
mathieu@468 10522 rm -f conftest.er1
mathieu@468 10523 cat conftest.err >&5
mathieu@468 10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mathieu@468 10525 (exit $ac_status); } && {
mathieu@468 10526 test -z "$ac_cxx_werror_flag" ||
mathieu@468 10527 test ! -s conftest.err
mathieu@468 10528 } && test -s conftest$ac_exeext &&
mathieu@468 10529 $as_test_x conftest$ac_exeext; then
Chris@350 10530 eval "$as_ac_Lib=yes"
Chris@350 10531 else
mathieu@468 10532 echo "$as_me: failed program was:" >&5
mathieu@468 10533 sed 's/^/| /' conftest.$ac_ext >&5
mathieu@468 10534
mathieu@468 10535 eval "$as_ac_Lib=no"
mathieu@468 10536 fi
mathieu@468 10537
mathieu@468 10538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mathieu@468 10539 conftest$ac_exeext conftest.$ac_ext
Chris@350 10540 LIBS=$ac_check_lib_save_LIBS
Chris@350 10541 fi
mathieu@468 10542 ac_res=`eval echo '${'$as_ac_Lib'}'`
mathieu@468 10543 { echo "$as_me:$LINENO: result: $ac_res" >&5
mathieu@468 10544 echo "${ECHO_T}$ac_res" >&6; }
mathieu@468 10545 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
Chris@350 10546 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 10547 else
mathieu@468 10548 { echo "$as_me:$LINENO: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
mathieu@468 10549 echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
Chris@350 10550 fi
Chris@350 10551
Chris@350 10552 fi
Chris@350 10553 fi
Chris@350 10554 fi
Chris@350 10555
Chris@350 10556
Chris@350 10557
Chris@350 10558
Chris@350 10559
Chris@350 10560
Chris@350 10561
Chris@350 10562
Chris@350 10563
Chris@350 10564
Chris@350 10565
Chris@350 10566
Chris@350 10567
Chris@350 10568
Chris@350 10569
Chris@350 10570
Chris@350 10571
Chris@350 10572
Chris@350 10573
Chris@361 10574
Chris@361 10575
Chris@350 10576 ac_config_files="$ac_config_files config.pri"
Chris@350 10577
Chris@350 10578 cat >confcache <<\_ACEOF
Chris@350 10579 # This file is a shell script that caches the results of configure
Chris@350 10580 # tests run on this system so they can be shared between configure
Chris@350 10581 # scripts and configure runs, see configure's option --config-cache.
Chris@350 10582 # It is not useful on other systems. If it contains results you don't
Chris@350 10583 # want to keep, you may remove or edit it.
Chris@350 10584 #
Chris@350 10585 # config.status only pays attention to the cache file if you give it
Chris@350 10586 # the --recheck option to rerun configure.
Chris@350 10587 #
Chris@350 10588 # `ac_cv_env_foo' variables (set or unset) will be overridden when
Chris@350 10589 # loading this file, other *unset* `ac_cv_foo' will be assigned the
Chris@350 10590 # following values.
Chris@350 10591
Chris@350 10592 _ACEOF
Chris@350 10593
Chris@350 10594 # The following way of writing the cache mishandles newlines in values,
Chris@350 10595 # but we know of no workaround that is simple, portable, and efficient.
Chris@350 10596 # So, we kill variables containing newlines.
Chris@350 10597 # Ultrix sh set writes to stderr and can't be redirected directly,
Chris@350 10598 # and sets the high bit in the cache file unless we assign to the vars.
Chris@350 10599 (
Chris@350 10600 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
Chris@350 10601 eval ac_val=\$$ac_var
Chris@350 10602 case $ac_val in #(
Chris@350 10603 *${as_nl}*)
Chris@350 10604 case $ac_var in #(
mathieu@468 10605 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
mathieu@468 10606 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Chris@350 10607 esac
Chris@350 10608 case $ac_var in #(
Chris@350 10609 _ | IFS | as_nl) ;; #(
mathieu@468 10610 *) $as_unset $ac_var ;;
Chris@350 10611 esac ;;
Chris@350 10612 esac
Chris@350 10613 done
Chris@350 10614
Chris@350 10615 (set) 2>&1 |
Chris@350 10616 case $as_nl`(ac_space=' '; set) 2>&1` in #(
Chris@350 10617 *${as_nl}ac_space=\ *)
mathieu@468 10618 # `set' does not quote correctly, so add quotes (double-quote
mathieu@468 10619 # substitution turns \\\\ into \\, and sed turns \\ into \).
Chris@350 10620 sed -n \
Chris@350 10621 "s/'/'\\\\''/g;
Chris@350 10622 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Chris@350 10623 ;; #(
Chris@350 10624 *)
Chris@350 10625 # `set' quotes correctly as required by POSIX, so do not add quotes.
Chris@350 10626 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Chris@350 10627 ;;
Chris@350 10628 esac |
Chris@350 10629 sort
Chris@350 10630 ) |
Chris@350 10631 sed '
Chris@350 10632 /^ac_cv_env_/b end
Chris@350 10633 t clear
Chris@350 10634 :clear
Chris@350 10635 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
Chris@350 10636 t end
Chris@350 10637 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
Chris@350 10638 :end' >>confcache
Chris@350 10639 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
Chris@350 10640 if test -w "$cache_file"; then
Chris@350 10641 test "x$cache_file" != "x/dev/null" &&
mathieu@468 10642 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
mathieu@468 10643 echo "$as_me: updating cache $cache_file" >&6;}
Chris@350 10644 cat confcache >$cache_file
Chris@350 10645 else
mathieu@468 10646 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
mathieu@468 10647 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Chris@350 10648 fi
Chris@350 10649 fi
Chris@350 10650 rm -f confcache
Chris@350 10651
Chris@350 10652 test "x$prefix" = xNONE && prefix=$ac_default_prefix
Chris@350 10653 # Let make expand exec_prefix.
Chris@350 10654 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
Chris@350 10655
Chris@350 10656 # Transform confdefs.h into DEFS.
Chris@350 10657 # Protect against shell expansion while executing Makefile rules.
Chris@350 10658 # Protect against Makefile macro expansion.
Chris@350 10659 #
Chris@350 10660 # If the first sed substitution is executed (which looks for macros that
Chris@350 10661 # take arguments), then branch to the quote section. Otherwise,
Chris@350 10662 # look for a macro that doesn't take arguments.
Chris@350 10663 ac_script='
Chris@350 10664 t clear
Chris@350 10665 :clear
Chris@350 10666 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Chris@350 10667 t quote
Chris@350 10668 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Chris@350 10669 t quote
Chris@350 10670 b any
Chris@350 10671 :quote
Chris@350 10672 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
Chris@350 10673 s/\[/\\&/g
Chris@350 10674 s/\]/\\&/g
Chris@350 10675 s/\$/$$/g
Chris@350 10676 H
Chris@350 10677 :any
Chris@350 10678 ${
Chris@350 10679 g
Chris@350 10680 s/^\n//
Chris@350 10681 s/\n/ /g
Chris@350 10682 p
Chris@350 10683 }
Chris@350 10684 '
Chris@350 10685 DEFS=`sed -n "$ac_script" confdefs.h`
Chris@350 10686
Chris@350 10687
Chris@350 10688 ac_libobjs=
Chris@350 10689 ac_ltlibobjs=
Chris@350 10690 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
Chris@350 10691 # 1. Remove the extension, and $U if already installed.
Chris@350 10692 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
mathieu@468 10693 ac_i=`echo "$ac_i" | sed "$ac_script"`
Chris@350 10694 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
Chris@350 10695 # will be set to the directory where LIBOBJS objects are built.
mathieu@468 10696 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
mathieu@468 10697 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Chris@350 10698 done
Chris@350 10699 LIBOBJS=$ac_libobjs
Chris@350 10700
Chris@350 10701 LTLIBOBJS=$ac_ltlibobjs
Chris@350 10702
Chris@350 10703
Chris@350 10704
Chris@350 10705 : ${CONFIG_STATUS=./config.status}
Chris@350 10706 ac_clean_files_save=$ac_clean_files
Chris@350 10707 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
mathieu@468 10708 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
mathieu@468 10709 echo "$as_me: creating $CONFIG_STATUS" >&6;}
mathieu@468 10710 cat >$CONFIG_STATUS <<_ACEOF
Chris@350 10711 #! $SHELL
Chris@350 10712 # Generated by $as_me.
Chris@350 10713 # Run this file to recreate the current configuration.
Chris@350 10714 # Compiler output produced by configure, useful for debugging
Chris@350 10715 # configure, is in config.log if it exists.
Chris@350 10716
Chris@350 10717 debug=false
Chris@350 10718 ac_cs_recheck=false
Chris@350 10719 ac_cs_silent=false
Chris@350 10720 SHELL=\${CONFIG_SHELL-$SHELL}
mathieu@468 10721 _ACEOF
mathieu@468 10722
mathieu@468 10723 cat >>$CONFIG_STATUS <<\_ACEOF
mathieu@468 10724 ## --------------------- ##
mathieu@468 10725 ## M4sh Initialization. ##
mathieu@468 10726 ## --------------------- ##
Chris@350 10727
Chris@350 10728 # Be more Bourne compatible
Chris@350 10729 DUALCASE=1; export DUALCASE # for MKS sh
mathieu@468 10730 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
Chris@350 10731 emulate sh
Chris@350 10732 NULLCMD=:
mathieu@468 10733 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
Chris@350 10734 # is contrary to our usage. Disable this feature.
Chris@350 10735 alias -g '${1+"$@"}'='"$@"'
Chris@350 10736 setopt NO_GLOB_SUBST
Chris@350 10737 else
mathieu@468 10738 case `(set -o) 2>/dev/null` in
mathieu@468 10739 *posix*) set -o posix ;;
mathieu@468 10740 esac
mathieu@468 10741
mathieu@468 10742 fi
mathieu@468 10743
mathieu@468 10744
mathieu@468 10745
mathieu@468 10746
mathieu@468 10747 # PATH needs CR
mathieu@468 10748 # Avoid depending upon Character Ranges.
mathieu@468 10749 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
mathieu@468 10750 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
mathieu@468 10751 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
mathieu@468 10752 as_cr_digits='0123456789'
mathieu@468 10753 as_cr_alnum=$as_cr_Letters$as_cr_digits
Chris@350 10754
Chris@350 10755 # The user is always right.
Chris@350 10756 if test "${PATH_SEPARATOR+set}" != set; then
mathieu@468 10757 echo "#! /bin/sh" >conf$$.sh
mathieu@468 10758 echo "exit 0" >>conf$$.sh
mathieu@468 10759 chmod +x conf$$.sh
mathieu@468 10760 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
mathieu@468 10761 PATH_SEPARATOR=';'
mathieu@468 10762 else
mathieu@468 10763 PATH_SEPARATOR=:
mathieu@468 10764 fi
mathieu@468 10765 rm -f conf$$.sh
mathieu@468 10766 fi
mathieu@468 10767
mathieu@468 10768 # Support unset when possible.
mathieu@468 10769 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
mathieu@468 10770 as_unset=unset
mathieu@468 10771 else
mathieu@468 10772 as_unset=false
Chris@350 10773 fi
Chris@350 10774
Chris@350 10775
Chris@350 10776 # IFS
Chris@350 10777 # We need space, tab and new line, in precisely that order. Quoting is
Chris@350 10778 # there to prevent editors from complaining about space-tab.
Chris@350 10779 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
Chris@350 10780 # splitting by setting IFS to empty value.)
mathieu@468 10781 as_nl='
mathieu@468 10782 '
Chris@350 10783 IFS=" "" $as_nl"
Chris@350 10784
Chris@350 10785 # Find who we are. Look in the path if we contain no directory separator.
mathieu@468 10786 case $0 in
Chris@350 10787 *[\\/]* ) as_myself=$0 ;;
Chris@350 10788 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 10789 for as_dir in $PATH
Chris@350 10790 do
Chris@350 10791 IFS=$as_save_IFS
Chris@350 10792 test -z "$as_dir" && as_dir=.
mathieu@468 10793 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
mathieu@468 10794 done
Chris@350 10795 IFS=$as_save_IFS
Chris@350 10796
Chris@350 10797 ;;
Chris@350 10798 esac
Chris@350 10799 # We did not find ourselves, most probably we were run as `sh COMMAND'
Chris@350 10800 # in which case we are not to be found in the path.
Chris@350 10801 if test "x$as_myself" = x; then
Chris@350 10802 as_myself=$0
Chris@350 10803 fi
Chris@350 10804 if test ! -f "$as_myself"; then
mathieu@468 10805 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
mathieu@468 10806 { (exit 1); exit 1; }
mathieu@468 10807 fi
mathieu@468 10808
mathieu@468 10809 # Work around bugs in pre-3.0 UWIN ksh.
mathieu@468 10810 for as_var in ENV MAIL MAILPATH
mathieu@468 10811 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Chris@350 10812 done
Chris@350 10813 PS1='$ '
Chris@350 10814 PS2='> '
Chris@350 10815 PS4='+ '
Chris@350 10816
Chris@350 10817 # NLS nuisances.
mathieu@468 10818 for as_var in \
mathieu@468 10819 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
mathieu@468 10820 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
mathieu@468 10821 LC_TELEPHONE LC_TIME
mathieu@468 10822 do
mathieu@468 10823 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
mathieu@468 10824 eval $as_var=C; export $as_var
mathieu@468 10825 else
mathieu@468 10826 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Chris@350 10827 fi
mathieu@468 10828 done
mathieu@468 10829
mathieu@468 10830 # Required to use basename.
Chris@350 10831 if expr a : '\(a\)' >/dev/null 2>&1 &&
Chris@350 10832 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Chris@350 10833 as_expr=expr
Chris@350 10834 else
Chris@350 10835 as_expr=false
Chris@350 10836 fi
Chris@350 10837
Chris@350 10838 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Chris@350 10839 as_basename=basename
Chris@350 10840 else
Chris@350 10841 as_basename=false
Chris@350 10842 fi
Chris@350 10843
mathieu@468 10844
mathieu@468 10845 # Name of the executable.
Chris@350 10846 as_me=`$as_basename -- "$0" ||
Chris@350 10847 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
Chris@350 10848 X"$0" : 'X\(//\)$' \| \
Chris@350 10849 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
mathieu@468 10850 echo X/"$0" |
Chris@350 10851 sed '/^.*\/\([^/][^/]*\)\/*$/{
Chris@350 10852 s//\1/
Chris@350 10853 q
Chris@350 10854 }
Chris@350 10855 /^X\/\(\/\/\)$/{
Chris@350 10856 s//\1/
Chris@350 10857 q
Chris@350 10858 }
Chris@350 10859 /^X\/\(\/\).*/{
Chris@350 10860 s//\1/
Chris@350 10861 q
Chris@350 10862 }
Chris@350 10863 s/.*/./; q'`
Chris@350 10864
mathieu@468 10865 # CDPATH.
mathieu@468 10866 $as_unset CDPATH
mathieu@468 10867
mathieu@468 10868
mathieu@468 10869
mathieu@468 10870 as_lineno_1=$LINENO
mathieu@468 10871 as_lineno_2=$LINENO
mathieu@468 10872 test "x$as_lineno_1" != "x$as_lineno_2" &&
mathieu@468 10873 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
mathieu@468 10874
mathieu@468 10875 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
mathieu@468 10876 # uniformly replaced by the line number. The first 'sed' inserts a
mathieu@468 10877 # line-number line after each line using $LINENO; the second 'sed'
mathieu@468 10878 # does the real work. The second script uses 'N' to pair each
mathieu@468 10879 # line-number line with the line containing $LINENO, and appends
mathieu@468 10880 # trailing '-' during substitution so that $LINENO is not a special
mathieu@468 10881 # case at line end.
mathieu@468 10882 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
mathieu@468 10883 # scripts with optimization help from Paolo Bonzini. Blame Lee
mathieu@468 10884 # E. McMahon (1931-1989) for sed's syntax. :-)
mathieu@468 10885 sed -n '
mathieu@468 10886 p
mathieu@468 10887 /[$]LINENO/=
mathieu@468 10888 ' <$as_myself |
mathieu@468 10889 sed '
mathieu@468 10890 s/[$]LINENO.*/&-/
mathieu@468 10891 t lineno
mathieu@468 10892 b
mathieu@468 10893 :lineno
mathieu@468 10894 N
mathieu@468 10895 :loop
mathieu@468 10896 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
mathieu@468 10897 t loop
mathieu@468 10898 s/-\n.*//
mathieu@468 10899 ' >$as_me.lineno &&
mathieu@468 10900 chmod +x "$as_me.lineno" ||
mathieu@468 10901 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
mathieu@468 10902 { (exit 1); exit 1; }; }
mathieu@468 10903
mathieu@468 10904 # Don't try to exec as it changes $[0], causing all sort of problems
mathieu@468 10905 # (the dirname of $[0] is not the place where we might find the
mathieu@468 10906 # original and so on. Autoconf is especially sensitive to this).
mathieu@468 10907 . "./$as_me.lineno"
mathieu@468 10908 # Exit status is that of the last command.
mathieu@468 10909 exit
mathieu@468 10910 }
mathieu@468 10911
mathieu@468 10912
mathieu@468 10913 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
mathieu@468 10914 as_dirname=dirname
mathieu@468 10915 else
mathieu@468 10916 as_dirname=false
mathieu@468 10917 fi
Chris@350 10918
Chris@350 10919 ECHO_C= ECHO_N= ECHO_T=
mathieu@468 10920 case `echo -n x` in
Chris@350 10921 -n*)
mathieu@468 10922 case `echo 'x\c'` in
Chris@350 10923 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
mathieu@468 10924 *) ECHO_C='\c';;
Chris@350 10925 esac;;
Chris@350 10926 *)
Chris@350 10927 ECHO_N='-n';;
Chris@350 10928 esac
Chris@350 10929
mathieu@468 10930 if expr a : '\(a\)' >/dev/null 2>&1 &&
mathieu@468 10931 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mathieu@468 10932 as_expr=expr
mathieu@468 10933 else
mathieu@468 10934 as_expr=false
mathieu@468 10935 fi
mathieu@468 10936
Chris@350 10937 rm -f conf$$ conf$$.exe conf$$.file
Chris@350 10938 if test -d conf$$.dir; then
Chris@350 10939 rm -f conf$$.dir/conf$$.file
Chris@350 10940 else
Chris@350 10941 rm -f conf$$.dir
mathieu@468 10942 mkdir conf$$.dir
mathieu@468 10943 fi
mathieu@468 10944 echo >conf$$.file
mathieu@468 10945 if ln -s conf$$.file conf$$ 2>/dev/null; then
mathieu@468 10946 as_ln_s='ln -s'
mathieu@468 10947 # ... but there are two gotchas:
mathieu@468 10948 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
mathieu@468 10949 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
mathieu@468 10950 # In both cases, we have to default to `cp -p'.
mathieu@468 10951 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Chris@350 10952 as_ln_s='cp -p'
mathieu@468 10953 elif ln conf$$.file conf$$ 2>/dev/null; then
mathieu@468 10954 as_ln_s=ln
Chris@350 10955 else
Chris@350 10956 as_ln_s='cp -p'
Chris@350 10957 fi
Chris@350 10958 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
Chris@350 10959 rmdir conf$$.dir 2>/dev/null
Chris@350 10960
mathieu@468 10961 if mkdir -p . 2>/dev/null; then
mathieu@468 10962 as_mkdir_p=:
mathieu@468 10963 else
mathieu@468 10964 test -d ./-p && rmdir ./-p
mathieu@468 10965 as_mkdir_p=false
mathieu@468 10966 fi
mathieu@468 10967
mathieu@468 10968 if test -x / >/dev/null 2>&1; then
mathieu@468 10969 as_test_x='test -x'
mathieu@468 10970 else
mathieu@468 10971 if ls -dL / >/dev/null 2>&1; then
mathieu@468 10972 as_ls_L_option=L
mathieu@468 10973 else
mathieu@468 10974 as_ls_L_option=
mathieu@468 10975 fi
mathieu@468 10976 as_test_x='
mathieu@468 10977 eval sh -c '\''
mathieu@468 10978 if test -d "$1"; then
mathieu@468 10979 test -d "$1/.";
mathieu@468 10980 else
mathieu@468 10981 case $1 in
mathieu@468 10982 -*)set "./$1";;
mathieu@468 10983 esac;
mathieu@468 10984 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
mathieu@468 10985 ???[sx]*):;;*)false;;esac;fi
mathieu@468 10986 '\'' sh
mathieu@468 10987 '
mathieu@468 10988 fi
mathieu@468 10989 as_executable_p=$as_test_x
mathieu@468 10990
mathieu@468 10991 # Sed expression to map a string onto a valid CPP name.
mathieu@468 10992 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
mathieu@468 10993
mathieu@468 10994 # Sed expression to map a string onto a valid variable name.
mathieu@468 10995 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
mathieu@468 10996
mathieu@468 10997
mathieu@468 10998 exec 6>&1
mathieu@468 10999
mathieu@468 11000 # Save the log message, to keep $[0] and so on meaningful, and to
mathieu@468 11001 # report actual input values of CONFIG_FILES etc. instead of their
mathieu@468 11002 # values after options handling.
mathieu@468 11003 ac_log="
mathieu@468 11004 This file was extended by Sonic Visualiser $as_me 1.9-kiosk-hg, which was
mathieu@468 11005 generated by GNU Autoconf 2.61. Invocation command line was
mathieu@468 11006
mathieu@468 11007 CONFIG_FILES = $CONFIG_FILES
mathieu@468 11008 CONFIG_HEADERS = $CONFIG_HEADERS
mathieu@468 11009 CONFIG_LINKS = $CONFIG_LINKS
mathieu@468 11010 CONFIG_COMMANDS = $CONFIG_COMMANDS
mathieu@468 11011 $ $0 $@
mathieu@468 11012
mathieu@468 11013 on `(hostname || uname -n) 2>/dev/null | sed 1q`
mathieu@468 11014 "
mathieu@468 11015
mathieu@468 11016 _ACEOF
mathieu@468 11017
mathieu@468 11018 cat >>$CONFIG_STATUS <<_ACEOF
mathieu@468 11019 # Files that config.status was made for.
mathieu@468 11020 config_files="$ac_config_files"
mathieu@468 11021
mathieu@468 11022 _ACEOF
mathieu@468 11023
mathieu@468 11024 cat >>$CONFIG_STATUS <<\_ACEOF
mathieu@468 11025 ac_cs_usage="\
mathieu@468 11026 \`$as_me' instantiates files from templates according to the
mathieu@468 11027 current configuration.
mathieu@468 11028
mathieu@468 11029 Usage: $0 [OPTIONS] [FILE]...
mathieu@468 11030
mathieu@468 11031 -h, --help print this help, then exit
mathieu@468 11032 -V, --version print version number and configuration settings, then exit
mathieu@468 11033 -q, --quiet do not print progress messages
mathieu@468 11034 -d, --debug don't remove temporary files
mathieu@468 11035 --recheck update $as_me by reconfiguring in the same conditions
mathieu@468 11036 --file=FILE[:TEMPLATE]
mathieu@468 11037 instantiate the configuration file FILE
mathieu@468 11038
mathieu@468 11039 Configuration files:
mathieu@468 11040 $config_files
mathieu@468 11041
mathieu@468 11042 Report bugs to <bug-autoconf@gnu.org>."
mathieu@468 11043
mathieu@468 11044 _ACEOF
mathieu@468 11045 cat >>$CONFIG_STATUS <<_ACEOF
mathieu@468 11046 ac_cs_version="\\
mathieu@468 11047 Sonic Visualiser config.status 1.9-kiosk-hg
mathieu@468 11048 configured by $0, generated by GNU Autoconf 2.61,
mathieu@468 11049 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
mathieu@468 11050
mathieu@468 11051 Copyright (C) 2006 Free Software Foundation, Inc.
mathieu@468 11052 This config.status script is free software; the Free Software Foundation
mathieu@468 11053 gives unlimited permission to copy, distribute and modify it."
mathieu@468 11054
mathieu@468 11055 ac_pwd='$ac_pwd'
mathieu@468 11056 srcdir='$srcdir'
mathieu@468 11057 INSTALL='$INSTALL'
mathieu@468 11058 MKDIR_P='$MKDIR_P'
mathieu@468 11059 _ACEOF
mathieu@468 11060
mathieu@468 11061 cat >>$CONFIG_STATUS <<\_ACEOF
mathieu@468 11062 # If no file are specified by the user, then we need to provide default
mathieu@468 11063 # value. By we need to know if files were specified by the user.
mathieu@468 11064 ac_need_defaults=:
mathieu@468 11065 while test $# != 0
mathieu@468 11066 do
mathieu@468 11067 case $1 in
mathieu@468 11068 --*=*)
mathieu@468 11069 ac_option=`expr "X$1" : 'X\([^=]*\)='`
mathieu@468 11070 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
mathieu@468 11071 ac_shift=:
mathieu@468 11072 ;;
mathieu@468 11073 *)
mathieu@468 11074 ac_option=$1
mathieu@468 11075 ac_optarg=$2
mathieu@468 11076 ac_shift=shift
mathieu@468 11077 ;;
mathieu@468 11078 esac
mathieu@468 11079
mathieu@468 11080 case $ac_option in
mathieu@468 11081 # Handling of the options.
mathieu@468 11082 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
mathieu@468 11083 ac_cs_recheck=: ;;
mathieu@468 11084 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
mathieu@468 11085 echo "$ac_cs_version"; exit ;;
mathieu@468 11086 --debug | --debu | --deb | --de | --d | -d )
mathieu@468 11087 debug=: ;;
mathieu@468 11088 --file | --fil | --fi | --f )
mathieu@468 11089 $ac_shift
mathieu@468 11090 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
mathieu@468 11091 ac_need_defaults=false;;
mathieu@468 11092 --he | --h | --help | --hel | -h )
mathieu@468 11093 echo "$ac_cs_usage"; exit ;;
mathieu@468 11094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
mathieu@468 11095 | -silent | --silent | --silen | --sile | --sil | --si | --s)
mathieu@468 11096 ac_cs_silent=: ;;
mathieu@468 11097
mathieu@468 11098 # This is an error.
mathieu@468 11099 -*) { echo "$as_me: error: unrecognized option: $1
mathieu@468 11100 Try \`$0 --help' for more information." >&2
mathieu@468 11101 { (exit 1); exit 1; }; } ;;
mathieu@468 11102
mathieu@468 11103 *) ac_config_targets="$ac_config_targets $1"
mathieu@468 11104 ac_need_defaults=false ;;
mathieu@468 11105
mathieu@468 11106 esac
mathieu@468 11107 shift
mathieu@468 11108 done
mathieu@468 11109
mathieu@468 11110 ac_configure_extra_args=
mathieu@468 11111
mathieu@468 11112 if $ac_cs_silent; then
mathieu@468 11113 exec 6>/dev/null
mathieu@468 11114 ac_configure_extra_args="$ac_configure_extra_args --silent"
mathieu@468 11115 fi
mathieu@468 11116
mathieu@468 11117 _ACEOF
mathieu@468 11118 cat >>$CONFIG_STATUS <<_ACEOF
mathieu@468 11119 if \$ac_cs_recheck; then
mathieu@468 11120 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
mathieu@468 11121 CONFIG_SHELL=$SHELL
mathieu@468 11122 export CONFIG_SHELL
mathieu@468 11123 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
mathieu@468 11124 fi
mathieu@468 11125
mathieu@468 11126 _ACEOF
mathieu@468 11127 cat >>$CONFIG_STATUS <<\_ACEOF
mathieu@468 11128 exec 5>>config.log
Chris@350 11129 {
mathieu@468 11130 echo
mathieu@468 11131 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
mathieu@468 11132 ## Running $as_me. ##
mathieu@468 11133 _ASBOX
mathieu@468 11134 echo "$ac_log"
mathieu@468 11135 } >&5
mathieu@468 11136
mathieu@468 11137 _ACEOF
mathieu@468 11138 cat >>$CONFIG_STATUS <<_ACEOF
mathieu@468 11139 _ACEOF
mathieu@468 11140
mathieu@468 11141 cat >>$CONFIG_STATUS <<\_ACEOF
mathieu@468 11142
mathieu@468 11143 # Handling of arguments.
mathieu@468 11144 for ac_config_target in $ac_config_targets
mathieu@468 11145 do
mathieu@468 11146 case $ac_config_target in
mathieu@468 11147 "config.pri") CONFIG_FILES="$CONFIG_FILES config.pri" ;;
mathieu@468 11148
mathieu@468 11149 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
mathieu@468 11150 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
mathieu@468 11151 { (exit 1); exit 1; }; };;
mathieu@468 11152 esac
mathieu@468 11153 done
mathieu@468 11154
mathieu@468 11155
mathieu@468 11156 # If the user did not use the arguments to specify the items to instantiate,
mathieu@468 11157 # then the envvar interface is used. Set only those that are not.
mathieu@468 11158 # We use the long form for the default assignment because of an extremely
mathieu@468 11159 # bizarre bug on SunOS 4.1.3.
mathieu@468 11160 if $ac_need_defaults; then
mathieu@468 11161 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mathieu@468 11162 fi
mathieu@468 11163
mathieu@468 11164 # Have a temporary directory for convenience. Make it in the build tree
mathieu@468 11165 # simply because there is no reason against having it here, and in addition,
mathieu@468 11166 # creating and moving files from /tmp can sometimes cause problems.
mathieu@468 11167 # Hook for its removal unless debugging.
mathieu@468 11168 # Note that there is a small window in which the directory will not be cleaned:
mathieu@468 11169 # after its creation but before its name has been assigned to `$tmp'.
mathieu@468 11170 $debug ||
mathieu@468 11171 {
mathieu@468 11172 tmp=
mathieu@468 11173 trap 'exit_status=$?
mathieu@468 11174 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
mathieu@468 11175 ' 0
mathieu@468 11176 trap '{ (exit 1); exit 1; }' 1 2 13 15
mathieu@468 11177 }
mathieu@468 11178 # Create a (secure) tmp directory for tmp files.
mathieu@468 11179
mathieu@468 11180 {
mathieu@468 11181 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
mathieu@468 11182 test -n "$tmp" && test -d "$tmp"
mathieu@468 11183 } ||
mathieu@468 11184 {
mathieu@468 11185 tmp=./conf$$-$RANDOM
mathieu@468 11186 (umask 077 && mkdir "$tmp")
mathieu@468 11187 } ||
mathieu@468 11188 {
mathieu@468 11189 echo "$me: cannot create a temporary directory in ." >&2
mathieu@468 11190 { (exit 1); exit 1; }
mathieu@468 11191 }
mathieu@468 11192
mathieu@468 11193 #
mathieu@468 11194 # Set up the sed scripts for CONFIG_FILES section.
mathieu@468 11195 #
mathieu@468 11196
mathieu@468 11197 # No need to generate the scripts if there are no CONFIG_FILES.
mathieu@468 11198 # This happens for instance when ./config.status config.h
mathieu@468 11199 if test -n "$CONFIG_FILES"; then
mathieu@468 11200
mathieu@468 11201 _ACEOF
mathieu@468 11202
mathieu@468 11203
mathieu@468 11204
mathieu@468 11205 ac_delim='%!_!# '
mathieu@468 11206 for ac_last_try in false false false false false :; do
mathieu@468 11207 cat >conf$$subs.sed <<_ACEOF
mathieu@468 11208 SHELL!$SHELL$ac_delim
mathieu@468 11209 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
mathieu@468 11210 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
mathieu@468 11211 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
mathieu@468 11212 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
mathieu@468 11213 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
mathieu@468 11214 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
mathieu@468 11215 exec_prefix!$exec_prefix$ac_delim
mathieu@468 11216 prefix!$prefix$ac_delim
mathieu@468 11217 program_transform_name!$program_transform_name$ac_delim
mathieu@468 11218 bindir!$bindir$ac_delim
mathieu@468 11219 sbindir!$sbindir$ac_delim
mathieu@468 11220 libexecdir!$libexecdir$ac_delim
mathieu@468 11221 datarootdir!$datarootdir$ac_delim
mathieu@468 11222 datadir!$datadir$ac_delim
mathieu@468 11223 sysconfdir!$sysconfdir$ac_delim
mathieu@468 11224 sharedstatedir!$sharedstatedir$ac_delim
mathieu@468 11225 localstatedir!$localstatedir$ac_delim
mathieu@468 11226 includedir!$includedir$ac_delim
mathieu@468 11227 oldincludedir!$oldincludedir$ac_delim
mathieu@468 11228 docdir!$docdir$ac_delim
mathieu@468 11229 infodir!$infodir$ac_delim
mathieu@468 11230 htmldir!$htmldir$ac_delim
mathieu@468 11231 dvidir!$dvidir$ac_delim
mathieu@468 11232 pdfdir!$pdfdir$ac_delim
mathieu@468 11233 psdir!$psdir$ac_delim
mathieu@468 11234 libdir!$libdir$ac_delim
mathieu@468 11235 localedir!$localedir$ac_delim
mathieu@468 11236 mandir!$mandir$ac_delim
mathieu@468 11237 DEFS!$DEFS$ac_delim
mathieu@468 11238 ECHO_C!$ECHO_C$ac_delim
mathieu@468 11239 ECHO_N!$ECHO_N$ac_delim
mathieu@468 11240 ECHO_T!$ECHO_T$ac_delim
mathieu@468 11241 LIBS!$LIBS$ac_delim
mathieu@468 11242 build_alias!$build_alias$ac_delim
mathieu@468 11243 host_alias!$host_alias$ac_delim
mathieu@468 11244 target_alias!$target_alias$ac_delim
mathieu@468 11245 CC!$CC$ac_delim
mathieu@468 11246 CFLAGS!$CFLAGS$ac_delim
mathieu@468 11247 LDFLAGS!$LDFLAGS$ac_delim
mathieu@468 11248 CPPFLAGS!$CPPFLAGS$ac_delim
mathieu@468 11249 ac_ct_CC!$ac_ct_CC$ac_delim
mathieu@468 11250 EXEEXT!$EXEEXT$ac_delim
mathieu@468 11251 OBJEXT!$OBJEXT$ac_delim
mathieu@468 11252 CXX!$CXX$ac_delim
mathieu@468 11253 CXXFLAGS!$CXXFLAGS$ac_delim
mathieu@468 11254 ac_ct_CXX!$ac_ct_CXX$ac_delim
mathieu@468 11255 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
mathieu@468 11256 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
mathieu@468 11257 INSTALL_DATA!$INSTALL_DATA$ac_delim
mathieu@468 11258 CXXCPP!$CXXCPP$ac_delim
mathieu@468 11259 GREP!$GREP$ac_delim
mathieu@468 11260 EGREP!$EGREP$ac_delim
mathieu@468 11261 PKG_CONFIG!$PKG_CONFIG$ac_delim
mathieu@468 11262 PKG_CONFIG_PATH!$PKG_CONFIG_PATH$ac_delim
mathieu@468 11263 PKG_CONFIG_LIBDIR!$PKG_CONFIG_LIBDIR$ac_delim
mathieu@468 11264 QMAKE!$QMAKE$ac_delim
mathieu@468 11265 bz2_CFLAGS!$bz2_CFLAGS$ac_delim
mathieu@468 11266 bz2_LIBS!$bz2_LIBS$ac_delim
mathieu@468 11267 fftw3_CFLAGS!$fftw3_CFLAGS$ac_delim
mathieu@468 11268 fftw3_LIBS!$fftw3_LIBS$ac_delim
mathieu@468 11269 fftw3f_CFLAGS!$fftw3f_CFLAGS$ac_delim
mathieu@468 11270 fftw3f_LIBS!$fftw3f_LIBS$ac_delim
mathieu@468 11271 sndfile_CFLAGS!$sndfile_CFLAGS$ac_delim
mathieu@468 11272 sndfile_LIBS!$sndfile_LIBS$ac_delim
mathieu@468 11273 samplerate_CFLAGS!$samplerate_CFLAGS$ac_delim
mathieu@468 11274 samplerate_LIBS!$samplerate_LIBS$ac_delim
mathieu@468 11275 vamp_CFLAGS!$vamp_CFLAGS$ac_delim
mathieu@468 11276 vamp_LIBS!$vamp_LIBS$ac_delim
mathieu@468 11277 vamphostsdk_CFLAGS!$vamphostsdk_CFLAGS$ac_delim
mathieu@468 11278 vamphostsdk_LIBS!$vamphostsdk_LIBS$ac_delim
mathieu@468 11279 rubberband_CFLAGS!$rubberband_CFLAGS$ac_delim
mathieu@468 11280 rubberband_LIBS!$rubberband_LIBS$ac_delim
mathieu@468 11281 raptor_CFLAGS!$raptor_CFLAGS$ac_delim
mathieu@468 11282 raptor_LIBS!$raptor_LIBS$ac_delim
mathieu@468 11283 rasqal_CFLAGS!$rasqal_CFLAGS$ac_delim
mathieu@468 11284 rasqal_LIBS!$rasqal_LIBS$ac_delim
mathieu@468 11285 redland_CFLAGS!$redland_CFLAGS$ac_delim
mathieu@468 11286 redland_LIBS!$redland_LIBS$ac_delim
mathieu@468 11287 liblo_CFLAGS!$liblo_CFLAGS$ac_delim
mathieu@468 11288 liblo_LIBS!$liblo_LIBS$ac_delim
mathieu@468 11289 portaudio_2_0_CFLAGS!$portaudio_2_0_CFLAGS$ac_delim
mathieu@468 11290 portaudio_2_0_LIBS!$portaudio_2_0_LIBS$ac_delim
mathieu@468 11291 JACK_CFLAGS!$JACK_CFLAGS$ac_delim
mathieu@468 11292 JACK_LIBS!$JACK_LIBS$ac_delim
mathieu@468 11293 libpulse_CFLAGS!$libpulse_CFLAGS$ac_delim
mathieu@468 11294 libpulse_LIBS!$libpulse_LIBS$ac_delim
mathieu@468 11295 lrdf_CFLAGS!$lrdf_CFLAGS$ac_delim
mathieu@468 11296 lrdf_LIBS!$lrdf_LIBS$ac_delim
mathieu@468 11297 oggz_CFLAGS!$oggz_CFLAGS$ac_delim
mathieu@468 11298 oggz_LIBS!$oggz_LIBS$ac_delim
mathieu@468 11299 fishsound_CFLAGS!$fishsound_CFLAGS$ac_delim
mathieu@468 11300 fishsound_LIBS!$fishsound_LIBS$ac_delim
mathieu@468 11301 mad_CFLAGS!$mad_CFLAGS$ac_delim
mathieu@468 11302 mad_LIBS!$mad_LIBS$ac_delim
mathieu@468 11303 id3tag_CFLAGS!$id3tag_CFLAGS$ac_delim
mathieu@468 11304 id3tag_LIBS!$id3tag_LIBS$ac_delim
mathieu@468 11305 _ACEOF
mathieu@468 11306
mathieu@468 11307 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
mathieu@468 11308 break
mathieu@468 11309 elif $ac_last_try; then
mathieu@468 11310 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
mathieu@468 11311 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
mathieu@468 11312 { (exit 1); exit 1; }; }
mathieu@468 11313 else
mathieu@468 11314 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
mathieu@468 11315 fi
mathieu@468 11316 done
mathieu@468 11317
mathieu@468 11318 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
mathieu@468 11319 if test -n "$ac_eof"; then
mathieu@468 11320 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
mathieu@468 11321 ac_eof=`expr $ac_eof + 1`
mathieu@468 11322 fi
mathieu@468 11323
mathieu@468 11324 cat >>$CONFIG_STATUS <<_ACEOF
mathieu@468 11325 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
mathieu@468 11326 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
mathieu@468 11327 _ACEOF
mathieu@468 11328 sed '
mathieu@468 11329 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
mathieu@468 11330 s/^/s,@/; s/!/@,|#_!!_#|/
mathieu@468 11331 :n
mathieu@468 11332 t n
mathieu@468 11333 s/'"$ac_delim"'$/,g/; t
mathieu@468 11334 s/$/\\/; p
mathieu@468 11335 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
mathieu@468 11336 ' >>$CONFIG_STATUS <conf$$subs.sed
mathieu@468 11337 rm -f conf$$subs.sed
mathieu@468 11338 cat >>$CONFIG_STATUS <<_ACEOF
mathieu@468 11339 CEOF$ac_eof
mathieu@468 11340 _ACEOF
mathieu@468 11341
mathieu@468 11342
mathieu@468 11343 ac_delim='%!_!# '
mathieu@468 11344 for ac_last_try in false false false false false :; do
mathieu@468 11345 cat >conf$$subs.sed <<_ACEOF
mathieu@468 11346 PERL!$PERL$ac_delim
mathieu@468 11347 XARGS!$XARGS$ac_delim
mathieu@468 11348 MAKEDEPEND!$MAKEDEPEND$ac_delim
mathieu@468 11349 SHA1SUM!$SHA1SUM$ac_delim
mathieu@468 11350 CUT!$CUT$ac_delim
mathieu@468 11351 CXXFLAGS_MINIMAL!$CXXFLAGS_MINIMAL$ac_delim
mathieu@468 11352 HAVES!$HAVES$ac_delim
mathieu@468 11353 QMAKE_CONFIG!$QMAKE_CONFIG$ac_delim
mathieu@468 11354 CODENAME!$CODENAME$ac_delim
mathieu@468 11355 LIBOBJS!$LIBOBJS$ac_delim
mathieu@468 11356 LTLIBOBJS!$LTLIBOBJS$ac_delim
mathieu@468 11357 _ACEOF
mathieu@468 11358
mathieu@468 11359 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
mathieu@468 11360 break
mathieu@468 11361 elif $ac_last_try; then
mathieu@468 11362 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
mathieu@468 11363 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
mathieu@468 11364 { (exit 1); exit 1; }; }
mathieu@468 11365 else
mathieu@468 11366 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
mathieu@468 11367 fi
mathieu@468 11368 done
mathieu@468 11369
mathieu@468 11370 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
mathieu@468 11371 if test -n "$ac_eof"; then
mathieu@468 11372 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
mathieu@468 11373 ac_eof=`expr $ac_eof + 1`
mathieu@468 11374 fi
mathieu@468 11375
mathieu@468 11376 cat >>$CONFIG_STATUS <<_ACEOF
mathieu@468 11377 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
mathieu@468 11378 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
mathieu@468 11379 _ACEOF
mathieu@468 11380 sed '
mathieu@468 11381 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
mathieu@468 11382 s/^/s,@/; s/!/@,|#_!!_#|/
mathieu@468 11383 :n
mathieu@468 11384 t n
mathieu@468 11385 s/'"$ac_delim"'$/,g/; t
mathieu@468 11386 s/$/\\/; p
mathieu@468 11387 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
mathieu@468 11388 ' >>$CONFIG_STATUS <conf$$subs.sed
mathieu@468 11389 rm -f conf$$subs.sed
mathieu@468 11390 cat >>$CONFIG_STATUS <<_ACEOF
mathieu@468 11391 :end
mathieu@468 11392 s/|#_!!_#|//g
mathieu@468 11393 CEOF$ac_eof
mathieu@468 11394 _ACEOF
mathieu@468 11395
mathieu@468 11396
mathieu@468 11397 # VPATH may cause trouble with some makes, so we remove $(srcdir),
mathieu@468 11398 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
mathieu@468 11399 # trailing colons and then remove the whole line if VPATH becomes empty
mathieu@468 11400 # (actually we leave an empty line to preserve line numbers).
mathieu@468 11401 if test "x$srcdir" = x.; then
mathieu@468 11402 ac_vpsub='/^[ ]*VPATH[ ]*=/{
mathieu@468 11403 s/:*\$(srcdir):*/:/
mathieu@468 11404 s/:*\${srcdir}:*/:/
mathieu@468 11405 s/:*@srcdir@:*/:/
mathieu@468 11406 s/^\([^=]*=[ ]*\):*/\1/
mathieu@468 11407 s/:*$//
mathieu@468 11408 s/^[^=]*=[ ]*$//
mathieu@468 11409 }'
mathieu@468 11410 fi
mathieu@468 11411
mathieu@468 11412 cat >>$CONFIG_STATUS <<\_ACEOF
mathieu@468 11413 fi # test -n "$CONFIG_FILES"
mathieu@468 11414
mathieu@468 11415
mathieu@468 11416 for ac_tag in :F $CONFIG_FILES
mathieu@468 11417 do
mathieu@468 11418 case $ac_tag in
mathieu@468 11419 :[FHLC]) ac_mode=$ac_tag; continue;;
mathieu@468 11420 esac
mathieu@468 11421 case $ac_mode$ac_tag in
mathieu@468 11422 :[FHL]*:*);;
mathieu@468 11423 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
mathieu@468 11424 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
mathieu@468 11425 { (exit 1); exit 1; }; };;
mathieu@468 11426 :[FH]-) ac_tag=-:-;;
mathieu@468 11427 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
mathieu@468 11428 esac
mathieu@468 11429 ac_save_IFS=$IFS
mathieu@468 11430 IFS=:
mathieu@468 11431 set x $ac_tag
mathieu@468 11432 IFS=$ac_save_IFS
mathieu@468 11433 shift
mathieu@468 11434 ac_file=$1
mathieu@468 11435 shift
mathieu@468 11436
mathieu@468 11437 case $ac_mode in
mathieu@468 11438 :L) ac_source=$1;;
mathieu@468 11439 :[FH])
mathieu@468 11440 ac_file_inputs=
mathieu@468 11441 for ac_f
mathieu@468 11442 do
mathieu@468 11443 case $ac_f in
mathieu@468 11444 -) ac_f="$tmp/stdin";;
mathieu@468 11445 *) # Look for the file first in the build tree, then in the source tree
mathieu@468 11446 # (if the path is not absolute). The absolute path cannot be DOS-style,
mathieu@468 11447 # because $ac_f cannot contain `:'.
mathieu@468 11448 test -f "$ac_f" ||
mathieu@468 11449 case $ac_f in
mathieu@468 11450 [\\/$]*) false;;
mathieu@468 11451 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
mathieu@468 11452 esac ||
mathieu@468 11453 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
mathieu@468 11454 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
mathieu@468 11455 { (exit 1); exit 1; }; };;
mathieu@468 11456 esac
mathieu@468 11457 ac_file_inputs="$ac_file_inputs $ac_f"
mathieu@468 11458 done
mathieu@468 11459
mathieu@468 11460 # Let's still pretend it is `configure' which instantiates (i.e., don't
mathieu@468 11461 # use $as_me), people would be surprised to read:
mathieu@468 11462 # /* config.h. Generated by config.status. */
mathieu@468 11463 configure_input="Generated from "`IFS=:
mathieu@468 11464 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
mathieu@468 11465 if test x"$ac_file" != x-; then
mathieu@468 11466 configure_input="$ac_file. $configure_input"
mathieu@468 11467 { echo "$as_me:$LINENO: creating $ac_file" >&5
mathieu@468 11468 echo "$as_me: creating $ac_file" >&6;}
mathieu@468 11469 fi
mathieu@468 11470
mathieu@468 11471 case $ac_tag in
mathieu@468 11472 *:-:* | *:-) cat >"$tmp/stdin";;
mathieu@468 11473 esac
mathieu@468 11474 ;;
mathieu@468 11475 esac
mathieu@468 11476
mathieu@468 11477 ac_dir=`$as_dirname -- "$ac_file" ||
mathieu@468 11478 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mathieu@468 11479 X"$ac_file" : 'X\(//\)[^/]' \| \
mathieu@468 11480 X"$ac_file" : 'X\(//\)$' \| \
mathieu@468 11481 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
mathieu@468 11482 echo X"$ac_file" |
mathieu@468 11483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
mathieu@468 11484 s//\1/
mathieu@468 11485 q
mathieu@468 11486 }
mathieu@468 11487 /^X\(\/\/\)[^/].*/{
mathieu@468 11488 s//\1/
mathieu@468 11489 q
mathieu@468 11490 }
mathieu@468 11491 /^X\(\/\/\)$/{
mathieu@468 11492 s//\1/
mathieu@468 11493 q
mathieu@468 11494 }
mathieu@468 11495 /^X\(\/\).*/{
mathieu@468 11496 s//\1/
mathieu@468 11497 q
mathieu@468 11498 }
mathieu@468 11499 s/.*/./; q'`
mathieu@468 11500 { as_dir="$ac_dir"
Chris@350 11501 case $as_dir in #(
Chris@350 11502 -*) as_dir=./$as_dir;;
Chris@350 11503 esac
mathieu@468 11504 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Chris@350 11505 as_dirs=
Chris@350 11506 while :; do
Chris@350 11507 case $as_dir in #(
mathieu@468 11508 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
Chris@350 11509 *) as_qdir=$as_dir;;
Chris@350 11510 esac
Chris@350 11511 as_dirs="'$as_qdir' $as_dirs"
Chris@350 11512 as_dir=`$as_dirname -- "$as_dir" ||
Chris@350 11513 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@350 11514 X"$as_dir" : 'X\(//\)[^/]' \| \
Chris@350 11515 X"$as_dir" : 'X\(//\)$' \| \
Chris@350 11516 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
mathieu@468 11517 echo X"$as_dir" |
Chris@350 11518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@350 11519 s//\1/
Chris@350 11520 q
Chris@350 11521 }
Chris@350 11522 /^X\(\/\/\)[^/].*/{
Chris@350 11523 s//\1/
Chris@350 11524 q
Chris@350 11525 }
Chris@350 11526 /^X\(\/\/\)$/{
Chris@350 11527 s//\1/
Chris@350 11528 q
Chris@350 11529 }
Chris@350 11530 /^X\(\/\).*/{
Chris@350 11531 s//\1/
Chris@350 11532 q
Chris@350 11533 }
Chris@350 11534 s/.*/./; q'`
Chris@350 11535 test -d "$as_dir" && break
Chris@350 11536 done
Chris@350 11537 test -z "$as_dirs" || eval "mkdir $as_dirs"
mathieu@468 11538 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
mathieu@468 11539 echo "$as_me: error: cannot create directory $as_dir" >&2;}
mathieu@468 11540 { (exit 1); exit 1; }; }; }
Chris@350 11541 ac_builddir=.
Chris@350 11542
Chris@350 11543 case "$ac_dir" in
Chris@350 11544 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@350 11545 *)
mathieu@468 11546 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Chris@350 11547 # A ".." for each directory in $ac_dir_suffix.
mathieu@468 11548 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Chris@350 11549 case $ac_top_builddir_sub in
Chris@350 11550 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@350 11551 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
Chris@350 11552 esac ;;
Chris@350 11553 esac
Chris@350 11554 ac_abs_top_builddir=$ac_pwd
Chris@350 11555 ac_abs_builddir=$ac_pwd$ac_dir_suffix
Chris@350 11556 # for backward compatibility:
Chris@350 11557 ac_top_builddir=$ac_top_build_prefix
Chris@350 11558
Chris@350 11559 case $srcdir in
Chris@350 11560 .) # We are building in place.
Chris@350 11561 ac_srcdir=.
Chris@350 11562 ac_top_srcdir=$ac_top_builddir_sub
Chris@350 11563 ac_abs_top_srcdir=$ac_pwd ;;
Chris@350 11564 [\\/]* | ?:[\\/]* ) # Absolute name.
Chris@350 11565 ac_srcdir=$srcdir$ac_dir_suffix;
Chris@350 11566 ac_top_srcdir=$srcdir
Chris@350 11567 ac_abs_top_srcdir=$srcdir ;;
Chris@350 11568 *) # Relative name.
Chris@350 11569 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
Chris@350 11570 ac_top_srcdir=$ac_top_build_prefix$srcdir
Chris@350 11571 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Chris@350 11572 esac
Chris@350 11573 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Chris@350 11574
Chris@350 11575
Chris@350 11576 case $ac_mode in
Chris@350 11577 :F)
Chris@350 11578 #
Chris@350 11579 # CONFIG_FILE
Chris@350 11580 #
Chris@350 11581
Chris@350 11582 case $INSTALL in
Chris@350 11583 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Chris@350 11584 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Chris@350 11585 esac
Chris@350 11586 ac_MKDIR_P=$MKDIR_P
Chris@350 11587 case $MKDIR_P in
Chris@350 11588 [\\/$]* | ?:[\\/]* ) ;;
Chris@350 11589 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
Chris@350 11590 esac
Chris@350 11591 _ACEOF
Chris@350 11592
mathieu@468 11593 cat >>$CONFIG_STATUS <<\_ACEOF
Chris@350 11594 # If the template does not know about datarootdir, expand it.
Chris@350 11595 # FIXME: This hack should be removed a few years after 2.60.
Chris@350 11596 ac_datarootdir_hack=; ac_datarootdir_seen=
mathieu@468 11597
mathieu@468 11598 case `sed -n '/datarootdir/ {
Chris@350 11599 p
Chris@350 11600 q
Chris@350 11601 }
Chris@350 11602 /@datadir@/p
Chris@350 11603 /@docdir@/p
Chris@350 11604 /@infodir@/p
Chris@350 11605 /@localedir@/p
mathieu@468 11606 /@mandir@/p
mathieu@468 11607 ' $ac_file_inputs` in
Chris@350 11608 *datarootdir*) ac_datarootdir_seen=yes;;
Chris@350 11609 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
mathieu@468 11610 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
mathieu@468 11611 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
mathieu@468 11612 _ACEOF
mathieu@468 11613 cat >>$CONFIG_STATUS <<_ACEOF
Chris@350 11614 ac_datarootdir_hack='
Chris@350 11615 s&@datadir@&$datadir&g
Chris@350 11616 s&@docdir@&$docdir&g
Chris@350 11617 s&@infodir@&$infodir&g
Chris@350 11618 s&@localedir@&$localedir&g
Chris@350 11619 s&@mandir@&$mandir&g
mathieu@468 11620 s&\\\${datarootdir}&$datarootdir&g' ;;
Chris@350 11621 esac
Chris@350 11622 _ACEOF
Chris@350 11623
Chris@350 11624 # Neutralize VPATH when `$srcdir' = `.'.
Chris@350 11625 # Shell code in configure.ac might set extrasub.
Chris@350 11626 # FIXME: do we really want to maintain this feature?
mathieu@468 11627 cat >>$CONFIG_STATUS <<_ACEOF
mathieu@468 11628 sed "$ac_vpsub
Chris@350 11629 $extrasub
Chris@350 11630 _ACEOF
mathieu@468 11631 cat >>$CONFIG_STATUS <<\_ACEOF
Chris@350 11632 :t
Chris@350 11633 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
mathieu@468 11634 s&@configure_input@&$configure_input&;t t
Chris@350 11635 s&@top_builddir@&$ac_top_builddir_sub&;t t
Chris@350 11636 s&@srcdir@&$ac_srcdir&;t t
Chris@350 11637 s&@abs_srcdir@&$ac_abs_srcdir&;t t
Chris@350 11638 s&@top_srcdir@&$ac_top_srcdir&;t t
Chris@350 11639 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
Chris@350 11640 s&@builddir@&$ac_builddir&;t t
Chris@350 11641 s&@abs_builddir@&$ac_abs_builddir&;t t
Chris@350 11642 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
Chris@350 11643 s&@INSTALL@&$ac_INSTALL&;t t
Chris@350 11644 s&@MKDIR_P@&$ac_MKDIR_P&;t t
Chris@350 11645 $ac_datarootdir_hack
mathieu@468 11646 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
Chris@350 11647
Chris@350 11648 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Chris@350 11649 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
Chris@350 11650 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
mathieu@468 11651 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
mathieu@468 11652 which seems to be undefined. Please make sure it is defined." >&5
mathieu@468 11653 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
mathieu@468 11654 which seems to be undefined. Please make sure it is defined." >&2;}
Chris@350 11655
Chris@350 11656 rm -f "$tmp/stdin"
Chris@350 11657 case $ac_file in
mathieu@468 11658 -) cat "$tmp/out"; rm -f "$tmp/out";;
mathieu@468 11659 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
mathieu@468 11660 esac
Chris@350 11661 ;;
Chris@350 11662
Chris@350 11663
Chris@350 11664
Chris@350 11665 esac
Chris@350 11666
Chris@350 11667 done # for ac_tag
Chris@350 11668
Chris@350 11669
mathieu@468 11670 { (exit 0); exit 0; }
mathieu@468 11671 _ACEOF
mathieu@468 11672 chmod +x $CONFIG_STATUS
Chris@350 11673 ac_clean_files=$ac_clean_files_save
Chris@350 11674
Chris@350 11675
Chris@350 11676 # configure is writing to config.log, and then calls config.status.
Chris@350 11677 # config.status does its own redirection, appending to config.log.
Chris@350 11678 # Unfortunately, on DOS this fails, as config.log is still kept open
Chris@350 11679 # by configure, so config.status won't be able to write to it; its
Chris@350 11680 # output is simply discarded. So we exec the FD to /dev/null,
Chris@350 11681 # effectively closing config.log, so it can be properly (re)opened and
Chris@350 11682 # appended to by config.status. When coming back to configure, we
Chris@350 11683 # need to make the FD available again.
Chris@350 11684 if test "$no_create" != yes; then
Chris@350 11685 ac_cs_success=:
Chris@350 11686 ac_config_status_args=
Chris@350 11687 test "$silent" = yes &&
Chris@350 11688 ac_config_status_args="$ac_config_status_args --quiet"
Chris@350 11689 exec 5>/dev/null
Chris@350 11690 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Chris@350 11691 exec 5>>config.log
Chris@350 11692 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
Chris@350 11693 # would make configure fail if this is the last instruction.
mathieu@468 11694 $ac_cs_success || { (exit 1); exit 1; }
Chris@350 11695 fi
Chris@350 11696
Chris@351 11697 ac_config_files="$ac_config_files version.h"
Chris@351 11698
Chris@351 11699 cat >confcache <<\_ACEOF
Chris@351 11700 # This file is a shell script that caches the results of configure
Chris@351 11701 # tests run on this system so they can be shared between configure
Chris@351 11702 # scripts and configure runs, see configure's option --config-cache.
Chris@351 11703 # It is not useful on other systems. If it contains results you don't
Chris@351 11704 # want to keep, you may remove or edit it.
Chris@351 11705 #
Chris@351 11706 # config.status only pays attention to the cache file if you give it
Chris@351 11707 # the --recheck option to rerun configure.
Chris@351 11708 #
Chris@351 11709 # `ac_cv_env_foo' variables (set or unset) will be overridden when
Chris@351 11710 # loading this file, other *unset* `ac_cv_foo' will be assigned the
Chris@351 11711 # following values.
Chris@351 11712
Chris@351 11713 _ACEOF
Chris@351 11714
Chris@351 11715 # The following way of writing the cache mishandles newlines in values,
Chris@351 11716 # but we know of no workaround that is simple, portable, and efficient.
Chris@351 11717 # So, we kill variables containing newlines.
Chris@351 11718 # Ultrix sh set writes to stderr and can't be redirected directly,
Chris@351 11719 # and sets the high bit in the cache file unless we assign to the vars.
Chris@351 11720 (
Chris@351 11721 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
Chris@351 11722 eval ac_val=\$$ac_var
Chris@351 11723 case $ac_val in #(
Chris@351 11724 *${as_nl}*)
Chris@351 11725 case $ac_var in #(
mathieu@468 11726 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
mathieu@468 11727 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Chris@351 11728 esac
Chris@351 11729 case $ac_var in #(
Chris@351 11730 _ | IFS | as_nl) ;; #(
mathieu@468 11731 *) $as_unset $ac_var ;;
Chris@351 11732 esac ;;
Chris@351 11733 esac
Chris@351 11734 done
Chris@351 11735
Chris@351 11736 (set) 2>&1 |
Chris@351 11737 case $as_nl`(ac_space=' '; set) 2>&1` in #(
Chris@351 11738 *${as_nl}ac_space=\ *)
mathieu@468 11739 # `set' does not quote correctly, so add quotes (double-quote
mathieu@468 11740 # substitution turns \\\\ into \\, and sed turns \\ into \).
Chris@351 11741 sed -n \
Chris@351 11742 "s/'/'\\\\''/g;
Chris@351 11743 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Chris@351 11744 ;; #(
Chris@351 11745 *)
Chris@351 11746 # `set' quotes correctly as required by POSIX, so do not add quotes.
Chris@351 11747 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Chris@351 11748 ;;
Chris@351 11749 esac |
Chris@351 11750 sort
Chris@351 11751 ) |
Chris@351 11752 sed '
Chris@351 11753 /^ac_cv_env_/b end
Chris@351 11754 t clear
Chris@351 11755 :clear
Chris@351 11756 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
Chris@351 11757 t end
Chris@351 11758 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
Chris@351 11759 :end' >>confcache
Chris@351 11760 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
Chris@351 11761 if test -w "$cache_file"; then
Chris@351 11762 test "x$cache_file" != "x/dev/null" &&
mathieu@468 11763 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
mathieu@468 11764 echo "$as_me: updating cache $cache_file" >&6;}
Chris@351 11765 cat confcache >$cache_file
Chris@351 11766 else
mathieu@468 11767 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
mathieu@468 11768 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Chris@351 11769 fi
Chris@351 11770 fi
Chris@351 11771 rm -f confcache
Chris@351 11772
Chris@351 11773 test "x$prefix" = xNONE && prefix=$ac_default_prefix
Chris@351 11774 # Let make expand exec_prefix.
Chris@351 11775 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
Chris@351 11776
Chris@351 11777 # Transform confdefs.h into DEFS.
Chris@351 11778 # Protect against shell expansion while executing Makefile rules.
Chris@351 11779 # Protect against Makefile macro expansion.
Chris@351 11780 #
Chris@351 11781 # If the first sed substitution is executed (which looks for macros that
Chris@351 11782 # take arguments), then branch to the quote section. Otherwise,
Chris@351 11783 # look for a macro that doesn't take arguments.
Chris@351 11784 ac_script='
Chris@351 11785 t clear
Chris@351 11786 :clear
Chris@351 11787 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Chris@351 11788 t quote
Chris@351 11789 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Chris@351 11790 t quote
Chris@351 11791 b any
Chris@351 11792 :quote
Chris@351 11793 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
Chris@351 11794 s/\[/\\&/g
Chris@351 11795 s/\]/\\&/g
Chris@351 11796 s/\$/$$/g
Chris@351 11797 H
Chris@351 11798 :any
Chris@351 11799 ${
Chris@351 11800 g
Chris@351 11801 s/^\n//
Chris@351 11802 s/\n/ /g
Chris@351 11803 p
Chris@351 11804 }
Chris@351 11805 '
Chris@351 11806 DEFS=`sed -n "$ac_script" confdefs.h`
Chris@351 11807
Chris@351 11808
Chris@351 11809 ac_libobjs=
Chris@351 11810 ac_ltlibobjs=
Chris@351 11811 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
Chris@351 11812 # 1. Remove the extension, and $U if already installed.
Chris@351 11813 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
mathieu@468 11814 ac_i=`echo "$ac_i" | sed "$ac_script"`
Chris@351 11815 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
Chris@351 11816 # will be set to the directory where LIBOBJS objects are built.
mathieu@468 11817 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
mathieu@468 11818 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Chris@351 11819 done
Chris@351 11820 LIBOBJS=$ac_libobjs
Chris@351 11821
Chris@351 11822 LTLIBOBJS=$ac_ltlibobjs
Chris@351 11823
Chris@351 11824
Chris@351 11825
Chris@351 11826 : ${CONFIG_STATUS=./config.status}
Chris@351 11827 ac_clean_files_save=$ac_clean_files
Chris@351 11828 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
mathieu@468 11829 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
mathieu@468 11830 echo "$as_me: creating $CONFIG_STATUS" >&6;}
mathieu@468 11831 cat >$CONFIG_STATUS <<_ACEOF
Chris@351 11832 #! $SHELL
Chris@351 11833 # Generated by $as_me.
Chris@351 11834 # Run this file to recreate the current configuration.
Chris@351 11835 # Compiler output produced by configure, useful for debugging
Chris@351 11836 # configure, is in config.log if it exists.
Chris@351 11837
Chris@351 11838 debug=false
Chris@351 11839 ac_cs_recheck=false
Chris@351 11840 ac_cs_silent=false
Chris@351 11841 SHELL=\${CONFIG_SHELL-$SHELL}
mathieu@468 11842 _ACEOF
mathieu@468 11843
mathieu@468 11844 cat >>$CONFIG_STATUS <<\_ACEOF
mathieu@468 11845 ## --------------------- ##
mathieu@468 11846 ## M4sh Initialization. ##
mathieu@468 11847 ## --------------------- ##
Chris@351 11848
Chris@351 11849 # Be more Bourne compatible
Chris@351 11850 DUALCASE=1; export DUALCASE # for MKS sh
mathieu@468 11851 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
Chris@351 11852 emulate sh
Chris@351 11853 NULLCMD=:
mathieu@468 11854 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
Chris@351 11855 # is contrary to our usage. Disable this feature.
Chris@351 11856 alias -g '${1+"$@"}'='"$@"'
Chris@351 11857 setopt NO_GLOB_SUBST
Chris@351 11858 else
mathieu@468 11859 case `(set -o) 2>/dev/null` in
mathieu@468 11860 *posix*) set -o posix ;;
mathieu@468 11861 esac
mathieu@468 11862
mathieu@468 11863 fi
mathieu@468 11864
mathieu@468 11865
mathieu@468 11866
mathieu@468 11867
mathieu@468 11868 # PATH needs CR
mathieu@468 11869 # Avoid depending upon Character Ranges.
mathieu@468 11870 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
mathieu@468 11871 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
mathieu@468 11872 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
mathieu@468 11873 as_cr_digits='0123456789'
mathieu@468 11874 as_cr_alnum=$as_cr_Letters$as_cr_digits
Chris@351 11875
Chris@351 11876 # The user is always right.
Chris@351 11877 if test "${PATH_SEPARATOR+set}" != set; then
mathieu@468 11878 echo "#! /bin/sh" >conf$$.sh
mathieu@468 11879 echo "exit 0" >>conf$$.sh
mathieu@468 11880 chmod +x conf$$.sh
mathieu@468 11881 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
mathieu@468 11882 PATH_SEPARATOR=';'
mathieu@468 11883 else
mathieu@468 11884 PATH_SEPARATOR=:
mathieu@468 11885 fi
mathieu@468 11886 rm -f conf$$.sh
mathieu@468 11887 fi
mathieu@468 11888
mathieu@468 11889 # Support unset when possible.
mathieu@468 11890 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
mathieu@468 11891 as_unset=unset
mathieu@468 11892 else
mathieu@468 11893 as_unset=false
Chris@351 11894 fi
Chris@351 11895
Chris@351 11896
Chris@351 11897 # IFS
Chris@351 11898 # We need space, tab and new line, in precisely that order. Quoting is
Chris@351 11899 # there to prevent editors from complaining about space-tab.
Chris@351 11900 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
Chris@351 11901 # splitting by setting IFS to empty value.)
mathieu@468 11902 as_nl='
mathieu@468 11903 '
Chris@351 11904 IFS=" "" $as_nl"
Chris@351 11905
Chris@351 11906 # Find who we are. Look in the path if we contain no directory separator.
mathieu@468 11907 case $0 in
Chris@351 11908 *[\\/]* ) as_myself=$0 ;;
Chris@351 11909 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@351 11910 for as_dir in $PATH
Chris@351 11911 do
Chris@351 11912 IFS=$as_save_IFS
Chris@351 11913 test -z "$as_dir" && as_dir=.
mathieu@468 11914 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
mathieu@468 11915 done
Chris@351 11916 IFS=$as_save_IFS
Chris@351 11917
Chris@351 11918 ;;
Chris@351 11919 esac
Chris@351 11920 # We did not find ourselves, most probably we were run as `sh COMMAND'
Chris@351 11921 # in which case we are not to be found in the path.
Chris@351 11922 if test "x$as_myself" = x; then
Chris@351 11923 as_myself=$0
Chris@351 11924 fi
Chris@351 11925 if test ! -f "$as_myself"; then
mathieu@468 11926 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
mathieu@468 11927 { (exit 1); exit 1; }
mathieu@468 11928 fi
mathieu@468 11929
mathieu@468 11930 # Work around bugs in pre-3.0 UWIN ksh.
mathieu@468 11931 for as_var in ENV MAIL MAILPATH
mathieu@468 11932 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Chris@351 11933 done
Chris@351 11934 PS1='$ '
Chris@351 11935 PS2='> '
Chris@351 11936 PS4='+ '
Chris@351 11937
Chris@351 11938 # NLS nuisances.
mathieu@468 11939 for as_var in \
mathieu@468 11940 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
mathieu@468 11941 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
mathieu@468 11942 LC_TELEPHONE LC_TIME
mathieu@468 11943 do
mathieu@468 11944 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
mathieu@468 11945 eval $as_var=C; export $as_var
mathieu@468 11946 else
mathieu@468 11947 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Chris@351 11948 fi
mathieu@468 11949 done
mathieu@468 11950
mathieu@468 11951 # Required to use basename.
Chris@351 11952 if expr a : '\(a\)' >/dev/null 2>&1 &&
Chris@351 11953 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Chris@351 11954 as_expr=expr
Chris@351 11955 else
Chris@351 11956 as_expr=false
Chris@351 11957 fi
Chris@351 11958
Chris@351 11959 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Chris@351 11960 as_basename=basename
Chris@351 11961 else
Chris@351 11962 as_basename=false
Chris@351 11963 fi
Chris@351 11964
mathieu@468 11965
mathieu@468 11966 # Name of the executable.
Chris@351 11967 as_me=`$as_basename -- "$0" ||
Chris@351 11968 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
Chris@351 11969 X"$0" : 'X\(//\)$' \| \
Chris@351 11970 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
mathieu@468 11971 echo X/"$0" |
Chris@351 11972 sed '/^.*\/\([^/][^/]*\)\/*$/{
Chris@351 11973 s//\1/
Chris@351 11974 q
Chris@351 11975 }
Chris@351 11976 /^X\/\(\/\/\)$/{
Chris@351 11977 s//\1/
Chris@351 11978 q
Chris@351 11979 }
Chris@351 11980 /^X\/\(\/\).*/{
Chris@351 11981 s//\1/
Chris@351 11982 q
Chris@351 11983 }
Chris@351 11984 s/.*/./; q'`
Chris@351 11985
mathieu@468 11986 # CDPATH.
mathieu@468 11987 $as_unset CDPATH
mathieu@468 11988
mathieu@468 11989
mathieu@468 11990
mathieu@468 11991 as_lineno_1=$LINENO
mathieu@468 11992 as_lineno_2=$LINENO
mathieu@468 11993 test "x$as_lineno_1" != "x$as_lineno_2" &&
mathieu@468 11994 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
mathieu@468 11995
mathieu@468 11996 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
mathieu@468 11997 # uniformly replaced by the line number. The first 'sed' inserts a
mathieu@468 11998 # line-number line after each line using $LINENO; the second 'sed'
mathieu@468 11999 # does the real work. The second script uses 'N' to pair each
mathieu@468 12000 # line-number line with the line containing $LINENO, and appends
mathieu@468 12001 # trailing '-' during substitution so that $LINENO is not a special
mathieu@468 12002 # case at line end.
mathieu@468 12003 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
mathieu@468 12004 # scripts with optimization help from Paolo Bonzini. Blame Lee
mathieu@468 12005 # E. McMahon (1931-1989) for sed's syntax. :-)
mathieu@468 12006 sed -n '
mathieu@468 12007 p
mathieu@468 12008 /[$]LINENO/=
mathieu@468 12009 ' <$as_myself |
mathieu@468 12010 sed '
mathieu@468 12011 s/[$]LINENO.*/&-/
mathieu@468 12012 t lineno
mathieu@468 12013 b
mathieu@468 12014 :lineno
mathieu@468 12015 N
mathieu@468 12016 :loop
mathieu@468 12017 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
mathieu@468 12018 t loop
mathieu@468 12019 s/-\n.*//
mathieu@468 12020 ' >$as_me.lineno &&
mathieu@468 12021 chmod +x "$as_me.lineno" ||
mathieu@468 12022 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
mathieu@468 12023 { (exit 1); exit 1; }; }
mathieu@468 12024
mathieu@468 12025 # Don't try to exec as it changes $[0], causing all sort of problems
mathieu@468 12026 # (the dirname of $[0] is not the place where we might find the
mathieu@468 12027 # original and so on. Autoconf is especially sensitive to this).
mathieu@468 12028 . "./$as_me.lineno"
mathieu@468 12029 # Exit status is that of the last command.
mathieu@468 12030 exit
mathieu@468 12031 }
mathieu@468 12032
mathieu@468 12033
mathieu@468 12034 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
mathieu@468 12035 as_dirname=dirname
mathieu@468 12036 else
mathieu@468 12037 as_dirname=false
mathieu@468 12038 fi
Chris@351 12039
Chris@351 12040 ECHO_C= ECHO_N= ECHO_T=
mathieu@468 12041 case `echo -n x` in
Chris@351 12042 -n*)
mathieu@468 12043 case `echo 'x\c'` in
Chris@351 12044 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
mathieu@468 12045 *) ECHO_C='\c';;
Chris@351 12046 esac;;
Chris@351 12047 *)
Chris@351 12048 ECHO_N='-n';;
Chris@351 12049 esac
Chris@351 12050
mathieu@468 12051 if expr a : '\(a\)' >/dev/null 2>&1 &&
mathieu@468 12052 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mathieu@468 12053 as_expr=expr
mathieu@468 12054 else
mathieu@468 12055 as_expr=false
mathieu@468 12056 fi
mathieu@468 12057
Chris@351 12058 rm -f conf$$ conf$$.exe conf$$.file
Chris@351 12059 if test -d conf$$.dir; then
Chris@351 12060 rm -f conf$$.dir/conf$$.file
Chris@351 12061 else
Chris@351 12062 rm -f conf$$.dir
mathieu@468 12063 mkdir conf$$.dir
mathieu@468 12064 fi
mathieu@468 12065 echo >conf$$.file
mathieu@468 12066 if ln -s conf$$.file conf$$ 2>/dev/null; then
mathieu@468 12067 as_ln_s='ln -s'
mathieu@468 12068 # ... but there are two gotchas:
mathieu@468 12069 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
mathieu@468 12070 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
mathieu@468 12071 # In both cases, we have to default to `cp -p'.
mathieu@468 12072 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Chris@351 12073 as_ln_s='cp -p'
mathieu@468 12074 elif ln conf$$.file conf$$ 2>/dev/null; then
mathieu@468 12075 as_ln_s=ln
Chris@351 12076 else
Chris@351 12077 as_ln_s='cp -p'
Chris@351 12078 fi
Chris@351 12079 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
Chris@351 12080 rmdir conf$$.dir 2>/dev/null
Chris@351 12081
mathieu@468 12082 if mkdir -p . 2>/dev/null; then
mathieu@468 12083 as_mkdir_p=:
mathieu@468 12084 else
mathieu@468 12085 test -d ./-p && rmdir ./-p
mathieu@468 12086 as_mkdir_p=false
mathieu@468 12087 fi
mathieu@468 12088
mathieu@468 12089 if test -x / >/dev/null 2>&1; then
mathieu@468 12090 as_test_x='test -x'
mathieu@468 12091 else
mathieu@468 12092 if ls -dL / >/dev/null 2>&1; then
mathieu@468 12093 as_ls_L_option=L
mathieu@468 12094 else
mathieu@468 12095 as_ls_L_option=
mathieu@468 12096 fi
mathieu@468 12097 as_test_x='
mathieu@468 12098 eval sh -c '\''
mathieu@468 12099 if test -d "$1"; then
mathieu@468 12100 test -d "$1/.";
mathieu@468 12101 else
mathieu@468 12102 case $1 in
mathieu@468 12103 -*)set "./$1";;
mathieu@468 12104 esac;
mathieu@468 12105 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
mathieu@468 12106 ???[sx]*):;;*)false;;esac;fi
mathieu@468 12107 '\'' sh
mathieu@468 12108 '
mathieu@468 12109 fi
mathieu@468 12110 as_executable_p=$as_test_x
mathieu@468 12111
mathieu@468 12112 # Sed expression to map a string onto a valid CPP name.
mathieu@468 12113 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
mathieu@468 12114
mathieu@468 12115 # Sed expression to map a string onto a valid variable name.
mathieu@468 12116 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
mathieu@468 12117
mathieu@468 12118
mathieu@468 12119 exec 6>&1
mathieu@468 12120
mathieu@468 12121 # Save the log message, to keep $[0] and so on meaningful, and to
mathieu@468 12122 # report actual input values of CONFIG_FILES etc. instead of their
mathieu@468 12123 # values after options handling.
mathieu@468 12124 ac_log="
mathieu@468 12125 This file was extended by Sonic Visualiser $as_me 1.9-kiosk-hg, which was
mathieu@468 12126 generated by GNU Autoconf 2.61. Invocation command line was
mathieu@468 12127
mathieu@468 12128 CONFIG_FILES = $CONFIG_FILES
mathieu@468 12129 CONFIG_HEADERS = $CONFIG_HEADERS
mathieu@468 12130 CONFIG_LINKS = $CONFIG_LINKS
mathieu@468 12131 CONFIG_COMMANDS = $CONFIG_COMMANDS
mathieu@468 12132 $ $0 $@
mathieu@468 12133
mathieu@468 12134 on `(hostname || uname -n) 2>/dev/null | sed 1q`
mathieu@468 12135 "
mathieu@468 12136
mathieu@468 12137 _ACEOF
mathieu@468 12138
mathieu@468 12139 cat >>$CONFIG_STATUS <<_ACEOF
mathieu@468 12140 # Files that config.status was made for.
mathieu@468 12141 config_files="$ac_config_files"
mathieu@468 12142
mathieu@468 12143 _ACEOF
mathieu@468 12144
mathieu@468 12145 cat >>$CONFIG_STATUS <<\_ACEOF
mathieu@468 12146 ac_cs_usage="\
mathieu@468 12147 \`$as_me' instantiates files from templates according to the
mathieu@468 12148 current configuration.
mathieu@468 12149
mathieu@468 12150 Usage: $0 [OPTIONS] [FILE]...
mathieu@468 12151
mathieu@468 12152 -h, --help print this help, then exit
mathieu@468 12153 -V, --version print version number and configuration settings, then exit
mathieu@468 12154 -q, --quiet do not print progress messages
mathieu@468 12155 -d, --debug don't remove temporary files
mathieu@468 12156 --recheck update $as_me by reconfiguring in the same conditions
mathieu@468 12157 --file=FILE[:TEMPLATE]
mathieu@468 12158 instantiate the configuration file FILE
mathieu@468 12159
mathieu@468 12160 Configuration files:
mathieu@468 12161 $config_files
mathieu@468 12162
mathieu@468 12163 Report bugs to <bug-autoconf@gnu.org>."
mathieu@468 12164
mathieu@468 12165 _ACEOF
mathieu@468 12166 cat >>$CONFIG_STATUS <<_ACEOF
mathieu@468 12167 ac_cs_version="\\
mathieu@468 12168 Sonic Visualiser config.status 1.9-kiosk-hg
mathieu@468 12169 configured by $0, generated by GNU Autoconf 2.61,
mathieu@468 12170 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
mathieu@468 12171
mathieu@468 12172 Copyright (C) 2006 Free Software Foundation, Inc.
mathieu@468 12173 This config.status script is free software; the Free Software Foundation
mathieu@468 12174 gives unlimited permission to copy, distribute and modify it."
mathieu@468 12175
mathieu@468 12176 ac_pwd='$ac_pwd'
mathieu@468 12177 srcdir='$srcdir'
mathieu@468 12178 INSTALL='$INSTALL'
mathieu@468 12179 MKDIR_P='$MKDIR_P'
mathieu@468 12180 _ACEOF
mathieu@468 12181
mathieu@468 12182 cat >>$CONFIG_STATUS <<\_ACEOF
mathieu@468 12183 # If no file are specified by the user, then we need to provide default
mathieu@468 12184 # value. By we need to know if files were specified by the user.
mathieu@468 12185 ac_need_defaults=:
mathieu@468 12186 while test $# != 0
mathieu@468 12187 do
mathieu@468 12188 case $1 in
mathieu@468 12189 --*=*)
mathieu@468 12190 ac_option=`expr "X$1" : 'X\([^=]*\)='`
mathieu@468 12191 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
mathieu@468 12192 ac_shift=:
mathieu@468 12193 ;;
mathieu@468 12194 *)
mathieu@468 12195 ac_option=$1
mathieu@468 12196 ac_optarg=$2
mathieu@468 12197 ac_shift=shift
mathieu@468 12198 ;;
mathieu@468 12199 esac
mathieu@468 12200
mathieu@468 12201 case $ac_option in
mathieu@468 12202 # Handling of the options.
mathieu@468 12203 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
mathieu@468 12204 ac_cs_recheck=: ;;
mathieu@468 12205 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
mathieu@468 12206 echo "$ac_cs_version"; exit ;;
mathieu@468 12207 --debug | --debu | --deb | --de | --d | -d )
mathieu@468 12208 debug=: ;;
mathieu@468 12209 --file | --fil | --fi | --f )
mathieu@468 12210 $ac_shift
mathieu@468 12211 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
mathieu@468 12212 ac_need_defaults=false;;
mathieu@468 12213 --he | --h | --help | --hel | -h )
mathieu@468 12214 echo "$ac_cs_usage"; exit ;;
mathieu@468 12215 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
mathieu@468 12216 | -silent | --silent | --silen | --sile | --sil | --si | --s)
mathieu@468 12217 ac_cs_silent=: ;;
mathieu@468 12218
mathieu@468 12219 # This is an error.
mathieu@468 12220 -*) { echo "$as_me: error: unrecognized option: $1
mathieu@468 12221 Try \`$0 --help' for more information." >&2
mathieu@468 12222 { (exit 1); exit 1; }; } ;;
mathieu@468 12223
mathieu@468 12224 *) ac_config_targets="$ac_config_targets $1"
mathieu@468 12225 ac_need_defaults=false ;;
mathieu@468 12226
mathieu@468 12227 esac
mathieu@468 12228 shift
mathieu@468 12229 done
mathieu@468 12230
mathieu@468 12231 ac_configure_extra_args=
mathieu@468 12232
mathieu@468 12233 if $ac_cs_silent; then
mathieu@468 12234 exec 6>/dev/null
mathieu@468 12235 ac_configure_extra_args="$ac_configure_extra_args --silent"
mathieu@468 12236 fi
mathieu@468 12237
mathieu@468 12238 _ACEOF
mathieu@468 12239 cat >>$CONFIG_STATUS <<_ACEOF
mathieu@468 12240 if \$ac_cs_recheck; then
mathieu@468 12241 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
mathieu@468 12242 CONFIG_SHELL=$SHELL
mathieu@468 12243 export CONFIG_SHELL
mathieu@468 12244 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
mathieu@468 12245 fi
mathieu@468 12246
mathieu@468 12247 _ACEOF
mathieu@468 12248 cat >>$CONFIG_STATUS <<\_ACEOF
mathieu@468 12249 exec 5>>config.log
Chris@351 12250 {
mathieu@468 12251 echo
mathieu@468 12252 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
mathieu@468 12253 ## Running $as_me. ##
mathieu@468 12254 _ASBOX
mathieu@468 12255 echo "$ac_log"
mathieu@468 12256 } >&5
mathieu@468 12257
mathieu@468 12258 _ACEOF
mathieu@468 12259 cat >>$CONFIG_STATUS <<_ACEOF
mathieu@468 12260 _ACEOF
mathieu@468 12261
mathieu@468 12262 cat >>$CONFIG_STATUS <<\_ACEOF
mathieu@468 12263
mathieu@468 12264 # Handling of arguments.
mathieu@468 12265 for ac_config_target in $ac_config_targets
mathieu@468 12266 do
mathieu@468 12267 case $ac_config_target in
mathieu@468 12268 "config.pri") CONFIG_FILES="$CONFIG_FILES config.pri" ;;
mathieu@468 12269 "version.h") CONFIG_FILES="$CONFIG_FILES version.h" ;;
mathieu@468 12270
mathieu@468 12271 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
mathieu@468 12272 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
mathieu@468 12273 { (exit 1); exit 1; }; };;
mathieu@468 12274 esac
mathieu@468 12275 done
mathieu@468 12276
mathieu@468 12277
mathieu@468 12278 # If the user did not use the arguments to specify the items to instantiate,
mathieu@468 12279 # then the envvar interface is used. Set only those that are not.
mathieu@468 12280 # We use the long form for the default assignment because of an extremely
mathieu@468 12281 # bizarre bug on SunOS 4.1.3.
mathieu@468 12282 if $ac_need_defaults; then
mathieu@468 12283 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mathieu@468 12284 fi
mathieu@468 12285
mathieu@468 12286 # Have a temporary directory for convenience. Make it in the build tree
mathieu@468 12287 # simply because there is no reason against having it here, and in addition,
mathieu@468 12288 # creating and moving files from /tmp can sometimes cause problems.
mathieu@468 12289 # Hook for its removal unless debugging.
mathieu@468 12290 # Note that there is a small window in which the directory will not be cleaned:
mathieu@468 12291 # after its creation but before its name has been assigned to `$tmp'.
mathieu@468 12292 $debug ||
mathieu@468 12293 {
mathieu@468 12294 tmp=
mathieu@468 12295 trap 'exit_status=$?
mathieu@468 12296 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
mathieu@468 12297 ' 0
mathieu@468 12298 trap '{ (exit 1); exit 1; }' 1 2 13 15
mathieu@468 12299 }
mathieu@468 12300 # Create a (secure) tmp directory for tmp files.
mathieu@468 12301
mathieu@468 12302 {
mathieu@468 12303 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
mathieu@468 12304 test -n "$tmp" && test -d "$tmp"
mathieu@468 12305 } ||
mathieu@468 12306 {
mathieu@468 12307 tmp=./conf$$-$RANDOM
mathieu@468 12308 (umask 077 && mkdir "$tmp")
mathieu@468 12309 } ||
mathieu@468 12310 {
mathieu@468 12311 echo "$me: cannot create a temporary directory in ." >&2
mathieu@468 12312 { (exit 1); exit 1; }
mathieu@468 12313 }
mathieu@468 12314
mathieu@468 12315 #
mathieu@468 12316 # Set up the sed scripts for CONFIG_FILES section.
mathieu@468 12317 #
mathieu@468 12318
mathieu@468 12319 # No need to generate the scripts if there are no CONFIG_FILES.
mathieu@468 12320 # This happens for instance when ./config.status config.h
mathieu@468 12321 if test -n "$CONFIG_FILES"; then
mathieu@468 12322
mathieu@468 12323 _ACEOF
mathieu@468 12324
mathieu@468 12325
mathieu@468 12326
mathieu@468 12327 ac_delim='%!_!# '
mathieu@468 12328 for ac_last_try in false false false false false :; do
mathieu@468 12329 cat >conf$$subs.sed <<_ACEOF
mathieu@468 12330 SHELL!$SHELL$ac_delim
mathieu@468 12331 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
mathieu@468 12332 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
mathieu@468 12333 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
mathieu@468 12334 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
mathieu@468 12335 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
mathieu@468 12336 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
mathieu@468 12337 exec_prefix!$exec_prefix$ac_delim
mathieu@468 12338 prefix!$prefix$ac_delim
mathieu@468 12339 program_transform_name!$program_transform_name$ac_delim
mathieu@468 12340 bindir!$bindir$ac_delim
mathieu@468 12341 sbindir!$sbindir$ac_delim
mathieu@468 12342 libexecdir!$libexecdir$ac_delim
mathieu@468 12343 datarootdir!$datarootdir$ac_delim
mathieu@468 12344 datadir!$datadir$ac_delim
mathieu@468 12345 sysconfdir!$sysconfdir$ac_delim
mathieu@468 12346 sharedstatedir!$sharedstatedir$ac_delim
mathieu@468 12347 localstatedir!$localstatedir$ac_delim
mathieu@468 12348 includedir!$includedir$ac_delim
mathieu@468 12349 oldincludedir!$oldincludedir$ac_delim
mathieu@468 12350 docdir!$docdir$ac_delim
mathieu@468 12351 infodir!$infodir$ac_delim
mathieu@468 12352 htmldir!$htmldir$ac_delim
mathieu@468 12353 dvidir!$dvidir$ac_delim
mathieu@468 12354 pdfdir!$pdfdir$ac_delim
mathieu@468 12355 psdir!$psdir$ac_delim
mathieu@468 12356 libdir!$libdir$ac_delim
mathieu@468 12357 localedir!$localedir$ac_delim
mathieu@468 12358 mandir!$mandir$ac_delim
mathieu@468 12359 DEFS!$DEFS$ac_delim
mathieu@468 12360 ECHO_C!$ECHO_C$ac_delim
mathieu@468 12361 ECHO_N!$ECHO_N$ac_delim
mathieu@468 12362 ECHO_T!$ECHO_T$ac_delim
mathieu@468 12363 LIBS!$LIBS$ac_delim
mathieu@468 12364 build_alias!$build_alias$ac_delim
mathieu@468 12365 host_alias!$host_alias$ac_delim
mathieu@468 12366 target_alias!$target_alias$ac_delim
mathieu@468 12367 CC!$CC$ac_delim
mathieu@468 12368 CFLAGS!$CFLAGS$ac_delim
mathieu@468 12369 LDFLAGS!$LDFLAGS$ac_delim
mathieu@468 12370 CPPFLAGS!$CPPFLAGS$ac_delim
mathieu@468 12371 ac_ct_CC!$ac_ct_CC$ac_delim
mathieu@468 12372 EXEEXT!$EXEEXT$ac_delim
mathieu@468 12373 OBJEXT!$OBJEXT$ac_delim
mathieu@468 12374 CXX!$CXX$ac_delim
mathieu@468 12375 CXXFLAGS!$CXXFLAGS$ac_delim
mathieu@468 12376 ac_ct_CXX!$ac_ct_CXX$ac_delim
mathieu@468 12377 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
mathieu@468 12378 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
mathieu@468 12379 INSTALL_DATA!$INSTALL_DATA$ac_delim
mathieu@468 12380 CXXCPP!$CXXCPP$ac_delim
mathieu@468 12381 GREP!$GREP$ac_delim
mathieu@468 12382 EGREP!$EGREP$ac_delim
mathieu@468 12383 PKG_CONFIG!$PKG_CONFIG$ac_delim
mathieu@468 12384 PKG_CONFIG_PATH!$PKG_CONFIG_PATH$ac_delim
mathieu@468 12385 PKG_CONFIG_LIBDIR!$PKG_CONFIG_LIBDIR$ac_delim
mathieu@468 12386 QMAKE!$QMAKE$ac_delim
mathieu@468 12387 bz2_CFLAGS!$bz2_CFLAGS$ac_delim
mathieu@468 12388 bz2_LIBS!$bz2_LIBS$ac_delim
mathieu@468 12389 fftw3_CFLAGS!$fftw3_CFLAGS$ac_delim
mathieu@468 12390 fftw3_LIBS!$fftw3_LIBS$ac_delim
mathieu@468 12391 fftw3f_CFLAGS!$fftw3f_CFLAGS$ac_delim
mathieu@468 12392 fftw3f_LIBS!$fftw3f_LIBS$ac_delim
mathieu@468 12393 sndfile_CFLAGS!$sndfile_CFLAGS$ac_delim
mathieu@468 12394 sndfile_LIBS!$sndfile_LIBS$ac_delim
mathieu@468 12395 samplerate_CFLAGS!$samplerate_CFLAGS$ac_delim
mathieu@468 12396 samplerate_LIBS!$samplerate_LIBS$ac_delim
mathieu@468 12397 vamp_CFLAGS!$vamp_CFLAGS$ac_delim
mathieu@468 12398 vamp_LIBS!$vamp_LIBS$ac_delim
mathieu@468 12399 vamphostsdk_CFLAGS!$vamphostsdk_CFLAGS$ac_delim
mathieu@468 12400 vamphostsdk_LIBS!$vamphostsdk_LIBS$ac_delim
mathieu@468 12401 rubberband_CFLAGS!$rubberband_CFLAGS$ac_delim
mathieu@468 12402 rubberband_LIBS!$rubberband_LIBS$ac_delim
mathieu@468 12403 raptor_CFLAGS!$raptor_CFLAGS$ac_delim
mathieu@468 12404 raptor_LIBS!$raptor_LIBS$ac_delim
mathieu@468 12405 rasqal_CFLAGS!$rasqal_CFLAGS$ac_delim
mathieu@468 12406 rasqal_LIBS!$rasqal_LIBS$ac_delim
mathieu@468 12407 redland_CFLAGS!$redland_CFLAGS$ac_delim
mathieu@468 12408 redland_LIBS!$redland_LIBS$ac_delim
mathieu@468 12409 liblo_CFLAGS!$liblo_CFLAGS$ac_delim
mathieu@468 12410 liblo_LIBS!$liblo_LIBS$ac_delim
mathieu@468 12411 portaudio_2_0_CFLAGS!$portaudio_2_0_CFLAGS$ac_delim
mathieu@468 12412 portaudio_2_0_LIBS!$portaudio_2_0_LIBS$ac_delim
mathieu@468 12413 JACK_CFLAGS!$JACK_CFLAGS$ac_delim
mathieu@468 12414 JACK_LIBS!$JACK_LIBS$ac_delim
mathieu@468 12415 libpulse_CFLAGS!$libpulse_CFLAGS$ac_delim
mathieu@468 12416 libpulse_LIBS!$libpulse_LIBS$ac_delim
mathieu@468 12417 lrdf_CFLAGS!$lrdf_CFLAGS$ac_delim
mathieu@468 12418 lrdf_LIBS!$lrdf_LIBS$ac_delim
mathieu@468 12419 oggz_CFLAGS!$oggz_CFLAGS$ac_delim
mathieu@468 12420 oggz_LIBS!$oggz_LIBS$ac_delim
mathieu@468 12421 fishsound_CFLAGS!$fishsound_CFLAGS$ac_delim
mathieu@468 12422 fishsound_LIBS!$fishsound_LIBS$ac_delim
mathieu@468 12423 mad_CFLAGS!$mad_CFLAGS$ac_delim
mathieu@468 12424 mad_LIBS!$mad_LIBS$ac_delim
mathieu@468 12425 id3tag_CFLAGS!$id3tag_CFLAGS$ac_delim
mathieu@468 12426 id3tag_LIBS!$id3tag_LIBS$ac_delim
mathieu@468 12427 _ACEOF
mathieu@468 12428
mathieu@468 12429 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
mathieu@468 12430 break
mathieu@468 12431 elif $ac_last_try; then
mathieu@468 12432 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
mathieu@468 12433 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
mathieu@468 12434 { (exit 1); exit 1; }; }
mathieu@468 12435 else
mathieu@468 12436 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
mathieu@468 12437 fi
mathieu@468 12438 done
mathieu@468 12439
mathieu@468 12440 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
mathieu@468 12441 if test -n "$ac_eof"; then
mathieu@468 12442 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
mathieu@468 12443 ac_eof=`expr $ac_eof + 1`
mathieu@468 12444 fi
mathieu@468 12445
mathieu@468 12446 cat >>$CONFIG_STATUS <<_ACEOF
mathieu@468 12447 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
mathieu@468 12448 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
mathieu@468 12449 _ACEOF
mathieu@468 12450 sed '
mathieu@468 12451 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
mathieu@468 12452 s/^/s,@/; s/!/@,|#_!!_#|/
mathieu@468 12453 :n
mathieu@468 12454 t n
mathieu@468 12455 s/'"$ac_delim"'$/,g/; t
mathieu@468 12456 s/$/\\/; p
mathieu@468 12457 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
mathieu@468 12458 ' >>$CONFIG_STATUS <conf$$subs.sed
mathieu@468 12459 rm -f conf$$subs.sed
mathieu@468 12460 cat >>$CONFIG_STATUS <<_ACEOF
mathieu@468 12461 CEOF$ac_eof
mathieu@468 12462 _ACEOF
mathieu@468 12463
mathieu@468 12464
mathieu@468 12465 ac_delim='%!_!# '
mathieu@468 12466 for ac_last_try in false false false false false :; do
mathieu@468 12467 cat >conf$$subs.sed <<_ACEOF
mathieu@468 12468 PERL!$PERL$ac_delim
mathieu@468 12469 XARGS!$XARGS$ac_delim
mathieu@468 12470 MAKEDEPEND!$MAKEDEPEND$ac_delim
mathieu@468 12471 SHA1SUM!$SHA1SUM$ac_delim
mathieu@468 12472 CUT!$CUT$ac_delim
mathieu@468 12473 CXXFLAGS_MINIMAL!$CXXFLAGS_MINIMAL$ac_delim
mathieu@468 12474 HAVES!$HAVES$ac_delim
mathieu@468 12475 QMAKE_CONFIG!$QMAKE_CONFIG$ac_delim
mathieu@468 12476 CODENAME!$CODENAME$ac_delim
mathieu@468 12477 LIBOBJS!$LIBOBJS$ac_delim
mathieu@468 12478 LTLIBOBJS!$LTLIBOBJS$ac_delim
mathieu@468 12479 _ACEOF
mathieu@468 12480
mathieu@468 12481 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
mathieu@468 12482 break
mathieu@468 12483 elif $ac_last_try; then
mathieu@468 12484 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
mathieu@468 12485 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
mathieu@468 12486 { (exit 1); exit 1; }; }
mathieu@468 12487 else
mathieu@468 12488 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
mathieu@468 12489 fi
mathieu@468 12490 done
mathieu@468 12491
mathieu@468 12492 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
mathieu@468 12493 if test -n "$ac_eof"; then
mathieu@468 12494 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
mathieu@468 12495 ac_eof=`expr $ac_eof + 1`
mathieu@468 12496 fi
mathieu@468 12497
mathieu@468 12498 cat >>$CONFIG_STATUS <<_ACEOF
mathieu@468 12499 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
mathieu@468 12500 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
mathieu@468 12501 _ACEOF
mathieu@468 12502 sed '
mathieu@468 12503 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
mathieu@468 12504 s/^/s,@/; s/!/@,|#_!!_#|/
mathieu@468 12505 :n
mathieu@468 12506 t n
mathieu@468 12507 s/'"$ac_delim"'$/,g/; t
mathieu@468 12508 s/$/\\/; p
mathieu@468 12509 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
mathieu@468 12510 ' >>$CONFIG_STATUS <conf$$subs.sed
mathieu@468 12511 rm -f conf$$subs.sed
mathieu@468 12512 cat >>$CONFIG_STATUS <<_ACEOF
mathieu@468 12513 :end
mathieu@468 12514 s/|#_!!_#|//g
mathieu@468 12515 CEOF$ac_eof
mathieu@468 12516 _ACEOF
mathieu@468 12517
mathieu@468 12518
mathieu@468 12519 # VPATH may cause trouble with some makes, so we remove $(srcdir),
mathieu@468 12520 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
mathieu@468 12521 # trailing colons and then remove the whole line if VPATH becomes empty
mathieu@468 12522 # (actually we leave an empty line to preserve line numbers).
mathieu@468 12523 if test "x$srcdir" = x.; then
mathieu@468 12524 ac_vpsub='/^[ ]*VPATH[ ]*=/{
mathieu@468 12525 s/:*\$(srcdir):*/:/
mathieu@468 12526 s/:*\${srcdir}:*/:/
mathieu@468 12527 s/:*@srcdir@:*/:/
mathieu@468 12528 s/^\([^=]*=[ ]*\):*/\1/
mathieu@468 12529 s/:*$//
mathieu@468 12530 s/^[^=]*=[ ]*$//
mathieu@468 12531 }'
mathieu@468 12532 fi
mathieu@468 12533
mathieu@468 12534 cat >>$CONFIG_STATUS <<\_ACEOF
mathieu@468 12535 fi # test -n "$CONFIG_FILES"
mathieu@468 12536
mathieu@468 12537
mathieu@468 12538 for ac_tag in :F $CONFIG_FILES
mathieu@468 12539 do
mathieu@468 12540 case $ac_tag in
mathieu@468 12541 :[FHLC]) ac_mode=$ac_tag; continue;;
mathieu@468 12542 esac
mathieu@468 12543 case $ac_mode$ac_tag in
mathieu@468 12544 :[FHL]*:*);;
mathieu@468 12545 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
mathieu@468 12546 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
mathieu@468 12547 { (exit 1); exit 1; }; };;
mathieu@468 12548 :[FH]-) ac_tag=-:-;;
mathieu@468 12549 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
mathieu@468 12550 esac
mathieu@468 12551 ac_save_IFS=$IFS
mathieu@468 12552 IFS=:
mathieu@468 12553 set x $ac_tag
mathieu@468 12554 IFS=$ac_save_IFS
mathieu@468 12555 shift
mathieu@468 12556 ac_file=$1
mathieu@468 12557 shift
mathieu@468 12558
mathieu@468 12559 case $ac_mode in
mathieu@468 12560 :L) ac_source=$1;;
mathieu@468 12561 :[FH])
mathieu@468 12562 ac_file_inputs=
mathieu@468 12563 for ac_f
mathieu@468 12564 do
mathieu@468 12565 case $ac_f in
mathieu@468 12566 -) ac_f="$tmp/stdin";;
mathieu@468 12567 *) # Look for the file first in the build tree, then in the source tree
mathieu@468 12568 # (if the path is not absolute). The absolute path cannot be DOS-style,
mathieu@468 12569 # because $ac_f cannot contain `:'.
mathieu@468 12570 test -f "$ac_f" ||
mathieu@468 12571 case $ac_f in
mathieu@468 12572 [\\/$]*) false;;
mathieu@468 12573 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
mathieu@468 12574 esac ||
mathieu@468 12575 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
mathieu@468 12576 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
mathieu@468 12577 { (exit 1); exit 1; }; };;
mathieu@468 12578 esac
mathieu@468 12579 ac_file_inputs="$ac_file_inputs $ac_f"
mathieu@468 12580 done
mathieu@468 12581
mathieu@468 12582 # Let's still pretend it is `configure' which instantiates (i.e., don't
mathieu@468 12583 # use $as_me), people would be surprised to read:
mathieu@468 12584 # /* config.h. Generated by config.status. */
mathieu@468 12585 configure_input="Generated from "`IFS=:
mathieu@468 12586 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
mathieu@468 12587 if test x"$ac_file" != x-; then
mathieu@468 12588 configure_input="$ac_file. $configure_input"
mathieu@468 12589 { echo "$as_me:$LINENO: creating $ac_file" >&5
mathieu@468 12590 echo "$as_me: creating $ac_file" >&6;}
mathieu@468 12591 fi
mathieu@468 12592
mathieu@468 12593 case $ac_tag in
mathieu@468 12594 *:-:* | *:-) cat >"$tmp/stdin";;
mathieu@468 12595 esac
mathieu@468 12596 ;;
mathieu@468 12597 esac
mathieu@468 12598
mathieu@468 12599 ac_dir=`$as_dirname -- "$ac_file" ||
mathieu@468 12600 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mathieu@468 12601 X"$ac_file" : 'X\(//\)[^/]' \| \
mathieu@468 12602 X"$ac_file" : 'X\(//\)$' \| \
mathieu@468 12603 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
mathieu@468 12604 echo X"$ac_file" |
mathieu@468 12605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
mathieu@468 12606 s//\1/
mathieu@468 12607 q
mathieu@468 12608 }
mathieu@468 12609 /^X\(\/\/\)[^/].*/{
mathieu@468 12610 s//\1/
mathieu@468 12611 q
mathieu@468 12612 }
mathieu@468 12613 /^X\(\/\/\)$/{
mathieu@468 12614 s//\1/
mathieu@468 12615 q
mathieu@468 12616 }
mathieu@468 12617 /^X\(\/\).*/{
mathieu@468 12618 s//\1/
mathieu@468 12619 q
mathieu@468 12620 }
mathieu@468 12621 s/.*/./; q'`
mathieu@468 12622 { as_dir="$ac_dir"
Chris@351 12623 case $as_dir in #(
Chris@351 12624 -*) as_dir=./$as_dir;;
Chris@351 12625 esac
mathieu@468 12626 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Chris@351 12627 as_dirs=
Chris@351 12628 while :; do
Chris@351 12629 case $as_dir in #(
mathieu@468 12630 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
Chris@351 12631 *) as_qdir=$as_dir;;
Chris@351 12632 esac
Chris@351 12633 as_dirs="'$as_qdir' $as_dirs"
Chris@351 12634 as_dir=`$as_dirname -- "$as_dir" ||
Chris@351 12635 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@351 12636 X"$as_dir" : 'X\(//\)[^/]' \| \
Chris@351 12637 X"$as_dir" : 'X\(//\)$' \| \
Chris@351 12638 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
mathieu@468 12639 echo X"$as_dir" |
Chris@351 12640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@351 12641 s//\1/
Chris@351 12642 q
Chris@351 12643 }
Chris@351 12644 /^X\(\/\/\)[^/].*/{
Chris@351 12645 s//\1/
Chris@351 12646 q
Chris@351 12647 }
Chris@351 12648 /^X\(\/\/\)$/{
Chris@351 12649 s//\1/
Chris@351 12650 q
Chris@351 12651 }
Chris@351 12652 /^X\(\/\).*/{
Chris@351 12653 s//\1/
Chris@351 12654 q
Chris@351 12655 }
Chris@351 12656 s/.*/./; q'`
Chris@351 12657 test -d "$as_dir" && break
Chris@351 12658 done
Chris@351 12659 test -z "$as_dirs" || eval "mkdir $as_dirs"
mathieu@468 12660 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
mathieu@468 12661 echo "$as_me: error: cannot create directory $as_dir" >&2;}
mathieu@468 12662 { (exit 1); exit 1; }; }; }
Chris@351 12663 ac_builddir=.
Chris@351 12664
Chris@351 12665 case "$ac_dir" in
Chris@351 12666 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@351 12667 *)
mathieu@468 12668 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Chris@351 12669 # A ".." for each directory in $ac_dir_suffix.
mathieu@468 12670 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Chris@351 12671 case $ac_top_builddir_sub in
Chris@351 12672 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@351 12673 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
Chris@351 12674 esac ;;
Chris@351 12675 esac
Chris@351 12676 ac_abs_top_builddir=$ac_pwd
Chris@351 12677 ac_abs_builddir=$ac_pwd$ac_dir_suffix
Chris@351 12678 # for backward compatibility:
Chris@351 12679 ac_top_builddir=$ac_top_build_prefix
Chris@351 12680
Chris@351 12681 case $srcdir in
Chris@351 12682 .) # We are building in place.
Chris@351 12683 ac_srcdir=.
Chris@351 12684 ac_top_srcdir=$ac_top_builddir_sub
Chris@351 12685 ac_abs_top_srcdir=$ac_pwd ;;
Chris@351 12686 [\\/]* | ?:[\\/]* ) # Absolute name.
Chris@351 12687 ac_srcdir=$srcdir$ac_dir_suffix;
Chris@351 12688 ac_top_srcdir=$srcdir
Chris@351 12689 ac_abs_top_srcdir=$srcdir ;;
Chris@351 12690 *) # Relative name.
Chris@351 12691 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
Chris@351 12692 ac_top_srcdir=$ac_top_build_prefix$srcdir
Chris@351 12693 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Chris@351 12694 esac
Chris@351 12695 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Chris@351 12696
Chris@351 12697
Chris@351 12698 case $ac_mode in
Chris@351 12699 :F)
Chris@351 12700 #
Chris@351 12701 # CONFIG_FILE
Chris@351 12702 #
Chris@351 12703
Chris@351 12704 case $INSTALL in
Chris@351 12705 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Chris@351 12706 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Chris@351 12707 esac
Chris@351 12708 ac_MKDIR_P=$MKDIR_P
Chris@351 12709 case $MKDIR_P in
Chris@351 12710 [\\/$]* | ?:[\\/]* ) ;;
Chris@351 12711 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
Chris@351 12712 esac
Chris@351 12713 _ACEOF
Chris@351 12714
mathieu@468 12715 cat >>$CONFIG_STATUS <<\_ACEOF
Chris@351 12716 # If the template does not know about datarootdir, expand it.
Chris@351 12717 # FIXME: This hack should be removed a few years after 2.60.
Chris@351 12718 ac_datarootdir_hack=; ac_datarootdir_seen=
mathieu@468 12719
mathieu@468 12720 case `sed -n '/datarootdir/ {
Chris@351 12721 p
Chris@351 12722 q
Chris@351 12723 }
Chris@351 12724 /@datadir@/p
Chris@351 12725 /@docdir@/p
Chris@351 12726 /@infodir@/p
Chris@351 12727 /@localedir@/p
mathieu@468 12728 /@mandir@/p
mathieu@468 12729 ' $ac_file_inputs` in
Chris@351 12730 *datarootdir*) ac_datarootdir_seen=yes;;
Chris@351 12731 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
mathieu@468 12732 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
mathieu@468 12733 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
mathieu@468 12734 _ACEOF
mathieu@468 12735 cat >>$CONFIG_STATUS <<_ACEOF
Chris@351 12736 ac_datarootdir_hack='
Chris@351 12737 s&@datadir@&$datadir&g
Chris@351 12738 s&@docdir@&$docdir&g
Chris@351 12739 s&@infodir@&$infodir&g
Chris@351 12740 s&@localedir@&$localedir&g
Chris@351 12741 s&@mandir@&$mandir&g
mathieu@468 12742 s&\\\${datarootdir}&$datarootdir&g' ;;
Chris@351 12743 esac
Chris@351 12744 _ACEOF
Chris@351 12745
Chris@351 12746 # Neutralize VPATH when `$srcdir' = `.'.
Chris@351 12747 # Shell code in configure.ac might set extrasub.
Chris@351 12748 # FIXME: do we really want to maintain this feature?
mathieu@468 12749 cat >>$CONFIG_STATUS <<_ACEOF
mathieu@468 12750 sed "$ac_vpsub
Chris@351 12751 $extrasub
Chris@351 12752 _ACEOF
mathieu@468 12753 cat >>$CONFIG_STATUS <<\_ACEOF
Chris@351 12754 :t
Chris@351 12755 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
mathieu@468 12756 s&@configure_input@&$configure_input&;t t
Chris@351 12757 s&@top_builddir@&$ac_top_builddir_sub&;t t
Chris@351 12758 s&@srcdir@&$ac_srcdir&;t t
Chris@351 12759 s&@abs_srcdir@&$ac_abs_srcdir&;t t
Chris@351 12760 s&@top_srcdir@&$ac_top_srcdir&;t t
Chris@351 12761 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
Chris@351 12762 s&@builddir@&$ac_builddir&;t t
Chris@351 12763 s&@abs_builddir@&$ac_abs_builddir&;t t
Chris@351 12764 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
Chris@351 12765 s&@INSTALL@&$ac_INSTALL&;t t
Chris@351 12766 s&@MKDIR_P@&$ac_MKDIR_P&;t t
Chris@351 12767 $ac_datarootdir_hack
mathieu@468 12768 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
Chris@351 12769
Chris@351 12770 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Chris@351 12771 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
Chris@351 12772 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
mathieu@468 12773 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
mathieu@468 12774 which seems to be undefined. Please make sure it is defined." >&5
mathieu@468 12775 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
mathieu@468 12776 which seems to be undefined. Please make sure it is defined." >&2;}
Chris@351 12777
Chris@351 12778 rm -f "$tmp/stdin"
Chris@351 12779 case $ac_file in
mathieu@468 12780 -) cat "$tmp/out"; rm -f "$tmp/out";;
mathieu@468 12781 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
mathieu@468 12782 esac
Chris@351 12783 ;;
Chris@351 12784
Chris@351 12785
Chris@351 12786
Chris@351 12787 esac
Chris@351 12788
Chris@351 12789 done # for ac_tag
Chris@351 12790
Chris@351 12791
mathieu@468 12792 { (exit 0); exit 0; }
mathieu@468 12793 _ACEOF
mathieu@468 12794 chmod +x $CONFIG_STATUS
Chris@351 12795 ac_clean_files=$ac_clean_files_save
Chris@351 12796
Chris@351 12797
Chris@351 12798 # configure is writing to config.log, and then calls config.status.
Chris@351 12799 # config.status does its own redirection, appending to config.log.
Chris@351 12800 # Unfortunately, on DOS this fails, as config.log is still kept open
Chris@351 12801 # by configure, so config.status won't be able to write to it; its
Chris@351 12802 # output is simply discarded. So we exec the FD to /dev/null,
Chris@351 12803 # effectively closing config.log, so it can be properly (re)opened and
Chris@351 12804 # appended to by config.status. When coming back to configure, we
Chris@351 12805 # need to make the FD available again.
Chris@351 12806 if test "$no_create" != yes; then
Chris@351 12807 ac_cs_success=:
Chris@351 12808 ac_config_status_args=
Chris@351 12809 test "$silent" = yes &&
Chris@351 12810 ac_config_status_args="$ac_config_status_args --quiet"
Chris@351 12811 exec 5>/dev/null
Chris@351 12812 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Chris@351 12813 exec 5>>config.log
Chris@351 12814 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
Chris@351 12815 # would make configure fail if this is the last instruction.
mathieu@468 12816 $ac_cs_success || { (exit 1); exit 1; }
Chris@351 12817 fi
Chris@351 12818
Chris@350 12819
Chris@350 12820 if ! $QMAKE -r; then
mathieu@468 12821 { { echo "$as_me:$LINENO: error: qmake failed: Command was \"$QMAKE -r\"" >&5
mathieu@468 12822 echo "$as_me: error: qmake failed: Command was \"$QMAKE -r\"" >&2;}
mathieu@468 12823 { (exit 1); exit 1; }; }
mathieu@468 12824 fi
mathieu@468 12825
mathieu@468 12826 { echo "$as_me:$LINENO:
Chris@350 12827
Chris@350 12828 Configuration complete.
Chris@350 12829 Please check the above messages for any warnings that you
Chris@350 12830 might care about, and then run \"make\".
Chris@350 12831
Chris@350 12832 The file config.pri contains the configuration settings for
Chris@350 12833 qmake. If you want to adjust these by hand, edit config.pri
Chris@350 12834 and run \"qmake -r\" again to regenerate the Makefile.
Chris@350 12835 " >&5
mathieu@468 12836 echo "$as_me:
Chris@350 12837
Chris@350 12838 Configuration complete.
Chris@350 12839 Please check the above messages for any warnings that you
Chris@350 12840 might care about, and then run \"make\".
Chris@350 12841
Chris@350 12842 The file config.pri contains the configuration settings for
Chris@350 12843 qmake. If you want to adjust these by hand, edit config.pri
Chris@350 12844 and run \"qmake -r\" again to regenerate the Makefile.
Chris@350 12845 " >&6;}