annotate configure @ 345:079209375f07

Avoid returning garbage through getCurrentProgram if plugin has no programs
author Chris Cannam
date Sun, 06 Jan 2013 20:45:55 +0000
parents bb29681a8b51
children 60ede78a20db
rev   line source
cannam@252 1 #! /bin/sh
cannam@252 2 # Guess values for system-dependent variables and create Makefiles.
Chris@321 3 # Generated by GNU Autoconf 2.68 for vamp-plugin-sdk 2.3.0.
cannam@252 4 #
cannam@252 5 # Report bugs to <cannam@all-day-breakfast.com>.
cannam@252 6 #
Chris@315 7 #
cannam@252 8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Chris@315 9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
Chris@315 10 # Foundation, Inc.
Chris@315 11 #
Chris@315 12 #
cannam@252 13 # This configure script is free software; the Free Software Foundation
cannam@252 14 # gives unlimited permission to copy, distribute and modify it.
Chris@315 15 ## -------------------- ##
Chris@315 16 ## M4sh Initialization. ##
Chris@315 17 ## -------------------- ##
cannam@252 18
cannam@252 19 # Be more Bourne compatible
cannam@252 20 DUALCASE=1; export DUALCASE # for MKS sh
Chris@315 21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cannam@252 22 emulate sh
cannam@252 23 NULLCMD=:
Chris@315 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
cannam@252 25 # is contrary to our usage. Disable this feature.
cannam@252 26 alias -g '${1+"$@"}'='"$@"'
cannam@252 27 setopt NO_GLOB_SUBST
cannam@252 28 else
Chris@315 29 case `(set -o) 2>/dev/null` in #(
Chris@315 30 *posix*) :
Chris@315 31 set -o posix ;; #(
Chris@315 32 *) :
Chris@315 33 ;;
cannam@252 34 esac
cannam@252 35 fi
cannam@252 36
cannam@252 37
Chris@315 38 as_nl='
Chris@315 39 '
Chris@315 40 export as_nl
Chris@315 41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
Chris@315 42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@315 43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@315 44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@315 45 # Prefer a ksh shell builtin over an external printf program on Solaris,
Chris@315 46 # but without wasting forks for bash or zsh.
Chris@315 47 if test -z "$BASH_VERSION$ZSH_VERSION" \
Chris@315 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@315 49 as_echo='print -r --'
Chris@315 50 as_echo_n='print -rn --'
Chris@315 51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@315 52 as_echo='printf %s\n'
Chris@315 53 as_echo_n='printf %s'
Chris@315 54 else
Chris@315 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
Chris@315 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
Chris@315 57 as_echo_n='/usr/ucb/echo -n'
Chris@315 58 else
Chris@315 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
Chris@315 60 as_echo_n_body='eval
Chris@315 61 arg=$1;
Chris@315 62 case $arg in #(
Chris@315 63 *"$as_nl"*)
Chris@315 64 expr "X$arg" : "X\\(.*\\)$as_nl";
Chris@315 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
Chris@315 66 esac;
Chris@315 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
Chris@315 68 '
Chris@315 69 export as_echo_n_body
Chris@315 70 as_echo_n='sh -c $as_echo_n_body as_echo'
Chris@315 71 fi
Chris@315 72 export as_echo_body
Chris@315 73 as_echo='sh -c $as_echo_body as_echo'
Chris@315 74 fi
cannam@252 75
cannam@252 76 # The user is always right.
cannam@252 77 if test "${PATH_SEPARATOR+set}" != set; then
Chris@315 78 PATH_SEPARATOR=:
Chris@315 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
Chris@315 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
Chris@315 81 PATH_SEPARATOR=';'
Chris@315 82 }
cannam@252 83 fi
cannam@252 84
cannam@252 85
cannam@252 86 # IFS
cannam@252 87 # We need space, tab and new line, in precisely that order. Quoting is
cannam@252 88 # there to prevent editors from complaining about space-tab.
cannam@252 89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
cannam@252 90 # splitting by setting IFS to empty value.)
cannam@252 91 IFS=" "" $as_nl"
cannam@252 92
cannam@252 93 # Find who we are. Look in the path if we contain no directory separator.
Chris@321 94 as_myself=
Chris@315 95 case $0 in #((
cannam@252 96 *[\\/]* ) as_myself=$0 ;;
cannam@252 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@252 98 for as_dir in $PATH
cannam@252 99 do
cannam@252 100 IFS=$as_save_IFS
cannam@252 101 test -z "$as_dir" && as_dir=.
Chris@315 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
Chris@315 103 done
cannam@252 104 IFS=$as_save_IFS
cannam@252 105
cannam@252 106 ;;
cannam@252 107 esac
cannam@252 108 # We did not find ourselves, most probably we were run as `sh COMMAND'
cannam@252 109 # in which case we are not to be found in the path.
cannam@252 110 if test "x$as_myself" = x; then
cannam@252 111 as_myself=$0
cannam@252 112 fi
cannam@252 113 if test ! -f "$as_myself"; then
Chris@315 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Chris@315 115 exit 1
cannam@252 116 fi
cannam@252 117
Chris@315 118 # Unset variables that we do not need and which cause bugs (e.g. in
Chris@315 119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
Chris@315 120 # suppresses any "Segmentation fault" message there. '((' could
Chris@315 121 # trigger a bug in pdksh 5.2.14.
Chris@315 122 for as_var in BASH_ENV ENV MAIL MAILPATH
Chris@315 123 do eval test x\${$as_var+set} = xset \
Chris@315 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cannam@252 125 done
cannam@252 126 PS1='$ '
cannam@252 127 PS2='> '
cannam@252 128 PS4='+ '
cannam@252 129
cannam@252 130 # NLS nuisances.
Chris@315 131 LC_ALL=C
Chris@315 132 export LC_ALL
Chris@315 133 LANGUAGE=C
Chris@315 134 export LANGUAGE
Chris@315 135
Chris@315 136 # CDPATH.
Chris@315 137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Chris@315 138
Chris@315 139 if test "x$CONFIG_SHELL" = x; then
Chris@315 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
Chris@315 141 emulate sh
Chris@315 142 NULLCMD=:
Chris@315 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
Chris@315 144 # is contrary to our usage. Disable this feature.
Chris@315 145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
Chris@315 146 setopt NO_GLOB_SUBST
Chris@315 147 else
Chris@315 148 case \`(set -o) 2>/dev/null\` in #(
Chris@315 149 *posix*) :
Chris@315 150 set -o posix ;; #(
Chris@315 151 *) :
Chris@315 152 ;;
Chris@315 153 esac
Chris@315 154 fi
Chris@315 155 "
Chris@315 156 as_required="as_fn_return () { (exit \$1); }
Chris@315 157 as_fn_success () { as_fn_return 0; }
Chris@315 158 as_fn_failure () { as_fn_return 1; }
Chris@315 159 as_fn_ret_success () { return 0; }
Chris@315 160 as_fn_ret_failure () { return 1; }
Chris@315 161
Chris@315 162 exitcode=0
Chris@315 163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
Chris@315 164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
Chris@315 165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
Chris@315 166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
Chris@315 167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
Chris@315 168
Chris@315 169 else
Chris@315 170 exitcode=1; echo positional parameters were not saved.
Chris@315 171 fi
Chris@315 172 test x\$exitcode = x0 || exit 1"
Chris@315 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
Chris@315 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
Chris@315 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
Chris@315 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
Chris@315 177 test \$(( 1 + 1 )) = 2 || exit 1"
Chris@315 178 if (eval "$as_required") 2>/dev/null; then :
Chris@315 179 as_have_required=yes
Chris@315 180 else
Chris@315 181 as_have_required=no
Chris@315 182 fi
Chris@315 183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
Chris@315 184
Chris@315 185 else
Chris@315 186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@315 187 as_found=false
Chris@315 188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
cannam@252 189 do
Chris@315 190 IFS=$as_save_IFS
Chris@315 191 test -z "$as_dir" && as_dir=.
Chris@315 192 as_found=:
Chris@315 193 case $as_dir in #(
Chris@315 194 /*)
Chris@315 195 for as_base in sh bash ksh sh5; do
Chris@315 196 # Try only shells that exist, to save several forks.
Chris@315 197 as_shell=$as_dir/$as_base
Chris@315 198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
Chris@315 199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
Chris@315 200 CONFIG_SHELL=$as_shell as_have_required=yes
Chris@315 201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
Chris@315 202 break 2
Chris@315 203 fi
Chris@315 204 fi
Chris@315 205 done;;
Chris@315 206 esac
Chris@315 207 as_found=false
Chris@315 208 done
Chris@315 209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
Chris@315 210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
Chris@315 211 CONFIG_SHELL=$SHELL as_have_required=yes
Chris@315 212 fi; }
Chris@315 213 IFS=$as_save_IFS
Chris@315 214
Chris@315 215
Chris@315 216 if test "x$CONFIG_SHELL" != x; then :
Chris@315 217 # We cannot yet assume a decent shell, so we have to provide a
Chris@315 218 # neutralization value for shells without unset; and this also
Chris@315 219 # works around shells that cannot unset nonexistent variables.
Chris@321 220 # Preserve -v and -x to the replacement shell.
Chris@315 221 BASH_ENV=/dev/null
Chris@315 222 ENV=/dev/null
Chris@315 223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
Chris@315 224 export CONFIG_SHELL
Chris@321 225 case $- in # ((((
Chris@321 226 *v*x* | *x*v* ) as_opts=-vx ;;
Chris@321 227 *v* ) as_opts=-v ;;
Chris@321 228 *x* ) as_opts=-x ;;
Chris@321 229 * ) as_opts= ;;
Chris@321 230 esac
Chris@321 231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
Chris@315 232 fi
Chris@315 233
Chris@315 234 if test x$as_have_required = xno; then :
Chris@315 235 $as_echo "$0: This script requires a shell more modern than all"
Chris@315 236 $as_echo "$0: the shells that I found on your system."
Chris@315 237 if test x${ZSH_VERSION+set} = xset ; then
Chris@315 238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
Chris@315 239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
cannam@252 240 else
Chris@315 241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
Chris@315 242 $0: cannam@all-day-breakfast.com about your system,
Chris@315 243 $0: including any error possibly output before this
Chris@315 244 $0: message. Then install a modern shell, or manually run
Chris@315 245 $0: the script under such a shell if you do have one."
cannam@252 246 fi
Chris@315 247 exit 1
Chris@315 248 fi
Chris@315 249 fi
Chris@315 250 fi
Chris@315 251 SHELL=${CONFIG_SHELL-/bin/sh}
Chris@315 252 export SHELL
Chris@315 253 # Unset more variables known to interfere with behavior of common tools.
Chris@315 254 CLICOLOR_FORCE= GREP_OPTIONS=
Chris@315 255 unset CLICOLOR_FORCE GREP_OPTIONS
Chris@315 256
Chris@315 257 ## --------------------- ##
Chris@315 258 ## M4sh Shell Functions. ##
Chris@315 259 ## --------------------- ##
Chris@315 260 # as_fn_unset VAR
Chris@315 261 # ---------------
Chris@315 262 # Portably unset VAR.
Chris@315 263 as_fn_unset ()
Chris@315 264 {
Chris@315 265 { eval $1=; unset $1;}
Chris@315 266 }
Chris@315 267 as_unset=as_fn_unset
Chris@315 268
Chris@315 269 # as_fn_set_status STATUS
Chris@315 270 # -----------------------
Chris@315 271 # Set $? to STATUS, without forking.
Chris@315 272 as_fn_set_status ()
Chris@315 273 {
Chris@315 274 return $1
Chris@315 275 } # as_fn_set_status
Chris@315 276
Chris@315 277 # as_fn_exit STATUS
Chris@315 278 # -----------------
Chris@315 279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
Chris@315 280 as_fn_exit ()
Chris@315 281 {
Chris@315 282 set +e
Chris@315 283 as_fn_set_status $1
Chris@315 284 exit $1
Chris@315 285 } # as_fn_exit
Chris@315 286
Chris@315 287 # as_fn_mkdir_p
Chris@315 288 # -------------
Chris@315 289 # Create "$as_dir" as a directory, including parents if necessary.
Chris@315 290 as_fn_mkdir_p ()
Chris@315 291 {
Chris@315 292
Chris@315 293 case $as_dir in #(
Chris@315 294 -*) as_dir=./$as_dir;;
Chris@315 295 esac
Chris@315 296 test -d "$as_dir" || eval $as_mkdir_p || {
Chris@315 297 as_dirs=
Chris@315 298 while :; do
Chris@315 299 case $as_dir in #(
Chris@315 300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
Chris@315 301 *) as_qdir=$as_dir;;
Chris@315 302 esac
Chris@315 303 as_dirs="'$as_qdir' $as_dirs"
Chris@315 304 as_dir=`$as_dirname -- "$as_dir" ||
Chris@315 305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@315 306 X"$as_dir" : 'X\(//\)[^/]' \| \
Chris@315 307 X"$as_dir" : 'X\(//\)$' \| \
Chris@315 308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Chris@315 309 $as_echo X"$as_dir" |
Chris@315 310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@315 311 s//\1/
Chris@315 312 q
Chris@315 313 }
Chris@315 314 /^X\(\/\/\)[^/].*/{
Chris@315 315 s//\1/
Chris@315 316 q
Chris@315 317 }
Chris@315 318 /^X\(\/\/\)$/{
Chris@315 319 s//\1/
Chris@315 320 q
Chris@315 321 }
Chris@315 322 /^X\(\/\).*/{
Chris@315 323 s//\1/
Chris@315 324 q
Chris@315 325 }
Chris@315 326 s/.*/./; q'`
Chris@315 327 test -d "$as_dir" && break
Chris@315 328 done
Chris@315 329 test -z "$as_dirs" || eval "mkdir $as_dirs"
Chris@315 330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Chris@315 331
Chris@315 332
Chris@315 333 } # as_fn_mkdir_p
Chris@315 334 # as_fn_append VAR VALUE
Chris@315 335 # ----------------------
Chris@315 336 # Append the text in VALUE to the end of the definition contained in VAR. Take
Chris@315 337 # advantage of any shell optimizations that allow amortized linear growth over
Chris@315 338 # repeated appends, instead of the typical quadratic growth present in naive
Chris@315 339 # implementations.
Chris@315 340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
Chris@315 341 eval 'as_fn_append ()
Chris@315 342 {
Chris@315 343 eval $1+=\$2
Chris@315 344 }'
Chris@315 345 else
Chris@315 346 as_fn_append ()
Chris@315 347 {
Chris@315 348 eval $1=\$$1\$2
Chris@315 349 }
Chris@315 350 fi # as_fn_append
Chris@315 351
Chris@315 352 # as_fn_arith ARG...
Chris@315 353 # ------------------
Chris@315 354 # Perform arithmetic evaluation on the ARGs, and store the result in the
Chris@315 355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
Chris@315 356 # must be portable across $(()) and expr.
Chris@315 357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
Chris@315 358 eval 'as_fn_arith ()
Chris@315 359 {
Chris@315 360 as_val=$(( $* ))
Chris@315 361 }'
Chris@315 362 else
Chris@315 363 as_fn_arith ()
Chris@315 364 {
Chris@315 365 as_val=`expr "$@" || test $? -eq 1`
Chris@315 366 }
Chris@315 367 fi # as_fn_arith
Chris@315 368
Chris@315 369
Chris@315 370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
Chris@315 371 # ----------------------------------------
Chris@315 372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
Chris@315 373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Chris@315 374 # script with STATUS, using 1 if that was 0.
Chris@315 375 as_fn_error ()
Chris@315 376 {
Chris@315 377 as_status=$1; test $as_status -eq 0 && as_status=1
Chris@315 378 if test "$4"; then
Chris@315 379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@315 380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Chris@315 381 fi
Chris@315 382 $as_echo "$as_me: error: $2" >&2
Chris@315 383 as_fn_exit $as_status
Chris@315 384 } # as_fn_error
Chris@315 385
cannam@252 386 if expr a : '\(a\)' >/dev/null 2>&1 &&
cannam@252 387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
cannam@252 388 as_expr=expr
cannam@252 389 else
cannam@252 390 as_expr=false
cannam@252 391 fi
cannam@252 392
cannam@252 393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
cannam@252 394 as_basename=basename
cannam@252 395 else
cannam@252 396 as_basename=false
cannam@252 397 fi
cannam@252 398
Chris@315 399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
Chris@315 400 as_dirname=dirname
Chris@315 401 else
Chris@315 402 as_dirname=false
Chris@315 403 fi
Chris@315 404
cannam@252 405 as_me=`$as_basename -- "$0" ||
cannam@252 406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
cannam@252 407 X"$0" : 'X\(//\)$' \| \
cannam@252 408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Chris@315 409 $as_echo X/"$0" |
cannam@252 410 sed '/^.*\/\([^/][^/]*\)\/*$/{
cannam@252 411 s//\1/
cannam@252 412 q
cannam@252 413 }
cannam@252 414 /^X\/\(\/\/\)$/{
cannam@252 415 s//\1/
cannam@252 416 q
cannam@252 417 }
cannam@252 418 /^X\/\(\/\).*/{
cannam@252 419 s//\1/
cannam@252 420 q
cannam@252 421 }
cannam@252 422 s/.*/./; q'`
cannam@252 423
Chris@315 424 # Avoid depending upon Character Ranges.
Chris@315 425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
Chris@315 426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
Chris@315 427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
Chris@315 428 as_cr_digits='0123456789'
Chris@315 429 as_cr_alnum=$as_cr_Letters$as_cr_digits
Chris@315 430
Chris@315 431
Chris@315 432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
Chris@315 433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
Chris@315 434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
Chris@315 435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
Chris@315 436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cannam@252 437 sed -n '
cannam@252 438 p
cannam@252 439 /[$]LINENO/=
cannam@252 440 ' <$as_myself |
cannam@252 441 sed '
cannam@252 442 s/[$]LINENO.*/&-/
cannam@252 443 t lineno
cannam@252 444 b
cannam@252 445 :lineno
cannam@252 446 N
cannam@252 447 :loop
cannam@252 448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
cannam@252 449 t loop
cannam@252 450 s/-\n.*//
cannam@252 451 ' >$as_me.lineno &&
cannam@252 452 chmod +x "$as_me.lineno" ||
Chris@315 453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cannam@252 454
cannam@252 455 # Don't try to exec as it changes $[0], causing all sort of problems
cannam@252 456 # (the dirname of $[0] is not the place where we might find the
cannam@252 457 # original and so on. Autoconf is especially sensitive to this).
cannam@252 458 . "./$as_me.lineno"
cannam@252 459 # Exit status is that of the last command.
cannam@252 460 exit
cannam@252 461 }
cannam@252 462
cannam@252 463 ECHO_C= ECHO_N= ECHO_T=
Chris@315 464 case `echo -n x` in #(((((
cannam@252 465 -n*)
Chris@315 466 case `echo 'xy\c'` in
cannam@252 467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Chris@315 468 xy) ECHO_C='\c';;
Chris@315 469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
Chris@315 470 ECHO_T=' ';;
cannam@252 471 esac;;
cannam@252 472 *)
cannam@252 473 ECHO_N='-n';;
cannam@252 474 esac
cannam@252 475
cannam@252 476 rm -f conf$$ conf$$.exe conf$$.file
cannam@252 477 if test -d conf$$.dir; then
cannam@252 478 rm -f conf$$.dir/conf$$.file
cannam@252 479 else
cannam@252 480 rm -f conf$$.dir
Chris@315 481 mkdir conf$$.dir 2>/dev/null
cannam@252 482 fi
Chris@315 483 if (echo >conf$$.file) 2>/dev/null; then
Chris@315 484 if ln -s conf$$.file conf$$ 2>/dev/null; then
Chris@315 485 as_ln_s='ln -s'
Chris@315 486 # ... but there are two gotchas:
Chris@315 487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
Chris@315 488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Chris@315 489 # In both cases, we have to default to `cp -p'.
Chris@315 490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Chris@315 491 as_ln_s='cp -p'
Chris@315 492 elif ln conf$$.file conf$$ 2>/dev/null; then
Chris@315 493 as_ln_s=ln
Chris@315 494 else
cannam@252 495 as_ln_s='cp -p'
Chris@315 496 fi
cannam@252 497 else
cannam@252 498 as_ln_s='cp -p'
cannam@252 499 fi
cannam@252 500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
cannam@252 501 rmdir conf$$.dir 2>/dev/null
cannam@252 502
cannam@252 503 if mkdir -p . 2>/dev/null; then
Chris@315 504 as_mkdir_p='mkdir -p "$as_dir"'
cannam@252 505 else
cannam@252 506 test -d ./-p && rmdir ./-p
cannam@252 507 as_mkdir_p=false
cannam@252 508 fi
cannam@252 509
cannam@252 510 if test -x / >/dev/null 2>&1; then
cannam@252 511 as_test_x='test -x'
cannam@252 512 else
cannam@252 513 if ls -dL / >/dev/null 2>&1; then
cannam@252 514 as_ls_L_option=L
cannam@252 515 else
cannam@252 516 as_ls_L_option=
cannam@252 517 fi
cannam@252 518 as_test_x='
cannam@252 519 eval sh -c '\''
cannam@252 520 if test -d "$1"; then
Chris@315 521 test -d "$1/.";
cannam@252 522 else
Chris@315 523 case $1 in #(
Chris@315 524 -*)set "./$1";;
cannam@252 525 esac;
Chris@315 526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cannam@252 527 ???[sx]*):;;*)false;;esac;fi
cannam@252 528 '\'' sh
cannam@252 529 '
cannam@252 530 fi
cannam@252 531 as_executable_p=$as_test_x
cannam@252 532
cannam@252 533 # Sed expression to map a string onto a valid CPP name.
cannam@252 534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
cannam@252 535
cannam@252 536 # Sed expression to map a string onto a valid variable name.
cannam@252 537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
cannam@252 538
cannam@252 539
Chris@315 540 test -n "$DJDIR" || exec 7<&0 </dev/null
Chris@315 541 exec 6>&1
cannam@252 542
cannam@252 543 # Name of the host.
Chris@315 544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cannam@252 545 # so uname gets run too.
cannam@252 546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
cannam@252 547
cannam@252 548 #
cannam@252 549 # Initializations.
cannam@252 550 #
cannam@252 551 ac_default_prefix=/usr/local
cannam@252 552 ac_clean_files=
cannam@252 553 ac_config_libobj_dir=.
cannam@252 554 LIBOBJS=
cannam@252 555 cross_compiling=no
cannam@252 556 subdirs=
cannam@252 557 MFLAGS=
cannam@252 558 MAKEFLAGS=
cannam@252 559
cannam@252 560 # Identity of this package.
cannam@252 561 PACKAGE_NAME='vamp-plugin-sdk'
cannam@252 562 PACKAGE_TARNAME='vamp-plugin-sdk'
Chris@321 563 PACKAGE_VERSION='2.3.0'
Chris@321 564 PACKAGE_STRING='vamp-plugin-sdk 2.3.0'
cannam@252 565 PACKAGE_BUGREPORT='cannam@all-day-breakfast.com'
Chris@315 566 PACKAGE_URL=''
cannam@252 567
cannam@252 568 ac_unique_file="vamp/vamp.h"
cannam@252 569 # Factoring default headers for most tests.
cannam@252 570 ac_includes_default="\
cannam@252 571 #include <stdio.h>
cannam@252 572 #ifdef HAVE_SYS_TYPES_H
cannam@252 573 # include <sys/types.h>
cannam@252 574 #endif
cannam@252 575 #ifdef HAVE_SYS_STAT_H
cannam@252 576 # include <sys/stat.h>
cannam@252 577 #endif
cannam@252 578 #ifdef STDC_HEADERS
cannam@252 579 # include <stdlib.h>
cannam@252 580 # include <stddef.h>
cannam@252 581 #else
cannam@252 582 # ifdef HAVE_STDLIB_H
cannam@252 583 # include <stdlib.h>
cannam@252 584 # endif
cannam@252 585 #endif
cannam@252 586 #ifdef HAVE_STRING_H
cannam@252 587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
cannam@252 588 # include <memory.h>
cannam@252 589 # endif
cannam@252 590 # include <string.h>
cannam@252 591 #endif
cannam@252 592 #ifdef HAVE_STRINGS_H
cannam@252 593 # include <strings.h>
cannam@252 594 #endif
cannam@252 595 #ifdef HAVE_INTTYPES_H
cannam@252 596 # include <inttypes.h>
cannam@252 597 #endif
cannam@252 598 #ifdef HAVE_STDINT_H
cannam@252 599 # include <stdint.h>
cannam@252 600 #endif
cannam@252 601 #ifdef HAVE_UNISTD_H
cannam@252 602 # include <unistd.h>
cannam@252 603 #endif"
cannam@252 604
Chris@315 605 ac_subst_vars='LTLIBOBJS
Chris@315 606 LIBOBJS
Chris@315 607 TARGETS
Chris@315 608 SNDFILE_LIBS
Chris@315 609 SNDFILE_CFLAGS
Chris@315 610 PKG_CONFIG_LIBDIR
Chris@315 611 PKG_CONFIG_PATH
Chris@315 612 PKG_CONFIG
Chris@315 613 EGREP
Chris@315 614 GREP
Chris@315 615 CPP
Chris@315 616 ac_ct_CC
Chris@315 617 CFLAGS
Chris@315 618 CC
Chris@315 619 OBJEXT
Chris@315 620 EXEEXT
Chris@315 621 ac_ct_CXX
Chris@315 622 CPPFLAGS
Chris@315 623 LDFLAGS
Chris@315 624 CXXFLAGS
Chris@315 625 CXX
Chris@315 626 target_alias
Chris@315 627 host_alias
Chris@315 628 build_alias
Chris@315 629 LIBS
Chris@315 630 ECHO_T
Chris@315 631 ECHO_N
Chris@315 632 ECHO_C
Chris@315 633 DEFS
Chris@315 634 mandir
Chris@315 635 localedir
Chris@315 636 libdir
Chris@315 637 psdir
Chris@315 638 pdfdir
Chris@315 639 dvidir
Chris@315 640 htmldir
Chris@315 641 infodir
Chris@315 642 docdir
Chris@315 643 oldincludedir
Chris@315 644 includedir
Chris@315 645 localstatedir
Chris@315 646 sharedstatedir
Chris@315 647 sysconfdir
Chris@315 648 datadir
Chris@315 649 datarootdir
Chris@315 650 libexecdir
Chris@315 651 sbindir
Chris@315 652 bindir
Chris@315 653 program_transform_name
Chris@315 654 prefix
Chris@315 655 exec_prefix
Chris@315 656 PACKAGE_URL
Chris@315 657 PACKAGE_BUGREPORT
Chris@315 658 PACKAGE_STRING
Chris@315 659 PACKAGE_VERSION
Chris@315 660 PACKAGE_TARNAME
Chris@315 661 PACKAGE_NAME
cannam@252 662 PATH_SEPARATOR
Chris@315 663 SHELL'
cannam@252 664 ac_subst_files=''
Chris@315 665 ac_user_opts='
Chris@315 666 enable_option_checking
Chris@315 667 enable_programs
Chris@315 668 '
cannam@252 669 ac_precious_vars='build_alias
cannam@252 670 host_alias
cannam@252 671 target_alias
cannam@252 672 CXX
cannam@252 673 CXXFLAGS
cannam@252 674 LDFLAGS
cannam@252 675 LIBS
cannam@252 676 CPPFLAGS
cannam@252 677 CCC
cannam@252 678 CC
cannam@252 679 CFLAGS
cannam@252 680 CPP
cannam@252 681 PKG_CONFIG
Chris@315 682 PKG_CONFIG_PATH
Chris@315 683 PKG_CONFIG_LIBDIR
cannam@252 684 SNDFILE_CFLAGS
cannam@252 685 SNDFILE_LIBS'
cannam@252 686
cannam@252 687
cannam@252 688 # Initialize some variables set by options.
cannam@252 689 ac_init_help=
cannam@252 690 ac_init_version=false
Chris@315 691 ac_unrecognized_opts=
Chris@315 692 ac_unrecognized_sep=
cannam@252 693 # The variables have the same names as the options, with
cannam@252 694 # dashes changed to underlines.
cannam@252 695 cache_file=/dev/null
cannam@252 696 exec_prefix=NONE
cannam@252 697 no_create=
cannam@252 698 no_recursion=
cannam@252 699 prefix=NONE
cannam@252 700 program_prefix=NONE
cannam@252 701 program_suffix=NONE
cannam@252 702 program_transform_name=s,x,x,
cannam@252 703 silent=
cannam@252 704 site=
cannam@252 705 srcdir=
cannam@252 706 verbose=
cannam@252 707 x_includes=NONE
cannam@252 708 x_libraries=NONE
cannam@252 709
cannam@252 710 # Installation directory options.
cannam@252 711 # These are left unexpanded so users can "make install exec_prefix=/foo"
cannam@252 712 # and all the variables that are supposed to be based on exec_prefix
cannam@252 713 # by default will actually change.
cannam@252 714 # Use braces instead of parens because sh, perl, etc. also accept them.
cannam@252 715 # (The list follows the same order as the GNU Coding Standards.)
cannam@252 716 bindir='${exec_prefix}/bin'
cannam@252 717 sbindir='${exec_prefix}/sbin'
cannam@252 718 libexecdir='${exec_prefix}/libexec'
cannam@252 719 datarootdir='${prefix}/share'
cannam@252 720 datadir='${datarootdir}'
cannam@252 721 sysconfdir='${prefix}/etc'
cannam@252 722 sharedstatedir='${prefix}/com'
cannam@252 723 localstatedir='${prefix}/var'
cannam@252 724 includedir='${prefix}/include'
cannam@252 725 oldincludedir='/usr/include'
cannam@252 726 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
cannam@252 727 infodir='${datarootdir}/info'
cannam@252 728 htmldir='${docdir}'
cannam@252 729 dvidir='${docdir}'
cannam@252 730 pdfdir='${docdir}'
cannam@252 731 psdir='${docdir}'
cannam@252 732 libdir='${exec_prefix}/lib'
cannam@252 733 localedir='${datarootdir}/locale'
cannam@252 734 mandir='${datarootdir}/man'
cannam@252 735
cannam@252 736 ac_prev=
cannam@252 737 ac_dashdash=
cannam@252 738 for ac_option
cannam@252 739 do
cannam@252 740 # If the previous option needs an argument, assign it.
cannam@252 741 if test -n "$ac_prev"; then
cannam@252 742 eval $ac_prev=\$ac_option
cannam@252 743 ac_prev=
cannam@252 744 continue
cannam@252 745 fi
cannam@252 746
cannam@252 747 case $ac_option in
Chris@315 748 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
Chris@315 749 *=) ac_optarg= ;;
Chris@315 750 *) ac_optarg=yes ;;
cannam@252 751 esac
cannam@252 752
cannam@252 753 # Accept the important Cygnus configure options, so we can diagnose typos.
cannam@252 754
cannam@252 755 case $ac_dashdash$ac_option in
cannam@252 756 --)
cannam@252 757 ac_dashdash=yes ;;
cannam@252 758
cannam@252 759 -bindir | --bindir | --bindi | --bind | --bin | --bi)
cannam@252 760 ac_prev=bindir ;;
cannam@252 761 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
cannam@252 762 bindir=$ac_optarg ;;
cannam@252 763
cannam@252 764 -build | --build | --buil | --bui | --bu)
cannam@252 765 ac_prev=build_alias ;;
cannam@252 766 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
cannam@252 767 build_alias=$ac_optarg ;;
cannam@252 768
cannam@252 769 -cache-file | --cache-file | --cache-fil | --cache-fi \
cannam@252 770 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
cannam@252 771 ac_prev=cache_file ;;
cannam@252 772 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
cannam@252 773 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
cannam@252 774 cache_file=$ac_optarg ;;
cannam@252 775
cannam@252 776 --config-cache | -C)
cannam@252 777 cache_file=config.cache ;;
cannam@252 778
cannam@252 779 -datadir | --datadir | --datadi | --datad)
cannam@252 780 ac_prev=datadir ;;
cannam@252 781 -datadir=* | --datadir=* | --datadi=* | --datad=*)
cannam@252 782 datadir=$ac_optarg ;;
cannam@252 783
cannam@252 784 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
cannam@252 785 | --dataroo | --dataro | --datar)
cannam@252 786 ac_prev=datarootdir ;;
cannam@252 787 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
cannam@252 788 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
cannam@252 789 datarootdir=$ac_optarg ;;
cannam@252 790
cannam@252 791 -disable-* | --disable-*)
Chris@315 792 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
cannam@252 793 # Reject names that are not valid shell variable names.
Chris@315 794 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@315 795 as_fn_error $? "invalid feature name: $ac_useropt"
Chris@315 796 ac_useropt_orig=$ac_useropt
Chris@315 797 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@315 798 case $ac_user_opts in
Chris@315 799 *"
Chris@315 800 "enable_$ac_useropt"
Chris@315 801 "*) ;;
Chris@315 802 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
Chris@315 803 ac_unrecognized_sep=', ';;
Chris@315 804 esac
Chris@315 805 eval enable_$ac_useropt=no ;;
cannam@252 806
cannam@252 807 -docdir | --docdir | --docdi | --doc | --do)
cannam@252 808 ac_prev=docdir ;;
cannam@252 809 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
cannam@252 810 docdir=$ac_optarg ;;
cannam@252 811
cannam@252 812 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
cannam@252 813 ac_prev=dvidir ;;
cannam@252 814 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
cannam@252 815 dvidir=$ac_optarg ;;
cannam@252 816
cannam@252 817 -enable-* | --enable-*)
Chris@315 818 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
cannam@252 819 # Reject names that are not valid shell variable names.
Chris@315 820 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@315 821 as_fn_error $? "invalid feature name: $ac_useropt"
Chris@315 822 ac_useropt_orig=$ac_useropt
Chris@315 823 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@315 824 case $ac_user_opts in
Chris@315 825 *"
Chris@315 826 "enable_$ac_useropt"
Chris@315 827 "*) ;;
Chris@315 828 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
Chris@315 829 ac_unrecognized_sep=', ';;
Chris@315 830 esac
Chris@315 831 eval enable_$ac_useropt=\$ac_optarg ;;
cannam@252 832
cannam@252 833 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
cannam@252 834 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
cannam@252 835 | --exec | --exe | --ex)
cannam@252 836 ac_prev=exec_prefix ;;
cannam@252 837 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
cannam@252 838 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
cannam@252 839 | --exec=* | --exe=* | --ex=*)
cannam@252 840 exec_prefix=$ac_optarg ;;
cannam@252 841
cannam@252 842 -gas | --gas | --ga | --g)
cannam@252 843 # Obsolete; use --with-gas.
cannam@252 844 with_gas=yes ;;
cannam@252 845
cannam@252 846 -help | --help | --hel | --he | -h)
cannam@252 847 ac_init_help=long ;;
cannam@252 848 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
cannam@252 849 ac_init_help=recursive ;;
cannam@252 850 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
cannam@252 851 ac_init_help=short ;;
cannam@252 852
cannam@252 853 -host | --host | --hos | --ho)
cannam@252 854 ac_prev=host_alias ;;
cannam@252 855 -host=* | --host=* | --hos=* | --ho=*)
cannam@252 856 host_alias=$ac_optarg ;;
cannam@252 857
cannam@252 858 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
cannam@252 859 ac_prev=htmldir ;;
cannam@252 860 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
cannam@252 861 | --ht=*)
cannam@252 862 htmldir=$ac_optarg ;;
cannam@252 863
cannam@252 864 -includedir | --includedir | --includedi | --included | --include \
cannam@252 865 | --includ | --inclu | --incl | --inc)
cannam@252 866 ac_prev=includedir ;;
cannam@252 867 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
cannam@252 868 | --includ=* | --inclu=* | --incl=* | --inc=*)
cannam@252 869 includedir=$ac_optarg ;;
cannam@252 870
cannam@252 871 -infodir | --infodir | --infodi | --infod | --info | --inf)
cannam@252 872 ac_prev=infodir ;;
cannam@252 873 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
cannam@252 874 infodir=$ac_optarg ;;
cannam@252 875
cannam@252 876 -libdir | --libdir | --libdi | --libd)
cannam@252 877 ac_prev=libdir ;;
cannam@252 878 -libdir=* | --libdir=* | --libdi=* | --libd=*)
cannam@252 879 libdir=$ac_optarg ;;
cannam@252 880
cannam@252 881 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
cannam@252 882 | --libexe | --libex | --libe)
cannam@252 883 ac_prev=libexecdir ;;
cannam@252 884 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
cannam@252 885 | --libexe=* | --libex=* | --libe=*)
cannam@252 886 libexecdir=$ac_optarg ;;
cannam@252 887
cannam@252 888 -localedir | --localedir | --localedi | --localed | --locale)
cannam@252 889 ac_prev=localedir ;;
cannam@252 890 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
cannam@252 891 localedir=$ac_optarg ;;
cannam@252 892
cannam@252 893 -localstatedir | --localstatedir | --localstatedi | --localstated \
cannam@252 894 | --localstate | --localstat | --localsta | --localst | --locals)
cannam@252 895 ac_prev=localstatedir ;;
cannam@252 896 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
cannam@252 897 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
cannam@252 898 localstatedir=$ac_optarg ;;
cannam@252 899
cannam@252 900 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
cannam@252 901 ac_prev=mandir ;;
cannam@252 902 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
cannam@252 903 mandir=$ac_optarg ;;
cannam@252 904
cannam@252 905 -nfp | --nfp | --nf)
cannam@252 906 # Obsolete; use --without-fp.
cannam@252 907 with_fp=no ;;
cannam@252 908
cannam@252 909 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
cannam@252 910 | --no-cr | --no-c | -n)
cannam@252 911 no_create=yes ;;
cannam@252 912
cannam@252 913 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
cannam@252 914 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
cannam@252 915 no_recursion=yes ;;
cannam@252 916
cannam@252 917 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
cannam@252 918 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
cannam@252 919 | --oldin | --oldi | --old | --ol | --o)
cannam@252 920 ac_prev=oldincludedir ;;
cannam@252 921 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
cannam@252 922 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
cannam@252 923 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
cannam@252 924 oldincludedir=$ac_optarg ;;
cannam@252 925
cannam@252 926 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
cannam@252 927 ac_prev=prefix ;;
cannam@252 928 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
cannam@252 929 prefix=$ac_optarg ;;
cannam@252 930
cannam@252 931 -program-prefix | --program-prefix | --program-prefi | --program-pref \
cannam@252 932 | --program-pre | --program-pr | --program-p)
cannam@252 933 ac_prev=program_prefix ;;
cannam@252 934 -program-prefix=* | --program-prefix=* | --program-prefi=* \
cannam@252 935 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
cannam@252 936 program_prefix=$ac_optarg ;;
cannam@252 937
cannam@252 938 -program-suffix | --program-suffix | --program-suffi | --program-suff \
cannam@252 939 | --program-suf | --program-su | --program-s)
cannam@252 940 ac_prev=program_suffix ;;
cannam@252 941 -program-suffix=* | --program-suffix=* | --program-suffi=* \
cannam@252 942 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
cannam@252 943 program_suffix=$ac_optarg ;;
cannam@252 944
cannam@252 945 -program-transform-name | --program-transform-name \
cannam@252 946 | --program-transform-nam | --program-transform-na \
cannam@252 947 | --program-transform-n | --program-transform- \
cannam@252 948 | --program-transform | --program-transfor \
cannam@252 949 | --program-transfo | --program-transf \
cannam@252 950 | --program-trans | --program-tran \
cannam@252 951 | --progr-tra | --program-tr | --program-t)
cannam@252 952 ac_prev=program_transform_name ;;
cannam@252 953 -program-transform-name=* | --program-transform-name=* \
cannam@252 954 | --program-transform-nam=* | --program-transform-na=* \
cannam@252 955 | --program-transform-n=* | --program-transform-=* \
cannam@252 956 | --program-transform=* | --program-transfor=* \
cannam@252 957 | --program-transfo=* | --program-transf=* \
cannam@252 958 | --program-trans=* | --program-tran=* \
cannam@252 959 | --progr-tra=* | --program-tr=* | --program-t=*)
cannam@252 960 program_transform_name=$ac_optarg ;;
cannam@252 961
cannam@252 962 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
cannam@252 963 ac_prev=pdfdir ;;
cannam@252 964 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
cannam@252 965 pdfdir=$ac_optarg ;;
cannam@252 966
cannam@252 967 -psdir | --psdir | --psdi | --psd | --ps)
cannam@252 968 ac_prev=psdir ;;
cannam@252 969 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
cannam@252 970 psdir=$ac_optarg ;;
cannam@252 971
cannam@252 972 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
cannam@252 973 | -silent | --silent | --silen | --sile | --sil)
cannam@252 974 silent=yes ;;
cannam@252 975
cannam@252 976 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
cannam@252 977 ac_prev=sbindir ;;
cannam@252 978 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
cannam@252 979 | --sbi=* | --sb=*)
cannam@252 980 sbindir=$ac_optarg ;;
cannam@252 981
cannam@252 982 -sharedstatedir | --sharedstatedir | --sharedstatedi \
cannam@252 983 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
cannam@252 984 | --sharedst | --shareds | --shared | --share | --shar \
cannam@252 985 | --sha | --sh)
cannam@252 986 ac_prev=sharedstatedir ;;
cannam@252 987 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
cannam@252 988 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
cannam@252 989 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
cannam@252 990 | --sha=* | --sh=*)
cannam@252 991 sharedstatedir=$ac_optarg ;;
cannam@252 992
cannam@252 993 -site | --site | --sit)
cannam@252 994 ac_prev=site ;;
cannam@252 995 -site=* | --site=* | --sit=*)
cannam@252 996 site=$ac_optarg ;;
cannam@252 997
cannam@252 998 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
cannam@252 999 ac_prev=srcdir ;;
cannam@252 1000 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
cannam@252 1001 srcdir=$ac_optarg ;;
cannam@252 1002
cannam@252 1003 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
cannam@252 1004 | --syscon | --sysco | --sysc | --sys | --sy)
cannam@252 1005 ac_prev=sysconfdir ;;
cannam@252 1006 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
cannam@252 1007 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
cannam@252 1008 sysconfdir=$ac_optarg ;;
cannam@252 1009
cannam@252 1010 -target | --target | --targe | --targ | --tar | --ta | --t)
cannam@252 1011 ac_prev=target_alias ;;
cannam@252 1012 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
cannam@252 1013 target_alias=$ac_optarg ;;
cannam@252 1014
cannam@252 1015 -v | -verbose | --verbose | --verbos | --verbo | --verb)
cannam@252 1016 verbose=yes ;;
cannam@252 1017
cannam@252 1018 -version | --version | --versio | --versi | --vers | -V)
cannam@252 1019 ac_init_version=: ;;
cannam@252 1020
cannam@252 1021 -with-* | --with-*)
Chris@315 1022 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
cannam@252 1023 # Reject names that are not valid shell variable names.
Chris@315 1024 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@315 1025 as_fn_error $? "invalid package name: $ac_useropt"
Chris@315 1026 ac_useropt_orig=$ac_useropt
Chris@315 1027 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@315 1028 case $ac_user_opts in
Chris@315 1029 *"
Chris@315 1030 "with_$ac_useropt"
Chris@315 1031 "*) ;;
Chris@315 1032 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
Chris@315 1033 ac_unrecognized_sep=', ';;
Chris@315 1034 esac
Chris@315 1035 eval with_$ac_useropt=\$ac_optarg ;;
cannam@252 1036
cannam@252 1037 -without-* | --without-*)
Chris@315 1038 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
cannam@252 1039 # Reject names that are not valid shell variable names.
Chris@315 1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@315 1041 as_fn_error $? "invalid package name: $ac_useropt"
Chris@315 1042 ac_useropt_orig=$ac_useropt
Chris@315 1043 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@315 1044 case $ac_user_opts in
Chris@315 1045 *"
Chris@315 1046 "with_$ac_useropt"
Chris@315 1047 "*) ;;
Chris@315 1048 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
Chris@315 1049 ac_unrecognized_sep=', ';;
Chris@315 1050 esac
Chris@315 1051 eval with_$ac_useropt=no ;;
cannam@252 1052
cannam@252 1053 --x)
cannam@252 1054 # Obsolete; use --with-x.
cannam@252 1055 with_x=yes ;;
cannam@252 1056
cannam@252 1057 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
cannam@252 1058 | --x-incl | --x-inc | --x-in | --x-i)
cannam@252 1059 ac_prev=x_includes ;;
cannam@252 1060 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
cannam@252 1061 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
cannam@252 1062 x_includes=$ac_optarg ;;
cannam@252 1063
cannam@252 1064 -x-libraries | --x-libraries | --x-librarie | --x-librari \
cannam@252 1065 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
cannam@252 1066 ac_prev=x_libraries ;;
cannam@252 1067 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
cannam@252 1068 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
cannam@252 1069 x_libraries=$ac_optarg ;;
cannam@252 1070
Chris@315 1071 -*) as_fn_error $? "unrecognized option: \`$ac_option'
Chris@315 1072 Try \`$0 --help' for more information"
cannam@252 1073 ;;
cannam@252 1074
cannam@252 1075 *=*)
cannam@252 1076 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
cannam@252 1077 # Reject names that are not valid shell variable names.
Chris@315 1078 case $ac_envvar in #(
Chris@315 1079 '' | [0-9]* | *[!_$as_cr_alnum]* )
Chris@315 1080 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Chris@315 1081 esac
cannam@252 1082 eval $ac_envvar=\$ac_optarg
cannam@252 1083 export $ac_envvar ;;
cannam@252 1084
cannam@252 1085 *)
cannam@252 1086 # FIXME: should be removed in autoconf 3.0.
Chris@315 1087 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
cannam@252 1088 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Chris@315 1089 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Chris@321 1090 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cannam@252 1091 ;;
cannam@252 1092
cannam@252 1093 esac
cannam@252 1094 done
cannam@252 1095
cannam@252 1096 if test -n "$ac_prev"; then
cannam@252 1097 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Chris@315 1098 as_fn_error $? "missing argument to $ac_option"
cannam@252 1099 fi
cannam@252 1100
Chris@315 1101 if test -n "$ac_unrecognized_opts"; then
Chris@315 1102 case $enable_option_checking in
Chris@315 1103 no) ;;
Chris@315 1104 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Chris@315 1105 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
Chris@315 1106 esac
Chris@315 1107 fi
Chris@315 1108
Chris@315 1109 # Check all directory arguments for consistency.
cannam@252 1110 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
cannam@252 1111 datadir sysconfdir sharedstatedir localstatedir includedir \
cannam@252 1112 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
cannam@252 1113 libdir localedir mandir
cannam@252 1114 do
cannam@252 1115 eval ac_val=\$$ac_var
Chris@315 1116 # Remove trailing slashes.
Chris@315 1117 case $ac_val in
Chris@315 1118 */ )
Chris@315 1119 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
Chris@315 1120 eval $ac_var=\$ac_val;;
Chris@315 1121 esac
Chris@315 1122 # Be sure to have absolute directory names.
cannam@252 1123 case $ac_val in
cannam@252 1124 [\\/$]* | ?:[\\/]* ) continue;;
cannam@252 1125 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
cannam@252 1126 esac
Chris@315 1127 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cannam@252 1128 done
cannam@252 1129
cannam@252 1130 # There might be people who depend on the old broken behavior: `$host'
cannam@252 1131 # used to hold the argument of --host etc.
cannam@252 1132 # FIXME: To remove some day.
cannam@252 1133 build=$build_alias
cannam@252 1134 host=$host_alias
cannam@252 1135 target=$target_alias
cannam@252 1136
cannam@252 1137 # FIXME: To remove some day.
cannam@252 1138 if test "x$host_alias" != x; then
cannam@252 1139 if test "x$build_alias" = x; then
cannam@252 1140 cross_compiling=maybe
Chris@315 1141 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
Chris@315 1142 If a cross compiler is detected then cross compile mode will be used" >&2
cannam@252 1143 elif test "x$build_alias" != "x$host_alias"; then
cannam@252 1144 cross_compiling=yes
cannam@252 1145 fi
cannam@252 1146 fi
cannam@252 1147
cannam@252 1148 ac_tool_prefix=
cannam@252 1149 test -n "$host_alias" && ac_tool_prefix=$host_alias-
cannam@252 1150
cannam@252 1151 test "$silent" = yes && exec 6>/dev/null
cannam@252 1152
cannam@252 1153
cannam@252 1154 ac_pwd=`pwd` && test -n "$ac_pwd" &&
cannam@252 1155 ac_ls_di=`ls -di .` &&
cannam@252 1156 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Chris@315 1157 as_fn_error $? "working directory cannot be determined"
cannam@252 1158 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Chris@315 1159 as_fn_error $? "pwd does not report name of working directory"
cannam@252 1160
cannam@252 1161
cannam@252 1162 # Find the source files, if location was not specified.
cannam@252 1163 if test -z "$srcdir"; then
cannam@252 1164 ac_srcdir_defaulted=yes
cannam@252 1165 # Try the directory containing this script, then the parent directory.
Chris@315 1166 ac_confdir=`$as_dirname -- "$as_myself" ||
Chris@315 1167 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@315 1168 X"$as_myself" : 'X\(//\)[^/]' \| \
Chris@315 1169 X"$as_myself" : 'X\(//\)$' \| \
Chris@315 1170 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
Chris@315 1171 $as_echo X"$as_myself" |
cannam@252 1172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@252 1173 s//\1/
cannam@252 1174 q
cannam@252 1175 }
cannam@252 1176 /^X\(\/\/\)[^/].*/{
cannam@252 1177 s//\1/
cannam@252 1178 q
cannam@252 1179 }
cannam@252 1180 /^X\(\/\/\)$/{
cannam@252 1181 s//\1/
cannam@252 1182 q
cannam@252 1183 }
cannam@252 1184 /^X\(\/\).*/{
cannam@252 1185 s//\1/
cannam@252 1186 q
cannam@252 1187 }
cannam@252 1188 s/.*/./; q'`
cannam@252 1189 srcdir=$ac_confdir
cannam@252 1190 if test ! -r "$srcdir/$ac_unique_file"; then
cannam@252 1191 srcdir=..
cannam@252 1192 fi
cannam@252 1193 else
cannam@252 1194 ac_srcdir_defaulted=no
cannam@252 1195 fi
cannam@252 1196 if test ! -r "$srcdir/$ac_unique_file"; then
cannam@252 1197 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Chris@315 1198 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cannam@252 1199 fi
cannam@252 1200 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
cannam@252 1201 ac_abs_confdir=`(
Chris@315 1202 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cannam@252 1203 pwd)`
cannam@252 1204 # When building in place, set srcdir=.
cannam@252 1205 if test "$ac_abs_confdir" = "$ac_pwd"; then
cannam@252 1206 srcdir=.
cannam@252 1207 fi
cannam@252 1208 # Remove unnecessary trailing slashes from srcdir.
cannam@252 1209 # Double slashes in file names in object file debugging info
cannam@252 1210 # mess up M-x gdb in Emacs.
cannam@252 1211 case $srcdir in
cannam@252 1212 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
cannam@252 1213 esac
cannam@252 1214 for ac_var in $ac_precious_vars; do
cannam@252 1215 eval ac_env_${ac_var}_set=\${${ac_var}+set}
cannam@252 1216 eval ac_env_${ac_var}_value=\$${ac_var}
cannam@252 1217 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
cannam@252 1218 eval ac_cv_env_${ac_var}_value=\$${ac_var}
cannam@252 1219 done
cannam@252 1220
cannam@252 1221 #
cannam@252 1222 # Report the --help message.
cannam@252 1223 #
cannam@252 1224 if test "$ac_init_help" = "long"; then
cannam@252 1225 # Omit some internal or obsolete options to make the list less imposing.
cannam@252 1226 # This message is too long to be a string in the A/UX 3.1 sh.
cannam@252 1227 cat <<_ACEOF
Chris@321 1228 \`configure' configures vamp-plugin-sdk 2.3.0 to adapt to many kinds of systems.
cannam@252 1229
cannam@252 1230 Usage: $0 [OPTION]... [VAR=VALUE]...
cannam@252 1231
cannam@252 1232 To assign environment variables (e.g., CC, CFLAGS...), specify them as
cannam@252 1233 VAR=VALUE. See below for descriptions of some of the useful variables.
cannam@252 1234
cannam@252 1235 Defaults for the options are specified in brackets.
cannam@252 1236
cannam@252 1237 Configuration:
cannam@252 1238 -h, --help display this help and exit
cannam@252 1239 --help=short display options specific to this package
cannam@252 1240 --help=recursive display the short help of all the included packages
cannam@252 1241 -V, --version display version information and exit
Chris@315 1242 -q, --quiet, --silent do not print \`checking ...' messages
cannam@252 1243 --cache-file=FILE cache test results in FILE [disabled]
cannam@252 1244 -C, --config-cache alias for \`--cache-file=config.cache'
cannam@252 1245 -n, --no-create do not create output files
cannam@252 1246 --srcdir=DIR find the sources in DIR [configure dir or \`..']
cannam@252 1247
cannam@252 1248 Installation directories:
cannam@252 1249 --prefix=PREFIX install architecture-independent files in PREFIX
Chris@315 1250 [$ac_default_prefix]
cannam@252 1251 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Chris@315 1252 [PREFIX]
cannam@252 1253
cannam@252 1254 By default, \`make install' will install all the files in
cannam@252 1255 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
cannam@252 1256 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
cannam@252 1257 for instance \`--prefix=\$HOME'.
cannam@252 1258
cannam@252 1259 For better control, use the options below.
cannam@252 1260
cannam@252 1261 Fine tuning of the installation directories:
Chris@315 1262 --bindir=DIR user executables [EPREFIX/bin]
Chris@315 1263 --sbindir=DIR system admin executables [EPREFIX/sbin]
Chris@315 1264 --libexecdir=DIR program executables [EPREFIX/libexec]
Chris@315 1265 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
Chris@315 1266 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
Chris@315 1267 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
Chris@315 1268 --libdir=DIR object code libraries [EPREFIX/lib]
Chris@315 1269 --includedir=DIR C header files [PREFIX/include]
Chris@315 1270 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Chris@315 1271 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
Chris@315 1272 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
Chris@315 1273 --infodir=DIR info documentation [DATAROOTDIR/info]
Chris@315 1274 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
Chris@315 1275 --mandir=DIR man documentation [DATAROOTDIR/man]
Chris@315 1276 --docdir=DIR documentation root [DATAROOTDIR/doc/vamp-plugin-sdk]
Chris@315 1277 --htmldir=DIR html documentation [DOCDIR]
Chris@315 1278 --dvidir=DIR dvi documentation [DOCDIR]
Chris@315 1279 --pdfdir=DIR pdf documentation [DOCDIR]
Chris@315 1280 --psdir=DIR ps documentation [DOCDIR]
cannam@252 1281 _ACEOF
cannam@252 1282
cannam@252 1283 cat <<\_ACEOF
cannam@252 1284 _ACEOF
cannam@252 1285 fi
cannam@252 1286
cannam@252 1287 if test -n "$ac_init_help"; then
cannam@252 1288 case $ac_init_help in
Chris@321 1289 short | recursive ) echo "Configuration of vamp-plugin-sdk 2.3.0:";;
cannam@252 1290 esac
cannam@252 1291 cat <<\_ACEOF
cannam@252 1292
cannam@278 1293 Optional Features:
Chris@315 1294 --disable-option-checking ignore unrecognized --enable/--with options
cannam@278 1295 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
cannam@278 1296 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cannam@278 1297 --enable-programs enable building of example host and RDF generator
cannam@278 1298 [default=yes]
cannam@278 1299
cannam@252 1300 Some influential environment variables:
cannam@252 1301 CXX C++ compiler command
cannam@252 1302 CXXFLAGS C++ compiler flags
cannam@252 1303 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
cannam@252 1304 nonstandard directory <lib dir>
cannam@252 1305 LIBS libraries to pass to the linker, e.g. -l<library>
Chris@315 1306 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cannam@252 1307 you have headers in a nonstandard directory <include dir>
cannam@252 1308 CC C compiler command
cannam@252 1309 CFLAGS C compiler flags
cannam@252 1310 CPP C preprocessor
cannam@252 1311 PKG_CONFIG path to pkg-config utility
Chris@315 1312 PKG_CONFIG_PATH
Chris@315 1313 directories to add to pkg-config's search path
Chris@315 1314 PKG_CONFIG_LIBDIR
Chris@315 1315 path overriding pkg-config's built-in search path
cannam@252 1316 SNDFILE_CFLAGS
cannam@252 1317 C compiler flags for SNDFILE, overriding pkg-config
cannam@252 1318 SNDFILE_LIBS
cannam@252 1319 linker flags for SNDFILE, overriding pkg-config
cannam@252 1320
cannam@252 1321 Use these variables to override the choices made by `configure' or to help
cannam@252 1322 it to find libraries and programs with nonstandard names/locations.
cannam@252 1323
cannam@252 1324 Report bugs to <cannam@all-day-breakfast.com>.
cannam@252 1325 _ACEOF
cannam@252 1326 ac_status=$?
cannam@252 1327 fi
cannam@252 1328
cannam@252 1329 if test "$ac_init_help" = "recursive"; then
cannam@252 1330 # If there are subdirs, report their specific --help.
cannam@252 1331 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Chris@315 1332 test -d "$ac_dir" ||
Chris@315 1333 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
Chris@315 1334 continue
cannam@252 1335 ac_builddir=.
cannam@252 1336
cannam@252 1337 case "$ac_dir" in
cannam@252 1338 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@252 1339 *)
Chris@315 1340 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
cannam@252 1341 # A ".." for each directory in $ac_dir_suffix.
Chris@315 1342 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
cannam@252 1343 case $ac_top_builddir_sub in
cannam@252 1344 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@252 1345 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
cannam@252 1346 esac ;;
cannam@252 1347 esac
cannam@252 1348 ac_abs_top_builddir=$ac_pwd
cannam@252 1349 ac_abs_builddir=$ac_pwd$ac_dir_suffix
cannam@252 1350 # for backward compatibility:
cannam@252 1351 ac_top_builddir=$ac_top_build_prefix
cannam@252 1352
cannam@252 1353 case $srcdir in
cannam@252 1354 .) # We are building in place.
cannam@252 1355 ac_srcdir=.
cannam@252 1356 ac_top_srcdir=$ac_top_builddir_sub
cannam@252 1357 ac_abs_top_srcdir=$ac_pwd ;;
cannam@252 1358 [\\/]* | ?:[\\/]* ) # Absolute name.
cannam@252 1359 ac_srcdir=$srcdir$ac_dir_suffix;
cannam@252 1360 ac_top_srcdir=$srcdir
cannam@252 1361 ac_abs_top_srcdir=$srcdir ;;
cannam@252 1362 *) # Relative name.
cannam@252 1363 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
cannam@252 1364 ac_top_srcdir=$ac_top_build_prefix$srcdir
cannam@252 1365 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
cannam@252 1366 esac
cannam@252 1367 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
cannam@252 1368
cannam@252 1369 cd "$ac_dir" || { ac_status=$?; continue; }
cannam@252 1370 # Check for guested configure.
cannam@252 1371 if test -f "$ac_srcdir/configure.gnu"; then
cannam@252 1372 echo &&
cannam@252 1373 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
cannam@252 1374 elif test -f "$ac_srcdir/configure"; then
cannam@252 1375 echo &&
cannam@252 1376 $SHELL "$ac_srcdir/configure" --help=recursive
cannam@252 1377 else
Chris@315 1378 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
cannam@252 1379 fi || ac_status=$?
cannam@252 1380 cd "$ac_pwd" || { ac_status=$?; break; }
cannam@252 1381 done
cannam@252 1382 fi
cannam@252 1383
cannam@252 1384 test -n "$ac_init_help" && exit $ac_status
cannam@252 1385 if $ac_init_version; then
cannam@252 1386 cat <<\_ACEOF
Chris@321 1387 vamp-plugin-sdk configure 2.3.0
Chris@321 1388 generated by GNU Autoconf 2.68
Chris@315 1389
Chris@315 1390 Copyright (C) 2010 Free Software Foundation, Inc.
cannam@252 1391 This configure script is free software; the Free Software Foundation
cannam@252 1392 gives unlimited permission to copy, distribute and modify it.
cannam@252 1393 _ACEOF
cannam@252 1394 exit
cannam@252 1395 fi
Chris@315 1396
Chris@315 1397 ## ------------------------ ##
Chris@315 1398 ## Autoconf initialization. ##
Chris@315 1399 ## ------------------------ ##
Chris@315 1400
Chris@315 1401 # ac_fn_cxx_try_compile LINENO
Chris@315 1402 # ----------------------------
Chris@315 1403 # Try to compile conftest.$ac_ext, and return whether this succeeded.
Chris@315 1404 ac_fn_cxx_try_compile ()
Chris@315 1405 {
Chris@315 1406 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@315 1407 rm -f conftest.$ac_objext
Chris@315 1408 if { { ac_try="$ac_compile"
Chris@315 1409 case "(($ac_try" in
Chris@315 1410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@315 1411 *) ac_try_echo=$ac_try;;
Chris@315 1412 esac
Chris@315 1413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@315 1414 $as_echo "$ac_try_echo"; } >&5
Chris@315 1415 (eval "$ac_compile") 2>conftest.err
Chris@315 1416 ac_status=$?
Chris@315 1417 if test -s conftest.err; then
Chris@315 1418 grep -v '^ *+' conftest.err >conftest.er1
Chris@315 1419 cat conftest.er1 >&5
Chris@315 1420 mv -f conftest.er1 conftest.err
Chris@315 1421 fi
Chris@315 1422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@315 1423 test $ac_status = 0; } && {
Chris@315 1424 test -z "$ac_cxx_werror_flag" ||
Chris@315 1425 test ! -s conftest.err
Chris@315 1426 } && test -s conftest.$ac_objext; then :
Chris@315 1427 ac_retval=0
Chris@315 1428 else
Chris@315 1429 $as_echo "$as_me: failed program was:" >&5
Chris@315 1430 sed 's/^/| /' conftest.$ac_ext >&5
Chris@315 1431
Chris@315 1432 ac_retval=1
Chris@315 1433 fi
Chris@321 1434 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@315 1435 as_fn_set_status $ac_retval
Chris@315 1436
Chris@315 1437 } # ac_fn_cxx_try_compile
Chris@315 1438
Chris@315 1439 # ac_fn_c_try_compile LINENO
Chris@315 1440 # --------------------------
Chris@315 1441 # Try to compile conftest.$ac_ext, and return whether this succeeded.
Chris@315 1442 ac_fn_c_try_compile ()
Chris@315 1443 {
Chris@315 1444 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@315 1445 rm -f conftest.$ac_objext
Chris@315 1446 if { { ac_try="$ac_compile"
Chris@315 1447 case "(($ac_try" in
Chris@315 1448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@315 1449 *) ac_try_echo=$ac_try;;
Chris@315 1450 esac
Chris@315 1451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@315 1452 $as_echo "$ac_try_echo"; } >&5
Chris@315 1453 (eval "$ac_compile") 2>conftest.err
Chris@315 1454 ac_status=$?
Chris@315 1455 if test -s conftest.err; then
Chris@315 1456 grep -v '^ *+' conftest.err >conftest.er1
Chris@315 1457 cat conftest.er1 >&5
Chris@315 1458 mv -f conftest.er1 conftest.err
Chris@315 1459 fi
Chris@315 1460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@315 1461 test $ac_status = 0; } && {
Chris@315 1462 test -z "$ac_c_werror_flag" ||
Chris@315 1463 test ! -s conftest.err
Chris@315 1464 } && test -s conftest.$ac_objext; then :
Chris@315 1465 ac_retval=0
Chris@315 1466 else
Chris@315 1467 $as_echo "$as_me: failed program was:" >&5
Chris@315 1468 sed 's/^/| /' conftest.$ac_ext >&5
Chris@315 1469
Chris@315 1470 ac_retval=1
Chris@315 1471 fi
Chris@321 1472 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@315 1473 as_fn_set_status $ac_retval
Chris@315 1474
Chris@315 1475 } # ac_fn_c_try_compile
Chris@315 1476
Chris@315 1477 # ac_fn_c_try_cpp LINENO
Chris@315 1478 # ----------------------
Chris@315 1479 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
Chris@315 1480 ac_fn_c_try_cpp ()
Chris@315 1481 {
Chris@315 1482 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@315 1483 if { { ac_try="$ac_cpp conftest.$ac_ext"
Chris@315 1484 case "(($ac_try" in
Chris@315 1485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@315 1486 *) ac_try_echo=$ac_try;;
Chris@315 1487 esac
Chris@315 1488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@315 1489 $as_echo "$ac_try_echo"; } >&5
Chris@315 1490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
Chris@315 1491 ac_status=$?
Chris@315 1492 if test -s conftest.err; then
Chris@315 1493 grep -v '^ *+' conftest.err >conftest.er1
Chris@315 1494 cat conftest.er1 >&5
Chris@315 1495 mv -f conftest.er1 conftest.err
Chris@315 1496 fi
Chris@315 1497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@315 1498 test $ac_status = 0; } > conftest.i && {
Chris@315 1499 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
Chris@315 1500 test ! -s conftest.err
Chris@315 1501 }; then :
Chris@315 1502 ac_retval=0
Chris@315 1503 else
Chris@315 1504 $as_echo "$as_me: failed program was:" >&5
Chris@315 1505 sed 's/^/| /' conftest.$ac_ext >&5
Chris@315 1506
Chris@315 1507 ac_retval=1
Chris@315 1508 fi
Chris@321 1509 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@315 1510 as_fn_set_status $ac_retval
Chris@315 1511
Chris@315 1512 } # ac_fn_c_try_cpp
Chris@315 1513
Chris@315 1514 # ac_fn_c_try_run LINENO
Chris@315 1515 # ----------------------
Chris@315 1516 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
Chris@315 1517 # that executables *can* be run.
Chris@315 1518 ac_fn_c_try_run ()
Chris@315 1519 {
Chris@315 1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@315 1521 if { { ac_try="$ac_link"
Chris@315 1522 case "(($ac_try" in
Chris@315 1523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@315 1524 *) ac_try_echo=$ac_try;;
Chris@315 1525 esac
Chris@315 1526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@315 1527 $as_echo "$ac_try_echo"; } >&5
Chris@315 1528 (eval "$ac_link") 2>&5
Chris@315 1529 ac_status=$?
Chris@315 1530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@315 1531 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
Chris@315 1532 { { case "(($ac_try" in
Chris@315 1533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@315 1534 *) ac_try_echo=$ac_try;;
Chris@315 1535 esac
Chris@315 1536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@315 1537 $as_echo "$ac_try_echo"; } >&5
Chris@315 1538 (eval "$ac_try") 2>&5
Chris@315 1539 ac_status=$?
Chris@315 1540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@315 1541 test $ac_status = 0; }; }; then :
Chris@315 1542 ac_retval=0
Chris@315 1543 else
Chris@315 1544 $as_echo "$as_me: program exited with status $ac_status" >&5
Chris@315 1545 $as_echo "$as_me: failed program was:" >&5
Chris@315 1546 sed 's/^/| /' conftest.$ac_ext >&5
Chris@315 1547
Chris@315 1548 ac_retval=$ac_status
Chris@315 1549 fi
Chris@315 1550 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Chris@321 1551 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@315 1552 as_fn_set_status $ac_retval
Chris@315 1553
Chris@315 1554 } # ac_fn_c_try_run
Chris@315 1555
Chris@315 1556 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
Chris@315 1557 # -------------------------------------------------------
Chris@315 1558 # Tests whether HEADER exists and can be compiled using the include files in
Chris@315 1559 # INCLUDES, setting the cache variable VAR accordingly.
Chris@315 1560 ac_fn_c_check_header_compile ()
Chris@315 1561 {
Chris@315 1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@315 1563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@315 1564 $as_echo_n "checking for $2... " >&6; }
Chris@321 1565 if eval \${$3+:} false; then :
Chris@315 1566 $as_echo_n "(cached) " >&6
Chris@315 1567 else
Chris@315 1568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@315 1569 /* end confdefs.h. */
Chris@315 1570 $4
Chris@315 1571 #include <$2>
Chris@315 1572 _ACEOF
Chris@315 1573 if ac_fn_c_try_compile "$LINENO"; then :
Chris@315 1574 eval "$3=yes"
Chris@315 1575 else
Chris@315 1576 eval "$3=no"
Chris@315 1577 fi
Chris@315 1578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@315 1579 fi
Chris@315 1580 eval ac_res=\$$3
Chris@315 1581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@315 1582 $as_echo "$ac_res" >&6; }
Chris@321 1583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@315 1584
Chris@315 1585 } # ac_fn_c_check_header_compile
Chris@315 1586
Chris@315 1587 # ac_fn_c_try_link LINENO
Chris@315 1588 # -----------------------
Chris@315 1589 # Try to link conftest.$ac_ext, and return whether this succeeded.
Chris@315 1590 ac_fn_c_try_link ()
Chris@315 1591 {
Chris@315 1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@315 1593 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@315 1594 if { { ac_try="$ac_link"
Chris@315 1595 case "(($ac_try" in
Chris@315 1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@315 1597 *) ac_try_echo=$ac_try;;
Chris@315 1598 esac
Chris@315 1599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@315 1600 $as_echo "$ac_try_echo"; } >&5
Chris@315 1601 (eval "$ac_link") 2>conftest.err
Chris@315 1602 ac_status=$?
Chris@315 1603 if test -s conftest.err; then
Chris@315 1604 grep -v '^ *+' conftest.err >conftest.er1
Chris@315 1605 cat conftest.er1 >&5
Chris@315 1606 mv -f conftest.er1 conftest.err
Chris@315 1607 fi
Chris@315 1608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@315 1609 test $ac_status = 0; } && {
Chris@315 1610 test -z "$ac_c_werror_flag" ||
Chris@315 1611 test ! -s conftest.err
Chris@315 1612 } && test -s conftest$ac_exeext && {
Chris@315 1613 test "$cross_compiling" = yes ||
Chris@315 1614 $as_test_x conftest$ac_exeext
Chris@315 1615 }; then :
Chris@315 1616 ac_retval=0
Chris@315 1617 else
Chris@315 1618 $as_echo "$as_me: failed program was:" >&5
Chris@315 1619 sed 's/^/| /' conftest.$ac_ext >&5
Chris@315 1620
Chris@315 1621 ac_retval=1
Chris@315 1622 fi
Chris@315 1623 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
Chris@315 1624 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
Chris@315 1625 # interfere with the next link command; also delete a directory that is
Chris@315 1626 # left behind by Apple's compiler. We do this before executing the actions.
Chris@315 1627 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Chris@321 1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@315 1629 as_fn_set_status $ac_retval
Chris@315 1630
Chris@315 1631 } # ac_fn_c_try_link
cannam@252 1632 cat >config.log <<_ACEOF
cannam@252 1633 This file contains any messages produced by compilers while
cannam@252 1634 running configure, to aid debugging if configure makes a mistake.
cannam@252 1635
Chris@321 1636 It was created by vamp-plugin-sdk $as_me 2.3.0, which was
Chris@321 1637 generated by GNU Autoconf 2.68. Invocation command line was
cannam@252 1638
cannam@252 1639 $ $0 $@
cannam@252 1640
cannam@252 1641 _ACEOF
cannam@252 1642 exec 5>>config.log
cannam@252 1643 {
cannam@252 1644 cat <<_ASUNAME
cannam@252 1645 ## --------- ##
cannam@252 1646 ## Platform. ##
cannam@252 1647 ## --------- ##
cannam@252 1648
cannam@252 1649 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
cannam@252 1650 uname -m = `(uname -m) 2>/dev/null || echo unknown`
cannam@252 1651 uname -r = `(uname -r) 2>/dev/null || echo unknown`
cannam@252 1652 uname -s = `(uname -s) 2>/dev/null || echo unknown`
cannam@252 1653 uname -v = `(uname -v) 2>/dev/null || echo unknown`
cannam@252 1654
cannam@252 1655 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
cannam@252 1656 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
cannam@252 1657
cannam@252 1658 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
cannam@252 1659 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
cannam@252 1660 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
cannam@252 1661 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
cannam@252 1662 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
cannam@252 1663 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
cannam@252 1664 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
cannam@252 1665
cannam@252 1666 _ASUNAME
cannam@252 1667
cannam@252 1668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@252 1669 for as_dir in $PATH
cannam@252 1670 do
cannam@252 1671 IFS=$as_save_IFS
cannam@252 1672 test -z "$as_dir" && as_dir=.
Chris@315 1673 $as_echo "PATH: $as_dir"
Chris@315 1674 done
cannam@252 1675 IFS=$as_save_IFS
cannam@252 1676
cannam@252 1677 } >&5
cannam@252 1678
cannam@252 1679 cat >&5 <<_ACEOF
cannam@252 1680
cannam@252 1681
cannam@252 1682 ## ----------- ##
cannam@252 1683 ## Core tests. ##
cannam@252 1684 ## ----------- ##
cannam@252 1685
cannam@252 1686 _ACEOF
cannam@252 1687
cannam@252 1688
cannam@252 1689 # Keep a trace of the command line.
cannam@252 1690 # Strip out --no-create and --no-recursion so they do not pile up.
cannam@252 1691 # Strip out --silent because we don't want to record it for future runs.
cannam@252 1692 # Also quote any args containing shell meta-characters.
cannam@252 1693 # Make two passes to allow for proper duplicate-argument suppression.
cannam@252 1694 ac_configure_args=
cannam@252 1695 ac_configure_args0=
cannam@252 1696 ac_configure_args1=
cannam@252 1697 ac_must_keep_next=false
cannam@252 1698 for ac_pass in 1 2
cannam@252 1699 do
cannam@252 1700 for ac_arg
cannam@252 1701 do
cannam@252 1702 case $ac_arg in
cannam@252 1703 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
cannam@252 1704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
cannam@252 1705 | -silent | --silent | --silen | --sile | --sil)
cannam@252 1706 continue ;;
cannam@252 1707 *\'*)
Chris@315 1708 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@252 1709 esac
cannam@252 1710 case $ac_pass in
Chris@315 1711 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cannam@252 1712 2)
Chris@315 1713 as_fn_append ac_configure_args1 " '$ac_arg'"
cannam@252 1714 if test $ac_must_keep_next = true; then
cannam@252 1715 ac_must_keep_next=false # Got value, back to normal.
cannam@252 1716 else
cannam@252 1717 case $ac_arg in
cannam@252 1718 *=* | --config-cache | -C | -disable-* | --disable-* \
cannam@252 1719 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
cannam@252 1720 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
cannam@252 1721 | -with-* | --with-* | -without-* | --without-* | --x)
cannam@252 1722 case "$ac_configure_args0 " in
cannam@252 1723 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
cannam@252 1724 esac
cannam@252 1725 ;;
cannam@252 1726 -* ) ac_must_keep_next=true ;;
cannam@252 1727 esac
cannam@252 1728 fi
Chris@315 1729 as_fn_append ac_configure_args " '$ac_arg'"
cannam@252 1730 ;;
cannam@252 1731 esac
cannam@252 1732 done
cannam@252 1733 done
Chris@315 1734 { ac_configure_args0=; unset ac_configure_args0;}
Chris@315 1735 { ac_configure_args1=; unset ac_configure_args1;}
cannam@252 1736
cannam@252 1737 # When interrupted or exit'd, cleanup temporary files, and complete
cannam@252 1738 # config.log. We remove comments because anyway the quotes in there
cannam@252 1739 # would cause problems or look ugly.
cannam@252 1740 # WARNING: Use '\'' to represent an apostrophe within the trap.
cannam@252 1741 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
cannam@252 1742 trap 'exit_status=$?
cannam@252 1743 # Save into config.log some information that might help in debugging.
cannam@252 1744 {
cannam@252 1745 echo
cannam@252 1746
Chris@315 1747 $as_echo "## ---------------- ##
cannam@252 1748 ## Cache variables. ##
Chris@315 1749 ## ---------------- ##"
cannam@252 1750 echo
cannam@252 1751 # The following way of writing the cache mishandles newlines in values,
cannam@252 1752 (
cannam@252 1753 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
cannam@252 1754 eval ac_val=\$$ac_var
cannam@252 1755 case $ac_val in #(
cannam@252 1756 *${as_nl}*)
cannam@252 1757 case $ac_var in #(
Chris@315 1758 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Chris@315 1759 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
cannam@252 1760 esac
cannam@252 1761 case $ac_var in #(
cannam@252 1762 _ | IFS | as_nl) ;; #(
Chris@315 1763 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Chris@315 1764 *) { eval $ac_var=; unset $ac_var;} ;;
cannam@252 1765 esac ;;
cannam@252 1766 esac
cannam@252 1767 done
cannam@252 1768 (set) 2>&1 |
cannam@252 1769 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
cannam@252 1770 *${as_nl}ac_space=\ *)
cannam@252 1771 sed -n \
cannam@252 1772 "s/'\''/'\''\\\\'\'''\''/g;
cannam@252 1773 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
cannam@252 1774 ;; #(
cannam@252 1775 *)
cannam@252 1776 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
cannam@252 1777 ;;
cannam@252 1778 esac |
cannam@252 1779 sort
cannam@252 1780 )
cannam@252 1781 echo
cannam@252 1782
Chris@315 1783 $as_echo "## ----------------- ##
cannam@252 1784 ## Output variables. ##
Chris@315 1785 ## ----------------- ##"
cannam@252 1786 echo
cannam@252 1787 for ac_var in $ac_subst_vars
cannam@252 1788 do
cannam@252 1789 eval ac_val=\$$ac_var
cannam@252 1790 case $ac_val in
Chris@315 1791 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
cannam@252 1792 esac
Chris@315 1793 $as_echo "$ac_var='\''$ac_val'\''"
cannam@252 1794 done | sort
cannam@252 1795 echo
cannam@252 1796
cannam@252 1797 if test -n "$ac_subst_files"; then
Chris@315 1798 $as_echo "## ------------------- ##
cannam@252 1799 ## File substitutions. ##
Chris@315 1800 ## ------------------- ##"
cannam@252 1801 echo
cannam@252 1802 for ac_var in $ac_subst_files
cannam@252 1803 do
cannam@252 1804 eval ac_val=\$$ac_var
cannam@252 1805 case $ac_val in
Chris@315 1806 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
cannam@252 1807 esac
Chris@315 1808 $as_echo "$ac_var='\''$ac_val'\''"
cannam@252 1809 done | sort
cannam@252 1810 echo
cannam@252 1811 fi
cannam@252 1812
cannam@252 1813 if test -s confdefs.h; then
Chris@315 1814 $as_echo "## ----------- ##
cannam@252 1815 ## confdefs.h. ##
Chris@315 1816 ## ----------- ##"
cannam@252 1817 echo
cannam@252 1818 cat confdefs.h
cannam@252 1819 echo
cannam@252 1820 fi
cannam@252 1821 test "$ac_signal" != 0 &&
Chris@315 1822 $as_echo "$as_me: caught signal $ac_signal"
Chris@315 1823 $as_echo "$as_me: exit $exit_status"
cannam@252 1824 } >&5
cannam@252 1825 rm -f core *.core core.conftest.* &&
cannam@252 1826 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
cannam@252 1827 exit $exit_status
cannam@252 1828 ' 0
cannam@252 1829 for ac_signal in 1 2 13 15; do
Chris@315 1830 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cannam@252 1831 done
cannam@252 1832 ac_signal=0
cannam@252 1833
cannam@252 1834 # confdefs.h avoids OS command line length limits that DEFS can exceed.
cannam@252 1835 rm -f -r conftest* confdefs.h
cannam@252 1836
Chris@315 1837 $as_echo "/* confdefs.h */" > confdefs.h
Chris@315 1838
cannam@252 1839 # Predefined preprocessor variables.
cannam@252 1840
cannam@252 1841 cat >>confdefs.h <<_ACEOF
cannam@252 1842 #define PACKAGE_NAME "$PACKAGE_NAME"
cannam@252 1843 _ACEOF
cannam@252 1844
cannam@252 1845 cat >>confdefs.h <<_ACEOF
cannam@252 1846 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
cannam@252 1847 _ACEOF
cannam@252 1848
cannam@252 1849 cat >>confdefs.h <<_ACEOF
cannam@252 1850 #define PACKAGE_VERSION "$PACKAGE_VERSION"
cannam@252 1851 _ACEOF
cannam@252 1852
cannam@252 1853 cat >>confdefs.h <<_ACEOF
cannam@252 1854 #define PACKAGE_STRING "$PACKAGE_STRING"
cannam@252 1855 _ACEOF
cannam@252 1856
cannam@252 1857 cat >>confdefs.h <<_ACEOF
cannam@252 1858 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
cannam@252 1859 _ACEOF
cannam@252 1860
Chris@315 1861 cat >>confdefs.h <<_ACEOF
Chris@315 1862 #define PACKAGE_URL "$PACKAGE_URL"
Chris@315 1863 _ACEOF
Chris@315 1864
cannam@252 1865
cannam@252 1866 # Let the site file select an alternate cache file if it wants to.
Chris@315 1867 # Prefer an explicitly selected file to automatically selected ones.
Chris@315 1868 ac_site_file1=NONE
Chris@315 1869 ac_site_file2=NONE
cannam@252 1870 if test -n "$CONFIG_SITE"; then
Chris@315 1871 # We do not want a PATH search for config.site.
Chris@315 1872 case $CONFIG_SITE in #((
Chris@315 1873 -*) ac_site_file1=./$CONFIG_SITE;;
Chris@315 1874 */*) ac_site_file1=$CONFIG_SITE;;
Chris@315 1875 *) ac_site_file1=./$CONFIG_SITE;;
Chris@315 1876 esac
cannam@252 1877 elif test "x$prefix" != xNONE; then
Chris@315 1878 ac_site_file1=$prefix/share/config.site
Chris@315 1879 ac_site_file2=$prefix/etc/config.site
cannam@252 1880 else
Chris@315 1881 ac_site_file1=$ac_default_prefix/share/config.site
Chris@315 1882 ac_site_file2=$ac_default_prefix/etc/config.site
cannam@252 1883 fi
Chris@315 1884 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
cannam@252 1885 do
Chris@315 1886 test "x$ac_site_file" = xNONE && continue
Chris@315 1887 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Chris@315 1888 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Chris@315 1889 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
cannam@252 1890 sed 's/^/| /' "$ac_site_file" >&5
Chris@315 1891 . "$ac_site_file" \
Chris@315 1892 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@315 1893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@315 1894 as_fn_error $? "failed to load site script $ac_site_file
Chris@321 1895 See \`config.log' for more details" "$LINENO" 5; }
cannam@252 1896 fi
cannam@252 1897 done
cannam@252 1898
cannam@252 1899 if test -r "$cache_file"; then
Chris@315 1900 # Some versions of bash will fail to source /dev/null (special files
Chris@315 1901 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
Chris@315 1902 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Chris@315 1903 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Chris@315 1904 $as_echo "$as_me: loading cache $cache_file" >&6;}
cannam@252 1905 case $cache_file in
cannam@252 1906 [\\/]* | ?:[\\/]* ) . "$cache_file";;
cannam@252 1907 *) . "./$cache_file";;
cannam@252 1908 esac
cannam@252 1909 fi
cannam@252 1910 else
Chris@315 1911 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Chris@315 1912 $as_echo "$as_me: creating cache $cache_file" >&6;}
cannam@252 1913 >$cache_file
cannam@252 1914 fi
cannam@252 1915
cannam@252 1916 # Check that the precious variables saved in the cache have kept the same
cannam@252 1917 # value.
cannam@252 1918 ac_cache_corrupted=false
cannam@252 1919 for ac_var in $ac_precious_vars; do
cannam@252 1920 eval ac_old_set=\$ac_cv_env_${ac_var}_set
cannam@252 1921 eval ac_new_set=\$ac_env_${ac_var}_set
cannam@252 1922 eval ac_old_val=\$ac_cv_env_${ac_var}_value
cannam@252 1923 eval ac_new_val=\$ac_env_${ac_var}_value
cannam@252 1924 case $ac_old_set,$ac_new_set in
cannam@252 1925 set,)
Chris@315 1926 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Chris@315 1927 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
cannam@252 1928 ac_cache_corrupted=: ;;
cannam@252 1929 ,set)
Chris@315 1930 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
Chris@315 1931 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
cannam@252 1932 ac_cache_corrupted=: ;;
cannam@252 1933 ,);;
cannam@252 1934 *)
cannam@252 1935 if test "x$ac_old_val" != "x$ac_new_val"; then
Chris@315 1936 # differences in whitespace do not lead to failure.
Chris@315 1937 ac_old_val_w=`echo x $ac_old_val`
Chris@315 1938 ac_new_val_w=`echo x $ac_new_val`
Chris@315 1939 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Chris@315 1940 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
Chris@315 1941 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Chris@315 1942 ac_cache_corrupted=:
Chris@315 1943 else
Chris@315 1944 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
Chris@315 1945 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
Chris@315 1946 eval $ac_var=\$ac_old_val
Chris@315 1947 fi
Chris@315 1948 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Chris@315 1949 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Chris@315 1950 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Chris@315 1951 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
cannam@252 1952 fi;;
cannam@252 1953 esac
cannam@252 1954 # Pass precious variables to config.status.
cannam@252 1955 if test "$ac_new_set" = set; then
cannam@252 1956 case $ac_new_val in
Chris@315 1957 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@252 1958 *) ac_arg=$ac_var=$ac_new_val ;;
cannam@252 1959 esac
cannam@252 1960 case " $ac_configure_args " in
cannam@252 1961 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Chris@315 1962 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cannam@252 1963 esac
cannam@252 1964 fi
cannam@252 1965 done
cannam@252 1966 if $ac_cache_corrupted; then
Chris@315 1967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@315 1968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@315 1969 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
Chris@315 1970 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Chris@315 1971 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cannam@252 1972 fi
Chris@315 1973 ## -------------------- ##
Chris@315 1974 ## Main body of script. ##
Chris@315 1975 ## -------------------- ##
cannam@252 1976
cannam@252 1977 ac_ext=c
cannam@252 1978 ac_cpp='$CPP $CPPFLAGS'
cannam@252 1979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@252 1980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@252 1981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@252 1982
cannam@252 1983
cannam@252 1984
cannam@252 1985
cannam@252 1986 ac_ext=cpp
cannam@252 1987 ac_cpp='$CXXCPP $CPPFLAGS'
cannam@252 1988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@252 1989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@252 1990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cannam@252 1991 if test -z "$CXX"; then
cannam@252 1992 if test -n "$CCC"; then
cannam@252 1993 CXX=$CCC
cannam@252 1994 else
cannam@252 1995 if test -n "$ac_tool_prefix"; then
cannam@252 1996 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
cannam@252 1997 do
cannam@252 1998 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
cannam@252 1999 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@315 2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@315 2001 $as_echo_n "checking for $ac_word... " >&6; }
Chris@321 2002 if ${ac_cv_prog_CXX+:} false; then :
Chris@315 2003 $as_echo_n "(cached) " >&6
cannam@252 2004 else
cannam@252 2005 if test -n "$CXX"; then
cannam@252 2006 ac_cv_prog_CXX="$CXX" # Let the user override the test.
cannam@252 2007 else
cannam@252 2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@252 2009 for as_dir in $PATH
cannam@252 2010 do
cannam@252 2011 IFS=$as_save_IFS
cannam@252 2012 test -z "$as_dir" && as_dir=.
Chris@315 2013 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@252 2014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@252 2015 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Chris@315 2016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@252 2017 break 2
cannam@252 2018 fi
cannam@252 2019 done
Chris@315 2020 done
cannam@252 2021 IFS=$as_save_IFS
cannam@252 2022
cannam@252 2023 fi
cannam@252 2024 fi
cannam@252 2025 CXX=$ac_cv_prog_CXX
cannam@252 2026 if test -n "$CXX"; then
Chris@315 2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
Chris@315 2028 $as_echo "$CXX" >&6; }
cannam@252 2029 else
Chris@315 2030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@315 2031 $as_echo "no" >&6; }
cannam@252 2032 fi
cannam@252 2033
cannam@252 2034
cannam@252 2035 test -n "$CXX" && break
cannam@252 2036 done
cannam@252 2037 fi
cannam@252 2038 if test -z "$CXX"; then
cannam@252 2039 ac_ct_CXX=$CXX
cannam@252 2040 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
cannam@252 2041 do
cannam@252 2042 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@252 2043 set dummy $ac_prog; ac_word=$2
Chris@315 2044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@315 2045 $as_echo_n "checking for $ac_word... " >&6; }
Chris@321 2046 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
Chris@315 2047 $as_echo_n "(cached) " >&6
cannam@252 2048 else
cannam@252 2049 if test -n "$ac_ct_CXX"; then
cannam@252 2050 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
cannam@252 2051 else
cannam@252 2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@252 2053 for as_dir in $PATH
cannam@252 2054 do
cannam@252 2055 IFS=$as_save_IFS
cannam@252 2056 test -z "$as_dir" && as_dir=.
Chris@315 2057 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@252 2058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@252 2059 ac_cv_prog_ac_ct_CXX="$ac_prog"
Chris@315 2060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@252 2061 break 2
cannam@252 2062 fi
cannam@252 2063 done
Chris@315 2064 done
cannam@252 2065 IFS=$as_save_IFS
cannam@252 2066
cannam@252 2067 fi
cannam@252 2068 fi
cannam@252 2069 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
cannam@252 2070 if test -n "$ac_ct_CXX"; then
Chris@315 2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
Chris@315 2072 $as_echo "$ac_ct_CXX" >&6; }
cannam@252 2073 else
Chris@315 2074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@315 2075 $as_echo "no" >&6; }
cannam@252 2076 fi
cannam@252 2077
cannam@252 2078
cannam@252 2079 test -n "$ac_ct_CXX" && break
cannam@252 2080 done
cannam@252 2081
cannam@252 2082 if test "x$ac_ct_CXX" = x; then
cannam@252 2083 CXX="g++"
cannam@252 2084 else
cannam@252 2085 case $cross_compiling:$ac_tool_warned in
cannam@252 2086 yes:)
Chris@315 2087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@315 2088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@252 2089 ac_tool_warned=yes ;;
cannam@252 2090 esac
cannam@252 2091 CXX=$ac_ct_CXX
cannam@252 2092 fi
cannam@252 2093 fi
cannam@252 2094
cannam@252 2095 fi
cannam@252 2096 fi
cannam@252 2097 # Provide some information about the compiler.
Chris@315 2098 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
Chris@315 2099 set X $ac_compile
Chris@315 2100 ac_compiler=$2
Chris@315 2101 for ac_option in --version -v -V -qversion; do
Chris@315 2102 { { ac_try="$ac_compiler $ac_option >&5"
cannam@252 2103 case "(($ac_try" in
cannam@252 2104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@252 2105 *) ac_try_echo=$ac_try;;
cannam@252 2106 esac
Chris@315 2107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@315 2108 $as_echo "$ac_try_echo"; } >&5
Chris@315 2109 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cannam@252 2110 ac_status=$?
Chris@315 2111 if test -s conftest.err; then
Chris@315 2112 sed '10a\
Chris@315 2113 ... rest of stderr output deleted ...
Chris@315 2114 10q' conftest.err >conftest.er1
Chris@315 2115 cat conftest.er1 >&5
Chris@315 2116 fi
Chris@315 2117 rm -f conftest.er1 conftest.err
Chris@315 2118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@315 2119 test $ac_status = 0; }
Chris@315 2120 done
Chris@315 2121
Chris@315 2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@252 2123 /* end confdefs.h. */
cannam@252 2124
cannam@252 2125 int
cannam@252 2126 main ()
cannam@252 2127 {
cannam@252 2128
cannam@252 2129 ;
cannam@252 2130 return 0;
cannam@252 2131 }
cannam@252 2132 _ACEOF
cannam@252 2133 ac_clean_files_save=$ac_clean_files
Chris@315 2134 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cannam@252 2135 # Try to create an executable without -o first, disregard a.out.
cannam@252 2136 # It will help us diagnose broken compilers, and finding out an intuition
cannam@252 2137 # of exeext.
Chris@315 2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
Chris@315 2139 $as_echo_n "checking whether the C++ compiler works... " >&6; }
Chris@315 2140 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Chris@315 2141
Chris@315 2142 # The possible output files:
Chris@315 2143 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
Chris@315 2144
cannam@252 2145 ac_rmfiles=
cannam@252 2146 for ac_file in $ac_files
cannam@252 2147 do
cannam@252 2148 case $ac_file in
Chris@315 2149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
cannam@252 2150 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
cannam@252 2151 esac
cannam@252 2152 done
cannam@252 2153 rm -f $ac_rmfiles
cannam@252 2154
Chris@315 2155 if { { ac_try="$ac_link_default"
cannam@252 2156 case "(($ac_try" in
cannam@252 2157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@252 2158 *) ac_try_echo=$ac_try;;
cannam@252 2159 esac
Chris@315 2160 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@315 2161 $as_echo "$ac_try_echo"; } >&5
cannam@252 2162 (eval "$ac_link_default") 2>&5
cannam@252 2163 ac_status=$?
Chris@315 2164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@315 2165 test $ac_status = 0; }; then :
cannam@252 2166 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
cannam@252 2167 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
cannam@252 2168 # in a Makefile. We should not override ac_cv_exeext if it was cached,
cannam@252 2169 # so that the user can short-circuit this test for compilers unknown to
cannam@252 2170 # Autoconf.
cannam@252 2171 for ac_file in $ac_files ''
cannam@252 2172 do
cannam@252 2173 test -f "$ac_file" || continue
cannam@252 2174 case $ac_file in
Chris@315 2175 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
cannam@252 2176 ;;
cannam@252 2177 [ab].out )
cannam@252 2178 # We found the default executable, but exeext='' is most
cannam@252 2179 # certainly right.
cannam@252 2180 break;;
cannam@252 2181 *.* )
Chris@315 2182 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cannam@252 2183 then :; else
cannam@252 2184 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
cannam@252 2185 fi
cannam@252 2186 # We set ac_cv_exeext here because the later test for it is not
cannam@252 2187 # safe: cross compilers may not add the suffix if given an `-o'
cannam@252 2188 # argument, so we may need to know it at that point already.
cannam@252 2189 # Even if this section looks crufty: it has the advantage of
cannam@252 2190 # actually working.
cannam@252 2191 break;;
cannam@252 2192 * )
cannam@252 2193 break;;
cannam@252 2194 esac
cannam@252 2195 done
cannam@252 2196 test "$ac_cv_exeext" = no && ac_cv_exeext=
cannam@252 2197
cannam@252 2198 else
cannam@252 2199 ac_file=''
cannam@252 2200 fi
Chris@315 2201 if test -z "$ac_file"; then :
Chris@315 2202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@315 2203 $as_echo "no" >&6; }
Chris@315 2204 $as_echo "$as_me: failed program was:" >&5
cannam@252 2205 sed 's/^/| /' conftest.$ac_ext >&5
cannam@252 2206
Chris@315 2207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@315 2208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@315 2209 as_fn_error 77 "C++ compiler cannot create executables
Chris@321 2210 See \`config.log' for more details" "$LINENO" 5; }
Chris@315 2211 else
Chris@315 2212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@315 2213 $as_echo "yes" >&6; }
cannam@252 2214 fi
Chris@315 2215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
Chris@315 2216 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
Chris@315 2217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
Chris@315 2218 $as_echo "$ac_file" >&6; }
cannam@252 2219 ac_exeext=$ac_cv_exeext
cannam@252 2220
Chris@315 2221 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cannam@252 2222 ac_clean_files=$ac_clean_files_save
Chris@315 2223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Chris@315 2224 $as_echo_n "checking for suffix of executables... " >&6; }
Chris@315 2225 if { { ac_try="$ac_link"
cannam@252 2226 case "(($ac_try" in
cannam@252 2227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@252 2228 *) ac_try_echo=$ac_try;;
cannam@252 2229 esac
Chris@315 2230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@315 2231 $as_echo "$ac_try_echo"; } >&5
cannam@252 2232 (eval "$ac_link") 2>&5
cannam@252 2233 ac_status=$?
Chris@315 2234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@315 2235 test $ac_status = 0; }; then :
cannam@252 2236 # If both `conftest.exe' and `conftest' are `present' (well, observable)
cannam@252 2237 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
cannam@252 2238 # work properly (i.e., refer to `conftest.exe'), while it won't with
cannam@252 2239 # `rm'.
cannam@252 2240 for ac_file in conftest.exe conftest conftest.*; do
cannam@252 2241 test -f "$ac_file" || continue
cannam@252 2242 case $ac_file in
Chris@315 2243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
cannam@252 2244 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
cannam@252 2245 break;;
cannam@252 2246 * ) break;;
cannam@252 2247 esac
cannam@252 2248 done
cannam@252 2249 else
Chris@315 2250 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@315 2251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@315 2252 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
Chris@321 2253 See \`config.log' for more details" "$LINENO" 5; }
cannam@252 2254 fi
Chris@315 2255 rm -f conftest conftest$ac_cv_exeext
Chris@315 2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Chris@315 2257 $as_echo "$ac_cv_exeext" >&6; }
cannam@252 2258
cannam@252 2259 rm -f conftest.$ac_ext
cannam@252 2260 EXEEXT=$ac_cv_exeext
cannam@252 2261 ac_exeext=$EXEEXT
Chris@315 2262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@315 2263 /* end confdefs.h. */
Chris@315 2264 #include <stdio.h>
Chris@315 2265 int
Chris@315 2266 main ()
Chris@315 2267 {
Chris@315 2268 FILE *f = fopen ("conftest.out", "w");
Chris@315 2269 return ferror (f) || fclose (f) != 0;
Chris@315 2270
Chris@315 2271 ;
Chris@315 2272 return 0;
Chris@315 2273 }
Chris@315 2274 _ACEOF
Chris@315 2275 ac_clean_files="$ac_clean_files conftest.out"
Chris@315 2276 # Check that the compiler produces executables we can run. If not, either
Chris@315 2277 # the compiler is broken, or we cross compile.
Chris@315 2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
Chris@315 2279 $as_echo_n "checking whether we are cross compiling... " >&6; }
Chris@315 2280 if test "$cross_compiling" != yes; then
Chris@315 2281 { { ac_try="$ac_link"
Chris@315 2282 case "(($ac_try" in
Chris@315 2283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@315 2284 *) ac_try_echo=$ac_try;;
Chris@315 2285 esac
Chris@315 2286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@315 2287 $as_echo "$ac_try_echo"; } >&5
Chris@315 2288 (eval "$ac_link") 2>&5
Chris@315 2289 ac_status=$?
Chris@315 2290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@315 2291 test $ac_status = 0; }
Chris@315 2292 if { ac_try='./conftest$ac_cv_exeext'
Chris@315 2293 { { case "(($ac_try" in
Chris@315 2294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@315 2295 *) ac_try_echo=$ac_try;;
Chris@315 2296 esac
Chris@315 2297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@315 2298 $as_echo "$ac_try_echo"; } >&5
Chris@315 2299 (eval "$ac_try") 2>&5
Chris@315 2300 ac_status=$?
Chris@315 2301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@315 2302 test $ac_status = 0; }; }; then
Chris@315 2303 cross_compiling=no
Chris@315 2304 else
Chris@315 2305 if test "$cross_compiling" = maybe; then
Chris@315 2306 cross_compiling=yes
Chris@315 2307 else
Chris@315 2308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@315 2309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@315 2310 as_fn_error $? "cannot run C++ compiled programs.
Chris@315 2311 If you meant to cross compile, use \`--host'.
Chris@321 2312 See \`config.log' for more details" "$LINENO" 5; }
Chris@315 2313 fi
Chris@315 2314 fi
Chris@315 2315 fi
Chris@315 2316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
Chris@315 2317 $as_echo "$cross_compiling" >&6; }
Chris@315 2318
Chris@315 2319 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
Chris@315 2320 ac_clean_files=$ac_clean_files_save
Chris@315 2321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Chris@315 2322 $as_echo_n "checking for suffix of object files... " >&6; }
Chris@321 2323 if ${ac_cv_objext+:} false; then :
Chris@315 2324 $as_echo_n "(cached) " >&6
cannam@252 2325 else
Chris@315 2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@252 2327 /* end confdefs.h. */
cannam@252 2328
cannam@252 2329 int
cannam@252 2330 main ()
cannam@252 2331 {
cannam@252 2332
cannam@252 2333 ;
cannam@252 2334 return 0;
cannam@252 2335 }
cannam@252 2336 _ACEOF
cannam@252 2337 rm -f conftest.o conftest.obj
Chris@315 2338 if { { ac_try="$ac_compile"
cannam@252 2339 case "(($ac_try" in
cannam@252 2340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@252 2341 *) ac_try_echo=$ac_try;;
cannam@252 2342 esac
Chris@315 2343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@315 2344 $as_echo "$ac_try_echo"; } >&5
cannam@252 2345 (eval "$ac_compile") 2>&5
cannam@252 2346 ac_status=$?
Chris@315 2347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@315 2348 test $ac_status = 0; }; then :
cannam@252 2349 for ac_file in conftest.o conftest.obj conftest.*; do
cannam@252 2350 test -f "$ac_file" || continue;
cannam@252 2351 case $ac_file in
Chris@315 2352 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
cannam@252 2353 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
cannam@252 2354 break;;
cannam@252 2355 esac
cannam@252 2356 done
cannam@252 2357 else
Chris@315 2358 $as_echo "$as_me: failed program was:" >&5
cannam@252 2359 sed 's/^/| /' conftest.$ac_ext >&5
cannam@252 2360
Chris@315 2361 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@315 2362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@315 2363 as_fn_error $? "cannot compute suffix of object files: cannot compile
Chris@321 2364 See \`config.log' for more details" "$LINENO" 5; }
cannam@252 2365 fi
cannam@252 2366 rm -f conftest.$ac_cv_objext conftest.$ac_ext
cannam@252 2367 fi
Chris@315 2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Chris@315 2369 $as_echo "$ac_cv_objext" >&6; }
cannam@252 2370 OBJEXT=$ac_cv_objext
cannam@252 2371 ac_objext=$OBJEXT
Chris@315 2372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
Chris@315 2373 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
Chris@321 2374 if ${ac_cv_cxx_compiler_gnu+:} false; then :
Chris@315 2375 $as_echo_n "(cached) " >&6
cannam@252 2376 else
Chris@315 2377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@252 2378 /* end confdefs.h. */
cannam@252 2379
cannam@252 2380 int
cannam@252 2381 main ()
cannam@252 2382 {
cannam@252 2383 #ifndef __GNUC__
cannam@252 2384 choke me
cannam@252 2385 #endif
cannam@252 2386
cannam@252 2387 ;
cannam@252 2388 return 0;
cannam@252 2389 }
cannam@252 2390 _ACEOF
Chris@315 2391 if ac_fn_cxx_try_compile "$LINENO"; then :
cannam@252 2392 ac_compiler_gnu=yes
cannam@252 2393 else
Chris@315 2394 ac_compiler_gnu=no
cannam@252 2395 fi
cannam@252 2396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@252 2397 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
cannam@252 2398
cannam@252 2399 fi
Chris@315 2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
Chris@315 2401 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
Chris@315 2402 if test $ac_compiler_gnu = yes; then
Chris@315 2403 GXX=yes
Chris@315 2404 else
Chris@315 2405 GXX=
Chris@315 2406 fi
cannam@252 2407 ac_test_CXXFLAGS=${CXXFLAGS+set}
cannam@252 2408 ac_save_CXXFLAGS=$CXXFLAGS
Chris@315 2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
Chris@315 2410 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
Chris@321 2411 if ${ac_cv_prog_cxx_g+:} false; then :
Chris@315 2412 $as_echo_n "(cached) " >&6
cannam@252 2413 else
cannam@252 2414 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
cannam@252 2415 ac_cxx_werror_flag=yes
cannam@252 2416 ac_cv_prog_cxx_g=no
cannam@252 2417 CXXFLAGS="-g"
Chris@315 2418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@252 2419 /* end confdefs.h. */
cannam@252 2420
cannam@252 2421 int
cannam@252 2422 main ()
cannam@252 2423 {
cannam@252 2424
cannam@252 2425 ;
cannam@252 2426 return 0;
cannam@252 2427 }
cannam@252 2428 _ACEOF
Chris@315 2429 if ac_fn_cxx_try_compile "$LINENO"; then :
cannam@252 2430 ac_cv_prog_cxx_g=yes
cannam@252 2431 else
Chris@315 2432 CXXFLAGS=""
Chris@315 2433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@252 2434 /* end confdefs.h. */
cannam@252 2435
cannam@252 2436 int
cannam@252 2437 main ()
cannam@252 2438 {
cannam@252 2439
cannam@252 2440 ;
cannam@252 2441 return 0;
cannam@252 2442 }
cannam@252 2443 _ACEOF
Chris@315 2444 if ac_fn_cxx_try_compile "$LINENO"; then :
Chris@315 2445
cannam@252 2446 else
Chris@315 2447 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cannam@252 2448 CXXFLAGS="-g"
Chris@315 2449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@252 2450 /* end confdefs.h. */
cannam@252 2451
cannam@252 2452 int
cannam@252 2453 main ()
cannam@252 2454 {
cannam@252 2455
cannam@252 2456 ;
cannam@252 2457 return 0;
cannam@252 2458 }
cannam@252 2459 _ACEOF
Chris@315 2460 if ac_fn_cxx_try_compile "$LINENO"; then :
cannam@252 2461 ac_cv_prog_cxx_g=yes
cannam@252 2462 fi
cannam@252 2463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@252 2464 fi
cannam@252 2465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@252 2466 fi
cannam@252 2467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@252 2468 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cannam@252 2469 fi
Chris@315 2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
Chris@315 2471 $as_echo "$ac_cv_prog_cxx_g" >&6; }
cannam@252 2472 if test "$ac_test_CXXFLAGS" = set; then
cannam@252 2473 CXXFLAGS=$ac_save_CXXFLAGS
cannam@252 2474 elif test $ac_cv_prog_cxx_g = yes; then
cannam@252 2475 if test "$GXX" = yes; then
cannam@252 2476 CXXFLAGS="-g -O2"
cannam@252 2477 else
cannam@252 2478 CXXFLAGS="-g"
cannam@252 2479 fi
cannam@252 2480 else
cannam@252 2481 if test "$GXX" = yes; then
cannam@252 2482 CXXFLAGS="-O2"
cannam@252 2483 else
cannam@252 2484 CXXFLAGS=
cannam@252 2485 fi
cannam@252 2486 fi
cannam@252 2487 ac_ext=c
cannam@252 2488 ac_cpp='$CPP $CPPFLAGS'
cannam@252 2489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@252 2490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@252 2491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@252 2492
cannam@252 2493 ac_ext=c
cannam@252 2494 ac_cpp='$CPP $CPPFLAGS'
cannam@252 2495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@252 2496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@252 2497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@252 2498 if test -n "$ac_tool_prefix"; then
cannam@252 2499 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
cannam@252 2500 set dummy ${ac_tool_prefix}gcc; ac_word=$2
Chris@315 2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@315 2502 $as_echo_n "checking for $ac_word... " >&6; }
Chris@321 2503 if ${ac_cv_prog_CC+:} false; then :
Chris@315 2504 $as_echo_n "(cached) " >&6
cannam@252 2505 else
cannam@252 2506 if test -n "$CC"; then
cannam@252 2507 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@252 2508 else
cannam@252 2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@252 2510 for as_dir in $PATH
cannam@252 2511 do
cannam@252 2512 IFS=$as_save_IFS
cannam@252 2513 test -z "$as_dir" && as_dir=.
Chris@315 2514 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@252 2515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@252 2516 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Chris@315 2517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@252 2518 break 2
cannam@252 2519 fi
cannam@252 2520 done
Chris@315 2521 done
cannam@252 2522 IFS=$as_save_IFS
cannam@252 2523
cannam@252 2524 fi
cannam@252 2525 fi
cannam@252 2526 CC=$ac_cv_prog_CC
cannam@252 2527 if test -n "$CC"; then
Chris@315 2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@315 2529 $as_echo "$CC" >&6; }
cannam@252 2530 else
Chris@315 2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@315 2532 $as_echo "no" >&6; }
cannam@252 2533 fi
cannam@252 2534
cannam@252 2535
cannam@252 2536 fi
cannam@252 2537 if test -z "$ac_cv_prog_CC"; then
cannam@252 2538 ac_ct_CC=$CC
cannam@252 2539 # Extract the first word of "gcc", so it can be a program name with args.
cannam@252 2540 set dummy gcc; ac_word=$2
Chris@315 2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@315 2542 $as_echo_n "checking for $ac_word... " >&6; }
Chris@321 2543 if ${ac_cv_prog_ac_ct_CC+:} false; then :
Chris@315 2544 $as_echo_n "(cached) " >&6
cannam@252 2545 else
cannam@252 2546 if test -n "$ac_ct_CC"; then
cannam@252 2547 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
cannam@252 2548 else
cannam@252 2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@252 2550 for as_dir in $PATH
cannam@252 2551 do
cannam@252 2552 IFS=$as_save_IFS
cannam@252 2553 test -z "$as_dir" && as_dir=.
Chris@315 2554 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@252 2555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@252 2556 ac_cv_prog_ac_ct_CC="gcc"
Chris@315 2557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@252 2558 break 2
cannam@252 2559 fi
cannam@252 2560 done
Chris@315 2561 done
cannam@252 2562 IFS=$as_save_IFS
cannam@252 2563
cannam@252 2564 fi
cannam@252 2565 fi
cannam@252 2566 ac_ct_CC=$ac_cv_prog_ac_ct_CC
cannam@252 2567 if test -n "$ac_ct_CC"; then
Chris@315 2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Chris@315 2569 $as_echo "$ac_ct_CC" >&6; }
cannam@252 2570 else
Chris@315 2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@315 2572 $as_echo "no" >&6; }
cannam@252 2573 fi
cannam@252 2574
cannam@252 2575 if test "x$ac_ct_CC" = x; then
cannam@252 2576 CC=""
cannam@252 2577 else
cannam@252 2578 case $cross_compiling:$ac_tool_warned in
cannam@252 2579 yes:)
Chris@315 2580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@315 2581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@252 2582 ac_tool_warned=yes ;;
cannam@252 2583 esac
cannam@252 2584 CC=$ac_ct_CC
cannam@252 2585 fi
cannam@252 2586 else
cannam@252 2587 CC="$ac_cv_prog_CC"
cannam@252 2588 fi
cannam@252 2589
cannam@252 2590 if test -z "$CC"; then
cannam@252 2591 if test -n "$ac_tool_prefix"; then
cannam@252 2592 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
cannam@252 2593 set dummy ${ac_tool_prefix}cc; ac_word=$2
Chris@315 2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@315 2595 $as_echo_n "checking for $ac_word... " >&6; }
Chris@321 2596 if ${ac_cv_prog_CC+:} false; then :
Chris@315 2597 $as_echo_n "(cached) " >&6
cannam@252 2598 else
cannam@252 2599 if test -n "$CC"; then
cannam@252 2600 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@252 2601 else
cannam@252 2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@252 2603 for as_dir in $PATH
cannam@252 2604 do
cannam@252 2605 IFS=$as_save_IFS
cannam@252 2606 test -z "$as_dir" && as_dir=.
Chris@315 2607 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@252 2608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@252 2609 ac_cv_prog_CC="${ac_tool_prefix}cc"
Chris@315 2610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@252 2611 break 2
cannam@252 2612 fi
cannam@252 2613 done
Chris@315 2614 done
cannam@252 2615 IFS=$as_save_IFS
cannam@252 2616
cannam@252 2617 fi
cannam@252 2618 fi
cannam@252 2619 CC=$ac_cv_prog_CC
cannam@252 2620 if test -n "$CC"; then
Chris@315 2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@315 2622 $as_echo "$CC" >&6; }
cannam@252 2623 else
Chris@315 2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@315 2625 $as_echo "no" >&6; }
cannam@252 2626 fi
cannam@252 2627
cannam@252 2628
cannam@252 2629 fi
cannam@252 2630 fi
cannam@252 2631 if test -z "$CC"; then
cannam@252 2632 # Extract the first word of "cc", so it can be a program name with args.
cannam@252 2633 set dummy cc; ac_word=$2
Chris@315 2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@315 2635 $as_echo_n "checking for $ac_word... " >&6; }
Chris@321 2636 if ${ac_cv_prog_CC+:} false; then :
Chris@315 2637 $as_echo_n "(cached) " >&6
cannam@252 2638 else
cannam@252 2639 if test -n "$CC"; then
cannam@252 2640 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@252 2641 else
cannam@252 2642 ac_prog_rejected=no
cannam@252 2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@252 2644 for as_dir in $PATH
cannam@252 2645 do
cannam@252 2646 IFS=$as_save_IFS
cannam@252 2647 test -z "$as_dir" && as_dir=.
Chris@315 2648 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@252 2649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@252 2650 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
cannam@252 2651 ac_prog_rejected=yes
cannam@252 2652 continue
cannam@252 2653 fi
cannam@252 2654 ac_cv_prog_CC="cc"
Chris@315 2655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@252 2656 break 2
cannam@252 2657 fi
cannam@252 2658 done
Chris@315 2659 done
cannam@252 2660 IFS=$as_save_IFS
cannam@252 2661
cannam@252 2662 if test $ac_prog_rejected = yes; then
cannam@252 2663 # We found a bogon in the path, so make sure we never use it.
cannam@252 2664 set dummy $ac_cv_prog_CC
cannam@252 2665 shift
cannam@252 2666 if test $# != 0; then
cannam@252 2667 # We chose a different compiler from the bogus one.
cannam@252 2668 # However, it has the same basename, so the bogon will be chosen
cannam@252 2669 # first if we set CC to just the basename; use the full file name.
cannam@252 2670 shift
cannam@252 2671 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
cannam@252 2672 fi
cannam@252 2673 fi
cannam@252 2674 fi
cannam@252 2675 fi
cannam@252 2676 CC=$ac_cv_prog_CC
cannam@252 2677 if test -n "$CC"; then
Chris@315 2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@315 2679 $as_echo "$CC" >&6; }
cannam@252 2680 else
Chris@315 2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@315 2682 $as_echo "no" >&6; }
cannam@252 2683 fi
cannam@252 2684
cannam@252 2685
cannam@252 2686 fi
cannam@252 2687 if test -z "$CC"; then
cannam@252 2688 if test -n "$ac_tool_prefix"; then
cannam@252 2689 for ac_prog in cl.exe
cannam@252 2690 do
cannam@252 2691 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
cannam@252 2692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@315 2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@315 2694 $as_echo_n "checking for $ac_word... " >&6; }
Chris@321 2695 if ${ac_cv_prog_CC+:} false; then :
Chris@315 2696 $as_echo_n "(cached) " >&6
cannam@252 2697 else
cannam@252 2698 if test -n "$CC"; then
cannam@252 2699 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@252 2700 else
cannam@252 2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@252 2702 for as_dir in $PATH
cannam@252 2703 do
cannam@252 2704 IFS=$as_save_IFS
cannam@252 2705 test -z "$as_dir" && as_dir=.
Chris@315 2706 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@252 2707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@252 2708 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Chris@315 2709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@252 2710 break 2
cannam@252 2711 fi
cannam@252 2712 done
Chris@315 2713 done
cannam@252 2714 IFS=$as_save_IFS
cannam@252 2715
cannam@252 2716 fi
cannam@252 2717 fi
cannam@252 2718 CC=$ac_cv_prog_CC
cannam@252 2719 if test -n "$CC"; then
Chris@315 2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@315 2721 $as_echo "$CC" >&6; }
cannam@252 2722 else
Chris@315 2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@315 2724 $as_echo "no" >&6; }
cannam@252 2725 fi
cannam@252 2726
cannam@252 2727
cannam@252 2728 test -n "$CC" && break
cannam@252 2729 done
cannam@252 2730 fi
cannam@252 2731 if test -z "$CC"; then
cannam@252 2732 ac_ct_CC=$CC
cannam@252 2733 for ac_prog in cl.exe
cannam@252 2734 do
cannam@252 2735 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@252 2736 set dummy $ac_prog; ac_word=$2
Chris@315 2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@315 2738 $as_echo_n "checking for $ac_word... " >&6; }
Chris@321 2739 if ${ac_cv_prog_ac_ct_CC+:} false; then :
Chris@315 2740 $as_echo_n "(cached) " >&6
cannam@252 2741 else
cannam@252 2742 if test -n "$ac_ct_CC"; then
cannam@252 2743 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
cannam@252 2744 else
cannam@252 2745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@252 2746 for as_dir in $PATH
cannam@252 2747 do
cannam@252 2748 IFS=$as_save_IFS
cannam@252 2749 test -z "$as_dir" && as_dir=.
Chris@315 2750 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@252 2751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@252 2752 ac_cv_prog_ac_ct_CC="$ac_prog"
Chris@315 2753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@252 2754 break 2
cannam@252 2755 fi
cannam@252 2756 done
Chris@315 2757 done
cannam@252 2758 IFS=$as_save_IFS
cannam@252 2759
cannam@252 2760 fi
cannam@252 2761 fi
cannam@252 2762 ac_ct_CC=$ac_cv_prog_ac_ct_CC
cannam@252 2763 if test -n "$ac_ct_CC"; then
Chris@315 2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Chris@315 2765 $as_echo "$ac_ct_CC" >&6; }
cannam@252 2766 else
Chris@315 2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@315 2768 $as_echo "no" >&6; }
cannam@252 2769 fi
cannam@252 2770
cannam@252 2771
cannam@252 2772 test -n "$ac_ct_CC" && break
cannam@252 2773 done
cannam@252 2774
cannam@252 2775 if test "x$ac_ct_CC" = x; then
cannam@252 2776 CC=""
cannam@252 2777 else
cannam@252 2778 case $cross_compiling:$ac_tool_warned in
cannam@252 2779 yes:)
Chris@315 2780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@315 2781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@252 2782 ac_tool_warned=yes ;;
cannam@252 2783 esac
cannam@252 2784 CC=$ac_ct_CC
cannam@252 2785 fi
cannam@252 2786 fi
cannam@252 2787
cannam@252 2788 fi
cannam@252 2789
cannam@252 2790
Chris@315 2791 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@315 2792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@315 2793 as_fn_error $? "no acceptable C compiler found in \$PATH
Chris@321 2794 See \`config.log' for more details" "$LINENO" 5; }
cannam@252 2795
cannam@252 2796 # Provide some information about the compiler.
Chris@315 2797 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Chris@315 2798 set X $ac_compile
Chris@315 2799 ac_compiler=$2
Chris@315 2800 for ac_option in --version -v -V -qversion; do
Chris@315 2801 { { ac_try="$ac_compiler $ac_option >&5"
cannam@252 2802 case "(($ac_try" in
cannam@252 2803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@252 2804 *) ac_try_echo=$ac_try;;
cannam@252 2805 esac
Chris@315 2806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@315 2807 $as_echo "$ac_try_echo"; } >&5
Chris@315 2808 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cannam@252 2809 ac_status=$?
Chris@315 2810 if test -s conftest.err; then
Chris@315 2811 sed '10a\
Chris@315 2812 ... rest of stderr output deleted ...
Chris@315 2813 10q' conftest.err >conftest.er1
Chris@315 2814 cat conftest.er1 >&5
Chris@315 2815 fi
Chris@315 2816 rm -f conftest.er1 conftest.err
Chris@315 2817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@315 2818 test $ac_status = 0; }
Chris@315 2819 done
Chris@315 2820
Chris@315 2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Chris@315 2822 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Chris@321 2823 if ${ac_cv_c_compiler_gnu+:} false; then :
Chris@315 2824 $as_echo_n "(cached) " >&6
cannam@252 2825 else
Chris@315 2826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@252 2827 /* end confdefs.h. */
cannam@252 2828
cannam@252 2829 int
cannam@252 2830 main ()
cannam@252 2831 {
cannam@252 2832 #ifndef __GNUC__
cannam@252 2833 choke me
cannam@252 2834 #endif
cannam@252 2835
cannam@252 2836 ;
cannam@252 2837 return 0;
cannam@252 2838 }
cannam@252 2839 _ACEOF
Chris@315 2840 if ac_fn_c_try_compile "$LINENO"; then :
cannam@252 2841 ac_compiler_gnu=yes
cannam@252 2842 else
Chris@315 2843 ac_compiler_gnu=no
cannam@252 2844 fi
cannam@252 2845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@252 2846 ac_cv_c_compiler_gnu=$ac_compiler_gnu
cannam@252 2847
cannam@252 2848 fi
Chris@315 2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Chris@315 2850 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
Chris@315 2851 if test $ac_compiler_gnu = yes; then
Chris@315 2852 GCC=yes
Chris@315 2853 else
Chris@315 2854 GCC=
Chris@315 2855 fi
cannam@252 2856 ac_test_CFLAGS=${CFLAGS+set}
cannam@252 2857 ac_save_CFLAGS=$CFLAGS
Chris@315 2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Chris@315 2859 $as_echo_n "checking whether $CC accepts -g... " >&6; }
Chris@321 2860 if ${ac_cv_prog_cc_g+:} false; then :
Chris@315 2861 $as_echo_n "(cached) " >&6
cannam@252 2862 else
cannam@252 2863 ac_save_c_werror_flag=$ac_c_werror_flag
cannam@252 2864 ac_c_werror_flag=yes
cannam@252 2865 ac_cv_prog_cc_g=no
cannam@252 2866 CFLAGS="-g"
Chris@315 2867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@252 2868 /* end confdefs.h. */
cannam@252 2869
cannam@252 2870 int
cannam@252 2871 main ()
cannam@252 2872 {
cannam@252 2873
cannam@252 2874 ;
cannam@252 2875 return 0;
cannam@252 2876 }
cannam@252 2877 _ACEOF
Chris@315 2878 if ac_fn_c_try_compile "$LINENO"; then :
cannam@252 2879 ac_cv_prog_cc_g=yes
cannam@252 2880 else
Chris@315 2881 CFLAGS=""
Chris@315 2882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@252 2883 /* end confdefs.h. */
cannam@252 2884
cannam@252 2885 int
cannam@252 2886 main ()
cannam@252 2887 {
cannam@252 2888
cannam@252 2889 ;
cannam@252 2890 return 0;
cannam@252 2891 }
cannam@252 2892 _ACEOF
Chris@315 2893 if ac_fn_c_try_compile "$LINENO"; then :
Chris@315 2894
cannam@252 2895 else
Chris@315 2896 ac_c_werror_flag=$ac_save_c_werror_flag
cannam@252 2897 CFLAGS="-g"
Chris@315 2898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@252 2899 /* end confdefs.h. */
cannam@252 2900
cannam@252 2901 int
cannam@252 2902 main ()
cannam@252 2903 {
cannam@252 2904
cannam@252 2905 ;
cannam@252 2906 return 0;
cannam@252 2907 }
cannam@252 2908 _ACEOF
Chris@315 2909 if ac_fn_c_try_compile "$LINENO"; then :
cannam@252 2910 ac_cv_prog_cc_g=yes
cannam@252 2911 fi
cannam@252 2912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@252 2913 fi
cannam@252 2914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@252 2915 fi
cannam@252 2916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@252 2917 ac_c_werror_flag=$ac_save_c_werror_flag
cannam@252 2918 fi
Chris@315 2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Chris@315 2920 $as_echo "$ac_cv_prog_cc_g" >&6; }
cannam@252 2921 if test "$ac_test_CFLAGS" = set; then
cannam@252 2922 CFLAGS=$ac_save_CFLAGS
cannam@252 2923 elif test $ac_cv_prog_cc_g = yes; then
cannam@252 2924 if test "$GCC" = yes; then
cannam@252 2925 CFLAGS="-g -O2"
cannam@252 2926 else
cannam@252 2927 CFLAGS="-g"
cannam@252 2928 fi
cannam@252 2929 else
cannam@252 2930 if test "$GCC" = yes; then
cannam@252 2931 CFLAGS="-O2"
cannam@252 2932 else
cannam@252 2933 CFLAGS=
cannam@252 2934 fi
cannam@252 2935 fi
Chris@315 2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Chris@315 2937 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Chris@321 2938 if ${ac_cv_prog_cc_c89+:} false; then :
Chris@315 2939 $as_echo_n "(cached) " >&6
cannam@252 2940 else
cannam@252 2941 ac_cv_prog_cc_c89=no
cannam@252 2942 ac_save_CC=$CC
Chris@315 2943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@252 2944 /* end confdefs.h. */
cannam@252 2945 #include <stdarg.h>
cannam@252 2946 #include <stdio.h>
cannam@252 2947 #include <sys/types.h>
cannam@252 2948 #include <sys/stat.h>
cannam@252 2949 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
cannam@252 2950 struct buf { int x; };
cannam@252 2951 FILE * (*rcsopen) (struct buf *, struct stat *, int);
cannam@252 2952 static char *e (p, i)
cannam@252 2953 char **p;
cannam@252 2954 int i;
cannam@252 2955 {
cannam@252 2956 return p[i];
cannam@252 2957 }
cannam@252 2958 static char *f (char * (*g) (char **, int), char **p, ...)
cannam@252 2959 {
cannam@252 2960 char *s;
cannam@252 2961 va_list v;
cannam@252 2962 va_start (v,p);
cannam@252 2963 s = g (p, va_arg (v,int));
cannam@252 2964 va_end (v);
cannam@252 2965 return s;
cannam@252 2966 }
cannam@252 2967
cannam@252 2968 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
cannam@252 2969 function prototypes and stuff, but not '\xHH' hex character constants.
cannam@252 2970 These don't provoke an error unfortunately, instead are silently treated
cannam@252 2971 as 'x'. The following induces an error, until -std is added to get
cannam@252 2972 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
cannam@252 2973 array size at least. It's necessary to write '\x00'==0 to get something
cannam@252 2974 that's true only with -std. */
cannam@252 2975 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
cannam@252 2976
cannam@252 2977 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
cannam@252 2978 inside strings and character constants. */
cannam@252 2979 #define FOO(x) 'x'
cannam@252 2980 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
cannam@252 2981
cannam@252 2982 int test (int i, double x);
cannam@252 2983 struct s1 {int (*f) (int a);};
cannam@252 2984 struct s2 {int (*f) (double a);};
cannam@252 2985 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
cannam@252 2986 int argc;
cannam@252 2987 char **argv;
cannam@252 2988 int
cannam@252 2989 main ()
cannam@252 2990 {
cannam@252 2991 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
cannam@252 2992 ;
cannam@252 2993 return 0;
cannam@252 2994 }
cannam@252 2995 _ACEOF
cannam@252 2996 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
cannam@252 2997 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
cannam@252 2998 do
cannam@252 2999 CC="$ac_save_CC $ac_arg"
Chris@315 3000 if ac_fn_c_try_compile "$LINENO"; then :
cannam@252 3001 ac_cv_prog_cc_c89=$ac_arg
cannam@252 3002 fi
cannam@252 3003 rm -f core conftest.err conftest.$ac_objext
cannam@252 3004 test "x$ac_cv_prog_cc_c89" != "xno" && break
cannam@252 3005 done
cannam@252 3006 rm -f conftest.$ac_ext
cannam@252 3007 CC=$ac_save_CC
cannam@252 3008
cannam@252 3009 fi
cannam@252 3010 # AC_CACHE_VAL
cannam@252 3011 case "x$ac_cv_prog_cc_c89" in
cannam@252 3012 x)
Chris@315 3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Chris@315 3014 $as_echo "none needed" >&6; } ;;
cannam@252 3015 xno)
Chris@315 3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Chris@315 3017 $as_echo "unsupported" >&6; } ;;
cannam@252 3018 *)
cannam@252 3019 CC="$CC $ac_cv_prog_cc_c89"
Chris@315 3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Chris@315 3021 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
cannam@252 3022 esac
Chris@315 3023 if test "x$ac_cv_prog_cc_c89" != xno; then :
Chris@315 3024
Chris@315 3025 fi
cannam@252 3026
cannam@252 3027 ac_ext=c
cannam@252 3028 ac_cpp='$CPP $CPPFLAGS'
cannam@252 3029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@252 3030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@252 3031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@252 3032
cannam@252 3033
cannam@252 3034 ac_ext=c
cannam@252 3035 ac_cpp='$CPP $CPPFLAGS'
cannam@252 3036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@252 3037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@252 3038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@315 3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Chris@315 3040 $as_echo_n "checking how to run the C preprocessor... " >&6; }
cannam@252 3041 # On Suns, sometimes $CPP names a directory.
cannam@252 3042 if test -n "$CPP" && test -d "$CPP"; then
cannam@252 3043 CPP=
cannam@252 3044 fi
cannam@252 3045 if test -z "$CPP"; then
Chris@321 3046 if ${ac_cv_prog_CPP+:} false; then :
Chris@315 3047 $as_echo_n "(cached) " >&6
cannam@252 3048 else
cannam@252 3049 # Double quotes because CPP needs to be expanded
cannam@252 3050 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
cannam@252 3051 do
cannam@252 3052 ac_preproc_ok=false
cannam@252 3053 for ac_c_preproc_warn_flag in '' yes
cannam@252 3054 do
cannam@252 3055 # Use a header file that comes with gcc, so configuring glibc
cannam@252 3056 # with a fresh cross-compiler works.
cannam@252 3057 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@252 3058 # <limits.h> exists even on freestanding compilers.
cannam@252 3059 # On the NeXT, cc -E runs the code through the compiler's parser,
cannam@252 3060 # not just through cpp. "Syntax error" is here to catch this case.
Chris@315 3061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@252 3062 /* end confdefs.h. */
cannam@252 3063 #ifdef __STDC__
cannam@252 3064 # include <limits.h>
cannam@252 3065 #else
cannam@252 3066 # include <assert.h>
cannam@252 3067 #endif
cannam@252 3068 Syntax error
cannam@252 3069 _ACEOF
Chris@315 3070 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@315 3071
cannam@252 3072 else
cannam@252 3073 # Broken: fails on valid input.
cannam@252 3074 continue
cannam@252 3075 fi
Chris@315 3076 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@252 3077
cannam@252 3078 # OK, works on sane cases. Now check whether nonexistent headers
cannam@252 3079 # can be detected and how.
Chris@315 3080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@252 3081 /* end confdefs.h. */
cannam@252 3082 #include <ac_nonexistent.h>
cannam@252 3083 _ACEOF
Chris@315 3084 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@252 3085 # Broken: success on invalid input.
cannam@252 3086 continue
cannam@252 3087 else
cannam@252 3088 # Passes both tests.
cannam@252 3089 ac_preproc_ok=:
cannam@252 3090 break
cannam@252 3091 fi
Chris@315 3092 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@252 3093
cannam@252 3094 done
cannam@252 3095 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Chris@315 3096 rm -f conftest.i conftest.err conftest.$ac_ext
Chris@315 3097 if $ac_preproc_ok; then :
cannam@252 3098 break
cannam@252 3099 fi
cannam@252 3100
cannam@252 3101 done
cannam@252 3102 ac_cv_prog_CPP=$CPP
cannam@252 3103
cannam@252 3104 fi
cannam@252 3105 CPP=$ac_cv_prog_CPP
cannam@252 3106 else
cannam@252 3107 ac_cv_prog_CPP=$CPP
cannam@252 3108 fi
Chris@315 3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Chris@315 3110 $as_echo "$CPP" >&6; }
cannam@252 3111 ac_preproc_ok=false
cannam@252 3112 for ac_c_preproc_warn_flag in '' yes
cannam@252 3113 do
cannam@252 3114 # Use a header file that comes with gcc, so configuring glibc
cannam@252 3115 # with a fresh cross-compiler works.
cannam@252 3116 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@252 3117 # <limits.h> exists even on freestanding compilers.
cannam@252 3118 # On the NeXT, cc -E runs the code through the compiler's parser,
cannam@252 3119 # not just through cpp. "Syntax error" is here to catch this case.
Chris@315 3120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@252 3121 /* end confdefs.h. */
cannam@252 3122 #ifdef __STDC__
cannam@252 3123 # include <limits.h>
cannam@252 3124 #else
cannam@252 3125 # include <assert.h>
cannam@252 3126 #endif
cannam@252 3127 Syntax error
cannam@252 3128 _ACEOF
Chris@315 3129 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@315 3130
cannam@252 3131 else
cannam@252 3132 # Broken: fails on valid input.
cannam@252 3133 continue
cannam@252 3134 fi
Chris@315 3135 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@252 3136
cannam@252 3137 # OK, works on sane cases. Now check whether nonexistent headers
cannam@252 3138 # can be detected and how.
Chris@315 3139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@252 3140 /* end confdefs.h. */
cannam@252 3141 #include <ac_nonexistent.h>
cannam@252 3142 _ACEOF
Chris@315 3143 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@252 3144 # Broken: success on invalid input.
cannam@252 3145 continue
cannam@252 3146 else
cannam@252 3147 # Passes both tests.
cannam@252 3148 ac_preproc_ok=:
cannam@252 3149 break
cannam@252 3150 fi
Chris@315 3151 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@252 3152
cannam@252 3153 done
cannam@252 3154 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Chris@315 3155 rm -f conftest.i conftest.err conftest.$ac_ext
Chris@315 3156 if $ac_preproc_ok; then :
Chris@315 3157
cannam@252 3158 else
Chris@315 3159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@315 3160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@315 3161 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
Chris@321 3162 See \`config.log' for more details" "$LINENO" 5; }
cannam@252 3163 fi
cannam@252 3164
cannam@252 3165 ac_ext=c
cannam@252 3166 ac_cpp='$CPP $CPPFLAGS'
cannam@252 3167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@252 3168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@252 3169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@252 3170
cannam@252 3171
Chris@315 3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
Chris@315 3173 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Chris@321 3174 if ${ac_cv_path_GREP+:} false; then :
Chris@315 3175 $as_echo_n "(cached) " >&6
cannam@252 3176 else
Chris@315 3177 if test -z "$GREP"; then
cannam@252 3178 ac_path_GREP_found=false
Chris@315 3179 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@315 3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@252 3181 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
cannam@252 3182 do
cannam@252 3183 IFS=$as_save_IFS
cannam@252 3184 test -z "$as_dir" && as_dir=.
Chris@315 3185 for ac_prog in grep ggrep; do
Chris@315 3186 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@315 3187 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Chris@315 3188 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
Chris@315 3189 # Check for GNU ac_path_GREP and select it if it is found.
cannam@252 3190 # Check for GNU $ac_path_GREP
cannam@252 3191 case `"$ac_path_GREP" --version 2>&1` in
cannam@252 3192 *GNU*)
cannam@252 3193 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
cannam@252 3194 *)
cannam@252 3195 ac_count=0
Chris@315 3196 $as_echo_n 0123456789 >"conftest.in"
cannam@252 3197 while :
cannam@252 3198 do
cannam@252 3199 cat "conftest.in" "conftest.in" >"conftest.tmp"
cannam@252 3200 mv "conftest.tmp" "conftest.in"
cannam@252 3201 cp "conftest.in" "conftest.nl"
Chris@315 3202 $as_echo 'GREP' >> "conftest.nl"
cannam@252 3203 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
cannam@252 3204 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@315 3205 as_fn_arith $ac_count + 1 && ac_count=$as_val
cannam@252 3206 if test $ac_count -gt ${ac_path_GREP_max-0}; then
cannam@252 3207 # Best one so far, save it but keep looking for a better one
cannam@252 3208 ac_cv_path_GREP="$ac_path_GREP"
cannam@252 3209 ac_path_GREP_max=$ac_count
cannam@252 3210 fi
cannam@252 3211 # 10*(2^10) chars as input seems more than enough
cannam@252 3212 test $ac_count -gt 10 && break
cannam@252 3213 done
cannam@252 3214 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
cannam@252 3215 esac
cannam@252 3216
Chris@315 3217 $ac_path_GREP_found && break 3
Chris@315 3218 done
cannam@252 3219 done
Chris@315 3220 done
cannam@252 3221 IFS=$as_save_IFS
Chris@315 3222 if test -z "$ac_cv_path_GREP"; then
Chris@315 3223 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Chris@315 3224 fi
cannam@252 3225 else
cannam@252 3226 ac_cv_path_GREP=$GREP
cannam@252 3227 fi
cannam@252 3228
cannam@252 3229 fi
Chris@315 3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Chris@315 3231 $as_echo "$ac_cv_path_GREP" >&6; }
cannam@252 3232 GREP="$ac_cv_path_GREP"
cannam@252 3233
cannam@252 3234
Chris@315 3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Chris@315 3236 $as_echo_n "checking for egrep... " >&6; }
Chris@321 3237 if ${ac_cv_path_EGREP+:} false; then :
Chris@315 3238 $as_echo_n "(cached) " >&6
cannam@252 3239 else
cannam@252 3240 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
cannam@252 3241 then ac_cv_path_EGREP="$GREP -E"
cannam@252 3242 else
Chris@315 3243 if test -z "$EGREP"; then
cannam@252 3244 ac_path_EGREP_found=false
Chris@315 3245 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@315 3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@252 3247 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
cannam@252 3248 do
cannam@252 3249 IFS=$as_save_IFS
cannam@252 3250 test -z "$as_dir" && as_dir=.
Chris@315 3251 for ac_prog in egrep; do
Chris@315 3252 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@315 3253 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Chris@315 3254 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Chris@315 3255 # Check for GNU ac_path_EGREP and select it if it is found.
cannam@252 3256 # Check for GNU $ac_path_EGREP
cannam@252 3257 case `"$ac_path_EGREP" --version 2>&1` in
cannam@252 3258 *GNU*)
cannam@252 3259 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
cannam@252 3260 *)
cannam@252 3261 ac_count=0
Chris@315 3262 $as_echo_n 0123456789 >"conftest.in"
cannam@252 3263 while :
cannam@252 3264 do
cannam@252 3265 cat "conftest.in" "conftest.in" >"conftest.tmp"
cannam@252 3266 mv "conftest.tmp" "conftest.in"
cannam@252 3267 cp "conftest.in" "conftest.nl"
Chris@315 3268 $as_echo 'EGREP' >> "conftest.nl"
cannam@252 3269 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
cannam@252 3270 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@315 3271 as_fn_arith $ac_count + 1 && ac_count=$as_val
cannam@252 3272 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
cannam@252 3273 # Best one so far, save it but keep looking for a better one
cannam@252 3274 ac_cv_path_EGREP="$ac_path_EGREP"
cannam@252 3275 ac_path_EGREP_max=$ac_count
cannam@252 3276 fi
cannam@252 3277 # 10*(2^10) chars as input seems more than enough
cannam@252 3278 test $ac_count -gt 10 && break
cannam@252 3279 done
cannam@252 3280 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
cannam@252 3281 esac
cannam@252 3282
Chris@315 3283 $ac_path_EGREP_found && break 3
Chris@315 3284 done
cannam@252 3285 done
Chris@315 3286 done
cannam@252 3287 IFS=$as_save_IFS
Chris@315 3288 if test -z "$ac_cv_path_EGREP"; then
Chris@315 3289 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Chris@315 3290 fi
cannam@252 3291 else
cannam@252 3292 ac_cv_path_EGREP=$EGREP
cannam@252 3293 fi
cannam@252 3294
cannam@252 3295 fi
cannam@252 3296 fi
Chris@315 3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Chris@315 3298 $as_echo "$ac_cv_path_EGREP" >&6; }
cannam@252 3299 EGREP="$ac_cv_path_EGREP"
cannam@252 3300
cannam@252 3301
Chris@315 3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Chris@315 3303 $as_echo_n "checking for ANSI C header files... " >&6; }
Chris@321 3304 if ${ac_cv_header_stdc+:} false; then :
Chris@315 3305 $as_echo_n "(cached) " >&6
cannam@252 3306 else
Chris@315 3307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@252 3308 /* end confdefs.h. */
cannam@252 3309 #include <stdlib.h>
cannam@252 3310 #include <stdarg.h>
cannam@252 3311 #include <string.h>
cannam@252 3312 #include <float.h>
cannam@252 3313
cannam@252 3314 int
cannam@252 3315 main ()
cannam@252 3316 {
cannam@252 3317
cannam@252 3318 ;
cannam@252 3319 return 0;
cannam@252 3320 }
cannam@252 3321 _ACEOF
Chris@315 3322 if ac_fn_c_try_compile "$LINENO"; then :
cannam@252 3323 ac_cv_header_stdc=yes
cannam@252 3324 else
Chris@315 3325 ac_cv_header_stdc=no
cannam@252 3326 fi
cannam@252 3327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@252 3328
cannam@252 3329 if test $ac_cv_header_stdc = yes; then
cannam@252 3330 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Chris@315 3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@252 3332 /* end confdefs.h. */
cannam@252 3333 #include <string.h>
cannam@252 3334
cannam@252 3335 _ACEOF
cannam@252 3336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@315 3337 $EGREP "memchr" >/dev/null 2>&1; then :
Chris@315 3338
cannam@252 3339 else
cannam@252 3340 ac_cv_header_stdc=no
cannam@252 3341 fi
cannam@252 3342 rm -f conftest*
cannam@252 3343
cannam@252 3344 fi
cannam@252 3345
cannam@252 3346 if test $ac_cv_header_stdc = yes; then
cannam@252 3347 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Chris@315 3348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@252 3349 /* end confdefs.h. */
cannam@252 3350 #include <stdlib.h>
cannam@252 3351
cannam@252 3352 _ACEOF
cannam@252 3353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@315 3354 $EGREP "free" >/dev/null 2>&1; then :
Chris@315 3355
cannam@252 3356 else
cannam@252 3357 ac_cv_header_stdc=no
cannam@252 3358 fi
cannam@252 3359 rm -f conftest*
cannam@252 3360
cannam@252 3361 fi
cannam@252 3362
cannam@252 3363 if test $ac_cv_header_stdc = yes; then
cannam@252 3364 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Chris@315 3365 if test "$cross_compiling" = yes; then :
cannam@252 3366 :
cannam@252 3367 else
Chris@315 3368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@252 3369 /* end confdefs.h. */
cannam@252 3370 #include <ctype.h>
cannam@252 3371 #include <stdlib.h>
cannam@252 3372 #if ((' ' & 0x0FF) == 0x020)
cannam@252 3373 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
cannam@252 3374 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
cannam@252 3375 #else
cannam@252 3376 # define ISLOWER(c) \
cannam@252 3377 (('a' <= (c) && (c) <= 'i') \
cannam@252 3378 || ('j' <= (c) && (c) <= 'r') \
cannam@252 3379 || ('s' <= (c) && (c) <= 'z'))
cannam@252 3380 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
cannam@252 3381 #endif
cannam@252 3382
cannam@252 3383 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
cannam@252 3384 int
cannam@252 3385 main ()
cannam@252 3386 {
cannam@252 3387 int i;
cannam@252 3388 for (i = 0; i < 256; i++)
cannam@252 3389 if (XOR (islower (i), ISLOWER (i))
cannam@252 3390 || toupper (i) != TOUPPER (i))
cannam@252 3391 return 2;
cannam@252 3392 return 0;
cannam@252 3393 }
cannam@252 3394 _ACEOF
Chris@315 3395 if ac_fn_c_try_run "$LINENO"; then :
Chris@315 3396
cannam@252 3397 else
Chris@315 3398 ac_cv_header_stdc=no
cannam@252 3399 fi
Chris@315 3400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@315 3401 conftest.$ac_objext conftest.beam conftest.$ac_ext
cannam@252 3402 fi
cannam@252 3403
cannam@252 3404 fi
cannam@252 3405 fi
Chris@315 3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Chris@315 3407 $as_echo "$ac_cv_header_stdc" >&6; }
cannam@252 3408 if test $ac_cv_header_stdc = yes; then
cannam@252 3409
Chris@315 3410 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
cannam@252 3411
cannam@252 3412 fi
cannam@252 3413
cannam@252 3414 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
cannam@252 3415 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
cannam@252 3416 inttypes.h stdint.h unistd.h
Chris@315 3417 do :
Chris@315 3418 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Chris@315 3419 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
Chris@315 3420 "
Chris@315 3421 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Chris@315 3422 cat >>confdefs.h <<_ACEOF
Chris@315 3423 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris@315 3424 _ACEOF
Chris@315 3425
Chris@315 3426 fi
Chris@315 3427
Chris@315 3428 done
Chris@315 3429
Chris@315 3430
Chris@315 3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Chris@315 3432 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Chris@321 3433 if ${ac_cv_c_bigendian+:} false; then :
Chris@315 3434 $as_echo_n "(cached) " >&6
cannam@252 3435 else
Chris@315 3436 ac_cv_c_bigendian=unknown
Chris@315 3437 # See if we're dealing with a universal compiler.
Chris@315 3438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@315 3439 /* end confdefs.h. */
Chris@315 3440 #ifndef __APPLE_CC__
Chris@315 3441 not a universal capable compiler
Chris@315 3442 #endif
Chris@315 3443 typedef int dummy;
Chris@315 3444
cannam@252 3445 _ACEOF
Chris@315 3446 if ac_fn_c_try_compile "$LINENO"; then :
Chris@315 3447
Chris@315 3448 # Check for potential -arch flags. It is not universal unless
Chris@315 3449 # there are at least two -arch flags with different values.
Chris@315 3450 ac_arch=
Chris@315 3451 ac_prev=
Chris@315 3452 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
Chris@315 3453 if test -n "$ac_prev"; then
Chris@315 3454 case $ac_word in
Chris@315 3455 i?86 | x86_64 | ppc | ppc64)
Chris@315 3456 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
Chris@315 3457 ac_arch=$ac_word
Chris@315 3458 else
Chris@315 3459 ac_cv_c_bigendian=universal
Chris@315 3460 break
Chris@315 3461 fi
Chris@315 3462 ;;
Chris@315 3463 esac
Chris@315 3464 ac_prev=
Chris@315 3465 elif test "x$ac_word" = "x-arch"; then
Chris@315 3466 ac_prev=arch
Chris@315 3467 fi
Chris@315 3468 done
cannam@252 3469 fi
cannam@252 3470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@315 3471 if test $ac_cv_c_bigendian = unknown; then
Chris@315 3472 # See if sys/param.h defines the BYTE_ORDER macro.
Chris@315 3473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@252 3474 /* end confdefs.h. */
cannam@252 3475 #include <sys/types.h>
Chris@315 3476 #include <sys/param.h>
cannam@252 3477
cannam@252 3478 int
cannam@252 3479 main ()
cannam@252 3480 {
Chris@315 3481 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
Chris@315 3482 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
Chris@315 3483 && LITTLE_ENDIAN)
Chris@315 3484 bogus endian macros
Chris@315 3485 #endif
cannam@252 3486
cannam@252 3487 ;
cannam@252 3488 return 0;
cannam@252 3489 }
cannam@252 3490 _ACEOF
Chris@315 3491 if ac_fn_c_try_compile "$LINENO"; then :
cannam@252 3492 # It does; now see whether it defined to BIG_ENDIAN or not.
Chris@315 3493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@252 3494 /* end confdefs.h. */
cannam@252 3495 #include <sys/types.h>
Chris@315 3496 #include <sys/param.h>
cannam@252 3497
cannam@252 3498 int
cannam@252 3499 main ()
cannam@252 3500 {
cannam@252 3501 #if BYTE_ORDER != BIG_ENDIAN
Chris@315 3502 not big endian
Chris@315 3503 #endif
cannam@252 3504
cannam@252 3505 ;
cannam@252 3506 return 0;
cannam@252 3507 }
cannam@252 3508 _ACEOF
Chris@315 3509 if ac_fn_c_try_compile "$LINENO"; then :
cannam@252 3510 ac_cv_c_bigendian=yes
cannam@252 3511 else
Chris@315 3512 ac_cv_c_bigendian=no
cannam@252 3513 fi
cannam@252 3514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@315 3515 fi
Chris@315 3516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@315 3517 fi
Chris@315 3518 if test $ac_cv_c_bigendian = unknown; then
Chris@315 3519 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Chris@315 3520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@252 3521 /* end confdefs.h. */
Chris@315 3522 #include <limits.h>
Chris@315 3523
cannam@252 3524 int
cannam@252 3525 main ()
cannam@252 3526 {
Chris@315 3527 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
Chris@315 3528 bogus endian macros
Chris@315 3529 #endif
Chris@315 3530
cannam@252 3531 ;
cannam@252 3532 return 0;
cannam@252 3533 }
cannam@252 3534 _ACEOF
Chris@315 3535 if ac_fn_c_try_compile "$LINENO"; then :
Chris@315 3536 # It does; now see whether it defined to _BIG_ENDIAN or not.
Chris@315 3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@315 3538 /* end confdefs.h. */
Chris@315 3539 #include <limits.h>
Chris@315 3540
Chris@315 3541 int
Chris@315 3542 main ()
Chris@315 3543 {
Chris@315 3544 #ifndef _BIG_ENDIAN
Chris@315 3545 not big endian
Chris@315 3546 #endif
Chris@315 3547
Chris@315 3548 ;
Chris@315 3549 return 0;
Chris@315 3550 }
Chris@315 3551 _ACEOF
Chris@315 3552 if ac_fn_c_try_compile "$LINENO"; then :
cannam@252 3553 ac_cv_c_bigendian=yes
Chris@315 3554 else
Chris@315 3555 ac_cv_c_bigendian=no
cannam@252 3556 fi
Chris@315 3557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@252 3558 fi
Chris@315 3559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@315 3560 fi
Chris@315 3561 if test $ac_cv_c_bigendian = unknown; then
Chris@315 3562 # Compile a test program.
Chris@315 3563 if test "$cross_compiling" = yes; then :
Chris@315 3564 # Try to guess by grepping values from an object file.
Chris@315 3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@315 3566 /* end confdefs.h. */
Chris@315 3567 short int ascii_mm[] =
Chris@315 3568 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
Chris@315 3569 short int ascii_ii[] =
Chris@315 3570 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Chris@315 3571 int use_ascii (int i) {
Chris@315 3572 return ascii_mm[i] + ascii_ii[i];
Chris@315 3573 }
Chris@315 3574 short int ebcdic_ii[] =
Chris@315 3575 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
Chris@315 3576 short int ebcdic_mm[] =
Chris@315 3577 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Chris@315 3578 int use_ebcdic (int i) {
Chris@315 3579 return ebcdic_mm[i] + ebcdic_ii[i];
Chris@315 3580 }
Chris@315 3581 extern int foo;
Chris@315 3582
Chris@315 3583 int
Chris@315 3584 main ()
Chris@315 3585 {
Chris@315 3586 return use_ascii (foo) == use_ebcdic (foo);
Chris@315 3587 ;
Chris@315 3588 return 0;
Chris@315 3589 }
Chris@315 3590 _ACEOF
Chris@315 3591 if ac_fn_c_try_compile "$LINENO"; then :
Chris@315 3592 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
Chris@315 3593 ac_cv_c_bigendian=yes
Chris@315 3594 fi
Chris@315 3595 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
Chris@315 3596 if test "$ac_cv_c_bigendian" = unknown; then
Chris@315 3597 ac_cv_c_bigendian=no
Chris@315 3598 else
Chris@315 3599 # finding both strings is unlikely to happen, but who knows?
Chris@315 3600 ac_cv_c_bigendian=unknown
Chris@315 3601 fi
Chris@315 3602 fi
cannam@252 3603 fi
cannam@252 3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@252 3605 else
Chris@315 3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@252 3607 /* end confdefs.h. */
cannam@252 3608 $ac_includes_default
cannam@252 3609 int
cannam@252 3610 main ()
cannam@252 3611 {
cannam@252 3612
Chris@315 3613 /* Are we little or big endian? From Harbison&Steele. */
Chris@315 3614 union
Chris@315 3615 {
Chris@315 3616 long int l;
Chris@315 3617 char c[sizeof (long int)];
Chris@315 3618 } u;
Chris@315 3619 u.l = 1;
Chris@315 3620 return u.c[sizeof (long int) - 1] == 1;
cannam@252 3621
cannam@252 3622 ;
cannam@252 3623 return 0;
cannam@252 3624 }
cannam@252 3625 _ACEOF
Chris@315 3626 if ac_fn_c_try_run "$LINENO"; then :
cannam@252 3627 ac_cv_c_bigendian=no
cannam@252 3628 else
Chris@315 3629 ac_cv_c_bigendian=yes
cannam@252 3630 fi
Chris@315 3631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@315 3632 conftest.$ac_objext conftest.beam conftest.$ac_ext
cannam@252 3633 fi
cannam@252 3634
Chris@315 3635 fi
cannam@252 3636 fi
Chris@315 3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Chris@315 3638 $as_echo "$ac_cv_c_bigendian" >&6; }
Chris@315 3639 case $ac_cv_c_bigendian in #(
Chris@315 3640 yes)
Chris@315 3641 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Chris@315 3642 ;; #(
Chris@315 3643 no)
Chris@315 3644 ;; #(
Chris@315 3645 universal)
Chris@315 3646
Chris@315 3647 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Chris@315 3648
Chris@315 3649 ;; #(
Chris@315 3650 *)
Chris@315 3651 as_fn_error $? "unknown endianness
Chris@321 3652 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Chris@315 3653 esac
cannam@252 3654
cannam@252 3655
cannam@252 3656 if pkg-config --modversion vamp-sdk >/dev/null 2>&1; then
cannam@252 3657 echo "WARNING: A version of the Vamp plugin SDK is already installed."
cannam@252 3658 echo " Expect worries and sorrows if you install a new version"
cannam@252 3659 echo " without removing the old one first. (Continuing)"
cannam@252 3660 fi
cannam@252 3661
Chris@315 3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
Chris@315 3663 $as_echo_n "checking for library containing dlopen... " >&6; }
Chris@321 3664 if ${ac_cv_search_dlopen+:} false; then :
Chris@315 3665 $as_echo_n "(cached) " >&6
cannam@252 3666 else
cannam@252 3667 ac_func_search_save_LIBS=$LIBS
Chris@315 3668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@252 3669 /* end confdefs.h. */
cannam@252 3670
cannam@252 3671 /* Override any GCC internal prototype to avoid an error.
cannam@252 3672 Use char because int might match the return type of a GCC
cannam@252 3673 builtin and then its argument prototype would still apply. */
cannam@252 3674 #ifdef __cplusplus
cannam@252 3675 extern "C"
cannam@252 3676 #endif
cannam@252 3677 char dlopen ();
cannam@252 3678 int
cannam@252 3679 main ()
cannam@252 3680 {
cannam@252 3681 return dlopen ();
cannam@252 3682 ;
cannam@252 3683 return 0;
cannam@252 3684 }
cannam@252 3685 _ACEOF
cannam@252 3686 for ac_lib in '' dl; do
cannam@252 3687 if test -z "$ac_lib"; then
cannam@252 3688 ac_res="none required"
cannam@252 3689 else
cannam@252 3690 ac_res=-l$ac_lib
cannam@252 3691 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
cannam@252 3692 fi
Chris@315 3693 if ac_fn_c_try_link "$LINENO"; then :
cannam@252 3694 ac_cv_search_dlopen=$ac_res
cannam@252 3695 fi
Chris@315 3696 rm -f core conftest.err conftest.$ac_objext \
Chris@315 3697 conftest$ac_exeext
Chris@321 3698 if ${ac_cv_search_dlopen+:} false; then :
cannam@252 3699 break
cannam@252 3700 fi
cannam@252 3701 done
Chris@321 3702 if ${ac_cv_search_dlopen+:} false; then :
Chris@315 3703
cannam@252 3704 else
cannam@252 3705 ac_cv_search_dlopen=no
cannam@252 3706 fi
cannam@252 3707 rm conftest.$ac_ext
cannam@252 3708 LIBS=$ac_func_search_save_LIBS
cannam@252 3709 fi
Chris@315 3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
Chris@315 3711 $as_echo "$ac_cv_search_dlopen" >&6; }
cannam@252 3712 ac_res=$ac_cv_search_dlopen
Chris@315 3713 if test "$ac_res" != no; then :
cannam@252 3714 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
cannam@252 3715
cannam@252 3716 fi
cannam@252 3717
cannam@252 3718
cannam@278 3719 # Check whether --enable-programs was given.
Chris@315 3720 if test "${enable_programs+set}" = set; then :
cannam@278 3721 enableval=$enable_programs; PROGS_ARGUMENT=$enableval
cannam@278 3722 else
cannam@278 3723 PROGS_ARGUMENT="yes"
cannam@278 3724 fi
cannam@278 3725
cannam@278 3726
cannam@278 3727 if test "x$PROGS_ARGUMENT" = "xyes" ; then
cannam@252 3728
cannam@252 3729
Chris@315 3730
Chris@315 3731
Chris@315 3732
Chris@315 3733
Chris@321 3734
cannam@252 3735 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
cannam@252 3736 if test -n "$ac_tool_prefix"; then
cannam@252 3737 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
cannam@252 3738 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Chris@315 3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@315 3740 $as_echo_n "checking for $ac_word... " >&6; }
Chris@321 3741 if ${ac_cv_path_PKG_CONFIG+:} false; then :
Chris@315 3742 $as_echo_n "(cached) " >&6
cannam@252 3743 else
cannam@252 3744 case $PKG_CONFIG in
cannam@252 3745 [\\/]* | ?:[\\/]*)
cannam@252 3746 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
cannam@252 3747 ;;
cannam@252 3748 *)
cannam@252 3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@252 3750 for as_dir in $PATH
cannam@252 3751 do
cannam@252 3752 IFS=$as_save_IFS
cannam@252 3753 test -z "$as_dir" && as_dir=.
Chris@315 3754 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@252 3755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@252 3756 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Chris@315 3757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@252 3758 break 2
cannam@252 3759 fi
cannam@252 3760 done
Chris@315 3761 done
cannam@252 3762 IFS=$as_save_IFS
cannam@252 3763
cannam@252 3764 ;;
cannam@252 3765 esac
cannam@252 3766 fi
cannam@252 3767 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
cannam@252 3768 if test -n "$PKG_CONFIG"; then
Chris@315 3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Chris@315 3770 $as_echo "$PKG_CONFIG" >&6; }
cannam@252 3771 else
Chris@315 3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@315 3773 $as_echo "no" >&6; }
cannam@252 3774 fi
cannam@252 3775
cannam@252 3776
cannam@252 3777 fi
cannam@252 3778 if test -z "$ac_cv_path_PKG_CONFIG"; then
cannam@252 3779 ac_pt_PKG_CONFIG=$PKG_CONFIG
cannam@252 3780 # Extract the first word of "pkg-config", so it can be a program name with args.
cannam@252 3781 set dummy pkg-config; ac_word=$2
Chris@315 3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@315 3783 $as_echo_n "checking for $ac_word... " >&6; }
Chris@321 3784 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Chris@315 3785 $as_echo_n "(cached) " >&6
cannam@252 3786 else
cannam@252 3787 case $ac_pt_PKG_CONFIG in
cannam@252 3788 [\\/]* | ?:[\\/]*)
cannam@252 3789 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
cannam@252 3790 ;;
cannam@252 3791 *)
cannam@252 3792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@252 3793 for as_dir in $PATH
cannam@252 3794 do
cannam@252 3795 IFS=$as_save_IFS
cannam@252 3796 test -z "$as_dir" && as_dir=.
Chris@315 3797 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@252 3798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@252 3799 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Chris@315 3800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@252 3801 break 2
cannam@252 3802 fi
cannam@252 3803 done
Chris@315 3804 done
cannam@252 3805 IFS=$as_save_IFS
cannam@252 3806
cannam@252 3807 ;;
cannam@252 3808 esac
cannam@252 3809 fi
cannam@252 3810 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
cannam@252 3811 if test -n "$ac_pt_PKG_CONFIG"; then
Chris@315 3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Chris@315 3813 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
cannam@252 3814 else
Chris@315 3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@315 3816 $as_echo "no" >&6; }
cannam@252 3817 fi
cannam@252 3818
cannam@252 3819 if test "x$ac_pt_PKG_CONFIG" = x; then
cannam@252 3820 PKG_CONFIG=""
cannam@252 3821 else
cannam@252 3822 case $cross_compiling:$ac_tool_warned in
cannam@252 3823 yes:)
Chris@315 3824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@315 3825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@252 3826 ac_tool_warned=yes ;;
cannam@252 3827 esac
cannam@252 3828 PKG_CONFIG=$ac_pt_PKG_CONFIG
cannam@252 3829 fi
cannam@252 3830 else
cannam@252 3831 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
cannam@252 3832 fi
cannam@252 3833
cannam@252 3834 fi
cannam@252 3835 if test -n "$PKG_CONFIG"; then
cannam@252 3836 _pkg_min_version=0.9.0
Chris@315 3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
Chris@315 3838 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
cannam@252 3839 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Chris@315 3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@315 3841 $as_echo "yes" >&6; }
cannam@252 3842 else
Chris@315 3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@315 3844 $as_echo "no" >&6; }
cannam@252 3845 PKG_CONFIG=""
cannam@252 3846 fi
cannam@252 3847 fi
cannam@252 3848
cannam@252 3849 pkg_failed=no
Chris@315 3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SNDFILE" >&5
Chris@315 3851 $as_echo_n "checking for SNDFILE... " >&6; }
Chris@315 3852
Chris@315 3853 if test -n "$SNDFILE_CFLAGS"; then
Chris@315 3854 pkg_cv_SNDFILE_CFLAGS="$SNDFILE_CFLAGS"
Chris@315 3855 elif test -n "$PKG_CONFIG"; then
Chris@315 3856 if test -n "$PKG_CONFIG" && \
Chris@315 3857 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile\""; } >&5
cannam@252 3858 ($PKG_CONFIG --exists --print-errors "sndfile") 2>&5
cannam@252 3859 ac_status=$?
Chris@315 3860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@315 3861 test $ac_status = 0; }; then
cannam@252 3862 pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile" 2>/dev/null`
Chris@321 3863 test "x$?" != "x0" && pkg_failed=yes
cannam@252 3864 else
cannam@252 3865 pkg_failed=yes
cannam@252 3866 fi
Chris@315 3867 else
Chris@315 3868 pkg_failed=untried
cannam@252 3869 fi
Chris@315 3870 if test -n "$SNDFILE_LIBS"; then
Chris@315 3871 pkg_cv_SNDFILE_LIBS="$SNDFILE_LIBS"
Chris@315 3872 elif test -n "$PKG_CONFIG"; then
Chris@315 3873 if test -n "$PKG_CONFIG" && \
Chris@315 3874 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile\""; } >&5
cannam@252 3875 ($PKG_CONFIG --exists --print-errors "sndfile") 2>&5
cannam@252 3876 ac_status=$?
Chris@315 3877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@315 3878 test $ac_status = 0; }; then
cannam@252 3879 pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile" 2>/dev/null`
Chris@321 3880 test "x$?" != "x0" && pkg_failed=yes
cannam@252 3881 else
cannam@252 3882 pkg_failed=yes
cannam@252 3883 fi
Chris@315 3884 else
Chris@315 3885 pkg_failed=untried
cannam@252 3886 fi
cannam@252 3887
cannam@252 3888
cannam@252 3889
cannam@252 3890 if test $pkg_failed = yes; then
Chris@315 3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@315 3892 $as_echo "no" >&6; }
cannam@252 3893
cannam@252 3894 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
cannam@252 3895 _pkg_short_errors_supported=yes
cannam@252 3896 else
cannam@252 3897 _pkg_short_errors_supported=no
cannam@252 3898 fi
cannam@252 3899 if test $_pkg_short_errors_supported = yes; then
Chris@321 3900 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndfile" 2>&1`
cannam@252 3901 else
Chris@321 3902 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndfile" 2>&1`
cannam@252 3903 fi
cannam@252 3904 # Put the nasty error message in config.log where it belongs
cannam@252 3905 echo "$SNDFILE_PKG_ERRORS" >&5
cannam@252 3906
Chris@315 3907 have_sndfile="no"
cannam@252 3908 elif test $pkg_failed = untried; then
Chris@315 3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@315 3910 $as_echo "no" >&6; }
cannam@278 3911 have_sndfile="no"
cannam@252 3912 else
cannam@252 3913 SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS
cannam@252 3914 SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS
Chris@315 3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@315 3916 $as_echo "yes" >&6; }
cannam@278 3917 have_sndfile="yes"
cannam@252 3918 fi
cannam@278 3919 if test "x$have_sndfile" = "xyes" ; then
cannam@278 3920 TARGETS="sdk plugins host rdfgen test"
cannam@278 3921 else
Chris@315 3922 as_fn_error $? "libsndfile not found - cannot build example Vamp host!
Chris@315 3923 If you don't want to build the host, configure with --disable-programs." "$LINENO" 5
cannam@278 3924 fi
cannam@278 3925 else
cannam@278 3926 TARGETS="sdk plugins"
cannam@278 3927 fi
cannam@278 3928
cannam@278 3929
cannam@252 3930
cannam@252 3931
cannam@252 3932
cannam@252 3933 if test "x$GCC" = "xyes"; then
cannam@252 3934 case " $CXXFLAGS " in
cannam@252 3935 *[\ \ ]-fPIC\ -Wall[\ \ ]*) ;;
cannam@252 3936 *) CXXFLAGS="$CXXFLAGS -fPIC -Wall" ;;
cannam@252 3937 esac
cannam@252 3938 fi
cannam@252 3939
cannam@278 3940
cannam@252 3941 ac_config_files="$ac_config_files Makefile"
cannam@252 3942
cannam@252 3943 cat >confcache <<\_ACEOF
cannam@252 3944 # This file is a shell script that caches the results of configure
cannam@252 3945 # tests run on this system so they can be shared between configure
cannam@252 3946 # scripts and configure runs, see configure's option --config-cache.
cannam@252 3947 # It is not useful on other systems. If it contains results you don't
cannam@252 3948 # want to keep, you may remove or edit it.
cannam@252 3949 #
cannam@252 3950 # config.status only pays attention to the cache file if you give it
cannam@252 3951 # the --recheck option to rerun configure.
cannam@252 3952 #
cannam@252 3953 # `ac_cv_env_foo' variables (set or unset) will be overridden when
cannam@252 3954 # loading this file, other *unset* `ac_cv_foo' will be assigned the
cannam@252 3955 # following values.
cannam@252 3956
cannam@252 3957 _ACEOF
cannam@252 3958
cannam@252 3959 # The following way of writing the cache mishandles newlines in values,
cannam@252 3960 # but we know of no workaround that is simple, portable, and efficient.
cannam@252 3961 # So, we kill variables containing newlines.
cannam@252 3962 # Ultrix sh set writes to stderr and can't be redirected directly,
cannam@252 3963 # and sets the high bit in the cache file unless we assign to the vars.
cannam@252 3964 (
cannam@252 3965 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
cannam@252 3966 eval ac_val=\$$ac_var
cannam@252 3967 case $ac_val in #(
cannam@252 3968 *${as_nl}*)
cannam@252 3969 case $ac_var in #(
Chris@315 3970 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Chris@315 3971 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
cannam@252 3972 esac
cannam@252 3973 case $ac_var in #(
cannam@252 3974 _ | IFS | as_nl) ;; #(
Chris@315 3975 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Chris@315 3976 *) { eval $ac_var=; unset $ac_var;} ;;
cannam@252 3977 esac ;;
cannam@252 3978 esac
cannam@252 3979 done
cannam@252 3980
cannam@252 3981 (set) 2>&1 |
cannam@252 3982 case $as_nl`(ac_space=' '; set) 2>&1` in #(
cannam@252 3983 *${as_nl}ac_space=\ *)
Chris@315 3984 # `set' does not quote correctly, so add quotes: double-quote
Chris@315 3985 # substitution turns \\\\ into \\, and sed turns \\ into \.
cannam@252 3986 sed -n \
cannam@252 3987 "s/'/'\\\\''/g;
cannam@252 3988 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
cannam@252 3989 ;; #(
cannam@252 3990 *)
cannam@252 3991 # `set' quotes correctly as required by POSIX, so do not add quotes.
cannam@252 3992 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
cannam@252 3993 ;;
cannam@252 3994 esac |
cannam@252 3995 sort
cannam@252 3996 ) |
cannam@252 3997 sed '
cannam@252 3998 /^ac_cv_env_/b end
cannam@252 3999 t clear
cannam@252 4000 :clear
cannam@252 4001 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
cannam@252 4002 t end
cannam@252 4003 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
cannam@252 4004 :end' >>confcache
cannam@252 4005 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
cannam@252 4006 if test -w "$cache_file"; then
Chris@321 4007 if test "x$cache_file" != "x/dev/null"; then
Chris@315 4008 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Chris@315 4009 $as_echo "$as_me: updating cache $cache_file" >&6;}
Chris@321 4010 if test ! -f "$cache_file" || test -h "$cache_file"; then
Chris@321 4011 cat confcache >"$cache_file"
Chris@321 4012 else
Chris@321 4013 case $cache_file in #(
Chris@321 4014 */* | ?:*)
Chris@321 4015 mv -f confcache "$cache_file"$$ &&
Chris@321 4016 mv -f "$cache_file"$$ "$cache_file" ;; #(
Chris@321 4017 *)
Chris@321 4018 mv -f confcache "$cache_file" ;;
Chris@321 4019 esac
Chris@321 4020 fi
Chris@321 4021 fi
cannam@252 4022 else
Chris@315 4023 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Chris@315 4024 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
cannam@252 4025 fi
cannam@252 4026 fi
cannam@252 4027 rm -f confcache
cannam@252 4028
cannam@252 4029 test "x$prefix" = xNONE && prefix=$ac_default_prefix
cannam@252 4030 # Let make expand exec_prefix.
cannam@252 4031 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
cannam@252 4032
cannam@252 4033 # Transform confdefs.h into DEFS.
cannam@252 4034 # Protect against shell expansion while executing Makefile rules.
cannam@252 4035 # Protect against Makefile macro expansion.
cannam@252 4036 #
cannam@252 4037 # If the first sed substitution is executed (which looks for macros that
cannam@252 4038 # take arguments), then branch to the quote section. Otherwise,
cannam@252 4039 # look for a macro that doesn't take arguments.
cannam@252 4040 ac_script='
Chris@315 4041 :mline
Chris@315 4042 /\\$/{
Chris@315 4043 N
Chris@315 4044 s,\\\n,,
Chris@315 4045 b mline
Chris@315 4046 }
cannam@252 4047 t clear
cannam@252 4048 :clear
cannam@252 4049 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
cannam@252 4050 t quote
cannam@252 4051 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
cannam@252 4052 t quote
cannam@252 4053 b any
cannam@252 4054 :quote
cannam@252 4055 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
cannam@252 4056 s/\[/\\&/g
cannam@252 4057 s/\]/\\&/g
cannam@252 4058 s/\$/$$/g
cannam@252 4059 H
cannam@252 4060 :any
cannam@252 4061 ${
cannam@252 4062 g
cannam@252 4063 s/^\n//
cannam@252 4064 s/\n/ /g
cannam@252 4065 p
cannam@252 4066 }
cannam@252 4067 '
cannam@252 4068 DEFS=`sed -n "$ac_script" confdefs.h`
cannam@252 4069
cannam@252 4070
cannam@252 4071 ac_libobjs=
cannam@252 4072 ac_ltlibobjs=
Chris@315 4073 U=
cannam@252 4074 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
cannam@252 4075 # 1. Remove the extension, and $U if already installed.
cannam@252 4076 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Chris@315 4077 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
cannam@252 4078 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
cannam@252 4079 # will be set to the directory where LIBOBJS objects are built.
Chris@315 4080 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
Chris@315 4081 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cannam@252 4082 done
cannam@252 4083 LIBOBJS=$ac_libobjs
cannam@252 4084
cannam@252 4085 LTLIBOBJS=$ac_ltlibobjs
cannam@252 4086
cannam@252 4087
cannam@252 4088
Chris@315 4089
Chris@321 4090 : "${CONFIG_STATUS=./config.status}"
Chris@315 4091 ac_write_fail=0
cannam@252 4092 ac_clean_files_save=$ac_clean_files
cannam@252 4093 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Chris@315 4094 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Chris@315 4095 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Chris@315 4096 as_write_fail=0
Chris@315 4097 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cannam@252 4098 #! $SHELL
cannam@252 4099 # Generated by $as_me.
cannam@252 4100 # Run this file to recreate the current configuration.
cannam@252 4101 # Compiler output produced by configure, useful for debugging
cannam@252 4102 # configure, is in config.log if it exists.
cannam@252 4103
cannam@252 4104 debug=false
cannam@252 4105 ac_cs_recheck=false
cannam@252 4106 ac_cs_silent=false
Chris@315 4107
cannam@252 4108 SHELL=\${CONFIG_SHELL-$SHELL}
Chris@315 4109 export SHELL
Chris@315 4110 _ASEOF
Chris@315 4111 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
Chris@315 4112 ## -------------------- ##
Chris@315 4113 ## M4sh Initialization. ##
Chris@315 4114 ## -------------------- ##
cannam@252 4115
cannam@252 4116 # Be more Bourne compatible
cannam@252 4117 DUALCASE=1; export DUALCASE # for MKS sh
Chris@315 4118 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cannam@252 4119 emulate sh
cannam@252 4120 NULLCMD=:
Chris@315 4121 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
cannam@252 4122 # is contrary to our usage. Disable this feature.
cannam@252 4123 alias -g '${1+"$@"}'='"$@"'
cannam@252 4124 setopt NO_GLOB_SUBST
cannam@252 4125 else
Chris@315 4126 case `(set -o) 2>/dev/null` in #(
Chris@315 4127 *posix*) :
Chris@315 4128 set -o posix ;; #(
Chris@315 4129 *) :
Chris@315 4130 ;;
cannam@252 4131 esac
cannam@252 4132 fi
cannam@252 4133
cannam@252 4134
Chris@315 4135 as_nl='
Chris@315 4136 '
Chris@315 4137 export as_nl
Chris@315 4138 # Printing a long string crashes Solaris 7 /usr/bin/printf.
Chris@315 4139 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@315 4140 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@315 4141 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@315 4142 # Prefer a ksh shell builtin over an external printf program on Solaris,
Chris@315 4143 # but without wasting forks for bash or zsh.
Chris@315 4144 if test -z "$BASH_VERSION$ZSH_VERSION" \
Chris@315 4145 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@315 4146 as_echo='print -r --'
Chris@315 4147 as_echo_n='print -rn --'
Chris@315 4148 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@315 4149 as_echo='printf %s\n'
Chris@315 4150 as_echo_n='printf %s'
Chris@315 4151 else
Chris@315 4152 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
Chris@315 4153 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
Chris@315 4154 as_echo_n='/usr/ucb/echo -n'
Chris@315 4155 else
Chris@315 4156 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
Chris@315 4157 as_echo_n_body='eval
Chris@315 4158 arg=$1;
Chris@315 4159 case $arg in #(
Chris@315 4160 *"$as_nl"*)
Chris@315 4161 expr "X$arg" : "X\\(.*\\)$as_nl";
Chris@315 4162 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
Chris@315 4163 esac;
Chris@315 4164 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
Chris@315 4165 '
Chris@315 4166 export as_echo_n_body
Chris@315 4167 as_echo_n='sh -c $as_echo_n_body as_echo'
Chris@315 4168 fi
Chris@315 4169 export as_echo_body
Chris@315 4170 as_echo='sh -c $as_echo_body as_echo'
Chris@315 4171 fi
cannam@252 4172
cannam@252 4173 # The user is always right.
cannam@252 4174 if test "${PATH_SEPARATOR+set}" != set; then
Chris@315 4175 PATH_SEPARATOR=:
Chris@315 4176 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
Chris@315 4177 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
Chris@315 4178 PATH_SEPARATOR=';'
Chris@315 4179 }
cannam@252 4180 fi
cannam@252 4181
cannam@252 4182
cannam@252 4183 # IFS
cannam@252 4184 # We need space, tab and new line, in precisely that order. Quoting is
cannam@252 4185 # there to prevent editors from complaining about space-tab.
cannam@252 4186 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
cannam@252 4187 # splitting by setting IFS to empty value.)
cannam@252 4188 IFS=" "" $as_nl"
cannam@252 4189
cannam@252 4190 # Find who we are. Look in the path if we contain no directory separator.
Chris@321 4191 as_myself=
Chris@315 4192 case $0 in #((
cannam@252 4193 *[\\/]* ) as_myself=$0 ;;
cannam@252 4194 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@252 4195 for as_dir in $PATH
cannam@252 4196 do
cannam@252 4197 IFS=$as_save_IFS
cannam@252 4198 test -z "$as_dir" && as_dir=.
Chris@315 4199 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
Chris@315 4200 done
cannam@252 4201 IFS=$as_save_IFS
cannam@252 4202
cannam@252 4203 ;;
cannam@252 4204 esac
cannam@252 4205 # We did not find ourselves, most probably we were run as `sh COMMAND'
cannam@252 4206 # in which case we are not to be found in the path.
cannam@252 4207 if test "x$as_myself" = x; then
cannam@252 4208 as_myself=$0
cannam@252 4209 fi
cannam@252 4210 if test ! -f "$as_myself"; then
Chris@315 4211 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Chris@315 4212 exit 1
cannam@252 4213 fi
cannam@252 4214
Chris@315 4215 # Unset variables that we do not need and which cause bugs (e.g. in
Chris@315 4216 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
Chris@315 4217 # suppresses any "Segmentation fault" message there. '((' could
Chris@315 4218 # trigger a bug in pdksh 5.2.14.
Chris@315 4219 for as_var in BASH_ENV ENV MAIL MAILPATH
Chris@315 4220 do eval test x\${$as_var+set} = xset \
Chris@315 4221 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cannam@252 4222 done
cannam@252 4223 PS1='$ '
cannam@252 4224 PS2='> '
cannam@252 4225 PS4='+ '
cannam@252 4226
cannam@252 4227 # NLS nuisances.
Chris@315 4228 LC_ALL=C
Chris@315 4229 export LC_ALL
Chris@315 4230 LANGUAGE=C
Chris@315 4231 export LANGUAGE
Chris@315 4232
Chris@315 4233 # CDPATH.
Chris@315 4234 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Chris@315 4235
Chris@315 4236
Chris@315 4237 # as_fn_error STATUS ERROR [LINENO LOG_FD]
Chris@315 4238 # ----------------------------------------
Chris@315 4239 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
Chris@315 4240 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Chris@315 4241 # script with STATUS, using 1 if that was 0.
Chris@315 4242 as_fn_error ()
Chris@315 4243 {
Chris@315 4244 as_status=$1; test $as_status -eq 0 && as_status=1
Chris@315 4245 if test "$4"; then
Chris@315 4246 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@315 4247 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cannam@252 4248 fi
Chris@315 4249 $as_echo "$as_me: error: $2" >&2
Chris@315 4250 as_fn_exit $as_status
Chris@315 4251 } # as_fn_error
Chris@315 4252
Chris@315 4253
Chris@315 4254 # as_fn_set_status STATUS
Chris@315 4255 # -----------------------
Chris@315 4256 # Set $? to STATUS, without forking.
Chris@315 4257 as_fn_set_status ()
Chris@315 4258 {
Chris@315 4259 return $1
Chris@315 4260 } # as_fn_set_status
Chris@315 4261
Chris@315 4262 # as_fn_exit STATUS
Chris@315 4263 # -----------------
Chris@315 4264 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
Chris@315 4265 as_fn_exit ()
Chris@315 4266 {
Chris@315 4267 set +e
Chris@315 4268 as_fn_set_status $1
Chris@315 4269 exit $1
Chris@315 4270 } # as_fn_exit
Chris@315 4271
Chris@315 4272 # as_fn_unset VAR
Chris@315 4273 # ---------------
Chris@315 4274 # Portably unset VAR.
Chris@315 4275 as_fn_unset ()
Chris@315 4276 {
Chris@315 4277 { eval $1=; unset $1;}
Chris@315 4278 }
Chris@315 4279 as_unset=as_fn_unset
Chris@315 4280 # as_fn_append VAR VALUE
Chris@315 4281 # ----------------------
Chris@315 4282 # Append the text in VALUE to the end of the definition contained in VAR. Take
Chris@315 4283 # advantage of any shell optimizations that allow amortized linear growth over
Chris@315 4284 # repeated appends, instead of the typical quadratic growth present in naive
Chris@315 4285 # implementations.
Chris@315 4286 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
Chris@315 4287 eval 'as_fn_append ()
Chris@315 4288 {
Chris@315 4289 eval $1+=\$2
Chris@315 4290 }'
Chris@315 4291 else
Chris@315 4292 as_fn_append ()
Chris@315 4293 {
Chris@315 4294 eval $1=\$$1\$2
Chris@315 4295 }
Chris@315 4296 fi # as_fn_append
Chris@315 4297
Chris@315 4298 # as_fn_arith ARG...
Chris@315 4299 # ------------------
Chris@315 4300 # Perform arithmetic evaluation on the ARGs, and store the result in the
Chris@315 4301 # global $as_val. Take advantage of shells that can avoid forks. The arguments
Chris@315 4302 # must be portable across $(()) and expr.
Chris@315 4303 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
Chris@315 4304 eval 'as_fn_arith ()
Chris@315 4305 {
Chris@315 4306 as_val=$(( $* ))
Chris@315 4307 }'
Chris@315 4308 else
Chris@315 4309 as_fn_arith ()
Chris@315 4310 {
Chris@315 4311 as_val=`expr "$@" || test $? -eq 1`
Chris@315 4312 }
Chris@315 4313 fi # as_fn_arith
Chris@315 4314
Chris@315 4315
cannam@252 4316 if expr a : '\(a\)' >/dev/null 2>&1 &&
cannam@252 4317 test "X`expr 00001 : '.*\(...\)'`" = X001; then
cannam@252 4318 as_expr=expr
cannam@252 4319 else
cannam@252 4320 as_expr=false
cannam@252 4321 fi
cannam@252 4322
cannam@252 4323 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
cannam@252 4324 as_basename=basename
cannam@252 4325 else
cannam@252 4326 as_basename=false
cannam@252 4327 fi
cannam@252 4328
Chris@315 4329 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
Chris@315 4330 as_dirname=dirname
Chris@315 4331 else
Chris@315 4332 as_dirname=false
Chris@315 4333 fi
Chris@315 4334
cannam@252 4335 as_me=`$as_basename -- "$0" ||
cannam@252 4336 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
cannam@252 4337 X"$0" : 'X\(//\)$' \| \
cannam@252 4338 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Chris@315 4339 $as_echo X/"$0" |
cannam@252 4340 sed '/^.*\/\([^/][^/]*\)\/*$/{
cannam@252 4341 s//\1/
cannam@252 4342 q
cannam@252 4343 }
cannam@252 4344 /^X\/\(\/\/\)$/{
cannam@252 4345 s//\1/
cannam@252 4346 q
cannam@252 4347 }
cannam@252 4348 /^X\/\(\/\).*/{
cannam@252 4349 s//\1/
cannam@252 4350 q
cannam@252 4351 }
cannam@252 4352 s/.*/./; q'`
cannam@252 4353
Chris@315 4354 # Avoid depending upon Character Ranges.
Chris@315 4355 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
Chris@315 4356 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
Chris@315 4357 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
Chris@315 4358 as_cr_digits='0123456789'
Chris@315 4359 as_cr_alnum=$as_cr_Letters$as_cr_digits
cannam@252 4360
cannam@252 4361 ECHO_C= ECHO_N= ECHO_T=
Chris@315 4362 case `echo -n x` in #(((((
cannam@252 4363 -n*)
Chris@315 4364 case `echo 'xy\c'` in
cannam@252 4365 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Chris@315 4366 xy) ECHO_C='\c';;
Chris@315 4367 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
Chris@315 4368 ECHO_T=' ';;
cannam@252 4369 esac;;
cannam@252 4370 *)
cannam@252 4371 ECHO_N='-n';;
cannam@252 4372 esac
cannam@252 4373
cannam@252 4374 rm -f conf$$ conf$$.exe conf$$.file
cannam@252 4375 if test -d conf$$.dir; then
cannam@252 4376 rm -f conf$$.dir/conf$$.file
cannam@252 4377 else
cannam@252 4378 rm -f conf$$.dir
Chris@315 4379 mkdir conf$$.dir 2>/dev/null
cannam@252 4380 fi
Chris@315 4381 if (echo >conf$$.file) 2>/dev/null; then
Chris@315 4382 if ln -s conf$$.file conf$$ 2>/dev/null; then
Chris@315 4383 as_ln_s='ln -s'
Chris@315 4384 # ... but there are two gotchas:
Chris@315 4385 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
Chris@315 4386 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Chris@315 4387 # In both cases, we have to default to `cp -p'.
Chris@315 4388 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Chris@315 4389 as_ln_s='cp -p'
Chris@315 4390 elif ln conf$$.file conf$$ 2>/dev/null; then
Chris@315 4391 as_ln_s=ln
Chris@315 4392 else
cannam@252 4393 as_ln_s='cp -p'
Chris@315 4394 fi
cannam@252 4395 else
cannam@252 4396 as_ln_s='cp -p'
cannam@252 4397 fi
cannam@252 4398 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
cannam@252 4399 rmdir conf$$.dir 2>/dev/null
cannam@252 4400
Chris@315 4401
Chris@315 4402 # as_fn_mkdir_p
Chris@315 4403 # -------------
Chris@315 4404 # Create "$as_dir" as a directory, including parents if necessary.
Chris@315 4405 as_fn_mkdir_p ()
cannam@252 4406 {
Chris@315 4407
cannam@252 4408 case $as_dir in #(
cannam@252 4409 -*) as_dir=./$as_dir;;
cannam@252 4410 esac
Chris@315 4411 test -d "$as_dir" || eval $as_mkdir_p || {
cannam@252 4412 as_dirs=
cannam@252 4413 while :; do
cannam@252 4414 case $as_dir in #(
Chris@315 4415 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
cannam@252 4416 *) as_qdir=$as_dir;;
cannam@252 4417 esac
cannam@252 4418 as_dirs="'$as_qdir' $as_dirs"
cannam@252 4419 as_dir=`$as_dirname -- "$as_dir" ||
cannam@252 4420 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@252 4421 X"$as_dir" : 'X\(//\)[^/]' \| \
cannam@252 4422 X"$as_dir" : 'X\(//\)$' \| \
cannam@252 4423 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Chris@315 4424 $as_echo X"$as_dir" |
cannam@252 4425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@252 4426 s//\1/
cannam@252 4427 q
cannam@252 4428 }
cannam@252 4429 /^X\(\/\/\)[^/].*/{
cannam@252 4430 s//\1/
cannam@252 4431 q
cannam@252 4432 }
cannam@252 4433 /^X\(\/\/\)$/{
cannam@252 4434 s//\1/
cannam@252 4435 q
cannam@252 4436 }
cannam@252 4437 /^X\(\/\).*/{
cannam@252 4438 s//\1/
cannam@252 4439 q
cannam@252 4440 }
cannam@252 4441 s/.*/./; q'`
cannam@252 4442 test -d "$as_dir" && break
cannam@252 4443 done
cannam@252 4444 test -z "$as_dirs" || eval "mkdir $as_dirs"
Chris@315 4445 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Chris@315 4446
Chris@315 4447
Chris@315 4448 } # as_fn_mkdir_p
Chris@315 4449 if mkdir -p . 2>/dev/null; then
Chris@315 4450 as_mkdir_p='mkdir -p "$as_dir"'
Chris@315 4451 else
Chris@315 4452 test -d ./-p && rmdir ./-p
Chris@315 4453 as_mkdir_p=false
Chris@315 4454 fi
Chris@315 4455
Chris@315 4456 if test -x / >/dev/null 2>&1; then
Chris@315 4457 as_test_x='test -x'
Chris@315 4458 else
Chris@315 4459 if ls -dL / >/dev/null 2>&1; then
Chris@315 4460 as_ls_L_option=L
Chris@315 4461 else
Chris@315 4462 as_ls_L_option=
Chris@315 4463 fi
Chris@315 4464 as_test_x='
Chris@315 4465 eval sh -c '\''
Chris@315 4466 if test -d "$1"; then
Chris@315 4467 test -d "$1/.";
Chris@315 4468 else
Chris@315 4469 case $1 in #(
Chris@315 4470 -*)set "./$1";;
Chris@315 4471 esac;
Chris@315 4472 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Chris@315 4473 ???[sx]*):;;*)false;;esac;fi
Chris@315 4474 '\'' sh
Chris@315 4475 '
Chris@315 4476 fi
Chris@315 4477 as_executable_p=$as_test_x
Chris@315 4478
Chris@315 4479 # Sed expression to map a string onto a valid CPP name.
Chris@315 4480 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Chris@315 4481
Chris@315 4482 # Sed expression to map a string onto a valid variable name.
Chris@315 4483 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Chris@315 4484
Chris@315 4485
Chris@315 4486 exec 6>&1
Chris@315 4487 ## ----------------------------------- ##
Chris@315 4488 ## Main body of $CONFIG_STATUS script. ##
Chris@315 4489 ## ----------------------------------- ##
Chris@315 4490 _ASEOF
Chris@315 4491 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Chris@315 4492
Chris@315 4493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@315 4494 # Save the log message, to keep $0 and so on meaningful, and to
Chris@315 4495 # report actual input values of CONFIG_FILES etc. instead of their
Chris@315 4496 # values after options handling.
Chris@315 4497 ac_log="
Chris@321 4498 This file was extended by vamp-plugin-sdk $as_me 2.3.0, which was
Chris@321 4499 generated by GNU Autoconf 2.68. Invocation command line was
Chris@315 4500
Chris@315 4501 CONFIG_FILES = $CONFIG_FILES
Chris@315 4502 CONFIG_HEADERS = $CONFIG_HEADERS
Chris@315 4503 CONFIG_LINKS = $CONFIG_LINKS
Chris@315 4504 CONFIG_COMMANDS = $CONFIG_COMMANDS
Chris@315 4505 $ $0 $@
Chris@315 4506
Chris@315 4507 on `(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@315 4508 "
Chris@315 4509
Chris@315 4510 _ACEOF
Chris@315 4511
Chris@315 4512 case $ac_config_files in *"
Chris@315 4513 "*) set x $ac_config_files; shift; ac_config_files=$*;;
Chris@315 4514 esac
Chris@315 4515
Chris@315 4516
Chris@315 4517
Chris@315 4518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@315 4519 # Files that config.status was made for.
Chris@315 4520 config_files="$ac_config_files"
Chris@315 4521
Chris@315 4522 _ACEOF
Chris@315 4523
Chris@315 4524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@315 4525 ac_cs_usage="\
Chris@315 4526 \`$as_me' instantiates files and other configuration actions
Chris@315 4527 from templates according to the current configuration. Unless the files
Chris@315 4528 and actions are specified as TAGs, all are instantiated by default.
Chris@315 4529
Chris@315 4530 Usage: $0 [OPTION]... [TAG]...
Chris@315 4531
Chris@315 4532 -h, --help print this help, then exit
Chris@315 4533 -V, --version print version number and configuration settings, then exit
Chris@315 4534 --config print configuration, then exit
Chris@315 4535 -q, --quiet, --silent
Chris@315 4536 do not print progress messages
Chris@315 4537 -d, --debug don't remove temporary files
Chris@315 4538 --recheck update $as_me by reconfiguring in the same conditions
Chris@315 4539 --file=FILE[:TEMPLATE]
Chris@315 4540 instantiate the configuration file FILE
Chris@315 4541
Chris@315 4542 Configuration files:
Chris@315 4543 $config_files
Chris@315 4544
Chris@315 4545 Report bugs to <cannam@all-day-breakfast.com>."
Chris@315 4546
Chris@315 4547 _ACEOF
Chris@315 4548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@315 4549 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Chris@315 4550 ac_cs_version="\\
Chris@321 4551 vamp-plugin-sdk config.status 2.3.0
Chris@321 4552 configured by $0, generated by GNU Autoconf 2.68,
Chris@315 4553 with options \\"\$ac_cs_config\\"
Chris@315 4554
Chris@315 4555 Copyright (C) 2010 Free Software Foundation, Inc.
Chris@315 4556 This config.status script is free software; the Free Software Foundation
Chris@315 4557 gives unlimited permission to copy, distribute and modify it."
Chris@315 4558
Chris@315 4559 ac_pwd='$ac_pwd'
Chris@315 4560 srcdir='$srcdir'
Chris@315 4561 test -n "\$AWK" || AWK=awk
Chris@315 4562 _ACEOF
Chris@315 4563
Chris@315 4564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@315 4565 # The default lists apply if the user does not specify any file.
Chris@315 4566 ac_need_defaults=:
Chris@315 4567 while test $# != 0
Chris@315 4568 do
Chris@315 4569 case $1 in
Chris@315 4570 --*=?*)
Chris@315 4571 ac_option=`expr "X$1" : 'X\([^=]*\)='`
Chris@315 4572 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Chris@315 4573 ac_shift=:
Chris@315 4574 ;;
Chris@315 4575 --*=)
Chris@315 4576 ac_option=`expr "X$1" : 'X\([^=]*\)='`
Chris@315 4577 ac_optarg=
Chris@315 4578 ac_shift=:
Chris@315 4579 ;;
Chris@315 4580 *)
Chris@315 4581 ac_option=$1
Chris@315 4582 ac_optarg=$2
Chris@315 4583 ac_shift=shift
Chris@315 4584 ;;
Chris@315 4585 esac
Chris@315 4586
Chris@315 4587 case $ac_option in
Chris@315 4588 # Handling of the options.
Chris@315 4589 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Chris@315 4590 ac_cs_recheck=: ;;
Chris@315 4591 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Chris@315 4592 $as_echo "$ac_cs_version"; exit ;;
Chris@315 4593 --config | --confi | --conf | --con | --co | --c )
Chris@315 4594 $as_echo "$ac_cs_config"; exit ;;
Chris@315 4595 --debug | --debu | --deb | --de | --d | -d )
Chris@315 4596 debug=: ;;
Chris@315 4597 --file | --fil | --fi | --f )
Chris@315 4598 $ac_shift
Chris@315 4599 case $ac_optarg in
Chris@315 4600 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@315 4601 '') as_fn_error $? "missing file argument" ;;
Chris@315 4602 esac
Chris@315 4603 as_fn_append CONFIG_FILES " '$ac_optarg'"
Chris@315 4604 ac_need_defaults=false;;
Chris@315 4605 --he | --h | --help | --hel | -h )
Chris@315 4606 $as_echo "$ac_cs_usage"; exit ;;
Chris@315 4607 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@315 4608 | -silent | --silent | --silen | --sile | --sil | --si | --s)
Chris@315 4609 ac_cs_silent=: ;;
Chris@315 4610
Chris@315 4611 # This is an error.
Chris@315 4612 -*) as_fn_error $? "unrecognized option: \`$1'
Chris@315 4613 Try \`$0 --help' for more information." ;;
Chris@315 4614
Chris@315 4615 *) as_fn_append ac_config_targets " $1"
Chris@315 4616 ac_need_defaults=false ;;
Chris@315 4617
Chris@315 4618 esac
Chris@315 4619 shift
Chris@315 4620 done
Chris@315 4621
Chris@315 4622 ac_configure_extra_args=
Chris@315 4623
Chris@315 4624 if $ac_cs_silent; then
Chris@315 4625 exec 6>/dev/null
Chris@315 4626 ac_configure_extra_args="$ac_configure_extra_args --silent"
Chris@315 4627 fi
Chris@315 4628
Chris@315 4629 _ACEOF
Chris@315 4630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@315 4631 if \$ac_cs_recheck; then
Chris@315 4632 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Chris@315 4633 shift
Chris@315 4634 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
Chris@315 4635 CONFIG_SHELL='$SHELL'
Chris@315 4636 export CONFIG_SHELL
Chris@315 4637 exec "\$@"
Chris@315 4638 fi
Chris@315 4639
Chris@315 4640 _ACEOF
Chris@315 4641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@315 4642 exec 5>>config.log
Chris@315 4643 {
Chris@315 4644 echo
Chris@315 4645 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
Chris@315 4646 ## Running $as_me. ##
Chris@315 4647 _ASBOX
Chris@315 4648 $as_echo "$ac_log"
Chris@315 4649 } >&5
Chris@315 4650
Chris@315 4651 _ACEOF
Chris@315 4652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@315 4653 _ACEOF
Chris@315 4654
Chris@315 4655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@315 4656
Chris@315 4657 # Handling of arguments.
Chris@315 4658 for ac_config_target in $ac_config_targets
Chris@315 4659 do
Chris@315 4660 case $ac_config_target in
Chris@315 4661 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Chris@315 4662
Chris@321 4663 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Chris@315 4664 esac
Chris@315 4665 done
Chris@315 4666
Chris@315 4667
Chris@315 4668 # If the user did not use the arguments to specify the items to instantiate,
Chris@315 4669 # then the envvar interface is used. Set only those that are not.
Chris@315 4670 # We use the long form for the default assignment because of an extremely
Chris@315 4671 # bizarre bug on SunOS 4.1.3.
Chris@315 4672 if $ac_need_defaults; then
Chris@315 4673 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Chris@315 4674 fi
Chris@315 4675
Chris@315 4676 # Have a temporary directory for convenience. Make it in the build tree
Chris@315 4677 # simply because there is no reason against having it here, and in addition,
Chris@315 4678 # creating and moving files from /tmp can sometimes cause problems.
Chris@315 4679 # Hook for its removal unless debugging.
Chris@315 4680 # Note that there is a small window in which the directory will not be cleaned:
Chris@315 4681 # after its creation but before its name has been assigned to `$tmp'.
Chris@315 4682 $debug ||
Chris@315 4683 {
Chris@321 4684 tmp= ac_tmp=
Chris@315 4685 trap 'exit_status=$?
Chris@321 4686 : "${ac_tmp:=$tmp}"
Chris@321 4687 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Chris@315 4688 ' 0
Chris@315 4689 trap 'as_fn_exit 1' 1 2 13 15
Chris@315 4690 }
Chris@315 4691 # Create a (secure) tmp directory for tmp files.
Chris@315 4692
Chris@315 4693 {
Chris@315 4694 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Chris@321 4695 test -d "$tmp"
Chris@315 4696 } ||
Chris@315 4697 {
Chris@315 4698 tmp=./conf$$-$RANDOM
Chris@315 4699 (umask 077 && mkdir "$tmp")
Chris@315 4700 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
Chris@321 4701 ac_tmp=$tmp
Chris@315 4702
Chris@315 4703 # Set up the scripts for CONFIG_FILES section.
Chris@315 4704 # No need to generate them if there are no CONFIG_FILES.
Chris@315 4705 # This happens for instance with `./config.status config.h'.
Chris@315 4706 if test -n "$CONFIG_FILES"; then
Chris@315 4707
Chris@315 4708
Chris@315 4709 ac_cr=`echo X | tr X '\015'`
Chris@315 4710 # On cygwin, bash can eat \r inside `` if the user requested igncr.
Chris@315 4711 # But we know of no other shell where ac_cr would be empty at this
Chris@315 4712 # point, so we can use a bashism as a fallback.
Chris@315 4713 if test "x$ac_cr" = x; then
Chris@315 4714 eval ac_cr=\$\'\\r\'
Chris@315 4715 fi
Chris@315 4716 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
Chris@315 4717 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Chris@315 4718 ac_cs_awk_cr='\\r'
Chris@315 4719 else
Chris@315 4720 ac_cs_awk_cr=$ac_cr
Chris@315 4721 fi
Chris@315 4722
Chris@321 4723 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Chris@315 4724 _ACEOF
Chris@315 4725
Chris@315 4726
Chris@315 4727 {
Chris@315 4728 echo "cat >conf$$subs.awk <<_ACEOF" &&
Chris@315 4729 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
Chris@315 4730 echo "_ACEOF"
Chris@315 4731 } >conf$$subs.sh ||
Chris@315 4732 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Chris@315 4733 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Chris@315 4734 ac_delim='%!_!# '
Chris@315 4735 for ac_last_try in false false false false false :; do
Chris@315 4736 . ./conf$$subs.sh ||
Chris@315 4737 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Chris@315 4738
Chris@315 4739 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
Chris@315 4740 if test $ac_delim_n = $ac_delim_num; then
Chris@315 4741 break
Chris@315 4742 elif $ac_last_try; then
Chris@315 4743 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Chris@315 4744 else
Chris@315 4745 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Chris@315 4746 fi
Chris@315 4747 done
Chris@315 4748 rm -f conf$$subs.sh
Chris@315 4749
Chris@315 4750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@321 4751 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Chris@315 4752 _ACEOF
Chris@315 4753 sed -n '
Chris@315 4754 h
Chris@315 4755 s/^/S["/; s/!.*/"]=/
Chris@315 4756 p
Chris@315 4757 g
Chris@315 4758 s/^[^!]*!//
Chris@315 4759 :repl
Chris@315 4760 t repl
Chris@315 4761 s/'"$ac_delim"'$//
Chris@315 4762 t delim
Chris@315 4763 :nl
Chris@315 4764 h
Chris@315 4765 s/\(.\{148\}\)..*/\1/
Chris@315 4766 t more1
Chris@315 4767 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
Chris@315 4768 p
Chris@315 4769 n
Chris@315 4770 b repl
Chris@315 4771 :more1
Chris@315 4772 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
Chris@315 4773 p
Chris@315 4774 g
Chris@315 4775 s/.\{148\}//
Chris@315 4776 t nl
Chris@315 4777 :delim
Chris@315 4778 h
Chris@315 4779 s/\(.\{148\}\)..*/\1/
Chris@315 4780 t more2
Chris@315 4781 s/["\\]/\\&/g; s/^/"/; s/$/"/
Chris@315 4782 p
Chris@315 4783 b
Chris@315 4784 :more2
Chris@315 4785 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
Chris@315 4786 p
Chris@315 4787 g
Chris@315 4788 s/.\{148\}//
Chris@315 4789 t delim
Chris@315 4790 ' <conf$$subs.awk | sed '
Chris@315 4791 /^[^""]/{
Chris@315 4792 N
Chris@315 4793 s/\n//
Chris@315 4794 }
Chris@315 4795 ' >>$CONFIG_STATUS || ac_write_fail=1
Chris@315 4796 rm -f conf$$subs.awk
Chris@315 4797 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@315 4798 _ACAWK
Chris@321 4799 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Chris@315 4800 for (key in S) S_is_set[key] = 1
Chris@315 4801 FS = ""
Chris@315 4802
Chris@315 4803 }
Chris@315 4804 {
Chris@315 4805 line = $ 0
Chris@315 4806 nfields = split(line, field, "@")
Chris@315 4807 substed = 0
Chris@315 4808 len = length(field[1])
Chris@315 4809 for (i = 2; i < nfields; i++) {
Chris@315 4810 key = field[i]
Chris@315 4811 keylen = length(key)
Chris@315 4812 if (S_is_set[key]) {
Chris@315 4813 value = S[key]
Chris@315 4814 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
Chris@315 4815 len += length(value) + length(field[++i])
Chris@315 4816 substed = 1
Chris@315 4817 } else
Chris@315 4818 len += 1 + keylen
Chris@315 4819 }
Chris@315 4820
Chris@315 4821 print line
Chris@315 4822 }
Chris@315 4823
Chris@315 4824 _ACAWK
Chris@315 4825 _ACEOF
Chris@315 4826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@315 4827 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
Chris@315 4828 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
Chris@315 4829 else
Chris@315 4830 cat
Chris@321 4831 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
Chris@315 4832 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Chris@315 4833 _ACEOF
Chris@315 4834
Chris@315 4835 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
Chris@315 4836 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Chris@315 4837 # trailing colons and then remove the whole line if VPATH becomes empty
Chris@315 4838 # (actually we leave an empty line to preserve line numbers).
Chris@315 4839 if test "x$srcdir" = x.; then
Chris@315 4840 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
Chris@315 4841 h
Chris@315 4842 s///
Chris@315 4843 s/^/:/
Chris@315 4844 s/[ ]*$/:/
Chris@315 4845 s/:\$(srcdir):/:/g
Chris@315 4846 s/:\${srcdir}:/:/g
Chris@315 4847 s/:@srcdir@:/:/g
Chris@315 4848 s/^:*//
Chris@315 4849 s/:*$//
Chris@315 4850 x
Chris@315 4851 s/\(=[ ]*\).*/\1/
Chris@315 4852 G
Chris@315 4853 s/\n//
Chris@315 4854 s/^[^=]*=[ ]*$//
Chris@315 4855 }'
Chris@315 4856 fi
Chris@315 4857
Chris@315 4858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@315 4859 fi # test -n "$CONFIG_FILES"
Chris@315 4860
Chris@315 4861
Chris@315 4862 eval set X " :F $CONFIG_FILES "
Chris@315 4863 shift
Chris@315 4864 for ac_tag
Chris@315 4865 do
Chris@315 4866 case $ac_tag in
Chris@315 4867 :[FHLC]) ac_mode=$ac_tag; continue;;
Chris@315 4868 esac
Chris@315 4869 case $ac_mode$ac_tag in
Chris@315 4870 :[FHL]*:*);;
Chris@321 4871 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Chris@315 4872 :[FH]-) ac_tag=-:-;;
Chris@315 4873 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
Chris@315 4874 esac
Chris@315 4875 ac_save_IFS=$IFS
Chris@315 4876 IFS=:
Chris@315 4877 set x $ac_tag
Chris@315 4878 IFS=$ac_save_IFS
Chris@315 4879 shift
Chris@315 4880 ac_file=$1
Chris@315 4881 shift
Chris@315 4882
Chris@315 4883 case $ac_mode in
Chris@315 4884 :L) ac_source=$1;;
Chris@315 4885 :[FH])
Chris@315 4886 ac_file_inputs=
Chris@315 4887 for ac_f
Chris@315 4888 do
Chris@315 4889 case $ac_f in
Chris@321 4890 -) ac_f="$ac_tmp/stdin";;
Chris@315 4891 *) # Look for the file first in the build tree, then in the source tree
Chris@315 4892 # (if the path is not absolute). The absolute path cannot be DOS-style,
Chris@315 4893 # because $ac_f cannot contain `:'.
Chris@315 4894 test -f "$ac_f" ||
Chris@315 4895 case $ac_f in
Chris@315 4896 [\\/$]*) false;;
Chris@315 4897 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
Chris@315 4898 esac ||
Chris@321 4899 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Chris@315 4900 esac
Chris@315 4901 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Chris@315 4902 as_fn_append ac_file_inputs " '$ac_f'"
Chris@315 4903 done
Chris@315 4904
Chris@315 4905 # Let's still pretend it is `configure' which instantiates (i.e., don't
Chris@315 4906 # use $as_me), people would be surprised to read:
Chris@315 4907 # /* config.h. Generated by config.status. */
Chris@315 4908 configure_input='Generated from '`
Chris@315 4909 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
Chris@315 4910 `' by configure.'
Chris@315 4911 if test x"$ac_file" != x-; then
Chris@315 4912 configure_input="$ac_file. $configure_input"
Chris@315 4913 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Chris@315 4914 $as_echo "$as_me: creating $ac_file" >&6;}
Chris@315 4915 fi
Chris@315 4916 # Neutralize special characters interpreted by sed in replacement strings.
Chris@315 4917 case $configure_input in #(
Chris@315 4918 *\&* | *\|* | *\\* )
Chris@315 4919 ac_sed_conf_input=`$as_echo "$configure_input" |
Chris@315 4920 sed 's/[\\\\&|]/\\\\&/g'`;; #(
Chris@315 4921 *) ac_sed_conf_input=$configure_input;;
Chris@315 4922 esac
Chris@315 4923
Chris@315 4924 case $ac_tag in
Chris@321 4925 *:-:* | *:-) cat >"$ac_tmp/stdin" \
Chris@321 4926 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Chris@315 4927 esac
Chris@315 4928 ;;
Chris@315 4929 esac
Chris@315 4930
Chris@315 4931 ac_dir=`$as_dirname -- "$ac_file" ||
Chris@315 4932 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@315 4933 X"$ac_file" : 'X\(//\)[^/]' \| \
Chris@315 4934 X"$ac_file" : 'X\(//\)$' \| \
Chris@315 4935 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Chris@315 4936 $as_echo X"$ac_file" |
Chris@315 4937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@315 4938 s//\1/
Chris@315 4939 q
Chris@315 4940 }
Chris@315 4941 /^X\(\/\/\)[^/].*/{
Chris@315 4942 s//\1/
Chris@315 4943 q
Chris@315 4944 }
Chris@315 4945 /^X\(\/\/\)$/{
Chris@315 4946 s//\1/
Chris@315 4947 q
Chris@315 4948 }
Chris@315 4949 /^X\(\/\).*/{
Chris@315 4950 s//\1/
Chris@315 4951 q
Chris@315 4952 }
Chris@315 4953 s/.*/./; q'`
Chris@315 4954 as_dir="$ac_dir"; as_fn_mkdir_p
cannam@252 4955 ac_builddir=.
cannam@252 4956
cannam@252 4957 case "$ac_dir" in
cannam@252 4958 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@252 4959 *)
Chris@315 4960 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
cannam@252 4961 # A ".." for each directory in $ac_dir_suffix.
Chris@315 4962 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
cannam@252 4963 case $ac_top_builddir_sub in
cannam@252 4964 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@252 4965 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
cannam@252 4966 esac ;;
cannam@252 4967 esac
cannam@252 4968 ac_abs_top_builddir=$ac_pwd
cannam@252 4969 ac_abs_builddir=$ac_pwd$ac_dir_suffix
cannam@252 4970 # for backward compatibility:
cannam@252 4971 ac_top_builddir=$ac_top_build_prefix
cannam@252 4972
cannam@252 4973 case $srcdir in
cannam@252 4974 .) # We are building in place.
cannam@252 4975 ac_srcdir=.
cannam@252 4976 ac_top_srcdir=$ac_top_builddir_sub
cannam@252 4977 ac_abs_top_srcdir=$ac_pwd ;;
cannam@252 4978 [\\/]* | ?:[\\/]* ) # Absolute name.
cannam@252 4979 ac_srcdir=$srcdir$ac_dir_suffix;
cannam@252 4980 ac_top_srcdir=$srcdir
cannam@252 4981 ac_abs_top_srcdir=$srcdir ;;
cannam@252 4982 *) # Relative name.
cannam@252 4983 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
cannam@252 4984 ac_top_srcdir=$ac_top_build_prefix$srcdir
cannam@252 4985 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
cannam@252 4986 esac
cannam@252 4987 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
cannam@252 4988
cannam@252 4989
cannam@252 4990 case $ac_mode in
cannam@252 4991 :F)
cannam@252 4992 #
cannam@252 4993 # CONFIG_FILE
cannam@252 4994 #
cannam@252 4995
cannam@252 4996 _ACEOF
cannam@252 4997
Chris@315 4998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@252 4999 # If the template does not know about datarootdir, expand it.
cannam@252 5000 # FIXME: This hack should be removed a few years after 2.60.
cannam@252 5001 ac_datarootdir_hack=; ac_datarootdir_seen=
Chris@315 5002 ac_sed_dataroot='
Chris@315 5003 /datarootdir/ {
cannam@252 5004 p
cannam@252 5005 q
cannam@252 5006 }
cannam@252 5007 /@datadir@/p
cannam@252 5008 /@docdir@/p
cannam@252 5009 /@infodir@/p
cannam@252 5010 /@localedir@/p
Chris@315 5011 /@mandir@/p'
Chris@315 5012 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
cannam@252 5013 *datarootdir*) ac_datarootdir_seen=yes;;
cannam@252 5014 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Chris@315 5015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
Chris@315 5016 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
cannam@252 5017 _ACEOF
Chris@315 5018 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@252 5019 ac_datarootdir_hack='
cannam@252 5020 s&@datadir@&$datadir&g
cannam@252 5021 s&@docdir@&$docdir&g
cannam@252 5022 s&@infodir@&$infodir&g
cannam@252 5023 s&@localedir@&$localedir&g
cannam@252 5024 s&@mandir@&$mandir&g
Chris@315 5025 s&\\\${datarootdir}&$datarootdir&g' ;;
cannam@252 5026 esac
cannam@252 5027 _ACEOF
cannam@252 5028
cannam@252 5029 # Neutralize VPATH when `$srcdir' = `.'.
cannam@252 5030 # Shell code in configure.ac might set extrasub.
cannam@252 5031 # FIXME: do we really want to maintain this feature?
Chris@315 5032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@315 5033 ac_sed_extra="$ac_vpsub
cannam@252 5034 $extrasub
cannam@252 5035 _ACEOF
Chris@315 5036 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@252 5037 :t
cannam@252 5038 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Chris@315 5039 s|@configure_input@|$ac_sed_conf_input|;t t
cannam@252 5040 s&@top_builddir@&$ac_top_builddir_sub&;t t
Chris@315 5041 s&@top_build_prefix@&$ac_top_build_prefix&;t t
cannam@252 5042 s&@srcdir@&$ac_srcdir&;t t
cannam@252 5043 s&@abs_srcdir@&$ac_abs_srcdir&;t t
cannam@252 5044 s&@top_srcdir@&$ac_top_srcdir&;t t
cannam@252 5045 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
cannam@252 5046 s&@builddir@&$ac_builddir&;t t
cannam@252 5047 s&@abs_builddir@&$ac_abs_builddir&;t t
cannam@252 5048 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
cannam@252 5049 $ac_datarootdir_hack
Chris@315 5050 "
Chris@321 5051 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
Chris@321 5052 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cannam@252 5053
cannam@252 5054 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Chris@321 5055 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
Chris@321 5056 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
Chris@321 5057 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Chris@315 5058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Chris@315 5059 which seems to be undefined. Please make sure it is defined" >&5
Chris@315 5060 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Chris@315 5061 which seems to be undefined. Please make sure it is defined" >&2;}
cannam@252 5062
Chris@321 5063 rm -f "$ac_tmp/stdin"
cannam@252 5064 case $ac_file in
Chris@321 5065 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
Chris@321 5066 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Chris@315 5067 esac \
Chris@315 5068 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@315 5069 ;;
Chris@315 5070
Chris@315 5071
Chris@315 5072
cannam@252 5073 esac
cannam@252 5074
cannam@252 5075 done # for ac_tag
cannam@252 5076
cannam@252 5077
Chris@315 5078 as_fn_exit 0
cannam@252 5079 _ACEOF
cannam@252 5080 ac_clean_files=$ac_clean_files_save
cannam@252 5081
Chris@315 5082 test $ac_write_fail = 0 ||
Chris@315 5083 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Chris@315 5084
cannam@252 5085
cannam@252 5086 # configure is writing to config.log, and then calls config.status.
cannam@252 5087 # config.status does its own redirection, appending to config.log.
cannam@252 5088 # Unfortunately, on DOS this fails, as config.log is still kept open
cannam@252 5089 # by configure, so config.status won't be able to write to it; its
cannam@252 5090 # output is simply discarded. So we exec the FD to /dev/null,
cannam@252 5091 # effectively closing config.log, so it can be properly (re)opened and
cannam@252 5092 # appended to by config.status. When coming back to configure, we
cannam@252 5093 # need to make the FD available again.
cannam@252 5094 if test "$no_create" != yes; then
cannam@252 5095 ac_cs_success=:
cannam@252 5096 ac_config_status_args=
cannam@252 5097 test "$silent" = yes &&
cannam@252 5098 ac_config_status_args="$ac_config_status_args --quiet"
cannam@252 5099 exec 5>/dev/null
cannam@252 5100 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
cannam@252 5101 exec 5>>config.log
cannam@252 5102 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
cannam@252 5103 # would make configure fail if this is the last instruction.
Chris@315 5104 $ac_cs_success || as_fn_exit 1
cannam@252 5105 fi
Chris@315 5106 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Chris@315 5107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Chris@315 5108 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Chris@315 5109 fi
Chris@315 5110
Chris@315 5111