To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / configure @ 332:ec48dd2cde26

History | View | Annotate | Download (271 KB)

1
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.69.
4
#
5
#
6
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7
#
8
#
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## -------------------- ##
12
## M4sh Initialization. ##
13
## -------------------- ##
14

    
15
# Be more Bourne compatible
16
DUALCASE=1; export DUALCASE # for MKS sh
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18
  emulate sh
19
  NULLCMD=:
20
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21
  # is contrary to our usage.  Disable this feature.
22
  alias -g '${1+"$@"}'='"$@"'
23
  setopt NO_GLOB_SUBST
24
else
25
  case `(set -o) 2>/dev/null` in #(
26
  *posix*) :
27
    set -o posix ;; #(
28
  *) :
29
     ;;
30
esac
31
fi
32

    
33

    
34
as_nl='
35
'
36
export as_nl
37
# Printing a long string crashes Solaris 7 /usr/bin/printf.
38
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41
# Prefer a ksh shell builtin over an external printf program on Solaris,
42
# but without wasting forks for bash or zsh.
43
if test -z "$BASH_VERSION$ZSH_VERSION" \
44
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45
  as_echo='print -r --'
46
  as_echo_n='print -rn --'
47
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48
  as_echo='printf %s\n'
49
  as_echo_n='printf %s'
50
else
51
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53
    as_echo_n='/usr/ucb/echo -n'
54
  else
55
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56
    as_echo_n_body='eval
57
      arg=$1;
58
      case $arg in #(
59
      *"$as_nl"*)
60
	expr "X$arg" : "X\\(.*\\)$as_nl";
61
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62
      esac;
63
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64
    '
65
    export as_echo_n_body
66
    as_echo_n='sh -c $as_echo_n_body as_echo'
67
  fi
68
  export as_echo_body
69
  as_echo='sh -c $as_echo_body as_echo'
70
fi
71

    
72
# The user is always right.
73
if test "${PATH_SEPARATOR+set}" != set; then
74
  PATH_SEPARATOR=:
75
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77
      PATH_SEPARATOR=';'
78
  }
79
fi
80

    
81

    
82
# IFS
83
# We need space, tab and new line, in precisely that order.  Quoting is
84
# there to prevent editors from complaining about space-tab.
85
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86
# splitting by setting IFS to empty value.)
87
IFS=" ""	$as_nl"
88

    
89
# Find who we are.  Look in the path if we contain no directory separator.
90
as_myself=
91
case $0 in #((
92
  *[\\/]* ) as_myself=$0 ;;
93
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94
for as_dir in $PATH
95
do
96
  IFS=$as_save_IFS
97
  test -z "$as_dir" && as_dir=.
98
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99
  done
100
IFS=$as_save_IFS
101

    
102
     ;;
103
esac
104
# We did not find ourselves, most probably we were run as `sh COMMAND'
105
# in which case we are not to be found in the path.
106
if test "x$as_myself" = x; then
107
  as_myself=$0
108
fi
109
if test ! -f "$as_myself"; then
110
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111
  exit 1
112
fi
113

    
114
# Unset variables that we do not need and which cause bugs (e.g. in
115
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116
# suppresses any "Segmentation fault" message there.  '((' could
117
# trigger a bug in pdksh 5.2.14.
118
for as_var in BASH_ENV ENV MAIL MAILPATH
119
do eval test x\${$as_var+set} = xset \
120
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121
done
122
PS1='$ '
123
PS2='> '
124
PS4='+ '
125

    
126
# NLS nuisances.
127
LC_ALL=C
128
export LC_ALL
129
LANGUAGE=C
130
export LANGUAGE
131

    
132
# CDPATH.
133
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134

    
135
# Use a proper internal environment variable to ensure we don't fall
136
  # into an infinite loop, continuously re-executing ourselves.
137
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138
    _as_can_reexec=no; export _as_can_reexec;
139
    # We cannot yet assume a decent shell, so we have to provide a
140
# neutralization value for shells without unset; and this also
141
# works around shells that cannot unset nonexistent variables.
142
# Preserve -v and -x to the replacement shell.
143
BASH_ENV=/dev/null
144
ENV=/dev/null
145
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146
case $- in # ((((
147
  *v*x* | *x*v* ) as_opts=-vx ;;
148
  *v* ) as_opts=-v ;;
149
  *x* ) as_opts=-x ;;
150
  * ) as_opts= ;;
151
esac
152
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153
# Admittedly, this is quite paranoid, since all the known shells bail
154
# out after a failed `exec'.
155
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156
as_fn_exit 255
157
  fi
158
  # We don't want this to propagate to other subprocesses.
159
          { _as_can_reexec=; unset _as_can_reexec;}
160
if test "x$CONFIG_SHELL" = x; then
161
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162
  emulate sh
163
  NULLCMD=:
164
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165
  # is contrary to our usage.  Disable this feature.
166
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167
  setopt NO_GLOB_SUBST
168
else
169
  case \`(set -o) 2>/dev/null\` in #(
170
  *posix*) :
171
    set -o posix ;; #(
172
  *) :
173
     ;;
174
esac
175
fi
176
"
177
  as_required="as_fn_return () { (exit \$1); }
178
as_fn_success () { as_fn_return 0; }
179
as_fn_failure () { as_fn_return 1; }
180
as_fn_ret_success () { return 0; }
181
as_fn_ret_failure () { return 1; }
182

    
183
exitcode=0
184
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189

    
190
else
191
  exitcode=1; echo positional parameters were not saved.
192
fi
193
test x\$exitcode = x0 || exit 1
194
test -x / || exit 1"
195
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
test \$(( 1 + 1 )) = 2 || exit 1"
200
  if (eval "$as_required") 2>/dev/null; then :
201
  as_have_required=yes
202
else
203
  as_have_required=no
204
fi
205
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206

    
207
else
208
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209
as_found=false
210
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211
do
212
  IFS=$as_save_IFS
213
  test -z "$as_dir" && as_dir=.
214
  as_found=:
215
  case $as_dir in #(
216
	 /*)
217
	   for as_base in sh bash ksh sh5; do
218
	     # Try only shells that exist, to save several forks.
219
	     as_shell=$as_dir/$as_base
220
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221
		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222
  CONFIG_SHELL=$as_shell as_have_required=yes
223
		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224
  break 2
225
fi
226
fi
227
	   done;;
228
       esac
229
  as_found=false
230
done
231
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232
	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233
  CONFIG_SHELL=$SHELL as_have_required=yes
234
fi; }
235
IFS=$as_save_IFS
236

    
237

    
238
      if test "x$CONFIG_SHELL" != x; then :
239
  export CONFIG_SHELL
240
             # We cannot yet assume a decent shell, so we have to provide a
241
# neutralization value for shells without unset; and this also
242
# works around shells that cannot unset nonexistent variables.
243
# Preserve -v and -x to the replacement shell.
244
BASH_ENV=/dev/null
245
ENV=/dev/null
246
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247
case $- in # ((((
248
  *v*x* | *x*v* ) as_opts=-vx ;;
249
  *v* ) as_opts=-v ;;
250
  *x* ) as_opts=-x ;;
251
  * ) as_opts= ;;
252
esac
253
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254
# Admittedly, this is quite paranoid, since all the known shells bail
255
# out after a failed `exec'.
256
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257
exit 255
258
fi
259

    
260
    if test x$as_have_required = xno; then :
261
  $as_echo "$0: This script requires a shell more modern than all"
262
  $as_echo "$0: the shells that I found on your system."
263
  if test x${ZSH_VERSION+set} = xset ; then
264
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266
  else
267
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268
$0: including any error possibly output before this
269
$0: message. Then install a modern shell, or manually run
270
$0: the script under such a shell if you do have one."
271
  fi
272
  exit 1
273
fi
274
fi
275
fi
276
SHELL=${CONFIG_SHELL-/bin/sh}
277
export SHELL
278
# Unset more variables known to interfere with behavior of common tools.
279
CLICOLOR_FORCE= GREP_OPTIONS=
280
unset CLICOLOR_FORCE GREP_OPTIONS
281

    
282
## --------------------- ##
283
## M4sh Shell Functions. ##
284
## --------------------- ##
285
# as_fn_unset VAR
286
# ---------------
287
# Portably unset VAR.
288
as_fn_unset ()
289
{
290
  { eval $1=; unset $1;}
291
}
292
as_unset=as_fn_unset
293

    
294
# as_fn_set_status STATUS
295
# -----------------------
296
# Set $? to STATUS, without forking.
297
as_fn_set_status ()
298
{
299
  return $1
300
} # as_fn_set_status
301

    
302
# as_fn_exit STATUS
303
# -----------------
304
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305
as_fn_exit ()
306
{
307
  set +e
308
  as_fn_set_status $1
309
  exit $1
310
} # as_fn_exit
311

    
312
# as_fn_mkdir_p
313
# -------------
314
# Create "$as_dir" as a directory, including parents if necessary.
315
as_fn_mkdir_p ()
316
{
317

    
318
  case $as_dir in #(
319
  -*) as_dir=./$as_dir;;
320
  esac
321
  test -d "$as_dir" || eval $as_mkdir_p || {
322
    as_dirs=
323
    while :; do
324
      case $as_dir in #(
325
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326
      *) as_qdir=$as_dir;;
327
      esac
328
      as_dirs="'$as_qdir' $as_dirs"
329
      as_dir=`$as_dirname -- "$as_dir" ||
330
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331
	 X"$as_dir" : 'X\(//\)[^/]' \| \
332
	 X"$as_dir" : 'X\(//\)$' \| \
333
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334
$as_echo X"$as_dir" |
335
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336
	    s//\1/
337
	    q
338
	  }
339
	  /^X\(\/\/\)[^/].*/{
340
	    s//\1/
341
	    q
342
	  }
343
	  /^X\(\/\/\)$/{
344
	    s//\1/
345
	    q
346
	  }
347
	  /^X\(\/\).*/{
348
	    s//\1/
349
	    q
350
	  }
351
	  s/.*/./; q'`
352
      test -d "$as_dir" && break
353
    done
354
    test -z "$as_dirs" || eval "mkdir $as_dirs"
355
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356

    
357

    
358
} # as_fn_mkdir_p
359

    
360
# as_fn_executable_p FILE
361
# -----------------------
362
# Test if FILE is an executable regular file.
363
as_fn_executable_p ()
364
{
365
  test -f "$1" && test -x "$1"
366
} # as_fn_executable_p
367
# as_fn_append VAR VALUE
368
# ----------------------
369
# Append the text in VALUE to the end of the definition contained in VAR. Take
370
# advantage of any shell optimizations that allow amortized linear growth over
371
# repeated appends, instead of the typical quadratic growth present in naive
372
# implementations.
373
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374
  eval 'as_fn_append ()
375
  {
376
    eval $1+=\$2
377
  }'
378
else
379
  as_fn_append ()
380
  {
381
    eval $1=\$$1\$2
382
  }
383
fi # as_fn_append
384

    
385
# as_fn_arith ARG...
386
# ------------------
387
# Perform arithmetic evaluation on the ARGs, and store the result in the
388
# global $as_val. Take advantage of shells that can avoid forks. The arguments
389
# must be portable across $(()) and expr.
390
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391
  eval 'as_fn_arith ()
392
  {
393
    as_val=$(( $* ))
394
  }'
395
else
396
  as_fn_arith ()
397
  {
398
    as_val=`expr "$@" || test $? -eq 1`
399
  }
400
fi # as_fn_arith
401

    
402

    
403
# as_fn_error STATUS ERROR [LINENO LOG_FD]
404
# ----------------------------------------
405
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407
# script with STATUS, using 1 if that was 0.
408
as_fn_error ()
409
{
410
  as_status=$1; test $as_status -eq 0 && as_status=1
411
  if test "$4"; then
412
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414
  fi
415
  $as_echo "$as_me: error: $2" >&2
416
  as_fn_exit $as_status
417
} # as_fn_error
418

    
419
if expr a : '\(a\)' >/dev/null 2>&1 &&
420
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421
  as_expr=expr
422
else
423
  as_expr=false
424
fi
425

    
426
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427
  as_basename=basename
428
else
429
  as_basename=false
430
fi
431

    
432
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433
  as_dirname=dirname
434
else
435
  as_dirname=false
436
fi
437

    
438
as_me=`$as_basename -- "$0" ||
439
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440
	 X"$0" : 'X\(//\)$' \| \
441
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442
$as_echo X/"$0" |
443
    sed '/^.*\/\([^/][^/]*\)\/*$/{
444
	    s//\1/
445
	    q
446
	  }
447
	  /^X\/\(\/\/\)$/{
448
	    s//\1/
449
	    q
450
	  }
451
	  /^X\/\(\/\).*/{
452
	    s//\1/
453
	    q
454
	  }
455
	  s/.*/./; q'`
456

    
457
# Avoid depending upon Character Ranges.
458
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461
as_cr_digits='0123456789'
462
as_cr_alnum=$as_cr_Letters$as_cr_digits
463

    
464

    
465
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470
  sed -n '
471
    p
472
    /[$]LINENO/=
473
  ' <$as_myself |
474
    sed '
475
      s/[$]LINENO.*/&-/
476
      t lineno
477
      b
478
      :lineno
479
      N
480
      :loop
481
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482
      t loop
483
      s/-\n.*//
484
    ' >$as_me.lineno &&
485
  chmod +x "$as_me.lineno" ||
486
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487

    
488
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489
  # already done that, so ensure we don't try to do so again and fall
490
  # in an infinite loop.  This has already happened in practice.
491
  _as_can_reexec=no; export _as_can_reexec
492
  # Don't try to exec as it changes $[0], causing all sort of problems
493
  # (the dirname of $[0] is not the place where we might find the
494
  # original and so on.  Autoconf is especially sensitive to this).
495
  . "./$as_me.lineno"
496
  # Exit status is that of the last command.
497
  exit
498
}
499

    
500
ECHO_C= ECHO_N= ECHO_T=
501
case `echo -n x` in #(((((
502
-n*)
503
  case `echo 'xy\c'` in
504
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505
  xy)  ECHO_C='\c';;
506
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507
       ECHO_T='	';;
508
  esac;;
509
*)
510
  ECHO_N='-n';;
511
esac
512

    
513
rm -f conf$$ conf$$.exe conf$$.file
514
if test -d conf$$.dir; then
515
  rm -f conf$$.dir/conf$$.file
516
else
517
  rm -f conf$$.dir
518
  mkdir conf$$.dir 2>/dev/null
519
fi
520
if (echo >conf$$.file) 2>/dev/null; then
521
  if ln -s conf$$.file conf$$ 2>/dev/null; then
522
    as_ln_s='ln -s'
523
    # ... but there are two gotchas:
524
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526
    # In both cases, we have to default to `cp -pR'.
527
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528
      as_ln_s='cp -pR'
529
  elif ln conf$$.file conf$$ 2>/dev/null; then
530
    as_ln_s=ln
531
  else
532
    as_ln_s='cp -pR'
533
  fi
534
else
535
  as_ln_s='cp -pR'
536
fi
537
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538
rmdir conf$$.dir 2>/dev/null
539

    
540
if mkdir -p . 2>/dev/null; then
541
  as_mkdir_p='mkdir -p "$as_dir"'
542
else
543
  test -d ./-p && rmdir ./-p
544
  as_mkdir_p=false
545
fi
546

    
547
as_test_x='test -x'
548
as_executable_p=as_fn_executable_p
549

    
550
# Sed expression to map a string onto a valid CPP name.
551
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552

    
553
# Sed expression to map a string onto a valid variable name.
554
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555

    
556

    
557
test -n "$DJDIR" || exec 7<&0 </dev/null
558
exec 6>&1
559

    
560
# Name of the host.
561
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562
# so uname gets run too.
563
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564

    
565
#
566
# Initializations.
567
#
568
ac_default_prefix=/usr/local
569
ac_clean_files=
570
ac_config_libobj_dir=.
571
LIBOBJS=
572
cross_compiling=no
573
subdirs=
574
MFLAGS=
575
MAKEFLAGS=
576

    
577
# Identity of this package.
578
PACKAGE_NAME=
579
PACKAGE_TARNAME=
580
PACKAGE_VERSION=
581
PACKAGE_STRING=
582
PACKAGE_BUGREPORT=
583
PACKAGE_URL=
584

    
585
ac_unique_file="Sonic Lineup"
586
ac_unique_file="main/main.cpp"
587
# Factoring default headers for most tests.
588
ac_includes_default="\
589
#include <stdio.h>
590
#ifdef HAVE_SYS_TYPES_H
591
# include <sys/types.h>
592
#endif
593
#ifdef HAVE_SYS_STAT_H
594
# include <sys/stat.h>
595
#endif
596
#ifdef STDC_HEADERS
597
# include <stdlib.h>
598
# include <stddef.h>
599
#else
600
# ifdef HAVE_STDLIB_H
601
#  include <stdlib.h>
602
# endif
603
#endif
604
#ifdef HAVE_STRING_H
605
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
606
#  include <memory.h>
607
# endif
608
# include <string.h>
609
#endif
610
#ifdef HAVE_STRINGS_H
611
# include <strings.h>
612
#endif
613
#ifdef HAVE_INTTYPES_H
614
# include <inttypes.h>
615
#endif
616
#ifdef HAVE_STDINT_H
617
# include <stdint.h>
618
#endif
619
#ifdef HAVE_UNISTD_H
620
# include <unistd.h>
621
#endif"
622

    
623
ac_subst_vars='LTLIBOBJS
624
LIBOBJS
625
QMAKE_CONFIG
626
HAVES
627
CXXSTANDARD
628
CUT
629
SHA1SUM
630
MAKEDEPEND
631
XARGS
632
PERL
633
X11_LIBS
634
X11_CFLAGS
635
opus_LIBS
636
opus_CFLAGS
637
id3tag_LIBS
638
id3tag_CFLAGS
639
mad_LIBS
640
mad_CFLAGS
641
fishsound_LIBS
642
fishsound_CFLAGS
643
oggz_LIBS
644
oggz_CFLAGS
645
lrdf_LIBS
646
lrdf_CFLAGS
647
libpulse_LIBS
648
libpulse_CFLAGS
649
JACK_LIBS
650
JACK_CFLAGS
651
portaudio_2_0_LIBS
652
portaudio_2_0_CFLAGS
653
liblo_LIBS
654
liblo_CFLAGS
655
capnp_LIBS
656
capnp_CFLAGS
657
serd_LIBS
658
serd_CFLAGS
659
sord_LIBS
660
sord_CFLAGS
661
rubberband_LIBS
662
rubberband_CFLAGS
663
samplerate_LIBS
664
samplerate_CFLAGS
665
sndfile_LIBS
666
sndfile_CFLAGS
667
fftw3f_LIBS
668
fftw3f_CFLAGS
669
fftw3_LIBS
670
fftw3_CFLAGS
671
bz2_LIBS
672
bz2_CFLAGS
673
QMAKE
674
PKG_CONFIG_LIBDIR
675
PKG_CONFIG_PATH
676
PKG_CONFIG
677
EGREP
678
GREP
679
CXXCPP
680
HAVE_CXX11
681
MKDIR_P
682
INSTALL_DATA
683
INSTALL_SCRIPT
684
INSTALL_PROGRAM
685
ac_ct_CXX
686
CXXFLAGS
687
CXX
688
OBJEXT
689
EXEEXT
690
ac_ct_CC
691
CPPFLAGS
692
LDFLAGS
693
CFLAGS
694
CC
695
target_alias
696
host_alias
697
build_alias
698
LIBS
699
ECHO_T
700
ECHO_N
701
ECHO_C
702
DEFS
703
mandir
704
localedir
705
libdir
706
psdir
707
pdfdir
708
dvidir
709
htmldir
710
infodir
711
docdir
712
oldincludedir
713
includedir
714
localstatedir
715
sharedstatedir
716
sysconfdir
717
datadir
718
datarootdir
719
libexecdir
720
sbindir
721
bindir
722
program_transform_name
723
prefix
724
exec_prefix
725
PACKAGE_URL
726
PACKAGE_BUGREPORT
727
PACKAGE_STRING
728
PACKAGE_VERSION
729
PACKAGE_TARNAME
730
PACKAGE_NAME
731
PATH_SEPARATOR
732
SHELL'
733
ac_subst_files=''
734
ac_user_opts='
735
enable_option_checking
736
enable_debug
737
'
738
      ac_precious_vars='build_alias
739
host_alias
740
target_alias
741
CC
742
CFLAGS
743
LDFLAGS
744
LIBS
745
CPPFLAGS
746
CXX
747
CXXFLAGS
748
CCC
749
CXXCPP
750
PKG_CONFIG
751
PKG_CONFIG_PATH
752
PKG_CONFIG_LIBDIR
753
bz2_CFLAGS
754
bz2_LIBS
755
fftw3_CFLAGS
756
fftw3_LIBS
757
fftw3f_CFLAGS
758
fftw3f_LIBS
759
sndfile_CFLAGS
760
sndfile_LIBS
761
samplerate_CFLAGS
762
samplerate_LIBS
763
rubberband_CFLAGS
764
rubberband_LIBS
765
sord_CFLAGS
766
sord_LIBS
767
serd_CFLAGS
768
serd_LIBS
769
capnp_CFLAGS
770
capnp_LIBS
771
liblo_CFLAGS
772
liblo_LIBS
773
portaudio_2_0_CFLAGS
774
portaudio_2_0_LIBS
775
JACK_CFLAGS
776
JACK_LIBS
777
libpulse_CFLAGS
778
libpulse_LIBS
779
lrdf_CFLAGS
780
lrdf_LIBS
781
oggz_CFLAGS
782
oggz_LIBS
783
fishsound_CFLAGS
784
fishsound_LIBS
785
mad_CFLAGS
786
mad_LIBS
787
id3tag_CFLAGS
788
id3tag_LIBS
789
opus_CFLAGS
790
opus_LIBS
791
X11_CFLAGS
792
X11_LIBS'
793

    
794

    
795
# Initialize some variables set by options.
796
ac_init_help=
797
ac_init_version=false
798
ac_unrecognized_opts=
799
ac_unrecognized_sep=
800
# The variables have the same names as the options, with
801
# dashes changed to underlines.
802
cache_file=/dev/null
803
exec_prefix=NONE
804
no_create=
805
no_recursion=
806
prefix=NONE
807
program_prefix=NONE
808
program_suffix=NONE
809
program_transform_name=s,x,x,
810
silent=
811
site=
812
srcdir=
813
verbose=
814
x_includes=NONE
815
x_libraries=NONE
816

    
817
# Installation directory options.
818
# These are left unexpanded so users can "make install exec_prefix=/foo"
819
# and all the variables that are supposed to be based on exec_prefix
820
# by default will actually change.
821
# Use braces instead of parens because sh, perl, etc. also accept them.
822
# (The list follows the same order as the GNU Coding Standards.)
823
bindir='${exec_prefix}/bin'
824
sbindir='${exec_prefix}/sbin'
825
libexecdir='${exec_prefix}/libexec'
826
datarootdir='${prefix}/share'
827
datadir='${datarootdir}'
828
sysconfdir='${prefix}/etc'
829
sharedstatedir='${prefix}/com'
830
localstatedir='${prefix}/var'
831
includedir='${prefix}/include'
832
oldincludedir='/usr/include'
833
docdir='${datarootdir}/doc/${PACKAGE}'
834
infodir='${datarootdir}/info'
835
htmldir='${docdir}'
836
dvidir='${docdir}'
837
pdfdir='${docdir}'
838
psdir='${docdir}'
839
libdir='${exec_prefix}/lib'
840
localedir='${datarootdir}/locale'
841
mandir='${datarootdir}/man'
842

    
843
ac_prev=
844
ac_dashdash=
845
for ac_option
846
do
847
  # If the previous option needs an argument, assign it.
848
  if test -n "$ac_prev"; then
849
    eval $ac_prev=\$ac_option
850
    ac_prev=
851
    continue
852
  fi
853

    
854
  case $ac_option in
855
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
856
  *=)   ac_optarg= ;;
857
  *)    ac_optarg=yes ;;
858
  esac
859

    
860
  # Accept the important Cygnus configure options, so we can diagnose typos.
861

    
862
  case $ac_dashdash$ac_option in
863
  --)
864
    ac_dashdash=yes ;;
865

    
866
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
867
    ac_prev=bindir ;;
868
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
869
    bindir=$ac_optarg ;;
870

    
871
  -build | --build | --buil | --bui | --bu)
872
    ac_prev=build_alias ;;
873
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
874
    build_alias=$ac_optarg ;;
875

    
876
  -cache-file | --cache-file | --cache-fil | --cache-fi \
877
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
878
    ac_prev=cache_file ;;
879
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
880
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
881
    cache_file=$ac_optarg ;;
882

    
883
  --config-cache | -C)
884
    cache_file=config.cache ;;
885

    
886
  -datadir | --datadir | --datadi | --datad)
887
    ac_prev=datadir ;;
888
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
889
    datadir=$ac_optarg ;;
890

    
891
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
892
  | --dataroo | --dataro | --datar)
893
    ac_prev=datarootdir ;;
894
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
895
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
896
    datarootdir=$ac_optarg ;;
897

    
898
  -disable-* | --disable-*)
899
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
900
    # Reject names that are not valid shell variable names.
901
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902
      as_fn_error $? "invalid feature name: $ac_useropt"
903
    ac_useropt_orig=$ac_useropt
904
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905
    case $ac_user_opts in
906
      *"
907
"enable_$ac_useropt"
908
"*) ;;
909
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
910
	 ac_unrecognized_sep=', ';;
911
    esac
912
    eval enable_$ac_useropt=no ;;
913

    
914
  -docdir | --docdir | --docdi | --doc | --do)
915
    ac_prev=docdir ;;
916
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917
    docdir=$ac_optarg ;;
918

    
919
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920
    ac_prev=dvidir ;;
921
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922
    dvidir=$ac_optarg ;;
923

    
924
  -enable-* | --enable-*)
925
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926
    # Reject names that are not valid shell variable names.
927
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928
      as_fn_error $? "invalid feature name: $ac_useropt"
929
    ac_useropt_orig=$ac_useropt
930
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931
    case $ac_user_opts in
932
      *"
933
"enable_$ac_useropt"
934
"*) ;;
935
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
936
	 ac_unrecognized_sep=', ';;
937
    esac
938
    eval enable_$ac_useropt=\$ac_optarg ;;
939

    
940
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
941
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
942
  | --exec | --exe | --ex)
943
    ac_prev=exec_prefix ;;
944
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
945
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
946
  | --exec=* | --exe=* | --ex=*)
947
    exec_prefix=$ac_optarg ;;
948

    
949
  -gas | --gas | --ga | --g)
950
    # Obsolete; use --with-gas.
951
    with_gas=yes ;;
952

    
953
  -help | --help | --hel | --he | -h)
954
    ac_init_help=long ;;
955
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
956
    ac_init_help=recursive ;;
957
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
958
    ac_init_help=short ;;
959

    
960
  -host | --host | --hos | --ho)
961
    ac_prev=host_alias ;;
962
  -host=* | --host=* | --hos=* | --ho=*)
963
    host_alias=$ac_optarg ;;
964

    
965
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
966
    ac_prev=htmldir ;;
967
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
968
  | --ht=*)
969
    htmldir=$ac_optarg ;;
970

    
971
  -includedir | --includedir | --includedi | --included | --include \
972
  | --includ | --inclu | --incl | --inc)
973
    ac_prev=includedir ;;
974
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
975
  | --includ=* | --inclu=* | --incl=* | --inc=*)
976
    includedir=$ac_optarg ;;
977

    
978
  -infodir | --infodir | --infodi | --infod | --info | --inf)
979
    ac_prev=infodir ;;
980
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
981
    infodir=$ac_optarg ;;
982

    
983
  -libdir | --libdir | --libdi | --libd)
984
    ac_prev=libdir ;;
985
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
986
    libdir=$ac_optarg ;;
987

    
988
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
989
  | --libexe | --libex | --libe)
990
    ac_prev=libexecdir ;;
991
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
992
  | --libexe=* | --libex=* | --libe=*)
993
    libexecdir=$ac_optarg ;;
994

    
995
  -localedir | --localedir | --localedi | --localed | --locale)
996
    ac_prev=localedir ;;
997
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
998
    localedir=$ac_optarg ;;
999

    
1000
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1001
  | --localstate | --localstat | --localsta | --localst | --locals)
1002
    ac_prev=localstatedir ;;
1003
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1004
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1005
    localstatedir=$ac_optarg ;;
1006

    
1007
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1008
    ac_prev=mandir ;;
1009
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1010
    mandir=$ac_optarg ;;
1011

    
1012
  -nfp | --nfp | --nf)
1013
    # Obsolete; use --without-fp.
1014
    with_fp=no ;;
1015

    
1016
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017
  | --no-cr | --no-c | -n)
1018
    no_create=yes ;;
1019

    
1020
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1021
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1022
    no_recursion=yes ;;
1023

    
1024
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1025
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1026
  | --oldin | --oldi | --old | --ol | --o)
1027
    ac_prev=oldincludedir ;;
1028
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1029
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1030
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1031
    oldincludedir=$ac_optarg ;;
1032

    
1033
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1034
    ac_prev=prefix ;;
1035
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1036
    prefix=$ac_optarg ;;
1037

    
1038
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1039
  | --program-pre | --program-pr | --program-p)
1040
    ac_prev=program_prefix ;;
1041
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1042
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1043
    program_prefix=$ac_optarg ;;
1044

    
1045
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1046
  | --program-suf | --program-su | --program-s)
1047
    ac_prev=program_suffix ;;
1048
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1049
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1050
    program_suffix=$ac_optarg ;;
1051

    
1052
  -program-transform-name | --program-transform-name \
1053
  | --program-transform-nam | --program-transform-na \
1054
  | --program-transform-n | --program-transform- \
1055
  | --program-transform | --program-transfor \
1056
  | --program-transfo | --program-transf \
1057
  | --program-trans | --program-tran \
1058
  | --progr-tra | --program-tr | --program-t)
1059
    ac_prev=program_transform_name ;;
1060
  -program-transform-name=* | --program-transform-name=* \
1061
  | --program-transform-nam=* | --program-transform-na=* \
1062
  | --program-transform-n=* | --program-transform-=* \
1063
  | --program-transform=* | --program-transfor=* \
1064
  | --program-transfo=* | --program-transf=* \
1065
  | --program-trans=* | --program-tran=* \
1066
  | --progr-tra=* | --program-tr=* | --program-t=*)
1067
    program_transform_name=$ac_optarg ;;
1068

    
1069
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1070
    ac_prev=pdfdir ;;
1071
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1072
    pdfdir=$ac_optarg ;;
1073

    
1074
  -psdir | --psdir | --psdi | --psd | --ps)
1075
    ac_prev=psdir ;;
1076
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1077
    psdir=$ac_optarg ;;
1078

    
1079
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080
  | -silent | --silent | --silen | --sile | --sil)
1081
    silent=yes ;;
1082

    
1083
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1084
    ac_prev=sbindir ;;
1085
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1086
  | --sbi=* | --sb=*)
1087
    sbindir=$ac_optarg ;;
1088

    
1089
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1090
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1091
  | --sharedst | --shareds | --shared | --share | --shar \
1092
  | --sha | --sh)
1093
    ac_prev=sharedstatedir ;;
1094
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1095
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1096
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1097
  | --sha=* | --sh=*)
1098
    sharedstatedir=$ac_optarg ;;
1099

    
1100
  -site | --site | --sit)
1101
    ac_prev=site ;;
1102
  -site=* | --site=* | --sit=*)
1103
    site=$ac_optarg ;;
1104

    
1105
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1106
    ac_prev=srcdir ;;
1107
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1108
    srcdir=$ac_optarg ;;
1109

    
1110
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1111
  | --syscon | --sysco | --sysc | --sys | --sy)
1112
    ac_prev=sysconfdir ;;
1113
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1114
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1115
    sysconfdir=$ac_optarg ;;
1116

    
1117
  -target | --target | --targe | --targ | --tar | --ta | --t)
1118
    ac_prev=target_alias ;;
1119
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1120
    target_alias=$ac_optarg ;;
1121

    
1122
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1123
    verbose=yes ;;
1124

    
1125
  -version | --version | --versio | --versi | --vers | -V)
1126
    ac_init_version=: ;;
1127

    
1128
  -with-* | --with-*)
1129
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1130
    # Reject names that are not valid shell variable names.
1131
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132
      as_fn_error $? "invalid package name: $ac_useropt"
1133
    ac_useropt_orig=$ac_useropt
1134
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135
    case $ac_user_opts in
1136
      *"
1137
"with_$ac_useropt"
1138
"*) ;;
1139
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1140
	 ac_unrecognized_sep=', ';;
1141
    esac
1142
    eval with_$ac_useropt=\$ac_optarg ;;
1143

    
1144
  -without-* | --without-*)
1145
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146
    # Reject names that are not valid shell variable names.
1147
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148
      as_fn_error $? "invalid package name: $ac_useropt"
1149
    ac_useropt_orig=$ac_useropt
1150
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151
    case $ac_user_opts in
1152
      *"
1153
"with_$ac_useropt"
1154
"*) ;;
1155
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1156
	 ac_unrecognized_sep=', ';;
1157
    esac
1158
    eval with_$ac_useropt=no ;;
1159

    
1160
  --x)
1161
    # Obsolete; use --with-x.
1162
    with_x=yes ;;
1163

    
1164
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1165
  | --x-incl | --x-inc | --x-in | --x-i)
1166
    ac_prev=x_includes ;;
1167
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1168
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1169
    x_includes=$ac_optarg ;;
1170

    
1171
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1172
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1173
    ac_prev=x_libraries ;;
1174
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1175
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1176
    x_libraries=$ac_optarg ;;
1177

    
1178
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1179
Try \`$0 --help' for more information"
1180
    ;;
1181

    
1182
  *=*)
1183
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184
    # Reject names that are not valid shell variable names.
1185
    case $ac_envvar in #(
1186
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1187
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1188
    esac
1189
    eval $ac_envvar=\$ac_optarg
1190
    export $ac_envvar ;;
1191

    
1192
  *)
1193
    # FIXME: should be removed in autoconf 3.0.
1194
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1195
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1196
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1197
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1198
    ;;
1199

    
1200
  esac
1201
done
1202

    
1203
if test -n "$ac_prev"; then
1204
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1205
  as_fn_error $? "missing argument to $ac_option"
1206
fi
1207

    
1208
if test -n "$ac_unrecognized_opts"; then
1209
  case $enable_option_checking in
1210
    no) ;;
1211
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1212
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1213
  esac
1214
fi
1215

    
1216
# Check all directory arguments for consistency.
1217
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218
		datadir sysconfdir sharedstatedir localstatedir includedir \
1219
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220
		libdir localedir mandir
1221
do
1222
  eval ac_val=\$$ac_var
1223
  # Remove trailing slashes.
1224
  case $ac_val in
1225
    */ )
1226
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1227
      eval $ac_var=\$ac_val;;
1228
  esac
1229
  # Be sure to have absolute directory names.
1230
  case $ac_val in
1231
    [\\/$]* | ?:[\\/]* )  continue;;
1232
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1233
  esac
1234
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1235
done
1236

    
1237
# There might be people who depend on the old broken behavior: `$host'
1238
# used to hold the argument of --host etc.
1239
# FIXME: To remove some day.
1240
build=$build_alias
1241
host=$host_alias
1242
target=$target_alias
1243

    
1244
# FIXME: To remove some day.
1245
if test "x$host_alias" != x; then
1246
  if test "x$build_alias" = x; then
1247
    cross_compiling=maybe
1248
  elif test "x$build_alias" != "x$host_alias"; then
1249
    cross_compiling=yes
1250
  fi
1251
fi
1252

    
1253
ac_tool_prefix=
1254
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1255

    
1256
test "$silent" = yes && exec 6>/dev/null
1257

    
1258

    
1259
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1260
ac_ls_di=`ls -di .` &&
1261
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1262
  as_fn_error $? "working directory cannot be determined"
1263
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1264
  as_fn_error $? "pwd does not report name of working directory"
1265

    
1266

    
1267
# Find the source files, if location was not specified.
1268
if test -z "$srcdir"; then
1269
  ac_srcdir_defaulted=yes
1270
  # Try the directory containing this script, then the parent directory.
1271
  ac_confdir=`$as_dirname -- "$as_myself" ||
1272
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1273
	 X"$as_myself" : 'X\(//\)[^/]' \| \
1274
	 X"$as_myself" : 'X\(//\)$' \| \
1275
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1276
$as_echo X"$as_myself" |
1277
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278
	    s//\1/
1279
	    q
1280
	  }
1281
	  /^X\(\/\/\)[^/].*/{
1282
	    s//\1/
1283
	    q
1284
	  }
1285
	  /^X\(\/\/\)$/{
1286
	    s//\1/
1287
	    q
1288
	  }
1289
	  /^X\(\/\).*/{
1290
	    s//\1/
1291
	    q
1292
	  }
1293
	  s/.*/./; q'`
1294
  srcdir=$ac_confdir
1295
  if test ! -r "$srcdir/$ac_unique_file"; then
1296
    srcdir=..
1297
  fi
1298
else
1299
  ac_srcdir_defaulted=no
1300
fi
1301
if test ! -r "$srcdir/$ac_unique_file"; then
1302
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1303
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1304
fi
1305
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1306
ac_abs_confdir=`(
1307
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1308
	pwd)`
1309
# When building in place, set srcdir=.
1310
if test "$ac_abs_confdir" = "$ac_pwd"; then
1311
  srcdir=.
1312
fi
1313
# Remove unnecessary trailing slashes from srcdir.
1314
# Double slashes in file names in object file debugging info
1315
# mess up M-x gdb in Emacs.
1316
case $srcdir in
1317
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318
esac
1319
for ac_var in $ac_precious_vars; do
1320
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1321
  eval ac_env_${ac_var}_value=\$${ac_var}
1322
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1323
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1324
done
1325

    
1326
#
1327
# Report the --help message.
1328
#
1329
if test "$ac_init_help" = "long"; then
1330
  # Omit some internal or obsolete options to make the list less imposing.
1331
  # This message is too long to be a string in the A/UX 3.1 sh.
1332
  cat <<_ACEOF
1333
\`configure' configures this package to adapt to many kinds of systems.
1334

    
1335
Usage: $0 [OPTION]... [VAR=VALUE]...
1336

    
1337
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1338
VAR=VALUE.  See below for descriptions of some of the useful variables.
1339

    
1340
Defaults for the options are specified in brackets.
1341

    
1342
Configuration:
1343
  -h, --help              display this help and exit
1344
      --help=short        display options specific to this package
1345
      --help=recursive    display the short help of all the included packages
1346
  -V, --version           display version information and exit
1347
  -q, --quiet, --silent   do not print \`checking ...' messages
1348
      --cache-file=FILE   cache test results in FILE [disabled]
1349
  -C, --config-cache      alias for \`--cache-file=config.cache'
1350
  -n, --no-create         do not create output files
1351
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1352

    
1353
Installation directories:
1354
  --prefix=PREFIX         install architecture-independent files in PREFIX
1355
                          [$ac_default_prefix]
1356
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1357
                          [PREFIX]
1358

    
1359
By default, \`make install' will install all the files in
1360
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1361
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1362
for instance \`--prefix=\$HOME'.
1363

    
1364
For better control, use the options below.
1365

    
1366
Fine tuning of the installation directories:
1367
  --bindir=DIR            user executables [EPREFIX/bin]
1368
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1369
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1370
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1371
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1372
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1373
  --libdir=DIR            object code libraries [EPREFIX/lib]
1374
  --includedir=DIR        C header files [PREFIX/include]
1375
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1376
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1377
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1378
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1379
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1380
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1381
  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1382
  --htmldir=DIR           html documentation [DOCDIR]
1383
  --dvidir=DIR            dvi documentation [DOCDIR]
1384
  --pdfdir=DIR            pdf documentation [DOCDIR]
1385
  --psdir=DIR             ps documentation [DOCDIR]
1386
_ACEOF
1387

    
1388
  cat <<\_ACEOF
1389
_ACEOF
1390
fi
1391

    
1392
if test -n "$ac_init_help"; then
1393

    
1394
  cat <<\_ACEOF
1395

    
1396
Optional Features:
1397
  --disable-option-checking  ignore unrecognized --enable/--with options
1398
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1399
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1400
  --enable-debug          enable debug support [default=no]
1401

    
1402
Some influential environment variables:
1403
  CC          C compiler command
1404
  CFLAGS      C compiler flags
1405
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1406
              nonstandard directory <lib dir>
1407
  LIBS        libraries to pass to the linker, e.g. -l<library>
1408
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1409
              you have headers in a nonstandard directory <include dir>
1410
  CXX         C++ compiler command
1411
  CXXFLAGS    C++ compiler flags
1412
  CXXCPP      C++ preprocessor
1413
  PKG_CONFIG  path to pkg-config utility
1414
  PKG_CONFIG_PATH
1415
              directories to add to pkg-config's search path
1416
  PKG_CONFIG_LIBDIR
1417
              path overriding pkg-config's built-in search path
1418
  bz2_CFLAGS  C compiler flags for bz2, overriding pkg-config
1419
  bz2_LIBS    linker flags for bz2, overriding pkg-config
1420
  fftw3_CFLAGS
1421
              C compiler flags for fftw3, overriding pkg-config
1422
  fftw3_LIBS  linker flags for fftw3, overriding pkg-config
1423
  fftw3f_CFLAGS
1424
              C compiler flags for fftw3f, overriding pkg-config
1425
  fftw3f_LIBS linker flags for fftw3f, overriding pkg-config
1426
  sndfile_CFLAGS
1427
              C compiler flags for sndfile, overriding pkg-config
1428
  sndfile_LIBS
1429
              linker flags for sndfile, overriding pkg-config
1430
  samplerate_CFLAGS
1431
              C compiler flags for samplerate, overriding pkg-config
1432
  samplerate_LIBS
1433
              linker flags for samplerate, overriding pkg-config
1434
  rubberband_CFLAGS
1435
              C compiler flags for rubberband, overriding pkg-config
1436
  rubberband_LIBS
1437
              linker flags for rubberband, overriding pkg-config
1438
  sord_CFLAGS C compiler flags for sord, overriding pkg-config
1439
  sord_LIBS   linker flags for sord, overriding pkg-config
1440
  serd_CFLAGS C compiler flags for serd, overriding pkg-config
1441
  serd_LIBS   linker flags for serd, overriding pkg-config
1442
  capnp_CFLAGS
1443
              C compiler flags for capnp, overriding pkg-config
1444
  capnp_LIBS  linker flags for capnp, overriding pkg-config
1445
  liblo_CFLAGS
1446
              C compiler flags for liblo, overriding pkg-config
1447
  liblo_LIBS  linker flags for liblo, overriding pkg-config
1448
  portaudio_2_0_CFLAGS
1449
              C compiler flags for portaudio_2_0, overriding pkg-config
1450
  portaudio_2_0_LIBS
1451
              linker flags for portaudio_2_0, overriding pkg-config
1452
  JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
1453
  JACK_LIBS   linker flags for JACK, overriding pkg-config
1454
  libpulse_CFLAGS
1455
              C compiler flags for libpulse, overriding pkg-config
1456
  libpulse_LIBS
1457
              linker flags for libpulse, overriding pkg-config
1458
  lrdf_CFLAGS C compiler flags for lrdf, overriding pkg-config
1459
  lrdf_LIBS   linker flags for lrdf, overriding pkg-config
1460
  oggz_CFLAGS C compiler flags for oggz, overriding pkg-config
1461
  oggz_LIBS   linker flags for oggz, overriding pkg-config
1462
  fishsound_CFLAGS
1463
              C compiler flags for fishsound, overriding pkg-config
1464
  fishsound_LIBS
1465
              linker flags for fishsound, overriding pkg-config
1466
  mad_CFLAGS  C compiler flags for mad, overriding pkg-config
1467
  mad_LIBS    linker flags for mad, overriding pkg-config
1468
  id3tag_CFLAGS
1469
              C compiler flags for id3tag, overriding pkg-config
1470
  id3tag_LIBS linker flags for id3tag, overriding pkg-config
1471
  opus_CFLAGS C compiler flags for opus, overriding pkg-config
1472
  opus_LIBS   linker flags for opus, overriding pkg-config
1473
  X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1474
  X11_LIBS    linker flags for X11, overriding pkg-config
1475

    
1476
Use these variables to override the choices made by `configure' or to help
1477
it to find libraries and programs with nonstandard names/locations.
1478

    
1479
Report bugs to the package provider.
1480
_ACEOF
1481
ac_status=$?
1482
fi
1483

    
1484
if test "$ac_init_help" = "recursive"; then
1485
  # If there are subdirs, report their specific --help.
1486
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1487
    test -d "$ac_dir" ||
1488
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1489
      continue
1490
    ac_builddir=.
1491

    
1492
case "$ac_dir" in
1493
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494
*)
1495
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1496
  # A ".." for each directory in $ac_dir_suffix.
1497
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1498
  case $ac_top_builddir_sub in
1499
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501
  esac ;;
1502
esac
1503
ac_abs_top_builddir=$ac_pwd
1504
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505
# for backward compatibility:
1506
ac_top_builddir=$ac_top_build_prefix
1507

    
1508
case $srcdir in
1509
  .)  # We are building in place.
1510
    ac_srcdir=.
1511
    ac_top_srcdir=$ac_top_builddir_sub
1512
    ac_abs_top_srcdir=$ac_pwd ;;
1513
  [\\/]* | ?:[\\/]* )  # Absolute name.
1514
    ac_srcdir=$srcdir$ac_dir_suffix;
1515
    ac_top_srcdir=$srcdir
1516
    ac_abs_top_srcdir=$srcdir ;;
1517
  *) # Relative name.
1518
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1520
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521
esac
1522
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523

    
1524
    cd "$ac_dir" || { ac_status=$?; continue; }
1525
    # Check for guested configure.
1526
    if test -f "$ac_srcdir/configure.gnu"; then
1527
      echo &&
1528
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529
    elif test -f "$ac_srcdir/configure"; then
1530
      echo &&
1531
      $SHELL "$ac_srcdir/configure" --help=recursive
1532
    else
1533
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534
    fi || ac_status=$?
1535
    cd "$ac_pwd" || { ac_status=$?; break; }
1536
  done
1537
fi
1538

    
1539
test -n "$ac_init_help" && exit $ac_status
1540
if $ac_init_version; then
1541
  cat <<\_ACEOF
1542
configure
1543
generated by GNU Autoconf 2.69
1544

    
1545
Copyright (C) 2012 Free Software Foundation, Inc.
1546
This configure script is free software; the Free Software Foundation
1547
gives unlimited permission to copy, distribute and modify it.
1548
_ACEOF
1549
  exit
1550
fi
1551

    
1552
## ------------------------ ##
1553
## Autoconf initialization. ##
1554
## ------------------------ ##
1555

    
1556
# ac_fn_c_try_compile LINENO
1557
# --------------------------
1558
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1559
ac_fn_c_try_compile ()
1560
{
1561
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562
  rm -f conftest.$ac_objext
1563
  if { { ac_try="$ac_compile"
1564
case "(($ac_try" in
1565
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566
  *) ac_try_echo=$ac_try;;
1567
esac
1568
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569
$as_echo "$ac_try_echo"; } >&5
1570
  (eval "$ac_compile") 2>conftest.err
1571
  ac_status=$?
1572
  if test -s conftest.err; then
1573
    grep -v '^ *+' conftest.err >conftest.er1
1574
    cat conftest.er1 >&5
1575
    mv -f conftest.er1 conftest.err
1576
  fi
1577
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578
  test $ac_status = 0; } && {
1579
	 test -z "$ac_c_werror_flag" ||
1580
	 test ! -s conftest.err
1581
       } && test -s conftest.$ac_objext; then :
1582
  ac_retval=0
1583
else
1584
  $as_echo "$as_me: failed program was:" >&5
1585
sed 's/^/| /' conftest.$ac_ext >&5
1586

    
1587
	ac_retval=1
1588
fi
1589
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590
  as_fn_set_status $ac_retval
1591

    
1592
} # ac_fn_c_try_compile
1593

    
1594
# ac_fn_cxx_try_compile LINENO
1595
# ----------------------------
1596
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1597
ac_fn_cxx_try_compile ()
1598
{
1599
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600
  rm -f conftest.$ac_objext
1601
  if { { ac_try="$ac_compile"
1602
case "(($ac_try" in
1603
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604
  *) ac_try_echo=$ac_try;;
1605
esac
1606
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607
$as_echo "$ac_try_echo"; } >&5
1608
  (eval "$ac_compile") 2>conftest.err
1609
  ac_status=$?
1610
  if test -s conftest.err; then
1611
    grep -v '^ *+' conftest.err >conftest.er1
1612
    cat conftest.er1 >&5
1613
    mv -f conftest.er1 conftest.err
1614
  fi
1615
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616
  test $ac_status = 0; } && {
1617
	 test -z "$ac_cxx_werror_flag" ||
1618
	 test ! -s conftest.err
1619
       } && test -s conftest.$ac_objext; then :
1620
  ac_retval=0
1621
else
1622
  $as_echo "$as_me: failed program was:" >&5
1623
sed 's/^/| /' conftest.$ac_ext >&5
1624

    
1625
	ac_retval=1
1626
fi
1627
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628
  as_fn_set_status $ac_retval
1629

    
1630
} # ac_fn_cxx_try_compile
1631

    
1632
# ac_fn_cxx_try_cpp LINENO
1633
# ------------------------
1634
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1635
ac_fn_cxx_try_cpp ()
1636
{
1637
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1639
case "(($ac_try" in
1640
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641
  *) ac_try_echo=$ac_try;;
1642
esac
1643
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644
$as_echo "$ac_try_echo"; } >&5
1645
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1646
  ac_status=$?
1647
  if test -s conftest.err; then
1648
    grep -v '^ *+' conftest.err >conftest.er1
1649
    cat conftest.er1 >&5
1650
    mv -f conftest.er1 conftest.err
1651
  fi
1652
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653
  test $ac_status = 0; } > conftest.i && {
1654
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1655
	 test ! -s conftest.err
1656
       }; then :
1657
  ac_retval=0
1658
else
1659
  $as_echo "$as_me: failed program was:" >&5
1660
sed 's/^/| /' conftest.$ac_ext >&5
1661

    
1662
    ac_retval=1
1663
fi
1664
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665
  as_fn_set_status $ac_retval
1666

    
1667
} # ac_fn_cxx_try_cpp
1668

    
1669
# ac_fn_cxx_try_run LINENO
1670
# ------------------------
1671
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1672
# that executables *can* be run.
1673
ac_fn_cxx_try_run ()
1674
{
1675
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676
  if { { ac_try="$ac_link"
1677
case "(($ac_try" in
1678
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679
  *) ac_try_echo=$ac_try;;
1680
esac
1681
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682
$as_echo "$ac_try_echo"; } >&5
1683
  (eval "$ac_link") 2>&5
1684
  ac_status=$?
1685
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1687
  { { case "(($ac_try" in
1688
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689
  *) ac_try_echo=$ac_try;;
1690
esac
1691
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692
$as_echo "$ac_try_echo"; } >&5
1693
  (eval "$ac_try") 2>&5
1694
  ac_status=$?
1695
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696
  test $ac_status = 0; }; }; then :
1697
  ac_retval=0
1698
else
1699
  $as_echo "$as_me: program exited with status $ac_status" >&5
1700
       $as_echo "$as_me: failed program was:" >&5
1701
sed 's/^/| /' conftest.$ac_ext >&5
1702

    
1703
       ac_retval=$ac_status
1704
fi
1705
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1706
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707
  as_fn_set_status $ac_retval
1708

    
1709
} # ac_fn_cxx_try_run
1710

    
1711
# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1712
# ---------------------------------------------------------
1713
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1714
# the include files in INCLUDES and setting the cache variable VAR
1715
# accordingly.
1716
ac_fn_cxx_check_header_mongrel ()
1717
{
1718
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719
  if eval \${$3+:} false; then :
1720
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721
$as_echo_n "checking for $2... " >&6; }
1722
if eval \${$3+:} false; then :
1723
  $as_echo_n "(cached) " >&6
1724
fi
1725
eval ac_res=\$$3
1726
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727
$as_echo "$ac_res" >&6; }
1728
else
1729
  # Is the header compilable?
1730
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1731
$as_echo_n "checking $2 usability... " >&6; }
1732
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733
/* end confdefs.h.  */
1734
$4
1735
#include <$2>
1736
_ACEOF
1737
if ac_fn_cxx_try_compile "$LINENO"; then :
1738
  ac_header_compiler=yes
1739
else
1740
  ac_header_compiler=no
1741
fi
1742
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1743
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1744
$as_echo "$ac_header_compiler" >&6; }
1745

    
1746
# Is the header present?
1747
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1748
$as_echo_n "checking $2 presence... " >&6; }
1749
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750
/* end confdefs.h.  */
1751
#include <$2>
1752
_ACEOF
1753
if ac_fn_cxx_try_cpp "$LINENO"; then :
1754
  ac_header_preproc=yes
1755
else
1756
  ac_header_preproc=no
1757
fi
1758
rm -f conftest.err conftest.i conftest.$ac_ext
1759
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1760
$as_echo "$ac_header_preproc" >&6; }
1761

    
1762
# So?  What about this header?
1763
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1764
  yes:no: )
1765
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1766
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1767
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1768
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1769
    ;;
1770
  no:yes:* )
1771
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1772
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1773
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1774
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1775
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1776
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1777
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1778
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1779
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1780
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1781
    ;;
1782
esac
1783
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784
$as_echo_n "checking for $2... " >&6; }
1785
if eval \${$3+:} false; then :
1786
  $as_echo_n "(cached) " >&6
1787
else
1788
  eval "$3=\$ac_header_compiler"
1789
fi
1790
eval ac_res=\$$3
1791
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792
$as_echo "$ac_res" >&6; }
1793
fi
1794
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795

    
1796
} # ac_fn_cxx_check_header_mongrel
1797

    
1798
# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1799
# ---------------------------------------------------------
1800
# Tests whether HEADER exists and can be compiled using the include files in
1801
# INCLUDES, setting the cache variable VAR accordingly.
1802
ac_fn_cxx_check_header_compile ()
1803
{
1804
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806
$as_echo_n "checking for $2... " >&6; }
1807
if eval \${$3+:} false; then :
1808
  $as_echo_n "(cached) " >&6
1809
else
1810
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811
/* end confdefs.h.  */
1812
$4
1813
#include <$2>
1814
_ACEOF
1815
if ac_fn_cxx_try_compile "$LINENO"; then :
1816
  eval "$3=yes"
1817
else
1818
  eval "$3=no"
1819
fi
1820
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821
fi
1822
eval ac_res=\$$3
1823
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824
$as_echo "$ac_res" >&6; }
1825
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826

    
1827
} # ac_fn_cxx_check_header_compile
1828

    
1829
# ac_fn_cxx_try_link LINENO
1830
# -------------------------
1831
# Try to link conftest.$ac_ext, and return whether this succeeded.
1832
ac_fn_cxx_try_link ()
1833
{
1834
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835
  rm -f conftest.$ac_objext conftest$ac_exeext
1836
  if { { ac_try="$ac_link"
1837
case "(($ac_try" in
1838
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839
  *) ac_try_echo=$ac_try;;
1840
esac
1841
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842
$as_echo "$ac_try_echo"; } >&5
1843
  (eval "$ac_link") 2>conftest.err
1844
  ac_status=$?
1845
  if test -s conftest.err; then
1846
    grep -v '^ *+' conftest.err >conftest.er1
1847
    cat conftest.er1 >&5
1848
    mv -f conftest.er1 conftest.err
1849
  fi
1850
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851
  test $ac_status = 0; } && {
1852
	 test -z "$ac_cxx_werror_flag" ||
1853
	 test ! -s conftest.err
1854
       } && test -s conftest$ac_exeext && {
1855
	 test "$cross_compiling" = yes ||
1856
	 test -x conftest$ac_exeext
1857
       }; then :
1858
  ac_retval=0
1859
else
1860
  $as_echo "$as_me: failed program was:" >&5
1861
sed 's/^/| /' conftest.$ac_ext >&5
1862

    
1863
	ac_retval=1
1864
fi
1865
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1866
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1867
  # interfere with the next link command; also delete a directory that is
1868
  # left behind by Apple's compiler.  We do this before executing the actions.
1869
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871
  as_fn_set_status $ac_retval
1872

    
1873
} # ac_fn_cxx_try_link
1874
cat >config.log <<_ACEOF
1875
This file contains any messages produced by compilers while
1876
running configure, to aid debugging if configure makes a mistake.
1877

    
1878
It was created by $as_me, which was
1879
generated by GNU Autoconf 2.69.  Invocation command line was
1880

    
1881
  $ $0 $@
1882

    
1883
_ACEOF
1884
exec 5>>config.log
1885
{
1886
cat <<_ASUNAME
1887
## --------- ##
1888
## Platform. ##
1889
## --------- ##
1890

    
1891
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1892
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1893
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1894
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1895
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1896

    
1897
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1898
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1899

    
1900
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1901
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1902
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1903
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1904
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1905
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1906
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1907

    
1908
_ASUNAME
1909

    
1910
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911
for as_dir in $PATH
1912
do
1913
  IFS=$as_save_IFS
1914
  test -z "$as_dir" && as_dir=.
1915
    $as_echo "PATH: $as_dir"
1916
  done
1917
IFS=$as_save_IFS
1918

    
1919
} >&5
1920

    
1921
cat >&5 <<_ACEOF
1922

    
1923

    
1924
## ----------- ##
1925
## Core tests. ##
1926
## ----------- ##
1927

    
1928
_ACEOF
1929

    
1930

    
1931
# Keep a trace of the command line.
1932
# Strip out --no-create and --no-recursion so they do not pile up.
1933
# Strip out --silent because we don't want to record it for future runs.
1934
# Also quote any args containing shell meta-characters.
1935
# Make two passes to allow for proper duplicate-argument suppression.
1936
ac_configure_args=
1937
ac_configure_args0=
1938
ac_configure_args1=
1939
ac_must_keep_next=false
1940
for ac_pass in 1 2
1941
do
1942
  for ac_arg
1943
  do
1944
    case $ac_arg in
1945
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1946
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1947
    | -silent | --silent | --silen | --sile | --sil)
1948
      continue ;;
1949
    *\'*)
1950
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1951
    esac
1952
    case $ac_pass in
1953
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1954
    2)
1955
      as_fn_append ac_configure_args1 " '$ac_arg'"
1956
      if test $ac_must_keep_next = true; then
1957
	ac_must_keep_next=false # Got value, back to normal.
1958
      else
1959
	case $ac_arg in
1960
	  *=* | --config-cache | -C | -disable-* | --disable-* \
1961
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1962
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1963
	  | -with-* | --with-* | -without-* | --without-* | --x)
1964
	    case "$ac_configure_args0 " in
1965
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1966
	    esac
1967
	    ;;
1968
	  -* ) ac_must_keep_next=true ;;
1969
	esac
1970
      fi
1971
      as_fn_append ac_configure_args " '$ac_arg'"
1972
      ;;
1973
    esac
1974
  done
1975
done
1976
{ ac_configure_args0=; unset ac_configure_args0;}
1977
{ ac_configure_args1=; unset ac_configure_args1;}
1978

    
1979
# When interrupted or exit'd, cleanup temporary files, and complete
1980
# config.log.  We remove comments because anyway the quotes in there
1981
# would cause problems or look ugly.
1982
# WARNING: Use '\'' to represent an apostrophe within the trap.
1983
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1984
trap 'exit_status=$?
1985
  # Save into config.log some information that might help in debugging.
1986
  {
1987
    echo
1988

    
1989
    $as_echo "## ---------------- ##
1990
## Cache variables. ##
1991
## ---------------- ##"
1992
    echo
1993
    # The following way of writing the cache mishandles newlines in values,
1994
(
1995
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1996
    eval ac_val=\$$ac_var
1997
    case $ac_val in #(
1998
    *${as_nl}*)
1999
      case $ac_var in #(
2000
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2001
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2002
      esac
2003
      case $ac_var in #(
2004
      _ | IFS | as_nl) ;; #(
2005
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2006
      *) { eval $ac_var=; unset $ac_var;} ;;
2007
      esac ;;
2008
    esac
2009
  done
2010
  (set) 2>&1 |
2011
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2012
    *${as_nl}ac_space=\ *)
2013
      sed -n \
2014
	"s/'\''/'\''\\\\'\'''\''/g;
2015
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2016
      ;; #(
2017
    *)
2018
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2019
      ;;
2020
    esac |
2021
    sort
2022
)
2023
    echo
2024

    
2025
    $as_echo "## ----------------- ##
2026
## Output variables. ##
2027
## ----------------- ##"
2028
    echo
2029
    for ac_var in $ac_subst_vars
2030
    do
2031
      eval ac_val=\$$ac_var
2032
      case $ac_val in
2033
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2034
      esac
2035
      $as_echo "$ac_var='\''$ac_val'\''"
2036
    done | sort
2037
    echo
2038

    
2039
    if test -n "$ac_subst_files"; then
2040
      $as_echo "## ------------------- ##
2041
## File substitutions. ##
2042
## ------------------- ##"
2043
      echo
2044
      for ac_var in $ac_subst_files
2045
      do
2046
	eval ac_val=\$$ac_var
2047
	case $ac_val in
2048
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2049
	esac
2050
	$as_echo "$ac_var='\''$ac_val'\''"
2051
      done | sort
2052
      echo
2053
    fi
2054

    
2055
    if test -s confdefs.h; then
2056
      $as_echo "## ----------- ##
2057
## confdefs.h. ##
2058
## ----------- ##"
2059
      echo
2060
      cat confdefs.h
2061
      echo
2062
    fi
2063
    test "$ac_signal" != 0 &&
2064
      $as_echo "$as_me: caught signal $ac_signal"
2065
    $as_echo "$as_me: exit $exit_status"
2066
  } >&5
2067
  rm -f core *.core core.conftest.* &&
2068
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2069
    exit $exit_status
2070
' 0
2071
for ac_signal in 1 2 13 15; do
2072
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2073
done
2074
ac_signal=0
2075

    
2076
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2077
rm -f -r conftest* confdefs.h
2078

    
2079
$as_echo "/* confdefs.h */" > confdefs.h
2080

    
2081
# Predefined preprocessor variables.
2082

    
2083
cat >>confdefs.h <<_ACEOF
2084
#define PACKAGE_NAME "$PACKAGE_NAME"
2085
_ACEOF
2086

    
2087
cat >>confdefs.h <<_ACEOF
2088
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2089
_ACEOF
2090

    
2091
cat >>confdefs.h <<_ACEOF
2092
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2093
_ACEOF
2094

    
2095
cat >>confdefs.h <<_ACEOF
2096
#define PACKAGE_STRING "$PACKAGE_STRING"
2097
_ACEOF
2098

    
2099
cat >>confdefs.h <<_ACEOF
2100
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2101
_ACEOF
2102

    
2103
cat >>confdefs.h <<_ACEOF
2104
#define PACKAGE_URL "$PACKAGE_URL"
2105
_ACEOF
2106

    
2107

    
2108
# Let the site file select an alternate cache file if it wants to.
2109
# Prefer an explicitly selected file to automatically selected ones.
2110
ac_site_file1=NONE
2111
ac_site_file2=NONE
2112
if test -n "$CONFIG_SITE"; then
2113
  # We do not want a PATH search for config.site.
2114
  case $CONFIG_SITE in #((
2115
    -*)  ac_site_file1=./$CONFIG_SITE;;
2116
    */*) ac_site_file1=$CONFIG_SITE;;
2117
    *)   ac_site_file1=./$CONFIG_SITE;;
2118
  esac
2119
elif test "x$prefix" != xNONE; then
2120
  ac_site_file1=$prefix/share/config.site
2121
  ac_site_file2=$prefix/etc/config.site
2122
else
2123
  ac_site_file1=$ac_default_prefix/share/config.site
2124
  ac_site_file2=$ac_default_prefix/etc/config.site
2125
fi
2126
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2127
do
2128
  test "x$ac_site_file" = xNONE && continue
2129
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2130
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2131
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2132
    sed 's/^/| /' "$ac_site_file" >&5
2133
    . "$ac_site_file" \
2134
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2135
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2136
as_fn_error $? "failed to load site script $ac_site_file
2137
See \`config.log' for more details" "$LINENO" 5; }
2138
  fi
2139
done
2140

    
2141
if test -r "$cache_file"; then
2142
  # Some versions of bash will fail to source /dev/null (special files
2143
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2144
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2145
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2146
$as_echo "$as_me: loading cache $cache_file" >&6;}
2147
    case $cache_file in
2148
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2149
      *)                      . "./$cache_file";;
2150
    esac
2151
  fi
2152
else
2153
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2154
$as_echo "$as_me: creating cache $cache_file" >&6;}
2155
  >$cache_file
2156
fi
2157

    
2158
# Check that the precious variables saved in the cache have kept the same
2159
# value.
2160
ac_cache_corrupted=false
2161
for ac_var in $ac_precious_vars; do
2162
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2163
  eval ac_new_set=\$ac_env_${ac_var}_set
2164
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2165
  eval ac_new_val=\$ac_env_${ac_var}_value
2166
  case $ac_old_set,$ac_new_set in
2167
    set,)
2168
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2169
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2170
      ac_cache_corrupted=: ;;
2171
    ,set)
2172
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2173
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2174
      ac_cache_corrupted=: ;;
2175
    ,);;
2176
    *)
2177
      if test "x$ac_old_val" != "x$ac_new_val"; then
2178
	# differences in whitespace do not lead to failure.
2179
	ac_old_val_w=`echo x $ac_old_val`
2180
	ac_new_val_w=`echo x $ac_new_val`
2181
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2182
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2183
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2184
	  ac_cache_corrupted=:
2185
	else
2186
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2187
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2188
	  eval $ac_var=\$ac_old_val
2189
	fi
2190
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2191
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2192
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2193
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2194
      fi;;
2195
  esac
2196
  # Pass precious variables to config.status.
2197
  if test "$ac_new_set" = set; then
2198
    case $ac_new_val in
2199
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2200
    *) ac_arg=$ac_var=$ac_new_val ;;
2201
    esac
2202
    case " $ac_configure_args " in
2203
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2204
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2205
    esac
2206
  fi
2207
done
2208
if $ac_cache_corrupted; then
2209
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2210
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2211
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2212
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2213
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2214
fi
2215
## -------------------- ##
2216
## Main body of script. ##
2217
## -------------------- ##
2218

    
2219
ac_ext=c
2220
ac_cpp='$CPP $CPPFLAGS'
2221
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2222
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2223
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2224

    
2225

    
2226

    
2227

    
2228

    
2229
# Autoconf will set CXXFLAGS; we don't usually want it to, because we
2230
# either define our own flags (at least if GCC is in use) or else use
2231
# the user's preferences.  We need to ensure CXXFLAGS is only set if
2232
# the user has expressly set it.  So, save the user's (or empty)
2233
# setting now and restore it after Autoconf has done its bit of
2234
# piddling about.
2235
USER_CXXFLAGS="$CXXFLAGS"
2236

    
2237
# If the user supplied CFLAGS but not CXXFLAGS, use CFLAGS instead
2238
if test x"$USER_CXXFLAGS" = x; then
2239
   if test x"$CFLAGS" != x; then
2240
      USER_CXXFLAGS="$CFLAGS"
2241
   fi
2242
fi
2243

    
2244
ac_ext=cpp
2245
ac_cpp='$CXXCPP $CPPFLAGS'
2246
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2247
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2248
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2249

    
2250

    
2251
ac_ext=c
2252
ac_cpp='$CPP $CPPFLAGS'
2253
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2254
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2255
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2256
if test -n "$ac_tool_prefix"; then
2257
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2258
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2259
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2260
$as_echo_n "checking for $ac_word... " >&6; }
2261
if ${ac_cv_prog_CC+:} false; then :
2262
  $as_echo_n "(cached) " >&6
2263
else
2264
  if test -n "$CC"; then
2265
  ac_cv_prog_CC="$CC" # Let the user override the test.
2266
else
2267
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268
for as_dir in $PATH
2269
do
2270
  IFS=$as_save_IFS
2271
  test -z "$as_dir" && as_dir=.
2272
    for ac_exec_ext in '' $ac_executable_extensions; do
2273
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2274
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2275
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2276
    break 2
2277
  fi
2278
done
2279
  done
2280
IFS=$as_save_IFS
2281

    
2282
fi
2283
fi
2284
CC=$ac_cv_prog_CC
2285
if test -n "$CC"; then
2286
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2287
$as_echo "$CC" >&6; }
2288
else
2289
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2290
$as_echo "no" >&6; }
2291
fi
2292

    
2293

    
2294
fi
2295
if test -z "$ac_cv_prog_CC"; then
2296
  ac_ct_CC=$CC
2297
  # Extract the first word of "gcc", so it can be a program name with args.
2298
set dummy gcc; ac_word=$2
2299
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2300
$as_echo_n "checking for $ac_word... " >&6; }
2301
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2302
  $as_echo_n "(cached) " >&6
2303
else
2304
  if test -n "$ac_ct_CC"; then
2305
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2306
else
2307
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308
for as_dir in $PATH
2309
do
2310
  IFS=$as_save_IFS
2311
  test -z "$as_dir" && as_dir=.
2312
    for ac_exec_ext in '' $ac_executable_extensions; do
2313
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2314
    ac_cv_prog_ac_ct_CC="gcc"
2315
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2316
    break 2
2317
  fi
2318
done
2319
  done
2320
IFS=$as_save_IFS
2321

    
2322
fi
2323
fi
2324
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2325
if test -n "$ac_ct_CC"; then
2326
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2327
$as_echo "$ac_ct_CC" >&6; }
2328
else
2329
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2330
$as_echo "no" >&6; }
2331
fi
2332

    
2333
  if test "x$ac_ct_CC" = x; then
2334
    CC=""
2335
  else
2336
    case $cross_compiling:$ac_tool_warned in
2337
yes:)
2338
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2339
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2340
ac_tool_warned=yes ;;
2341
esac
2342
    CC=$ac_ct_CC
2343
  fi
2344
else
2345
  CC="$ac_cv_prog_CC"
2346
fi
2347

    
2348
if test -z "$CC"; then
2349
          if test -n "$ac_tool_prefix"; then
2350
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2351
set dummy ${ac_tool_prefix}cc; ac_word=$2
2352
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2353
$as_echo_n "checking for $ac_word... " >&6; }
2354
if ${ac_cv_prog_CC+:} false; then :
2355
  $as_echo_n "(cached) " >&6
2356
else
2357
  if test -n "$CC"; then
2358
  ac_cv_prog_CC="$CC" # Let the user override the test.
2359
else
2360
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361
for as_dir in $PATH
2362
do
2363
  IFS=$as_save_IFS
2364
  test -z "$as_dir" && as_dir=.
2365
    for ac_exec_ext in '' $ac_executable_extensions; do
2366
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2367
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2368
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2369
    break 2
2370
  fi
2371
done
2372
  done
2373
IFS=$as_save_IFS
2374

    
2375
fi
2376
fi
2377
CC=$ac_cv_prog_CC
2378
if test -n "$CC"; then
2379
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2380
$as_echo "$CC" >&6; }
2381
else
2382
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2383
$as_echo "no" >&6; }
2384
fi
2385

    
2386

    
2387
  fi
2388
fi
2389
if test -z "$CC"; then
2390
  # Extract the first word of "cc", so it can be a program name with args.
2391
set dummy cc; ac_word=$2
2392
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2393
$as_echo_n "checking for $ac_word... " >&6; }
2394
if ${ac_cv_prog_CC+:} false; then :
2395
  $as_echo_n "(cached) " >&6
2396
else
2397
  if test -n "$CC"; then
2398
  ac_cv_prog_CC="$CC" # Let the user override the test.
2399
else
2400
  ac_prog_rejected=no
2401
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402
for as_dir in $PATH
2403
do
2404
  IFS=$as_save_IFS
2405
  test -z "$as_dir" && as_dir=.
2406
    for ac_exec_ext in '' $ac_executable_extensions; do
2407
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2408
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2409
       ac_prog_rejected=yes
2410
       continue
2411
     fi
2412
    ac_cv_prog_CC="cc"
2413
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2414
    break 2
2415
  fi
2416
done
2417
  done
2418
IFS=$as_save_IFS
2419

    
2420
if test $ac_prog_rejected = yes; then
2421
  # We found a bogon in the path, so make sure we never use it.
2422
  set dummy $ac_cv_prog_CC
2423
  shift
2424
  if test $# != 0; then
2425
    # We chose a different compiler from the bogus one.
2426
    # However, it has the same basename, so the bogon will be chosen
2427
    # first if we set CC to just the basename; use the full file name.
2428
    shift
2429
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2430
  fi
2431
fi
2432
fi
2433
fi
2434
CC=$ac_cv_prog_CC
2435
if test -n "$CC"; then
2436
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2437
$as_echo "$CC" >&6; }
2438
else
2439
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2440
$as_echo "no" >&6; }
2441
fi
2442

    
2443

    
2444
fi
2445
if test -z "$CC"; then
2446
  if test -n "$ac_tool_prefix"; then
2447
  for ac_prog in cl.exe
2448
  do
2449
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2450
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2451
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2452
$as_echo_n "checking for $ac_word... " >&6; }
2453
if ${ac_cv_prog_CC+:} false; then :
2454
  $as_echo_n "(cached) " >&6
2455
else
2456
  if test -n "$CC"; then
2457
  ac_cv_prog_CC="$CC" # Let the user override the test.
2458
else
2459
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460
for as_dir in $PATH
2461
do
2462
  IFS=$as_save_IFS
2463
  test -z "$as_dir" && as_dir=.
2464
    for ac_exec_ext in '' $ac_executable_extensions; do
2465
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2466
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2467
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2468
    break 2
2469
  fi
2470
done
2471
  done
2472
IFS=$as_save_IFS
2473

    
2474
fi
2475
fi
2476
CC=$ac_cv_prog_CC
2477
if test -n "$CC"; then
2478
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2479
$as_echo "$CC" >&6; }
2480
else
2481
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2482
$as_echo "no" >&6; }
2483
fi
2484

    
2485

    
2486
    test -n "$CC" && break
2487
  done
2488
fi
2489
if test -z "$CC"; then
2490
  ac_ct_CC=$CC
2491
  for ac_prog in cl.exe
2492
do
2493
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2494
set dummy $ac_prog; ac_word=$2
2495
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2496
$as_echo_n "checking for $ac_word... " >&6; }
2497
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2498
  $as_echo_n "(cached) " >&6
2499
else
2500
  if test -n "$ac_ct_CC"; then
2501
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2502
else
2503
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504
for as_dir in $PATH
2505
do
2506
  IFS=$as_save_IFS
2507
  test -z "$as_dir" && as_dir=.
2508
    for ac_exec_ext in '' $ac_executable_extensions; do
2509
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2510
    ac_cv_prog_ac_ct_CC="$ac_prog"
2511
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2512
    break 2
2513
  fi
2514
done
2515
  done
2516
IFS=$as_save_IFS
2517

    
2518
fi
2519
fi
2520
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2521
if test -n "$ac_ct_CC"; then
2522
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2523
$as_echo "$ac_ct_CC" >&6; }
2524
else
2525
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2526
$as_echo "no" >&6; }
2527
fi
2528

    
2529

    
2530
  test -n "$ac_ct_CC" && break
2531
done
2532

    
2533
  if test "x$ac_ct_CC" = x; then
2534
    CC=""
2535
  else
2536
    case $cross_compiling:$ac_tool_warned in
2537
yes:)
2538
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2539
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2540
ac_tool_warned=yes ;;
2541
esac
2542
    CC=$ac_ct_CC
2543
  fi
2544
fi
2545

    
2546
fi
2547

    
2548

    
2549
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2550
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2551
as_fn_error $? "no acceptable C compiler found in \$PATH
2552
See \`config.log' for more details" "$LINENO" 5; }
2553

    
2554
# Provide some information about the compiler.
2555
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2556
set X $ac_compile
2557
ac_compiler=$2
2558
for ac_option in --version -v -V -qversion; do
2559
  { { ac_try="$ac_compiler $ac_option >&5"
2560
case "(($ac_try" in
2561
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562
  *) ac_try_echo=$ac_try;;
2563
esac
2564
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2565
$as_echo "$ac_try_echo"; } >&5
2566
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2567
  ac_status=$?
2568
  if test -s conftest.err; then
2569
    sed '10a\
2570
... rest of stderr output deleted ...
2571
         10q' conftest.err >conftest.er1
2572
    cat conftest.er1 >&5
2573
  fi
2574
  rm -f conftest.er1 conftest.err
2575
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2576
  test $ac_status = 0; }
2577
done
2578

    
2579
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2580
/* end confdefs.h.  */
2581

    
2582
int
2583
main ()
2584
{
2585

    
2586
  ;
2587
  return 0;
2588
}
2589
_ACEOF
2590
ac_clean_files_save=$ac_clean_files
2591
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2592
# Try to create an executable without -o first, disregard a.out.
2593
# It will help us diagnose broken compilers, and finding out an intuition
2594
# of exeext.
2595
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2596
$as_echo_n "checking whether the C compiler works... " >&6; }
2597
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2598

    
2599
# The possible output files:
2600
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2601

    
2602
ac_rmfiles=
2603
for ac_file in $ac_files
2604
do
2605
  case $ac_file in
2606
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2607
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2608
  esac
2609
done
2610
rm -f $ac_rmfiles
2611

    
2612
if { { ac_try="$ac_link_default"
2613
case "(($ac_try" in
2614
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2615
  *) ac_try_echo=$ac_try;;
2616
esac
2617
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2618
$as_echo "$ac_try_echo"; } >&5
2619
  (eval "$ac_link_default") 2>&5
2620
  ac_status=$?
2621
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2622
  test $ac_status = 0; }; then :
2623
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2624
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2625
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2626
# so that the user can short-circuit this test for compilers unknown to
2627
# Autoconf.
2628
for ac_file in $ac_files ''
2629
do
2630
  test -f "$ac_file" || continue
2631
  case $ac_file in
2632
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2633
	;;
2634
    [ab].out )
2635
	# We found the default executable, but exeext='' is most
2636
	# certainly right.
2637
	break;;
2638
    *.* )
2639
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2640
	then :; else
2641
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2642
	fi
2643
	# We set ac_cv_exeext here because the later test for it is not
2644
	# safe: cross compilers may not add the suffix if given an `-o'
2645
	# argument, so we may need to know it at that point already.
2646
	# Even if this section looks crufty: it has the advantage of
2647
	# actually working.
2648
	break;;
2649
    * )
2650
	break;;
2651
  esac
2652
done
2653
test "$ac_cv_exeext" = no && ac_cv_exeext=
2654

    
2655
else
2656
  ac_file=''
2657
fi
2658
if test -z "$ac_file"; then :
2659
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2660
$as_echo "no" >&6; }
2661
$as_echo "$as_me: failed program was:" >&5
2662
sed 's/^/| /' conftest.$ac_ext >&5
2663

    
2664
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2665
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2666
as_fn_error 77 "C compiler cannot create executables
2667
See \`config.log' for more details" "$LINENO" 5; }
2668
else
2669
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2670
$as_echo "yes" >&6; }
2671
fi
2672
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2673
$as_echo_n "checking for C compiler default output file name... " >&6; }
2674
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2675
$as_echo "$ac_file" >&6; }
2676
ac_exeext=$ac_cv_exeext
2677

    
2678
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2679
ac_clean_files=$ac_clean_files_save
2680
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2681
$as_echo_n "checking for suffix of executables... " >&6; }
2682
if { { ac_try="$ac_link"
2683
case "(($ac_try" in
2684
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2685
  *) ac_try_echo=$ac_try;;
2686
esac
2687
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2688
$as_echo "$ac_try_echo"; } >&5
2689
  (eval "$ac_link") 2>&5
2690
  ac_status=$?
2691
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2692
  test $ac_status = 0; }; then :
2693
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2694
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2695
# work properly (i.e., refer to `conftest.exe'), while it won't with
2696
# `rm'.
2697
for ac_file in conftest.exe conftest conftest.*; do
2698
  test -f "$ac_file" || continue
2699
  case $ac_file in
2700
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2701
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2702
	  break;;
2703
    * ) break;;
2704
  esac
2705
done
2706
else
2707
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2708
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2709
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2710
See \`config.log' for more details" "$LINENO" 5; }
2711
fi
2712
rm -f conftest conftest$ac_cv_exeext
2713
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2714
$as_echo "$ac_cv_exeext" >&6; }
2715

    
2716
rm -f conftest.$ac_ext
2717
EXEEXT=$ac_cv_exeext
2718
ac_exeext=$EXEEXT
2719
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2720
/* end confdefs.h.  */
2721
#include <stdio.h>
2722
int
2723
main ()
2724
{
2725
FILE *f = fopen ("conftest.out", "w");
2726
 return ferror (f) || fclose (f) != 0;
2727

    
2728
  ;
2729
  return 0;
2730
}
2731
_ACEOF
2732
ac_clean_files="$ac_clean_files conftest.out"
2733
# Check that the compiler produces executables we can run.  If not, either
2734
# the compiler is broken, or we cross compile.
2735
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2736
$as_echo_n "checking whether we are cross compiling... " >&6; }
2737
if test "$cross_compiling" != yes; then
2738
  { { ac_try="$ac_link"
2739
case "(($ac_try" in
2740
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741
  *) ac_try_echo=$ac_try;;
2742
esac
2743
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2744
$as_echo "$ac_try_echo"; } >&5
2745
  (eval "$ac_link") 2>&5
2746
  ac_status=$?
2747
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2748
  test $ac_status = 0; }
2749
  if { ac_try='./conftest$ac_cv_exeext'
2750
  { { case "(($ac_try" in
2751
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752
  *) ac_try_echo=$ac_try;;
2753
esac
2754
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2755
$as_echo "$ac_try_echo"; } >&5
2756
  (eval "$ac_try") 2>&5
2757
  ac_status=$?
2758
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2759
  test $ac_status = 0; }; }; then
2760
    cross_compiling=no
2761
  else
2762
    if test "$cross_compiling" = maybe; then
2763
	cross_compiling=yes
2764
    else
2765
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2766
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2767
as_fn_error $? "cannot run C compiled programs.
2768
If you meant to cross compile, use \`--host'.
2769
See \`config.log' for more details" "$LINENO" 5; }
2770
    fi
2771
  fi
2772
fi
2773
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2774
$as_echo "$cross_compiling" >&6; }
2775

    
2776
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2777
ac_clean_files=$ac_clean_files_save
2778
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2779
$as_echo_n "checking for suffix of object files... " >&6; }
2780
if ${ac_cv_objext+:} false; then :
2781
  $as_echo_n "(cached) " >&6
2782
else
2783
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2784
/* end confdefs.h.  */
2785

    
2786
int
2787
main ()
2788
{
2789

    
2790
  ;
2791
  return 0;
2792
}
2793
_ACEOF
2794
rm -f conftest.o conftest.obj
2795
if { { ac_try="$ac_compile"
2796
case "(($ac_try" in
2797
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2798
  *) ac_try_echo=$ac_try;;
2799
esac
2800
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2801
$as_echo "$ac_try_echo"; } >&5
2802
  (eval "$ac_compile") 2>&5
2803
  ac_status=$?
2804
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2805
  test $ac_status = 0; }; then :
2806
  for ac_file in conftest.o conftest.obj conftest.*; do
2807
  test -f "$ac_file" || continue;
2808
  case $ac_file in
2809
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2810
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2811
       break;;
2812
  esac
2813
done
2814
else
2815
  $as_echo "$as_me: failed program was:" >&5
2816
sed 's/^/| /' conftest.$ac_ext >&5
2817

    
2818
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2819
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2820
as_fn_error $? "cannot compute suffix of object files: cannot compile
2821
See \`config.log' for more details" "$LINENO" 5; }
2822
fi
2823
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2824
fi
2825
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2826
$as_echo "$ac_cv_objext" >&6; }
2827
OBJEXT=$ac_cv_objext
2828
ac_objext=$OBJEXT
2829
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2830
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2831
if ${ac_cv_c_compiler_gnu+:} false; then :
2832
  $as_echo_n "(cached) " >&6
2833
else
2834
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2835
/* end confdefs.h.  */
2836

    
2837
int
2838
main ()
2839
{
2840
#ifndef __GNUC__
2841
       choke me
2842
#endif
2843

    
2844
  ;
2845
  return 0;
2846
}
2847
_ACEOF
2848
if ac_fn_c_try_compile "$LINENO"; then :
2849
  ac_compiler_gnu=yes
2850
else
2851
  ac_compiler_gnu=no
2852
fi
2853
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2854
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2855

    
2856
fi
2857
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2858
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2859
if test $ac_compiler_gnu = yes; then
2860
  GCC=yes
2861
else
2862
  GCC=
2863
fi
2864
ac_test_CFLAGS=${CFLAGS+set}
2865
ac_save_CFLAGS=$CFLAGS
2866
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2867
$as_echo_n "checking whether $CC accepts -g... " >&6; }
2868
if ${ac_cv_prog_cc_g+:} false; then :
2869
  $as_echo_n "(cached) " >&6
2870
else
2871
  ac_save_c_werror_flag=$ac_c_werror_flag
2872
   ac_c_werror_flag=yes
2873
   ac_cv_prog_cc_g=no
2874
   CFLAGS="-g"
2875
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2876
/* end confdefs.h.  */
2877

    
2878
int
2879
main ()
2880
{
2881

    
2882
  ;
2883
  return 0;
2884
}
2885
_ACEOF
2886
if ac_fn_c_try_compile "$LINENO"; then :
2887
  ac_cv_prog_cc_g=yes
2888
else
2889
  CFLAGS=""
2890
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2891
/* end confdefs.h.  */
2892

    
2893
int
2894
main ()
2895
{
2896

    
2897
  ;
2898
  return 0;
2899
}
2900
_ACEOF
2901
if ac_fn_c_try_compile "$LINENO"; then :
2902

    
2903
else
2904
  ac_c_werror_flag=$ac_save_c_werror_flag
2905
	 CFLAGS="-g"
2906
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2907
/* end confdefs.h.  */
2908

    
2909
int
2910
main ()
2911
{
2912

    
2913
  ;
2914
  return 0;
2915
}
2916
_ACEOF
2917
if ac_fn_c_try_compile "$LINENO"; then :
2918
  ac_cv_prog_cc_g=yes
2919
fi
2920
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2921
fi
2922
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2923
fi
2924
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2925
   ac_c_werror_flag=$ac_save_c_werror_flag
2926
fi
2927
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2928
$as_echo "$ac_cv_prog_cc_g" >&6; }
2929
if test "$ac_test_CFLAGS" = set; then
2930
  CFLAGS=$ac_save_CFLAGS
2931
elif test $ac_cv_prog_cc_g = yes; then
2932
  if test "$GCC" = yes; then
2933
    CFLAGS="-g -O2"
2934
  else
2935
    CFLAGS="-g"
2936
  fi
2937
else
2938
  if test "$GCC" = yes; then
2939
    CFLAGS="-O2"
2940
  else
2941
    CFLAGS=
2942
  fi
2943
fi
2944
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2945
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2946
if ${ac_cv_prog_cc_c89+:} false; then :
2947
  $as_echo_n "(cached) " >&6
2948
else
2949
  ac_cv_prog_cc_c89=no
2950
ac_save_CC=$CC
2951
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2952
/* end confdefs.h.  */
2953
#include <stdarg.h>
2954
#include <stdio.h>
2955
struct stat;
2956
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2957
struct buf { int x; };
2958
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2959
static char *e (p, i)
2960
     char **p;
2961
     int i;
2962
{
2963
  return p[i];
2964
}
2965
static char *f (char * (*g) (char **, int), char **p, ...)
2966
{
2967
  char *s;
2968
  va_list v;
2969
  va_start (v,p);
2970
  s = g (p, va_arg (v,int));
2971
  va_end (v);
2972
  return s;
2973
}
2974

    
2975
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2976
   function prototypes and stuff, but not '\xHH' hex character constants.
2977
   These don't provoke an error unfortunately, instead are silently treated
2978
   as 'x'.  The following induces an error, until -std is added to get
2979
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2980
   array size at least.  It's necessary to write '\x00'==0 to get something
2981
   that's true only with -std.  */
2982
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2983

    
2984
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2985
   inside strings and character constants.  */
2986
#define FOO(x) 'x'
2987
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2988

    
2989
int test (int i, double x);
2990
struct s1 {int (*f) (int a);};
2991
struct s2 {int (*f) (double a);};
2992
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2993
int argc;
2994
char **argv;
2995
int
2996
main ()
2997
{
2998
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2999
  ;
3000
  return 0;
3001
}
3002
_ACEOF
3003
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3004
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3005
do
3006
  CC="$ac_save_CC $ac_arg"
3007
  if ac_fn_c_try_compile "$LINENO"; then :
3008
  ac_cv_prog_cc_c89=$ac_arg
3009
fi
3010
rm -f core conftest.err conftest.$ac_objext
3011
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3012
done
3013
rm -f conftest.$ac_ext
3014
CC=$ac_save_CC
3015

    
3016
fi
3017
# AC_CACHE_VAL
3018
case "x$ac_cv_prog_cc_c89" in
3019
  x)
3020
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3021
$as_echo "none needed" >&6; } ;;
3022
  xno)
3023
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3024
$as_echo "unsupported" >&6; } ;;
3025
  *)
3026
    CC="$CC $ac_cv_prog_cc_c89"
3027
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3028
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3029
esac
3030
if test "x$ac_cv_prog_cc_c89" != xno; then :
3031

    
3032
fi
3033

    
3034
ac_ext=cpp
3035
ac_cpp='$CXXCPP $CPPFLAGS'
3036
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3037
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3038
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3039

    
3040
ac_ext=cpp
3041
ac_cpp='$CXXCPP $CPPFLAGS'
3042
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3043
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3044
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3045
if test -z "$CXX"; then
3046
  if test -n "$CCC"; then
3047
    CXX=$CCC
3048
  else
3049
    if test -n "$ac_tool_prefix"; then
3050
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3051
  do
3052
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3053
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3054
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3055
$as_echo_n "checking for $ac_word... " >&6; }
3056
if ${ac_cv_prog_CXX+:} false; then :
3057
  $as_echo_n "(cached) " >&6
3058
else
3059
  if test -n "$CXX"; then
3060
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3061
else
3062
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063
for as_dir in $PATH
3064
do
3065
  IFS=$as_save_IFS
3066
  test -z "$as_dir" && as_dir=.
3067
    for ac_exec_ext in '' $ac_executable_extensions; do
3068
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3069
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3070
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3071
    break 2
3072
  fi
3073
done
3074
  done
3075
IFS=$as_save_IFS
3076

    
3077
fi
3078
fi
3079
CXX=$ac_cv_prog_CXX
3080
if test -n "$CXX"; then
3081
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3082
$as_echo "$CXX" >&6; }
3083
else
3084
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085
$as_echo "no" >&6; }
3086
fi
3087

    
3088

    
3089
    test -n "$CXX" && break
3090
  done
3091
fi
3092
if test -z "$CXX"; then
3093
  ac_ct_CXX=$CXX
3094
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3095
do
3096
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3097
set dummy $ac_prog; ac_word=$2
3098
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3099
$as_echo_n "checking for $ac_word... " >&6; }
3100
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3101
  $as_echo_n "(cached) " >&6
3102
else
3103
  if test -n "$ac_ct_CXX"; then
3104
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3105
else
3106
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107
for as_dir in $PATH
3108
do
3109
  IFS=$as_save_IFS
3110
  test -z "$as_dir" && as_dir=.
3111
    for ac_exec_ext in '' $ac_executable_extensions; do
3112
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3113
    ac_cv_prog_ac_ct_CXX="$ac_prog"
3114
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3115
    break 2
3116
  fi
3117
done
3118
  done
3119
IFS=$as_save_IFS
3120

    
3121
fi
3122
fi
3123
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3124
if test -n "$ac_ct_CXX"; then
3125
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3126
$as_echo "$ac_ct_CXX" >&6; }
3127
else
3128
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3129
$as_echo "no" >&6; }
3130
fi
3131

    
3132

    
3133
  test -n "$ac_ct_CXX" && break
3134
done
3135

    
3136
  if test "x$ac_ct_CXX" = x; then
3137
    CXX="g++"
3138
  else
3139
    case $cross_compiling:$ac_tool_warned in
3140
yes:)
3141
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3142
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3143
ac_tool_warned=yes ;;
3144
esac
3145
    CXX=$ac_ct_CXX
3146
  fi
3147
fi
3148

    
3149
  fi
3150
fi
3151
# Provide some information about the compiler.
3152
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3153
set X $ac_compile
3154
ac_compiler=$2
3155
for ac_option in --version -v -V -qversion; do
3156
  { { ac_try="$ac_compiler $ac_option >&5"
3157
case "(($ac_try" in
3158
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159
  *) ac_try_echo=$ac_try;;
3160
esac
3161
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3162
$as_echo "$ac_try_echo"; } >&5
3163
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3164
  ac_status=$?
3165
  if test -s conftest.err; then
3166
    sed '10a\
3167
... rest of stderr output deleted ...
3168
         10q' conftest.err >conftest.er1
3169
    cat conftest.er1 >&5
3170
  fi
3171
  rm -f conftest.er1 conftest.err
3172
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3173
  test $ac_status = 0; }
3174
done
3175

    
3176
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3177
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3178
if ${ac_cv_cxx_compiler_gnu+:} false; then :
3179
  $as_echo_n "(cached) " >&6
3180
else
3181
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3182
/* end confdefs.h.  */
3183

    
3184
int
3185
main ()
3186
{
3187
#ifndef __GNUC__
3188
       choke me
3189
#endif
3190

    
3191
  ;
3192
  return 0;
3193
}
3194
_ACEOF
3195
if ac_fn_cxx_try_compile "$LINENO"; then :
3196
  ac_compiler_gnu=yes
3197
else
3198
  ac_compiler_gnu=no
3199
fi
3200
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3202

    
3203
fi
3204
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3205
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3206
if test $ac_compiler_gnu = yes; then
3207
  GXX=yes
3208
else
3209
  GXX=
3210
fi
3211
ac_test_CXXFLAGS=${CXXFLAGS+set}
3212
ac_save_CXXFLAGS=$CXXFLAGS
3213
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3214
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3215
if ${ac_cv_prog_cxx_g+:} false; then :
3216
  $as_echo_n "(cached) " >&6
3217
else
3218
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3219
   ac_cxx_werror_flag=yes
3220
   ac_cv_prog_cxx_g=no
3221
   CXXFLAGS="-g"
3222
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3223
/* end confdefs.h.  */
3224

    
3225
int
3226
main ()
3227
{
3228

    
3229
  ;
3230
  return 0;
3231
}
3232
_ACEOF
3233
if ac_fn_cxx_try_compile "$LINENO"; then :
3234
  ac_cv_prog_cxx_g=yes
3235
else
3236
  CXXFLAGS=""
3237
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3238
/* end confdefs.h.  */
3239

    
3240
int
3241
main ()
3242
{
3243

    
3244
  ;
3245
  return 0;
3246
}
3247
_ACEOF
3248
if ac_fn_cxx_try_compile "$LINENO"; then :
3249

    
3250
else
3251
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3252
	 CXXFLAGS="-g"
3253
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254
/* end confdefs.h.  */
3255

    
3256
int
3257
main ()
3258
{
3259

    
3260
  ;
3261
  return 0;
3262
}
3263
_ACEOF
3264
if ac_fn_cxx_try_compile "$LINENO"; then :
3265
  ac_cv_prog_cxx_g=yes
3266
fi
3267
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268
fi
3269
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270
fi
3271
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3272
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3273
fi
3274
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3275
$as_echo "$ac_cv_prog_cxx_g" >&6; }
3276
if test "$ac_test_CXXFLAGS" = set; then
3277
  CXXFLAGS=$ac_save_CXXFLAGS
3278
elif test $ac_cv_prog_cxx_g = yes; then
3279
  if test "$GXX" = yes; then
3280
    CXXFLAGS="-g -O2"
3281
  else
3282
    CXXFLAGS="-g"
3283
  fi
3284
else
3285
  if test "$GXX" = yes; then
3286
    CXXFLAGS="-O2"
3287
  else
3288
    CXXFLAGS=
3289
  fi
3290
fi
3291
ac_ext=cpp
3292
ac_cpp='$CXXCPP $CPPFLAGS'
3293
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3294
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3295
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3296

    
3297
ac_aux_dir=
3298
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3299
  if test -f "$ac_dir/install-sh"; then
3300
    ac_aux_dir=$ac_dir
3301
    ac_install_sh="$ac_aux_dir/install-sh -c"
3302
    break
3303
  elif test -f "$ac_dir/install.sh"; then
3304
    ac_aux_dir=$ac_dir
3305
    ac_install_sh="$ac_aux_dir/install.sh -c"
3306
    break
3307
  elif test -f "$ac_dir/shtool"; then
3308
    ac_aux_dir=$ac_dir
3309
    ac_install_sh="$ac_aux_dir/shtool install -c"
3310
    break
3311
  fi
3312
done
3313
if test -z "$ac_aux_dir"; then
3314
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3315
fi
3316

    
3317
# These three variables are undocumented and unsupported,
3318
# and are intended to be withdrawn in a future Autoconf release.
3319
# They can cause serious problems if a builder's source tree is in a directory
3320
# whose full name contains unusual characters.
3321
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3322
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3323
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3324

    
3325

    
3326
# Find a good install program.  We prefer a C program (faster),
3327
# so one script is as good as another.  But avoid the broken or
3328
# incompatible versions:
3329
# SysV /etc/install, /usr/sbin/install
3330
# SunOS /usr/etc/install
3331
# IRIX /sbin/install
3332
# AIX /bin/install
3333
# AmigaOS /C/install, which installs bootblocks on floppy discs
3334
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3335
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3336
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3337
# OS/2's system install, which has a completely different semantic
3338
# ./install, which can be erroneously created by make from ./install.sh.
3339
# Reject install programs that cannot install multiple files.
3340
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3341
$as_echo_n "checking for a BSD-compatible install... " >&6; }
3342
if test -z "$INSTALL"; then
3343
if ${ac_cv_path_install+:} false; then :
3344
  $as_echo_n "(cached) " >&6
3345
else
3346
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347
for as_dir in $PATH
3348
do
3349
  IFS=$as_save_IFS
3350
  test -z "$as_dir" && as_dir=.
3351
    # Account for people who put trailing slashes in PATH elements.
3352
case $as_dir/ in #((
3353
  ./ | .// | /[cC]/* | \
3354
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3355
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3356
  /usr/ucb/* ) ;;
3357
  *)
3358
    # OSF1 and SCO ODT 3.0 have their own names for install.
3359
    # Don't use installbsd from OSF since it installs stuff as root
3360
    # by default.
3361
    for ac_prog in ginstall scoinst install; do
3362
      for ac_exec_ext in '' $ac_executable_extensions; do
3363
	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3364
	  if test $ac_prog = install &&
3365
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3366
	    # AIX install.  It has an incompatible calling convention.
3367
	    :
3368
	  elif test $ac_prog = install &&
3369
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3370
	    # program-specific install script used by HP pwplus--don't use.
3371
	    :
3372
	  else
3373
	    rm -rf conftest.one conftest.two conftest.dir
3374
	    echo one > conftest.one
3375
	    echo two > conftest.two
3376
	    mkdir conftest.dir
3377
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3378
	      test -s conftest.one && test -s conftest.two &&
3379
	      test -s conftest.dir/conftest.one &&
3380
	      test -s conftest.dir/conftest.two
3381
	    then
3382
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3383
	      break 3
3384
	    fi
3385
	  fi
3386
	fi
3387
      done
3388
    done
3389
    ;;
3390
esac
3391

    
3392
  done
3393
IFS=$as_save_IFS
3394

    
3395
rm -rf conftest.one conftest.two conftest.dir
3396

    
3397
fi
3398
  if test "${ac_cv_path_install+set}" = set; then
3399
    INSTALL=$ac_cv_path_install
3400
  else
3401
    # As a last resort, use the slow shell script.  Don't cache a
3402
    # value for INSTALL within a source directory, because that will
3403
    # break other packages using the cache if that directory is
3404
    # removed, or if the value is a relative name.
3405
    INSTALL=$ac_install_sh
3406
  fi
3407
fi
3408
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3409
$as_echo "$INSTALL" >&6; }
3410

    
3411
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3412
# It thinks the first close brace ends the variable substitution.
3413
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3414

    
3415
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3416

    
3417
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3418

    
3419
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3420
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3421
if test -z "$MKDIR_P"; then
3422
  if ${ac_cv_path_mkdir+:} false; then :
3423
  $as_echo_n "(cached) " >&6
3424
else
3425
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3427
do
3428
  IFS=$as_save_IFS
3429
  test -z "$as_dir" && as_dir=.
3430
    for ac_prog in mkdir gmkdir; do
3431
	 for ac_exec_ext in '' $ac_executable_extensions; do
3432
	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3433
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3434
	     'mkdir (GNU coreutils) '* | \
3435
	     'mkdir (coreutils) '* | \
3436
	     'mkdir (fileutils) '4.1*)
3437
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3438
	       break 3;;
3439
	   esac
3440
	 done
3441
       done
3442
  done
3443
IFS=$as_save_IFS
3444

    
3445
fi
3446

    
3447
  test -d ./--version && rmdir ./--version
3448
  if test "${ac_cv_path_mkdir+set}" = set; then
3449
    MKDIR_P="$ac_cv_path_mkdir -p"
3450
  else
3451
    # As a last resort, use the slow shell script.  Don't cache a
3452
    # value for MKDIR_P within a source directory, because that will
3453
    # break other packages using the cache if that directory is
3454
    # removed, or if the value is a relative name.
3455
    MKDIR_P="$ac_install_sh -d"
3456
  fi
3457
fi
3458
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3459
$as_echo "$MKDIR_P" >&6; }
3460

    
3461

    
3462
# We are daringly making use of C++11 now
3463

    
3464
    ax_cxx_compile_cxx11_required=true
3465
  ac_ext=cpp
3466
ac_cpp='$CXXCPP $CPPFLAGS'
3467
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3468
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3469
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3470
  ac_success=no
3471
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
3472
$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
3473
if ${ax_cv_cxx_compile_cxx11+:} false; then :
3474
  $as_echo_n "(cached) " >&6
3475
else
3476
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477
/* end confdefs.h.  */
3478

    
3479
  template <typename T>
3480
    struct check
3481
    {
3482
      static_assert(sizeof(int) <= sizeof(T), "not big enough");
3483
    };
3484

    
3485
    struct Base {
3486
    virtual void f() {}
3487
    };
3488
    struct Child : public Base {
3489
    virtual void f() override {}
3490
    };
3491

    
3492
    typedef check<check<bool>> right_angle_brackets;
3493

    
3494
    int a;
3495
    decltype(a) b;
3496

    
3497
    typedef check<int> check_type;
3498
    check_type c;
3499
    check_type&& cr = static_cast<check_type&&>(c);
3500

    
3501
    auto d = a;
3502
    auto l = [](){};
3503

    
3504
_ACEOF
3505
if ac_fn_cxx_try_compile "$LINENO"; then :
3506
  ax_cv_cxx_compile_cxx11=yes
3507
else
3508
  ax_cv_cxx_compile_cxx11=no
3509
fi
3510
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3511
fi
3512
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
3513
$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
3514
  if test x$ax_cv_cxx_compile_cxx11 = xyes; then
3515
    ac_success=yes
3516
  fi
3517

    
3518

    
3519

    
3520
    if test x$ac_success = xno; then
3521
    for switch in -std=c++11 -std=c++0x; do
3522
      cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
3523
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
3524
$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
3525
if eval \${$cachevar+:} false; then :
3526
  $as_echo_n "(cached) " >&6
3527
else
3528
  ac_save_CXXFLAGS="$CXXFLAGS"
3529
         CXXFLAGS="$CXXFLAGS $switch"
3530
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531
/* end confdefs.h.  */
3532

    
3533
  template <typename T>
3534
    struct check
3535
    {
3536
      static_assert(sizeof(int) <= sizeof(T), "not big enough");
3537
    };
3538

    
3539
    struct Base {
3540
    virtual void f() {}
3541
    };
3542
    struct Child : public Base {
3543
    virtual void f() override {}
3544
    };
3545

    
3546
    typedef check<check<bool>> right_angle_brackets;
3547

    
3548
    int a;
3549
    decltype(a) b;
3550

    
3551
    typedef check<int> check_type;
3552
    check_type c;
3553
    check_type&& cr = static_cast<check_type&&>(c);
3554

    
3555
    auto d = a;
3556
    auto l = [](){};
3557

    
3558
_ACEOF
3559
if ac_fn_cxx_try_compile "$LINENO"; then :
3560
  eval $cachevar=yes
3561
else
3562
  eval $cachevar=no
3563
fi
3564
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565
         CXXFLAGS="$ac_save_CXXFLAGS"
3566
fi
3567
eval ac_res=\$$cachevar
3568
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3569
$as_echo "$ac_res" >&6; }
3570
      if eval test x\$$cachevar = xyes; then
3571
        CXXFLAGS="$CXXFLAGS $switch"
3572
        ac_success=yes
3573
        break
3574
      fi
3575
    done
3576
  fi
3577
  ac_ext=cpp
3578
ac_cpp='$CXXCPP $CPPFLAGS'
3579
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3580
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3581
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3582

    
3583
  if test x$ax_cxx_compile_cxx11_required = xtrue; then
3584
    if test x$ac_success = xno; then
3585
      as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
3586
    fi
3587
  else
3588
    if test x$ac_success = xno; then
3589
      HAVE_CXX11=0
3590
      { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
3591
$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
3592
    else
3593
      HAVE_CXX11=1
3594

    
3595
$as_echo "#define HAVE_CXX11 1" >>confdefs.h
3596

    
3597
    fi
3598

    
3599

    
3600
  fi
3601

    
3602

    
3603
ac_ext=cpp
3604
ac_cpp='$CXXCPP $CPPFLAGS'
3605
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3606
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3607
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3608
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
3609
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
3610
if test -z "$CXXCPP"; then
3611
  if ${ac_cv_prog_CXXCPP+:} false; then :
3612
  $as_echo_n "(cached) " >&6
3613
else
3614
      # Double quotes because CXXCPP needs to be expanded
3615
    for CXXCPP in "$CXX -E" "/lib/cpp"
3616
    do
3617
      ac_preproc_ok=false
3618
for ac_cxx_preproc_warn_flag in '' yes
3619
do
3620
  # Use a header file that comes with gcc, so configuring glibc
3621
  # with a fresh cross-compiler works.
3622
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3623
  # <limits.h> exists even on freestanding compilers.
3624
  # On the NeXT, cc -E runs the code through the compiler's parser,
3625
  # not just through cpp. "Syntax error" is here to catch this case.
3626
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627
/* end confdefs.h.  */
3628
#ifdef __STDC__
3629
# include <limits.h>
3630
#else
3631
# include <assert.h>
3632
#endif
3633
		     Syntax error
3634
_ACEOF
3635
if ac_fn_cxx_try_cpp "$LINENO"; then :
3636

    
3637
else
3638
  # Broken: fails on valid input.
3639
continue
3640
fi
3641
rm -f conftest.err conftest.i conftest.$ac_ext
3642

    
3643
  # OK, works on sane cases.  Now check whether nonexistent headers
3644
  # can be detected and how.
3645
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646
/* end confdefs.h.  */
3647
#include <ac_nonexistent.h>
3648
_ACEOF
3649
if ac_fn_cxx_try_cpp "$LINENO"; then :
3650
  # Broken: success on invalid input.
3651
continue
3652
else
3653
  # Passes both tests.
3654
ac_preproc_ok=:
3655
break
3656
fi
3657
rm -f conftest.err conftest.i conftest.$ac_ext
3658

    
3659
done
3660
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3661
rm -f conftest.i conftest.err conftest.$ac_ext
3662
if $ac_preproc_ok; then :
3663
  break
3664
fi
3665

    
3666
    done
3667
    ac_cv_prog_CXXCPP=$CXXCPP
3668

    
3669
fi
3670
  CXXCPP=$ac_cv_prog_CXXCPP
3671
else
3672
  ac_cv_prog_CXXCPP=$CXXCPP
3673
fi
3674
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
3675
$as_echo "$CXXCPP" >&6; }
3676
ac_preproc_ok=false
3677
for ac_cxx_preproc_warn_flag in '' yes
3678
do
3679
  # Use a header file that comes with gcc, so configuring glibc
3680
  # with a fresh cross-compiler works.
3681
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3682
  # <limits.h> exists even on freestanding compilers.
3683
  # On the NeXT, cc -E runs the code through the compiler's parser,
3684
  # not just through cpp. "Syntax error" is here to catch this case.
3685
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686
/* end confdefs.h.  */
3687
#ifdef __STDC__
3688
# include <limits.h>
3689
#else
3690
# include <assert.h>
3691
#endif
3692
		     Syntax error
3693
_ACEOF
3694
if ac_fn_cxx_try_cpp "$LINENO"; then :
3695

    
3696
else
3697
  # Broken: fails on valid input.
3698
continue
3699
fi
3700
rm -f conftest.err conftest.i conftest.$ac_ext
3701

    
3702
  # OK, works on sane cases.  Now check whether nonexistent headers
3703
  # can be detected and how.
3704
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705
/* end confdefs.h.  */
3706
#include <ac_nonexistent.h>
3707
_ACEOF
3708
if ac_fn_cxx_try_cpp "$LINENO"; then :
3709
  # Broken: success on invalid input.
3710
continue
3711
else
3712
  # Passes both tests.
3713
ac_preproc_ok=:
3714
break
3715
fi
3716
rm -f conftest.err conftest.i conftest.$ac_ext
3717

    
3718
done
3719
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3720
rm -f conftest.i conftest.err conftest.$ac_ext
3721
if $ac_preproc_ok; then :
3722

    
3723
else
3724
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3725
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3726
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
3727
See \`config.log' for more details" "$LINENO" 5; }
3728
fi
3729

    
3730
ac_ext=cpp
3731
ac_cpp='$CXXCPP $CPPFLAGS'
3732
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3733
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3734
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3735

    
3736

    
3737
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3738
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3739
if ${ac_cv_path_GREP+:} false; then :
3740
  $as_echo_n "(cached) " >&6
3741
else
3742
  if test -z "$GREP"; then
3743
  ac_path_GREP_found=false
3744
  # Loop through the user's path and test for each of PROGNAME-LIST
3745
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3747
do
3748
  IFS=$as_save_IFS
3749
  test -z "$as_dir" && as_dir=.
3750
    for ac_prog in grep ggrep; do
3751
    for ac_exec_ext in '' $ac_executable_extensions; do
3752
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3753
      as_fn_executable_p "$ac_path_GREP" || continue
3754
# Check for GNU ac_path_GREP and select it if it is found.
3755
  # Check for GNU $ac_path_GREP
3756
case `"$ac_path_GREP" --version 2>&1` in
3757
*GNU*)
3758
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3759
*)
3760
  ac_count=0
3761
  $as_echo_n 0123456789 >"conftest.in"
3762
  while :
3763
  do
3764
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3765
    mv "conftest.tmp" "conftest.in"
3766
    cp "conftest.in" "conftest.nl"
3767
    $as_echo 'GREP' >> "conftest.nl"
3768
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3769
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3770
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3771
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3772
      # Best one so far, save it but keep looking for a better one
3773
      ac_cv_path_GREP="$ac_path_GREP"
3774
      ac_path_GREP_max=$ac_count
3775
    fi
3776
    # 10*(2^10) chars as input seems more than enough
3777
    test $ac_count -gt 10 && break
3778
  done
3779
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3780
esac
3781

    
3782
      $ac_path_GREP_found && break 3
3783
    done
3784
  done
3785
  done
3786
IFS=$as_save_IFS
3787
  if test -z "$ac_cv_path_GREP"; then
3788
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3789
  fi
3790
else
3791
  ac_cv_path_GREP=$GREP
3792
fi
3793

    
3794
fi
3795
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3796
$as_echo "$ac_cv_path_GREP" >&6; }
3797
 GREP="$ac_cv_path_GREP"
3798

    
3799

    
3800
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3801
$as_echo_n "checking for egrep... " >&6; }
3802
if ${ac_cv_path_EGREP+:} false; then :
3803
  $as_echo_n "(cached) " >&6
3804
else
3805
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3806
   then ac_cv_path_EGREP="$GREP -E"
3807
   else
3808
     if test -z "$EGREP"; then
3809
  ac_path_EGREP_found=false
3810
  # Loop through the user's path and test for each of PROGNAME-LIST
3811
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3813
do
3814
  IFS=$as_save_IFS
3815
  test -z "$as_dir" && as_dir=.
3816
    for ac_prog in egrep; do
3817
    for ac_exec_ext in '' $ac_executable_extensions; do
3818
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3819
      as_fn_executable_p "$ac_path_EGREP" || continue
3820
# Check for GNU ac_path_EGREP and select it if it is found.
3821
  # Check for GNU $ac_path_EGREP
3822
case `"$ac_path_EGREP" --version 2>&1` in
3823
*GNU*)
3824
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3825
*)
3826
  ac_count=0
3827
  $as_echo_n 0123456789 >"conftest.in"
3828
  while :
3829
  do
3830
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3831
    mv "conftest.tmp" "conftest.in"
3832
    cp "conftest.in" "conftest.nl"
3833
    $as_echo 'EGREP' >> "conftest.nl"
3834
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3835
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3836
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3837
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3838
      # Best one so far, save it but keep looking for a better one
3839
      ac_cv_path_EGREP="$ac_path_EGREP"
3840
      ac_path_EGREP_max=$ac_count
3841
    fi
3842
    # 10*(2^10) chars as input seems more than enough
3843
    test $ac_count -gt 10 && break
3844
  done
3845
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3846
esac
3847

    
3848
      $ac_path_EGREP_found && break 3
3849
    done
3850
  done
3851
  done
3852
IFS=$as_save_IFS
3853
  if test -z "$ac_cv_path_EGREP"; then
3854
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3855
  fi
3856
else
3857
  ac_cv_path_EGREP=$EGREP
3858
fi
3859

    
3860
   fi
3861
fi
3862
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3863
$as_echo "$ac_cv_path_EGREP" >&6; }
3864
 EGREP="$ac_cv_path_EGREP"
3865

    
3866

    
3867
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3868
$as_echo_n "checking for ANSI C header files... " >&6; }
3869
if ${ac_cv_header_stdc+:} false; then :
3870
  $as_echo_n "(cached) " >&6
3871
else
3872
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873
/* end confdefs.h.  */
3874
#include <stdlib.h>
3875
#include <stdarg.h>
3876
#include <string.h>
3877
#include <float.h>
3878

    
3879
int
3880
main ()
3881
{
3882

    
3883
  ;
3884
  return 0;
3885
}
3886
_ACEOF
3887
if ac_fn_cxx_try_compile "$LINENO"; then :
3888
  ac_cv_header_stdc=yes
3889
else
3890
  ac_cv_header_stdc=no
3891
fi
3892
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3893

    
3894
if test $ac_cv_header_stdc = yes; then
3895
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3896
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897
/* end confdefs.h.  */
3898
#include <string.h>
3899

    
3900
_ACEOF
3901
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3902
  $EGREP "memchr" >/dev/null 2>&1; then :
3903

    
3904
else
3905
  ac_cv_header_stdc=no
3906
fi
3907
rm -f conftest*
3908

    
3909
fi
3910

    
3911
if test $ac_cv_header_stdc = yes; then
3912
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3913
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914
/* end confdefs.h.  */
3915
#include <stdlib.h>
3916

    
3917
_ACEOF
3918
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3919
  $EGREP "free" >/dev/null 2>&1; then :
3920

    
3921
else
3922
  ac_cv_header_stdc=no
3923
fi
3924
rm -f conftest*
3925

    
3926
fi
3927

    
3928
if test $ac_cv_header_stdc = yes; then
3929
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3930
  if test "$cross_compiling" = yes; then :
3931
  :
3932
else
3933
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934
/* end confdefs.h.  */
3935
#include <ctype.h>
3936
#include <stdlib.h>
3937
#if ((' ' & 0x0FF) == 0x020)
3938
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3939
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3940
#else
3941
# define ISLOWER(c) \
3942
		   (('a' <= (c) && (c) <= 'i') \
3943
		     || ('j' <= (c) && (c) <= 'r') \
3944
		     || ('s' <= (c) && (c) <= 'z'))
3945
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3946
#endif
3947

    
3948
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3949
int
3950
main ()
3951
{
3952
  int i;
3953
  for (i = 0; i < 256; i++)
3954
    if (XOR (islower (i), ISLOWER (i))
3955
	|| toupper (i) != TOUPPER (i))
3956
      return 2;
3957
  return 0;
3958
}
3959
_ACEOF
3960
if ac_fn_cxx_try_run "$LINENO"; then :
3961

    
3962
else
3963
  ac_cv_header_stdc=no
3964
fi
3965
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3966
  conftest.$ac_objext conftest.beam conftest.$ac_ext
3967
fi
3968

    
3969
fi
3970
fi
3971
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3972
$as_echo "$ac_cv_header_stdc" >&6; }
3973
if test $ac_cv_header_stdc = yes; then
3974

    
3975
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3976

    
3977
fi
3978

    
3979

    
3980
# These are the flags Autoconf guesses for us; we use them later if
3981
# the user has set none and we are not using GCC (so lack our own
3982
# preferred flags)
3983
AUTOCONF_CXXFLAGS="$CXXFLAGS"
3984

    
3985

    
3986

    
3987

    
3988

    
3989

    
3990

    
3991

    
3992
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3993
	if test -n "$ac_tool_prefix"; then
3994
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3995
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3996
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3997
$as_echo_n "checking for $ac_word... " >&6; }
3998
if ${ac_cv_path_PKG_CONFIG+:} false; then :
3999
  $as_echo_n "(cached) " >&6
4000
else
4001
  case $PKG_CONFIG in
4002
  [\\/]* | ?:[\\/]*)
4003
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4004
  ;;
4005
  *)
4006
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007
for as_dir in $PATH
4008
do
4009
  IFS=$as_save_IFS
4010
  test -z "$as_dir" && as_dir=.
4011
    for ac_exec_ext in '' $ac_executable_extensions; do
4012
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4013
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4014
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4015
    break 2
4016
  fi
4017
done
4018
  done
4019
IFS=$as_save_IFS
4020

    
4021
  ;;
4022
esac
4023
fi
4024
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4025
if test -n "$PKG_CONFIG"; then
4026
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4027
$as_echo "$PKG_CONFIG" >&6; }
4028
else
4029
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030
$as_echo "no" >&6; }
4031
fi
4032

    
4033

    
4034
fi
4035
if test -z "$ac_cv_path_PKG_CONFIG"; then
4036
  ac_pt_PKG_CONFIG=$PKG_CONFIG
4037
  # Extract the first word of "pkg-config", so it can be a program name with args.
4038
set dummy pkg-config; ac_word=$2
4039
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4040
$as_echo_n "checking for $ac_word... " >&6; }
4041
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4042
  $as_echo_n "(cached) " >&6
4043
else
4044
  case $ac_pt_PKG_CONFIG in
4045
  [\\/]* | ?:[\\/]*)
4046
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4047
  ;;
4048
  *)
4049
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050
for as_dir in $PATH
4051
do
4052
  IFS=$as_save_IFS
4053
  test -z "$as_dir" && as_dir=.
4054
    for ac_exec_ext in '' $ac_executable_extensions; do
4055
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4056
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4057
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4058
    break 2
4059
  fi
4060
done
4061
  done
4062
IFS=$as_save_IFS
4063

    
4064
  ;;
4065
esac
4066
fi
4067
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4068
if test -n "$ac_pt_PKG_CONFIG"; then
4069
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4070
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4071
else
4072
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4073
$as_echo "no" >&6; }
4074
fi
4075

    
4076
  if test "x$ac_pt_PKG_CONFIG" = x; then
4077
    PKG_CONFIG=""
4078
  else
4079
    case $cross_compiling:$ac_tool_warned in
4080
yes:)
4081
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4082
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4083
ac_tool_warned=yes ;;
4084
esac
4085
    PKG_CONFIG=$ac_pt_PKG_CONFIG
4086
  fi
4087
else
4088
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4089
fi
4090

    
4091
fi
4092
if test -n "$PKG_CONFIG"; then
4093
	_pkg_min_version=0.9.0
4094
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4095
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4096
	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4097
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4098
$as_echo "yes" >&6; }
4099
	else
4100
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4101
$as_echo "no" >&6; }
4102
		PKG_CONFIG=""
4103
	fi
4104
fi
4105

    
4106

    
4107

    
4108

    
4109
if test x$QMAKE = x ; then
4110
   	# Extract the first word of "qmake-qt5", so it can be a program name with args.
4111
set dummy qmake-qt5; ac_word=$2
4112
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4113
$as_echo_n "checking for $ac_word... " >&6; }
4114
if ${ac_cv_prog_QMAKE+:} false; then :
4115
  $as_echo_n "(cached) " >&6
4116
else
4117
  if test -n "$QMAKE"; then
4118
  ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
4119
else
4120
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121
for as_dir in $QTDIR/bin/
4122
do
4123
  IFS=$as_save_IFS
4124
  test -z "$as_dir" && as_dir=.
4125
    for ac_exec_ext in '' $ac_executable_extensions; do
4126
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4127
    ac_cv_prog_QMAKE="$QTDIR/bin/qmake-qt5"
4128
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4129
    break 2
4130
  fi
4131
done
4132
  done
4133
IFS=$as_save_IFS
4134

    
4135
fi
4136
fi
4137
QMAKE=$ac_cv_prog_QMAKE
4138
if test -n "$QMAKE"; then
4139
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
4140
$as_echo "$QMAKE" >&6; }
4141
else
4142
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143
$as_echo "no" >&6; }
4144
fi
4145

    
4146

    
4147
fi
4148
if test x$QMAKE = x ; then
4149
   	# Extract the first word of "qt5-qmake", so it can be a program name with args.
4150
set dummy qt5-qmake; ac_word=$2
4151
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4152
$as_echo_n "checking for $ac_word... " >&6; }
4153
if ${ac_cv_prog_QMAKE+:} false; then :
4154
  $as_echo_n "(cached) " >&6
4155
else
4156
  if test -n "$QMAKE"; then
4157
  ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
4158
else
4159
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160
for as_dir in $QTDIR/bin/
4161
do
4162
  IFS=$as_save_IFS
4163
  test -z "$as_dir" && as_dir=.
4164
    for ac_exec_ext in '' $ac_executable_extensions; do
4165
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4166
    ac_cv_prog_QMAKE="$QTDIR/bin/qt5-qmake"
4167
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4168
    break 2
4169
  fi
4170
done
4171
  done
4172
IFS=$as_save_IFS
4173

    
4174
fi
4175
fi
4176
QMAKE=$ac_cv_prog_QMAKE
4177
if test -n "$QMAKE"; then
4178
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
4179
$as_echo "$QMAKE" >&6; }
4180
else
4181
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4182
$as_echo "no" >&6; }
4183
fi
4184

    
4185

    
4186
fi
4187
if test x$QMAKE = x ; then
4188
   	# Extract the first word of "qmake", so it can be a program name with args.
4189
set dummy qmake; ac_word=$2
4190
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4191
$as_echo_n "checking for $ac_word... " >&6; }
4192
if ${ac_cv_prog_QMAKE+:} false; then :
4193
  $as_echo_n "(cached) " >&6
4194
else
4195
  if test -n "$QMAKE"; then
4196
  ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
4197
else
4198
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199
for as_dir in $QTDIR/bin/
4200
do
4201
  IFS=$as_save_IFS
4202
  test -z "$as_dir" && as_dir=.
4203
    for ac_exec_ext in '' $ac_executable_extensions; do
4204
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4205
    ac_cv_prog_QMAKE="$QTDIR/bin/qmake"
4206
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4207
    break 2
4208
  fi
4209
done
4210
  done
4211
IFS=$as_save_IFS
4212

    
4213
fi
4214
fi
4215
QMAKE=$ac_cv_prog_QMAKE
4216
if test -n "$QMAKE"; then
4217
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
4218
$as_echo "$QMAKE" >&6; }
4219
else
4220
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4221
$as_echo "no" >&6; }
4222
fi
4223

    
4224

    
4225
fi
4226
if test x$QMAKE = x ; then
4227
	# Extract the first word of "qmake.exe", so it can be a program name with args.
4228
set dummy qmake.exe; ac_word=$2
4229
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230
$as_echo_n "checking for $ac_word... " >&6; }
4231
if ${ac_cv_prog_QMAKE+:} false; then :
4232
  $as_echo_n "(cached) " >&6
4233
else
4234
  if test -n "$QMAKE"; then
4235
  ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
4236
else
4237
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238
for as_dir in $QTDIR/bin/
4239
do
4240
  IFS=$as_save_IFS
4241
  test -z "$as_dir" && as_dir=.
4242
    for ac_exec_ext in '' $ac_executable_extensions; do
4243
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4244
    ac_cv_prog_QMAKE="$QTDIR/bin/qmake.exe"
4245
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4246
    break 2
4247
  fi
4248
done
4249
  done
4250
IFS=$as_save_IFS
4251

    
4252
fi
4253
fi
4254
QMAKE=$ac_cv_prog_QMAKE
4255
if test -n "$QMAKE"; then
4256
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
4257
$as_echo "$QMAKE" >&6; }
4258
else
4259
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4260
$as_echo "no" >&6; }
4261
fi
4262

    
4263

    
4264
fi
4265
if test x$QMAKE = x ; then
4266
   	# Extract the first word of "qmake-qt5", so it can be a program name with args.
4267
set dummy qmake-qt5; ac_word=$2
4268
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4269
$as_echo_n "checking for $ac_word... " >&6; }
4270
if ${ac_cv_prog_QMAKE+:} false; then :
4271
  $as_echo_n "(cached) " >&6
4272
else
4273
  if test -n "$QMAKE"; then
4274
  ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
4275
else
4276
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277
for as_dir in $PATH
4278
do
4279
  IFS=$as_save_IFS
4280
  test -z "$as_dir" && as_dir=.
4281
    for ac_exec_ext in '' $ac_executable_extensions; do
4282
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4283
    ac_cv_prog_QMAKE="qmake-qt5"
4284
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4285
    break 2
4286
  fi
4287
done
4288
  done
4289
IFS=$as_save_IFS
4290

    
4291
fi
4292
fi
4293
QMAKE=$ac_cv_prog_QMAKE
4294
if test -n "$QMAKE"; then
4295
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
4296
$as_echo "$QMAKE" >&6; }
4297
else
4298
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4299
$as_echo "no" >&6; }
4300
fi
4301

    
4302

    
4303
fi
4304
if test x$QMAKE = x ; then
4305
   	# Extract the first word of "qt5-qmake", so it can be a program name with args.
4306
set dummy qt5-qmake; ac_word=$2
4307
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4308
$as_echo_n "checking for $ac_word... " >&6; }
4309
if ${ac_cv_prog_QMAKE+:} false; then :
4310
  $as_echo_n "(cached) " >&6
4311
else
4312
  if test -n "$QMAKE"; then
4313
  ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
4314
else
4315
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316
for as_dir in $PATH
4317
do
4318
  IFS=$as_save_IFS
4319
  test -z "$as_dir" && as_dir=.
4320
    for ac_exec_ext in '' $ac_executable_extensions; do
4321
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4322
    ac_cv_prog_QMAKE="qt5-qmake"
4323
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4324
    break 2
4325
  fi
4326
done
4327
  done
4328
IFS=$as_save_IFS
4329

    
4330
fi
4331
fi
4332
QMAKE=$ac_cv_prog_QMAKE
4333
if test -n "$QMAKE"; then
4334
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
4335
$as_echo "$QMAKE" >&6; }
4336
else
4337
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338
$as_echo "no" >&6; }
4339
fi
4340

    
4341

    
4342
fi
4343
if test x$QMAKE = x ; then
4344
   	# Extract the first word of "qmake", so it can be a program name with args.
4345
set dummy qmake; ac_word=$2
4346
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4347
$as_echo_n "checking for $ac_word... " >&6; }
4348
if ${ac_cv_prog_QMAKE+:} false; then :
4349
  $as_echo_n "(cached) " >&6
4350
else
4351
  if test -n "$QMAKE"; then
4352
  ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
4353
else
4354
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355
for as_dir in $PATH
4356
do
4357
  IFS=$as_save_IFS
4358
  test -z "$as_dir" && as_dir=.
4359
    for ac_exec_ext in '' $ac_executable_extensions; do
4360
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4361
    ac_cv_prog_QMAKE="qmake"
4362
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4363
    break 2
4364
  fi
4365
done
4366
  done
4367
IFS=$as_save_IFS
4368

    
4369
fi
4370
fi
4371
QMAKE=$ac_cv_prog_QMAKE
4372
if test -n "$QMAKE"; then
4373
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
4374
$as_echo "$QMAKE" >&6; }
4375
else
4376
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4377
$as_echo "no" >&6; }
4378
fi
4379

    
4380

    
4381
fi
4382
if test x$QMAKE = x ; then
4383
   	as_fn_error $? "
4384
Failed to find the required qmake-qt5 or qmake program.  Please
4385
ensure you have the necessary Qt5 development files installed, and
4386
if necessary set QTDIR to the location of your Qt5 installation.
4387
" "$LINENO" 5
4388
fi
4389

    
4390
# Suitable versions of qmake should print out something like:
4391
#
4392
#   QMake version 2.01a
4393
#   Using Qt version 4.6.3 in /usr/lib
4394
#
4395
# This may be translated, so we check only for the numbers (2.x and 4.x
4396
# in that order).
4397
#
4398
QMAKE_VERSION_OUTPUT=`$QMAKE -v`
4399
case "$QMAKE_VERSION_OUTPUT" in
4400
     *5.*) ;;
4401
     *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4402
 *** The version of qmake found in \"$QMAKE\" looks like it might be
4403
     from the wrong version of Qt (Qt5 is required).  Please check
4404
     that this is the correct version of qmake for Qt5 builds.
4405
" >&5
4406
$as_echo "$as_me: WARNING:
4407
 *** The version of qmake found in \"$QMAKE\" looks like it might be
4408
     from the wrong version of Qt (Qt5 is required).  Please check
4409
     that this is the correct version of qmake for Qt5 builds.
4410
" >&2;}
4411
esac
4412

    
4413
case "`uname`" in
4414
     *Darwin*) QMAKE="$QMAKE -spec macx-g++";;
4415
esac
4416

    
4417

    
4418

    
4419
SV_DEFINES_DEBUG="-DDEBUG -DBUILD_DEBUG -DWANT_TIMING"
4420
SV_DEFINES_RELEASE="-DNDEBUG -DBUILD_RELEASE -DNO_TIMING -DNO_HIT_COUNTS"
4421

    
4422
# Now we have: USER_CXXFLAGS contains any flags the user set
4423
# explicitly; AUTOCONF_CXXFLAGS contains flags that Autoconf thought
4424
# we should use.  If we have GCC, we override the latter but then
4425
# allow ourselves to be overridden (later) by the former
4426

    
4427
CXXFLAGS_DEBUG="$AUTOCONF_CXXFLAGS"
4428
OPTFLAGS_DEBUG="-O2"
4429
LDFLAGS_DEBUG=""
4430
CXXFLAGS_RELEASE="$AUTOCONF_CXXFLAGS"
4431
OPTFLAGS_RELEASE="-O2"
4432
LDFLAGS_RELEASE=""
4433
CXXSTANDARD=c++14
4434

    
4435
if test "x$GCC" = "xyes"; then
4436
   	CXXFLAGS_ANY="-fpic -Wall -Wextra -Woverloaded-virtual -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -Wconversion -pipe"
4437
        CXXFLAGS_DEBUG="$CXXFLAGS_ANY -g -Werror"
4438
        OPTFLAGS_DEBUG="-O2"
4439
   	CXXFLAGS_RELEASE="$CXXFLAGS_ANY -g0"
4440
        OPTFLAGS_RELEASE="-O3 -ffast-math"
4441
        LIBS_DEBUG="$LIBS"
4442
        as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags__--std=$CXXSTANDARD" | $as_tr_sh`
4443
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts --std=$CXXSTANDARD" >&5
4444
$as_echo_n "checking whether C++ compiler accepts --std=$CXXSTANDARD... " >&6; }
4445
if eval \${$as_CACHEVAR+:} false; then :
4446
  $as_echo_n "(cached) " >&6
4447
else
4448

    
4449
  ax_check_save_flags=$CXXFLAGS
4450
  CXXFLAGS="$CXXFLAGS  --std=$CXXSTANDARD"
4451
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452
/* end confdefs.h.  */
4453

    
4454
int
4455
main ()
4456
{
4457

    
4458
  ;
4459
  return 0;
4460
}
4461
_ACEOF
4462
if ac_fn_cxx_try_compile "$LINENO"; then :
4463
  eval "$as_CACHEVAR=yes"
4464
else
4465
  eval "$as_CACHEVAR=no"
4466
fi
4467
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4468
  CXXFLAGS=$ax_check_save_flags
4469
fi
4470
eval ac_res=\$$as_CACHEVAR
4471
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4472
$as_echo "$ac_res" >&6; }
4473
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
4474
  :
4475
else
4476
  { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not appear to support $CXXSTANDARD, falling back to c++11" >&5
4477
$as_echo "$as_me: Compiler does not appear to support $CXXSTANDARD, falling back to c++11" >&6;}
4478
        CXXSTANDARD=c++11
4479
fi
4480

    
4481
fi
4482

    
4483
CXXFLAGS_BUILD="$CXXFLAGS_RELEASE $OPTFLAGS_RELEASE"
4484
LDFLAGS_BUILD="$LDFLAGS_RELEASE $OPTFLAGS_RELEASE"
4485
SV_DEFINES_BUILD="$SV_DEFINES_RELEASE"
4486

    
4487
QMAKE_CONFIG="release"
4488

    
4489
# Check whether --enable-debug was given.
4490
if test "${enable_debug+set}" = set; then :
4491
  enableval=$enable_debug; { $as_echo "$as_me:${as_lineno-$LINENO}: enabling debug build" >&5
4492
$as_echo "$as_me: enabling debug build" >&6;}
4493
QMAKE_CONFIG="debug"
4494
CXXFLAGS_BUILD="$CXXFLAGS_DEBUG $OPTFLAGS_DEBUG"
4495
LDFLAGS_BUILD="$LDFLAGS_DEBUG"
4496
SV_DEFINES_BUILD="$SV_DEFINES_DEBUG"
4497
LIBS="$LIBS_DEBUG"
4498
fi
4499

    
4500

    
4501
if test x"$USER_CXXFLAGS" != x; then
4502
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: The CXXFLAGS environment variable is set to \"$USER_CXXFLAGS\"." >&5
4503
$as_echo "$as_me: The CXXFLAGS environment variable is set to \"$USER_CXXFLAGS\"." >&6;}
4504
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Overriding default compiler flags with the above user setting." >&5
4505
$as_echo "$as_me: Overriding default compiler flags with the above user setting." >&6;}
4506
	CXXFLAGS_BUILD="$USER_CXXFLAGS"
4507
        LDFLAGS_BUILD=""
4508
fi
4509

    
4510
CXXFLAGS="$CXXFLAGS_BUILD $SV_DEFINES_BUILD"
4511
LDFLAGS="$LDFLAGS_BUILD"
4512

    
4513
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4514
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4515
		  inttypes.h stdint.h unistd.h
4516
do :
4517
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4518
ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4519
"
4520
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4521
  cat >>confdefs.h <<_ACEOF
4522
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4523
_ACEOF
4524

    
4525
fi
4526

    
4527
done
4528

    
4529

    
4530

    
4531
SV_MODULE_MODULE=bz2
4532
SV_MODULE_VERSION_TEST=""
4533
SV_MODULE_HEADER=bzlib.h
4534
SV_MODULE_LIB=bz2
4535
SV_MODULE_FUNC=BZ2_bzReadOpen
4536
SV_MODULE_HAVE=HAVE_$(echo bz2 | tr 'a-z' 'A-Z')
4537
SV_MODULE_FAILED=1
4538
if test -n "$bz2_LIBS" ; then
4539
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
4540
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
4541
   CXXFLAGS="$CXXFLAGS $bz2_CFLAGS"
4542
   LIBS="$LIBS $bz2_LIBS"
4543
   SV_MODULE_FAILED=""
4544
fi
4545
if test -z "$SV_MODULE_VERSION_TEST" ; then
4546
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
4547
fi
4548
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
4549

    
4550
pkg_failed=no
4551
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bz2" >&5
4552
$as_echo_n "checking for bz2... " >&6; }
4553

    
4554
if test -n "$bz2_CFLAGS"; then
4555
    pkg_cv_bz2_CFLAGS="$bz2_CFLAGS"
4556
 elif test -n "$PKG_CONFIG"; then
4557
    if test -n "$PKG_CONFIG" && \
4558
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
4559
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
4560
  ac_status=$?
4561
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4562
  test $ac_status = 0; }; then
4563
  pkg_cv_bz2_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
4564
		      test "x$?" != "x0" && pkg_failed=yes
4565
else
4566
  pkg_failed=yes
4567
fi
4568
 else
4569
    pkg_failed=untried
4570
fi
4571
if test -n "$bz2_LIBS"; then
4572
    pkg_cv_bz2_LIBS="$bz2_LIBS"
4573
 elif test -n "$PKG_CONFIG"; then
4574
    if test -n "$PKG_CONFIG" && \
4575
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
4576
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
4577
  ac_status=$?
4578
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4579
  test $ac_status = 0; }; then
4580
  pkg_cv_bz2_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
4581
		      test "x$?" != "x0" && pkg_failed=yes
4582
else
4583
  pkg_failed=yes
4584
fi
4585
 else
4586
    pkg_failed=untried
4587
fi
4588

    
4589

    
4590

    
4591
if test $pkg_failed = yes; then
4592
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4593
$as_echo "no" >&6; }
4594

    
4595
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4596
        _pkg_short_errors_supported=yes
4597
else
4598
        _pkg_short_errors_supported=no
4599
fi
4600
        if test $_pkg_short_errors_supported = yes; then
4601
	        bz2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
4602
        else
4603
	        bz2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
4604
        fi
4605
	# Put the nasty error message in config.log where it belongs
4606
	echo "$bz2_PKG_ERRORS" >&5
4607

    
4608
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
4609
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
4610
elif test $pkg_failed = untried; then
4611
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4612
$as_echo "no" >&6; }
4613
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
4614
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
4615
else
4616
	bz2_CFLAGS=$pkg_cv_bz2_CFLAGS
4617
	bz2_LIBS=$pkg_cv_bz2_LIBS
4618
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4619
$as_echo "yes" >&6; }
4620
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $bz2_CFLAGS";LIBS="$LIBS $bz2_LIBS";SV_MODULE_FAILED=""
4621
fi
4622
fi
4623
if test -n "$SV_MODULE_FAILED"; then
4624
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
4625
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
4626
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4627
  HAVES="$HAVES $SV_MODULE_HAVE"
4628
else
4629
  as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
4630
fi
4631

    
4632

    
4633
   if test -n "$SV_MODULE_LIB"; then
4634
     as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
4635
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
4636
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
4637
if eval \${$as_ac_Lib+:} false; then :
4638
  $as_echo_n "(cached) " >&6
4639
else
4640
  ac_check_lib_save_LIBS=$LIBS
4641
LIBS="-l$SV_MODULE_LIB  $LIBS"
4642
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643
/* end confdefs.h.  */
4644

    
4645
/* Override any GCC internal prototype to avoid an error.
4646
   Use char because int might match the return type of a GCC
4647
   builtin and then its argument prototype would still apply.  */
4648
#ifdef __cplusplus
4649
extern "C"
4650
#endif
4651
char $SV_MODULE_FUNC ();
4652
int
4653
main ()
4654
{
4655
return $SV_MODULE_FUNC ();
4656
  ;
4657
  return 0;
4658
}
4659
_ACEOF
4660
if ac_fn_cxx_try_link "$LINENO"; then :
4661
  eval "$as_ac_Lib=yes"
4662
else
4663
  eval "$as_ac_Lib=no"
4664
fi
4665
rm -f core conftest.err conftest.$ac_objext \
4666
    conftest$ac_exeext conftest.$ac_ext
4667
LIBS=$ac_check_lib_save_LIBS
4668
fi
4669
eval ac_res=\$$as_ac_Lib
4670
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4671
$as_echo "$ac_res" >&6; }
4672
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
4673
  LIBS="$LIBS -l$SV_MODULE_LIB"
4674
else
4675
  as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
4676
fi
4677

    
4678
   fi
4679
fi
4680

    
4681

    
4682
SV_MODULE_MODULE=fftw3
4683
SV_MODULE_VERSION_TEST="fftw3 >= 3.0.0"
4684
SV_MODULE_HEADER=fftw3.h
4685
SV_MODULE_LIB=fftw3
4686
SV_MODULE_FUNC=fftw_execute
4687
SV_MODULE_HAVE=HAVE_$(echo fftw3 | tr 'a-z' 'A-Z')
4688
SV_MODULE_FAILED=1
4689
if test -n "$fftw3_LIBS" ; then
4690
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
4691
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
4692
   CXXFLAGS="$CXXFLAGS $fftw3_CFLAGS"
4693
   LIBS="$LIBS $fftw3_LIBS"
4694
   SV_MODULE_FAILED=""
4695
fi
4696
if test -z "$SV_MODULE_VERSION_TEST" ; then
4697
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
4698
fi
4699
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
4700

    
4701
pkg_failed=no
4702
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw3" >&5
4703
$as_echo_n "checking for fftw3... " >&6; }
4704

    
4705
if test -n "$fftw3_CFLAGS"; then
4706
    pkg_cv_fftw3_CFLAGS="$fftw3_CFLAGS"
4707
 elif test -n "$PKG_CONFIG"; then
4708
    if test -n "$PKG_CONFIG" && \
4709
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
4710
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
4711
  ac_status=$?
4712
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4713
  test $ac_status = 0; }; then
4714
  pkg_cv_fftw3_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
4715
		      test "x$?" != "x0" && pkg_failed=yes
4716
else
4717
  pkg_failed=yes
4718
fi
4719
 else
4720
    pkg_failed=untried
4721
fi
4722
if test -n "$fftw3_LIBS"; then
4723
    pkg_cv_fftw3_LIBS="$fftw3_LIBS"
4724
 elif test -n "$PKG_CONFIG"; then
4725
    if test -n "$PKG_CONFIG" && \
4726
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
4727
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
4728
  ac_status=$?
4729
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4730
  test $ac_status = 0; }; then
4731
  pkg_cv_fftw3_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
4732
		      test "x$?" != "x0" && pkg_failed=yes
4733
else
4734
  pkg_failed=yes
4735
fi
4736
 else
4737
    pkg_failed=untried
4738
fi
4739

    
4740

    
4741

    
4742
if test $pkg_failed = yes; then
4743
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744
$as_echo "no" >&6; }
4745

    
4746
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4747
        _pkg_short_errors_supported=yes
4748
else
4749
        _pkg_short_errors_supported=no
4750
fi
4751
        if test $_pkg_short_errors_supported = yes; then
4752
	        fftw3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
4753
        else
4754
	        fftw3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
4755
        fi
4756
	# Put the nasty error message in config.log where it belongs
4757
	echo "$fftw3_PKG_ERRORS" >&5
4758

    
4759
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
4760
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
4761
elif test $pkg_failed = untried; then
4762
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4763
$as_echo "no" >&6; }
4764
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
4765
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
4766
else
4767
	fftw3_CFLAGS=$pkg_cv_fftw3_CFLAGS
4768
	fftw3_LIBS=$pkg_cv_fftw3_LIBS
4769
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4770
$as_echo "yes" >&6; }
4771
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $fftw3_CFLAGS";LIBS="$LIBS $fftw3_LIBS";SV_MODULE_FAILED=""
4772
fi
4773
fi
4774
if test -n "$SV_MODULE_FAILED"; then
4775
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
4776
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
4777
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4778
  HAVES="$HAVES $SV_MODULE_HAVE"
4779
else
4780
  as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
4781
fi
4782

    
4783

    
4784
   if test -n "$SV_MODULE_LIB"; then
4785
     as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
4786
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
4787
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
4788
if eval \${$as_ac_Lib+:} false; then :
4789
  $as_echo_n "(cached) " >&6
4790
else
4791
  ac_check_lib_save_LIBS=$LIBS
4792
LIBS="-l$SV_MODULE_LIB  $LIBS"
4793
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794
/* end confdefs.h.  */
4795

    
4796
/* Override any GCC internal prototype to avoid an error.
4797
   Use char because int might match the return type of a GCC
4798
   builtin and then its argument prototype would still apply.  */
4799
#ifdef __cplusplus
4800
extern "C"
4801
#endif
4802
char $SV_MODULE_FUNC ();
4803
int
4804
main ()
4805
{
4806
return $SV_MODULE_FUNC ();
4807
  ;
4808
  return 0;
4809
}
4810
_ACEOF
4811
if ac_fn_cxx_try_link "$LINENO"; then :
4812
  eval "$as_ac_Lib=yes"
4813
else
4814
  eval "$as_ac_Lib=no"
4815
fi
4816
rm -f core conftest.err conftest.$ac_objext \
4817
    conftest$ac_exeext conftest.$ac_ext
4818
LIBS=$ac_check_lib_save_LIBS
4819
fi
4820
eval ac_res=\$$as_ac_Lib
4821
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4822
$as_echo "$ac_res" >&6; }
4823
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
4824
  LIBS="$LIBS -l$SV_MODULE_LIB"
4825
else
4826
  as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
4827
fi
4828

    
4829
   fi
4830
fi
4831

    
4832

    
4833
SV_MODULE_MODULE=fftw3f
4834
SV_MODULE_VERSION_TEST="fftw3f >= 3.0.0"
4835
SV_MODULE_HEADER=fftw3.h
4836
SV_MODULE_LIB=fftw3f
4837
SV_MODULE_FUNC=fftwf_execute
4838
SV_MODULE_HAVE=HAVE_$(echo fftw3f | tr 'a-z' 'A-Z')
4839
SV_MODULE_FAILED=1
4840
if test -n "$fftw3f_LIBS" ; then
4841
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
4842
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
4843
   CXXFLAGS="$CXXFLAGS $fftw3f_CFLAGS"
4844
   LIBS="$LIBS $fftw3f_LIBS"
4845
   SV_MODULE_FAILED=""
4846
fi
4847
if test -z "$SV_MODULE_VERSION_TEST" ; then
4848
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
4849
fi
4850
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
4851

    
4852
pkg_failed=no
4853
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw3f" >&5
4854
$as_echo_n "checking for fftw3f... " >&6; }
4855

    
4856
if test -n "$fftw3f_CFLAGS"; then
4857
    pkg_cv_fftw3f_CFLAGS="$fftw3f_CFLAGS"
4858
 elif test -n "$PKG_CONFIG"; then
4859
    if test -n "$PKG_CONFIG" && \
4860
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
4861
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
4862
  ac_status=$?
4863
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4864
  test $ac_status = 0; }; then
4865
  pkg_cv_fftw3f_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
4866
		      test "x$?" != "x0" && pkg_failed=yes
4867
else
4868
  pkg_failed=yes
4869
fi
4870
 else
4871
    pkg_failed=untried
4872
fi
4873
if test -n "$fftw3f_LIBS"; then
4874
    pkg_cv_fftw3f_LIBS="$fftw3f_LIBS"
4875
 elif test -n "$PKG_CONFIG"; then
4876
    if test -n "$PKG_CONFIG" && \
4877
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
4878
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
4879
  ac_status=$?
4880
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4881
  test $ac_status = 0; }; then
4882
  pkg_cv_fftw3f_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
4883
		      test "x$?" != "x0" && pkg_failed=yes
4884
else
4885
  pkg_failed=yes
4886
fi
4887
 else
4888
    pkg_failed=untried
4889
fi
4890

    
4891

    
4892

    
4893
if test $pkg_failed = yes; then
4894
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895
$as_echo "no" >&6; }
4896

    
4897
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4898
        _pkg_short_errors_supported=yes
4899
else
4900
        _pkg_short_errors_supported=no
4901
fi
4902
        if test $_pkg_short_errors_supported = yes; then
4903
	        fftw3f_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
4904
        else
4905
	        fftw3f_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
4906
        fi
4907
	# Put the nasty error message in config.log where it belongs
4908
	echo "$fftw3f_PKG_ERRORS" >&5
4909

    
4910
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
4911
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
4912
elif test $pkg_failed = untried; then
4913
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4914
$as_echo "no" >&6; }
4915
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
4916
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
4917
else
4918
	fftw3f_CFLAGS=$pkg_cv_fftw3f_CFLAGS
4919
	fftw3f_LIBS=$pkg_cv_fftw3f_LIBS
4920
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4921
$as_echo "yes" >&6; }
4922
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $fftw3f_CFLAGS";LIBS="$LIBS $fftw3f_LIBS";SV_MODULE_FAILED=""
4923
fi
4924
fi
4925
if test -n "$SV_MODULE_FAILED"; then
4926
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
4927
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
4928
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4929
  HAVES="$HAVES $SV_MODULE_HAVE"
4930
else
4931
  as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
4932
fi
4933

    
4934

    
4935
   if test -n "$SV_MODULE_LIB"; then
4936
     as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
4937
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
4938
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
4939
if eval \${$as_ac_Lib+:} false; then :
4940
  $as_echo_n "(cached) " >&6
4941
else
4942
  ac_check_lib_save_LIBS=$LIBS
4943
LIBS="-l$SV_MODULE_LIB  $LIBS"
4944
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945
/* end confdefs.h.  */
4946

    
4947
/* Override any GCC internal prototype to avoid an error.
4948
   Use char because int might match the return type of a GCC
4949
   builtin and then its argument prototype would still apply.  */
4950
#ifdef __cplusplus
4951
extern "C"
4952
#endif
4953
char $SV_MODULE_FUNC ();
4954
int
4955
main ()
4956
{
4957
return $SV_MODULE_FUNC ();
4958
  ;
4959
  return 0;
4960
}
4961
_ACEOF
4962
if ac_fn_cxx_try_link "$LINENO"; then :
4963
  eval "$as_ac_Lib=yes"
4964
else
4965
  eval "$as_ac_Lib=no"
4966
fi
4967
rm -f core conftest.err conftest.$ac_objext \
4968
    conftest$ac_exeext conftest.$ac_ext
4969
LIBS=$ac_check_lib_save_LIBS
4970
fi
4971
eval ac_res=\$$as_ac_Lib
4972
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4973
$as_echo "$ac_res" >&6; }
4974
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
4975
  LIBS="$LIBS -l$SV_MODULE_LIB"
4976
else
4977
  as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
4978
fi
4979

    
4980
   fi
4981
fi
4982

    
4983

    
4984
SV_MODULE_MODULE=sndfile
4985
SV_MODULE_VERSION_TEST="sndfile >= 1.0.16"
4986
SV_MODULE_HEADER=sndfile.h
4987
SV_MODULE_LIB=sndfile
4988
SV_MODULE_FUNC=sf_open
4989
SV_MODULE_HAVE=HAVE_$(echo sndfile | tr 'a-z' 'A-Z')
4990
SV_MODULE_FAILED=1
4991
if test -n "$sndfile_LIBS" ; then
4992
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
4993
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
4994
   CXXFLAGS="$CXXFLAGS $sndfile_CFLAGS"
4995
   LIBS="$LIBS $sndfile_LIBS"
4996
   SV_MODULE_FAILED=""
4997
fi
4998
if test -z "$SV_MODULE_VERSION_TEST" ; then
4999
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
5000
fi
5001
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
5002

    
5003
pkg_failed=no
5004
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndfile" >&5
5005
$as_echo_n "checking for sndfile... " >&6; }
5006

    
5007
if test -n "$sndfile_CFLAGS"; then
5008
    pkg_cv_sndfile_CFLAGS="$sndfile_CFLAGS"
5009
 elif test -n "$PKG_CONFIG"; then
5010
    if test -n "$PKG_CONFIG" && \
5011
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5012
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5013
  ac_status=$?
5014
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5015
  test $ac_status = 0; }; then
5016
  pkg_cv_sndfile_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5017
		      test "x$?" != "x0" && pkg_failed=yes
5018
else
5019
  pkg_failed=yes
5020
fi
5021
 else
5022
    pkg_failed=untried
5023
fi
5024
if test -n "$sndfile_LIBS"; then
5025
    pkg_cv_sndfile_LIBS="$sndfile_LIBS"
5026
 elif test -n "$PKG_CONFIG"; then
5027
    if test -n "$PKG_CONFIG" && \
5028
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5029
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5030
  ac_status=$?
5031
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5032
  test $ac_status = 0; }; then
5033
  pkg_cv_sndfile_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5034
		      test "x$?" != "x0" && pkg_failed=yes
5035
else
5036
  pkg_failed=yes
5037
fi
5038
 else
5039
    pkg_failed=untried
5040
fi
5041

    
5042

    
5043

    
5044
if test $pkg_failed = yes; then
5045
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5046
$as_echo "no" >&6; }
5047

    
5048
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5049
        _pkg_short_errors_supported=yes
5050
else
5051
        _pkg_short_errors_supported=no
5052
fi
5053
        if test $_pkg_short_errors_supported = yes; then
5054
	        sndfile_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5055
        else
5056
	        sndfile_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5057
        fi
5058
	# Put the nasty error message in config.log where it belongs
5059
	echo "$sndfile_PKG_ERRORS" >&5
5060

    
5061
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5062
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5063
elif test $pkg_failed = untried; then
5064
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5065
$as_echo "no" >&6; }
5066
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5067
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5068
else
5069
	sndfile_CFLAGS=$pkg_cv_sndfile_CFLAGS
5070
	sndfile_LIBS=$pkg_cv_sndfile_LIBS
5071
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5072
$as_echo "yes" >&6; }
5073
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $sndfile_CFLAGS";LIBS="$LIBS $sndfile_LIBS";SV_MODULE_FAILED=""
5074
fi
5075
fi
5076
if test -n "$SV_MODULE_FAILED"; then
5077
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
5078
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
5079
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5080
  HAVES="$HAVES $SV_MODULE_HAVE"
5081
else
5082
  as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
5083
fi
5084

    
5085

    
5086
   if test -n "$SV_MODULE_LIB"; then
5087
     as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
5088
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
5089
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
5090
if eval \${$as_ac_Lib+:} false; then :
5091
  $as_echo_n "(cached) " >&6
5092
else
5093
  ac_check_lib_save_LIBS=$LIBS
5094
LIBS="-l$SV_MODULE_LIB  $LIBS"
5095
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5096
/* end confdefs.h.  */
5097

    
5098
/* Override any GCC internal prototype to avoid an error.
5099
   Use char because int might match the return type of a GCC
5100
   builtin and then its argument prototype would still apply.  */
5101
#ifdef __cplusplus
5102
extern "C"
5103
#endif
5104
char $SV_MODULE_FUNC ();
5105
int
5106
main ()
5107
{
5108
return $SV_MODULE_FUNC ();
5109
  ;
5110
  return 0;
5111
}
5112
_ACEOF
5113
if ac_fn_cxx_try_link "$LINENO"; then :
5114
  eval "$as_ac_Lib=yes"
5115
else
5116
  eval "$as_ac_Lib=no"
5117
fi
5118
rm -f core conftest.err conftest.$ac_objext \
5119
    conftest$ac_exeext conftest.$ac_ext
5120
LIBS=$ac_check_lib_save_LIBS
5121
fi
5122
eval ac_res=\$$as_ac_Lib
5123
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5124
$as_echo "$ac_res" >&6; }
5125
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5126
  LIBS="$LIBS -l$SV_MODULE_LIB"
5127
else
5128
  as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
5129
fi
5130

    
5131
   fi
5132
fi
5133

    
5134

    
5135
SV_MODULE_MODULE=samplerate
5136
SV_MODULE_VERSION_TEST="samplerate >= 0.1.2"
5137
SV_MODULE_HEADER=samplerate.h
5138
SV_MODULE_LIB=samplerate
5139
SV_MODULE_FUNC=src_new
5140
SV_MODULE_HAVE=HAVE_$(echo samplerate | tr 'a-z' 'A-Z')
5141
SV_MODULE_FAILED=1
5142
if test -n "$samplerate_LIBS" ; then
5143
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
5144
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
5145
   CXXFLAGS="$CXXFLAGS $samplerate_CFLAGS"
5146
   LIBS="$LIBS $samplerate_LIBS"
5147
   SV_MODULE_FAILED=""
5148
fi
5149
if test -z "$SV_MODULE_VERSION_TEST" ; then
5150
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
5151
fi
5152
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
5153

    
5154
pkg_failed=no
5155
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for samplerate" >&5
5156
$as_echo_n "checking for samplerate... " >&6; }
5157

    
5158
if test -n "$samplerate_CFLAGS"; then
5159
    pkg_cv_samplerate_CFLAGS="$samplerate_CFLAGS"
5160
 elif test -n "$PKG_CONFIG"; then
5161
    if test -n "$PKG_CONFIG" && \
5162
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5163
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5164
  ac_status=$?
5165
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5166
  test $ac_status = 0; }; then
5167
  pkg_cv_samplerate_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5168
		      test "x$?" != "x0" && pkg_failed=yes
5169
else
5170
  pkg_failed=yes
5171
fi
5172
 else
5173
    pkg_failed=untried
5174
fi
5175
if test -n "$samplerate_LIBS"; then
5176
    pkg_cv_samplerate_LIBS="$samplerate_LIBS"
5177
 elif test -n "$PKG_CONFIG"; then
5178
    if test -n "$PKG_CONFIG" && \
5179
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5180
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5181
  ac_status=$?
5182
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5183
  test $ac_status = 0; }; then
5184
  pkg_cv_samplerate_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5185
		      test "x$?" != "x0" && pkg_failed=yes
5186
else
5187
  pkg_failed=yes
5188
fi
5189
 else
5190
    pkg_failed=untried
5191
fi
5192

    
5193

    
5194

    
5195
if test $pkg_failed = yes; then
5196
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197
$as_echo "no" >&6; }
5198

    
5199
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5200
        _pkg_short_errors_supported=yes
5201
else
5202
        _pkg_short_errors_supported=no
5203
fi
5204
        if test $_pkg_short_errors_supported = yes; then
5205
	        samplerate_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5206
        else
5207
	        samplerate_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5208
        fi
5209
	# Put the nasty error message in config.log where it belongs
5210
	echo "$samplerate_PKG_ERRORS" >&5
5211

    
5212
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5213
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5214
elif test $pkg_failed = untried; then
5215
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5216
$as_echo "no" >&6; }
5217
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5218
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5219
else
5220
	samplerate_CFLAGS=$pkg_cv_samplerate_CFLAGS
5221
	samplerate_LIBS=$pkg_cv_samplerate_LIBS
5222
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5223
$as_echo "yes" >&6; }
5224
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $samplerate_CFLAGS";LIBS="$LIBS $samplerate_LIBS";SV_MODULE_FAILED=""
5225
fi
5226
fi
5227
if test -n "$SV_MODULE_FAILED"; then
5228
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
5229
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
5230
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5231
  HAVES="$HAVES $SV_MODULE_HAVE"
5232
else
5233
  as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
5234
fi
5235

    
5236

    
5237
   if test -n "$SV_MODULE_LIB"; then
5238
     as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
5239
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
5240
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
5241
if eval \${$as_ac_Lib+:} false; then :
5242
  $as_echo_n "(cached) " >&6
5243
else
5244
  ac_check_lib_save_LIBS=$LIBS
5245
LIBS="-l$SV_MODULE_LIB  $LIBS"
5246
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247
/* end confdefs.h.  */
5248

    
5249
/* Override any GCC internal prototype to avoid an error.
5250
   Use char because int might match the return type of a GCC
5251
   builtin and then its argument prototype would still apply.  */
5252
#ifdef __cplusplus
5253
extern "C"
5254
#endif
5255
char $SV_MODULE_FUNC ();
5256
int
5257
main ()
5258
{
5259
return $SV_MODULE_FUNC ();
5260
  ;
5261
  return 0;
5262
}
5263
_ACEOF
5264
if ac_fn_cxx_try_link "$LINENO"; then :
5265
  eval "$as_ac_Lib=yes"
5266
else
5267
  eval "$as_ac_Lib=no"
5268
fi
5269
rm -f core conftest.err conftest.$ac_objext \
5270
    conftest$ac_exeext conftest.$ac_ext
5271
LIBS=$ac_check_lib_save_LIBS
5272
fi
5273
eval ac_res=\$$as_ac_Lib
5274
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5275
$as_echo "$ac_res" >&6; }
5276
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5277
  LIBS="$LIBS -l$SV_MODULE_LIB"
5278
else
5279
  as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
5280
fi
5281

    
5282
   fi
5283
fi
5284

    
5285

    
5286
SV_MODULE_MODULE=rubberband
5287
SV_MODULE_VERSION_TEST="rubberband"
5288
SV_MODULE_HEADER=rubberband/RubberBandStretcher.h
5289
SV_MODULE_LIB=rubberband
5290
SV_MODULE_FUNC=rubberband_new
5291
SV_MODULE_HAVE=HAVE_$(echo rubberband | tr 'a-z' 'A-Z')
5292
SV_MODULE_FAILED=1
5293
if test -n "$rubberband_LIBS" ; then
5294
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
5295
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
5296
   CXXFLAGS="$CXXFLAGS $rubberband_CFLAGS"
5297
   LIBS="$LIBS $rubberband_LIBS"
5298
   SV_MODULE_FAILED=""
5299
fi
5300
if test -z "$SV_MODULE_VERSION_TEST" ; then
5301
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
5302
fi
5303
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
5304

    
5305
pkg_failed=no
5306
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rubberband" >&5
5307
$as_echo_n "checking for rubberband... " >&6; }
5308

    
5309
if test -n "$rubberband_CFLAGS"; then
5310
    pkg_cv_rubberband_CFLAGS="$rubberband_CFLAGS"
5311
 elif test -n "$PKG_CONFIG"; then
5312
    if test -n "$PKG_CONFIG" && \
5313
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5314
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5315
  ac_status=$?
5316
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5317
  test $ac_status = 0; }; then
5318
  pkg_cv_rubberband_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5319
		      test "x$?" != "x0" && pkg_failed=yes
5320
else
5321
  pkg_failed=yes
5322
fi
5323
 else
5324
    pkg_failed=untried
5325
fi
5326
if test -n "$rubberband_LIBS"; then
5327
    pkg_cv_rubberband_LIBS="$rubberband_LIBS"
5328
 elif test -n "$PKG_CONFIG"; then
5329
    if test -n "$PKG_CONFIG" && \
5330
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5331
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5332
  ac_status=$?
5333
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5334
  test $ac_status = 0; }; then
5335
  pkg_cv_rubberband_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5336
		      test "x$?" != "x0" && pkg_failed=yes
5337
else
5338
  pkg_failed=yes
5339
fi
5340
 else
5341
    pkg_failed=untried
5342
fi
5343

    
5344

    
5345

    
5346
if test $pkg_failed = yes; then
5347
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5348
$as_echo "no" >&6; }
5349

    
5350
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5351
        _pkg_short_errors_supported=yes
5352
else
5353
        _pkg_short_errors_supported=no
5354
fi
5355
        if test $_pkg_short_errors_supported = yes; then
5356
	        rubberband_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5357
        else
5358
	        rubberband_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5359
        fi
5360
	# Put the nasty error message in config.log where it belongs
5361
	echo "$rubberband_PKG_ERRORS" >&5
5362

    
5363
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5364
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5365
elif test $pkg_failed = untried; then
5366
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367
$as_echo "no" >&6; }
5368
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5369
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5370
else
5371
	rubberband_CFLAGS=$pkg_cv_rubberband_CFLAGS
5372
	rubberband_LIBS=$pkg_cv_rubberband_LIBS
5373
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5374
$as_echo "yes" >&6; }
5375
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $rubberband_CFLAGS";LIBS="$LIBS $rubberband_LIBS";SV_MODULE_FAILED=""
5376
fi
5377
fi
5378
if test -n "$SV_MODULE_FAILED"; then
5379
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
5380
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
5381
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5382
  HAVES="$HAVES $SV_MODULE_HAVE"
5383
else
5384
  as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
5385
fi
5386

    
5387

    
5388
   if test -n "$SV_MODULE_LIB"; then
5389
     as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
5390
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
5391
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
5392
if eval \${$as_ac_Lib+:} false; then :
5393
  $as_echo_n "(cached) " >&6
5394
else
5395
  ac_check_lib_save_LIBS=$LIBS
5396
LIBS="-l$SV_MODULE_LIB  $LIBS"
5397
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398
/* end confdefs.h.  */
5399

    
5400
/* Override any GCC internal prototype to avoid an error.
5401
   Use char because int might match the return type of a GCC
5402
   builtin and then its argument prototype would still apply.  */
5403
#ifdef __cplusplus
5404
extern "C"
5405
#endif
5406
char $SV_MODULE_FUNC ();
5407
int
5408
main ()
5409
{
5410
return $SV_MODULE_FUNC ();
5411
  ;
5412
  return 0;
5413
}
5414
_ACEOF
5415
if ac_fn_cxx_try_link "$LINENO"; then :
5416
  eval "$as_ac_Lib=yes"
5417
else
5418
  eval "$as_ac_Lib=no"
5419
fi
5420
rm -f core conftest.err conftest.$ac_objext \
5421
    conftest$ac_exeext conftest.$ac_ext
5422
LIBS=$ac_check_lib_save_LIBS
5423
fi
5424
eval ac_res=\$$as_ac_Lib
5425
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5426
$as_echo "$ac_res" >&6; }
5427
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5428
  LIBS="$LIBS -l$SV_MODULE_LIB"
5429
else
5430
  as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
5431
fi
5432

    
5433
   fi
5434
fi
5435

    
5436

    
5437
SV_MODULE_MODULE=sord
5438
SV_MODULE_VERSION_TEST="sord-0 >= 0.5"
5439
SV_MODULE_HEADER=sord/sord.h
5440
SV_MODULE_LIB=sord-0
5441
SV_MODULE_FUNC=sord_world_new
5442
SV_MODULE_HAVE=HAVE_$(echo sord | tr 'a-z' 'A-Z')
5443
SV_MODULE_FAILED=1
5444
if test -n "$sord_LIBS" ; then
5445
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
5446
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
5447
   CXXFLAGS="$CXXFLAGS $sord_CFLAGS"
5448
   LIBS="$LIBS $sord_LIBS"
5449
   SV_MODULE_FAILED=""
5450
fi
5451
if test -z "$SV_MODULE_VERSION_TEST" ; then
5452
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
5453
fi
5454
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
5455

    
5456
pkg_failed=no
5457
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sord" >&5
5458
$as_echo_n "checking for sord... " >&6; }
5459

    
5460
if test -n "$sord_CFLAGS"; then
5461
    pkg_cv_sord_CFLAGS="$sord_CFLAGS"
5462
 elif test -n "$PKG_CONFIG"; then
5463
    if test -n "$PKG_CONFIG" && \
5464
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5465
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5466
  ac_status=$?
5467
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5468
  test $ac_status = 0; }; then
5469
  pkg_cv_sord_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5470
		      test "x$?" != "x0" && pkg_failed=yes
5471
else
5472
  pkg_failed=yes
5473
fi
5474
 else
5475
    pkg_failed=untried
5476
fi
5477
if test -n "$sord_LIBS"; then
5478
    pkg_cv_sord_LIBS="$sord_LIBS"
5479
 elif test -n "$PKG_CONFIG"; then
5480
    if test -n "$PKG_CONFIG" && \
5481
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5482
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5483
  ac_status=$?
5484
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5485
  test $ac_status = 0; }; then
5486
  pkg_cv_sord_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5487
		      test "x$?" != "x0" && pkg_failed=yes
5488
else
5489
  pkg_failed=yes
5490
fi
5491
 else
5492
    pkg_failed=untried
5493
fi
5494

    
5495

    
5496

    
5497
if test $pkg_failed = yes; then
5498
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5499
$as_echo "no" >&6; }
5500

    
5501
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5502
        _pkg_short_errors_supported=yes
5503
else
5504
        _pkg_short_errors_supported=no
5505
fi
5506
        if test $_pkg_short_errors_supported = yes; then
5507
	        sord_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5508
        else
5509
	        sord_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5510
        fi
5511
	# Put the nasty error message in config.log where it belongs
5512
	echo "$sord_PKG_ERRORS" >&5
5513

    
5514
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5515
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5516
elif test $pkg_failed = untried; then
5517
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518
$as_echo "no" >&6; }
5519
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5520
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5521
else
5522
	sord_CFLAGS=$pkg_cv_sord_CFLAGS
5523
	sord_LIBS=$pkg_cv_sord_LIBS
5524
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5525
$as_echo "yes" >&6; }
5526
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $sord_CFLAGS";LIBS="$LIBS $sord_LIBS";SV_MODULE_FAILED=""
5527
fi
5528
fi
5529
if test -n "$SV_MODULE_FAILED"; then
5530
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
5531
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
5532
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5533
  HAVES="$HAVES $SV_MODULE_HAVE"
5534
else
5535
  as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
5536
fi
5537

    
5538

    
5539
   if test -n "$SV_MODULE_LIB"; then
5540
     as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
5541
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
5542
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
5543
if eval \${$as_ac_Lib+:} false; then :
5544
  $as_echo_n "(cached) " >&6
5545
else
5546
  ac_check_lib_save_LIBS=$LIBS
5547
LIBS="-l$SV_MODULE_LIB  $LIBS"
5548
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549
/* end confdefs.h.  */
5550

    
5551
/* Override any GCC internal prototype to avoid an error.
5552
   Use char because int might match the return type of a GCC
5553
   builtin and then its argument prototype would still apply.  */
5554
#ifdef __cplusplus
5555
extern "C"
5556
#endif
5557
char $SV_MODULE_FUNC ();
5558
int
5559
main ()
5560
{
5561
return $SV_MODULE_FUNC ();
5562
  ;
5563
  return 0;
5564
}
5565
_ACEOF
5566
if ac_fn_cxx_try_link "$LINENO"; then :
5567
  eval "$as_ac_Lib=yes"
5568
else
5569
  eval "$as_ac_Lib=no"
5570
fi
5571
rm -f core conftest.err conftest.$ac_objext \
5572
    conftest$ac_exeext conftest.$ac_ext
5573
LIBS=$ac_check_lib_save_LIBS
5574
fi
5575
eval ac_res=\$$as_ac_Lib
5576
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5577
$as_echo "$ac_res" >&6; }
5578
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5579
  LIBS="$LIBS -l$SV_MODULE_LIB"
5580
else
5581
  as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
5582
fi
5583

    
5584
   fi
5585
fi
5586

    
5587

    
5588
SV_MODULE_MODULE=serd
5589
SV_MODULE_VERSION_TEST="serd-0 >= 0.5"
5590
SV_MODULE_HEADER=serd/serd.h
5591
SV_MODULE_LIB=serd-0
5592
SV_MODULE_FUNC=serd_reader_read_file
5593
SV_MODULE_HAVE=HAVE_$(echo serd | tr 'a-z' 'A-Z')
5594
SV_MODULE_FAILED=1
5595
if test -n "$serd_LIBS" ; then
5596
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
5597
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
5598
   CXXFLAGS="$CXXFLAGS $serd_CFLAGS"
5599
   LIBS="$LIBS $serd_LIBS"
5600
   SV_MODULE_FAILED=""
5601
fi
5602
if test -z "$SV_MODULE_VERSION_TEST" ; then
5603
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
5604
fi
5605
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
5606

    
5607
pkg_failed=no
5608
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for serd" >&5
5609
$as_echo_n "checking for serd... " >&6; }
5610

    
5611
if test -n "$serd_CFLAGS"; then
5612
    pkg_cv_serd_CFLAGS="$serd_CFLAGS"
5613
 elif test -n "$PKG_CONFIG"; then
5614
    if test -n "$PKG_CONFIG" && \
5615
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5616
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5617
  ac_status=$?
5618
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5619
  test $ac_status = 0; }; then
5620
  pkg_cv_serd_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5621
		      test "x$?" != "x0" && pkg_failed=yes
5622
else
5623
  pkg_failed=yes
5624
fi
5625
 else
5626
    pkg_failed=untried
5627
fi
5628
if test -n "$serd_LIBS"; then
5629
    pkg_cv_serd_LIBS="$serd_LIBS"
5630
 elif test -n "$PKG_CONFIG"; then
5631
    if test -n "$PKG_CONFIG" && \
5632
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5633
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5634
  ac_status=$?
5635
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5636
  test $ac_status = 0; }; then
5637
  pkg_cv_serd_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5638
		      test "x$?" != "x0" && pkg_failed=yes
5639
else
5640
  pkg_failed=yes
5641
fi
5642
 else
5643
    pkg_failed=untried
5644
fi
5645

    
5646

    
5647

    
5648
if test $pkg_failed = yes; then
5649
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650
$as_echo "no" >&6; }
5651

    
5652
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5653
        _pkg_short_errors_supported=yes
5654
else
5655
        _pkg_short_errors_supported=no
5656
fi
5657
        if test $_pkg_short_errors_supported = yes; then
5658
	        serd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5659
        else
5660
	        serd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5661
        fi
5662
	# Put the nasty error message in config.log where it belongs
5663
	echo "$serd_PKG_ERRORS" >&5
5664

    
5665
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5666
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5667
elif test $pkg_failed = untried; then
5668
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669
$as_echo "no" >&6; }
5670
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5671
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5672
else
5673
	serd_CFLAGS=$pkg_cv_serd_CFLAGS
5674
	serd_LIBS=$pkg_cv_serd_LIBS
5675
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5676
$as_echo "yes" >&6; }
5677
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $serd_CFLAGS";LIBS="$LIBS $serd_LIBS";SV_MODULE_FAILED=""
5678
fi
5679
fi
5680
if test -n "$SV_MODULE_FAILED"; then
5681
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
5682
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
5683
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5684
  HAVES="$HAVES $SV_MODULE_HAVE"
5685
else
5686
  as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
5687
fi
5688

    
5689

    
5690
   if test -n "$SV_MODULE_LIB"; then
5691
     as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
5692
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
5693
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
5694
if eval \${$as_ac_Lib+:} false; then :
5695
  $as_echo_n "(cached) " >&6
5696
else
5697
  ac_check_lib_save_LIBS=$LIBS
5698
LIBS="-l$SV_MODULE_LIB  $LIBS"
5699
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5700
/* end confdefs.h.  */
5701

    
5702
/* Override any GCC internal prototype to avoid an error.
5703
   Use char because int might match the return type of a GCC
5704
   builtin and then its argument prototype would still apply.  */
5705
#ifdef __cplusplus
5706
extern "C"
5707
#endif
5708
char $SV_MODULE_FUNC ();
5709
int
5710
main ()
5711
{
5712
return $SV_MODULE_FUNC ();
5713
  ;
5714
  return 0;
5715
}
5716
_ACEOF
5717
if ac_fn_cxx_try_link "$LINENO"; then :
5718
  eval "$as_ac_Lib=yes"
5719
else
5720
  eval "$as_ac_Lib=no"
5721
fi
5722
rm -f core conftest.err conftest.$ac_objext \
5723
    conftest$ac_exeext conftest.$ac_ext
5724
LIBS=$ac_check_lib_save_LIBS
5725
fi
5726
eval ac_res=\$$as_ac_Lib
5727
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5728
$as_echo "$ac_res" >&6; }
5729
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5730
  LIBS="$LIBS -l$SV_MODULE_LIB"
5731
else
5732
  as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
5733
fi
5734

    
5735
   fi
5736
fi
5737

    
5738

    
5739
# We need a Cap'n Proto version with the expectedSizeInWordsFromPrefix
5740
# function, which appeared in v0.6. If we can't find at least that
5741
# version with pkg-config, we check for the symbol with the compiler.
5742

    
5743
pkg_failed=no
5744
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for capnp" >&5
5745
$as_echo_n "checking for capnp... " >&6; }
5746

    
5747
if test -n "$capnp_CFLAGS"; then
5748
    pkg_cv_capnp_CFLAGS="$capnp_CFLAGS"
5749
 elif test -n "$PKG_CONFIG"; then
5750
    if test -n "$PKG_CONFIG" && \
5751
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"capnp >= 0.6\""; } >&5
5752
  ($PKG_CONFIG --exists --print-errors "capnp >= 0.6") 2>&5
5753
  ac_status=$?
5754
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5755
  test $ac_status = 0; }; then
5756
  pkg_cv_capnp_CFLAGS=`$PKG_CONFIG --cflags "capnp >= 0.6" 2>/dev/null`
5757
		      test "x$?" != "x0" && pkg_failed=yes
5758
else
5759
  pkg_failed=yes
5760
fi
5761
 else
5762
    pkg_failed=untried
5763
fi
5764
if test -n "$capnp_LIBS"; then
5765
    pkg_cv_capnp_LIBS="$capnp_LIBS"
5766
 elif test -n "$PKG_CONFIG"; then
5767
    if test -n "$PKG_CONFIG" && \
5768
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"capnp >= 0.6\""; } >&5
5769
  ($PKG_CONFIG --exists --print-errors "capnp >= 0.6") 2>&5
5770
  ac_status=$?
5771
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5772
  test $ac_status = 0; }; then
5773
  pkg_cv_capnp_LIBS=`$PKG_CONFIG --libs "capnp >= 0.6" 2>/dev/null`
5774
		      test "x$?" != "x0" && pkg_failed=yes
5775
else
5776
  pkg_failed=yes
5777
fi
5778
 else
5779
    pkg_failed=untried
5780
fi
5781

    
5782

    
5783

    
5784
if test $pkg_failed = yes; then
5785
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786
$as_echo "no" >&6; }
5787

    
5788
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5789
        _pkg_short_errors_supported=yes
5790
else
5791
        _pkg_short_errors_supported=no
5792
fi
5793
        if test $_pkg_short_errors_supported = yes; then
5794
	        capnp_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "capnp >= 0.6" 2>&1`
5795
        else
5796
	        capnp_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "capnp >= 0.6" 2>&1`
5797
        fi
5798
	# Put the nasty error message in config.log where it belongs
5799
	echo "$capnp_PKG_ERRORS" >&5
5800

    
5801
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module capnp using pkg-config, trying again by old-fashioned means" >&5
5802
$as_echo "$as_me: Failed to find required module capnp using pkg-config, trying again by old-fashioned means" >&6;}
5803
elif test $pkg_failed = untried; then
5804
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5805
$as_echo "no" >&6; }
5806
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module capnp using pkg-config, trying again by old-fashioned means" >&5
5807
$as_echo "$as_me: Failed to find required module capnp using pkg-config, trying again by old-fashioned means" >&6;}
5808
else
5809
	capnp_CFLAGS=$pkg_cv_capnp_CFLAGS
5810
	capnp_LIBS=$pkg_cv_capnp_LIBS
5811
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5812
$as_echo "yes" >&6; }
5813
	HAVES="$HAVES HAVE_CAPNP";CXXFLAGS="$CXXFLAGS $capnp_CFLAGS";LIBS="$LIBS $capnp_LIBS"
5814
fi
5815
if test -z "$capnp_LIBS" ; then
5816
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817
/* end confdefs.h.  */
5818

    
5819

    
5820
        #include <capnp/serialize.h>
5821
        int main() {
5822
            kj::Array<capnp::word> prefix;
5823
            return capnp::expectedSizeInWordsFromPrefix(prefix.asPtr());
5824
        }
5825
_ACEOF
5826
if ac_fn_cxx_try_compile "$LINENO"; then :
5827
  HAVES="$HAVES HAVE_CAPNP";LIBS="$LIBS -lcapnp -lkj"
5828
else
5829
  as_fn_error $? "Failed to find appropriate capnp library" "$LINENO" 5
5830

    
5831
fi
5832
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5833
fi
5834

    
5835

    
5836
SV_MODULE_MODULE=liblo
5837
SV_MODULE_VERSION_TEST=""
5838
SV_MODULE_HEADER=lo/lo.h
5839
SV_MODULE_LIB=lo
5840
SV_MODULE_FUNC=lo_address_new
5841
SV_MODULE_HAVE=HAVE_$(echo liblo | tr 'a-z' 'A-Z')
5842
SV_MODULE_FAILED=1
5843
if test -n "$liblo_LIBS" ; then
5844
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
5845
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
5846
   CXXFLAGS="$CXXFLAGS $liblo_CFLAGS"
5847
   LIBS="$LIBS $liblo_LIBS"
5848
   SV_MODULE_FAILED=""
5849
fi
5850
if test -z "$SV_MODULE_VERSION_TEST" ; then
5851
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
5852
fi
5853
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
5854

    
5855
pkg_failed=no
5856
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblo" >&5
5857
$as_echo_n "checking for liblo... " >&6; }
5858

    
5859
if test -n "$liblo_CFLAGS"; then
5860
    pkg_cv_liblo_CFLAGS="$liblo_CFLAGS"
5861
 elif test -n "$PKG_CONFIG"; then
5862
    if test -n "$PKG_CONFIG" && \
5863
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5864
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5865
  ac_status=$?
5866
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5867
  test $ac_status = 0; }; then
5868
  pkg_cv_liblo_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5869
		      test "x$?" != "x0" && pkg_failed=yes
5870
else
5871
  pkg_failed=yes
5872
fi
5873
 else
5874
    pkg_failed=untried
5875
fi
5876
if test -n "$liblo_LIBS"; then
5877
    pkg_cv_liblo_LIBS="$liblo_LIBS"
5878
 elif test -n "$PKG_CONFIG"; then
5879
    if test -n "$PKG_CONFIG" && \
5880
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5881
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5882
  ac_status=$?
5883
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5884
  test $ac_status = 0; }; then
5885
  pkg_cv_liblo_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5886
		      test "x$?" != "x0" && pkg_failed=yes
5887
else
5888
  pkg_failed=yes
5889
fi
5890
 else
5891
    pkg_failed=untried
5892
fi
5893

    
5894

    
5895

    
5896
if test $pkg_failed = yes; then
5897
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5898
$as_echo "no" >&6; }
5899

    
5900
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5901
        _pkg_short_errors_supported=yes
5902
else
5903
        _pkg_short_errors_supported=no
5904
fi
5905
        if test $_pkg_short_errors_supported = yes; then
5906
	        liblo_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5907
        else
5908
	        liblo_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5909
        fi
5910
	# Put the nasty error message in config.log where it belongs
5911
	echo "$liblo_PKG_ERRORS" >&5
5912

    
5913
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5914
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5915
elif test $pkg_failed = untried; then
5916
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917
$as_echo "no" >&6; }
5918
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5919
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5920
else
5921
	liblo_CFLAGS=$pkg_cv_liblo_CFLAGS
5922
	liblo_LIBS=$pkg_cv_liblo_LIBS
5923
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5924
$as_echo "yes" >&6; }
5925
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $liblo_CFLAGS";LIBS="$LIBS $liblo_LIBS";SV_MODULE_FAILED=""
5926
fi
5927
fi
5928
if test -n "$SV_MODULE_FAILED"; then
5929
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
5930
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
5931
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5932
  HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
5933
else
5934
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
5935
$as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
5936
fi
5937

    
5938

    
5939
   if test -z "$SV_MODULE_FAILED"; then
5940
      if test -n "$SV_MODULE_LIB"; then
5941
           as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
5942
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
5943
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
5944
if eval \${$as_ac_Lib+:} false; then :
5945
  $as_echo_n "(cached) " >&6
5946
else
5947
  ac_check_lib_save_LIBS=$LIBS
5948
LIBS="-l$SV_MODULE_LIB  $LIBS"
5949
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950
/* end confdefs.h.  */
5951

    
5952
/* Override any GCC internal prototype to avoid an error.
5953
   Use char because int might match the return type of a GCC
5954
   builtin and then its argument prototype would still apply.  */
5955
#ifdef __cplusplus
5956
extern "C"
5957
#endif
5958
char $SV_MODULE_FUNC ();
5959
int
5960
main ()
5961
{
5962
return $SV_MODULE_FUNC ();
5963
  ;
5964
  return 0;
5965
}
5966
_ACEOF
5967
if ac_fn_cxx_try_link "$LINENO"; then :
5968
  eval "$as_ac_Lib=yes"
5969
else
5970
  eval "$as_ac_Lib=no"
5971
fi
5972
rm -f core conftest.err conftest.$ac_objext \
5973
    conftest$ac_exeext conftest.$ac_ext
5974
LIBS=$ac_check_lib_save_LIBS
5975
fi
5976
eval ac_res=\$$as_ac_Lib
5977
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5978
$as_echo "$ac_res" >&6; }
5979
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5980
  LIBS="$LIBS -l$SV_MODULE_LIB"
5981
else
5982
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
5983
$as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
5984
fi
5985

    
5986
      fi
5987
   fi
5988
fi
5989

    
5990

    
5991
SV_MODULE_MODULE=portaudio_2_0
5992
SV_MODULE_VERSION_TEST="portaudio-2.0 >= 19"
5993
SV_MODULE_HEADER=portaudio.h
5994
SV_MODULE_LIB=portaudio
5995
SV_MODULE_FUNC=Pa_IsFormatSupported
5996
SV_MODULE_HAVE=HAVE_$(echo portaudio_2_0 | tr 'a-z' 'A-Z')
5997
SV_MODULE_FAILED=1
5998
if test -n "$portaudio_2_0_LIBS" ; then
5999
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
6000
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
6001
   CXXFLAGS="$CXXFLAGS $portaudio_2_0_CFLAGS"
6002
   LIBS="$LIBS $portaudio_2_0_LIBS"
6003
   SV_MODULE_FAILED=""
6004
fi
6005
if test -z "$SV_MODULE_VERSION_TEST" ; then
6006
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
6007
fi
6008
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
6009

    
6010
pkg_failed=no
6011
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for portaudio_2_0" >&5
6012
$as_echo_n "checking for portaudio_2_0... " >&6; }
6013

    
6014
if test -n "$portaudio_2_0_CFLAGS"; then
6015
    pkg_cv_portaudio_2_0_CFLAGS="$portaudio_2_0_CFLAGS"
6016
 elif test -n "$PKG_CONFIG"; then
6017
    if test -n "$PKG_CONFIG" && \
6018
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6019
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6020
  ac_status=$?
6021
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6022
  test $ac_status = 0; }; then
6023
  pkg_cv_portaudio_2_0_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6024
		      test "x$?" != "x0" && pkg_failed=yes
6025
else
6026
  pkg_failed=yes
6027
fi
6028
 else
6029
    pkg_failed=untried
6030
fi
6031
if test -n "$portaudio_2_0_LIBS"; then
6032
    pkg_cv_portaudio_2_0_LIBS="$portaudio_2_0_LIBS"
6033
 elif test -n "$PKG_CONFIG"; then
6034
    if test -n "$PKG_CONFIG" && \
6035
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6036
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6037
  ac_status=$?
6038
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6039
  test $ac_status = 0; }; then
6040
  pkg_cv_portaudio_2_0_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6041
		      test "x$?" != "x0" && pkg_failed=yes
6042
else
6043
  pkg_failed=yes
6044
fi
6045
 else
6046
    pkg_failed=untried
6047
fi
6048

    
6049

    
6050

    
6051
if test $pkg_failed = yes; then
6052
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6053
$as_echo "no" >&6; }
6054

    
6055
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6056
        _pkg_short_errors_supported=yes
6057
else
6058
        _pkg_short_errors_supported=no
6059
fi
6060
        if test $_pkg_short_errors_supported = yes; then
6061
	        portaudio_2_0_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6062
        else
6063
	        portaudio_2_0_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6064
        fi
6065
	# Put the nasty error message in config.log where it belongs
6066
	echo "$portaudio_2_0_PKG_ERRORS" >&5
6067

    
6068
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
6069
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6070
elif test $pkg_failed = untried; then
6071
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6072
$as_echo "no" >&6; }
6073
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
6074
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6075
else
6076
	portaudio_2_0_CFLAGS=$pkg_cv_portaudio_2_0_CFLAGS
6077
	portaudio_2_0_LIBS=$pkg_cv_portaudio_2_0_LIBS
6078
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6079
$as_echo "yes" >&6; }
6080
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $portaudio_2_0_CFLAGS";LIBS="$LIBS $portaudio_2_0_LIBS";SV_MODULE_FAILED=""
6081
fi
6082
fi
6083
if test -n "$SV_MODULE_FAILED"; then
6084
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
6085
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
6086
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6087
  HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
6088
else
6089
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
6090
$as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
6091
fi
6092

    
6093

    
6094
   if test -z "$SV_MODULE_FAILED"; then
6095
      if test -n "$SV_MODULE_LIB"; then
6096
           as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
6097
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
6098
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
6099
if eval \${$as_ac_Lib+:} false; then :
6100
  $as_echo_n "(cached) " >&6
6101
else
6102
  ac_check_lib_save_LIBS=$LIBS
6103
LIBS="-l$SV_MODULE_LIB  $LIBS"
6104
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105
/* end confdefs.h.  */
6106

    
6107
/* Override any GCC internal prototype to avoid an error.
6108
   Use char because int might match the return type of a GCC
6109
   builtin and then its argument prototype would still apply.  */
6110
#ifdef __cplusplus
6111
extern "C"
6112
#endif
6113
char $SV_MODULE_FUNC ();
6114
int
6115
main ()
6116
{
6117
return $SV_MODULE_FUNC ();
6118
  ;
6119
  return 0;
6120
}
6121
_ACEOF
6122
if ac_fn_cxx_try_link "$LINENO"; then :
6123
  eval "$as_ac_Lib=yes"
6124
else
6125
  eval "$as_ac_Lib=no"
6126
fi
6127
rm -f core conftest.err conftest.$ac_objext \
6128
    conftest$ac_exeext conftest.$ac_ext
6129
LIBS=$ac_check_lib_save_LIBS
6130
fi
6131
eval ac_res=\$$as_ac_Lib
6132
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6133
$as_echo "$ac_res" >&6; }
6134
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6135
  LIBS="$LIBS -l$SV_MODULE_LIB"
6136
else
6137
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
6138
$as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
6139
fi
6140

    
6141
      fi
6142
   fi
6143
fi
6144

    
6145

    
6146
SV_MODULE_MODULE=JACK
6147
SV_MODULE_VERSION_TEST="jack >= 0.100"
6148
SV_MODULE_HEADER=jack/jack.h
6149
SV_MODULE_LIB=jack
6150
SV_MODULE_FUNC=jack_client_open
6151
SV_MODULE_HAVE=HAVE_$(echo JACK | tr 'a-z' 'A-Z')
6152
SV_MODULE_FAILED=1
6153
if test -n "$JACK_LIBS" ; then
6154
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
6155
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
6156
   CXXFLAGS="$CXXFLAGS $JACK_CFLAGS"
6157
   LIBS="$LIBS $JACK_LIBS"
6158
   SV_MODULE_FAILED=""
6159
fi
6160
if test -z "$SV_MODULE_VERSION_TEST" ; then
6161
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
6162
fi
6163
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
6164

    
6165
pkg_failed=no
6166
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5
6167
$as_echo_n "checking for JACK... " >&6; }
6168

    
6169
if test -n "$JACK_CFLAGS"; then
6170
    pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
6171
 elif test -n "$PKG_CONFIG"; then
6172
    if test -n "$PKG_CONFIG" && \
6173
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6174
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6175
  ac_status=$?
6176
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6177
  test $ac_status = 0; }; then
6178
  pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6179
		      test "x$?" != "x0" && pkg_failed=yes
6180
else
6181
  pkg_failed=yes
6182
fi
6183
 else
6184
    pkg_failed=untried
6185
fi
6186
if test -n "$JACK_LIBS"; then
6187
    pkg_cv_JACK_LIBS="$JACK_LIBS"
6188
 elif test -n "$PKG_CONFIG"; then
6189
    if test -n "$PKG_CONFIG" && \
6190
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6191
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6192
  ac_status=$?
6193
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6194
  test $ac_status = 0; }; then
6195
  pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6196
		      test "x$?" != "x0" && pkg_failed=yes
6197
else
6198
  pkg_failed=yes
6199
fi
6200
 else
6201
    pkg_failed=untried
6202
fi
6203

    
6204

    
6205

    
6206
if test $pkg_failed = yes; then
6207
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6208
$as_echo "no" >&6; }
6209

    
6210
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6211
        _pkg_short_errors_supported=yes
6212
else
6213
        _pkg_short_errors_supported=no
6214
fi
6215
        if test $_pkg_short_errors_supported = yes; then
6216
	        JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6217
        else
6218
	        JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6219
        fi
6220
	# Put the nasty error message in config.log where it belongs
6221
	echo "$JACK_PKG_ERRORS" >&5
6222

    
6223
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
6224
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6225
elif test $pkg_failed = untried; then
6226
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227
$as_echo "no" >&6; }
6228
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
6229
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6230
else
6231
	JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
6232
	JACK_LIBS=$pkg_cv_JACK_LIBS
6233
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6234
$as_echo "yes" >&6; }
6235
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $JACK_CFLAGS";LIBS="$LIBS $JACK_LIBS";SV_MODULE_FAILED=""
6236
fi
6237
fi
6238
if test -n "$SV_MODULE_FAILED"; then
6239
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
6240
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
6241
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6242
  HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
6243
else
6244
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
6245
$as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
6246
fi
6247

    
6248

    
6249
   if test -z "$SV_MODULE_FAILED"; then
6250
      if test -n "$SV_MODULE_LIB"; then
6251
           as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
6252
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
6253
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
6254
if eval \${$as_ac_Lib+:} false; then :
6255
  $as_echo_n "(cached) " >&6
6256
else
6257
  ac_check_lib_save_LIBS=$LIBS
6258
LIBS="-l$SV_MODULE_LIB  $LIBS"
6259
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260
/* end confdefs.h.  */
6261

    
6262
/* Override any GCC internal prototype to avoid an error.
6263
   Use char because int might match the return type of a GCC
6264
   builtin and then its argument prototype would still apply.  */
6265
#ifdef __cplusplus
6266
extern "C"
6267
#endif
6268
char $SV_MODULE_FUNC ();
6269
int
6270
main ()
6271
{
6272
return $SV_MODULE_FUNC ();
6273
  ;
6274
  return 0;
6275
}
6276
_ACEOF
6277
if ac_fn_cxx_try_link "$LINENO"; then :
6278
  eval "$as_ac_Lib=yes"
6279
else
6280
  eval "$as_ac_Lib=no"
6281
fi
6282
rm -f core conftest.err conftest.$ac_objext \
6283
    conftest$ac_exeext conftest.$ac_ext
6284
LIBS=$ac_check_lib_save_LIBS
6285
fi
6286
eval ac_res=\$$as_ac_Lib
6287
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6288
$as_echo "$ac_res" >&6; }
6289
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6290
  LIBS="$LIBS -l$SV_MODULE_LIB"
6291
else
6292
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
6293
$as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
6294
fi
6295

    
6296
      fi
6297
   fi
6298
fi
6299

    
6300

    
6301
SV_MODULE_MODULE=libpulse
6302
SV_MODULE_VERSION_TEST="libpulse >= 0.9"
6303
SV_MODULE_HEADER=pulse/pulseaudio.h
6304
SV_MODULE_LIB=pulse
6305
SV_MODULE_FUNC=pa_stream_new
6306
SV_MODULE_HAVE=HAVE_$(echo libpulse | tr 'a-z' 'A-Z')
6307
SV_MODULE_FAILED=1
6308
if test -n "$libpulse_LIBS" ; then
6309
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
6310
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
6311
   CXXFLAGS="$CXXFLAGS $libpulse_CFLAGS"
6312
   LIBS="$LIBS $libpulse_LIBS"
6313
   SV_MODULE_FAILED=""
6314
fi
6315
if test -z "$SV_MODULE_VERSION_TEST" ; then
6316
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
6317
fi
6318
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
6319

    
6320
pkg_failed=no
6321
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpulse" >&5
6322
$as_echo_n "checking for libpulse... " >&6; }
6323

    
6324
if test -n "$libpulse_CFLAGS"; then
6325
    pkg_cv_libpulse_CFLAGS="$libpulse_CFLAGS"
6326
 elif test -n "$PKG_CONFIG"; then
6327
    if test -n "$PKG_CONFIG" && \
6328
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6329
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6330
  ac_status=$?
6331
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6332
  test $ac_status = 0; }; then
6333
  pkg_cv_libpulse_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6334
		      test "x$?" != "x0" && pkg_failed=yes
6335
else
6336
  pkg_failed=yes
6337
fi
6338
 else
6339
    pkg_failed=untried
6340
fi
6341
if test -n "$libpulse_LIBS"; then
6342
    pkg_cv_libpulse_LIBS="$libpulse_LIBS"
6343
 elif test -n "$PKG_CONFIG"; then
6344
    if test -n "$PKG_CONFIG" && \
6345
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6346
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6347
  ac_status=$?
6348
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6349
  test $ac_status = 0; }; then
6350
  pkg_cv_libpulse_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6351
		      test "x$?" != "x0" && pkg_failed=yes
6352
else
6353
  pkg_failed=yes
6354
fi
6355
 else
6356
    pkg_failed=untried
6357
fi
6358

    
6359

    
6360

    
6361
if test $pkg_failed = yes; then
6362
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6363
$as_echo "no" >&6; }
6364

    
6365
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6366
        _pkg_short_errors_supported=yes
6367
else
6368
        _pkg_short_errors_supported=no
6369
fi
6370
        if test $_pkg_short_errors_supported = yes; then
6371
	        libpulse_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6372
        else
6373
	        libpulse_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6374
        fi
6375
	# Put the nasty error message in config.log where it belongs
6376
	echo "$libpulse_PKG_ERRORS" >&5
6377

    
6378
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
6379
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6380
elif test $pkg_failed = untried; then
6381
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6382
$as_echo "no" >&6; }
6383
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
6384
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6385
else
6386
	libpulse_CFLAGS=$pkg_cv_libpulse_CFLAGS
6387
	libpulse_LIBS=$pkg_cv_libpulse_LIBS
6388
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6389
$as_echo "yes" >&6; }
6390
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $libpulse_CFLAGS";LIBS="$LIBS $libpulse_LIBS";SV_MODULE_FAILED=""
6391
fi
6392
fi
6393
if test -n "$SV_MODULE_FAILED"; then
6394
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
6395
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
6396
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6397
  HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
6398
else
6399
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
6400
$as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
6401
fi
6402

    
6403

    
6404
   if test -z "$SV_MODULE_FAILED"; then
6405
      if test -n "$SV_MODULE_LIB"; then
6406
           as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
6407
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
6408
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
6409
if eval \${$as_ac_Lib+:} false; then :
6410
  $as_echo_n "(cached) " >&6
6411
else
6412
  ac_check_lib_save_LIBS=$LIBS
6413
LIBS="-l$SV_MODULE_LIB  $LIBS"
6414
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6415
/* end confdefs.h.  */
6416

    
6417
/* Override any GCC internal prototype to avoid an error.
6418
   Use char because int might match the return type of a GCC
6419
   builtin and then its argument prototype would still apply.  */
6420
#ifdef __cplusplus
6421
extern "C"
6422
#endif
6423
char $SV_MODULE_FUNC ();
6424
int
6425
main ()
6426
{
6427
return $SV_MODULE_FUNC ();
6428
  ;
6429
  return 0;
6430
}
6431
_ACEOF
6432
if ac_fn_cxx_try_link "$LINENO"; then :
6433
  eval "$as_ac_Lib=yes"
6434
else
6435
  eval "$as_ac_Lib=no"
6436
fi
6437
rm -f core conftest.err conftest.$ac_objext \
6438
    conftest$ac_exeext conftest.$ac_ext
6439
LIBS=$ac_check_lib_save_LIBS
6440
fi
6441
eval ac_res=\$$as_ac_Lib
6442
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6443
$as_echo "$ac_res" >&6; }
6444
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6445
  LIBS="$LIBS -l$SV_MODULE_LIB"
6446
else
6447
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
6448
$as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
6449
fi
6450

    
6451
      fi
6452
   fi
6453
fi
6454

    
6455

    
6456

    
6457
SV_MODULE_MODULE=lrdf
6458
SV_MODULE_VERSION_TEST="lrdf >= 0.2"
6459
SV_MODULE_HEADER=lrdf.h
6460
SV_MODULE_LIB=lrdf
6461
SV_MODULE_FUNC=lrdf_init
6462
SV_MODULE_HAVE=HAVE_$(echo lrdf | tr 'a-z' 'A-Z')
6463
SV_MODULE_FAILED=1
6464
if test -n "$lrdf_LIBS" ; then
6465
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
6466
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
6467
   CXXFLAGS="$CXXFLAGS $lrdf_CFLAGS"
6468
   LIBS="$LIBS $lrdf_LIBS"
6469
   SV_MODULE_FAILED=""
6470
fi
6471
if test -z "$SV_MODULE_VERSION_TEST" ; then
6472
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
6473
fi
6474
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
6475

    
6476
pkg_failed=no
6477
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrdf" >&5
6478
$as_echo_n "checking for lrdf... " >&6; }
6479

    
6480
if test -n "$lrdf_CFLAGS"; then
6481
    pkg_cv_lrdf_CFLAGS="$lrdf_CFLAGS"
6482
 elif test -n "$PKG_CONFIG"; then
6483
    if test -n "$PKG_CONFIG" && \
6484
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6485
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6486
  ac_status=$?
6487
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6488
  test $ac_status = 0; }; then
6489
  pkg_cv_lrdf_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6490
		      test "x$?" != "x0" && pkg_failed=yes
6491
else
6492
  pkg_failed=yes
6493
fi
6494
 else
6495
    pkg_failed=untried
6496
fi
6497
if test -n "$lrdf_LIBS"; then
6498
    pkg_cv_lrdf_LIBS="$lrdf_LIBS"
6499
 elif test -n "$PKG_CONFIG"; then
6500
    if test -n "$PKG_CONFIG" && \
6501
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6502
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6503
  ac_status=$?
6504
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6505
  test $ac_status = 0; }; then
6506
  pkg_cv_lrdf_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6507
		      test "x$?" != "x0" && pkg_failed=yes
6508
else
6509
  pkg_failed=yes
6510
fi
6511
 else
6512
    pkg_failed=untried
6513
fi
6514

    
6515

    
6516

    
6517
if test $pkg_failed = yes; then
6518
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519
$as_echo "no" >&6; }
6520

    
6521
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6522
        _pkg_short_errors_supported=yes
6523
else
6524
        _pkg_short_errors_supported=no
6525
fi
6526
        if test $_pkg_short_errors_supported = yes; then
6527
	        lrdf_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6528
        else
6529
	        lrdf_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6530
        fi
6531
	# Put the nasty error message in config.log where it belongs
6532
	echo "$lrdf_PKG_ERRORS" >&5
6533

    
6534
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
6535
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6536
elif test $pkg_failed = untried; then
6537
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6538
$as_echo "no" >&6; }
6539
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
6540
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6541
else
6542
	lrdf_CFLAGS=$pkg_cv_lrdf_CFLAGS
6543
	lrdf_LIBS=$pkg_cv_lrdf_LIBS
6544
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6545
$as_echo "yes" >&6; }
6546
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $lrdf_CFLAGS";LIBS="$LIBS $lrdf_LIBS";SV_MODULE_FAILED=""
6547
fi
6548
fi
6549
if test -n "$SV_MODULE_FAILED"; then
6550
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
6551
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
6552
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6553
  HAVES="$HAVES $SV_MODULE_HAVE"
6554
else
6555
  as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
6556
fi
6557

    
6558

    
6559
   if test -n "$SV_MODULE_LIB"; then
6560
     as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
6561
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
6562
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
6563
if eval \${$as_ac_Lib+:} false; then :
6564
  $as_echo_n "(cached) " >&6
6565
else
6566
  ac_check_lib_save_LIBS=$LIBS
6567
LIBS="-l$SV_MODULE_LIB  $LIBS"
6568
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6569
/* end confdefs.h.  */
6570

    
6571
/* Override any GCC internal prototype to avoid an error.
6572
   Use char because int might match the return type of a GCC
6573
   builtin and then its argument prototype would still apply.  */
6574
#ifdef __cplusplus
6575
extern "C"
6576
#endif
6577
char $SV_MODULE_FUNC ();
6578
int
6579
main ()
6580
{
6581
return $SV_MODULE_FUNC ();
6582
  ;
6583
  return 0;
6584
}
6585
_ACEOF
6586
if ac_fn_cxx_try_link "$LINENO"; then :
6587
  eval "$as_ac_Lib=yes"
6588
else
6589
  eval "$as_ac_Lib=no"
6590
fi
6591
rm -f core conftest.err conftest.$ac_objext \
6592
    conftest$ac_exeext conftest.$ac_ext
6593
LIBS=$ac_check_lib_save_LIBS
6594
fi
6595
eval ac_res=\$$as_ac_Lib
6596
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6597
$as_echo "$ac_res" >&6; }
6598
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6599
  LIBS="$LIBS -l$SV_MODULE_LIB"
6600
else
6601
  as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
6602
fi
6603

    
6604
   fi
6605
fi
6606

    
6607

    
6608
SV_MODULE_MODULE=oggz
6609
SV_MODULE_VERSION_TEST="oggz >= 1.0.0"
6610
SV_MODULE_HEADER=oggz/oggz.h
6611
SV_MODULE_LIB=oggz
6612
SV_MODULE_FUNC=oggz_run
6613
SV_MODULE_HAVE=HAVE_$(echo oggz | tr 'a-z' 'A-Z')
6614
SV_MODULE_FAILED=1
6615
if test -n "$oggz_LIBS" ; then
6616
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
6617
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
6618
   CXXFLAGS="$CXXFLAGS $oggz_CFLAGS"
6619
   LIBS="$LIBS $oggz_LIBS"
6620
   SV_MODULE_FAILED=""
6621
fi
6622
if test -z "$SV_MODULE_VERSION_TEST" ; then
6623
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
6624
fi
6625
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
6626

    
6627
pkg_failed=no
6628
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for oggz" >&5
6629
$as_echo_n "checking for oggz... " >&6; }
6630

    
6631
if test -n "$oggz_CFLAGS"; then
6632
    pkg_cv_oggz_CFLAGS="$oggz_CFLAGS"
6633
 elif test -n "$PKG_CONFIG"; then
6634
    if test -n "$PKG_CONFIG" && \
6635
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6636
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6637
  ac_status=$?
6638
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6639
  test $ac_status = 0; }; then
6640
  pkg_cv_oggz_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6641
		      test "x$?" != "x0" && pkg_failed=yes
6642
else
6643
  pkg_failed=yes
6644
fi
6645
 else
6646
    pkg_failed=untried
6647
fi
6648
if test -n "$oggz_LIBS"; then
6649
    pkg_cv_oggz_LIBS="$oggz_LIBS"
6650
 elif test -n "$PKG_CONFIG"; then
6651
    if test -n "$PKG_CONFIG" && \
6652
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6653
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6654
  ac_status=$?
6655
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6656
  test $ac_status = 0; }; then
6657
  pkg_cv_oggz_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6658
		      test "x$?" != "x0" && pkg_failed=yes
6659
else
6660
  pkg_failed=yes
6661
fi
6662
 else
6663
    pkg_failed=untried
6664
fi
6665

    
6666

    
6667

    
6668
if test $pkg_failed = yes; then
6669
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6670
$as_echo "no" >&6; }
6671

    
6672
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6673
        _pkg_short_errors_supported=yes
6674
else
6675
        _pkg_short_errors_supported=no
6676
fi
6677
        if test $_pkg_short_errors_supported = yes; then
6678
	        oggz_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6679
        else
6680
	        oggz_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6681
        fi
6682
	# Put the nasty error message in config.log where it belongs
6683
	echo "$oggz_PKG_ERRORS" >&5
6684

    
6685
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
6686
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6687
elif test $pkg_failed = untried; then
6688
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6689
$as_echo "no" >&6; }
6690
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
6691
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6692
else
6693
	oggz_CFLAGS=$pkg_cv_oggz_CFLAGS
6694
	oggz_LIBS=$pkg_cv_oggz_LIBS
6695
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6696
$as_echo "yes" >&6; }
6697
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $oggz_CFLAGS";LIBS="$LIBS $oggz_LIBS";SV_MODULE_FAILED=""
6698
fi
6699
fi
6700
if test -n "$SV_MODULE_FAILED"; then
6701
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
6702
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
6703
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6704
  HAVES="$HAVES $SV_MODULE_HAVE"
6705
else
6706
  as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
6707
fi
6708

    
6709

    
6710
   if test -n "$SV_MODULE_LIB"; then
6711
     as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
6712
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
6713
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
6714
if eval \${$as_ac_Lib+:} false; then :
6715
  $as_echo_n "(cached) " >&6
6716
else
6717
  ac_check_lib_save_LIBS=$LIBS
6718
LIBS="-l$SV_MODULE_LIB  $LIBS"
6719
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720
/* end confdefs.h.  */
6721

    
6722
/* Override any GCC internal prototype to avoid an error.
6723
   Use char because int might match the return type of a GCC
6724
   builtin and then its argument prototype would still apply.  */
6725
#ifdef __cplusplus
6726
extern "C"
6727
#endif
6728
char $SV_MODULE_FUNC ();
6729
int
6730
main ()
6731
{
6732
return $SV_MODULE_FUNC ();
6733
  ;
6734
  return 0;
6735
}
6736
_ACEOF
6737
if ac_fn_cxx_try_link "$LINENO"; then :
6738
  eval "$as_ac_Lib=yes"
6739
else
6740
  eval "$as_ac_Lib=no"
6741
fi
6742
rm -f core conftest.err conftest.$ac_objext \
6743
    conftest$ac_exeext conftest.$ac_ext
6744
LIBS=$ac_check_lib_save_LIBS
6745
fi
6746
eval ac_res=\$$as_ac_Lib
6747
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6748
$as_echo "$ac_res" >&6; }
6749
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6750
  LIBS="$LIBS -l$SV_MODULE_LIB"
6751
else
6752
  as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
6753
fi
6754

    
6755
   fi
6756
fi
6757

    
6758

    
6759
SV_MODULE_MODULE=fishsound
6760
SV_MODULE_VERSION_TEST="fishsound >= 1.0.0"
6761
SV_MODULE_HEADER=fishsound/fishsound.h
6762
SV_MODULE_LIB=fishsound
6763
SV_MODULE_FUNC=fish_sound_new
6764
SV_MODULE_HAVE=HAVE_$(echo fishsound | tr 'a-z' 'A-Z')
6765
SV_MODULE_FAILED=1
6766
if test -n "$fishsound_LIBS" ; then
6767
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
6768
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
6769
   CXXFLAGS="$CXXFLAGS $fishsound_CFLAGS"
6770
   LIBS="$LIBS $fishsound_LIBS"
6771
   SV_MODULE_FAILED=""
6772
fi
6773
if test -z "$SV_MODULE_VERSION_TEST" ; then
6774
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
6775
fi
6776
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
6777

    
6778
pkg_failed=no
6779
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fishsound" >&5
6780
$as_echo_n "checking for fishsound... " >&6; }
6781

    
6782
if test -n "$fishsound_CFLAGS"; then
6783
    pkg_cv_fishsound_CFLAGS="$fishsound_CFLAGS"
6784
 elif test -n "$PKG_CONFIG"; then
6785
    if test -n "$PKG_CONFIG" && \
6786
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6787
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6788
  ac_status=$?
6789
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6790
  test $ac_status = 0; }; then
6791
  pkg_cv_fishsound_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6792
		      test "x$?" != "x0" && pkg_failed=yes
6793
else
6794
  pkg_failed=yes
6795
fi
6796
 else
6797
    pkg_failed=untried
6798
fi
6799
if test -n "$fishsound_LIBS"; then
6800
    pkg_cv_fishsound_LIBS="$fishsound_LIBS"
6801
 elif test -n "$PKG_CONFIG"; then
6802
    if test -n "$PKG_CONFIG" && \
6803
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6804
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6805
  ac_status=$?
6806
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6807
  test $ac_status = 0; }; then
6808
  pkg_cv_fishsound_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6809
		      test "x$?" != "x0" && pkg_failed=yes
6810
else
6811
  pkg_failed=yes
6812
fi
6813
 else
6814
    pkg_failed=untried
6815
fi
6816

    
6817

    
6818

    
6819
if test $pkg_failed = yes; then
6820
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6821
$as_echo "no" >&6; }
6822

    
6823
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6824
        _pkg_short_errors_supported=yes
6825
else
6826
        _pkg_short_errors_supported=no
6827
fi
6828
        if test $_pkg_short_errors_supported = yes; then
6829
	        fishsound_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6830
        else
6831
	        fishsound_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6832
        fi
6833
	# Put the nasty error message in config.log where it belongs
6834
	echo "$fishsound_PKG_ERRORS" >&5
6835

    
6836
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
6837
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6838
elif test $pkg_failed = untried; then
6839
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840
$as_echo "no" >&6; }
6841
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
6842
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6843
else
6844
	fishsound_CFLAGS=$pkg_cv_fishsound_CFLAGS
6845
	fishsound_LIBS=$pkg_cv_fishsound_LIBS
6846
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6847
$as_echo "yes" >&6; }
6848
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $fishsound_CFLAGS";LIBS="$LIBS $fishsound_LIBS";SV_MODULE_FAILED=""
6849
fi
6850
fi
6851
if test -n "$SV_MODULE_FAILED"; then
6852
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
6853
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
6854
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6855
  HAVES="$HAVES $SV_MODULE_HAVE"
6856
else
6857
  as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
6858
fi
6859

    
6860

    
6861
   if test -n "$SV_MODULE_LIB"; then
6862
     as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
6863
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
6864
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
6865
if eval \${$as_ac_Lib+:} false; then :
6866
  $as_echo_n "(cached) " >&6
6867
else
6868
  ac_check_lib_save_LIBS=$LIBS
6869
LIBS="-l$SV_MODULE_LIB  $LIBS"
6870
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871
/* end confdefs.h.  */
6872

    
6873
/* Override any GCC internal prototype to avoid an error.
6874
   Use char because int might match the return type of a GCC
6875
   builtin and then its argument prototype would still apply.  */
6876
#ifdef __cplusplus
6877
extern "C"
6878
#endif
6879
char $SV_MODULE_FUNC ();
6880
int
6881
main ()
6882
{
6883
return $SV_MODULE_FUNC ();
6884
  ;
6885
  return 0;
6886
}
6887
_ACEOF
6888
if ac_fn_cxx_try_link "$LINENO"; then :
6889
  eval "$as_ac_Lib=yes"
6890
else
6891
  eval "$as_ac_Lib=no"
6892
fi
6893
rm -f core conftest.err conftest.$ac_objext \
6894
    conftest$ac_exeext conftest.$ac_ext
6895
LIBS=$ac_check_lib_save_LIBS
6896
fi
6897
eval ac_res=\$$as_ac_Lib
6898
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6899
$as_echo "$ac_res" >&6; }
6900
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6901
  LIBS="$LIBS -l$SV_MODULE_LIB"
6902
else
6903
  as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
6904
fi
6905

    
6906
   fi
6907
fi
6908

    
6909

    
6910
SV_MODULE_MODULE=mad
6911
SV_MODULE_VERSION_TEST="mad >= 0.15.0"
6912
SV_MODULE_HEADER=mad.h
6913
SV_MODULE_LIB=mad
6914
SV_MODULE_FUNC=mad_decoder_init
6915
SV_MODULE_HAVE=HAVE_$(echo mad | tr 'a-z' 'A-Z')
6916
SV_MODULE_FAILED=1
6917
if test -n "$mad_LIBS" ; then
6918
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
6919
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
6920
   CXXFLAGS="$CXXFLAGS $mad_CFLAGS"
6921
   LIBS="$LIBS $mad_LIBS"
6922
   SV_MODULE_FAILED=""
6923
fi
6924
if test -z "$SV_MODULE_VERSION_TEST" ; then
6925
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
6926
fi
6927
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
6928

    
6929
pkg_failed=no
6930
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mad" >&5
6931
$as_echo_n "checking for mad... " >&6; }
6932

    
6933
if test -n "$mad_CFLAGS"; then
6934
    pkg_cv_mad_CFLAGS="$mad_CFLAGS"
6935
 elif test -n "$PKG_CONFIG"; then
6936
    if test -n "$PKG_CONFIG" && \
6937
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6938
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6939
  ac_status=$?
6940
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6941
  test $ac_status = 0; }; then
6942
  pkg_cv_mad_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6943
		      test "x$?" != "x0" && pkg_failed=yes
6944
else
6945
  pkg_failed=yes
6946
fi
6947
 else
6948
    pkg_failed=untried
6949
fi
6950
if test -n "$mad_LIBS"; then
6951
    pkg_cv_mad_LIBS="$mad_LIBS"
6952
 elif test -n "$PKG_CONFIG"; then
6953
    if test -n "$PKG_CONFIG" && \
6954
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6955
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6956
  ac_status=$?
6957
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6958
  test $ac_status = 0; }; then
6959
  pkg_cv_mad_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6960
		      test "x$?" != "x0" && pkg_failed=yes
6961
else
6962
  pkg_failed=yes
6963
fi
6964
 else
6965
    pkg_failed=untried
6966
fi
6967

    
6968

    
6969

    
6970
if test $pkg_failed = yes; then
6971
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972
$as_echo "no" >&6; }
6973

    
6974
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6975
        _pkg_short_errors_supported=yes
6976
else
6977
        _pkg_short_errors_supported=no
6978
fi
6979
        if test $_pkg_short_errors_supported = yes; then
6980
	        mad_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6981
        else
6982
	        mad_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6983
        fi
6984
	# Put the nasty error message in config.log where it belongs
6985
	echo "$mad_PKG_ERRORS" >&5
6986

    
6987
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
6988
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6989
elif test $pkg_failed = untried; then
6990
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6991
$as_echo "no" >&6; }
6992
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
6993
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6994
else
6995
	mad_CFLAGS=$pkg_cv_mad_CFLAGS
6996
	mad_LIBS=$pkg_cv_mad_LIBS
6997
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6998
$as_echo "yes" >&6; }
6999
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $mad_CFLAGS";LIBS="$LIBS $mad_LIBS";SV_MODULE_FAILED=""
7000
fi
7001
fi
7002
if test -n "$SV_MODULE_FAILED"; then
7003
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
7004
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
7005
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7006
  HAVES="$HAVES $SV_MODULE_HAVE"
7007
else
7008
  as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
7009
fi
7010

    
7011

    
7012
   if test -n "$SV_MODULE_LIB"; then
7013
     as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
7014
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
7015
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
7016
if eval \${$as_ac_Lib+:} false; then :
7017
  $as_echo_n "(cached) " >&6
7018
else
7019
  ac_check_lib_save_LIBS=$LIBS
7020
LIBS="-l$SV_MODULE_LIB  $LIBS"
7021
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022
/* end confdefs.h.  */
7023

    
7024
/* Override any GCC internal prototype to avoid an error.
7025
   Use char because int might match the return type of a GCC
7026
   builtin and then its argument prototype would still apply.  */
7027
#ifdef __cplusplus
7028
extern "C"
7029
#endif
7030
char $SV_MODULE_FUNC ();
7031
int
7032
main ()
7033
{
7034
return $SV_MODULE_FUNC ();
7035
  ;
7036
  return 0;
7037
}
7038
_ACEOF
7039
if ac_fn_cxx_try_link "$LINENO"; then :
7040
  eval "$as_ac_Lib=yes"
7041
else
7042
  eval "$as_ac_Lib=no"
7043
fi
7044
rm -f core conftest.err conftest.$ac_objext \
7045
    conftest$ac_exeext conftest.$ac_ext
7046
LIBS=$ac_check_lib_save_LIBS
7047
fi
7048
eval ac_res=\$$as_ac_Lib
7049
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7050
$as_echo "$ac_res" >&6; }
7051
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7052
  LIBS="$LIBS -l$SV_MODULE_LIB"
7053
else
7054
  as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
7055
fi
7056

    
7057
   fi
7058
fi
7059

    
7060

    
7061
SV_MODULE_MODULE=id3tag
7062
SV_MODULE_VERSION_TEST="id3tag >= 0.15.0"
7063
SV_MODULE_HEADER=id3tag.h
7064
SV_MODULE_LIB=id3tag
7065
SV_MODULE_FUNC=id3_tag_new
7066
SV_MODULE_HAVE=HAVE_$(echo id3tag | tr 'a-z' 'A-Z')
7067
SV_MODULE_FAILED=1
7068
if test -n "$id3tag_LIBS" ; then
7069
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
7070
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
7071
   CXXFLAGS="$CXXFLAGS $id3tag_CFLAGS"
7072
   LIBS="$LIBS $id3tag_LIBS"
7073
   SV_MODULE_FAILED=""
7074
fi
7075
if test -z "$SV_MODULE_VERSION_TEST" ; then
7076
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
7077
fi
7078
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
7079

    
7080
pkg_failed=no
7081
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for id3tag" >&5
7082
$as_echo_n "checking for id3tag... " >&6; }
7083

    
7084
if test -n "$id3tag_CFLAGS"; then
7085
    pkg_cv_id3tag_CFLAGS="$id3tag_CFLAGS"
7086
 elif test -n "$PKG_CONFIG"; then
7087
    if test -n "$PKG_CONFIG" && \
7088
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
7089
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
7090
  ac_status=$?
7091
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7092
  test $ac_status = 0; }; then
7093
  pkg_cv_id3tag_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
7094
		      test "x$?" != "x0" && pkg_failed=yes
7095
else
7096
  pkg_failed=yes
7097
fi
7098
 else
7099
    pkg_failed=untried
7100
fi
7101
if test -n "$id3tag_LIBS"; then
7102
    pkg_cv_id3tag_LIBS="$id3tag_LIBS"
7103
 elif test -n "$PKG_CONFIG"; then
7104
    if test -n "$PKG_CONFIG" && \
7105
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
7106
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
7107
  ac_status=$?
7108
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7109
  test $ac_status = 0; }; then
7110
  pkg_cv_id3tag_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
7111
		      test "x$?" != "x0" && pkg_failed=yes
7112
else
7113
  pkg_failed=yes
7114
fi
7115
 else
7116
    pkg_failed=untried
7117
fi
7118

    
7119

    
7120

    
7121
if test $pkg_failed = yes; then
7122
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7123
$as_echo "no" >&6; }
7124

    
7125
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7126
        _pkg_short_errors_supported=yes
7127
else
7128
        _pkg_short_errors_supported=no
7129
fi
7130
        if test $_pkg_short_errors_supported = yes; then
7131
	        id3tag_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
7132
        else
7133
	        id3tag_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
7134
        fi
7135
	# Put the nasty error message in config.log where it belongs
7136
	echo "$id3tag_PKG_ERRORS" >&5
7137

    
7138
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
7139
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
7140
elif test $pkg_failed = untried; then
7141
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142
$as_echo "no" >&6; }
7143
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
7144
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
7145
else
7146
	id3tag_CFLAGS=$pkg_cv_id3tag_CFLAGS
7147
	id3tag_LIBS=$pkg_cv_id3tag_LIBS
7148
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7149
$as_echo "yes" >&6; }
7150
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $id3tag_CFLAGS";LIBS="$LIBS $id3tag_LIBS";SV_MODULE_FAILED=""
7151
fi
7152
fi
7153
if test -n "$SV_MODULE_FAILED"; then
7154
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
7155
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
7156
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7157
  HAVES="$HAVES $SV_MODULE_HAVE"
7158
else
7159
  as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
7160
fi
7161

    
7162

    
7163
   if test -n "$SV_MODULE_LIB"; then
7164
     as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
7165
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
7166
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
7167
if eval \${$as_ac_Lib+:} false; then :
7168
  $as_echo_n "(cached) " >&6
7169
else
7170
  ac_check_lib_save_LIBS=$LIBS
7171
LIBS="-l$SV_MODULE_LIB  $LIBS"
7172
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173
/* end confdefs.h.  */
7174

    
7175
/* Override any GCC internal prototype to avoid an error.
7176
   Use char because int might match the return type of a GCC
7177
   builtin and then its argument prototype would still apply.  */
7178
#ifdef __cplusplus
7179
extern "C"
7180
#endif
7181
char $SV_MODULE_FUNC ();
7182
int
7183
main ()
7184
{
7185
return $SV_MODULE_FUNC ();
7186
  ;
7187
  return 0;
7188
}
7189
_ACEOF
7190
if ac_fn_cxx_try_link "$LINENO"; then :
7191
  eval "$as_ac_Lib=yes"
7192
else
7193
  eval "$as_ac_Lib=no"
7194
fi
7195
rm -f core conftest.err conftest.$ac_objext \
7196
    conftest$ac_exeext conftest.$ac_ext
7197
LIBS=$ac_check_lib_save_LIBS
7198
fi
7199
eval ac_res=\$$as_ac_Lib
7200
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7201
$as_echo "$ac_res" >&6; }
7202
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7203
  LIBS="$LIBS -l$SV_MODULE_LIB"
7204
else
7205
  as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
7206
fi
7207

    
7208
   fi
7209
fi
7210

    
7211

    
7212
SV_MODULE_MODULE=opus
7213
SV_MODULE_VERSION_TEST="opusfile"
7214
SV_MODULE_HEADER=opus/opusfile.h
7215
SV_MODULE_LIB=opusfile
7216
SV_MODULE_FUNC=op_read_float
7217
SV_MODULE_HAVE=HAVE_$(echo opus | tr 'a-z' 'A-Z')
7218
SV_MODULE_FAILED=1
7219
if test -n "$opus_LIBS" ; then
7220
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
7221
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
7222
   CXXFLAGS="$CXXFLAGS $opus_CFLAGS"
7223
   LIBS="$LIBS $opus_LIBS"
7224
   SV_MODULE_FAILED=""
7225
fi
7226
if test -z "$SV_MODULE_VERSION_TEST" ; then
7227
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
7228
fi
7229
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
7230

    
7231
pkg_failed=no
7232
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for opus" >&5
7233
$as_echo_n "checking for opus... " >&6; }
7234

    
7235
if test -n "$opus_CFLAGS"; then
7236
    pkg_cv_opus_CFLAGS="$opus_CFLAGS"
7237
 elif test -n "$PKG_CONFIG"; then
7238
    if test -n "$PKG_CONFIG" && \
7239
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
7240
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
7241
  ac_status=$?
7242
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7243
  test $ac_status = 0; }; then
7244
  pkg_cv_opus_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
7245
		      test "x$?" != "x0" && pkg_failed=yes
7246
else
7247
  pkg_failed=yes
7248
fi
7249
 else
7250
    pkg_failed=untried
7251
fi
7252
if test -n "$opus_LIBS"; then
7253
    pkg_cv_opus_LIBS="$opus_LIBS"
7254
 elif test -n "$PKG_CONFIG"; then
7255
    if test -n "$PKG_CONFIG" && \
7256
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
7257
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
7258
  ac_status=$?
7259
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7260
  test $ac_status = 0; }; then
7261
  pkg_cv_opus_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
7262
		      test "x$?" != "x0" && pkg_failed=yes
7263
else
7264
  pkg_failed=yes
7265
fi
7266
 else
7267
    pkg_failed=untried
7268
fi
7269

    
7270

    
7271

    
7272
if test $pkg_failed = yes; then
7273
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7274
$as_echo "no" >&6; }
7275

    
7276
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7277
        _pkg_short_errors_supported=yes
7278
else
7279
        _pkg_short_errors_supported=no
7280
fi
7281
        if test $_pkg_short_errors_supported = yes; then
7282
	        opus_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
7283
        else
7284
	        opus_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
7285
        fi
7286
	# Put the nasty error message in config.log where it belongs
7287
	echo "$opus_PKG_ERRORS" >&5
7288

    
7289
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
7290
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
7291
elif test $pkg_failed = untried; then
7292
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293
$as_echo "no" >&6; }
7294
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
7295
$as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
7296
else
7297
	opus_CFLAGS=$pkg_cv_opus_CFLAGS
7298
	opus_LIBS=$pkg_cv_opus_LIBS
7299
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7300
$as_echo "yes" >&6; }
7301
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $opus_CFLAGS";LIBS="$LIBS $opus_LIBS";SV_MODULE_FAILED=""
7302
fi
7303
fi
7304
if test -n "$SV_MODULE_FAILED"; then
7305
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
7306
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
7307
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7308
  HAVES="$HAVES $SV_MODULE_HAVE"
7309
else
7310
  as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
7311
fi
7312

    
7313

    
7314
   if test -n "$SV_MODULE_LIB"; then
7315
     as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
7316
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
7317
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
7318
if eval \${$as_ac_Lib+:} false; then :
7319
  $as_echo_n "(cached) " >&6
7320
else
7321
  ac_check_lib_save_LIBS=$LIBS
7322
LIBS="-l$SV_MODULE_LIB  $LIBS"
7323
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7324
/* end confdefs.h.  */
7325

    
7326
/* Override any GCC internal prototype to avoid an error.
7327
   Use char because int might match the return type of a GCC
7328
   builtin and then its argument prototype would still apply.  */
7329
#ifdef __cplusplus
7330
extern "C"
7331
#endif
7332
char $SV_MODULE_FUNC ();
7333
int
7334
main ()
7335
{
7336
return $SV_MODULE_FUNC ();
7337
  ;
7338
  return 0;
7339
}
7340
_ACEOF
7341
if ac_fn_cxx_try_link "$LINENO"; then :
7342
  eval "$as_ac_Lib=yes"
7343
else
7344
  eval "$as_ac_Lib=no"
7345
fi
7346
rm -f core conftest.err conftest.$ac_objext \
7347
    conftest$ac_exeext conftest.$ac_ext
7348
LIBS=$ac_check_lib_save_LIBS
7349
fi
7350
eval ac_res=\$$as_ac_Lib
7351
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7352
$as_echo "$ac_res" >&6; }
7353
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7354
  LIBS="$LIBS -l$SV_MODULE_LIB"
7355
else
7356
  as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
7357
fi
7358

    
7359
   fi
7360
fi
7361

    
7362

    
7363
# Link in -lX11 if it exists -- this is for the X error handler
7364

    
7365
SV_MODULE_MODULE=X11
7366
SV_MODULE_VERSION_TEST="x11 >= 1.0.0"
7367
SV_MODULE_HEADER=X11/X.h
7368
SV_MODULE_LIB=x11
7369
SV_MODULE_FUNC=XGetErrorText
7370
SV_MODULE_HAVE=HAVE_$(echo X11 | tr 'a-z' 'A-Z')
7371
SV_MODULE_FAILED=1
7372
if test -n "$X11_LIBS" ; then
7373
   { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
7374
$as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
7375
   CXXFLAGS="$CXXFLAGS $X11_CFLAGS"
7376
   LIBS="$LIBS $X11_LIBS"
7377
   SV_MODULE_FAILED=""
7378
fi
7379
if test -z "$SV_MODULE_VERSION_TEST" ; then
7380
   SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
7381
fi
7382
if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
7383

    
7384
pkg_failed=no
7385
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
7386
$as_echo_n "checking for X11... " >&6; }
7387

    
7388
if test -n "$X11_CFLAGS"; then
7389
    pkg_cv_X11_CFLAGS="$X11_CFLAGS"
7390
 elif test -n "$PKG_CONFIG"; then
7391
    if test -n "$PKG_CONFIG" && \
7392
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
7393
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
7394
  ac_status=$?
7395
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7396
  test $ac_status = 0; }; then
7397
  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
7398
		      test "x$?" != "x0" && pkg_failed=yes
7399
else
7400
  pkg_failed=yes
7401
fi
7402
 else
7403
    pkg_failed=untried
7404
fi
7405
if test -n "$X11_LIBS"; then
7406
    pkg_cv_X11_LIBS="$X11_LIBS"
7407
 elif test -n "$PKG_CONFIG"; then
7408
    if test -n "$PKG_CONFIG" && \
7409
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
7410
  ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
7411
  ac_status=$?
7412
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7413
  test $ac_status = 0; }; then
7414
  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
7415
		      test "x$?" != "x0" && pkg_failed=yes
7416
else
7417
  pkg_failed=yes
7418
fi
7419
 else
7420
    pkg_failed=untried
7421
fi
7422

    
7423

    
7424

    
7425
if test $pkg_failed = yes; then
7426
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427
$as_echo "no" >&6; }
7428

    
7429
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7430
        _pkg_short_errors_supported=yes
7431
else
7432
        _pkg_short_errors_supported=no
7433
fi
7434
        if test $_pkg_short_errors_supported = yes; then
7435
	        X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
7436
        else
7437
	        X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
7438
        fi
7439
	# Put the nasty error message in config.log where it belongs
7440
	echo "$X11_PKG_ERRORS" >&5
7441

    
7442
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
7443
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
7444
elif test $pkg_failed = untried; then
7445
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446
$as_echo "no" >&6; }
7447
	{ $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
7448
$as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
7449
else
7450
	X11_CFLAGS=$pkg_cv_X11_CFLAGS
7451
	X11_LIBS=$pkg_cv_X11_LIBS
7452
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7453
$as_echo "yes" >&6; }
7454
	HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $X11_CFLAGS";LIBS="$LIBS $X11_LIBS";SV_MODULE_FAILED=""
7455
fi
7456
fi
7457
if test -n "$SV_MODULE_FAILED"; then
7458
   as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
7459
ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
7460
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7461
  HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
7462
else
7463
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
7464
$as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
7465
fi
7466

    
7467

    
7468
   if test -z "$SV_MODULE_FAILED"; then
7469
      if test -n "$SV_MODULE_LIB"; then
7470
           as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
7471
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
7472
$as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
7473
if eval \${$as_ac_Lib+:} false; then :
7474
  $as_echo_n "(cached) " >&6
7475
else
7476
  ac_check_lib_save_LIBS=$LIBS
7477
LIBS="-l$SV_MODULE_LIB  $LIBS"
7478
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479
/* end confdefs.h.  */
7480

    
7481
/* Override any GCC internal prototype to avoid an error.
7482
   Use char because int might match the return type of a GCC
7483
   builtin and then its argument prototype would still apply.  */
7484
#ifdef __cplusplus
7485
extern "C"
7486
#endif
7487
char $SV_MODULE_FUNC ();
7488
int
7489
main ()
7490
{
7491
return $SV_MODULE_FUNC ();
7492
  ;
7493
  return 0;
7494
}
7495
_ACEOF
7496
if ac_fn_cxx_try_link "$LINENO"; then :
7497
  eval "$as_ac_Lib=yes"
7498
else
7499
  eval "$as_ac_Lib=no"
7500
fi
7501
rm -f core conftest.err conftest.$ac_objext \
7502
    conftest$ac_exeext conftest.$ac_ext
7503
LIBS=$ac_check_lib_save_LIBS
7504
fi
7505
eval ac_res=\$$as_ac_Lib
7506
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7507
$as_echo "$ac_res" >&6; }
7508
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7509
  LIBS="$LIBS -l$SV_MODULE_LIB"
7510
else
7511
  { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
7512
$as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
7513
fi
7514

    
7515
      fi
7516
   fi
7517
fi
7518

    
7519

    
7520

    
7521

    
7522

    
7523

    
7524

    
7525

    
7526

    
7527

    
7528

    
7529

    
7530

    
7531

    
7532

    
7533

    
7534

    
7535

    
7536

    
7537

    
7538
ac_config_files="$ac_config_files config.pri"
7539

    
7540

    
7541
cat >confcache <<\_ACEOF
7542
# This file is a shell script that caches the results of configure
7543
# tests run on this system so they can be shared between configure
7544
# scripts and configure runs, see configure's option --config-cache.
7545
# It is not useful on other systems.  If it contains results you don't
7546
# want to keep, you may remove or edit it.
7547
#
7548
# config.status only pays attention to the cache file if you give it
7549
# the --recheck option to rerun configure.
7550
#
7551
# `ac_cv_env_foo' variables (set or unset) will be overridden when
7552
# loading this file, other *unset* `ac_cv_foo' will be assigned the
7553
# following values.
7554

    
7555
_ACEOF
7556

    
7557
# The following way of writing the cache mishandles newlines in values,
7558
# but we know of no workaround that is simple, portable, and efficient.
7559
# So, we kill variables containing newlines.
7560
# Ultrix sh set writes to stderr and can't be redirected directly,
7561
# and sets the high bit in the cache file unless we assign to the vars.
7562
(
7563
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7564
    eval ac_val=\$$ac_var
7565
    case $ac_val in #(
7566
    *${as_nl}*)
7567
      case $ac_var in #(
7568
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7569
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7570
      esac
7571
      case $ac_var in #(
7572
      _ | IFS | as_nl) ;; #(
7573
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7574
      *) { eval $ac_var=; unset $ac_var;} ;;
7575
      esac ;;
7576
    esac
7577
  done
7578

    
7579
  (set) 2>&1 |
7580
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
7581
    *${as_nl}ac_space=\ *)
7582
      # `set' does not quote correctly, so add quotes: double-quote
7583
      # substitution turns \\\\ into \\, and sed turns \\ into \.
7584
      sed -n \
7585
	"s/'/'\\\\''/g;
7586
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7587
      ;; #(
7588
    *)
7589
      # `set' quotes correctly as required by POSIX, so do not add quotes.
7590
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7591
      ;;
7592
    esac |
7593
    sort
7594
) |
7595
  sed '
7596
     /^ac_cv_env_/b end
7597
     t clear
7598
     :clear
7599
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7600
     t end
7601
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7602
     :end' >>confcache
7603
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7604
  if test -w "$cache_file"; then
7605
    if test "x$cache_file" != "x/dev/null"; then
7606
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7607
$as_echo "$as_me: updating cache $cache_file" >&6;}
7608
      if test ! -f "$cache_file" || test -h "$cache_file"; then
7609
	cat confcache >"$cache_file"
7610
      else
7611
        case $cache_file in #(
7612
        */* | ?:*)
7613
	  mv -f confcache "$cache_file"$$ &&
7614
	  mv -f "$cache_file"$$ "$cache_file" ;; #(
7615
        *)
7616
	  mv -f confcache "$cache_file" ;;
7617
	esac
7618
      fi
7619
    fi
7620
  else
7621
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7622
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7623
  fi
7624
fi
7625
rm -f confcache
7626

    
7627
test "x$prefix" = xNONE && prefix=$ac_default_prefix
7628
# Let make expand exec_prefix.
7629
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7630

    
7631
# Transform confdefs.h into DEFS.
7632
# Protect against shell expansion while executing Makefile rules.
7633
# Protect against Makefile macro expansion.
7634
#
7635
# If the first sed substitution is executed (which looks for macros that
7636
# take arguments), then branch to the quote section.  Otherwise,
7637
# look for a macro that doesn't take arguments.
7638
ac_script='
7639
:mline
7640
/\\$/{
7641
 N
7642
 s,\\\n,,
7643
 b mline
7644
}
7645
t clear
7646
:clear
7647
s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
7648
t quote
7649
s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
7650
t quote
7651
b any
7652
:quote
7653
s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
7654
s/\[/\\&/g
7655
s/\]/\\&/g
7656
s/\$/$$/g
7657
H
7658
:any
7659
${
7660
	g
7661
	s/^\n//
7662
	s/\n/ /g
7663
	p
7664
}
7665
'
7666
DEFS=`sed -n "$ac_script" confdefs.h`
7667

    
7668

    
7669
ac_libobjs=
7670
ac_ltlibobjs=
7671
U=
7672
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7673
  # 1. Remove the extension, and $U if already installed.
7674
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7675
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7676
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
7677
  #    will be set to the directory where LIBOBJS objects are built.
7678
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7679
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7680
done
7681
LIBOBJS=$ac_libobjs
7682

    
7683
LTLIBOBJS=$ac_ltlibobjs
7684

    
7685

    
7686

    
7687
: "${CONFIG_STATUS=./config.status}"
7688
ac_write_fail=0
7689
ac_clean_files_save=$ac_clean_files
7690
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7691
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7692
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7693
as_write_fail=0
7694
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7695
#! $SHELL
7696
# Generated by $as_me.
7697
# Run this file to recreate the current configuration.
7698
# Compiler output produced by configure, useful for debugging
7699
# configure, is in config.log if it exists.
7700

    
7701
debug=false
7702
ac_cs_recheck=false
7703
ac_cs_silent=false
7704

    
7705
SHELL=\${CONFIG_SHELL-$SHELL}
7706
export SHELL
7707
_ASEOF
7708
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7709
## -------------------- ##
7710
## M4sh Initialization. ##
7711
## -------------------- ##
7712

    
7713
# Be more Bourne compatible
7714
DUALCASE=1; export DUALCASE # for MKS sh
7715
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7716
  emulate sh
7717
  NULLCMD=:
7718
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7719
  # is contrary to our usage.  Disable this feature.
7720
  alias -g '${1+"$@"}'='"$@"'
7721
  setopt NO_GLOB_SUBST
7722
else
7723
  case `(set -o) 2>/dev/null` in #(
7724
  *posix*) :
7725
    set -o posix ;; #(
7726
  *) :
7727
     ;;
7728
esac
7729
fi
7730

    
7731

    
7732
as_nl='
7733
'
7734
export as_nl
7735
# Printing a long string crashes Solaris 7 /usr/bin/printf.
7736
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7737
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7738
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7739
# Prefer a ksh shell builtin over an external printf program on Solaris,
7740
# but without wasting forks for bash or zsh.
7741
if test -z "$BASH_VERSION$ZSH_VERSION" \
7742
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7743
  as_echo='print -r --'
7744
  as_echo_n='print -rn --'
7745
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7746
  as_echo='printf %s\n'
7747
  as_echo_n='printf %s'
7748
else
7749
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7750
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7751
    as_echo_n='/usr/ucb/echo -n'
7752
  else
7753
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7754
    as_echo_n_body='eval
7755
      arg=$1;
7756
      case $arg in #(
7757
      *"$as_nl"*)
7758
	expr "X$arg" : "X\\(.*\\)$as_nl";
7759
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7760
      esac;
7761
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7762
    '
7763
    export as_echo_n_body
7764
    as_echo_n='sh -c $as_echo_n_body as_echo'
7765
  fi
7766
  export as_echo_body
7767
  as_echo='sh -c $as_echo_body as_echo'
7768
fi
7769

    
7770
# The user is always right.
7771
if test "${PATH_SEPARATOR+set}" != set; then
7772
  PATH_SEPARATOR=:
7773
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7774
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7775
      PATH_SEPARATOR=';'
7776
  }
7777
fi
7778

    
7779

    
7780
# IFS
7781
# We need space, tab and new line, in precisely that order.  Quoting is
7782
# there to prevent editors from complaining about space-tab.
7783
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7784
# splitting by setting IFS to empty value.)
7785
IFS=" ""	$as_nl"
7786

    
7787
# Find who we are.  Look in the path if we contain no directory separator.
7788
as_myself=
7789
case $0 in #((
7790
  *[\\/]* ) as_myself=$0 ;;
7791
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7792
for as_dir in $PATH
7793
do
7794
  IFS=$as_save_IFS
7795
  test -z "$as_dir" && as_dir=.
7796
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7797
  done
7798
IFS=$as_save_IFS
7799

    
7800
     ;;
7801
esac
7802
# We did not find ourselves, most probably we were run as `sh COMMAND'
7803
# in which case we are not to be found in the path.
7804
if test "x$as_myself" = x; then
7805
  as_myself=$0
7806
fi
7807
if test ! -f "$as_myself"; then
7808
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7809
  exit 1
7810
fi
7811

    
7812
# Unset variables that we do not need and which cause bugs (e.g. in
7813
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
7814
# suppresses any "Segmentation fault" message there.  '((' could
7815
# trigger a bug in pdksh 5.2.14.
7816
for as_var in BASH_ENV ENV MAIL MAILPATH
7817
do eval test x\${$as_var+set} = xset \
7818
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7819
done
7820
PS1='$ '
7821
PS2='> '
7822
PS4='+ '
7823

    
7824
# NLS nuisances.
7825
LC_ALL=C
7826
export LC_ALL
7827
LANGUAGE=C
7828
export LANGUAGE
7829

    
7830
# CDPATH.
7831
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7832

    
7833

    
7834
# as_fn_error STATUS ERROR [LINENO LOG_FD]
7835
# ----------------------------------------
7836
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7837
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7838
# script with STATUS, using 1 if that was 0.
7839
as_fn_error ()
7840
{
7841
  as_status=$1; test $as_status -eq 0 && as_status=1
7842
  if test "$4"; then
7843
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7844
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7845
  fi
7846
  $as_echo "$as_me: error: $2" >&2
7847
  as_fn_exit $as_status
7848
} # as_fn_error
7849

    
7850

    
7851
# as_fn_set_status STATUS
7852
# -----------------------
7853
# Set $? to STATUS, without forking.
7854
as_fn_set_status ()
7855
{
7856
  return $1
7857
} # as_fn_set_status
7858

    
7859
# as_fn_exit STATUS
7860
# -----------------
7861
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7862
as_fn_exit ()
7863
{
7864
  set +e
7865
  as_fn_set_status $1
7866
  exit $1
7867
} # as_fn_exit
7868

    
7869
# as_fn_unset VAR
7870
# ---------------
7871
# Portably unset VAR.
7872
as_fn_unset ()
7873
{
7874
  { eval $1=; unset $1;}
7875
}
7876
as_unset=as_fn_unset
7877
# as_fn_append VAR VALUE
7878
# ----------------------
7879
# Append the text in VALUE to the end of the definition contained in VAR. Take
7880
# advantage of any shell optimizations that allow amortized linear growth over
7881
# repeated appends, instead of the typical quadratic growth present in naive
7882
# implementations.
7883
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7884
  eval 'as_fn_append ()
7885
  {
7886
    eval $1+=\$2
7887
  }'
7888
else
7889
  as_fn_append ()
7890
  {
7891
    eval $1=\$$1\$2
7892
  }
7893
fi # as_fn_append
7894

    
7895
# as_fn_arith ARG...
7896
# ------------------
7897
# Perform arithmetic evaluation on the ARGs, and store the result in the
7898
# global $as_val. Take advantage of shells that can avoid forks. The arguments
7899
# must be portable across $(()) and expr.
7900
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7901
  eval 'as_fn_arith ()
7902
  {
7903
    as_val=$(( $* ))
7904
  }'
7905
else
7906
  as_fn_arith ()
7907
  {
7908
    as_val=`expr "$@" || test $? -eq 1`
7909
  }
7910
fi # as_fn_arith
7911

    
7912

    
7913
if expr a : '\(a\)' >/dev/null 2>&1 &&
7914
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
7915
  as_expr=expr
7916
else
7917
  as_expr=false
7918
fi
7919

    
7920
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7921
  as_basename=basename
7922
else
7923
  as_basename=false
7924
fi
7925

    
7926
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7927
  as_dirname=dirname
7928
else
7929
  as_dirname=false
7930
fi
7931

    
7932
as_me=`$as_basename -- "$0" ||
7933
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7934
	 X"$0" : 'X\(//\)$' \| \
7935
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7936
$as_echo X/"$0" |
7937
    sed '/^.*\/\([^/][^/]*\)\/*$/{
7938
	    s//\1/
7939
	    q
7940
	  }
7941
	  /^X\/\(\/\/\)$/{
7942
	    s//\1/
7943
	    q
7944
	  }
7945
	  /^X\/\(\/\).*/{
7946
	    s//\1/
7947
	    q
7948
	  }
7949
	  s/.*/./; q'`
7950

    
7951
# Avoid depending upon Character Ranges.
7952
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7953
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7954
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7955
as_cr_digits='0123456789'
7956
as_cr_alnum=$as_cr_Letters$as_cr_digits
7957

    
7958
ECHO_C= ECHO_N= ECHO_T=
7959
case `echo -n x` in #(((((
7960
-n*)
7961
  case `echo 'xy\c'` in
7962
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
7963
  xy)  ECHO_C='\c';;
7964
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
7965
       ECHO_T='	';;
7966
  esac;;
7967
*)
7968
  ECHO_N='-n';;
7969
esac
7970

    
7971
rm -f conf$$ conf$$.exe conf$$.file
7972
if test -d conf$$.dir; then
7973
  rm -f conf$$.dir/conf$$.file
7974
else
7975
  rm -f conf$$.dir
7976
  mkdir conf$$.dir 2>/dev/null
7977
fi
7978
if (echo >conf$$.file) 2>/dev/null; then
7979
  if ln -s conf$$.file conf$$ 2>/dev/null; then
7980
    as_ln_s='ln -s'
7981
    # ... but there are two gotchas:
7982
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7983
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7984
    # In both cases, we have to default to `cp -pR'.
7985
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7986
      as_ln_s='cp -pR'
7987
  elif ln conf$$.file conf$$ 2>/dev/null; then
7988
    as_ln_s=ln
7989
  else
7990
    as_ln_s='cp -pR'
7991
  fi
7992
else
7993
  as_ln_s='cp -pR'
7994
fi
7995
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7996
rmdir conf$$.dir 2>/dev/null
7997

    
7998

    
7999
# as_fn_mkdir_p
8000
# -------------
8001
# Create "$as_dir" as a directory, including parents if necessary.
8002
as_fn_mkdir_p ()
8003
{
8004

    
8005
  case $as_dir in #(
8006
  -*) as_dir=./$as_dir;;
8007
  esac
8008
  test -d "$as_dir" || eval $as_mkdir_p || {
8009
    as_dirs=
8010
    while :; do
8011
      case $as_dir in #(
8012
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8013
      *) as_qdir=$as_dir;;
8014
      esac
8015
      as_dirs="'$as_qdir' $as_dirs"
8016
      as_dir=`$as_dirname -- "$as_dir" ||
8017
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8018
	 X"$as_dir" : 'X\(//\)[^/]' \| \
8019
	 X"$as_dir" : 'X\(//\)$' \| \
8020
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8021
$as_echo X"$as_dir" |
8022
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8023
	    s//\1/
8024
	    q
8025
	  }
8026
	  /^X\(\/\/\)[^/].*/{
8027
	    s//\1/
8028
	    q
8029
	  }
8030
	  /^X\(\/\/\)$/{
8031
	    s//\1/
8032
	    q
8033
	  }
8034
	  /^X\(\/\).*/{
8035
	    s//\1/
8036
	    q
8037
	  }
8038
	  s/.*/./; q'`
8039
      test -d "$as_dir" && break
8040
    done
8041
    test -z "$as_dirs" || eval "mkdir $as_dirs"
8042
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8043

    
8044

    
8045
} # as_fn_mkdir_p
8046
if mkdir -p . 2>/dev/null; then
8047
  as_mkdir_p='mkdir -p "$as_dir"'
8048
else
8049
  test -d ./-p && rmdir ./-p
8050
  as_mkdir_p=false
8051
fi
8052

    
8053

    
8054
# as_fn_executable_p FILE
8055
# -----------------------
8056
# Test if FILE is an executable regular file.
8057
as_fn_executable_p ()
8058
{
8059
  test -f "$1" && test -x "$1"
8060
} # as_fn_executable_p
8061
as_test_x='test -x'
8062
as_executable_p=as_fn_executable_p
8063

    
8064
# Sed expression to map a string onto a valid CPP name.
8065
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8066

    
8067
# Sed expression to map a string onto a valid variable name.
8068
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8069

    
8070

    
8071
exec 6>&1
8072
## ----------------------------------- ##
8073
## Main body of $CONFIG_STATUS script. ##
8074
## ----------------------------------- ##
8075
_ASEOF
8076
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8077

    
8078
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8079
# Save the log message, to keep $0 and so on meaningful, and to
8080
# report actual input values of CONFIG_FILES etc. instead of their
8081
# values after options handling.
8082
ac_log="
8083
This file was extended by $as_me, which was
8084
generated by GNU Autoconf 2.69.  Invocation command line was
8085

    
8086
  CONFIG_FILES    = $CONFIG_FILES
8087
  CONFIG_HEADERS  = $CONFIG_HEADERS
8088
  CONFIG_LINKS    = $CONFIG_LINKS
8089
  CONFIG_COMMANDS = $CONFIG_COMMANDS
8090
  $ $0 $@
8091

    
8092
on `(hostname || uname -n) 2>/dev/null | sed 1q`
8093
"
8094

    
8095
_ACEOF
8096

    
8097
case $ac_config_files in *"
8098
"*) set x $ac_config_files; shift; ac_config_files=$*;;
8099
esac
8100

    
8101

    
8102

    
8103
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8104
# Files that config.status was made for.
8105
config_files="$ac_config_files"
8106

    
8107
_ACEOF
8108

    
8109
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8110
ac_cs_usage="\
8111
\`$as_me' instantiates files and other configuration actions
8112
from templates according to the current configuration.  Unless the files
8113
and actions are specified as TAGs, all are instantiated by default.
8114

    
8115
Usage: $0 [OPTION]... [TAG]...
8116

    
8117
  -h, --help       print this help, then exit
8118
  -V, --version    print version number and configuration settings, then exit
8119
      --config     print configuration, then exit
8120
  -q, --quiet, --silent
8121
                   do not print progress messages
8122
  -d, --debug      don't remove temporary files
8123
      --recheck    update $as_me by reconfiguring in the same conditions
8124
      --file=FILE[:TEMPLATE]
8125
                   instantiate the configuration file FILE
8126

    
8127
Configuration files:
8128
$config_files
8129

    
8130
Report bugs to the package provider."
8131

    
8132
_ACEOF
8133
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8134
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8135
ac_cs_version="\\
8136
config.status
8137
configured by $0, generated by GNU Autoconf 2.69,
8138
  with options \\"\$ac_cs_config\\"
8139

    
8140
Copyright (C) 2012 Free Software Foundation, Inc.
8141
This config.status script is free software; the Free Software Foundation
8142
gives unlimited permission to copy, distribute and modify it."
8143

    
8144
ac_pwd='$ac_pwd'
8145
srcdir='$srcdir'
8146
INSTALL='$INSTALL'
8147
MKDIR_P='$MKDIR_P'
8148
test -n "\$AWK" || AWK=awk
8149
_ACEOF
8150

    
8151
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8152
# The default lists apply if the user does not specify any file.
8153
ac_need_defaults=:
8154
while test $# != 0
8155
do
8156
  case $1 in
8157
  --*=?*)
8158
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8159
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8160
    ac_shift=:
8161
    ;;
8162
  --*=)
8163
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8164
    ac_optarg=
8165
    ac_shift=:
8166
    ;;
8167
  *)
8168
    ac_option=$1
8169
    ac_optarg=$2
8170
    ac_shift=shift
8171
    ;;
8172
  esac
8173

    
8174
  case $ac_option in
8175
  # Handling of the options.
8176
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8177
    ac_cs_recheck=: ;;
8178
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8179
    $as_echo "$ac_cs_version"; exit ;;
8180
  --config | --confi | --conf | --con | --co | --c )
8181
    $as_echo "$ac_cs_config"; exit ;;
8182
  --debug | --debu | --deb | --de | --d | -d )
8183
    debug=: ;;
8184
  --file | --fil | --fi | --f )
8185
    $ac_shift
8186
    case $ac_optarg in
8187
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8188
    '') as_fn_error $? "missing file argument" ;;
8189
    esac
8190
    as_fn_append CONFIG_FILES " '$ac_optarg'"
8191
    ac_need_defaults=false;;
8192
  --he | --h |  --help | --hel | -h )
8193
    $as_echo "$ac_cs_usage"; exit ;;
8194
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8195
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
8196
    ac_cs_silent=: ;;
8197

    
8198
  # This is an error.
8199
  -*) as_fn_error $? "unrecognized option: \`$1'
8200
Try \`$0 --help' for more information." ;;
8201

    
8202
  *) as_fn_append ac_config_targets " $1"
8203
     ac_need_defaults=false ;;
8204

    
8205
  esac
8206
  shift
8207
done
8208

    
8209
ac_configure_extra_args=
8210

    
8211
if $ac_cs_silent; then
8212
  exec 6>/dev/null
8213
  ac_configure_extra_args="$ac_configure_extra_args --silent"
8214
fi
8215

    
8216
_ACEOF
8217
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8218
if \$ac_cs_recheck; then
8219
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8220
  shift
8221
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8222
  CONFIG_SHELL='$SHELL'
8223
  export CONFIG_SHELL
8224
  exec "\$@"
8225
fi
8226

    
8227
_ACEOF
8228
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8229
exec 5>>config.log
8230
{
8231
  echo
8232
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8233
## Running $as_me. ##
8234
_ASBOX
8235
  $as_echo "$ac_log"
8236
} >&5
8237

    
8238
_ACEOF
8239
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8240
_ACEOF
8241

    
8242
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8243

    
8244
# Handling of arguments.
8245
for ac_config_target in $ac_config_targets
8246
do
8247
  case $ac_config_target in
8248
    "config.pri") CONFIG_FILES="$CONFIG_FILES config.pri" ;;
8249

    
8250
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8251
  esac
8252
done
8253

    
8254

    
8255
# If the user did not use the arguments to specify the items to instantiate,
8256
# then the envvar interface is used.  Set only those that are not.
8257
# We use the long form for the default assignment because of an extremely
8258
# bizarre bug on SunOS 4.1.3.
8259
if $ac_need_defaults; then
8260
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8261
fi
8262

    
8263
# Have a temporary directory for convenience.  Make it in the build tree
8264
# simply because there is no reason against having it here, and in addition,
8265
# creating and moving files from /tmp can sometimes cause problems.
8266
# Hook for its removal unless debugging.
8267
# Note that there is a small window in which the directory will not be cleaned:
8268
# after its creation but before its name has been assigned to `$tmp'.
8269
$debug ||
8270
{
8271
  tmp= ac_tmp=
8272
  trap 'exit_status=$?
8273
  : "${ac_tmp:=$tmp}"
8274
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8275
' 0
8276
  trap 'as_fn_exit 1' 1 2 13 15
8277
}
8278
# Create a (secure) tmp directory for tmp files.
8279

    
8280
{
8281
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8282
  test -d "$tmp"
8283
}  ||
8284
{
8285
  tmp=./conf$$-$RANDOM
8286
  (umask 077 && mkdir "$tmp")
8287
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8288
ac_tmp=$tmp
8289

    
8290
# Set up the scripts for CONFIG_FILES section.
8291
# No need to generate them if there are no CONFIG_FILES.
8292
# This happens for instance with `./config.status config.h'.
8293
if test -n "$CONFIG_FILES"; then
8294

    
8295

    
8296
ac_cr=`echo X | tr X '\015'`
8297
# On cygwin, bash can eat \r inside `` if the user requested igncr.
8298
# But we know of no other shell where ac_cr would be empty at this
8299
# point, so we can use a bashism as a fallback.
8300
if test "x$ac_cr" = x; then
8301
  eval ac_cr=\$\'\\r\'
8302
fi
8303
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8304
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8305
  ac_cs_awk_cr='\\r'
8306
else
8307
  ac_cs_awk_cr=$ac_cr
8308
fi
8309

    
8310
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8311
_ACEOF
8312

    
8313

    
8314
{
8315
  echo "cat >conf$$subs.awk <<_ACEOF" &&
8316
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8317
  echo "_ACEOF"
8318
} >conf$$subs.sh ||
8319
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8320
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8321
ac_delim='%!_!# '
8322
for ac_last_try in false false false false false :; do
8323
  . ./conf$$subs.sh ||
8324
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8325

    
8326
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8327
  if test $ac_delim_n = $ac_delim_num; then
8328
    break
8329
  elif $ac_last_try; then
8330
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8331
  else
8332
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8333
  fi
8334
done
8335
rm -f conf$$subs.sh
8336

    
8337
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8338
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8339
_ACEOF
8340
sed -n '
8341
h
8342
s/^/S["/; s/!.*/"]=/
8343
p
8344
g
8345
s/^[^!]*!//
8346
:repl
8347
t repl
8348
s/'"$ac_delim"'$//
8349
t delim
8350
:nl
8351
h
8352
s/\(.\{148\}\)..*/\1/
8353
t more1
8354
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8355
p
8356
n
8357
b repl
8358
:more1
8359
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8360
p
8361
g
8362
s/.\{148\}//
8363
t nl
8364
:delim
8365
h
8366
s/\(.\{148\}\)..*/\1/
8367
t more2
8368
s/["\\]/\\&/g; s/^/"/; s/$/"/
8369
p
8370
b
8371
:more2
8372
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8373
p
8374
g
8375
s/.\{148\}//
8376
t delim
8377
' <conf$$subs.awk | sed '
8378
/^[^""]/{
8379
  N
8380
  s/\n//
8381
}
8382
' >>$CONFIG_STATUS || ac_write_fail=1
8383
rm -f conf$$subs.awk
8384
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8385
_ACAWK
8386
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8387
  for (key in S) S_is_set[key] = 1
8388
  FS = ""
8389

    
8390
}
8391
{
8392
  line = $ 0
8393
  nfields = split(line, field, "@")
8394
  substed = 0
8395
  len = length(field[1])
8396
  for (i = 2; i < nfields; i++) {
8397
    key = field[i]
8398
    keylen = length(key)
8399
    if (S_is_set[key]) {
8400
      value = S[key]
8401
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8402
      len += length(value) + length(field[++i])
8403
      substed = 1
8404
    } else
8405
      len += 1 + keylen
8406
  }
8407

    
8408
  print line
8409
}
8410

    
8411
_ACAWK
8412
_ACEOF
8413
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8414
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8415
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8416
else
8417
  cat
8418
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8419
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8420
_ACEOF
8421

    
8422
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8423
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8424
# trailing colons and then remove the whole line if VPATH becomes empty
8425
# (actually we leave an empty line to preserve line numbers).
8426
if test "x$srcdir" = x.; then
8427
  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
8428
h
8429
s///
8430
s/^/:/
8431
s/[	 ]*$/:/
8432
s/:\$(srcdir):/:/g
8433
s/:\${srcdir}:/:/g
8434
s/:@srcdir@:/:/g
8435
s/^:*//
8436
s/:*$//
8437
x
8438
s/\(=[	 ]*\).*/\1/
8439
G
8440
s/\n//
8441
s/^[^=]*=[	 ]*$//
8442
}'
8443
fi
8444

    
8445
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8446
fi # test -n "$CONFIG_FILES"
8447

    
8448

    
8449
eval set X "  :F $CONFIG_FILES      "
8450
shift
8451
for ac_tag
8452
do
8453
  case $ac_tag in
8454
  :[FHLC]) ac_mode=$ac_tag; continue;;
8455
  esac
8456
  case $ac_mode$ac_tag in
8457
  :[FHL]*:*);;
8458
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8459
  :[FH]-) ac_tag=-:-;;
8460
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8461
  esac
8462
  ac_save_IFS=$IFS
8463
  IFS=:
8464
  set x $ac_tag
8465
  IFS=$ac_save_IFS
8466
  shift
8467
  ac_file=$1
8468
  shift
8469

    
8470
  case $ac_mode in
8471
  :L) ac_source=$1;;
8472
  :[FH])
8473
    ac_file_inputs=
8474
    for ac_f
8475
    do
8476
      case $ac_f in
8477
      -) ac_f="$ac_tmp/stdin";;
8478
      *) # Look for the file first in the build tree, then in the source tree
8479
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
8480
	 # because $ac_f cannot contain `:'.
8481
	 test -f "$ac_f" ||
8482
	   case $ac_f in
8483
	   [\\/$]*) false;;
8484
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8485
	   esac ||
8486
	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8487
      esac
8488
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8489
      as_fn_append ac_file_inputs " '$ac_f'"
8490
    done
8491

    
8492
    # Let's still pretend it is `configure' which instantiates (i.e., don't
8493
    # use $as_me), people would be surprised to read:
8494
    #    /* config.h.  Generated by config.status.  */
8495
    configure_input='Generated from '`
8496
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8497
	`' by configure.'
8498
    if test x"$ac_file" != x-; then
8499
      configure_input="$ac_file.  $configure_input"
8500
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8501
$as_echo "$as_me: creating $ac_file" >&6;}
8502
    fi
8503
    # Neutralize special characters interpreted by sed in replacement strings.
8504
    case $configure_input in #(
8505
    *\&* | *\|* | *\\* )
8506
       ac_sed_conf_input=`$as_echo "$configure_input" |
8507
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
8508
    *) ac_sed_conf_input=$configure_input;;
8509
    esac
8510

    
8511
    case $ac_tag in
8512
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
8513
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8514
    esac
8515
    ;;
8516
  esac
8517

    
8518
  ac_dir=`$as_dirname -- "$ac_file" ||
8519
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8520
	 X"$ac_file" : 'X\(//\)[^/]' \| \
8521
	 X"$ac_file" : 'X\(//\)$' \| \
8522
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8523
$as_echo X"$ac_file" |
8524
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8525
	    s//\1/
8526
	    q
8527
	  }
8528
	  /^X\(\/\/\)[^/].*/{
8529
	    s//\1/
8530
	    q
8531
	  }
8532
	  /^X\(\/\/\)$/{
8533
	    s//\1/
8534
	    q
8535
	  }
8536
	  /^X\(\/\).*/{
8537
	    s//\1/
8538
	    q
8539
	  }
8540
	  s/.*/./; q'`
8541
  as_dir="$ac_dir"; as_fn_mkdir_p
8542
  ac_builddir=.
8543

    
8544
case "$ac_dir" in
8545
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8546
*)
8547
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8548
  # A ".." for each directory in $ac_dir_suffix.
8549
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8550
  case $ac_top_builddir_sub in
8551
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8552
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8553
  esac ;;
8554
esac
8555
ac_abs_top_builddir=$ac_pwd
8556
ac_abs_builddir=$ac_pwd$ac_dir_suffix
8557
# for backward compatibility:
8558
ac_top_builddir=$ac_top_build_prefix
8559

    
8560
case $srcdir in
8561
  .)  # We are building in place.
8562
    ac_srcdir=.
8563
    ac_top_srcdir=$ac_top_builddir_sub
8564
    ac_abs_top_srcdir=$ac_pwd ;;
8565
  [\\/]* | ?:[\\/]* )  # Absolute name.
8566
    ac_srcdir=$srcdir$ac_dir_suffix;
8567
    ac_top_srcdir=$srcdir
8568
    ac_abs_top_srcdir=$srcdir ;;
8569
  *) # Relative name.
8570
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8571
    ac_top_srcdir=$ac_top_build_prefix$srcdir
8572
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8573
esac
8574
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8575

    
8576

    
8577
  case $ac_mode in
8578
  :F)
8579
  #
8580
  # CONFIG_FILE
8581
  #
8582

    
8583
  case $INSTALL in
8584
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8585
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8586
  esac
8587
  ac_MKDIR_P=$MKDIR_P
8588
  case $MKDIR_P in
8589
  [\\/$]* | ?:[\\/]* ) ;;
8590
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8591
  esac
8592
_ACEOF
8593

    
8594
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8595
# If the template does not know about datarootdir, expand it.
8596
# FIXME: This hack should be removed a few years after 2.60.
8597
ac_datarootdir_hack=; ac_datarootdir_seen=
8598
ac_sed_dataroot='
8599
/datarootdir/ {
8600
  p
8601
  q
8602
}
8603
/@datadir@/p
8604
/@docdir@/p
8605
/@infodir@/p
8606
/@localedir@/p
8607
/@mandir@/p'
8608
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8609
*datarootdir*) ac_datarootdir_seen=yes;;
8610
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8611
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8612
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8613
_ACEOF
8614
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8615
  ac_datarootdir_hack='
8616
  s&@datadir@&$datadir&g
8617
  s&@docdir@&$docdir&g
8618
  s&@infodir@&$infodir&g
8619
  s&@localedir@&$localedir&g
8620
  s&@mandir@&$mandir&g
8621
  s&\\\${datarootdir}&$datarootdir&g' ;;
8622
esac
8623
_ACEOF
8624

    
8625
# Neutralize VPATH when `$srcdir' = `.'.
8626
# Shell code in configure.ac might set extrasub.
8627
# FIXME: do we really want to maintain this feature?
8628
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8629
ac_sed_extra="$ac_vpsub
8630
$extrasub
8631
_ACEOF
8632
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8633
:t
8634
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8635
s|@configure_input@|$ac_sed_conf_input|;t t
8636
s&@top_builddir@&$ac_top_builddir_sub&;t t
8637
s&@top_build_prefix@&$ac_top_build_prefix&;t t
8638
s&@srcdir@&$ac_srcdir&;t t
8639
s&@abs_srcdir@&$ac_abs_srcdir&;t t
8640
s&@top_srcdir@&$ac_top_srcdir&;t t
8641
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8642
s&@builddir@&$ac_builddir&;t t
8643
s&@abs_builddir@&$ac_abs_builddir&;t t
8644
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8645
s&@INSTALL@&$ac_INSTALL&;t t
8646
s&@MKDIR_P@&$ac_MKDIR_P&;t t
8647
$ac_datarootdir_hack
8648
"
8649
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8650
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8651

    
8652
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8653
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8654
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
8655
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
8656
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8657
which seems to be undefined.  Please make sure it is defined" >&5
8658
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8659
which seems to be undefined.  Please make sure it is defined" >&2;}
8660

    
8661
  rm -f "$ac_tmp/stdin"
8662
  case $ac_file in
8663
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8664
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8665
  esac \
8666
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8667
 ;;
8668

    
8669

    
8670

    
8671
  esac
8672

    
8673
done # for ac_tag
8674

    
8675

    
8676
as_fn_exit 0
8677
_ACEOF
8678
ac_clean_files=$ac_clean_files_save
8679

    
8680
test $ac_write_fail = 0 ||
8681
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8682

    
8683

    
8684
# configure is writing to config.log, and then calls config.status.
8685
# config.status does its own redirection, appending to config.log.
8686
# Unfortunately, on DOS this fails, as config.log is still kept open
8687
# by configure, so config.status won't be able to write to it; its
8688
# output is simply discarded.  So we exec the FD to /dev/null,
8689
# effectively closing config.log, so it can be properly (re)opened and
8690
# appended to by config.status.  When coming back to configure, we
8691
# need to make the FD available again.
8692
if test "$no_create" != yes; then
8693
  ac_cs_success=:
8694
  ac_config_status_args=
8695
  test "$silent" = yes &&
8696
    ac_config_status_args="$ac_config_status_args --quiet"
8697
  exec 5>/dev/null
8698
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8699
  exec 5>>config.log
8700
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8701
  # would make configure fail if this is the last instruction.
8702
  $ac_cs_success || as_fn_exit 1
8703
fi
8704
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8705
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8706
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8707
fi
8708

    
8709

    
8710
if test -x repoint ; then
8711
   if test -d .hg -o -d .git ; then
8712
      if ! ./repoint install; then
8713
         as_fn_error $? "Repoint failed; please fix any reported errors and try again" "$LINENO" 5
8714
      fi
8715
   else
8716
      { $as_echo "$as_me:${as_lineno-$LINENO}: Repoint executable found but not in an Hg or Git working-copy: not running it" >&5
8717
$as_echo "$as_me: Repoint executable found but not in an Hg or Git working-copy: not running it" >&6;}
8718
      if ! test -d vamp-plugin-sdk ; then
8719
          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No vamp-plugin-sdk directory present, so external libraries might not have been updated" >&5
8720
$as_echo "$as_me: WARNING: No vamp-plugin-sdk directory present, so external libraries might not have been updated" >&2;}
8721
      fi
8722
   fi
8723
else
8724
   { $as_echo "$as_me:${as_lineno-$LINENO}: No Repoint executable found: assuming external components are already here" >&5
8725
$as_echo "$as_me: No Repoint executable found: assuming external components are already here" >&6;}
8726
   if ! test -d vamp-plugin-sdk ; then
8727
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No vamp-plugin-sdk directory present, so external components might not have been updated" >&5
8728
$as_echo "$as_me: WARNING: No vamp-plugin-sdk directory present, so external components might not have been updated" >&2;}
8729
   fi
8730
fi
8731

    
8732
if ! $QMAKE -r sonic-lineup.pro; then
8733
   as_fn_error $? "qmake failed: Command was \"$QMAKE -r\"" "$LINENO" 5
8734
fi
8735

    
8736
{ $as_echo "$as_me:${as_lineno-$LINENO}:
8737

    
8738
Configuration complete.
8739
Please check the above messages for any warnings that you
8740
might care about, and then run \"make\".
8741

    
8742
The file config.pri contains the configuration settings for
8743
qmake.  If you want to adjust these by hand, edit config.pri
8744
and run \"$QMAKE -r\" again to regenerate the Makefile.
8745
" >&5
8746
$as_echo "$as_me:
8747

    
8748
Configuration complete.
8749
Please check the above messages for any warnings that you
8750
might care about, and then run \"make\".
8751

    
8752
The file config.pri contains the configuration settings for
8753
qmake.  If you want to adjust these by hand, edit config.pri
8754
and run \"$QMAKE -r\" again to regenerate the Makefile.
8755
" >&6;}