changes from running bootstrap and then make maintainer-clean
[debian/gnuradio] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138   emulate sh
139   NULLCMD=:
140   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141   # is contrary to our usage.  Disable this feature.
142   alias -g '\${1+\"\$@\"}'='\"\$@\"'
143   setopt NO_GLOB_SUBST
144 else
145   case \`(set -o) 2>/dev/null\` in #(
146   *posix*) :
147     set -o posix ;; #(
148   *) :
149      ;;
150 esac
151 fi
152 "
153   as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167   exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175   if (eval "$as_required") 2>/dev/null; then :
176   as_have_required=yes
177 else
178   as_have_required=no
179 fi
180   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187   IFS=$as_save_IFS
188   test -z "$as_dir" && as_dir=.
189   as_found=:
190   case $as_dir in #(
191          /*)
192            for as_base in sh bash ksh sh5; do
193              # Try only shells that exist, to save several forks.
194              as_shell=$as_dir/$as_base
195              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   CONFIG_SHELL=$as_shell as_have_required=yes
198                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   break 2
200 fi
201 fi
202            done;;
203        esac
204   as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208   CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213       if test "x$CONFIG_SHELL" != x; then :
214   # We cannot yet assume a decent shell, so we have to provide a
215         # neutralization value for shells without unset; and this also
216         # works around shells that cannot unset nonexistent variables.
217         BASH_ENV=/dev/null
218         ENV=/dev/null
219         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220         export CONFIG_SHELL
221         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224     if test x$as_have_required = xno; then :
225   $as_echo "$0: This script requires a shell more modern than all"
226   $as_echo "$0: the shells that I found on your system."
227   if test x${ZSH_VERSION+set} = xset ; then
228     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230   else
231     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235   fi
236   exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254   { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263   return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271   set +e
272   as_fn_set_status $1
273   exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282   case $as_dir in #(
283   -*) as_dir=./$as_dir;;
284   esac
285   test -d "$as_dir" || eval $as_mkdir_p || {
286     as_dirs=
287     while :; do
288       case $as_dir in #(
289       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290       *) as_qdir=$as_dir;;
291       esac
292       as_dirs="'$as_qdir' $as_dirs"
293       as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295          X"$as_dir" : 'X\(//\)[^/]' \| \
296          X"$as_dir" : 'X\(//\)$' \| \
297          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300             s//\1/
301             q
302           }
303           /^X\(\/\/\)[^/].*/{
304             s//\1/
305             q
306           }
307           /^X\(\/\/\)$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\).*/{
312             s//\1/
313             q
314           }
315           s/.*/./; q'`
316       test -d "$as_dir" && break
317     done
318     test -z "$as_dirs" || eval "mkdir $as_dirs"
319   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330   eval 'as_fn_append ()
331   {
332     eval $1+=\$2
333   }'
334 else
335   as_fn_append ()
336   {
337     eval $1=\$$1\$2
338   }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347   eval 'as_fn_arith ()
348   {
349     as_val=$(( $* ))
350   }'
351 else
352   as_fn_arith ()
353   {
354     as_val=`expr "$@" || test $? -eq 1`
355   }
356 fi # as_fn_arith
357
358
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
365 {
366   as_status=$1; test $as_status -eq 0 && as_status=1
367   if test "$4"; then
368     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370   fi
371   $as_echo "$as_me: error: $2" >&2
372   as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376    test "X`expr 00001 : '.*\(...\)'`" = X001; then
377   as_expr=expr
378 else
379   as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383   as_basename=basename
384 else
385   as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389   as_dirname=dirname
390 else
391   as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396          X"$0" : 'X\(//\)$' \| \
397          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399     sed '/^.*\/\([^/][^/]*\)\/*$/{
400             s//\1/
401             q
402           }
403           /^X\/\(\/\/\)$/{
404             s//\1/
405             q
406           }
407           /^X\/\(\/\).*/{
408             s//\1/
409             q
410           }
411           s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421   as_lineno_1=$LINENO as_lineno_1a=$LINENO
422   as_lineno_2=$LINENO as_lineno_2a=$LINENO
423   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
426   sed -n '
427     p
428     /[$]LINENO/=
429   ' <$as_myself |
430     sed '
431       s/[$]LINENO.*/&-/
432       t lineno
433       b
434       :lineno
435       N
436       :loop
437       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438       t loop
439       s/-\n.*//
440     ' >$as_me.lineno &&
441   chmod +x "$as_me.lineno" ||
442     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444   # Don't try to exec as it changes $[0], causing all sort of problems
445   # (the dirname of $[0] is not the place where we might find the
446   # original and so on.  Autoconf is especially sensitive to this).
447   . "./$as_me.lineno"
448   # Exit status is that of the last command.
449   exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455   case `echo 'xy\c'` in
456   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
457   xy)  ECHO_C='\c';;
458   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459        ECHO_T=' ';;
460   esac;;
461 *)
462   ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467   rm -f conf$$.dir/conf$$.file
468 else
469   rm -f conf$$.dir
470   mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473   if ln -s conf$$.file conf$$ 2>/dev/null; then
474     as_ln_s='ln -s'
475     # ... but there are two gotchas:
476     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478     # In both cases, we have to default to `cp -p'.
479     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480       as_ln_s='cp -p'
481   elif ln conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s=ln
483   else
484     as_ln_s='cp -p'
485   fi
486 else
487   as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493   as_mkdir_p='mkdir -p "$as_dir"'
494 else
495   test -d ./-p && rmdir ./-p
496   as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500   as_test_x='test -x'
501 else
502   if ls -dL / >/dev/null 2>&1; then
503     as_ls_L_option=L
504   else
505     as_ls_L_option=
506   fi
507   as_test_x='
508     eval sh -c '\''
509       if test -d "$1"; then
510         test -d "$1/.";
511       else
512         case $1 in #(
513         -*)set "./$1";;
514         esac;
515         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516         ???[sx]*):;;*)false;;esac;fi
517     '\'' sh
518   '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
532
533 case X$lt_ECHO in
534 X*--fallback-echo)
535   # Remove one level of quotation (which was required for Make).
536   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
537   ;;
538 esac
539
540 ECHO=${lt_ECHO-echo}
541 if test "X$1" = X--no-reexec; then
542   # Discard the --no-reexec flag, and continue.
543   shift
544 elif test "X$1" = X--fallback-echo; then
545   # Avoid inline document here, it may be left over
546   :
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548   # Yippee, $ECHO works!
549   :
550 else
551   # Restart under the correct shell.
552   exec $SHELL "$0" --no-reexec ${1+"$@"}
553 fi
554
555 if test "X$1" = X--fallback-echo; then
556   # used as fallback echo
557   shift
558   cat <<_LT_EOF
559 $*
560 _LT_EOF
561   exit 0
562 fi
563
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
565 # if CDPATH is set.
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
567
568 if test -z "$lt_ECHO"; then
569   if test "X${echo_test_string+set}" != Xset; then
570     # find a string as large as possible, as long as the shell can cope with it
571     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575       then
576         break
577       fi
578     done
579   fi
580
581   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583      test "X$echo_testing_string" = "X$echo_test_string"; then
584     :
585   else
586     # The Solaris, AIX, and Digital Unix default echo programs unquote
587     # backslashes.  This makes it impossible to quote backslashes using
588     #   echo "$something" | sed 's/\\/\\\\/g'
589     #
590     # So, first we look for a working echo in the user's PATH.
591
592     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593     for dir in $PATH /usr/ucb; do
594       IFS="$lt_save_ifs"
595       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598          test "X$echo_testing_string" = "X$echo_test_string"; then
599         ECHO="$dir/echo"
600         break
601       fi
602     done
603     IFS="$lt_save_ifs"
604
605     if test "X$ECHO" = Xecho; then
606       # We didn't find a better echo, so look for alternatives.
607       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609          test "X$echo_testing_string" = "X$echo_test_string"; then
610         # This shell has a builtin print -r that does the trick.
611         ECHO='print -r'
612       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613            test "X$CONFIG_SHELL" != X/bin/ksh; then
614         # If we have ksh, try running configure again with it.
615         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616         export ORIGINAL_CONFIG_SHELL
617         CONFIG_SHELL=/bin/ksh
618         export CONFIG_SHELL
619         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
620       else
621         # Try using printf.
622         ECHO='printf %s\n'
623         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625            test "X$echo_testing_string" = "X$echo_test_string"; then
626           # Cool, printf works
627           :
628         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629              test "X$echo_testing_string" = 'X\t' &&
630              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631              test "X$echo_testing_string" = "X$echo_test_string"; then
632           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633           export CONFIG_SHELL
634           SHELL="$CONFIG_SHELL"
635           export SHELL
636           ECHO="$CONFIG_SHELL $0 --fallback-echo"
637         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638              test "X$echo_testing_string" = 'X\t' &&
639              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640              test "X$echo_testing_string" = "X$echo_test_string"; then
641           ECHO="$CONFIG_SHELL $0 --fallback-echo"
642         else
643           # maybe with a smaller string...
644           prev=:
645
646           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648             then
649               break
650             fi
651             prev="$cmd"
652           done
653
654           if test "$prev" != 'sed 50q "$0"'; then
655             echo_test_string=`eval $prev`
656             export echo_test_string
657             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658           else
659             # Oops.  We lost completely, so just stick with echo.
660             ECHO=echo
661           fi
662         fi
663       fi
664     fi
665   fi
666 fi
667
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
670 lt_ECHO=$ECHO
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
673 fi
674
675
676
677
678 test -n "$DJDIR" || exec 7<&0 </dev/null
679 exec 6>&1
680
681 # Name of the host.
682 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686 #
687 # Initializations.
688 #
689 ac_default_prefix=/usr/local
690 ac_clean_files=
691 ac_config_libobj_dir=.
692 LIBOBJS=
693 cross_compiling=no
694 subdirs=
695 MFLAGS=
696 MAKEFLAGS=
697
698 # Identity of this package.
699 PACKAGE_NAME=
700 PACKAGE_TARNAME=
701 PACKAGE_VERSION=
702 PACKAGE_STRING=
703 PACKAGE_BUGREPORT=
704 PACKAGE_URL=
705
706 ac_unique_file="gnuradio-core/src/lib/runtime/gr_vmcircbuf.cc"
707 # Factoring default headers for most tests.
708 ac_includes_default="\
709 #include <stdio.h>
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
712 #endif
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
715 #endif
716 #ifdef STDC_HEADERS
717 # include <stdlib.h>
718 # include <stddef.h>
719 #else
720 # ifdef HAVE_STDLIB_H
721 #  include <stdlib.h>
722 # endif
723 #endif
724 #ifdef HAVE_STRING_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726 #  include <memory.h>
727 # endif
728 # include <string.h>
729 #endif
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
732 #endif
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
735 #endif
736 #ifdef HAVE_STDINT_H
737 # include <stdint.h>
738 #endif
739 #ifdef HAVE_UNISTD_H
740 # include <unistd.h>
741 #endif"
742
743 enable_option_checking=no
744 ac_subst_vars='am__EXEEXT_FALSE
745 am__EXEEXT_TRUE
746 LTLIBOBJS
747 with_LIBDIRPATH
748 with_SWIGDIRPATH
749 with_PYDIRPATH
750 with_SWIG_INCLUDES
751 with_INCLUDES
752 abs_top_builddir
753 abs_top_srcdir
754 with_dirs
755 skipped_dirs
756 build_dirs
757 docs_LDFLAG
758 docs_LIBDIRPATH
759 docs_INCLUDEDIR
760 docs_LA
761 docs_INCLUDES
762 grc_LDFLAG
763 grc_LIBDIRPATH
764 grc_INCLUDEDIR
765 grc_LA
766 grc_INCLUDES
767 PYTHONW
768 XDG_UTILS_FALSE
769 XDG_UTILS_TRUE
770 XDG_UTILS
771 gnuradio_examples_LDFLAG
772 gnuradio_examples_LIBDIRPATH
773 gnuradio_examples_INCLUDEDIR
774 gnuradio_examples_LA
775 gnuradio_examples_INCLUDES
776 gr_utils_LDFLAG
777 gr_utils_LIBDIRPATH
778 gr_utils_INCLUDEDIR
779 gr_utils_LA
780 gr_utils_INCLUDES
781 gr_sounder_LDFLAG
782 gr_sounder_LIBDIRPATH
783 gr_sounder_INCLUDEDIR
784 gr_sounder_LA
785 gr_sounder_INCLUDES
786 gr_qtgui_LDFLAG
787 gr_qtgui_LIBDIRPATH
788 gr_qtgui_INCLUDEDIR
789 gr_qtgui_LA
790 gr_qtgui_INCLUDES
791 QT_UIC_EXEC
792 QT_MOC_EXEC
793 QT_LIBS
794 QT_INCLUDES
795 QMAKE_INCLUDES
796 QWTPLOT3D_LIBS
797 QWTPLOT3D_CFLAGS
798 QWT_LIBS
799 QWT_CFLAGS
800 QTOPENGL_CPPFLAGS
801 QTOPENGL_INCLUDEDIR
802 QTOPENGL_LIBS
803 QTOPENGL_CFLAGS
804 QTGUI_CPPFLAGS
805 QTGUI_INCLUDEDIR
806 QTGUI_LIBS
807 QTGUI_CFLAGS
808 QTCORE_CPPFLAGS
809 QTCORE_INCLUDEDIR
810 QTCORE_LIBS
811 QTCORE_CFLAGS
812 gr_wxgui_LDFLAG
813 gr_wxgui_LIBDIRPATH
814 gr_wxgui_INCLUDEDIR
815 gr_wxgui_LA
816 gr_wxgui_INCLUDES
817 gr_video_sdl_LDFLAG
818 gr_video_sdl_LIBDIRPATH
819 gr_video_sdl_INCLUDEDIR
820 gr_video_sdl_LA
821 gr_video_sdl_INCLUDES
822 SDL_CPPFLAGS
823 SDL_CONFIG
824 SDL_INCLUDEDIR
825 SDL_LIBS
826 SDL_CFLAGS
827 gr_trellis_LDFLAG
828 gr_trellis_LIBDIRPATH
829 gr_trellis_INCLUDEDIR
830 gr_trellis_LA
831 gr_trellis_INCLUDES
832 gr_radio_astronomy_LDFLAG
833 gr_radio_astronomy_LIBDIRPATH
834 gr_radio_astronomy_INCLUDEDIR
835 gr_radio_astronomy_LA
836 gr_radio_astronomy_INCLUDES
837 gr_radar_mono_LDFLAG
838 gr_radar_mono_LIBDIRPATH
839 gr_radar_mono_INCLUDEDIR
840 gr_radar_mono_LA
841 gr_radar_mono_INCLUDES
842 gr_pager_LDFLAG
843 gr_pager_LIBDIRPATH
844 gr_pager_INCLUDEDIR
845 gr_pager_LA
846 gr_pager_INCLUDES
847 gr_noaa_LDFLAG
848 gr_noaa_LIBDIRPATH
849 gr_noaa_INCLUDEDIR
850 gr_noaa_LA
851 gr_noaa_INCLUDES
852 gr_gsm_fr_vocoder_LDFLAG
853 gr_gsm_fr_vocoder_LIBDIRPATH
854 gr_gsm_fr_vocoder_INCLUDEDIR
855 gr_gsm_fr_vocoder_LA
856 gr_gsm_fr_vocoder_INCLUDES
857 gr_gpio_LDFLAG
858 gr_gpio_LIBDIRPATH
859 gr_gpio_INCLUDEDIR
860 gr_gpio_LA
861 gr_gpio_INCLUDES
862 gr_cvsd_vocoder_LDFLAG
863 gr_cvsd_vocoder_LIBDIRPATH
864 gr_cvsd_vocoder_INCLUDEDIR
865 gr_cvsd_vocoder_LA
866 gr_cvsd_vocoder_INCLUDES
867 gr_comedi_LDFLAG
868 gr_comedi_LIBDIRPATH
869 gr_comedi_INCLUDEDIR
870 gr_comedi_LA
871 gr_comedi_INCLUDES
872 COMEDI_CPPFLAGS
873 COMEDI_INCLUDEDIR
874 COMEDI_LIBS
875 COMEDI_CFLAGS
876 gr_atsc_LDFLAG
877 gr_atsc_LIBDIRPATH
878 gr_atsc_INCLUDEDIR
879 gr_atsc_LA
880 gr_atsc_INCLUDES
881 gr_audio_windows_LDFLAG
882 gr_audio_windows_LIBDIRPATH
883 gr_audio_windows_INCLUDEDIR
884 gr_audio_windows_LA
885 gr_audio_windows_INCLUDES
886 WINAUDIO_LIBS
887 gr_audio_portaudio_LDFLAG
888 gr_audio_portaudio_LIBDIRPATH
889 gr_audio_portaudio_INCLUDEDIR
890 gr_audio_portaudio_LA
891 gr_audio_portaudio_INCLUDES
892 PORTAUDIO_CPPFLAGS
893 PORTAUDIO_INCLUDEDIR
894 PORTAUDIO_LIBS
895 PORTAUDIO_CFLAGS
896 gr_audio_osx_LDFLAG
897 gr_audio_osx_LIBDIRPATH
898 gr_audio_osx_INCLUDEDIR
899 gr_audio_osx_LA
900 gr_audio_osx_INCLUDES
901 gr_audio_oss_LDFLAG
902 gr_audio_oss_LIBDIRPATH
903 gr_audio_oss_INCLUDEDIR
904 gr_audio_oss_LA
905 gr_audio_oss_INCLUDES
906 OSS_LIBS
907 gr_audio_jack_LDFLAG
908 gr_audio_jack_LIBDIRPATH
909 gr_audio_jack_INCLUDEDIR
910 gr_audio_jack_LA
911 gr_audio_jack_INCLUDES
912 JACK_CPPFLAGS
913 JACK_INCLUDEDIR
914 JACK_LIBS
915 JACK_CFLAGS
916 gr_audio_alsa_LDFLAG
917 gr_audio_alsa_LIBDIRPATH
918 gr_audio_alsa_INCLUDEDIR
919 gr_audio_alsa_LA
920 gr_audio_alsa_INCLUDES
921 ALSA_CPPFLAGS
922 ALSA_INCLUDEDIR
923 ALSA_LIBS
924 ALSA_CFLAGS
925 gr_msdd6000_LDFLAG
926 gr_msdd6000_LIBDIRPATH
927 gr_msdd6000_INCLUDEDIR
928 gr_msdd6000_LA
929 gr_msdd6000_INCLUDES
930 gr_gcell_LDFLAG
931 gr_gcell_LIBDIRPATH
932 gr_gcell_INCLUDEDIR
933 gr_gcell_LA
934 gr_gcell_INCLUDES
935 gr_usrp2_LDFLAG
936 gr_usrp2_LIBDIRPATH
937 gr_usrp2_INCLUDEDIR
938 gr_usrp2_LA
939 gr_usrp2_INCLUDES
940 gr_usrp_LDFLAG
941 gr_usrp_LIBDIRPATH
942 gr_usrp_INCLUDEDIR
943 gr_usrp_LA
944 gr_usrp_INCLUDES
945 usrp2_LDFLAG
946 usrp2_LIBDIRPATH
947 usrp2_INCLUDEDIR
948 usrp2_LA
949 usrp2_INCLUDES
950 USRP2_LA
951 USRP2_INCLUDES
952 subdirs
953 usrp_LDFLAG
954 usrp_LIBDIRPATH
955 usrp_INCLUDEDIR
956 usrp_LA
957 usrp_INCLUDES
958 XAS
959 XCC
960 USB_INCLUDES
961 LIBUSB_PKG_CONFIG_NAME
962 USB_CPPFLAGS
963 USB_INCLUDEDIR
964 USB_LIBS
965 USB_CFLAGS
966 USE_LIBUSB1
967 FUSB_TECH_ra_wb_FALSE
968 FUSB_TECH_ra_wb_TRUE
969 FUSB_TECH_libusb1_FALSE
970 FUSB_TECH_libusb1_TRUE
971 FUSB_TECH_linux_FALSE
972 FUSB_TECH_linux_TRUE
973 FUSB_TECH_generic_FALSE
974 FUSB_TECH_generic_TRUE
975 FUSB_TECH_win32_FALSE
976 FUSB_TECH_win32_TRUE
977 FUSB_TECH_darwin_FALSE
978 FUSB_TECH_darwin_TRUE
979 FUSB_TECH
980 gnuradio_core_LDFLAG
981 gnuradio_core_LIBDIRPATH
982 gnuradio_core_INCLUDEDIR
983 gnuradio_core_LA
984 gnuradio_core_INCLUDES
985 gnuradio_core_PYDIRPATH
986 gnuradio_core_SWIGDIRPATH
987 gnuradio_core_I
988 GSL_CPPFLAGS
989 GSL_INCLUDEDIR
990 GSL_LIBS
991 GSL_CFLAGS
992 CBLAS_LIBS
993 gcell_LDFLAG
994 gcell_LIBDIRPATH
995 gcell_INCLUDEDIR
996 gcell_LA
997 gcell_INCLUDES
998 gcell_spu_LA
999 gcell_spu_INCLUDES
1000 SPU_GCC_PROG
1001 gruel_LDFLAG
1002 gruel_LIBDIRPATH
1003 gruel_INCLUDEDIR
1004 gruel_LA
1005 gruel_INCLUDES
1006 GR_HAVE_BYTESWAP
1007 GR_HAVE_NETINET_IN
1008 GR_HAVE_ARPA_INET
1009 GR_PREFSDIR
1010 SYSCONFDIR
1011 BUILD_DATE
1012 BOOST_PROGRAM_OPTIONS_LIB
1013 BOOST_DATE_TIME_LIB
1014 BOOST_THREAD_LIB
1015 BOOST_CXXFLAGS
1016 PTHREAD_CFLAGS
1017 PTHREAD_LIBS
1018 PTHREAD_CC
1019 acx_pthread_config
1020 BOOST_LDFLAGS
1021 BOOST_CPPFLAGS
1022 GUILE
1023 CPPUNIT_INCLUDES
1024 CPPUNIT_CONFIG
1025 CPPUNIT_CPPFLAGS
1026 CPPUNIT_INCLUDEDIR
1027 CPPUNIT_LIBS
1028 CPPUNIT_CFLAGS
1029 MD_CPU_generic_FALSE
1030 MD_CPU_generic_TRUE
1031 MD_CPU_armv7_a_FALSE
1032 MD_CPU_armv7_a_TRUE
1033 MD_CPU_armv5_FALSE
1034 MD_CPU_armv5_TRUE
1035 MD_CPU_powerpc_FALSE
1036 MD_CPU_powerpc_TRUE
1037 MD_SUBCPU_x86_64_FALSE
1038 MD_SUBCPU_x86_64_TRUE
1039 MD_CPU_x86_FALSE
1040 MD_CPU_x86_TRUE
1041 MD_SUBCPU
1042 MD_CPU
1043 generate_docs
1044 enable_latex_docs
1045 enable_html_docs
1046 enable_xml_docs
1047 enable_dot
1048 DOC_FALSE
1049 DOC_TRUE
1050 DOT
1051 DOXYGEN
1052 FFTW3F_CPPFLAGS
1053 FFTW3F_INCLUDEDIR
1054 FFTW3F_LIBS
1055 FFTW3F_CFLAGS
1056 PKG_CONFIG
1057 HAVE_DOT
1058 LIBOBJS
1059 HAVE_CREATEFILEMAPPING_FALSE
1060 HAVE_CREATEFILEMAPPING_TRUE
1061 LIBGNURADIO_CORE_EXTRA_LDFLAGS
1062 SHM_OPEN_LIBS
1063 ALLOCA
1064 GR_ARCH_BIGENDIAN
1065 IPC_LIBS
1066 CXX_FOR_BUILD
1067 HAS_XMLTO_FALSE
1068 HAS_XMLTO_TRUE
1069 XMLTO
1070 PYTHON_FALSE
1071 PYTHON_TRUE
1072 SWIG_PYTHON_CPPFLAGS
1073 SWIG_PYTHON_OPT
1074 SWIG_PYTHON_LIB
1075 PYTHON_LDFLAGS
1076 PYTHON_CPPFLAGS
1077 pkgpyexecdir
1078 pyexecdir
1079 pkgpythondir
1080 pythondir
1081 PYTHON_PLATFORM
1082 PYTHON_EXEC_PREFIX
1083 PYTHON_PREFIX
1084 PYTHON_VERSION
1085 PYTHON
1086 SWIG
1087 NO_UNDEFINED
1088 OTOOL64
1089 OTOOL
1090 LIPO
1091 NMEDIT
1092 DSYMUTIL
1093 lt_ECHO
1094 RANLIB
1095 AR
1096 NM
1097 ac_ct_DUMPBIN
1098 DUMPBIN
1099 LD
1100 FGREP
1101 SED
1102 LIBTOOL
1103 OBJDUMP
1104 DLLTOOL
1105 AS
1106 RM_PROG
1107 LN_S
1108 am__fastdepCCAS_FALSE
1109 am__fastdepCCAS_TRUE
1110 CCASDEPMODE
1111 CCASFLAGS
1112 CCAS
1113 lf_CXXFLAGS
1114 lf_CFLAGS
1115 swig_CXXFLAGS
1116 autoconf_default_CXXFLAGS
1117 autoconf_default_CFLAGS
1118 gr_libdir_suffix
1119 CXXCPP
1120 am__fastdepCXX_FALSE
1121 am__fastdepCXX_TRUE
1122 CXXDEPMODE
1123 ac_ct_CXX
1124 CXXFLAGS
1125 CXX
1126 EGREP
1127 GREP
1128 CPP
1129 am__fastdepCC_FALSE
1130 am__fastdepCC_TRUE
1131 CCDEPMODE
1132 AMDEPBACKSLASH
1133 AMDEP_FALSE
1134 AMDEP_TRUE
1135 am__quote
1136 am__include
1137 DEPDIR
1138 OBJEXT
1139 EXEEXT
1140 ac_ct_CC
1141 CPPFLAGS
1142 LDFLAGS
1143 CFLAGS
1144 CC
1145 DEFINES
1146 am__untar
1147 am__tar
1148 AMTAR
1149 am__leading_dot
1150 SET_MAKE
1151 AWK
1152 mkdir_p
1153 MKDIR_P
1154 INSTALL_STRIP_PROGRAM
1155 STRIP
1156 install_sh
1157 MAKEINFO
1158 AUTOHEADER
1159 AUTOMAKE
1160 AUTOCONF
1161 ACLOCAL
1162 VERSION
1163 PACKAGE
1164 CYGPATH_W
1165 am__isrc
1166 INSTALL_DATA
1167 INSTALL_SCRIPT
1168 INSTALL_PROGRAM
1169 LIBVER
1170 DOCVER
1171 RELEASE
1172 GIT_COMMIT
1173 GIT_SEQNO
1174 GIT_TAG
1175 GIT_DESCRIBE
1176 GIT
1177 target_os
1178 target_vendor
1179 target_cpu
1180 target
1181 host_os
1182 host_vendor
1183 host_cpu
1184 host
1185 build_os
1186 build_vendor
1187 build_cpu
1188 build
1189 target_alias
1190 host_alias
1191 build_alias
1192 LIBS
1193 ECHO_T
1194 ECHO_N
1195 ECHO_C
1196 DEFS
1197 mandir
1198 localedir
1199 libdir
1200 psdir
1201 pdfdir
1202 dvidir
1203 htmldir
1204 infodir
1205 docdir
1206 oldincludedir
1207 includedir
1208 localstatedir
1209 sharedstatedir
1210 sysconfdir
1211 datadir
1212 datarootdir
1213 libexecdir
1214 sbindir
1215 bindir
1216 program_transform_name
1217 prefix
1218 exec_prefix
1219 PACKAGE_URL
1220 PACKAGE_BUGREPORT
1221 PACKAGE_STRING
1222 PACKAGE_VERSION
1223 PACKAGE_TARNAME
1224 PACKAGE_NAME
1225 PATH_SEPARATOR
1226 SHELL'
1227 ac_subst_files=''
1228 ac_user_opts='
1229 enable_option_checking
1230 enable_dependency_tracking
1231 with_gprof
1232 with_prof
1233 enable_shared
1234 enable_static
1235 with_pic
1236 enable_fast_install
1237 with_gnu_ld
1238 enable_libtool_lock
1239 with_pythondir
1240 enable_python
1241 enable_doxygen
1242 enable_dot
1243 with_md_cpu
1244 enable_altivec
1245 with_cppunit_prefix
1246 with_cppunit_exec_prefix
1247 with_boost
1248 with_boost_libdir
1249 with_boost_thread
1250 with_boost_date_time
1251 with_boost_program_options
1252 enable_all_components
1253 enable_gruel
1254 with_gruel
1255 enable_gcell
1256 enable_gnuradio_core
1257 with_gnuradio_core
1258 with_cblas
1259 enable_usrp
1260 with_usrp
1261 with_fusb_tech
1262 enable_usrp2
1263 enable_gr_usrp
1264 enable_gr_usrp2
1265 enable_gr_gcell
1266 enable_gr_msdd6000
1267 enable_gr_audio_alsa
1268 enable_gr_audio_jack
1269 enable_gr_audio_oss
1270 enable_gr_audio_osx
1271 enable_gr_audio_portaudio
1272 enable_gr_audio_windows
1273 enable_gr_atsc
1274 enable_gr_comedi
1275 enable_gr_cvsd_vocoder
1276 enable_gr_gpio
1277 enable_gr_gsm_fr_vocoder
1278 enable_gr_noaa
1279 enable_gr_pager
1280 enable_gr_radar_mono
1281 enable_gr_radio_astronomy
1282 enable_gr_trellis
1283 enable_gr_video_sdl
1284 with_sdl_prefix
1285 with_sdl_exec_prefix
1286 enable_sdltest
1287 enable_gr_wxgui
1288 with_gr_wxgui
1289 enable_gr_qtgui
1290 with_qwt_libdir
1291 with_qwt_incdir
1292 with_qwt_lib
1293 with_qwtplot3d_libdir
1294 with_qwtplot3d_incdir
1295 with_qwtplot3d_lib
1296 enable_gr_sounder
1297 enable_gr_utils
1298 enable_gnuradio_examples
1299 enable_grc
1300 enable_docs
1301 '
1302       ac_precious_vars='build_alias
1303 host_alias
1304 target_alias
1305 CC
1306 CFLAGS
1307 LDFLAGS
1308 LIBS
1309 CPPFLAGS
1310 CPP
1311 CXX
1312 CXXFLAGS
1313 CCC
1314 CXXCPP
1315 CCAS
1316 CCASFLAGS
1317 PKG_CONFIG
1318 FFTW3F_CFLAGS
1319 FFTW3F_LIBS
1320 FFTW3F_INCLUDEDIR
1321 CPPUNIT_CFLAGS
1322 CPPUNIT_LIBS
1323 CPPUNIT_INCLUDEDIR
1324 GSL_CFLAGS
1325 GSL_LIBS
1326 GSL_INCLUDEDIR
1327 USB_CFLAGS
1328 USB_LIBS
1329 USB_INCLUDEDIR
1330 ALSA_CFLAGS
1331 ALSA_LIBS
1332 ALSA_INCLUDEDIR
1333 JACK_CFLAGS
1334 JACK_LIBS
1335 JACK_INCLUDEDIR
1336 PORTAUDIO_CFLAGS
1337 PORTAUDIO_LIBS
1338 PORTAUDIO_INCLUDEDIR
1339 COMEDI_CFLAGS
1340 COMEDI_LIBS
1341 COMEDI_INCLUDEDIR
1342 SDL_CFLAGS
1343 SDL_LIBS
1344 SDL_INCLUDEDIR
1345 QTCORE_CFLAGS
1346 QTCORE_LIBS
1347 QTCORE_INCLUDEDIR
1348 QTGUI_CFLAGS
1349 QTGUI_LIBS
1350 QTGUI_INCLUDEDIR
1351 QTOPENGL_CFLAGS
1352 QTOPENGL_LIBS
1353 QTOPENGL_INCLUDEDIR'
1354 ac_subdirs_all='usrp2/firmware'
1355
1356 # Initialize some variables set by options.
1357 ac_init_help=
1358 ac_init_version=false
1359 ac_unrecognized_opts=
1360 ac_unrecognized_sep=
1361 # The variables have the same names as the options, with
1362 # dashes changed to underlines.
1363 cache_file=/dev/null
1364 exec_prefix=NONE
1365 no_create=
1366 no_recursion=
1367 prefix=NONE
1368 program_prefix=NONE
1369 program_suffix=NONE
1370 program_transform_name=s,x,x,
1371 silent=
1372 site=
1373 srcdir=
1374 verbose=
1375 x_includes=NONE
1376 x_libraries=NONE
1377
1378 # Installation directory options.
1379 # These are left unexpanded so users can "make install exec_prefix=/foo"
1380 # and all the variables that are supposed to be based on exec_prefix
1381 # by default will actually change.
1382 # Use braces instead of parens because sh, perl, etc. also accept them.
1383 # (The list follows the same order as the GNU Coding Standards.)
1384 bindir='${exec_prefix}/bin'
1385 sbindir='${exec_prefix}/sbin'
1386 libexecdir='${exec_prefix}/libexec'
1387 datarootdir='${prefix}/share'
1388 datadir='${datarootdir}'
1389 sysconfdir='${prefix}/etc'
1390 sharedstatedir='${prefix}/com'
1391 localstatedir='${prefix}/var'
1392 includedir='${prefix}/include'
1393 oldincludedir='/usr/include'
1394 docdir='${datarootdir}/doc/${PACKAGE}'
1395 infodir='${datarootdir}/info'
1396 htmldir='${docdir}'
1397 dvidir='${docdir}'
1398 pdfdir='${docdir}'
1399 psdir='${docdir}'
1400 libdir='${exec_prefix}/lib'
1401 localedir='${datarootdir}/locale'
1402 mandir='${datarootdir}/man'
1403
1404 ac_prev=
1405 ac_dashdash=
1406 for ac_option
1407 do
1408   # If the previous option needs an argument, assign it.
1409   if test -n "$ac_prev"; then
1410     eval $ac_prev=\$ac_option
1411     ac_prev=
1412     continue
1413   fi
1414
1415   case $ac_option in
1416   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1417   *=)   ac_optarg= ;;
1418   *)    ac_optarg=yes ;;
1419   esac
1420
1421   # Accept the important Cygnus configure options, so we can diagnose typos.
1422
1423   case $ac_dashdash$ac_option in
1424   --)
1425     ac_dashdash=yes ;;
1426
1427   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1428     ac_prev=bindir ;;
1429   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1430     bindir=$ac_optarg ;;
1431
1432   -build | --build | --buil | --bui | --bu)
1433     ac_prev=build_alias ;;
1434   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1435     build_alias=$ac_optarg ;;
1436
1437   -cache-file | --cache-file | --cache-fil | --cache-fi \
1438   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1439     ac_prev=cache_file ;;
1440   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1441   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1442     cache_file=$ac_optarg ;;
1443
1444   --config-cache | -C)
1445     cache_file=config.cache ;;
1446
1447   -datadir | --datadir | --datadi | --datad)
1448     ac_prev=datadir ;;
1449   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1450     datadir=$ac_optarg ;;
1451
1452   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1453   | --dataroo | --dataro | --datar)
1454     ac_prev=datarootdir ;;
1455   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1456   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1457     datarootdir=$ac_optarg ;;
1458
1459   -disable-* | --disable-*)
1460     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1461     # Reject names that are not valid shell variable names.
1462     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1463       as_fn_error $? "invalid feature name: $ac_useropt"
1464     ac_useropt_orig=$ac_useropt
1465     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1466     case $ac_user_opts in
1467       *"
1468 "enable_$ac_useropt"
1469 "*) ;;
1470       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1471          ac_unrecognized_sep=', ';;
1472     esac
1473     eval enable_$ac_useropt=no ;;
1474
1475   -docdir | --docdir | --docdi | --doc | --do)
1476     ac_prev=docdir ;;
1477   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1478     docdir=$ac_optarg ;;
1479
1480   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1481     ac_prev=dvidir ;;
1482   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1483     dvidir=$ac_optarg ;;
1484
1485   -enable-* | --enable-*)
1486     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1487     # Reject names that are not valid shell variable names.
1488     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1489       as_fn_error $? "invalid feature name: $ac_useropt"
1490     ac_useropt_orig=$ac_useropt
1491     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1492     case $ac_user_opts in
1493       *"
1494 "enable_$ac_useropt"
1495 "*) ;;
1496       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1497          ac_unrecognized_sep=', ';;
1498     esac
1499     eval enable_$ac_useropt=\$ac_optarg ;;
1500
1501   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1502   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1503   | --exec | --exe | --ex)
1504     ac_prev=exec_prefix ;;
1505   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1506   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1507   | --exec=* | --exe=* | --ex=*)
1508     exec_prefix=$ac_optarg ;;
1509
1510   -gas | --gas | --ga | --g)
1511     # Obsolete; use --with-gas.
1512     with_gas=yes ;;
1513
1514   -help | --help | --hel | --he | -h)
1515     ac_init_help=long ;;
1516   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1517     ac_init_help=recursive ;;
1518   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1519     ac_init_help=short ;;
1520
1521   -host | --host | --hos | --ho)
1522     ac_prev=host_alias ;;
1523   -host=* | --host=* | --hos=* | --ho=*)
1524     host_alias=$ac_optarg ;;
1525
1526   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1527     ac_prev=htmldir ;;
1528   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1529   | --ht=*)
1530     htmldir=$ac_optarg ;;
1531
1532   -includedir | --includedir | --includedi | --included | --include \
1533   | --includ | --inclu | --incl | --inc)
1534     ac_prev=includedir ;;
1535   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1536   | --includ=* | --inclu=* | --incl=* | --inc=*)
1537     includedir=$ac_optarg ;;
1538
1539   -infodir | --infodir | --infodi | --infod | --info | --inf)
1540     ac_prev=infodir ;;
1541   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1542     infodir=$ac_optarg ;;
1543
1544   -libdir | --libdir | --libdi | --libd)
1545     ac_prev=libdir ;;
1546   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1547     libdir=$ac_optarg ;;
1548
1549   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1550   | --libexe | --libex | --libe)
1551     ac_prev=libexecdir ;;
1552   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1553   | --libexe=* | --libex=* | --libe=*)
1554     libexecdir=$ac_optarg ;;
1555
1556   -localedir | --localedir | --localedi | --localed | --locale)
1557     ac_prev=localedir ;;
1558   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1559     localedir=$ac_optarg ;;
1560
1561   -localstatedir | --localstatedir | --localstatedi | --localstated \
1562   | --localstate | --localstat | --localsta | --localst | --locals)
1563     ac_prev=localstatedir ;;
1564   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1565   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1566     localstatedir=$ac_optarg ;;
1567
1568   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1569     ac_prev=mandir ;;
1570   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1571     mandir=$ac_optarg ;;
1572
1573   -nfp | --nfp | --nf)
1574     # Obsolete; use --without-fp.
1575     with_fp=no ;;
1576
1577   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1578   | --no-cr | --no-c | -n)
1579     no_create=yes ;;
1580
1581   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1582   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1583     no_recursion=yes ;;
1584
1585   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1586   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1587   | --oldin | --oldi | --old | --ol | --o)
1588     ac_prev=oldincludedir ;;
1589   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1590   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1591   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1592     oldincludedir=$ac_optarg ;;
1593
1594   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1595     ac_prev=prefix ;;
1596   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1597     prefix=$ac_optarg ;;
1598
1599   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1600   | --program-pre | --program-pr | --program-p)
1601     ac_prev=program_prefix ;;
1602   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1603   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1604     program_prefix=$ac_optarg ;;
1605
1606   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1607   | --program-suf | --program-su | --program-s)
1608     ac_prev=program_suffix ;;
1609   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1610   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1611     program_suffix=$ac_optarg ;;
1612
1613   -program-transform-name | --program-transform-name \
1614   | --program-transform-nam | --program-transform-na \
1615   | --program-transform-n | --program-transform- \
1616   | --program-transform | --program-transfor \
1617   | --program-transfo | --program-transf \
1618   | --program-trans | --program-tran \
1619   | --progr-tra | --program-tr | --program-t)
1620     ac_prev=program_transform_name ;;
1621   -program-transform-name=* | --program-transform-name=* \
1622   | --program-transform-nam=* | --program-transform-na=* \
1623   | --program-transform-n=* | --program-transform-=* \
1624   | --program-transform=* | --program-transfor=* \
1625   | --program-transfo=* | --program-transf=* \
1626   | --program-trans=* | --program-tran=* \
1627   | --progr-tra=* | --program-tr=* | --program-t=*)
1628     program_transform_name=$ac_optarg ;;
1629
1630   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1631     ac_prev=pdfdir ;;
1632   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1633     pdfdir=$ac_optarg ;;
1634
1635   -psdir | --psdir | --psdi | --psd | --ps)
1636     ac_prev=psdir ;;
1637   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1638     psdir=$ac_optarg ;;
1639
1640   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1641   | -silent | --silent | --silen | --sile | --sil)
1642     silent=yes ;;
1643
1644   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1645     ac_prev=sbindir ;;
1646   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1647   | --sbi=* | --sb=*)
1648     sbindir=$ac_optarg ;;
1649
1650   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1651   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1652   | --sharedst | --shareds | --shared | --share | --shar \
1653   | --sha | --sh)
1654     ac_prev=sharedstatedir ;;
1655   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1656   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1657   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1658   | --sha=* | --sh=*)
1659     sharedstatedir=$ac_optarg ;;
1660
1661   -site | --site | --sit)
1662     ac_prev=site ;;
1663   -site=* | --site=* | --sit=*)
1664     site=$ac_optarg ;;
1665
1666   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1667     ac_prev=srcdir ;;
1668   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1669     srcdir=$ac_optarg ;;
1670
1671   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1672   | --syscon | --sysco | --sysc | --sys | --sy)
1673     ac_prev=sysconfdir ;;
1674   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1675   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1676     sysconfdir=$ac_optarg ;;
1677
1678   -target | --target | --targe | --targ | --tar | --ta | --t)
1679     ac_prev=target_alias ;;
1680   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1681     target_alias=$ac_optarg ;;
1682
1683   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1684     verbose=yes ;;
1685
1686   -version | --version | --versio | --versi | --vers | -V)
1687     ac_init_version=: ;;
1688
1689   -with-* | --with-*)
1690     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1691     # Reject names that are not valid shell variable names.
1692     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1693       as_fn_error $? "invalid package name: $ac_useropt"
1694     ac_useropt_orig=$ac_useropt
1695     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1696     case $ac_user_opts in
1697       *"
1698 "with_$ac_useropt"
1699 "*) ;;
1700       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1701          ac_unrecognized_sep=', ';;
1702     esac
1703     eval with_$ac_useropt=\$ac_optarg ;;
1704
1705   -without-* | --without-*)
1706     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1707     # Reject names that are not valid shell variable names.
1708     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1709       as_fn_error $? "invalid package name: $ac_useropt"
1710     ac_useropt_orig=$ac_useropt
1711     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1712     case $ac_user_opts in
1713       *"
1714 "with_$ac_useropt"
1715 "*) ;;
1716       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1717          ac_unrecognized_sep=', ';;
1718     esac
1719     eval with_$ac_useropt=no ;;
1720
1721   --x)
1722     # Obsolete; use --with-x.
1723     with_x=yes ;;
1724
1725   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1726   | --x-incl | --x-inc | --x-in | --x-i)
1727     ac_prev=x_includes ;;
1728   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1729   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1730     x_includes=$ac_optarg ;;
1731
1732   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1733   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1734     ac_prev=x_libraries ;;
1735   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1736   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1737     x_libraries=$ac_optarg ;;
1738
1739   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1740 Try \`$0 --help' for more information"
1741     ;;
1742
1743   *=*)
1744     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1745     # Reject names that are not valid shell variable names.
1746     case $ac_envvar in #(
1747       '' | [0-9]* | *[!_$as_cr_alnum]* )
1748       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1749     esac
1750     eval $ac_envvar=\$ac_optarg
1751     export $ac_envvar ;;
1752
1753   *)
1754     # FIXME: should be removed in autoconf 3.0.
1755     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1756     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1757       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1758     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1759     ;;
1760
1761   esac
1762 done
1763
1764 if test -n "$ac_prev"; then
1765   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1766   as_fn_error $? "missing argument to $ac_option"
1767 fi
1768
1769 if test -n "$ac_unrecognized_opts"; then
1770   case $enable_option_checking in
1771     no) ;;
1772     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1773     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1774   esac
1775 fi
1776
1777 # Check all directory arguments for consistency.
1778 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1779                 datadir sysconfdir sharedstatedir localstatedir includedir \
1780                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1781                 libdir localedir mandir
1782 do
1783   eval ac_val=\$$ac_var
1784   # Remove trailing slashes.
1785   case $ac_val in
1786     */ )
1787       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1788       eval $ac_var=\$ac_val;;
1789   esac
1790   # Be sure to have absolute directory names.
1791   case $ac_val in
1792     [\\/$]* | ?:[\\/]* )  continue;;
1793     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1794   esac
1795   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1796 done
1797
1798 # There might be people who depend on the old broken behavior: `$host'
1799 # used to hold the argument of --host etc.
1800 # FIXME: To remove some day.
1801 build=$build_alias
1802 host=$host_alias
1803 target=$target_alias
1804
1805 # FIXME: To remove some day.
1806 if test "x$host_alias" != x; then
1807   if test "x$build_alias" = x; then
1808     cross_compiling=maybe
1809     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1810     If a cross compiler is detected then cross compile mode will be used" >&2
1811   elif test "x$build_alias" != "x$host_alias"; then
1812     cross_compiling=yes
1813   fi
1814 fi
1815
1816 ac_tool_prefix=
1817 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1818
1819 test "$silent" = yes && exec 6>/dev/null
1820
1821
1822 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1823 ac_ls_di=`ls -di .` &&
1824 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1825   as_fn_error $? "working directory cannot be determined"
1826 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1827   as_fn_error $? "pwd does not report name of working directory"
1828
1829
1830 # Find the source files, if location was not specified.
1831 if test -z "$srcdir"; then
1832   ac_srcdir_defaulted=yes
1833   # Try the directory containing this script, then the parent directory.
1834   ac_confdir=`$as_dirname -- "$as_myself" ||
1835 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1836          X"$as_myself" : 'X\(//\)[^/]' \| \
1837          X"$as_myself" : 'X\(//\)$' \| \
1838          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1839 $as_echo X"$as_myself" |
1840     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1841             s//\1/
1842             q
1843           }
1844           /^X\(\/\/\)[^/].*/{
1845             s//\1/
1846             q
1847           }
1848           /^X\(\/\/\)$/{
1849             s//\1/
1850             q
1851           }
1852           /^X\(\/\).*/{
1853             s//\1/
1854             q
1855           }
1856           s/.*/./; q'`
1857   srcdir=$ac_confdir
1858   if test ! -r "$srcdir/$ac_unique_file"; then
1859     srcdir=..
1860   fi
1861 else
1862   ac_srcdir_defaulted=no
1863 fi
1864 if test ! -r "$srcdir/$ac_unique_file"; then
1865   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1866   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1867 fi
1868 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1869 ac_abs_confdir=`(
1870         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1871         pwd)`
1872 # When building in place, set srcdir=.
1873 if test "$ac_abs_confdir" = "$ac_pwd"; then
1874   srcdir=.
1875 fi
1876 # Remove unnecessary trailing slashes from srcdir.
1877 # Double slashes in file names in object file debugging info
1878 # mess up M-x gdb in Emacs.
1879 case $srcdir in
1880 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1881 esac
1882 for ac_var in $ac_precious_vars; do
1883   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1884   eval ac_env_${ac_var}_value=\$${ac_var}
1885   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1886   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1887 done
1888
1889 #
1890 # Report the --help message.
1891 #
1892 if test "$ac_init_help" = "long"; then
1893   # Omit some internal or obsolete options to make the list less imposing.
1894   # This message is too long to be a string in the A/UX 3.1 sh.
1895   cat <<_ACEOF
1896 \`configure' configures this package to adapt to many kinds of systems.
1897
1898 Usage: $0 [OPTION]... [VAR=VALUE]...
1899
1900 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1901 VAR=VALUE.  See below for descriptions of some of the useful variables.
1902
1903 Defaults for the options are specified in brackets.
1904
1905 Configuration:
1906   -h, --help              display this help and exit
1907       --help=short        display options specific to this package
1908       --help=recursive    display the short help of all the included packages
1909   -V, --version           display version information and exit
1910   -q, --quiet, --silent   do not print \`checking ...' messages
1911       --cache-file=FILE   cache test results in FILE [disabled]
1912   -C, --config-cache      alias for \`--cache-file=config.cache'
1913   -n, --no-create         do not create output files
1914       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1915
1916 Installation directories:
1917   --prefix=PREFIX         install architecture-independent files in PREFIX
1918                           [$ac_default_prefix]
1919   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1920                           [PREFIX]
1921
1922 By default, \`make install' will install all the files in
1923 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1924 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1925 for instance \`--prefix=\$HOME'.
1926
1927 For better control, use the options below.
1928
1929 Fine tuning of the installation directories:
1930   --bindir=DIR            user executables [EPREFIX/bin]
1931   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1932   --libexecdir=DIR        program executables [EPREFIX/libexec]
1933   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1934   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1935   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1936   --libdir=DIR            object code libraries [EPREFIX/lib]
1937   --includedir=DIR        C header files [PREFIX/include]
1938   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1939   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1940   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1941   --infodir=DIR           info documentation [DATAROOTDIR/info]
1942   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1943   --mandir=DIR            man documentation [DATAROOTDIR/man]
1944   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1945   --htmldir=DIR           html documentation [DOCDIR]
1946   --dvidir=DIR            dvi documentation [DOCDIR]
1947   --pdfdir=DIR            pdf documentation [DOCDIR]
1948   --psdir=DIR             ps documentation [DOCDIR]
1949 _ACEOF
1950
1951   cat <<\_ACEOF
1952
1953 Program names:
1954   --program-prefix=PREFIX            prepend PREFIX to installed program names
1955   --program-suffix=SUFFIX            append SUFFIX to installed program names
1956   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1957
1958 System types:
1959   --build=BUILD     configure for building on BUILD [guessed]
1960   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1961   --target=TARGET   configure for building compilers for TARGET [HOST]
1962 _ACEOF
1963 fi
1964
1965 if test -n "$ac_init_help"; then
1966
1967   cat <<\_ACEOF
1968
1969 Optional Features:
1970   --disable-option-checking  ignore unrecognized --enable/--with options
1971   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1972   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1973   --disable-dependency-tracking  speeds up one-time build
1974   --enable-dependency-tracking   do not reject slow dependency extractors
1975   --enable-shared[=PKGS]  build shared libraries [default=yes]
1976   --enable-static[=PKGS]  build static libraries [default=no]
1977   --enable-fast-install[=PKGS]
1978                           optimize for fast installation [default=yes]
1979   --disable-libtool-lock  avoid locking (might break parallel builds)
1980   --enable-python         generate SWIG/Python components (default is yes)
1981   --enable-doxygen        enable documentation generation with doxygen (auto)
1982   --enable-dot            use 'dot' to generate graphs in doxygen (auto)
1983   --enable-altivec        enable altivec on PowerPC (yes)
1984   --enable-all-components Build all configurable components (default), or stop on failed dependencies
1985
1986   --enable-gruel          Stop if gruel fails configuration
1987   --enable-gcell          Stop if gcell fails configuration
1988   --enable-gnuradio-core  Stop if gnuradio-core fails configuration
1989   --enable-usrp           Stop if usrp fails configuration
1990   --enable-usrp2          Stop if usrp2 fails configuration
1991   --enable-gr-usrp        Stop if gr-usrp fails configuration
1992   --enable-gr-usrp2       Stop if gr-usrp2 fails configuration
1993   --enable-gr-gcell       Stop if gr-gcell fails configuration
1994   --enable-gr-msdd6000    Stop if gr-msdd6000 fails configuration
1995   --enable-gr-audio-alsa  Stop if gr-audio-alsa fails configuration
1996   --enable-gr-audio-jack  Stop if gr-audio-jack fails configuration
1997   --enable-gr-audio-oss   Stop if gr-audio-oss fails configuration
1998   --enable-gr-audio-osx   Stop if gr-audio-osx fails configuration
1999   --enable-gr-audio-portaudio
2000                           Stop if gr-audio-portaudio fails configuration
2001   --enable-gr-audio-windows
2002                           Stop if gr-audio-windows fails configuration
2003   --enable-gr-atsc        Stop if gr-atsc fails configuration
2004   --enable-gr-comedi      Stop if gr-comedi fails configuration
2005   --enable-gr-cvsd-vocoder
2006                           Stop if gr-cvsd-vocoder fails configuration
2007   --enable-gr-gpio        Stop if gr-gpio fails configuration
2008   --enable-gr-gsm-fr-vocoder
2009                           Stop if gr-gsm-fr-vocoder fails configuration
2010   --enable-gr-noaa        Stop if gr-noaa fails configuration
2011   --enable-gr-pager       Stop if gr-pager fails configuration
2012   --enable-gr-radar-mono  Stop if gr-radar-mono fails configuration
2013   --enable-gr-radio-astronomy
2014                           Stop if gr-radio-astronomy fails configuration
2015   --enable-gr-trellis     Stop if gr-trellis fails configuration
2016   --enable-gr-video-sdl   Stop if gr-video-sdl fails configuration
2017   --disable-sdltest       Do not try to compile and run a test SDL program
2018   --enable-gr-wxgui       Stop if gr-wxgui fails configuration
2019   --enable-gr-qtgui       Stop if gr-qtgui fails configuration
2020   --enable-gr-sounder     Stop if gr-sounder fails configuration
2021   --enable-gr-utils       Stop if gr-utils fails configuration
2022   --enable-gnuradio-examples
2023                           Stop if gnuradio-examples fails configuration
2024   --enable-grc            Stop if grc fails configuration
2025   --enable-docs           Stop if docs fails configuration
2026
2027 Optional Packages:
2028   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2029   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2030   --with-gprof            Turn on gprof profiling
2031   --with-prof             Turn on prof profiling
2032   --with-pic              try to use only PIC/non-PIC objects [default=use
2033                           both]
2034   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2035   --with-pythondir=DIR    python installation directory (cross-compiling)
2036                           [[default=$prefix/lib/python2.5/site-packages]]
2037   --with-md-cpu=ARCH      set machine dependent speedups (auto)
2038   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
2039   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
2040   --with-boost[=DIR]      use boost (default is yes) - it is possible to
2041                           specify the root directory for boost (optional)
2042   --with-boost-libdir=LIB_DIR
2043                           Force given directory for boost libraries. Note that
2044                           this will overwrite library path detection, so use
2045                           this parameter only if default library detection
2046                           fails and you know exactly where your boost
2047                           libraries are located.
2048   --with-boost-thread[=special-lib]
2049                           Use the thread library from
2050                           boost. It is possible to specify a certain library
2051                           to the linker. E.g.,
2052                           --with-boost-thread=boost_thread-gcc41-mt-1_35
2053   --with-boost-date-time[=special-lib]
2054                           Use the date_time library from
2055                           boost. It is possible to specify a certain library
2056                           to the linker. E.g.,
2057                           --with-boost-date-time=boost_date_time-gcc41-mt-1_35
2058   --with-boost-program-options[=special-lib]
2059                           Use the program_options library
2060                           from boost. It is possible to specify a certain
2061                           library to the linker. E.g.,
2062                           --with-boost-program-options=boost_program_options-gcc41-mt-1_35
2063   --with-gruel[=PATH]     Use package gruel if installed in PATH (if
2064                           specified) or PKG_CONFIG_PATH (if PATH not
2065                           specified); stop if gruel not found
2066   --with-gnuradio-core[=PATH]
2067                           Use package gnuradio-core if installed in PATH (if
2068                           specified) or PKG_CONFIG_PATH (if PATH not
2069                           specified); stop if gnuradio-core not found
2070   --with-cblas=<lib>      use CBLAS library <lib>
2071   --with-usrp[=PATH]      Use package usrp if installed in PATH (if specified)
2072                           or PKG_CONFIG_PATH (if PATH not specified); stop if
2073                           usrp not found
2074   --with-fusb-tech=OS     Set fast USB technique (default=auto)
2075   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
2076   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
2077   --with-gr-wxgui[=PATH]  Use package gr-wxgui if installed in PATH (if
2078                           specified) or PKG_CONFIG_PATH (if PATH not
2079                           specified); stop if gr-wxgui not found
2080   --with-qwt-libdir=path  Prefix where QWT library is installed (optional)
2081   --with-qwt-incdir=path  Prefix where QWT include files are (optional)
2082   --with-qwt-lib=library  QWT library name (optional)
2083   --with-qwtplot3d-libdir=path  Prefix where QWTPLOT3D library is installed (optional)
2084   --with-qwtplot3d-incdir=path  Prefix where QWTPLOT3D include files are (optional)
2085   --with-qwtplot3d-lib=library  QWT Plot3D library name (optional)
2086
2087 Some influential environment variables:
2088   CC          C compiler command
2089   CFLAGS      C compiler flags
2090   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2091               nonstandard directory <lib dir>
2092   LIBS        libraries to pass to the linker, e.g. -l<library>
2093   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2094               you have headers in a nonstandard directory <include dir>
2095   CPP         C preprocessor
2096   CXX         C++ compiler command
2097   CXXFLAGS    C++ compiler flags
2098   CXXCPP      C++ preprocessor
2099   CCAS        assembler compiler command (defaults to CC)
2100   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
2101   PKG_CONFIG  path to pkg-config utility
2102   FFTW3F_CFLAGS
2103               C compiler flags for FFTW3F, overriding pkg-config
2104   FFTW3F_LIBS linker flags for FFTW3F, overriding pkg-config
2105   FFTW3F_INCLUDEDIR
2106               includedir for FFTW3F, overriding pkg-config
2107   CPPUNIT_CFLAGS
2108               C compiler flags for CPPUNIT, overriding pkg-config
2109   CPPUNIT_LIBS
2110               linker flags for CPPUNIT, overriding pkg-config
2111   CPPUNIT_INCLUDEDIR
2112               includedir for CPPUNIT, overriding pkg-config
2113   GSL_CFLAGS  C compiler flags for GSL, overriding pkg-config
2114   GSL_LIBS    linker flags for GSL, overriding pkg-config
2115   GSL_INCLUDEDIR
2116               includedir for GSL, overriding pkg-config
2117   USB_CFLAGS  C compiler flags for USB, overriding pkg-config
2118   USB_LIBS    linker flags for USB, overriding pkg-config
2119   USB_INCLUDEDIR
2120               includedir for USB, overriding pkg-config
2121   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2122   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2123   ALSA_INCLUDEDIR
2124               includedir for ALSA, overriding pkg-config
2125   JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
2126   JACK_LIBS   linker flags for JACK, overriding pkg-config
2127   JACK_INCLUDEDIR
2128               includedir for JACK, overriding pkg-config
2129   PORTAUDIO_CFLAGS
2130               C compiler flags for PORTAUDIO, overriding pkg-config
2131   PORTAUDIO_LIBS
2132               linker flags for PORTAUDIO, overriding pkg-config
2133   PORTAUDIO_INCLUDEDIR
2134               includedir for PORTAUDIO, overriding pkg-config
2135   COMEDI_CFLAGS
2136               C compiler flags for COMEDI, overriding pkg-config
2137   COMEDI_LIBS linker flags for COMEDI, overriding pkg-config
2138   COMEDI_INCLUDEDIR
2139               includedir for COMEDI, overriding pkg-config
2140   SDL_CFLAGS  C compiler flags for SDL, overriding pkg-config
2141   SDL_LIBS    linker flags for SDL, overriding pkg-config
2142   SDL_INCLUDEDIR
2143               includedir for SDL, overriding pkg-config
2144   QTCORE_CFLAGS
2145               C compiler flags for QTCORE, overriding pkg-config
2146   QTCORE_LIBS linker flags for QTCORE, overriding pkg-config
2147   QTCORE_INCLUDEDIR
2148               includedir for QTCORE, overriding pkg-config
2149   QTGUI_CFLAGS
2150               C compiler flags for QTGUI, overriding pkg-config
2151   QTGUI_LIBS  linker flags for QTGUI, overriding pkg-config
2152   QTGUI_INCLUDEDIR
2153               includedir for QTGUI, overriding pkg-config
2154   QTOPENGL_CFLAGS
2155               C compiler flags for QTOPENGL, overriding pkg-config
2156   QTOPENGL_LIBS
2157               linker flags for QTOPENGL, overriding pkg-config
2158   QTOPENGL_INCLUDEDIR
2159               includedir for QTOPENGL, overriding pkg-config
2160
2161 Use these variables to override the choices made by `configure' or to help
2162 it to find libraries and programs with nonstandard names/locations.
2163
2164 Report bugs to the package provider.
2165 _ACEOF
2166 ac_status=$?
2167 fi
2168
2169 if test "$ac_init_help" = "recursive"; then
2170   # If there are subdirs, report their specific --help.
2171   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2172     test -d "$ac_dir" ||
2173       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2174       continue
2175     ac_builddir=.
2176
2177 case "$ac_dir" in
2178 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2179 *)
2180   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2181   # A ".." for each directory in $ac_dir_suffix.
2182   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2183   case $ac_top_builddir_sub in
2184   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2185   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2186   esac ;;
2187 esac
2188 ac_abs_top_builddir=$ac_pwd
2189 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2190 # for backward compatibility:
2191 ac_top_builddir=$ac_top_build_prefix
2192
2193 case $srcdir in
2194   .)  # We are building in place.
2195     ac_srcdir=.
2196     ac_top_srcdir=$ac_top_builddir_sub
2197     ac_abs_top_srcdir=$ac_pwd ;;
2198   [\\/]* | ?:[\\/]* )  # Absolute name.
2199     ac_srcdir=$srcdir$ac_dir_suffix;
2200     ac_top_srcdir=$srcdir
2201     ac_abs_top_srcdir=$srcdir ;;
2202   *) # Relative name.
2203     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2204     ac_top_srcdir=$ac_top_build_prefix$srcdir
2205     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2206 esac
2207 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2208
2209     cd "$ac_dir" || { ac_status=$?; continue; }
2210     # Check for guested configure.
2211     if test -f "$ac_srcdir/configure.gnu"; then
2212       echo &&
2213       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2214     elif test -f "$ac_srcdir/configure"; then
2215       echo &&
2216       $SHELL "$ac_srcdir/configure" --help=recursive
2217     else
2218       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2219     fi || ac_status=$?
2220     cd "$ac_pwd" || { ac_status=$?; break; }
2221   done
2222 fi
2223
2224 test -n "$ac_init_help" && exit $ac_status
2225 if $ac_init_version; then
2226   cat <<\_ACEOF
2227 configure
2228 generated by GNU Autoconf 2.67
2229
2230 Copyright (C) 2010 Free Software Foundation, Inc.
2231 This configure script is free software; the Free Software Foundation
2232 gives unlimited permission to copy, distribute and modify it.
2233 _ACEOF
2234   exit
2235 fi
2236
2237 ## ------------------------ ##
2238 ## Autoconf initialization. ##
2239 ## ------------------------ ##
2240
2241 # ac_fn_c_try_compile LINENO
2242 # --------------------------
2243 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2244 ac_fn_c_try_compile ()
2245 {
2246   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2247   rm -f conftest.$ac_objext
2248   if { { ac_try="$ac_compile"
2249 case "(($ac_try" in
2250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2251   *) ac_try_echo=$ac_try;;
2252 esac
2253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2254 $as_echo "$ac_try_echo"; } >&5
2255   (eval "$ac_compile") 2>conftest.err
2256   ac_status=$?
2257   if test -s conftest.err; then
2258     grep -v '^ *+' conftest.err >conftest.er1
2259     cat conftest.er1 >&5
2260     mv -f conftest.er1 conftest.err
2261   fi
2262   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2263   test $ac_status = 0; } && {
2264          test -z "$ac_c_werror_flag" ||
2265          test ! -s conftest.err
2266        } && test -s conftest.$ac_objext; then :
2267   ac_retval=0
2268 else
2269   $as_echo "$as_me: failed program was:" >&5
2270 sed 's/^/| /' conftest.$ac_ext >&5
2271
2272         ac_retval=1
2273 fi
2274   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2275   as_fn_set_status $ac_retval
2276
2277 } # ac_fn_c_try_compile
2278
2279 # ac_fn_c_try_cpp LINENO
2280 # ----------------------
2281 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2282 ac_fn_c_try_cpp ()
2283 {
2284   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2285   if { { ac_try="$ac_cpp conftest.$ac_ext"
2286 case "(($ac_try" in
2287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2288   *) ac_try_echo=$ac_try;;
2289 esac
2290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2291 $as_echo "$ac_try_echo"; } >&5
2292   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2293   ac_status=$?
2294   if test -s conftest.err; then
2295     grep -v '^ *+' conftest.err >conftest.er1
2296     cat conftest.er1 >&5
2297     mv -f conftest.er1 conftest.err
2298   fi
2299   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2300   test $ac_status = 0; } > conftest.i && {
2301          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2302          test ! -s conftest.err
2303        }; then :
2304   ac_retval=0
2305 else
2306   $as_echo "$as_me: failed program was:" >&5
2307 sed 's/^/| /' conftest.$ac_ext >&5
2308
2309     ac_retval=1
2310 fi
2311   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2312   as_fn_set_status $ac_retval
2313
2314 } # ac_fn_c_try_cpp
2315
2316 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2317 # -------------------------------------------------------
2318 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2319 # the include files in INCLUDES and setting the cache variable VAR
2320 # accordingly.
2321 ac_fn_c_check_header_mongrel ()
2322 {
2323   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2324   if eval "test \"\${$3+set}\"" = set; then :
2325   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2326 $as_echo_n "checking for $2... " >&6; }
2327 if eval "test \"\${$3+set}\"" = set; then :
2328   $as_echo_n "(cached) " >&6
2329 fi
2330 eval ac_res=\$$3
2331                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2332 $as_echo "$ac_res" >&6; }
2333 else
2334   # Is the header compilable?
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2336 $as_echo_n "checking $2 usability... " >&6; }
2337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338 /* end confdefs.h.  */
2339 $4
2340 #include <$2>
2341 _ACEOF
2342 if ac_fn_c_try_compile "$LINENO"; then :
2343   ac_header_compiler=yes
2344 else
2345   ac_header_compiler=no
2346 fi
2347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2349 $as_echo "$ac_header_compiler" >&6; }
2350
2351 # Is the header present?
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2353 $as_echo_n "checking $2 presence... " >&6; }
2354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h.  */
2356 #include <$2>
2357 _ACEOF
2358 if ac_fn_c_try_cpp "$LINENO"; then :
2359   ac_header_preproc=yes
2360 else
2361   ac_header_preproc=no
2362 fi
2363 rm -f conftest.err conftest.i conftest.$ac_ext
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2365 $as_echo "$ac_header_preproc" >&6; }
2366
2367 # So?  What about this header?
2368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2369   yes:no: )
2370     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2371 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2372     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2373 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2374     ;;
2375   no:yes:* )
2376     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2377 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2378     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2379 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2380     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2381 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2382     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2383 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2384     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2385 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2386     ;;
2387 esac
2388   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2389 $as_echo_n "checking for $2... " >&6; }
2390 if eval "test \"\${$3+set}\"" = set; then :
2391   $as_echo_n "(cached) " >&6
2392 else
2393   eval "$3=\$ac_header_compiler"
2394 fi
2395 eval ac_res=\$$3
2396                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2397 $as_echo "$ac_res" >&6; }
2398 fi
2399   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2400
2401 } # ac_fn_c_check_header_mongrel
2402
2403 # ac_fn_c_try_run LINENO
2404 # ----------------------
2405 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2406 # that executables *can* be run.
2407 ac_fn_c_try_run ()
2408 {
2409   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2410   if { { ac_try="$ac_link"
2411 case "(($ac_try" in
2412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413   *) ac_try_echo=$ac_try;;
2414 esac
2415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2416 $as_echo "$ac_try_echo"; } >&5
2417   (eval "$ac_link") 2>&5
2418   ac_status=$?
2419   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2420   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2421   { { case "(($ac_try" in
2422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423   *) ac_try_echo=$ac_try;;
2424 esac
2425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2426 $as_echo "$ac_try_echo"; } >&5
2427   (eval "$ac_try") 2>&5
2428   ac_status=$?
2429   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2430   test $ac_status = 0; }; }; then :
2431   ac_retval=0
2432 else
2433   $as_echo "$as_me: program exited with status $ac_status" >&5
2434        $as_echo "$as_me: failed program was:" >&5
2435 sed 's/^/| /' conftest.$ac_ext >&5
2436
2437        ac_retval=$ac_status
2438 fi
2439   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2440   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2441   as_fn_set_status $ac_retval
2442
2443 } # ac_fn_c_try_run
2444
2445 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2446 # -------------------------------------------------------
2447 # Tests whether HEADER exists and can be compiled using the include files in
2448 # INCLUDES, setting the cache variable VAR accordingly.
2449 ac_fn_c_check_header_compile ()
2450 {
2451   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2453 $as_echo_n "checking for $2... " >&6; }
2454 if eval "test \"\${$3+set}\"" = set; then :
2455   $as_echo_n "(cached) " >&6
2456 else
2457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2458 /* end confdefs.h.  */
2459 $4
2460 #include <$2>
2461 _ACEOF
2462 if ac_fn_c_try_compile "$LINENO"; then :
2463   eval "$3=yes"
2464 else
2465   eval "$3=no"
2466 fi
2467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2468 fi
2469 eval ac_res=\$$3
2470                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2471 $as_echo "$ac_res" >&6; }
2472   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2473
2474 } # ac_fn_c_check_header_compile
2475
2476 # ac_fn_c_try_link LINENO
2477 # -----------------------
2478 # Try to link conftest.$ac_ext, and return whether this succeeded.
2479 ac_fn_c_try_link ()
2480 {
2481   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2482   rm -f conftest.$ac_objext conftest$ac_exeext
2483   if { { ac_try="$ac_link"
2484 case "(($ac_try" in
2485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486   *) ac_try_echo=$ac_try;;
2487 esac
2488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2489 $as_echo "$ac_try_echo"; } >&5
2490   (eval "$ac_link") 2>conftest.err
2491   ac_status=$?
2492   if test -s conftest.err; then
2493     grep -v '^ *+' conftest.err >conftest.er1
2494     cat conftest.er1 >&5
2495     mv -f conftest.er1 conftest.err
2496   fi
2497   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2498   test $ac_status = 0; } && {
2499          test -z "$ac_c_werror_flag" ||
2500          test ! -s conftest.err
2501        } && test -s conftest$ac_exeext && {
2502          test "$cross_compiling" = yes ||
2503          $as_test_x conftest$ac_exeext
2504        }; then :
2505   ac_retval=0
2506 else
2507   $as_echo "$as_me: failed program was:" >&5
2508 sed 's/^/| /' conftest.$ac_ext >&5
2509
2510         ac_retval=1
2511 fi
2512   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2513   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2514   # interfere with the next link command; also delete a directory that is
2515   # left behind by Apple's compiler.  We do this before executing the actions.
2516   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2517   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2518   as_fn_set_status $ac_retval
2519
2520 } # ac_fn_c_try_link
2521
2522 # ac_fn_cxx_try_compile LINENO
2523 # ----------------------------
2524 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2525 ac_fn_cxx_try_compile ()
2526 {
2527   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2528   rm -f conftest.$ac_objext
2529   if { { ac_try="$ac_compile"
2530 case "(($ac_try" in
2531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532   *) ac_try_echo=$ac_try;;
2533 esac
2534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2535 $as_echo "$ac_try_echo"; } >&5
2536   (eval "$ac_compile") 2>conftest.err
2537   ac_status=$?
2538   if test -s conftest.err; then
2539     grep -v '^ *+' conftest.err >conftest.er1
2540     cat conftest.er1 >&5
2541     mv -f conftest.er1 conftest.err
2542   fi
2543   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2544   test $ac_status = 0; } && {
2545          test -z "$ac_cxx_werror_flag" ||
2546          test ! -s conftest.err
2547        } && test -s conftest.$ac_objext; then :
2548   ac_retval=0
2549 else
2550   $as_echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2552
2553         ac_retval=1
2554 fi
2555   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2556   as_fn_set_status $ac_retval
2557
2558 } # ac_fn_cxx_try_compile
2559
2560 # ac_fn_cxx_try_cpp LINENO
2561 # ------------------------
2562 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2563 ac_fn_cxx_try_cpp ()
2564 {
2565   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2566   if { { ac_try="$ac_cpp conftest.$ac_ext"
2567 case "(($ac_try" in
2568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569   *) ac_try_echo=$ac_try;;
2570 esac
2571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2572 $as_echo "$ac_try_echo"; } >&5
2573   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2574   ac_status=$?
2575   if test -s conftest.err; then
2576     grep -v '^ *+' conftest.err >conftest.er1
2577     cat conftest.er1 >&5
2578     mv -f conftest.er1 conftest.err
2579   fi
2580   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2581   test $ac_status = 0; } > conftest.i && {
2582          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2583          test ! -s conftest.err
2584        }; then :
2585   ac_retval=0
2586 else
2587   $as_echo "$as_me: failed program was:" >&5
2588 sed 's/^/| /' conftest.$ac_ext >&5
2589
2590     ac_retval=1
2591 fi
2592   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2593   as_fn_set_status $ac_retval
2594
2595 } # ac_fn_cxx_try_cpp
2596
2597 # ac_fn_c_check_func LINENO FUNC VAR
2598 # ----------------------------------
2599 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2600 ac_fn_c_check_func ()
2601 {
2602   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2603   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2604 $as_echo_n "checking for $2... " >&6; }
2605 if eval "test \"\${$3+set}\"" = set; then :
2606   $as_echo_n "(cached) " >&6
2607 else
2608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2609 /* end confdefs.h.  */
2610 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2611    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2612 #define $2 innocuous_$2
2613
2614 /* System header to define __stub macros and hopefully few prototypes,
2615     which can conflict with char $2 (); below.
2616     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2617     <limits.h> exists even on freestanding compilers.  */
2618
2619 #ifdef __STDC__
2620 # include <limits.h>
2621 #else
2622 # include <assert.h>
2623 #endif
2624
2625 #undef $2
2626
2627 /* Override any GCC internal prototype to avoid an error.
2628    Use char because int might match the return type of a GCC
2629    builtin and then its argument prototype would still apply.  */
2630 #ifdef __cplusplus
2631 extern "C"
2632 #endif
2633 char $2 ();
2634 /* The GNU C library defines this for functions which it implements
2635     to always fail with ENOSYS.  Some functions are actually named
2636     something starting with __ and the normal name is an alias.  */
2637 #if defined __stub_$2 || defined __stub___$2
2638 choke me
2639 #endif
2640
2641 int
2642 main ()
2643 {
2644 return $2 ();
2645   ;
2646   return 0;
2647 }
2648 _ACEOF
2649 if ac_fn_c_try_link "$LINENO"; then :
2650   eval "$3=yes"
2651 else
2652   eval "$3=no"
2653 fi
2654 rm -f core conftest.err conftest.$ac_objext \
2655     conftest$ac_exeext conftest.$ac_ext
2656 fi
2657 eval ac_res=\$$3
2658                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2659 $as_echo "$ac_res" >&6; }
2660   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2661
2662 } # ac_fn_c_check_func
2663
2664 # ac_fn_cxx_try_link LINENO
2665 # -------------------------
2666 # Try to link conftest.$ac_ext, and return whether this succeeded.
2667 ac_fn_cxx_try_link ()
2668 {
2669   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2670   rm -f conftest.$ac_objext conftest$ac_exeext
2671   if { { ac_try="$ac_link"
2672 case "(($ac_try" in
2673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674   *) ac_try_echo=$ac_try;;
2675 esac
2676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2677 $as_echo "$ac_try_echo"; } >&5
2678   (eval "$ac_link") 2>conftest.err
2679   ac_status=$?
2680   if test -s conftest.err; then
2681     grep -v '^ *+' conftest.err >conftest.er1
2682     cat conftest.er1 >&5
2683     mv -f conftest.er1 conftest.err
2684   fi
2685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2686   test $ac_status = 0; } && {
2687          test -z "$ac_cxx_werror_flag" ||
2688          test ! -s conftest.err
2689        } && test -s conftest$ac_exeext && {
2690          test "$cross_compiling" = yes ||
2691          $as_test_x conftest$ac_exeext
2692        }; then :
2693   ac_retval=0
2694 else
2695   $as_echo "$as_me: failed program was:" >&5
2696 sed 's/^/| /' conftest.$ac_ext >&5
2697
2698         ac_retval=1
2699 fi
2700   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2701   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2702   # interfere with the next link command; also delete a directory that is
2703   # left behind by Apple's compiler.  We do this before executing the actions.
2704   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2705   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2706   as_fn_set_status $ac_retval
2707
2708 } # ac_fn_cxx_try_link
2709
2710 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2711 # -------------------------------------------
2712 # Tests whether TYPE exists after having included INCLUDES, setting cache
2713 # variable VAR accordingly.
2714 ac_fn_c_check_type ()
2715 {
2716   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2718 $as_echo_n "checking for $2... " >&6; }
2719 if eval "test \"\${$3+set}\"" = set; then :
2720   $as_echo_n "(cached) " >&6
2721 else
2722   eval "$3=no"
2723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2724 /* end confdefs.h.  */
2725 $4
2726 int
2727 main ()
2728 {
2729 if (sizeof ($2))
2730          return 0;
2731   ;
2732   return 0;
2733 }
2734 _ACEOF
2735 if ac_fn_c_try_compile "$LINENO"; then :
2736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2737 /* end confdefs.h.  */
2738 $4
2739 int
2740 main ()
2741 {
2742 if (sizeof (($2)))
2743             return 0;
2744   ;
2745   return 0;
2746 }
2747 _ACEOF
2748 if ac_fn_c_try_compile "$LINENO"; then :
2749
2750 else
2751   eval "$3=yes"
2752 fi
2753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2754 fi
2755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2756 fi
2757 eval ac_res=\$$3
2758                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2759 $as_echo "$ac_res" >&6; }
2760   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2761
2762 } # ac_fn_c_check_type
2763
2764 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2765 # --------------------------------------------
2766 # Tries to find the compile-time value of EXPR in a program that includes
2767 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2768 # computed
2769 ac_fn_c_compute_int ()
2770 {
2771   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2772   if test "$cross_compiling" = yes; then
2773     # Depending upon the size, compute the lo and hi bounds.
2774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2775 /* end confdefs.h.  */
2776 $4
2777 int
2778 main ()
2779 {
2780 static int test_array [1 - 2 * !(($2) >= 0)];
2781 test_array [0] = 0
2782
2783   ;
2784   return 0;
2785 }
2786 _ACEOF
2787 if ac_fn_c_try_compile "$LINENO"; then :
2788   ac_lo=0 ac_mid=0
2789   while :; do
2790     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2791 /* end confdefs.h.  */
2792 $4
2793 int
2794 main ()
2795 {
2796 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2797 test_array [0] = 0
2798
2799   ;
2800   return 0;
2801 }
2802 _ACEOF
2803 if ac_fn_c_try_compile "$LINENO"; then :
2804   ac_hi=$ac_mid; break
2805 else
2806   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2807                         if test $ac_lo -le $ac_mid; then
2808                           ac_lo= ac_hi=
2809                           break
2810                         fi
2811                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2812 fi
2813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2814   done
2815 else
2816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2817 /* end confdefs.h.  */
2818 $4
2819 int
2820 main ()
2821 {
2822 static int test_array [1 - 2 * !(($2) < 0)];
2823 test_array [0] = 0
2824
2825   ;
2826   return 0;
2827 }
2828 _ACEOF
2829 if ac_fn_c_try_compile "$LINENO"; then :
2830   ac_hi=-1 ac_mid=-1
2831   while :; do
2832     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2833 /* end confdefs.h.  */
2834 $4
2835 int
2836 main ()
2837 {
2838 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2839 test_array [0] = 0
2840
2841   ;
2842   return 0;
2843 }
2844 _ACEOF
2845 if ac_fn_c_try_compile "$LINENO"; then :
2846   ac_lo=$ac_mid; break
2847 else
2848   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2849                         if test $ac_mid -le $ac_hi; then
2850                           ac_lo= ac_hi=
2851                           break
2852                         fi
2853                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2854 fi
2855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2856   done
2857 else
2858   ac_lo= ac_hi=
2859 fi
2860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2861 fi
2862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2863 # Binary search between lo and hi bounds.
2864 while test "x$ac_lo" != "x$ac_hi"; do
2865   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2867 /* end confdefs.h.  */
2868 $4
2869 int
2870 main ()
2871 {
2872 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2873 test_array [0] = 0
2874
2875   ;
2876   return 0;
2877 }
2878 _ACEOF
2879 if ac_fn_c_try_compile "$LINENO"; then :
2880   ac_hi=$ac_mid
2881 else
2882   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2883 fi
2884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2885 done
2886 case $ac_lo in #((
2887 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2888 '') ac_retval=1 ;;
2889 esac
2890   else
2891     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2892 /* end confdefs.h.  */
2893 $4
2894 static long int longval () { return $2; }
2895 static unsigned long int ulongval () { return $2; }
2896 #include <stdio.h>
2897 #include <stdlib.h>
2898 int
2899 main ()
2900 {
2901
2902   FILE *f = fopen ("conftest.val", "w");
2903   if (! f)
2904     return 1;
2905   if (($2) < 0)
2906     {
2907       long int i = longval ();
2908       if (i != ($2))
2909         return 1;
2910       fprintf (f, "%ld", i);
2911     }
2912   else
2913     {
2914       unsigned long int i = ulongval ();
2915       if (i != ($2))
2916         return 1;
2917       fprintf (f, "%lu", i);
2918     }
2919   /* Do not output a trailing newline, as this causes \r\n confusion
2920      on some platforms.  */
2921   return ferror (f) || fclose (f) != 0;
2922
2923   ;
2924   return 0;
2925 }
2926 _ACEOF
2927 if ac_fn_c_try_run "$LINENO"; then :
2928   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2929 else
2930   ac_retval=1
2931 fi
2932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2933   conftest.$ac_objext conftest.beam conftest.$ac_ext
2934 rm -f conftest.val
2935
2936   fi
2937   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2938   as_fn_set_status $ac_retval
2939
2940 } # ac_fn_c_compute_int
2941
2942 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2943 # ---------------------------------------------
2944 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2945 # accordingly.
2946 ac_fn_c_check_decl ()
2947 {
2948   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2949   as_decl_name=`echo $2|sed 's/ *(.*//'`
2950   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2952 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2953 if eval "test \"\${$3+set}\"" = set; then :
2954   $as_echo_n "(cached) " >&6
2955 else
2956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2957 /* end confdefs.h.  */
2958 $4
2959 int
2960 main ()
2961 {
2962 #ifndef $as_decl_name
2963 #ifdef __cplusplus
2964   (void) $as_decl_use;
2965 #else
2966   (void) $as_decl_name;
2967 #endif
2968 #endif
2969
2970   ;
2971   return 0;
2972 }
2973 _ACEOF
2974 if ac_fn_c_try_compile "$LINENO"; then :
2975   eval "$3=yes"
2976 else
2977   eval "$3=no"
2978 fi
2979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2980 fi
2981 eval ac_res=\$$3
2982                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2983 $as_echo "$ac_res" >&6; }
2984   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2985
2986 } # ac_fn_c_check_decl
2987
2988 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2989 # ----------------------------------------------------
2990 # Tries to find if the field MEMBER exists in type AGGR, after including
2991 # INCLUDES, setting cache variable VAR accordingly.
2992 ac_fn_c_check_member ()
2993 {
2994   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2995   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2996 $as_echo_n "checking for $2.$3... " >&6; }
2997 if eval "test \"\${$4+set}\"" = set; then :
2998   $as_echo_n "(cached) " >&6
2999 else
3000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3001 /* end confdefs.h.  */
3002 $5
3003 int
3004 main ()
3005 {
3006 static $2 ac_aggr;
3007 if (ac_aggr.$3)
3008 return 0;
3009   ;
3010   return 0;
3011 }
3012 _ACEOF
3013 if ac_fn_c_try_compile "$LINENO"; then :
3014   eval "$4=yes"
3015 else
3016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3017 /* end confdefs.h.  */
3018 $5
3019 int
3020 main ()
3021 {
3022 static $2 ac_aggr;
3023 if (sizeof ac_aggr.$3)
3024 return 0;
3025   ;
3026   return 0;
3027 }
3028 _ACEOF
3029 if ac_fn_c_try_compile "$LINENO"; then :
3030   eval "$4=yes"
3031 else
3032   eval "$4=no"
3033 fi
3034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3035 fi
3036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3037 fi
3038 eval ac_res=\$$4
3039                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3040 $as_echo "$ac_res" >&6; }
3041   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3042
3043 } # ac_fn_c_check_member
3044
3045 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3046 # ---------------------------------------------------------
3047 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
3048 # the include files in INCLUDES and setting the cache variable VAR
3049 # accordingly.
3050 ac_fn_cxx_check_header_mongrel ()
3051 {
3052   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3053   if eval "test \"\${$3+set}\"" = set; then :
3054   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3055 $as_echo_n "checking for $2... " >&6; }
3056 if eval "test \"\${$3+set}\"" = set; then :
3057   $as_echo_n "(cached) " >&6
3058 fi
3059 eval ac_res=\$$3
3060                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3061 $as_echo "$ac_res" >&6; }
3062 else
3063   # Is the header compilable?
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3065 $as_echo_n "checking $2 usability... " >&6; }
3066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3067 /* end confdefs.h.  */
3068 $4
3069 #include <$2>
3070 _ACEOF
3071 if ac_fn_cxx_try_compile "$LINENO"; then :
3072   ac_header_compiler=yes
3073 else
3074   ac_header_compiler=no
3075 fi
3076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3078 $as_echo "$ac_header_compiler" >&6; }
3079
3080 # Is the header present?
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3082 $as_echo_n "checking $2 presence... " >&6; }
3083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3084 /* end confdefs.h.  */
3085 #include <$2>
3086 _ACEOF
3087 if ac_fn_cxx_try_cpp "$LINENO"; then :
3088   ac_header_preproc=yes
3089 else
3090   ac_header_preproc=no
3091 fi
3092 rm -f conftest.err conftest.i conftest.$ac_ext
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3094 $as_echo "$ac_header_preproc" >&6; }
3095
3096 # So?  What about this header?
3097 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3098   yes:no: )
3099     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3100 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3101     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3102 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3103     ;;
3104   no:yes:* )
3105     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3106 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3107     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
3108 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
3109     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3110 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3111     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
3112 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
3113     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3114 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3115     ;;
3116 esac
3117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3118 $as_echo_n "checking for $2... " >&6; }
3119 if eval "test \"\${$3+set}\"" = set; then :
3120   $as_echo_n "(cached) " >&6
3121 else
3122   eval "$3=\$ac_header_compiler"
3123 fi
3124 eval ac_res=\$$3
3125                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3126 $as_echo "$ac_res" >&6; }
3127 fi
3128   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3129
3130 } # ac_fn_cxx_check_header_mongrel
3131 cat >config.log <<_ACEOF
3132 This file contains any messages produced by compilers while
3133 running configure, to aid debugging if configure makes a mistake.
3134
3135 It was created by $as_me, which was
3136 generated by GNU Autoconf 2.67.  Invocation command line was
3137
3138   $ $0 $@
3139
3140 _ACEOF
3141 exec 5>>config.log
3142 {
3143 cat <<_ASUNAME
3144 ## --------- ##
3145 ## Platform. ##
3146 ## --------- ##
3147
3148 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3149 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3150 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3151 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3152 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3153
3154 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3155 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3156
3157 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3158 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3159 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3160 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3161 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3162 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3163 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3164
3165 _ASUNAME
3166
3167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 for as_dir in $PATH
3169 do
3170   IFS=$as_save_IFS
3171   test -z "$as_dir" && as_dir=.
3172     $as_echo "PATH: $as_dir"
3173   done
3174 IFS=$as_save_IFS
3175
3176 } >&5
3177
3178 cat >&5 <<_ACEOF
3179
3180
3181 ## ----------- ##
3182 ## Core tests. ##
3183 ## ----------- ##
3184
3185 _ACEOF
3186
3187
3188 # Keep a trace of the command line.
3189 # Strip out --no-create and --no-recursion so they do not pile up.
3190 # Strip out --silent because we don't want to record it for future runs.
3191 # Also quote any args containing shell meta-characters.
3192 # Make two passes to allow for proper duplicate-argument suppression.
3193 ac_configure_args=
3194 ac_configure_args0=
3195 ac_configure_args1=
3196 ac_must_keep_next=false
3197 for ac_pass in 1 2
3198 do
3199   for ac_arg
3200   do
3201     case $ac_arg in
3202     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3203     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3204     | -silent | --silent | --silen | --sile | --sil)
3205       continue ;;
3206     *\'*)
3207       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3208     esac
3209     case $ac_pass in
3210     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3211     2)
3212       as_fn_append ac_configure_args1 " '$ac_arg'"
3213       if test $ac_must_keep_next = true; then
3214         ac_must_keep_next=false # Got value, back to normal.
3215       else
3216         case $ac_arg in
3217           *=* | --config-cache | -C | -disable-* | --disable-* \
3218           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3219           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3220           | -with-* | --with-* | -without-* | --without-* | --x)
3221             case "$ac_configure_args0 " in
3222               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3223             esac
3224             ;;
3225           -* ) ac_must_keep_next=true ;;
3226         esac
3227       fi
3228       as_fn_append ac_configure_args " '$ac_arg'"
3229       ;;
3230     esac
3231   done
3232 done
3233 { ac_configure_args0=; unset ac_configure_args0;}
3234 { ac_configure_args1=; unset ac_configure_args1;}
3235
3236 # When interrupted or exit'd, cleanup temporary files, and complete
3237 # config.log.  We remove comments because anyway the quotes in there
3238 # would cause problems or look ugly.
3239 # WARNING: Use '\'' to represent an apostrophe within the trap.
3240 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3241 trap 'exit_status=$?
3242   # Save into config.log some information that might help in debugging.
3243   {
3244     echo
3245
3246     $as_echo "## ---------------- ##
3247 ## Cache variables. ##
3248 ## ---------------- ##"
3249     echo
3250     # The following way of writing the cache mishandles newlines in values,
3251 (
3252   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3253     eval ac_val=\$$ac_var
3254     case $ac_val in #(
3255     *${as_nl}*)
3256       case $ac_var in #(
3257       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3258 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3259       esac
3260       case $ac_var in #(
3261       _ | IFS | as_nl) ;; #(
3262       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3263       *) { eval $ac_var=; unset $ac_var;} ;;
3264       esac ;;
3265     esac
3266   done
3267   (set) 2>&1 |
3268     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3269     *${as_nl}ac_space=\ *)
3270       sed -n \
3271         "s/'\''/'\''\\\\'\'''\''/g;
3272           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3273       ;; #(
3274     *)
3275       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3276       ;;
3277     esac |
3278     sort
3279 )
3280     echo
3281
3282     $as_echo "## ----------------- ##
3283 ## Output variables. ##
3284 ## ----------------- ##"
3285     echo
3286     for ac_var in $ac_subst_vars
3287     do
3288       eval ac_val=\$$ac_var
3289       case $ac_val in
3290       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3291       esac
3292       $as_echo "$ac_var='\''$ac_val'\''"
3293     done | sort
3294     echo
3295
3296     if test -n "$ac_subst_files"; then
3297       $as_echo "## ------------------- ##
3298 ## File substitutions. ##
3299 ## ------------------- ##"
3300       echo
3301       for ac_var in $ac_subst_files
3302       do
3303         eval ac_val=\$$ac_var
3304         case $ac_val in
3305         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3306         esac
3307         $as_echo "$ac_var='\''$ac_val'\''"
3308       done | sort
3309       echo
3310     fi
3311
3312     if test -s confdefs.h; then
3313       $as_echo "## ----------- ##
3314 ## confdefs.h. ##
3315 ## ----------- ##"
3316       echo
3317       cat confdefs.h
3318       echo
3319     fi
3320     test "$ac_signal" != 0 &&
3321       $as_echo "$as_me: caught signal $ac_signal"
3322     $as_echo "$as_me: exit $exit_status"
3323   } >&5
3324   rm -f core *.core core.conftest.* &&
3325     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3326     exit $exit_status
3327 ' 0
3328 for ac_signal in 1 2 13 15; do
3329   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3330 done
3331 ac_signal=0
3332
3333 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3334 rm -f -r conftest* confdefs.h
3335
3336 $as_echo "/* confdefs.h */" > confdefs.h
3337
3338 # Predefined preprocessor variables.
3339
3340 cat >>confdefs.h <<_ACEOF
3341 #define PACKAGE_NAME "$PACKAGE_NAME"
3342 _ACEOF
3343
3344 cat >>confdefs.h <<_ACEOF
3345 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3346 _ACEOF
3347
3348 cat >>confdefs.h <<_ACEOF
3349 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3350 _ACEOF
3351
3352 cat >>confdefs.h <<_ACEOF
3353 #define PACKAGE_STRING "$PACKAGE_STRING"
3354 _ACEOF
3355
3356 cat >>confdefs.h <<_ACEOF
3357 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3358 _ACEOF
3359
3360 cat >>confdefs.h <<_ACEOF
3361 #define PACKAGE_URL "$PACKAGE_URL"
3362 _ACEOF
3363
3364
3365 # Let the site file select an alternate cache file if it wants to.
3366 # Prefer an explicitly selected file to automatically selected ones.
3367 ac_site_file1=NONE
3368 ac_site_file2=NONE
3369 if test -n "$CONFIG_SITE"; then
3370   # We do not want a PATH search for config.site.
3371   case $CONFIG_SITE in #((
3372     -*)  ac_site_file1=./$CONFIG_SITE;;
3373     */*) ac_site_file1=$CONFIG_SITE;;
3374     *)   ac_site_file1=./$CONFIG_SITE;;
3375   esac
3376 elif test "x$prefix" != xNONE; then
3377   ac_site_file1=$prefix/share/config.site
3378   ac_site_file2=$prefix/etc/config.site
3379 else
3380   ac_site_file1=$ac_default_prefix/share/config.site
3381   ac_site_file2=$ac_default_prefix/etc/config.site
3382 fi
3383 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3384 do
3385   test "x$ac_site_file" = xNONE && continue
3386   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3387     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3388 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3389     sed 's/^/| /' "$ac_site_file" >&5
3390     . "$ac_site_file" \
3391       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3393 as_fn_error $? "failed to load site script $ac_site_file
3394 See \`config.log' for more details" "$LINENO" 5 ; }
3395   fi
3396 done
3397
3398 if test -r "$cache_file"; then
3399   # Some versions of bash will fail to source /dev/null (special files
3400   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3401   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3402     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3403 $as_echo "$as_me: loading cache $cache_file" >&6;}
3404     case $cache_file in
3405       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3406       *)                      . "./$cache_file";;
3407     esac
3408   fi
3409 else
3410   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3411 $as_echo "$as_me: creating cache $cache_file" >&6;}
3412   >$cache_file
3413 fi
3414
3415 # Check that the precious variables saved in the cache have kept the same
3416 # value.
3417 ac_cache_corrupted=false
3418 for ac_var in $ac_precious_vars; do
3419   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3420   eval ac_new_set=\$ac_env_${ac_var}_set
3421   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3422   eval ac_new_val=\$ac_env_${ac_var}_value
3423   case $ac_old_set,$ac_new_set in
3424     set,)
3425       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3426 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3427       ac_cache_corrupted=: ;;
3428     ,set)
3429       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3430 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3431       ac_cache_corrupted=: ;;
3432     ,);;
3433     *)
3434       if test "x$ac_old_val" != "x$ac_new_val"; then
3435         # differences in whitespace do not lead to failure.
3436         ac_old_val_w=`echo x $ac_old_val`
3437         ac_new_val_w=`echo x $ac_new_val`
3438         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3439           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3440 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3441           ac_cache_corrupted=:
3442         else
3443           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3444 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3445           eval $ac_var=\$ac_old_val
3446         fi
3447         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3448 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3449         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3450 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3451       fi;;
3452   esac
3453   # Pass precious variables to config.status.
3454   if test "$ac_new_set" = set; then
3455     case $ac_new_val in
3456     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3457     *) ac_arg=$ac_var=$ac_new_val ;;
3458     esac
3459     case " $ac_configure_args " in
3460       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3461       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3462     esac
3463   fi
3464 done
3465 if $ac_cache_corrupted; then
3466   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3468   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3469 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3470   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3471 fi
3472 ## -------------------- ##
3473 ## Main body of script. ##
3474 ## -------------------- ##
3475
3476 ac_ext=c
3477 ac_cpp='$CPP $CPPFLAGS'
3478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3481
3482
3483
3484 ac_config_headers="$ac_config_headers config.h"
3485
3486
3487
3488 ac_aux_dir=
3489 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3490   if test -f "$ac_dir/install-sh"; then
3491     ac_aux_dir=$ac_dir
3492     ac_install_sh="$ac_aux_dir/install-sh -c"
3493     break
3494   elif test -f "$ac_dir/install.sh"; then
3495     ac_aux_dir=$ac_dir
3496     ac_install_sh="$ac_aux_dir/install.sh -c"
3497     break
3498   elif test -f "$ac_dir/shtool"; then
3499     ac_aux_dir=$ac_dir
3500     ac_install_sh="$ac_aux_dir/shtool install -c"
3501     break
3502   fi
3503 done
3504 if test -z "$ac_aux_dir"; then
3505   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3506 fi
3507
3508 # These three variables are undocumented and unsupported,
3509 # and are intended to be withdrawn in a future Autoconf release.
3510 # They can cause serious problems if a builder's source tree is in a directory
3511 # whose full name contains unusual characters.
3512 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3513 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3514 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3515
3516
3517 # Make sure we can run config.sub.
3518 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3519   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3520
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3522 $as_echo_n "checking build system type... " >&6; }
3523 if test "${ac_cv_build+set}" = set; then :
3524   $as_echo_n "(cached) " >&6
3525 else
3526   ac_build_alias=$build_alias
3527 test "x$ac_build_alias" = x &&
3528   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3529 test "x$ac_build_alias" = x &&
3530   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3531 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3532   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3533
3534 fi
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3536 $as_echo "$ac_cv_build" >&6; }
3537 case $ac_cv_build in
3538 *-*-*) ;;
3539 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3540 esac
3541 build=$ac_cv_build
3542 ac_save_IFS=$IFS; IFS='-'
3543 set x $ac_cv_build
3544 shift
3545 build_cpu=$1
3546 build_vendor=$2
3547 shift; shift
3548 # Remember, the first character of IFS is used to create $*,
3549 # except with old shells:
3550 build_os=$*
3551 IFS=$ac_save_IFS
3552 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3553
3554
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3556 $as_echo_n "checking host system type... " >&6; }
3557 if test "${ac_cv_host+set}" = set; then :
3558   $as_echo_n "(cached) " >&6
3559 else
3560   if test "x$host_alias" = x; then
3561   ac_cv_host=$ac_cv_build
3562 else
3563   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3564     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3565 fi
3566
3567 fi
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3569 $as_echo "$ac_cv_host" >&6; }
3570 case $ac_cv_host in
3571 *-*-*) ;;
3572 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3573 esac
3574 host=$ac_cv_host
3575 ac_save_IFS=$IFS; IFS='-'
3576 set x $ac_cv_host
3577 shift
3578 host_cpu=$1
3579 host_vendor=$2
3580 shift; shift
3581 # Remember, the first character of IFS is used to create $*,
3582 # except with old shells:
3583 host_os=$*
3584 IFS=$ac_save_IFS
3585 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3586
3587
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3589 $as_echo_n "checking target system type... " >&6; }
3590 if test "${ac_cv_target+set}" = set; then :
3591   $as_echo_n "(cached) " >&6
3592 else
3593   if test "x$target_alias" = x; then
3594   ac_cv_target=$ac_cv_host
3595 else
3596   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3597     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3598 fi
3599
3600 fi
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3602 $as_echo "$ac_cv_target" >&6; }
3603 case $ac_cv_target in
3604 *-*-*) ;;
3605 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
3606 esac
3607 target=$ac_cv_target
3608 ac_save_IFS=$IFS; IFS='-'
3609 set x $ac_cv_target
3610 shift
3611 target_cpu=$1
3612 target_vendor=$2
3613 shift; shift
3614 # Remember, the first character of IFS is used to create $*,
3615 # except with old shells:
3616 target_os=$*
3617 IFS=$ac_save_IFS
3618 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3619
3620
3621 # The aliases save the names the user supplied, while $host etc.
3622 # will get canonicalized.
3623 test -n "$target_alias" &&
3624   test "$program_prefix$program_suffix$program_transform_name" = \
3625     NONENONEs,x,x, &&
3626   program_prefix=${target_alias}-
3627
3628
3629                           . $srcdir/version.sh
3630
3631
3632     # Extract the first word of "git", so it can be a program name with args.
3633 set dummy git; ac_word=$2
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635 $as_echo_n "checking for $ac_word... " >&6; }
3636 if test "${ac_cv_path_GIT+set}" = set; then :
3637   $as_echo_n "(cached) " >&6
3638 else
3639   case $GIT in
3640   [\\/]* | ?:[\\/]*)
3641   ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
3642   ;;
3643   *)
3644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645 for as_dir in $PATH
3646 do
3647   IFS=$as_save_IFS
3648   test -z "$as_dir" && as_dir=.
3649     for ac_exec_ext in '' $ac_executable_extensions; do
3650   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3651     ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
3652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3653     break 2
3654   fi
3655 done
3656   done
3657 IFS=$as_save_IFS
3658
3659   ;;
3660 esac
3661 fi
3662 GIT=$ac_cv_path_GIT
3663 if test -n "$GIT"; then
3664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
3665 $as_echo "$GIT" >&6; }
3666 else
3667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3668 $as_echo "no" >&6; }
3669 fi
3670
3671
3672
3673     if test x$GIT != x ; then
3674     { $as_echo "$as_me:${as_lineno-$LINENO}: checking existence of git version control directory" >&5
3675 $as_echo_n "checking existence of git version control directory... " >&6; }
3676     if test -d $srcdir/.git ; then
3677       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
3678 $as_echo "ok" >&6; }
3679       { $as_echo "$as_me:${as_lineno-$LINENO}: checking git description of current commit" >&5
3680 $as_echo_n "checking git description of current commit... " >&6; }
3681       if (cd $srcdir && $GIT describe >/dev/null 2>&1); then
3682         GIT_DESCRIBE=`cd $srcdir && $GIT describe --abbrev=8 --long`
3683         # Release candidate tags create an extra -rcX field
3684         case $GIT_DESCRIBE in
3685           *-*-*-*)
3686             GIT_TAG=`echo $GIT_DESCRIBE | cut -f -2 -d '-'`
3687             GIT_SEQNO=`echo $GIT_DESCRIBE | cut -f 3 -d '-'`
3688             GIT_COMMIT=`echo $GIT_DESCRIBE | cut -f 4 -d '-' | cut -f 2- -d 'g'`
3689             ;;
3690           *-*-*)
3691             GIT_TAG=`echo $GIT_DESCRIBE | cut -f 1 -d '-'`
3692             GIT_SEQNO=`echo $GIT_DESCRIBE | cut -f 2 -d '-'`
3693             GIT_COMMIT=`echo $GIT_DESCRIBE | cut -f 3 -d '-' | cut -f 2- -d 'g'`
3694             ;;
3695         esac
3696
3697         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT_DESCRIBE" >&5
3698 $as_echo "$GIT_DESCRIBE" >&6; }
3699       else
3700         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no tag in history, using current commit" >&5
3701 $as_echo "no tag in history, using current commit" >&6; }
3702         GIT_TAG=''
3703         GIT_SEQNO=''
3704         GIT_COMMIT=`cd $srcdir && $GIT describe --always --abbrev=8`
3705       fi
3706     else
3707       { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3708 $as_echo "not found" >&6; }
3709     fi
3710
3711
3712
3713
3714
3715   fi
3716
3717
3718     if test "$MINOR_VERSION" == "git"; then
3719                 RELEASE=$GIT_DESCRIBE
3720     DOCVER=$MAJOR_VERSION.$API_COMPAT$MINOR_VERSION
3721     LIBVER=$MAJOR_VERSION.$API_COMPAT$MINOR_VERSION
3722   else
3723     if test "$MAINT_VERSION" == "git" ; then
3724                         RELEASE=$GIT_DESCRIBE
3725       DOCVER=$MAJOR_VERSION.$API_COMPAT.$MINOR_VERSION$MAINT_VERSION
3726       LIBVER=$MAJOR_VERSION.$API_COMPAT.$MINOR_VERSION$MAINT_VERSION
3727     else
3728                               RELEASE=$MAJOR_VERSION.$API_COMPAT.$MINOR_VERSION
3729       if test "$MAINT_VERSION" != "0"; then
3730         RELEASE=$RELEASE.$MAINT_VERSION
3731       fi
3732
3733       DOCVER=$RELEASE
3734       LIBVER=$RELEASE
3735     fi
3736   fi
3737
3738   { $as_echo "$as_me:${as_lineno-$LINENO}: GNU Radio Release $RELEASE" >&5
3739 $as_echo "$as_me: GNU Radio Release $RELEASE" >&6;}
3740
3741
3742
3743
3744
3745 am__api_version='1.11'
3746
3747 # Find a good install program.  We prefer a C program (faster),
3748 # so one script is as good as another.  But avoid the broken or
3749 # incompatible versions:
3750 # SysV /etc/install, /usr/sbin/install
3751 # SunOS /usr/etc/install
3752 # IRIX /sbin/install
3753 # AIX /bin/install
3754 # AmigaOS /C/install, which installs bootblocks on floppy discs
3755 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3756 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3757 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3758 # OS/2's system install, which has a completely different semantic
3759 # ./install, which can be erroneously created by make from ./install.sh.
3760 # Reject install programs that cannot install multiple files.
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3762 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3763 if test -z "$INSTALL"; then
3764 if test "${ac_cv_path_install+set}" = set; then :
3765   $as_echo_n "(cached) " >&6
3766 else
3767   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 for as_dir in $PATH
3769 do
3770   IFS=$as_save_IFS
3771   test -z "$as_dir" && as_dir=.
3772     # Account for people who put trailing slashes in PATH elements.
3773 case $as_dir/ in #((
3774   ./ | .// | /[cC]/* | \
3775   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3776   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3777   /usr/ucb/* ) ;;
3778   *)
3779     # OSF1 and SCO ODT 3.0 have their own names for install.
3780     # Don't use installbsd from OSF since it installs stuff as root
3781     # by default.
3782     for ac_prog in ginstall scoinst install; do
3783       for ac_exec_ext in '' $ac_executable_extensions; do
3784         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3785           if test $ac_prog = install &&
3786             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3787             # AIX install.  It has an incompatible calling convention.
3788             :
3789           elif test $ac_prog = install &&
3790             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3791             # program-specific install script used by HP pwplus--don't use.
3792             :
3793           else
3794             rm -rf conftest.one conftest.two conftest.dir
3795             echo one > conftest.one
3796             echo two > conftest.two
3797             mkdir conftest.dir
3798             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3799               test -s conftest.one && test -s conftest.two &&
3800               test -s conftest.dir/conftest.one &&
3801               test -s conftest.dir/conftest.two
3802             then
3803               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3804               break 3
3805             fi
3806           fi
3807         fi
3808       done
3809     done
3810     ;;
3811 esac
3812
3813   done
3814 IFS=$as_save_IFS
3815
3816 rm -rf conftest.one conftest.two conftest.dir
3817
3818 fi
3819   if test "${ac_cv_path_install+set}" = set; then
3820     INSTALL=$ac_cv_path_install
3821   else
3822     # As a last resort, use the slow shell script.  Don't cache a
3823     # value for INSTALL within a source directory, because that will
3824     # break other packages using the cache if that directory is
3825     # removed, or if the value is a relative name.
3826     INSTALL=$ac_install_sh
3827   fi
3828 fi
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3830 $as_echo "$INSTALL" >&6; }
3831
3832 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3833 # It thinks the first close brace ends the variable substitution.
3834 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3835
3836 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3837
3838 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3839
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3841 $as_echo_n "checking whether build environment is sane... " >&6; }
3842 # Just in case
3843 sleep 1
3844 echo timestamp > conftest.file
3845 # Reject unsafe characters in $srcdir or the absolute working directory
3846 # name.  Accept space and tab only in the latter.
3847 am_lf='
3848 '
3849 case `pwd` in
3850   *[\\\"\#\$\&\'\`$am_lf]*)
3851     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
3852 esac
3853 case $srcdir in
3854   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3855     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
3856 esac
3857
3858 # Do `set' in a subshell so we don't clobber the current shell's
3859 # arguments.  Must try -L first in case configure is actually a
3860 # symlink; some systems play weird games with the mod time of symlinks
3861 # (eg FreeBSD returns the mod time of the symlink's containing
3862 # directory).
3863 if (
3864    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3865    if test "$*" = "X"; then
3866       # -L didn't work.
3867       set X `ls -t "$srcdir/configure" conftest.file`
3868    fi
3869    rm -f conftest.file
3870    if test "$*" != "X $srcdir/configure conftest.file" \
3871       && test "$*" != "X conftest.file $srcdir/configure"; then
3872
3873       # If neither matched, then we have a broken ls.  This can happen
3874       # if, for instance, CONFIG_SHELL is bash and it inherits a
3875       # broken ls alias from the environment.  This has actually
3876       # happened.  Such a system could not be considered "sane".
3877       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3878 alias in your environment" "$LINENO" 5
3879    fi
3880
3881    test "$2" = conftest.file
3882    )
3883 then
3884    # Ok.
3885    :
3886 else
3887    as_fn_error $? "newly created file is older than distributed files!
3888 Check your system clock" "$LINENO" 5
3889 fi
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3891 $as_echo "yes" >&6; }
3892 test "$program_prefix" != NONE &&
3893   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3894 # Use a double $ so make ignores it.
3895 test "$program_suffix" != NONE &&
3896   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3897 # Double any \ or $.
3898 # By default was `s,x,x', remove it if useless.
3899 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3900 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3901
3902 # expand $ac_aux_dir to an absolute path
3903 am_aux_dir=`cd $ac_aux_dir && pwd`
3904
3905 if test x"${MISSING+set}" != xset; then
3906   case $am_aux_dir in
3907   *\ * | *\     *)
3908     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3909   *)
3910     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3911   esac
3912 fi
3913 # Use eval to expand $SHELL
3914 if eval "$MISSING --run true"; then
3915   am_missing_run="$MISSING --run "
3916 else
3917   am_missing_run=
3918   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3919 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3920 fi
3921
3922 if test x"${install_sh}" != xset; then
3923   case $am_aux_dir in
3924   *\ * | *\     *)
3925     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3926   *)
3927     install_sh="\${SHELL} $am_aux_dir/install-sh"
3928   esac
3929 fi
3930
3931 # Installed binaries are usually stripped using `strip' when the user
3932 # run `make install-strip'.  However `strip' might not be the right
3933 # tool to use in cross-compilation environments, therefore Automake
3934 # will honor the `STRIP' environment variable to overrule this program.
3935 if test "$cross_compiling" != no; then
3936   if test -n "$ac_tool_prefix"; then
3937   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3938 set dummy ${ac_tool_prefix}strip; ac_word=$2
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3940 $as_echo_n "checking for $ac_word... " >&6; }
3941 if test "${ac_cv_prog_STRIP+set}" = set; then :
3942   $as_echo_n "(cached) " >&6
3943 else
3944   if test -n "$STRIP"; then
3945   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3946 else
3947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948 for as_dir in $PATH
3949 do
3950   IFS=$as_save_IFS
3951   test -z "$as_dir" && as_dir=.
3952     for ac_exec_ext in '' $ac_executable_extensions; do
3953   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3954     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3956     break 2
3957   fi
3958 done
3959   done
3960 IFS=$as_save_IFS
3961
3962 fi
3963 fi
3964 STRIP=$ac_cv_prog_STRIP
3965 if test -n "$STRIP"; then
3966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3967 $as_echo "$STRIP" >&6; }
3968 else
3969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970 $as_echo "no" >&6; }
3971 fi
3972
3973
3974 fi
3975 if test -z "$ac_cv_prog_STRIP"; then
3976   ac_ct_STRIP=$STRIP
3977   # Extract the first word of "strip", so it can be a program name with args.
3978 set dummy strip; ac_word=$2
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3980 $as_echo_n "checking for $ac_word... " >&6; }
3981 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3982   $as_echo_n "(cached) " >&6
3983 else
3984   if test -n "$ac_ct_STRIP"; then
3985   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3986 else
3987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988 for as_dir in $PATH
3989 do
3990   IFS=$as_save_IFS
3991   test -z "$as_dir" && as_dir=.
3992     for ac_exec_ext in '' $ac_executable_extensions; do
3993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3994     ac_cv_prog_ac_ct_STRIP="strip"
3995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3996     break 2
3997   fi
3998 done
3999   done
4000 IFS=$as_save_IFS
4001
4002 fi
4003 fi
4004 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4005 if test -n "$ac_ct_STRIP"; then
4006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4007 $as_echo "$ac_ct_STRIP" >&6; }
4008 else
4009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4010 $as_echo "no" >&6; }
4011 fi
4012
4013   if test "x$ac_ct_STRIP" = x; then
4014     STRIP=":"
4015   else
4016     case $cross_compiling:$ac_tool_warned in
4017 yes:)
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4020 ac_tool_warned=yes ;;
4021 esac
4022     STRIP=$ac_ct_STRIP
4023   fi
4024 else
4025   STRIP="$ac_cv_prog_STRIP"
4026 fi
4027
4028 fi
4029 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4030
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4032 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4033 if test -z "$MKDIR_P"; then
4034   if test "${ac_cv_path_mkdir+set}" = set; then :
4035   $as_echo_n "(cached) " >&6
4036 else
4037   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4039 do
4040   IFS=$as_save_IFS
4041   test -z "$as_dir" && as_dir=.
4042     for ac_prog in mkdir gmkdir; do
4043          for ac_exec_ext in '' $ac_executable_extensions; do
4044            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4045            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4046              'mkdir (GNU coreutils) '* | \
4047              'mkdir (coreutils) '* | \
4048              'mkdir (fileutils) '4.1*)
4049                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4050                break 3;;
4051            esac
4052          done
4053        done
4054   done
4055 IFS=$as_save_IFS
4056
4057 fi
4058
4059   test -d ./--version && rmdir ./--version
4060   if test "${ac_cv_path_mkdir+set}" = set; then
4061     MKDIR_P="$ac_cv_path_mkdir -p"
4062   else
4063     # As a last resort, use the slow shell script.  Don't cache a
4064     # value for MKDIR_P within a source directory, because that will
4065     # break other packages using the cache if that directory is
4066     # removed, or if the value is a relative name.
4067     MKDIR_P="$ac_install_sh -d"
4068   fi
4069 fi
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4071 $as_echo "$MKDIR_P" >&6; }
4072
4073 mkdir_p="$MKDIR_P"
4074 case $mkdir_p in
4075   [\\/$]* | ?:[\\/]*) ;;
4076   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4077 esac
4078
4079 for ac_prog in gawk mawk nawk awk
4080 do
4081   # Extract the first word of "$ac_prog", so it can be a program name with args.
4082 set dummy $ac_prog; ac_word=$2
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4084 $as_echo_n "checking for $ac_word... " >&6; }
4085 if test "${ac_cv_prog_AWK+set}" = set; then :
4086   $as_echo_n "(cached) " >&6
4087 else
4088   if test -n "$AWK"; then
4089   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4090 else
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092 for as_dir in $PATH
4093 do
4094   IFS=$as_save_IFS
4095   test -z "$as_dir" && as_dir=.
4096     for ac_exec_ext in '' $ac_executable_extensions; do
4097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4098     ac_cv_prog_AWK="$ac_prog"
4099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4100     break 2
4101   fi
4102 done
4103   done
4104 IFS=$as_save_IFS
4105
4106 fi
4107 fi
4108 AWK=$ac_cv_prog_AWK
4109 if test -n "$AWK"; then
4110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4111 $as_echo "$AWK" >&6; }
4112 else
4113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4114 $as_echo "no" >&6; }
4115 fi
4116
4117
4118   test -n "$AWK" && break
4119 done
4120
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4122 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4123 set x ${MAKE-make}
4124 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4125 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4126   $as_echo_n "(cached) " >&6
4127 else
4128   cat >conftest.make <<\_ACEOF
4129 SHELL = /bin/sh
4130 all:
4131         @echo '@@@%%%=$(MAKE)=@@@%%%'
4132 _ACEOF
4133 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4134 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4135   *@@@%%%=?*=@@@%%%*)
4136     eval ac_cv_prog_make_${ac_make}_set=yes;;
4137   *)
4138     eval ac_cv_prog_make_${ac_make}_set=no;;
4139 esac
4140 rm -f conftest.make
4141 fi
4142 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4144 $as_echo "yes" >&6; }
4145   SET_MAKE=
4146 else
4147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4148 $as_echo "no" >&6; }
4149   SET_MAKE="MAKE=${MAKE-make}"
4150 fi
4151
4152 rm -rf .tst 2>/dev/null
4153 mkdir .tst 2>/dev/null
4154 if test -d .tst; then
4155   am__leading_dot=.
4156 else
4157   am__leading_dot=_
4158 fi
4159 rmdir .tst 2>/dev/null
4160
4161 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4162   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4163   # is not polluted with repeated "-I."
4164   am__isrc=' -I$(srcdir)'
4165   # test to see if srcdir already configured
4166   if test -f $srcdir/config.status; then
4167     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4168   fi
4169 fi
4170
4171 # test whether we have cygpath
4172 if test -z "$CYGPATH_W"; then
4173   if (cygpath --version) >/dev/null 2>/dev/null; then
4174     CYGPATH_W='cygpath -w'
4175   else
4176     CYGPATH_W=echo
4177   fi
4178 fi
4179
4180
4181 # Define the identity of the package.
4182  PACKAGE=gnuradio
4183  VERSION=$RELEASE
4184
4185
4186 cat >>confdefs.h <<_ACEOF
4187 #define PACKAGE "$PACKAGE"
4188 _ACEOF
4189
4190
4191 cat >>confdefs.h <<_ACEOF
4192 #define VERSION "$VERSION"
4193 _ACEOF
4194
4195 # Some tools Automake needs.
4196
4197 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4198
4199
4200 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4201
4202
4203 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4204
4205
4206 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4207
4208
4209 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4210
4211 # We need awk for the "check" target.  The system "awk" is bad on
4212 # some platforms.
4213 # Always define AMTAR for backward compatibility.
4214
4215 AMTAR=${AMTAR-"${am_missing_run}tar"}
4216
4217
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4219 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
4220 # Loop over all known methods to create a tar archive until one works.
4221 _am_tools='gnutar plaintar pax cpio none'
4222 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4223 # Do not fold the above two line into one, because Tru64 sh and
4224 # Solaris sh will not grok spaces in the rhs of `-'.
4225 for _am_tool in $_am_tools
4226 do
4227   case $_am_tool in
4228   gnutar)
4229     for _am_tar in tar gnutar gtar;
4230     do
4231       { echo "$as_me:$LINENO: $_am_tar --version" >&5
4232    ($_am_tar --version) >&5 2>&5
4233    ac_status=$?
4234    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235    (exit $ac_status); } && break
4236     done
4237     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4238     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4239     am__untar="$_am_tar -xf -"
4240     ;;
4241   plaintar)
4242     # Must skip GNU tar: if it does not support --format= it doesn't create
4243     # ustar tarball either.
4244     (tar --version) >/dev/null 2>&1 && continue
4245     am__tar='tar chf - "$$tardir"'
4246     am__tar_='tar chf - "$tardir"'
4247     am__untar='tar xf -'
4248     ;;
4249   pax)
4250     am__tar='pax -L -x ustar -w "$$tardir"'
4251     am__tar_='pax -L -x ustar -w "$tardir"'
4252     am__untar='pax -r'
4253     ;;
4254   cpio)
4255     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4256     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4257     am__untar='cpio -i -H ustar -d'
4258     ;;
4259   none)
4260     am__tar=false
4261     am__tar_=false
4262     am__untar=false
4263     ;;
4264   esac
4265
4266   # If the value was cached, stop now.  We just wanted to have am__tar
4267   # and am__untar set.
4268   test -n "${am_cv_prog_tar_ustar}" && break
4269
4270   # tar/untar a dummy directory, and stop if the command works
4271   rm -rf conftest.dir
4272   mkdir conftest.dir
4273   echo GrepMe > conftest.dir/file
4274   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4275    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4276    ac_status=$?
4277    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278    (exit $ac_status); }
4279   rm -rf conftest.dir
4280   if test -s conftest.tar; then
4281     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4282    ($am__untar <conftest.tar) >&5 2>&5
4283    ac_status=$?
4284    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285    (exit $ac_status); }
4286     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4287   fi
4288 done
4289 rm -rf conftest.dir
4290
4291 if test "${am_cv_prog_tar_ustar+set}" = set; then :
4292   $as_echo_n "(cached) " >&6
4293 else
4294   am_cv_prog_tar_ustar=$_am_tool
4295 fi
4296
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4298 $as_echo "$am_cv_prog_tar_ustar" >&6; }
4299
4300
4301
4302
4303
4304
4305 DEFINES=""
4306
4307
4308 if test -n "${CFLAGS}"; then
4309   user_set_cflags=yes
4310 fi
4311 if test -n "${CXXFLAGS}"; then
4312   user_set_cxxflags=yes
4313 fi
4314
4315
4316 DEPDIR="${am__leading_dot}deps"
4317
4318 ac_config_commands="$ac_config_commands depfiles"
4319
4320
4321 am_make=${MAKE-make}
4322 cat > confinc << 'END'
4323 am__doit:
4324         @echo this is the am__doit target
4325 .PHONY: am__doit
4326 END
4327 # If we don't find an include directive, just comment out the code.
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4329 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4330 am__include="#"
4331 am__quote=
4332 _am_result=none
4333 # First try GNU make style include.
4334 echo "include confinc" > confmf
4335 # Ignore all kinds of additional output from `make'.
4336 case `$am_make -s -f confmf 2> /dev/null` in #(
4337 *the\ am__doit\ target*)
4338   am__include=include
4339   am__quote=
4340   _am_result=GNU
4341   ;;
4342 esac
4343 # Now try BSD make style include.
4344 if test "$am__include" = "#"; then
4345    echo '.include "confinc"' > confmf
4346    case `$am_make -s -f confmf 2> /dev/null` in #(
4347    *the\ am__doit\ target*)
4348      am__include=.include
4349      am__quote="\""
4350      _am_result=BSD
4351      ;;
4352    esac
4353 fi
4354
4355
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4357 $as_echo "$_am_result" >&6; }
4358 rm -f confinc confmf
4359
4360 # Check whether --enable-dependency-tracking was given.
4361 if test "${enable_dependency_tracking+set}" = set; then :
4362   enableval=$enable_dependency_tracking;
4363 fi
4364
4365 if test "x$enable_dependency_tracking" != xno; then
4366   am_depcomp="$ac_aux_dir/depcomp"
4367   AMDEPBACKSLASH='\'
4368 fi
4369  if test "x$enable_dependency_tracking" != xno; then
4370   AMDEP_TRUE=
4371   AMDEP_FALSE='#'
4372 else
4373   AMDEP_TRUE='#'
4374   AMDEP_FALSE=
4375 fi
4376
4377
4378 ac_ext=c
4379 ac_cpp='$CPP $CPPFLAGS'
4380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4383 if test -n "$ac_tool_prefix"; then
4384   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4385 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4387 $as_echo_n "checking for $ac_word... " >&6; }
4388 if test "${ac_cv_prog_CC+set}" = set; then :
4389   $as_echo_n "(cached) " >&6
4390 else
4391   if test -n "$CC"; then
4392   ac_cv_prog_CC="$CC" # Let the user override the test.
4393 else
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 for as_dir in $PATH
4396 do
4397   IFS=$as_save_IFS
4398   test -z "$as_dir" && as_dir=.
4399     for ac_exec_ext in '' $ac_executable_extensions; do
4400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4401     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4403     break 2
4404   fi
4405 done
4406   done
4407 IFS=$as_save_IFS
4408
4409 fi
4410 fi
4411 CC=$ac_cv_prog_CC
4412 if test -n "$CC"; then
4413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4414 $as_echo "$CC" >&6; }
4415 else
4416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417 $as_echo "no" >&6; }
4418 fi
4419
4420
4421 fi
4422 if test -z "$ac_cv_prog_CC"; then
4423   ac_ct_CC=$CC
4424   # Extract the first word of "gcc", so it can be a program name with args.
4425 set dummy gcc; ac_word=$2
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4427 $as_echo_n "checking for $ac_word... " >&6; }
4428 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4429   $as_echo_n "(cached) " >&6
4430 else
4431   if test -n "$ac_ct_CC"; then
4432   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4433 else
4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 for as_dir in $PATH
4436 do
4437   IFS=$as_save_IFS
4438   test -z "$as_dir" && as_dir=.
4439     for ac_exec_ext in '' $ac_executable_extensions; do
4440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4441     ac_cv_prog_ac_ct_CC="gcc"
4442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4443     break 2
4444   fi
4445 done
4446   done
4447 IFS=$as_save_IFS
4448
4449 fi
4450 fi
4451 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4452 if test -n "$ac_ct_CC"; then
4453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4454 $as_echo "$ac_ct_CC" >&6; }
4455 else
4456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4457 $as_echo "no" >&6; }
4458 fi
4459
4460   if test "x$ac_ct_CC" = x; then
4461     CC=""
4462   else
4463     case $cross_compiling:$ac_tool_warned in
4464 yes:)
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4467 ac_tool_warned=yes ;;
4468 esac
4469     CC=$ac_ct_CC
4470   fi
4471 else
4472   CC="$ac_cv_prog_CC"
4473 fi
4474
4475 if test -z "$CC"; then
4476           if test -n "$ac_tool_prefix"; then
4477     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4478 set dummy ${ac_tool_prefix}cc; ac_word=$2
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4480 $as_echo_n "checking for $ac_word... " >&6; }
4481 if test "${ac_cv_prog_CC+set}" = set; then :
4482   $as_echo_n "(cached) " >&6
4483 else
4484   if test -n "$CC"; then
4485   ac_cv_prog_CC="$CC" # Let the user override the test.
4486 else
4487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488 for as_dir in $PATH
4489 do
4490   IFS=$as_save_IFS
4491   test -z "$as_dir" && as_dir=.
4492     for ac_exec_ext in '' $ac_executable_extensions; do
4493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4494     ac_cv_prog_CC="${ac_tool_prefix}cc"
4495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4496     break 2
4497   fi
4498 done
4499   done
4500 IFS=$as_save_IFS
4501
4502 fi
4503 fi
4504 CC=$ac_cv_prog_CC
4505 if test -n "$CC"; then
4506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4507 $as_echo "$CC" >&6; }
4508 else
4509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4510 $as_echo "no" >&6; }
4511 fi
4512
4513
4514   fi
4515 fi
4516 if test -z "$CC"; then
4517   # Extract the first word of "cc", so it can be a program name with args.
4518 set dummy cc; ac_word=$2
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4520 $as_echo_n "checking for $ac_word... " >&6; }
4521 if test "${ac_cv_prog_CC+set}" = set; then :
4522   $as_echo_n "(cached) " >&6
4523 else
4524   if test -n "$CC"; then
4525   ac_cv_prog_CC="$CC" # Let the user override the test.
4526 else
4527   ac_prog_rejected=no
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 for as_dir in $PATH
4530 do
4531   IFS=$as_save_IFS
4532   test -z "$as_dir" && as_dir=.
4533     for ac_exec_ext in '' $ac_executable_extensions; do
4534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4535     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4536        ac_prog_rejected=yes
4537        continue
4538      fi
4539     ac_cv_prog_CC="cc"
4540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4541     break 2
4542   fi
4543 done
4544   done
4545 IFS=$as_save_IFS
4546
4547 if test $ac_prog_rejected = yes; then
4548   # We found a bogon in the path, so make sure we never use it.
4549   set dummy $ac_cv_prog_CC
4550   shift
4551   if test $# != 0; then
4552     # We chose a different compiler from the bogus one.
4553     # However, it has the same basename, so the bogon will be chosen
4554     # first if we set CC to just the basename; use the full file name.
4555     shift
4556     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4557   fi
4558 fi
4559 fi
4560 fi
4561 CC=$ac_cv_prog_CC
4562 if test -n "$CC"; then
4563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4564 $as_echo "$CC" >&6; }
4565 else
4566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567 $as_echo "no" >&6; }
4568 fi
4569
4570
4571 fi
4572 if test -z "$CC"; then
4573   if test -n "$ac_tool_prefix"; then
4574   for ac_prog in cl.exe
4575   do
4576     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4577 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4579 $as_echo_n "checking for $ac_word... " >&6; }
4580 if test "${ac_cv_prog_CC+set}" = set; then :
4581   $as_echo_n "(cached) " >&6
4582 else
4583   if test -n "$CC"; then
4584   ac_cv_prog_CC="$CC" # Let the user override the test.
4585 else
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4588 do
4589   IFS=$as_save_IFS
4590   test -z "$as_dir" && as_dir=.
4591     for ac_exec_ext in '' $ac_executable_extensions; do
4592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4593     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4595     break 2
4596   fi
4597 done
4598   done
4599 IFS=$as_save_IFS
4600
4601 fi
4602 fi
4603 CC=$ac_cv_prog_CC
4604 if test -n "$CC"; then
4605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4606 $as_echo "$CC" >&6; }
4607 else
4608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4609 $as_echo "no" >&6; }
4610 fi
4611
4612
4613     test -n "$CC" && break
4614   done
4615 fi
4616 if test -z "$CC"; then
4617   ac_ct_CC=$CC
4618   for ac_prog in cl.exe
4619 do
4620   # Extract the first word of "$ac_prog", so it can be a program name with args.
4621 set dummy $ac_prog; ac_word=$2
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4623 $as_echo_n "checking for $ac_word... " >&6; }
4624 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4625   $as_echo_n "(cached) " >&6
4626 else
4627   if test -n "$ac_ct_CC"; then
4628   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4629 else
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 for as_dir in $PATH
4632 do
4633   IFS=$as_save_IFS
4634   test -z "$as_dir" && as_dir=.
4635     for ac_exec_ext in '' $ac_executable_extensions; do
4636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4637     ac_cv_prog_ac_ct_CC="$ac_prog"
4638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4639     break 2
4640   fi
4641 done
4642   done
4643 IFS=$as_save_IFS
4644
4645 fi
4646 fi
4647 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4648 if test -n "$ac_ct_CC"; then
4649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4650 $as_echo "$ac_ct_CC" >&6; }
4651 else
4652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4653 $as_echo "no" >&6; }
4654 fi
4655
4656
4657   test -n "$ac_ct_CC" && break
4658 done
4659
4660   if test "x$ac_ct_CC" = x; then
4661     CC=""
4662   else
4663     case $cross_compiling:$ac_tool_warned in
4664 yes:)
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4667 ac_tool_warned=yes ;;
4668 esac
4669     CC=$ac_ct_CC
4670   fi
4671 fi
4672
4673 fi
4674
4675
4676 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4678 as_fn_error $? "no acceptable C compiler found in \$PATH
4679 See \`config.log' for more details" "$LINENO" 5 ; }
4680
4681 # Provide some information about the compiler.
4682 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4683 set X $ac_compile
4684 ac_compiler=$2
4685 for ac_option in --version -v -V -qversion; do
4686   { { ac_try="$ac_compiler $ac_option >&5"
4687 case "(($ac_try" in
4688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689   *) ac_try_echo=$ac_try;;
4690 esac
4691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4692 $as_echo "$ac_try_echo"; } >&5
4693   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4694   ac_status=$?
4695   if test -s conftest.err; then
4696     sed '10a\
4697 ... rest of stderr output deleted ...
4698          10q' conftest.err >conftest.er1
4699     cat conftest.er1 >&5
4700   fi
4701   rm -f conftest.er1 conftest.err
4702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4703   test $ac_status = 0; }
4704 done
4705
4706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4707 /* end confdefs.h.  */
4708
4709 int
4710 main ()
4711 {
4712
4713   ;
4714   return 0;
4715 }
4716 _ACEOF
4717 ac_clean_files_save=$ac_clean_files
4718 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4719 # Try to create an executable without -o first, disregard a.out.
4720 # It will help us diagnose broken compilers, and finding out an intuition
4721 # of exeext.
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4723 $as_echo_n "checking whether the C compiler works... " >&6; }
4724 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4725
4726 # The possible output files:
4727 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4728
4729 ac_rmfiles=
4730 for ac_file in $ac_files
4731 do
4732   case $ac_file in
4733     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4734     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4735   esac
4736 done
4737 rm -f $ac_rmfiles
4738
4739 if { { ac_try="$ac_link_default"
4740 case "(($ac_try" in
4741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4742   *) ac_try_echo=$ac_try;;
4743 esac
4744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4745 $as_echo "$ac_try_echo"; } >&5
4746   (eval "$ac_link_default") 2>&5
4747   ac_status=$?
4748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4749   test $ac_status = 0; }; then :
4750   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4751 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4752 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4753 # so that the user can short-circuit this test for compilers unknown to
4754 # Autoconf.
4755 for ac_file in $ac_files ''
4756 do
4757   test -f "$ac_file" || continue
4758   case $ac_file in
4759     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4760         ;;
4761     [ab].out )
4762         # We found the default executable, but exeext='' is most
4763         # certainly right.
4764         break;;
4765     *.* )
4766         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4767         then :; else
4768            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4769         fi
4770         # We set ac_cv_exeext here because the later test for it is not
4771         # safe: cross compilers may not add the suffix if given an `-o'
4772         # argument, so we may need to know it at that point already.
4773         # Even if this section looks crufty: it has the advantage of
4774         # actually working.
4775         break;;
4776     * )
4777         break;;
4778   esac
4779 done
4780 test "$ac_cv_exeext" = no && ac_cv_exeext=
4781
4782 else
4783   ac_file=''
4784 fi
4785 if test -z "$ac_file"; then :
4786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4787 $as_echo "no" >&6; }
4788 $as_echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4790
4791 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4793 as_fn_error 77 "C compiler cannot create executables
4794 See \`config.log' for more details" "$LINENO" 5 ; }
4795 else
4796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4797 $as_echo "yes" >&6; }
4798 fi
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4800 $as_echo_n "checking for C compiler default output file name... " >&6; }
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4802 $as_echo "$ac_file" >&6; }
4803 ac_exeext=$ac_cv_exeext
4804
4805 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4806 ac_clean_files=$ac_clean_files_save
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4808 $as_echo_n "checking for suffix of executables... " >&6; }
4809 if { { ac_try="$ac_link"
4810 case "(($ac_try" in
4811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4812   *) ac_try_echo=$ac_try;;
4813 esac
4814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4815 $as_echo "$ac_try_echo"; } >&5
4816   (eval "$ac_link") 2>&5
4817   ac_status=$?
4818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4819   test $ac_status = 0; }; then :
4820   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4821 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4822 # work properly (i.e., refer to `conftest.exe'), while it won't with
4823 # `rm'.
4824 for ac_file in conftest.exe conftest conftest.*; do
4825   test -f "$ac_file" || continue
4826   case $ac_file in
4827     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4828     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4829           break;;
4830     * ) break;;
4831   esac
4832 done
4833 else
4834   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4836 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4837 See \`config.log' for more details" "$LINENO" 5 ; }
4838 fi
4839 rm -f conftest conftest$ac_cv_exeext
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4841 $as_echo "$ac_cv_exeext" >&6; }
4842
4843 rm -f conftest.$ac_ext
4844 EXEEXT=$ac_cv_exeext
4845 ac_exeext=$EXEEXT
4846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4847 /* end confdefs.h.  */
4848 #include <stdio.h>
4849 int
4850 main ()
4851 {
4852 FILE *f = fopen ("conftest.out", "w");
4853  return ferror (f) || fclose (f) != 0;
4854
4855   ;
4856   return 0;
4857 }
4858 _ACEOF
4859 ac_clean_files="$ac_clean_files conftest.out"
4860 # Check that the compiler produces executables we can run.  If not, either
4861 # the compiler is broken, or we cross compile.
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4863 $as_echo_n "checking whether we are cross compiling... " >&6; }
4864 if test "$cross_compiling" != yes; then
4865   { { ac_try="$ac_link"
4866 case "(($ac_try" in
4867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4868   *) ac_try_echo=$ac_try;;
4869 esac
4870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4871 $as_echo "$ac_try_echo"; } >&5
4872   (eval "$ac_link") 2>&5
4873   ac_status=$?
4874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4875   test $ac_status = 0; }
4876   if { ac_try='./conftest$ac_cv_exeext'
4877   { { case "(($ac_try" in
4878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4879   *) ac_try_echo=$ac_try;;
4880 esac
4881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4882 $as_echo "$ac_try_echo"; } >&5
4883   (eval "$ac_try") 2>&5
4884   ac_status=$?
4885   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4886   test $ac_status = 0; }; }; then
4887     cross_compiling=no
4888   else
4889     if test "$cross_compiling" = maybe; then
4890         cross_compiling=yes
4891     else
4892         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4894 as_fn_error $? "cannot run C compiled programs.
4895 If you meant to cross compile, use \`--host'.
4896 See \`config.log' for more details" "$LINENO" 5 ; }
4897     fi
4898   fi
4899 fi
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4901 $as_echo "$cross_compiling" >&6; }
4902
4903 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4904 ac_clean_files=$ac_clean_files_save
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4906 $as_echo_n "checking for suffix of object files... " >&6; }
4907 if test "${ac_cv_objext+set}" = set; then :
4908   $as_echo_n "(cached) " >&6
4909 else
4910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h.  */
4912
4913 int
4914 main ()
4915 {
4916
4917   ;
4918   return 0;
4919 }
4920 _ACEOF
4921 rm -f conftest.o conftest.obj
4922 if { { ac_try="$ac_compile"
4923 case "(($ac_try" in
4924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4925   *) ac_try_echo=$ac_try;;
4926 esac
4927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4928 $as_echo "$ac_try_echo"; } >&5
4929   (eval "$ac_compile") 2>&5
4930   ac_status=$?
4931   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4932   test $ac_status = 0; }; then :
4933   for ac_file in conftest.o conftest.obj conftest.*; do
4934   test -f "$ac_file" || continue;
4935   case $ac_file in
4936     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4937     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4938        break;;
4939   esac
4940 done
4941 else
4942   $as_echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4944
4945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4947 as_fn_error $? "cannot compute suffix of object files: cannot compile
4948 See \`config.log' for more details" "$LINENO" 5 ; }
4949 fi
4950 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4951 fi
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4953 $as_echo "$ac_cv_objext" >&6; }
4954 OBJEXT=$ac_cv_objext
4955 ac_objext=$OBJEXT
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4957 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4958 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4959   $as_echo_n "(cached) " >&6
4960 else
4961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962 /* end confdefs.h.  */
4963
4964 int
4965 main ()
4966 {
4967 #ifndef __GNUC__
4968        choke me
4969 #endif
4970
4971   ;
4972   return 0;
4973 }
4974 _ACEOF
4975 if ac_fn_c_try_compile "$LINENO"; then :
4976   ac_compiler_gnu=yes
4977 else
4978   ac_compiler_gnu=no
4979 fi
4980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4981 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4982
4983 fi
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4985 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4986 if test $ac_compiler_gnu = yes; then
4987   GCC=yes
4988 else
4989   GCC=
4990 fi
4991 ac_test_CFLAGS=${CFLAGS+set}
4992 ac_save_CFLAGS=$CFLAGS
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4994 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4995 if test "${ac_cv_prog_cc_g+set}" = set; then :
4996   $as_echo_n "(cached) " >&6
4997 else
4998   ac_save_c_werror_flag=$ac_c_werror_flag
4999    ac_c_werror_flag=yes
5000    ac_cv_prog_cc_g=no
5001    CFLAGS="-g"
5002    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h.  */
5004
5005 int
5006 main ()
5007 {
5008
5009   ;
5010   return 0;
5011 }
5012 _ACEOF
5013 if ac_fn_c_try_compile "$LINENO"; then :
5014   ac_cv_prog_cc_g=yes
5015 else
5016   CFLAGS=""
5017       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5018 /* end confdefs.h.  */
5019
5020 int
5021 main ()
5022 {
5023
5024   ;
5025   return 0;
5026 }
5027 _ACEOF
5028 if ac_fn_c_try_compile "$LINENO"; then :
5029
5030 else
5031   ac_c_werror_flag=$ac_save_c_werror_flag
5032          CFLAGS="-g"
5033          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034 /* end confdefs.h.  */
5035
5036 int
5037 main ()
5038 {
5039
5040   ;
5041   return 0;
5042 }
5043 _ACEOF
5044 if ac_fn_c_try_compile "$LINENO"; then :
5045   ac_cv_prog_cc_g=yes
5046 fi
5047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5048 fi
5049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5050 fi
5051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5052    ac_c_werror_flag=$ac_save_c_werror_flag
5053 fi
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5055 $as_echo "$ac_cv_prog_cc_g" >&6; }
5056 if test "$ac_test_CFLAGS" = set; then
5057   CFLAGS=$ac_save_CFLAGS
5058 elif test $ac_cv_prog_cc_g = yes; then
5059   if test "$GCC" = yes; then
5060     CFLAGS="-g -O2"
5061   else
5062     CFLAGS="-g"
5063   fi
5064 else
5065   if test "$GCC" = yes; then
5066     CFLAGS="-O2"
5067   else
5068     CFLAGS=
5069   fi
5070 fi
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5072 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5073 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5074   $as_echo_n "(cached) " >&6
5075 else
5076   ac_cv_prog_cc_c89=no
5077 ac_save_CC=$CC
5078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5079 /* end confdefs.h.  */
5080 #include <stdarg.h>
5081 #include <stdio.h>
5082 #include <sys/types.h>
5083 #include <sys/stat.h>
5084 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5085 struct buf { int x; };
5086 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5087 static char *e (p, i)
5088      char **p;
5089      int i;
5090 {
5091   return p[i];
5092 }
5093 static char *f (char * (*g) (char **, int), char **p, ...)
5094 {
5095   char *s;
5096   va_list v;
5097   va_start (v,p);
5098   s = g (p, va_arg (v,int));
5099   va_end (v);
5100   return s;
5101 }
5102
5103 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5104    function prototypes and stuff, but not '\xHH' hex character constants.
5105    These don't provoke an error unfortunately, instead are silently treated
5106    as 'x'.  The following induces an error, until -std is added to get
5107    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5108    array size at least.  It's necessary to write '\x00'==0 to get something
5109    that's true only with -std.  */
5110 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5111
5112 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5113    inside strings and character constants.  */
5114 #define FOO(x) 'x'
5115 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5116
5117 int test (int i, double x);
5118 struct s1 {int (*f) (int a);};
5119 struct s2 {int (*f) (double a);};
5120 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5121 int argc;
5122 char **argv;
5123 int
5124 main ()
5125 {
5126 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5127   ;
5128   return 0;
5129 }
5130 _ACEOF
5131 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5132         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5133 do
5134   CC="$ac_save_CC $ac_arg"
5135   if ac_fn_c_try_compile "$LINENO"; then :
5136   ac_cv_prog_cc_c89=$ac_arg
5137 fi
5138 rm -f core conftest.err conftest.$ac_objext
5139   test "x$ac_cv_prog_cc_c89" != "xno" && break
5140 done
5141 rm -f conftest.$ac_ext
5142 CC=$ac_save_CC
5143
5144 fi
5145 # AC_CACHE_VAL
5146 case "x$ac_cv_prog_cc_c89" in
5147   x)
5148     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5149 $as_echo "none needed" >&6; } ;;
5150   xno)
5151     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5152 $as_echo "unsupported" >&6; } ;;
5153   *)
5154     CC="$CC $ac_cv_prog_cc_c89"
5155     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5156 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5157 esac
5158 if test "x$ac_cv_prog_cc_c89" != xno; then :
5159
5160 fi
5161
5162 ac_ext=c
5163 ac_cpp='$CPP $CPPFLAGS'
5164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5167
5168 depcc="$CC"   am_compiler_list=
5169
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5171 $as_echo_n "checking dependency style of $depcc... " >&6; }
5172 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5173   $as_echo_n "(cached) " >&6
5174 else
5175   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5176   # We make a subdir and do the tests there.  Otherwise we can end up
5177   # making bogus files that we don't know about and never remove.  For
5178   # instance it was reported that on HP-UX the gcc test will end up
5179   # making a dummy file named `D' -- because `-MD' means `put the output
5180   # in D'.
5181   mkdir conftest.dir
5182   # Copy depcomp to subdir because otherwise we won't find it if we're
5183   # using a relative directory.
5184   cp "$am_depcomp" conftest.dir
5185   cd conftest.dir
5186   # We will build objects and dependencies in a subdirectory because
5187   # it helps to detect inapplicable dependency modes.  For instance
5188   # both Tru64's cc and ICC support -MD to output dependencies as a
5189   # side effect of compilation, but ICC will put the dependencies in
5190   # the current directory while Tru64 will put them in the object
5191   # directory.
5192   mkdir sub
5193
5194   am_cv_CC_dependencies_compiler_type=none
5195   if test "$am_compiler_list" = ""; then
5196      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5197   fi
5198   am__universal=false
5199   case " $depcc " in #(
5200      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5201      esac
5202
5203   for depmode in $am_compiler_list; do
5204     # Setup a source with many dependencies, because some compilers
5205     # like to wrap large dependency lists on column 80 (with \), and
5206     # we should not choose a depcomp mode which is confused by this.
5207     #
5208     # We need to recreate these files for each test, as the compiler may
5209     # overwrite some of them when testing with obscure command lines.
5210     # This happens at least with the AIX C compiler.
5211     : > sub/conftest.c
5212     for i in 1 2 3 4 5 6; do
5213       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5214       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5215       # Solaris 8's {/usr,}/bin/sh.
5216       touch sub/conftst$i.h
5217     done
5218     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5219
5220     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5221     # mode.  It turns out that the SunPro C++ compiler does not properly
5222     # handle `-M -o', and we need to detect this.  Also, some Intel
5223     # versions had trouble with output in subdirs
5224     am__obj=sub/conftest.${OBJEXT-o}
5225     am__minus_obj="-o $am__obj"
5226     case $depmode in
5227     gcc)
5228       # This depmode causes a compiler race in universal mode.
5229       test "$am__universal" = false || continue
5230       ;;
5231     nosideeffect)
5232       # after this tag, mechanisms are not by side-effect, so they'll
5233       # only be used when explicitly requested
5234       if test "x$enable_dependency_tracking" = xyes; then
5235         continue
5236       else
5237         break
5238       fi
5239       ;;
5240     msvisualcpp | msvcmsys)
5241       # This compiler won't grok `-c -o', but also, the minuso test has
5242       # not run yet.  These depmodes are late enough in the game, and
5243       # so weak that their functioning should not be impacted.
5244       am__obj=conftest.${OBJEXT-o}
5245       am__minus_obj=
5246       ;;
5247     none) break ;;
5248     esac
5249     if depmode=$depmode \
5250        source=sub/conftest.c object=$am__obj \
5251        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5252        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5253          >/dev/null 2>conftest.err &&
5254        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5255        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5256        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5257        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5258       # icc doesn't choke on unknown options, it will just issue warnings
5259       # or remarks (even with -Werror).  So we grep stderr for any message
5260       # that says an option was ignored or not supported.
5261       # When given -MP, icc 7.0 and 7.1 complain thusly:
5262       #   icc: Command line warning: ignoring option '-M'; no argument required
5263       # The diagnosis changed in icc 8.0:
5264       #   icc: Command line remark: option '-MP' not supported
5265       if (grep 'ignoring option' conftest.err ||
5266           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5267         am_cv_CC_dependencies_compiler_type=$depmode
5268         break
5269       fi
5270     fi
5271   done
5272
5273   cd ..
5274   rm -rf conftest.dir
5275 else
5276   am_cv_CC_dependencies_compiler_type=none
5277 fi
5278
5279 fi
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5281 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5282 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5283
5284  if
5285   test "x$enable_dependency_tracking" != xno \
5286   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5287   am__fastdepCC_TRUE=
5288   am__fastdepCC_FALSE='#'
5289 else
5290   am__fastdepCC_TRUE='#'
5291   am__fastdepCC_FALSE=
5292 fi
5293
5294
5295 ac_ext=c
5296 ac_cpp='$CPP $CPPFLAGS'
5297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5301 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5302 # On Suns, sometimes $CPP names a directory.
5303 if test -n "$CPP" && test -d "$CPP"; then
5304   CPP=
5305 fi
5306 if test -z "$CPP"; then
5307   if test "${ac_cv_prog_CPP+set}" = set; then :
5308   $as_echo_n "(cached) " >&6
5309 else
5310       # Double quotes because CPP needs to be expanded
5311     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5312     do
5313       ac_preproc_ok=false
5314 for ac_c_preproc_warn_flag in '' yes
5315 do
5316   # Use a header file that comes with gcc, so configuring glibc
5317   # with a fresh cross-compiler works.
5318   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5319   # <limits.h> exists even on freestanding compilers.
5320   # On the NeXT, cc -E runs the code through the compiler's parser,
5321   # not just through cpp. "Syntax error" is here to catch this case.
5322   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5323 /* end confdefs.h.  */
5324 #ifdef __STDC__
5325 # include <limits.h>
5326 #else
5327 # include <assert.h>
5328 #endif
5329                      Syntax error
5330 _ACEOF
5331 if ac_fn_c_try_cpp "$LINENO"; then :
5332
5333 else
5334   # Broken: fails on valid input.
5335 continue
5336 fi
5337 rm -f conftest.err conftest.i conftest.$ac_ext
5338
5339   # OK, works on sane cases.  Now check whether nonexistent headers
5340   # can be detected and how.
5341   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342 /* end confdefs.h.  */
5343 #include <ac_nonexistent.h>
5344 _ACEOF
5345 if ac_fn_c_try_cpp "$LINENO"; then :
5346   # Broken: success on invalid input.
5347 continue
5348 else
5349   # Passes both tests.
5350 ac_preproc_ok=:
5351 break
5352 fi
5353 rm -f conftest.err conftest.i conftest.$ac_ext
5354
5355 done
5356 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5357 rm -f conftest.i conftest.err conftest.$ac_ext
5358 if $ac_preproc_ok; then :
5359   break
5360 fi
5361
5362     done
5363     ac_cv_prog_CPP=$CPP
5364
5365 fi
5366   CPP=$ac_cv_prog_CPP
5367 else
5368   ac_cv_prog_CPP=$CPP
5369 fi
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5371 $as_echo "$CPP" >&6; }
5372 ac_preproc_ok=false
5373 for ac_c_preproc_warn_flag in '' yes
5374 do
5375   # Use a header file that comes with gcc, so configuring glibc
5376   # with a fresh cross-compiler works.
5377   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5378   # <limits.h> exists even on freestanding compilers.
5379   # On the NeXT, cc -E runs the code through the compiler's parser,
5380   # not just through cpp. "Syntax error" is here to catch this case.
5381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382 /* end confdefs.h.  */
5383 #ifdef __STDC__
5384 # include <limits.h>
5385 #else
5386 # include <assert.h>
5387 #endif
5388                      Syntax error
5389 _ACEOF
5390 if ac_fn_c_try_cpp "$LINENO"; then :
5391
5392 else
5393   # Broken: fails on valid input.
5394 continue
5395 fi
5396 rm -f conftest.err conftest.i conftest.$ac_ext
5397
5398   # OK, works on sane cases.  Now check whether nonexistent headers
5399   # can be detected and how.
5400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401 /* end confdefs.h.  */
5402 #include <ac_nonexistent.h>
5403 _ACEOF
5404 if ac_fn_c_try_cpp "$LINENO"; then :
5405   # Broken: success on invalid input.
5406 continue
5407 else
5408   # Passes both tests.
5409 ac_preproc_ok=:
5410 break
5411 fi
5412 rm -f conftest.err conftest.i conftest.$ac_ext
5413
5414 done
5415 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5416 rm -f conftest.i conftest.err conftest.$ac_ext
5417 if $ac_preproc_ok; then :
5418
5419 else
5420   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5422 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5423 See \`config.log' for more details" "$LINENO" 5 ; }
5424 fi
5425
5426 ac_ext=c
5427 ac_cpp='$CPP $CPPFLAGS'
5428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5431
5432
5433
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5435 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5436 if test "${ac_cv_path_GREP+set}" = set; then :
5437   $as_echo_n "(cached) " >&6
5438 else
5439   if test -z "$GREP"; then
5440   ac_path_GREP_found=false
5441   # Loop through the user's path and test for each of PROGNAME-LIST
5442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5444 do
5445   IFS=$as_save_IFS
5446   test -z "$as_dir" && as_dir=.
5447     for ac_prog in grep ggrep; do
5448     for ac_exec_ext in '' $ac_executable_extensions; do
5449       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5450       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5451 # Check for GNU ac_path_GREP and select it if it is found.
5452   # Check for GNU $ac_path_GREP
5453 case `"$ac_path_GREP" --version 2>&1` in
5454 *GNU*)
5455   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5456 *)
5457   ac_count=0
5458   $as_echo_n 0123456789 >"conftest.in"
5459   while :
5460   do
5461     cat "conftest.in" "conftest.in" >"conftest.tmp"
5462     mv "conftest.tmp" "conftest.in"
5463     cp "conftest.in" "conftest.nl"
5464     $as_echo 'GREP' >> "conftest.nl"
5465     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5466     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5467     as_fn_arith $ac_count + 1 && ac_count=$as_val
5468     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5469       # Best one so far, save it but keep looking for a better one
5470       ac_cv_path_GREP="$ac_path_GREP"
5471       ac_path_GREP_max=$ac_count
5472     fi
5473     # 10*(2^10) chars as input seems more than enough
5474     test $ac_count -gt 10 && break
5475   done
5476   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5477 esac
5478
5479       $ac_path_GREP_found && break 3
5480     done
5481   done
5482   done
5483 IFS=$as_save_IFS
5484   if test -z "$ac_cv_path_GREP"; then
5485     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5486   fi
5487 else
5488   ac_cv_path_GREP=$GREP
5489 fi
5490
5491 fi
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5493 $as_echo "$ac_cv_path_GREP" >&6; }
5494  GREP="$ac_cv_path_GREP"
5495
5496
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5498 $as_echo_n "checking for egrep... " >&6; }
5499 if test "${ac_cv_path_EGREP+set}" = set; then :
5500   $as_echo_n "(cached) " >&6
5501 else
5502   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5503    then ac_cv_path_EGREP="$GREP -E"
5504    else
5505      if test -z "$EGREP"; then
5506   ac_path_EGREP_found=false
5507   # Loop through the user's path and test for each of PROGNAME-LIST
5508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5510 do
5511   IFS=$as_save_IFS
5512   test -z "$as_dir" && as_dir=.
5513     for ac_prog in egrep; do
5514     for ac_exec_ext in '' $ac_executable_extensions; do
5515       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5516       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5517 # Check for GNU ac_path_EGREP and select it if it is found.
5518   # Check for GNU $ac_path_EGREP
5519 case `"$ac_path_EGREP" --version 2>&1` in
5520 *GNU*)
5521   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5522 *)
5523   ac_count=0
5524   $as_echo_n 0123456789 >"conftest.in"
5525   while :
5526   do
5527     cat "conftest.in" "conftest.in" >"conftest.tmp"
5528     mv "conftest.tmp" "conftest.in"
5529     cp "conftest.in" "conftest.nl"
5530     $as_echo 'EGREP' >> "conftest.nl"
5531     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5532     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5533     as_fn_arith $ac_count + 1 && ac_count=$as_val
5534     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5535       # Best one so far, save it but keep looking for a better one
5536       ac_cv_path_EGREP="$ac_path_EGREP"
5537       ac_path_EGREP_max=$ac_count
5538     fi
5539     # 10*(2^10) chars as input seems more than enough
5540     test $ac_count -gt 10 && break
5541   done
5542   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5543 esac
5544
5545       $ac_path_EGREP_found && break 3
5546     done
5547   done
5548   done
5549 IFS=$as_save_IFS
5550   if test -z "$ac_cv_path_EGREP"; then
5551     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5552   fi
5553 else
5554   ac_cv_path_EGREP=$EGREP
5555 fi
5556
5557    fi
5558 fi
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5560 $as_echo "$ac_cv_path_EGREP" >&6; }
5561  EGREP="$ac_cv_path_EGREP"
5562
5563
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5565 $as_echo_n "checking for ANSI C header files... " >&6; }
5566 if test "${ac_cv_header_stdc+set}" = set; then :
5567   $as_echo_n "(cached) " >&6
5568 else
5569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570 /* end confdefs.h.  */
5571 #include <stdlib.h>
5572 #include <stdarg.h>
5573 #include <string.h>
5574 #include <float.h>
5575
5576 int
5577 main ()
5578 {
5579
5580   ;
5581   return 0;
5582 }
5583 _ACEOF
5584 if ac_fn_c_try_compile "$LINENO"; then :
5585   ac_cv_header_stdc=yes
5586 else
5587   ac_cv_header_stdc=no
5588 fi
5589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5590
5591 if test $ac_cv_header_stdc = yes; then
5592   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h.  */
5595 #include <string.h>
5596
5597 _ACEOF
5598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5599   $EGREP "memchr" >/dev/null 2>&1; then :
5600
5601 else
5602   ac_cv_header_stdc=no
5603 fi
5604 rm -f conftest*
5605
5606 fi
5607
5608 if test $ac_cv_header_stdc = yes; then
5609   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611 /* end confdefs.h.  */
5612 #include <stdlib.h>
5613
5614 _ACEOF
5615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5616   $EGREP "free" >/dev/null 2>&1; then :
5617
5618 else
5619   ac_cv_header_stdc=no
5620 fi
5621 rm -f conftest*
5622
5623 fi
5624
5625 if test $ac_cv_header_stdc = yes; then
5626   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5627   if test "$cross_compiling" = yes; then :
5628   :
5629 else
5630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631 /* end confdefs.h.  */
5632 #include <ctype.h>
5633 #include <stdlib.h>
5634 #if ((' ' & 0x0FF) == 0x020)
5635 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5636 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5637 #else
5638 # define ISLOWER(c) \
5639                    (('a' <= (c) && (c) <= 'i') \
5640                      || ('j' <= (c) && (c) <= 'r') \
5641                      || ('s' <= (c) && (c) <= 'z'))
5642 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5643 #endif
5644
5645 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5646 int
5647 main ()
5648 {
5649   int i;
5650   for (i = 0; i < 256; i++)
5651     if (XOR (islower (i), ISLOWER (i))
5652         || toupper (i) != TOUPPER (i))
5653       return 2;
5654   return 0;
5655 }
5656 _ACEOF
5657 if ac_fn_c_try_run "$LINENO"; then :
5658
5659 else
5660   ac_cv_header_stdc=no
5661 fi
5662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5663   conftest.$ac_objext conftest.beam conftest.$ac_ext
5664 fi
5665
5666 fi
5667 fi
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5669 $as_echo "$ac_cv_header_stdc" >&6; }
5670 if test $ac_cv_header_stdc = yes; then
5671
5672 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5673
5674 fi
5675
5676 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5677 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5678                   inttypes.h stdint.h unistd.h
5679 do :
5680   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5681 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5682 "
5683 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5684   cat >>confdefs.h <<_ACEOF
5685 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5686 _ACEOF
5687
5688 fi
5689
5690 done
5691
5692
5693
5694   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5695 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5696   MINIX=yes
5697 else
5698   MINIX=
5699 fi
5700
5701
5702   if test "$MINIX" = yes; then
5703
5704 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5705
5706
5707 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5708
5709
5710 $as_echo "#define _MINIX 1" >>confdefs.h
5711
5712   fi
5713
5714
5715   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5716 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5717 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5718   $as_echo_n "(cached) " >&6
5719 else
5720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721 /* end confdefs.h.  */
5722
5723 #         define __EXTENSIONS__ 1
5724           $ac_includes_default
5725 int
5726 main ()
5727 {
5728
5729   ;
5730   return 0;
5731 }
5732 _ACEOF
5733 if ac_fn_c_try_compile "$LINENO"; then :
5734   ac_cv_safe_to_define___extensions__=yes
5735 else
5736   ac_cv_safe_to_define___extensions__=no
5737 fi
5738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5739 fi
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5741 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5742   test $ac_cv_safe_to_define___extensions__ = yes &&
5743     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5744
5745   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5746
5747   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5748
5749   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5750
5751   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5752
5753
5754
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5756 $as_echo_n "checking for library containing strerror... " >&6; }
5757 if test "${ac_cv_search_strerror+set}" = set; then :
5758   $as_echo_n "(cached) " >&6
5759 else
5760   ac_func_search_save_LIBS=$LIBS
5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762 /* end confdefs.h.  */
5763
5764 /* Override any GCC internal prototype to avoid an error.
5765    Use char because int might match the return type of a GCC
5766    builtin and then its argument prototype would still apply.  */
5767 #ifdef __cplusplus
5768 extern "C"
5769 #endif
5770 char strerror ();
5771 int
5772 main ()
5773 {
5774 return strerror ();
5775   ;
5776   return 0;
5777 }
5778 _ACEOF
5779 for ac_lib in '' cposix; do
5780   if test -z "$ac_lib"; then
5781     ac_res="none required"
5782   else
5783     ac_res=-l$ac_lib
5784     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5785   fi
5786   if ac_fn_c_try_link "$LINENO"; then :
5787   ac_cv_search_strerror=$ac_res
5788 fi
5789 rm -f core conftest.err conftest.$ac_objext \
5790     conftest$ac_exeext
5791   if test "${ac_cv_search_strerror+set}" = set; then :
5792   break
5793 fi
5794 done
5795 if test "${ac_cv_search_strerror+set}" = set; then :
5796
5797 else
5798   ac_cv_search_strerror=no
5799 fi
5800 rm conftest.$ac_ext
5801 LIBS=$ac_func_search_save_LIBS
5802 fi
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5804 $as_echo "$ac_cv_search_strerror" >&6; }
5805 ac_res=$ac_cv_search_strerror
5806 if test "$ac_res" != no; then :
5807   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5808
5809 fi
5810
5811
5812
5813 ac_ext=cpp
5814 ac_cpp='$CXXCPP $CPPFLAGS'
5815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5818 if test -z "$CXX"; then
5819   if test -n "$CCC"; then
5820     CXX=$CCC
5821   else
5822     if test -n "$ac_tool_prefix"; then
5823   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5824   do
5825     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5826 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5828 $as_echo_n "checking for $ac_word... " >&6; }
5829 if test "${ac_cv_prog_CXX+set}" = set; then :
5830   $as_echo_n "(cached) " >&6
5831 else
5832   if test -n "$CXX"; then
5833   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5834 else
5835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836 for as_dir in $PATH
5837 do
5838   IFS=$as_save_IFS
5839   test -z "$as_dir" && as_dir=.
5840     for ac_exec_ext in '' $ac_executable_extensions; do
5841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5842     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5843     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5844     break 2
5845   fi
5846 done
5847   done
5848 IFS=$as_save_IFS
5849
5850 fi
5851 fi
5852 CXX=$ac_cv_prog_CXX
5853 if test -n "$CXX"; then
5854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5855 $as_echo "$CXX" >&6; }
5856 else
5857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5858 $as_echo "no" >&6; }
5859 fi
5860
5861
5862     test -n "$CXX" && break
5863   done
5864 fi
5865 if test -z "$CXX"; then
5866   ac_ct_CXX=$CXX
5867   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5868 do
5869   # Extract the first word of "$ac_prog", so it can be a program name with args.
5870 set dummy $ac_prog; ac_word=$2
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5872 $as_echo_n "checking for $ac_word... " >&6; }
5873 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5874   $as_echo_n "(cached) " >&6
5875 else
5876   if test -n "$ac_ct_CXX"; then
5877   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5878 else
5879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880 for as_dir in $PATH
5881 do
5882   IFS=$as_save_IFS
5883   test -z "$as_dir" && as_dir=.
5884     for ac_exec_ext in '' $ac_executable_extensions; do
5885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5886     ac_cv_prog_ac_ct_CXX="$ac_prog"
5887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5888     break 2
5889   fi
5890 done
5891   done
5892 IFS=$as_save_IFS
5893
5894 fi
5895 fi
5896 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5897 if test -n "$ac_ct_CXX"; then
5898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5899 $as_echo "$ac_ct_CXX" >&6; }
5900 else
5901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5902 $as_echo "no" >&6; }
5903 fi
5904
5905
5906   test -n "$ac_ct_CXX" && break
5907 done
5908
5909   if test "x$ac_ct_CXX" = x; then
5910     CXX="g++"
5911   else
5912     case $cross_compiling:$ac_tool_warned in
5913 yes:)
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5916 ac_tool_warned=yes ;;
5917 esac
5918     CXX=$ac_ct_CXX
5919   fi
5920 fi
5921
5922   fi
5923 fi
5924 # Provide some information about the compiler.
5925 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5926 set X $ac_compile
5927 ac_compiler=$2
5928 for ac_option in --version -v -V -qversion; do
5929   { { ac_try="$ac_compiler $ac_option >&5"
5930 case "(($ac_try" in
5931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932   *) ac_try_echo=$ac_try;;
5933 esac
5934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5935 $as_echo "$ac_try_echo"; } >&5
5936   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5937   ac_status=$?
5938   if test -s conftest.err; then
5939     sed '10a\
5940 ... rest of stderr output deleted ...
5941          10q' conftest.err >conftest.er1
5942     cat conftest.er1 >&5
5943   fi
5944   rm -f conftest.er1 conftest.err
5945   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5946   test $ac_status = 0; }
5947 done
5948
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5950 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5951 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5952   $as_echo_n "(cached) " >&6
5953 else
5954   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955 /* end confdefs.h.  */
5956
5957 int
5958 main ()
5959 {
5960 #ifndef __GNUC__
5961        choke me
5962 #endif
5963
5964   ;
5965   return 0;
5966 }
5967 _ACEOF
5968 if ac_fn_cxx_try_compile "$LINENO"; then :
5969   ac_compiler_gnu=yes
5970 else
5971   ac_compiler_gnu=no
5972 fi
5973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5974 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5975
5976 fi
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5978 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5979 if test $ac_compiler_gnu = yes; then
5980   GXX=yes
5981 else
5982   GXX=
5983 fi
5984 ac_test_CXXFLAGS=${CXXFLAGS+set}
5985 ac_save_CXXFLAGS=$CXXFLAGS
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5987 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5988 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5989   $as_echo_n "(cached) " >&6
5990 else
5991   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5992    ac_cxx_werror_flag=yes
5993    ac_cv_prog_cxx_g=no
5994    CXXFLAGS="-g"
5995    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996 /* end confdefs.h.  */
5997
5998 int
5999 main ()
6000 {
6001
6002   ;
6003   return 0;
6004 }
6005 _ACEOF
6006 if ac_fn_cxx_try_compile "$LINENO"; then :
6007   ac_cv_prog_cxx_g=yes
6008 else
6009   CXXFLAGS=""
6010       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6011 /* end confdefs.h.  */
6012
6013 int
6014 main ()
6015 {
6016
6017   ;
6018   return 0;
6019 }
6020 _ACEOF
6021 if ac_fn_cxx_try_compile "$LINENO"; then :
6022
6023 else
6024   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6025          CXXFLAGS="-g"
6026          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6027 /* end confdefs.h.  */
6028
6029 int
6030 main ()
6031 {
6032
6033   ;
6034   return 0;
6035 }
6036 _ACEOF
6037 if ac_fn_cxx_try_compile "$LINENO"; then :
6038   ac_cv_prog_cxx_g=yes
6039 fi
6040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6041 fi
6042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6043 fi
6044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6045    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6046 fi
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6048 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6049 if test "$ac_test_CXXFLAGS" = set; then
6050   CXXFLAGS=$ac_save_CXXFLAGS
6051 elif test $ac_cv_prog_cxx_g = yes; then
6052   if test "$GXX" = yes; then
6053     CXXFLAGS="-g -O2"
6054   else
6055     CXXFLAGS="-g"
6056   fi
6057 else
6058   if test "$GXX" = yes; then
6059     CXXFLAGS="-O2"
6060   else
6061     CXXFLAGS=
6062   fi
6063 fi
6064 ac_ext=c
6065 ac_cpp='$CPP $CPPFLAGS'
6066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6069
6070 depcc="$CXX"  am_compiler_list=
6071
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6073 $as_echo_n "checking dependency style of $depcc... " >&6; }
6074 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6075   $as_echo_n "(cached) " >&6
6076 else
6077   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6078   # We make a subdir and do the tests there.  Otherwise we can end up
6079   # making bogus files that we don't know about and never remove.  For
6080   # instance it was reported that on HP-UX the gcc test will end up
6081   # making a dummy file named `D' -- because `-MD' means `put the output
6082   # in D'.
6083   mkdir conftest.dir
6084   # Copy depcomp to subdir because otherwise we won't find it if we're
6085   # using a relative directory.
6086   cp "$am_depcomp" conftest.dir
6087   cd conftest.dir
6088   # We will build objects and dependencies in a subdirectory because
6089   # it helps to detect inapplicable dependency modes.  For instance
6090   # both Tru64's cc and ICC support -MD to output dependencies as a
6091   # side effect of compilation, but ICC will put the dependencies in
6092   # the current directory while Tru64 will put them in the object
6093   # directory.
6094   mkdir sub
6095
6096   am_cv_CXX_dependencies_compiler_type=none
6097   if test "$am_compiler_list" = ""; then
6098      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6099   fi
6100   am__universal=false
6101   case " $depcc " in #(
6102      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6103      esac
6104
6105   for depmode in $am_compiler_list; do
6106     # Setup a source with many dependencies, because some compilers
6107     # like to wrap large dependency lists on column 80 (with \), and
6108     # we should not choose a depcomp mode which is confused by this.
6109     #
6110     # We need to recreate these files for each test, as the compiler may
6111     # overwrite some of them when testing with obscure command lines.
6112     # This happens at least with the AIX C compiler.
6113     : > sub/conftest.c
6114     for i in 1 2 3 4 5 6; do
6115       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6116       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6117       # Solaris 8's {/usr,}/bin/sh.
6118       touch sub/conftst$i.h
6119     done
6120     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6121
6122     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6123     # mode.  It turns out that the SunPro C++ compiler does not properly
6124     # handle `-M -o', and we need to detect this.  Also, some Intel
6125     # versions had trouble with output in subdirs
6126     am__obj=sub/conftest.${OBJEXT-o}
6127     am__minus_obj="-o $am__obj"
6128     case $depmode in
6129     gcc)
6130       # This depmode causes a compiler race in universal mode.
6131       test "$am__universal" = false || continue
6132       ;;
6133     nosideeffect)
6134       # after this tag, mechanisms are not by side-effect, so they'll
6135       # only be used when explicitly requested
6136       if test "x$enable_dependency_tracking" = xyes; then
6137         continue
6138       else
6139         break
6140       fi
6141       ;;
6142     msvisualcpp | msvcmsys)
6143       # This compiler won't grok `-c -o', but also, the minuso test has
6144       # not run yet.  These depmodes are late enough in the game, and
6145       # so weak that their functioning should not be impacted.
6146       am__obj=conftest.${OBJEXT-o}
6147       am__minus_obj=
6148       ;;
6149     none) break ;;
6150     esac
6151     if depmode=$depmode \
6152        source=sub/conftest.c object=$am__obj \
6153        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6154        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6155          >/dev/null 2>conftest.err &&
6156        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6157        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6158        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6159        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6160       # icc doesn't choke on unknown options, it will just issue warnings
6161       # or remarks (even with -Werror).  So we grep stderr for any message
6162       # that says an option was ignored or not supported.
6163       # When given -MP, icc 7.0 and 7.1 complain thusly:
6164       #   icc: Command line warning: ignoring option '-M'; no argument required
6165       # The diagnosis changed in icc 8.0:
6166       #   icc: Command line remark: option '-MP' not supported
6167       if (grep 'ignoring option' conftest.err ||
6168           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6169         am_cv_CXX_dependencies_compiler_type=$depmode
6170         break
6171       fi
6172     fi
6173   done
6174
6175   cd ..
6176   rm -rf conftest.dir
6177 else
6178   am_cv_CXX_dependencies_compiler_type=none
6179 fi
6180
6181 fi
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6183 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6184 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6185
6186  if
6187   test "x$enable_dependency_tracking" != xno \
6188   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6189   am__fastdepCXX_TRUE=
6190   am__fastdepCXX_FALSE='#'
6191 else
6192   am__fastdepCXX_TRUE='#'
6193   am__fastdepCXX_FALSE=
6194 fi
6195
6196
6197 ac_ext=cpp
6198 ac_cpp='$CXXCPP $CPPFLAGS'
6199 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6200 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6201 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6203 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6204 if test -z "$CXXCPP"; then
6205   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
6206   $as_echo_n "(cached) " >&6
6207 else
6208       # Double quotes because CXXCPP needs to be expanded
6209     for CXXCPP in "$CXX -E" "/lib/cpp"
6210     do
6211       ac_preproc_ok=false
6212 for ac_cxx_preproc_warn_flag in '' yes
6213 do
6214   # Use a header file that comes with gcc, so configuring glibc
6215   # with a fresh cross-compiler works.
6216   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6217   # <limits.h> exists even on freestanding compilers.
6218   # On the NeXT, cc -E runs the code through the compiler's parser,
6219   # not just through cpp. "Syntax error" is here to catch this case.
6220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221 /* end confdefs.h.  */
6222 #ifdef __STDC__
6223 # include <limits.h>
6224 #else
6225 # include <assert.h>
6226 #endif
6227                      Syntax error
6228 _ACEOF
6229 if ac_fn_cxx_try_cpp "$LINENO"; then :
6230
6231 else
6232   # Broken: fails on valid input.
6233 continue
6234 fi
6235 rm -f conftest.err conftest.i conftest.$ac_ext
6236
6237   # OK, works on sane cases.  Now check whether nonexistent headers
6238   # can be detected and how.
6239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6240 /* end confdefs.h.  */
6241 #include <ac_nonexistent.h>
6242 _ACEOF
6243 if ac_fn_cxx_try_cpp "$LINENO"; then :
6244   # Broken: success on invalid input.
6245 continue
6246 else
6247   # Passes both tests.
6248 ac_preproc_ok=:
6249 break
6250 fi
6251 rm -f conftest.err conftest.i conftest.$ac_ext
6252
6253 done
6254 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6255 rm -f conftest.i conftest.err conftest.$ac_ext
6256 if $ac_preproc_ok; then :
6257   break
6258 fi
6259
6260     done
6261     ac_cv_prog_CXXCPP=$CXXCPP
6262
6263 fi
6264   CXXCPP=$ac_cv_prog_CXXCPP
6265 else
6266   ac_cv_prog_CXXCPP=$CXXCPP
6267 fi
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6269 $as_echo "$CXXCPP" >&6; }
6270 ac_preproc_ok=false
6271 for ac_cxx_preproc_warn_flag in '' yes
6272 do
6273   # Use a header file that comes with gcc, so configuring glibc
6274   # with a fresh cross-compiler works.
6275   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6276   # <limits.h> exists even on freestanding compilers.
6277   # On the NeXT, cc -E runs the code through the compiler's parser,
6278   # not just through cpp. "Syntax error" is here to catch this case.
6279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280 /* end confdefs.h.  */
6281 #ifdef __STDC__
6282 # include <limits.h>
6283 #else
6284 # include <assert.h>
6285 #endif
6286                      Syntax error
6287 _ACEOF
6288 if ac_fn_cxx_try_cpp "$LINENO"; then :
6289
6290 else
6291   # Broken: fails on valid input.
6292 continue
6293 fi
6294 rm -f conftest.err conftest.i conftest.$ac_ext
6295
6296   # OK, works on sane cases.  Now check whether nonexistent headers
6297   # can be detected and how.
6298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6299 /* end confdefs.h.  */
6300 #include <ac_nonexistent.h>
6301 _ACEOF
6302 if ac_fn_cxx_try_cpp "$LINENO"; then :
6303   # Broken: success on invalid input.
6304 continue
6305 else
6306   # Passes both tests.
6307 ac_preproc_ok=:
6308 break
6309 fi
6310 rm -f conftest.err conftest.i conftest.$ac_ext
6311
6312 done
6313 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6314 rm -f conftest.i conftest.err conftest.$ac_ext
6315 if $ac_preproc_ok; then :
6316
6317 else
6318   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6320 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6321 See \`config.log' for more details" "$LINENO" 5 ; }
6322 fi
6323
6324 ac_ext=c
6325 ac_cpp='$CPP $CPPFLAGS'
6326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6329
6330
6331
6332
6333
6334
6335
6336   ac_ext=cpp
6337 ac_cpp='$CXXCPP $CPPFLAGS'
6338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6341
6342
6343
6344     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ has std::isnan" >&5
6345 $as_echo_n "checking whether C++ has std::isnan... " >&6; }
6346   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347 /* end confdefs.h.  */
6348 #include <cmath>
6349 int
6350 main ()
6351 {
6352
6353    std::isnan(0);
6354
6355   ;
6356   return 0;
6357 }
6358 _ACEOF
6359 if ac_fn_cxx_try_compile "$LINENO"; then :
6360    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6361 $as_echo "yes" >&6; }
6362
6363 $as_echo "#define CXX_HAS_STD_ISNAN /**/" >>confdefs.h
6364
6365 else
6366    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6367 $as_echo "no" >&6; }
6368 fi
6369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370
6371       ac_ext=c
6372 ac_cpp='$CPP $CPPFLAGS'
6373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6376
6377
6378
6379
6380
6381
6382
6383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking gr_libdir_suffix" >&5
6384 $as_echo_n "checking gr_libdir_suffix... " >&6; }
6385   gr_libdir_suffix=""
6386
6387
6388   case "$host_os" in
6389     linux*) is_linux=yes ;;
6390     *)      is_linux=no  ;;
6391   esac
6392
6393   if test "$is_linux" = no || test "$host_cpu" != "x86_64" && test "$host_cpu" != "powerpc64"; then
6394     gr_libdir_suffix=""
6395   elif test "$cross_compiling" = yes; then
6396
6397   if test "$ac_cv_cxx_compiler_gnu" = "yes";
6398   then
6399     gr_libdir_suffix=`$CXX -Wl,--verbose 2>/dev/null | sed -n -e '/SEARCH_DIR/{s/;.*$//; s,^.*/,,; s/".*$//; s/^lib//; p}'`
6400   fi
6401
6402   elif test "$host_cpu" = "x86_64"; then
6403     if test -d /lib64 && test ! -L /lib64; then
6404       gr_libdir_suffix=64
6405     fi
6406   else
6407
6408   if test "$ac_cv_cxx_compiler_gnu" = "yes";
6409   then
6410     gr_libdir_suffix=`$CXX -Wl,--verbose 2>/dev/null | sed -n -e '/SEARCH_DIR/{s/;.*$//; s,^.*/,,; s/".*$//; s/^lib//; p}'`
6411   fi
6412
6413   fi
6414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gr_libdir_suffix" >&5
6415 $as_echo "$gr_libdir_suffix" >&6; }
6416
6417
6418   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to append 64 to libdir" >&5
6419 $as_echo_n "checking whether to append 64 to libdir... " >&6; }
6420   t=${libdir##*/lib}
6421   if test "$t" != 64 && test "$gr_libdir_suffix" = "64"; then
6422     libdir=${libdir}64
6423     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes. Setting libdir to $libdir" >&5
6424 $as_echo "yes. Setting libdir to $libdir" >&6; }
6425   else
6426     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6427 $as_echo "no" >&6; }
6428   fi
6429
6430
6431 if test "$user_set_cflags" != yes; then
6432   autoconf_default_CFLAGS="$CFLAGS"
6433   CFLAGS=""
6434 fi
6435
6436
6437
6438 if test "$user_set_cxxflags" != yes; then
6439   autoconf_default_CXXFLAGS="$CXXFLAGS"
6440   CXXFLAGS=""
6441   if test "$GXX" = yes; then
6442     case "$host_cpu" in
6443         powerpc*)
6444                            swig_CXXFLAGS="-g1 -O2 -Wno-strict-aliasing -Wno-parentheses"
6445         ;;
6446         *)
6447         swig_CXXFLAGS="-g -O1 -Wno-strict-aliasing -Wno-parentheses"
6448         ;;
6449     esac
6450   fi
6451 fi
6452
6453
6454
6455 if test x${PKG_CONFIG_PATH} = x; then
6456     PKG_CONFIG_PATH=${prefix}/lib${gr_libdir_suffix}/pkgconfig
6457 else
6458     PKG_CONFIG_PATH=${prefix}/lib${gr_libdir_suffix}/pkgconfig:${PKG_CONFIG_PATH}
6459 fi
6460 export PKG_CONFIG_PATH
6461
6462
6463       cc_warning_flags="-Wall -Werror-implicit-function-declaration"
6464   cxx_warning_flags="-Wall -Woverloaded-virtual"
6465   if test -n "${CC}"
6466   then
6467
6468   echo 'void f(){}' > conftest.c
6469   for i in $cc_warning_flags
6470   do
6471     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $i" >&5
6472 $as_echo_n "checking whether $CC accepts $i... " >&6; }
6473     if test -z "`${CC} $i -c conftest.c 2>&1`"
6474     then
6475       lf_CFLAGS="${lf_CFLAGS} $i"
6476       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6477 $as_echo "yes" >&6; }
6478     else
6479       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6480 $as_echo "no" >&6; }
6481     fi
6482   done
6483   rm -f conftest.c conftest.o
6484
6485
6486   fi
6487   if test -n "${CXX}"
6488   then
6489
6490   echo 'void f(){}' > conftest.cc
6491   for i in $cxx_warning_flags
6492   do
6493     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts $i" >&5
6494 $as_echo_n "checking whether $CXX accepts $i... " >&6; }
6495     if test -z "`${CXX} $i -c conftest.cc 2>&1`"
6496     then
6497       lf_CXXFLAGS="${lf_CXXFLAGS} $i"
6498       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6499 $as_echo "yes" >&6; }
6500     else
6501       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6502 $as_echo "no" >&6; }
6503     fi
6504   done
6505   rm -f conftest.cc conftest.o
6506
6507
6508   fi
6509
6510
6511     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether user wants gprof" >&5
6512 $as_echo_n "checking whether user wants gprof... " >&6; }
6513
6514 # Check whether --with-gprof was given.
6515 if test "${with_gprof+set}" = set; then :
6516   withval=$with_gprof;
6517 else
6518    with_gprof=no
6519 fi
6520
6521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gprof" >&5
6522 $as_echo "$with_gprof" >&6; }
6523
6524     cc_profiling_flags="-pg"
6525   cxx_profiling_flags="-pg"
6526   ld_profiling_flags="-pg"
6527   if test $with_gprof = yes
6528   then
6529     if test -n "${CC}"
6530     then
6531
6532   echo 'void f(){}' > conftest.c
6533   for i in $cc_profiling_flags
6534   do
6535     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $i" >&5
6536 $as_echo_n "checking whether $CC accepts $i... " >&6; }
6537     if test -z "`${CC} $i -c conftest.c 2>&1`"
6538     then
6539       lf_CFLAGS="${lf_CFLAGS} $i"
6540       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6541 $as_echo "yes" >&6; }
6542     else
6543       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544 $as_echo "no" >&6; }
6545     fi
6546   done
6547   rm -f conftest.c conftest.o
6548
6549
6550     fi
6551     if test -n "${CXX}"
6552     then
6553
6554   echo 'void f(){}' > conftest.cc
6555   for i in $cxx_profiling_flags
6556   do
6557     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts $i" >&5
6558 $as_echo_n "checking whether $CXX accepts $i... " >&6; }
6559     if test -z "`${CXX} $i -c conftest.cc 2>&1`"
6560     then
6561       lf_CXXFLAGS="${lf_CXXFLAGS} $i"
6562       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6563 $as_echo "yes" >&6; }
6564     else
6565       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6566 $as_echo "no" >&6; }
6567     fi
6568   done
6569   rm -f conftest.cc conftest.o
6570
6571
6572     fi
6573   fi
6574
6575
6576     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether user wants prof" >&5
6577 $as_echo_n "checking whether user wants prof... " >&6; }
6578
6579 # Check whether --with-prof was given.
6580 if test "${with_prof+set}" = set; then :
6581   withval=$with_prof;
6582 else
6583    with_prof=no
6584 fi
6585
6586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_prof" >&5
6587 $as_echo "$with_prof" >&6; }
6588
6589     cc_profiling_flags="-p"
6590   cxx_profiling_flags="-p"
6591   ld_profiling_flags="-p"
6592   if test $with_prof = yes
6593   then
6594     if test -n "${CC}"
6595     then
6596
6597   echo 'void f(){}' > conftest.c
6598   for i in $cc_profiling_flags
6599   do
6600     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $i" >&5
6601 $as_echo_n "checking whether $CC accepts $i... " >&6; }
6602     if test -z "`${CC} $i -c conftest.c 2>&1`"
6603     then
6604       lf_CFLAGS="${lf_CFLAGS} $i"
6605       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6606 $as_echo "yes" >&6; }
6607     else
6608       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6609 $as_echo "no" >&6; }
6610     fi
6611   done
6612   rm -f conftest.c conftest.o
6613
6614
6615     fi
6616     if test -n "${CXX}"
6617     then
6618
6619   echo 'void f(){}' > conftest.cc
6620   for i in $cxx_profiling_flags
6621   do
6622     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts $i" >&5
6623 $as_echo_n "checking whether $CXX accepts $i... " >&6; }
6624     if test -z "`${CXX} $i -c conftest.cc 2>&1`"
6625     then
6626       lf_CXXFLAGS="${lf_CXXFLAGS} $i"
6627       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6628 $as_echo "yes" >&6; }
6629     else
6630       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6631 $as_echo "no" >&6; }
6632     fi
6633   done
6634   rm -f conftest.cc conftest.o
6635
6636
6637     fi
6638   fi
6639
6640 # By default we simply use the C compiler to build assembly code.
6641
6642 test "${CCAS+set}" = set || CCAS=$CC
6643 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6644
6645
6646
6647 depcc="$CCAS"   am_compiler_list=
6648
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6650 $as_echo_n "checking dependency style of $depcc... " >&6; }
6651 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
6652   $as_echo_n "(cached) " >&6
6653 else
6654   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6655   # We make a subdir and do the tests there.  Otherwise we can end up
6656   # making bogus files that we don't know about and never remove.  For
6657   # instance it was reported that on HP-UX the gcc test will end up
6658   # making a dummy file named `D' -- because `-MD' means `put the output
6659   # in D'.
6660   mkdir conftest.dir
6661   # Copy depcomp to subdir because otherwise we won't find it if we're
6662   # using a relative directory.
6663   cp "$am_depcomp" conftest.dir
6664   cd conftest.dir
6665   # We will build objects and dependencies in a subdirectory because
6666   # it helps to detect inapplicable dependency modes.  For instance
6667   # both Tru64's cc and ICC support -MD to output dependencies as a
6668   # side effect of compilation, but ICC will put the dependencies in
6669   # the current directory while Tru64 will put them in the object
6670   # directory.
6671   mkdir sub
6672
6673   am_cv_CCAS_dependencies_compiler_type=none
6674   if test "$am_compiler_list" = ""; then
6675      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6676   fi
6677   am__universal=false
6678
6679
6680   for depmode in $am_compiler_list; do
6681     # Setup a source with many dependencies, because some compilers
6682     # like to wrap large dependency lists on column 80 (with \), and
6683     # we should not choose a depcomp mode which is confused by this.
6684     #
6685     # We need to recreate these files for each test, as the compiler may
6686     # overwrite some of them when testing with obscure command lines.
6687     # This happens at least with the AIX C compiler.
6688     : > sub/conftest.c
6689     for i in 1 2 3 4 5 6; do
6690       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6691       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6692       # Solaris 8's {/usr,}/bin/sh.
6693       touch sub/conftst$i.h
6694     done
6695     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6696
6697     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6698     # mode.  It turns out that the SunPro C++ compiler does not properly
6699     # handle `-M -o', and we need to detect this.  Also, some Intel
6700     # versions had trouble with output in subdirs
6701     am__obj=sub/conftest.${OBJEXT-o}
6702     am__minus_obj="-o $am__obj"
6703     case $depmode in
6704     gcc)
6705       # This depmode causes a compiler race in universal mode.
6706       test "$am__universal" = false || continue
6707       ;;
6708     nosideeffect)
6709       # after this tag, mechanisms are not by side-effect, so they'll
6710       # only be used when explicitly requested
6711       if test "x$enable_dependency_tracking" = xyes; then
6712         continue
6713       else
6714         break
6715       fi
6716       ;;
6717     msvisualcpp | msvcmsys)
6718       # This compiler won't grok `-c -o', but also, the minuso test has
6719       # not run yet.  These depmodes are late enough in the game, and
6720       # so weak that their functioning should not be impacted.
6721       am__obj=conftest.${OBJEXT-o}
6722       am__minus_obj=
6723       ;;
6724     none) break ;;
6725     esac
6726     if depmode=$depmode \
6727        source=sub/conftest.c object=$am__obj \
6728        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6729        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6730          >/dev/null 2>conftest.err &&
6731        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6732        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6733        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6734        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6735       # icc doesn't choke on unknown options, it will just issue warnings
6736       # or remarks (even with -Werror).  So we grep stderr for any message
6737       # that says an option was ignored or not supported.
6738       # When given -MP, icc 7.0 and 7.1 complain thusly:
6739       #   icc: Command line warning: ignoring option '-M'; no argument required
6740       # The diagnosis changed in icc 8.0:
6741       #   icc: Command line remark: option '-MP' not supported
6742       if (grep 'ignoring option' conftest.err ||
6743           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6744         am_cv_CCAS_dependencies_compiler_type=$depmode
6745         break
6746       fi
6747     fi
6748   done
6749
6750   cd ..
6751   rm -rf conftest.dir
6752 else
6753   am_cv_CCAS_dependencies_compiler_type=none
6754 fi
6755
6756 fi
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
6758 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
6759 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
6760
6761  if
6762   test "x$enable_dependency_tracking" != xno \
6763   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
6764   am__fastdepCCAS_TRUE=
6765   am__fastdepCCAS_FALSE='#'
6766 else
6767   am__fastdepCCAS_TRUE='#'
6768   am__fastdepCCAS_FALSE=
6769 fi
6770
6771
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6773 $as_echo_n "checking whether ln -s works... " >&6; }
6774 LN_S=$as_ln_s
6775 if test "$LN_S" = "ln -s"; then
6776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6777 $as_echo "yes" >&6; }
6778 else
6779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6780 $as_echo "no, using $LN_S" >&6; }
6781 fi
6782
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6784 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6785 set x ${MAKE-make}
6786 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6787 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
6788   $as_echo_n "(cached) " >&6
6789 else
6790   cat >conftest.make <<\_ACEOF
6791 SHELL = /bin/sh
6792 all:
6793         @echo '@@@%%%=$(MAKE)=@@@%%%'
6794 _ACEOF
6795 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6796 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6797   *@@@%%%=?*=@@@%%%*)
6798     eval ac_cv_prog_make_${ac_make}_set=yes;;
6799   *)
6800     eval ac_cv_prog_make_${ac_make}_set=no;;
6801 esac
6802 rm -f conftest.make
6803 fi
6804 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6806 $as_echo "yes" >&6; }
6807   SET_MAKE=
6808 else
6809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810 $as_echo "no" >&6; }
6811   SET_MAKE="MAKE=${MAKE-make}"
6812 fi
6813
6814
6815
6816 # AC_PROG_MKDIR_P
6817 # is a backport of autoconf-2.60's AC_PROG_MKDIR_P.
6818 # Remove this macro when we can assume autoconf >= 2.60.
6819
6820
6821
6822 # Extract the first word of "rm", so it can be a program name with args.
6823 set dummy rm; ac_word=$2
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825 $as_echo_n "checking for $ac_word... " >&6; }
6826 if test "${ac_cv_path_RM_PROG+set}" = set; then :
6827   $as_echo_n "(cached) " >&6
6828 else
6829   case $RM_PROG in
6830   [\\/]* | ?:[\\/]*)
6831   ac_cv_path_RM_PROG="$RM_PROG" # Let the user override the test with a path.
6832   ;;
6833   *)
6834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 for as_dir in $PATH
6836 do
6837   IFS=$as_save_IFS
6838   test -z "$as_dir" && as_dir=.
6839     for ac_exec_ext in '' $ac_executable_extensions; do
6840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6841     ac_cv_path_RM_PROG="$as_dir/$ac_word$ac_exec_ext"
6842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6843     break 2
6844   fi
6845 done
6846   done
6847 IFS=$as_save_IFS
6848
6849   ;;
6850 esac
6851 fi
6852 RM_PROG=$ac_cv_path_RM_PROG
6853 if test -n "$RM_PROG"; then
6854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM_PROG" >&5
6855 $as_echo "$RM_PROG" >&6; }
6856 else
6857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6858 $as_echo "no" >&6; }
6859 fi
6860
6861
6862
6863 enable_win32_dll=yes
6864
6865 case $host in
6866 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
6867   if test -n "$ac_tool_prefix"; then
6868   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6869 set dummy ${ac_tool_prefix}as; ac_word=$2
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6871 $as_echo_n "checking for $ac_word... " >&6; }
6872 if test "${ac_cv_prog_AS+set}" = set; then :
6873   $as_echo_n "(cached) " >&6
6874 else
6875   if test -n "$AS"; then
6876   ac_cv_prog_AS="$AS" # Let the user override the test.
6877 else
6878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 for as_dir in $PATH
6880 do
6881   IFS=$as_save_IFS
6882   test -z "$as_dir" && as_dir=.
6883     for ac_exec_ext in '' $ac_executable_extensions; do
6884   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6885     ac_cv_prog_AS="${ac_tool_prefix}as"
6886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6887     break 2
6888   fi
6889 done
6890   done
6891 IFS=$as_save_IFS
6892
6893 fi
6894 fi
6895 AS=$ac_cv_prog_AS
6896 if test -n "$AS"; then
6897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6898 $as_echo "$AS" >&6; }
6899 else
6900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6901 $as_echo "no" >&6; }
6902 fi
6903
6904
6905 fi
6906 if test -z "$ac_cv_prog_AS"; then
6907   ac_ct_AS=$AS
6908   # Extract the first word of "as", so it can be a program name with args.
6909 set dummy as; ac_word=$2
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6911 $as_echo_n "checking for $ac_word... " >&6; }
6912 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
6913   $as_echo_n "(cached) " >&6
6914 else
6915   if test -n "$ac_ct_AS"; then
6916   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6917 else
6918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919 for as_dir in $PATH
6920 do
6921   IFS=$as_save_IFS
6922   test -z "$as_dir" && as_dir=.
6923     for ac_exec_ext in '' $ac_executable_extensions; do
6924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6925     ac_cv_prog_ac_ct_AS="as"
6926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6927     break 2
6928   fi
6929 done
6930   done
6931 IFS=$as_save_IFS
6932
6933 fi
6934 fi
6935 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6936 if test -n "$ac_ct_AS"; then
6937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6938 $as_echo "$ac_ct_AS" >&6; }
6939 else
6940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6941 $as_echo "no" >&6; }
6942 fi
6943
6944   if test "x$ac_ct_AS" = x; then
6945     AS="false"
6946   else
6947     case $cross_compiling:$ac_tool_warned in
6948 yes:)
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6951 ac_tool_warned=yes ;;
6952 esac
6953     AS=$ac_ct_AS
6954   fi
6955 else
6956   AS="$ac_cv_prog_AS"
6957 fi
6958
6959   if test -n "$ac_tool_prefix"; then
6960   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6961 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6963 $as_echo_n "checking for $ac_word... " >&6; }
6964 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6965   $as_echo_n "(cached) " >&6
6966 else
6967   if test -n "$DLLTOOL"; then
6968   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6969 else
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 for as_dir in $PATH
6972 do
6973   IFS=$as_save_IFS
6974   test -z "$as_dir" && as_dir=.
6975     for ac_exec_ext in '' $ac_executable_extensions; do
6976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6977     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6979     break 2
6980   fi
6981 done
6982   done
6983 IFS=$as_save_IFS
6984
6985 fi
6986 fi
6987 DLLTOOL=$ac_cv_prog_DLLTOOL
6988 if test -n "$DLLTOOL"; then
6989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6990 $as_echo "$DLLTOOL" >&6; }
6991 else
6992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6993 $as_echo "no" >&6; }
6994 fi
6995
6996
6997 fi
6998 if test -z "$ac_cv_prog_DLLTOOL"; then
6999   ac_ct_DLLTOOL=$DLLTOOL
7000   # Extract the first word of "dlltool", so it can be a program name with args.
7001 set dummy dlltool; ac_word=$2
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7003 $as_echo_n "checking for $ac_word... " >&6; }
7004 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7005   $as_echo_n "(cached) " >&6
7006 else
7007   if test -n "$ac_ct_DLLTOOL"; then
7008   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7009 else
7010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011 for as_dir in $PATH
7012 do
7013   IFS=$as_save_IFS
7014   test -z "$as_dir" && as_dir=.
7015     for ac_exec_ext in '' $ac_executable_extensions; do
7016   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7017     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7019     break 2
7020   fi
7021 done
7022   done
7023 IFS=$as_save_IFS
7024
7025 fi
7026 fi
7027 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7028 if test -n "$ac_ct_DLLTOOL"; then
7029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7030 $as_echo "$ac_ct_DLLTOOL" >&6; }
7031 else
7032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7033 $as_echo "no" >&6; }
7034 fi
7035
7036   if test "x$ac_ct_DLLTOOL" = x; then
7037     DLLTOOL="false"
7038   else
7039     case $cross_compiling:$ac_tool_warned in
7040 yes:)
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7043 ac_tool_warned=yes ;;
7044 esac
7045     DLLTOOL=$ac_ct_DLLTOOL
7046   fi
7047 else
7048   DLLTOOL="$ac_cv_prog_DLLTOOL"
7049 fi
7050
7051   if test -n "$ac_tool_prefix"; then
7052   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7053 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7055 $as_echo_n "checking for $ac_word... " >&6; }
7056 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7057   $as_echo_n "(cached) " >&6
7058 else
7059   if test -n "$OBJDUMP"; then
7060   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7061 else
7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063 for as_dir in $PATH
7064 do
7065   IFS=$as_save_IFS
7066   test -z "$as_dir" && as_dir=.
7067     for ac_exec_ext in '' $ac_executable_extensions; do
7068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7069     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7070     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7071     break 2
7072   fi
7073 done
7074   done
7075 IFS=$as_save_IFS
7076
7077 fi
7078 fi
7079 OBJDUMP=$ac_cv_prog_OBJDUMP
7080 if test -n "$OBJDUMP"; then
7081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7082 $as_echo "$OBJDUMP" >&6; }
7083 else
7084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7085 $as_echo "no" >&6; }
7086 fi
7087
7088
7089 fi
7090 if test -z "$ac_cv_prog_OBJDUMP"; then
7091   ac_ct_OBJDUMP=$OBJDUMP
7092   # Extract the first word of "objdump", so it can be a program name with args.
7093 set dummy objdump; ac_word=$2
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7095 $as_echo_n "checking for $ac_word... " >&6; }
7096 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7097   $as_echo_n "(cached) " >&6
7098 else
7099   if test -n "$ac_ct_OBJDUMP"; then
7100   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7101 else
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103 for as_dir in $PATH
7104 do
7105   IFS=$as_save_IFS
7106   test -z "$as_dir" && as_dir=.
7107     for ac_exec_ext in '' $ac_executable_extensions; do
7108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7109     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7110     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7111     break 2
7112   fi
7113 done
7114   done
7115 IFS=$as_save_IFS
7116
7117 fi
7118 fi
7119 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7120 if test -n "$ac_ct_OBJDUMP"; then
7121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7122 $as_echo "$ac_ct_OBJDUMP" >&6; }
7123 else
7124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125 $as_echo "no" >&6; }
7126 fi
7127
7128   if test "x$ac_ct_OBJDUMP" = x; then
7129     OBJDUMP="false"
7130   else
7131     case $cross_compiling:$ac_tool_warned in
7132 yes:)
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7135 ac_tool_warned=yes ;;
7136 esac
7137     OBJDUMP=$ac_ct_OBJDUMP
7138   fi
7139 else
7140   OBJDUMP="$ac_cv_prog_OBJDUMP"
7141 fi
7142
7143   ;;
7144 esac
7145
7146 test -z "$AS" && AS=as
7147
7148
7149
7150
7151
7152 test -z "$DLLTOOL" && DLLTOOL=dlltool
7153
7154
7155
7156
7157
7158 test -z "$OBJDUMP" && OBJDUMP=objdump
7159
7160
7161
7162
7163
7164
7165
7166 # Check whether --enable-shared was given.
7167 if test "${enable_shared+set}" = set; then :
7168   enableval=$enable_shared; p=${PACKAGE-default}
7169     case $enableval in
7170     yes) enable_shared=yes ;;
7171     no) enable_shared=no ;;
7172     *)
7173       enable_shared=no
7174       # Look at the argument we got.  We use all the common list separators.
7175       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7176       for pkg in $enableval; do
7177         IFS="$lt_save_ifs"
7178         if test "X$pkg" = "X$p"; then
7179           enable_shared=yes
7180         fi
7181       done
7182       IFS="$lt_save_ifs"
7183       ;;
7184     esac
7185 else
7186   enable_shared=yes
7187 fi
7188
7189
7190
7191
7192
7193
7194
7195
7196         # Check whether --enable-static was given.
7197 if test "${enable_static+set}" = set; then :
7198   enableval=$enable_static; p=${PACKAGE-default}
7199     case $enableval in
7200     yes) enable_static=yes ;;
7201     no) enable_static=no ;;
7202     *)
7203      enable_static=no
7204       # Look at the argument we got.  We use all the common list separators.
7205       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7206       for pkg in $enableval; do
7207         IFS="$lt_save_ifs"
7208         if test "X$pkg" = "X$p"; then
7209           enable_static=yes
7210         fi
7211       done
7212       IFS="$lt_save_ifs"
7213       ;;
7214     esac
7215 else
7216   enable_static=no
7217 fi
7218
7219
7220
7221
7222
7223
7224
7225
7226         case `pwd` in
7227   *\ * | *\     *)
7228     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7229 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7230 esac
7231
7232
7233
7234 macro_version='2.2.6b'
7235 macro_revision='1.3017'
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249 ltmain="$ac_aux_dir/ltmain.sh"
7250
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7252 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7253 if test "${ac_cv_path_SED+set}" = set; then :
7254   $as_echo_n "(cached) " >&6
7255 else
7256             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7257      for ac_i in 1 2 3 4 5 6 7; do
7258        ac_script="$ac_script$as_nl$ac_script"
7259      done
7260      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7261      { ac_script=; unset ac_script;}
7262      if test -z "$SED"; then
7263   ac_path_SED_found=false
7264   # Loop through the user's path and test for each of PROGNAME-LIST
7265   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266 for as_dir in $PATH
7267 do
7268   IFS=$as_save_IFS
7269   test -z "$as_dir" && as_dir=.
7270     for ac_prog in sed gsed; do
7271     for ac_exec_ext in '' $ac_executable_extensions; do
7272       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7273       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7274 # Check for GNU ac_path_SED and select it if it is found.
7275   # Check for GNU $ac_path_SED
7276 case `"$ac_path_SED" --version 2>&1` in
7277 *GNU*)
7278   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7279 *)
7280   ac_count=0
7281   $as_echo_n 0123456789 >"conftest.in"
7282   while :
7283   do
7284     cat "conftest.in" "conftest.in" >"conftest.tmp"
7285     mv "conftest.tmp" "conftest.in"
7286     cp "conftest.in" "conftest.nl"
7287     $as_echo '' >> "conftest.nl"
7288     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7289     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7290     as_fn_arith $ac_count + 1 && ac_count=$as_val
7291     if test $ac_count -gt ${ac_path_SED_max-0}; then
7292       # Best one so far, save it but keep looking for a better one
7293       ac_cv_path_SED="$ac_path_SED"
7294       ac_path_SED_max=$ac_count
7295     fi
7296     # 10*(2^10) chars as input seems more than enough
7297     test $ac_count -gt 10 && break
7298   done
7299   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7300 esac
7301
7302       $ac_path_SED_found && break 3
7303     done
7304   done
7305   done
7306 IFS=$as_save_IFS
7307   if test -z "$ac_cv_path_SED"; then
7308     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7309   fi
7310 else
7311   ac_cv_path_SED=$SED
7312 fi
7313
7314 fi
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7316 $as_echo "$ac_cv_path_SED" >&6; }
7317  SED="$ac_cv_path_SED"
7318   rm -f conftest.sed
7319
7320 test -z "$SED" && SED=sed
7321 Xsed="$SED -e 1s/^X//"
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7334 $as_echo_n "checking for fgrep... " >&6; }
7335 if test "${ac_cv_path_FGREP+set}" = set; then :
7336   $as_echo_n "(cached) " >&6
7337 else
7338   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7339    then ac_cv_path_FGREP="$GREP -F"
7340    else
7341      if test -z "$FGREP"; then
7342   ac_path_FGREP_found=false
7343   # Loop through the user's path and test for each of PROGNAME-LIST
7344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7346 do
7347   IFS=$as_save_IFS
7348   test -z "$as_dir" && as_dir=.
7349     for ac_prog in fgrep; do
7350     for ac_exec_ext in '' $ac_executable_extensions; do
7351       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7352       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7353 # Check for GNU ac_path_FGREP and select it if it is found.
7354   # Check for GNU $ac_path_FGREP
7355 case `"$ac_path_FGREP" --version 2>&1` in
7356 *GNU*)
7357   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7358 *)
7359   ac_count=0
7360   $as_echo_n 0123456789 >"conftest.in"
7361   while :
7362   do
7363     cat "conftest.in" "conftest.in" >"conftest.tmp"
7364     mv "conftest.tmp" "conftest.in"
7365     cp "conftest.in" "conftest.nl"
7366     $as_echo 'FGREP' >> "conftest.nl"
7367     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7368     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7369     as_fn_arith $ac_count + 1 && ac_count=$as_val
7370     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7371       # Best one so far, save it but keep looking for a better one
7372       ac_cv_path_FGREP="$ac_path_FGREP"
7373       ac_path_FGREP_max=$ac_count
7374     fi
7375     # 10*(2^10) chars as input seems more than enough
7376     test $ac_count -gt 10 && break
7377   done
7378   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7379 esac
7380
7381       $ac_path_FGREP_found && break 3
7382     done
7383   done
7384   done
7385 IFS=$as_save_IFS
7386   if test -z "$ac_cv_path_FGREP"; then
7387     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7388   fi
7389 else
7390   ac_cv_path_FGREP=$FGREP
7391 fi
7392
7393    fi
7394 fi
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7396 $as_echo "$ac_cv_path_FGREP" >&6; }
7397  FGREP="$ac_cv_path_FGREP"
7398
7399
7400 test -z "$GREP" && GREP=grep
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420 # Check whether --with-gnu-ld was given.
7421 if test "${with_gnu_ld+set}" = set; then :
7422   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7423 else
7424   with_gnu_ld=no
7425 fi
7426
7427 ac_prog=ld
7428 if test "$GCC" = yes; then
7429   # Check if gcc -print-prog-name=ld gives a path.
7430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7431 $as_echo_n "checking for ld used by $CC... " >&6; }
7432   case $host in
7433   *-*-mingw*)
7434     # gcc leaves a trailing carriage return which upsets mingw
7435     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7436   *)
7437     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7438   esac
7439   case $ac_prog in
7440     # Accept absolute paths.
7441     [\\/]* | ?:[\\/]*)
7442       re_direlt='/[^/][^/]*/\.\./'
7443       # Canonicalize the pathname of ld
7444       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7445       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7446         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7447       done
7448       test -z "$LD" && LD="$ac_prog"
7449       ;;
7450   "")
7451     # If it fails, then pretend we aren't using GCC.
7452     ac_prog=ld
7453     ;;
7454   *)
7455     # If it is relative, then search for the first ld in PATH.
7456     with_gnu_ld=unknown
7457     ;;
7458   esac
7459 elif test "$with_gnu_ld" = yes; then
7460   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7461 $as_echo_n "checking for GNU ld... " >&6; }
7462 else
7463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7464 $as_echo_n "checking for non-GNU ld... " >&6; }
7465 fi
7466 if test "${lt_cv_path_LD+set}" = set; then :
7467   $as_echo_n "(cached) " >&6
7468 else
7469   if test -z "$LD"; then
7470   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7471   for ac_dir in $PATH; do
7472     IFS="$lt_save_ifs"
7473     test -z "$ac_dir" && ac_dir=.
7474     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7475       lt_cv_path_LD="$ac_dir/$ac_prog"
7476       # Check to see if the program is GNU ld.  I'd rather use --version,
7477       # but apparently some variants of GNU ld only accept -v.
7478       # Break only if it was the GNU/non-GNU ld that we prefer.
7479       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7480       *GNU* | *'with BFD'*)
7481         test "$with_gnu_ld" != no && break
7482         ;;
7483       *)
7484         test "$with_gnu_ld" != yes && break
7485         ;;
7486       esac
7487     fi
7488   done
7489   IFS="$lt_save_ifs"
7490 else
7491   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7492 fi
7493 fi
7494
7495 LD="$lt_cv_path_LD"
7496 if test -n "$LD"; then
7497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7498 $as_echo "$LD" >&6; }
7499 else
7500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7501 $as_echo "no" >&6; }
7502 fi
7503 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7505 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7506 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7507   $as_echo_n "(cached) " >&6
7508 else
7509   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7510 case `$LD -v 2>&1 </dev/null` in
7511 *GNU* | *'with BFD'*)
7512   lt_cv_prog_gnu_ld=yes
7513   ;;
7514 *)
7515   lt_cv_prog_gnu_ld=no
7516   ;;
7517 esac
7518 fi
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7520 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7521 with_gnu_ld=$lt_cv_prog_gnu_ld
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7532 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7533 if test "${lt_cv_path_NM+set}" = set; then :
7534   $as_echo_n "(cached) " >&6
7535 else
7536   if test -n "$NM"; then
7537   # Let the user override the test.
7538   lt_cv_path_NM="$NM"
7539 else
7540   lt_nm_to_check="${ac_tool_prefix}nm"
7541   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7542     lt_nm_to_check="$lt_nm_to_check nm"
7543   fi
7544   for lt_tmp_nm in $lt_nm_to_check; do
7545     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7546     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7547       IFS="$lt_save_ifs"
7548       test -z "$ac_dir" && ac_dir=.
7549       tmp_nm="$ac_dir/$lt_tmp_nm"
7550       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7551         # Check to see if the nm accepts a BSD-compat flag.
7552         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7553         #   nm: unknown option "B" ignored
7554         # Tru64's nm complains that /dev/null is an invalid object file
7555         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7556         */dev/null* | *'Invalid file or object type'*)
7557           lt_cv_path_NM="$tmp_nm -B"
7558           break
7559           ;;
7560         *)
7561           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7562           */dev/null*)
7563             lt_cv_path_NM="$tmp_nm -p"
7564             break
7565             ;;
7566           *)
7567             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7568             continue # so that we can try to find one that supports BSD flags
7569             ;;
7570           esac
7571           ;;
7572         esac
7573       fi
7574     done
7575     IFS="$lt_save_ifs"
7576   done
7577   : ${lt_cv_path_NM=no}
7578 fi
7579 fi
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7581 $as_echo "$lt_cv_path_NM" >&6; }
7582 if test "$lt_cv_path_NM" != "no"; then
7583   NM="$lt_cv_path_NM"
7584 else
7585   # Didn't find any BSD compatible name lister, look for dumpbin.
7586   if test -n "$ac_tool_prefix"; then
7587   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7588   do
7589     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7592 $as_echo_n "checking for $ac_word... " >&6; }
7593 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7594   $as_echo_n "(cached) " >&6
7595 else
7596   if test -n "$DUMPBIN"; then
7597   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7598 else
7599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600 for as_dir in $PATH
7601 do
7602   IFS=$as_save_IFS
7603   test -z "$as_dir" && as_dir=.
7604     for ac_exec_ext in '' $ac_executable_extensions; do
7605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7606     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7608     break 2
7609   fi
7610 done
7611   done
7612 IFS=$as_save_IFS
7613
7614 fi
7615 fi
7616 DUMPBIN=$ac_cv_prog_DUMPBIN
7617 if test -n "$DUMPBIN"; then
7618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7619 $as_echo "$DUMPBIN" >&6; }
7620 else
7621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7622 $as_echo "no" >&6; }
7623 fi
7624
7625
7626     test -n "$DUMPBIN" && break
7627   done
7628 fi
7629 if test -z "$DUMPBIN"; then
7630   ac_ct_DUMPBIN=$DUMPBIN
7631   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7632 do
7633   # Extract the first word of "$ac_prog", so it can be a program name with args.
7634 set dummy $ac_prog; ac_word=$2
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7636 $as_echo_n "checking for $ac_word... " >&6; }
7637 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7638   $as_echo_n "(cached) " >&6
7639 else
7640   if test -n "$ac_ct_DUMPBIN"; then
7641   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7642 else
7643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644 for as_dir in $PATH
7645 do
7646   IFS=$as_save_IFS
7647   test -z "$as_dir" && as_dir=.
7648     for ac_exec_ext in '' $ac_executable_extensions; do
7649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7650     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7652     break 2
7653   fi
7654 done
7655   done
7656 IFS=$as_save_IFS
7657
7658 fi
7659 fi
7660 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7661 if test -n "$ac_ct_DUMPBIN"; then
7662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7663 $as_echo "$ac_ct_DUMPBIN" >&6; }
7664 else
7665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7666 $as_echo "no" >&6; }
7667 fi
7668
7669
7670   test -n "$ac_ct_DUMPBIN" && break
7671 done
7672
7673   if test "x$ac_ct_DUMPBIN" = x; then
7674     DUMPBIN=":"
7675   else
7676     case $cross_compiling:$ac_tool_warned in
7677 yes:)
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7680 ac_tool_warned=yes ;;
7681 esac
7682     DUMPBIN=$ac_ct_DUMPBIN
7683   fi
7684 fi
7685
7686
7687   if test "$DUMPBIN" != ":"; then
7688     NM="$DUMPBIN"
7689   fi
7690 fi
7691 test -z "$NM" && NM=nm
7692
7693
7694
7695
7696
7697
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7699 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7700 if test "${lt_cv_nm_interface+set}" = set; then :
7701   $as_echo_n "(cached) " >&6
7702 else
7703   lt_cv_nm_interface="BSD nm"
7704   echo "int some_variable = 0;" > conftest.$ac_ext
7705   (eval echo "\"\$as_me:7705: $ac_compile\"" >&5)
7706   (eval "$ac_compile" 2>conftest.err)
7707   cat conftest.err >&5
7708   (eval echo "\"\$as_me:7708: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7709   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7710   cat conftest.err >&5
7711   (eval echo "\"\$as_me:7711: output\"" >&5)
7712   cat conftest.out >&5
7713   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7714     lt_cv_nm_interface="MS dumpbin"
7715   fi
7716   rm -f conftest*
7717 fi
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7719 $as_echo "$lt_cv_nm_interface" >&6; }
7720
7721 # find the maximum length of command line arguments
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7723 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7724 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7725   $as_echo_n "(cached) " >&6
7726 else
7727     i=0
7728   teststring="ABCD"
7729
7730   case $build_os in
7731   msdosdjgpp*)
7732     # On DJGPP, this test can blow up pretty badly due to problems in libc
7733     # (any single argument exceeding 2000 bytes causes a buffer overrun
7734     # during glob expansion).  Even if it were fixed, the result of this
7735     # check would be larger than it should be.
7736     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7737     ;;
7738
7739   gnu*)
7740     # Under GNU Hurd, this test is not required because there is
7741     # no limit to the length of command line arguments.
7742     # Libtool will interpret -1 as no limit whatsoever
7743     lt_cv_sys_max_cmd_len=-1;
7744     ;;
7745
7746   cygwin* | mingw* | cegcc*)
7747     # On Win9x/ME, this test blows up -- it succeeds, but takes
7748     # about 5 minutes as the teststring grows exponentially.
7749     # Worse, since 9x/ME are not pre-emptively multitasking,
7750     # you end up with a "frozen" computer, even though with patience
7751     # the test eventually succeeds (with a max line length of 256k).
7752     # Instead, let's just punt: use the minimum linelength reported by
7753     # all of the supported platforms: 8192 (on NT/2K/XP).
7754     lt_cv_sys_max_cmd_len=8192;
7755     ;;
7756
7757   amigaos*)
7758     # On AmigaOS with pdksh, this test takes hours, literally.
7759     # So we just punt and use a minimum line length of 8192.
7760     lt_cv_sys_max_cmd_len=8192;
7761     ;;
7762
7763   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7764     # This has been around since 386BSD, at least.  Likely further.
7765     if test -x /sbin/sysctl; then
7766       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7767     elif test -x /usr/sbin/sysctl; then
7768       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7769     else
7770       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7771     fi
7772     # And add a safety zone
7773     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7774     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7775     ;;
7776
7777   interix*)
7778     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7779     lt_cv_sys_max_cmd_len=196608
7780     ;;
7781
7782   osf*)
7783     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7784     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7785     # nice to cause kernel panics so lets avoid the loop below.
7786     # First set a reasonable default.
7787     lt_cv_sys_max_cmd_len=16384
7788     #
7789     if test -x /sbin/sysconfig; then
7790       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7791         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7792       esac
7793     fi
7794     ;;
7795   sco3.2v5*)
7796     lt_cv_sys_max_cmd_len=102400
7797     ;;
7798   sysv5* | sco5v6* | sysv4.2uw2*)
7799     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7800     if test -n "$kargmax"; then
7801       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7802     else
7803       lt_cv_sys_max_cmd_len=32768
7804     fi
7805     ;;
7806   *)
7807     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7808     if test -n "$lt_cv_sys_max_cmd_len"; then
7809       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7810       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7811     else
7812       # Make teststring a little bigger before we do anything with it.
7813       # a 1K string should be a reasonable start.
7814       for i in 1 2 3 4 5 6 7 8 ; do
7815         teststring=$teststring$teststring
7816       done
7817       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7818       # If test is not a shell built-in, we'll probably end up computing a
7819       # maximum length that is only half of the actual maximum length, but
7820       # we can't tell.
7821       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
7822                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
7823               test $i != 17 # 1/2 MB should be enough
7824       do
7825         i=`expr $i + 1`
7826         teststring=$teststring$teststring
7827       done
7828       # Only check the string length outside the loop.
7829       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7830       teststring=
7831       # Add a significant safety factor because C++ compilers can tack on
7832       # massive amounts of additional arguments before passing them to the
7833       # linker.  It appears as though 1/2 is a usable value.
7834       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7835     fi
7836     ;;
7837   esac
7838
7839 fi
7840
7841 if test -n $lt_cv_sys_max_cmd_len ; then
7842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7843 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7844 else
7845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7846 $as_echo "none" >&6; }
7847 fi
7848 max_cmd_len=$lt_cv_sys_max_cmd_len
7849
7850
7851
7852
7853
7854
7855 : ${CP="cp -f"}
7856 : ${MV="mv -f"}
7857 : ${RM="rm -f"}
7858
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7860 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7861 # Try some XSI features
7862 xsi_shell=no
7863 ( _lt_dummy="a/b/c"
7864   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7865       = c,a/b,, \
7866     && eval 'test $(( 1 + 1 )) -eq 2 \
7867     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7868   && xsi_shell=yes
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7870 $as_echo "$xsi_shell" >&6; }
7871
7872
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7874 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7875 lt_shell_append=no
7876 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7877     >/dev/null 2>&1 \
7878   && lt_shell_append=yes
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7880 $as_echo "$lt_shell_append" >&6; }
7881
7882
7883 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7884   lt_unset=unset
7885 else
7886   lt_unset=false
7887 fi
7888
7889
7890
7891
7892
7893 # test EBCDIC or ASCII
7894 case `echo X|tr X '\101'` in
7895  A) # ASCII based system
7896     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7897   lt_SP2NL='tr \040 \012'
7898   lt_NL2SP='tr \015\012 \040\040'
7899   ;;
7900  *) # EBCDIC based system
7901   lt_SP2NL='tr \100 \n'
7902   lt_NL2SP='tr \r\n \100\100'
7903   ;;
7904 esac
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7915 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7916 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7917   $as_echo_n "(cached) " >&6
7918 else
7919   lt_cv_ld_reload_flag='-r'
7920 fi
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7922 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7923 reload_flag=$lt_cv_ld_reload_flag
7924 case $reload_flag in
7925 "" | " "*) ;;
7926 *) reload_flag=" $reload_flag" ;;
7927 esac
7928 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7929 case $host_os in
7930   darwin*)
7931     if test "$GCC" = yes; then
7932       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7933     else
7934       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7935     fi
7936     ;;
7937 esac
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947 if test -n "$ac_tool_prefix"; then
7948   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7949 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7951 $as_echo_n "checking for $ac_word... " >&6; }
7952 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7953   $as_echo_n "(cached) " >&6
7954 else
7955   if test -n "$OBJDUMP"; then
7956   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7957 else
7958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959 for as_dir in $PATH
7960 do
7961   IFS=$as_save_IFS
7962   test -z "$as_dir" && as_dir=.
7963     for ac_exec_ext in '' $ac_executable_extensions; do
7964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7965     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7967     break 2
7968   fi
7969 done
7970   done
7971 IFS=$as_save_IFS
7972
7973 fi
7974 fi
7975 OBJDUMP=$ac_cv_prog_OBJDUMP
7976 if test -n "$OBJDUMP"; then
7977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7978 $as_echo "$OBJDUMP" >&6; }
7979 else
7980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981 $as_echo "no" >&6; }
7982 fi
7983
7984
7985 fi
7986 if test -z "$ac_cv_prog_OBJDUMP"; then
7987   ac_ct_OBJDUMP=$OBJDUMP
7988   # Extract the first word of "objdump", so it can be a program name with args.
7989 set dummy objdump; ac_word=$2
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7991 $as_echo_n "checking for $ac_word... " >&6; }
7992 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7993   $as_echo_n "(cached) " >&6
7994 else
7995   if test -n "$ac_ct_OBJDUMP"; then
7996   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7997 else
7998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999 for as_dir in $PATH
8000 do
8001   IFS=$as_save_IFS
8002   test -z "$as_dir" && as_dir=.
8003     for ac_exec_ext in '' $ac_executable_extensions; do
8004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8005     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8007     break 2
8008   fi
8009 done
8010   done
8011 IFS=$as_save_IFS
8012
8013 fi
8014 fi
8015 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8016 if test -n "$ac_ct_OBJDUMP"; then
8017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8018 $as_echo "$ac_ct_OBJDUMP" >&6; }
8019 else
8020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021 $as_echo "no" >&6; }
8022 fi
8023
8024   if test "x$ac_ct_OBJDUMP" = x; then
8025     OBJDUMP="false"
8026   else
8027     case $cross_compiling:$ac_tool_warned in
8028 yes:)
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8031 ac_tool_warned=yes ;;
8032 esac
8033     OBJDUMP=$ac_ct_OBJDUMP
8034   fi
8035 else
8036   OBJDUMP="$ac_cv_prog_OBJDUMP"
8037 fi
8038
8039 test -z "$OBJDUMP" && OBJDUMP=objdump
8040
8041
8042
8043
8044
8045
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8047 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8048 if test "${lt_cv_deplibs_check_method+set}" = set; then :
8049   $as_echo_n "(cached) " >&6
8050 else
8051   lt_cv_file_magic_cmd='$MAGIC_CMD'
8052 lt_cv_file_magic_test_file=
8053 lt_cv_deplibs_check_method='unknown'
8054 # Need to set the preceding variable on all platforms that support
8055 # interlibrary dependencies.
8056 # 'none' -- dependencies not supported.
8057 # `unknown' -- same as none, but documents that we really don't know.
8058 # 'pass_all' -- all dependencies passed with no checks.
8059 # 'test_compile' -- check by making test program.
8060 # 'file_magic [[regex]]' -- check by looking for files in library path
8061 # which responds to the $file_magic_cmd with a given extended regex.
8062 # If you have `file' or equivalent on your system and you're not sure
8063 # whether `pass_all' will *always* work, you probably want this one.
8064
8065 case $host_os in
8066 aix[4-9]*)
8067   lt_cv_deplibs_check_method=pass_all
8068   ;;
8069
8070 beos*)
8071   lt_cv_deplibs_check_method=pass_all
8072   ;;
8073
8074 bsdi[45]*)
8075   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8076   lt_cv_file_magic_cmd='/usr/bin/file -L'
8077   lt_cv_file_magic_test_file=/shlib/libc.so
8078   ;;
8079
8080 cygwin*)
8081   # func_win32_libid is a shell function defined in ltmain.sh
8082   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8083   lt_cv_file_magic_cmd='func_win32_libid'
8084   ;;
8085
8086 mingw* | pw32*)
8087   # Base MSYS/MinGW do not provide the 'file' command needed by
8088   # func_win32_libid shell function, so use a weaker test based on 'objdump',
8089   # unless we find 'file', for example because we are cross-compiling.
8090   if ( file / ) >/dev/null 2>&1; then
8091     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8092     lt_cv_file_magic_cmd='func_win32_libid'
8093   else
8094     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8095     lt_cv_file_magic_cmd='$OBJDUMP -f'
8096   fi
8097   ;;
8098
8099 cegcc)
8100   # use the weaker test based on 'objdump'. See mingw*.
8101   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8102   lt_cv_file_magic_cmd='$OBJDUMP -f'
8103   ;;
8104
8105 darwin* | rhapsody*)
8106   lt_cv_deplibs_check_method=pass_all
8107   ;;
8108
8109 freebsd* | dragonfly*)
8110   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8111     case $host_cpu in
8112     i*86 )
8113       # Not sure whether the presence of OpenBSD here was a mistake.
8114       # Let's accept both of them until this is cleared up.
8115       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8116       lt_cv_file_magic_cmd=/usr/bin/file
8117       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8118       ;;
8119     esac
8120   else
8121     lt_cv_deplibs_check_method=pass_all
8122   fi
8123   ;;
8124
8125 gnu*)
8126   lt_cv_deplibs_check_method=pass_all
8127   ;;
8128
8129 hpux10.20* | hpux11*)
8130   lt_cv_file_magic_cmd=/usr/bin/file
8131   case $host_cpu in
8132   ia64*)
8133     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8134     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8135     ;;
8136   hppa*64*)
8137     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
8138     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8139     ;;
8140   *)
8141     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8142     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8143     ;;
8144   esac
8145   ;;
8146
8147 interix[3-9]*)
8148   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8149   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8150   ;;
8151
8152 irix5* | irix6* | nonstopux*)
8153   case $LD in
8154   *-32|*"-32 ") libmagic=32-bit;;
8155   *-n32|*"-n32 ") libmagic=N32;;
8156   *-64|*"-64 ") libmagic=64-bit;;
8157   *) libmagic=never-match;;
8158   esac
8159   lt_cv_deplibs_check_method=pass_all
8160   ;;
8161
8162 # This must be Linux ELF.
8163 linux* | k*bsd*-gnu)
8164   lt_cv_deplibs_check_method=pass_all
8165   ;;
8166
8167 netbsd* | netbsdelf*-gnu)
8168   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8169     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8170   else
8171     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8172   fi
8173   ;;
8174
8175 newos6*)
8176   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8177   lt_cv_file_magic_cmd=/usr/bin/file
8178   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8179   ;;
8180
8181 *nto* | *qnx*)
8182   lt_cv_deplibs_check_method=pass_all
8183   ;;
8184
8185 openbsd*)
8186   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8187     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8188   else
8189     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8190   fi
8191   ;;
8192
8193 osf3* | osf4* | osf5*)
8194   lt_cv_deplibs_check_method=pass_all
8195   ;;
8196
8197 rdos*)
8198   lt_cv_deplibs_check_method=pass_all
8199   ;;
8200
8201 solaris*)
8202   lt_cv_deplibs_check_method=pass_all
8203   ;;
8204
8205 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8206   lt_cv_deplibs_check_method=pass_all
8207   ;;
8208
8209 sysv4 | sysv4.3*)
8210   case $host_vendor in
8211   motorola)
8212     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
8213     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8214     ;;
8215   ncr)
8216     lt_cv_deplibs_check_method=pass_all
8217     ;;
8218   sequent)
8219     lt_cv_file_magic_cmd='/bin/file'
8220     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8221     ;;
8222   sni)
8223     lt_cv_file_magic_cmd='/bin/file'
8224     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8225     lt_cv_file_magic_test_file=/lib/libc.so
8226     ;;
8227   siemens)
8228     lt_cv_deplibs_check_method=pass_all
8229     ;;
8230   pc)
8231     lt_cv_deplibs_check_method=pass_all
8232     ;;
8233   esac
8234   ;;
8235
8236 tpf*)
8237   lt_cv_deplibs_check_method=pass_all
8238   ;;
8239 esac
8240
8241 fi
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8243 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8244 file_magic_cmd=$lt_cv_file_magic_cmd
8245 deplibs_check_method=$lt_cv_deplibs_check_method
8246 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259 if test -n "$ac_tool_prefix"; then
8260   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8261 set dummy ${ac_tool_prefix}ar; ac_word=$2
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8263 $as_echo_n "checking for $ac_word... " >&6; }
8264 if test "${ac_cv_prog_AR+set}" = set; then :
8265   $as_echo_n "(cached) " >&6
8266 else
8267   if test -n "$AR"; then
8268   ac_cv_prog_AR="$AR" # Let the user override the test.
8269 else
8270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271 for as_dir in $PATH
8272 do
8273   IFS=$as_save_IFS
8274   test -z "$as_dir" && as_dir=.
8275     for ac_exec_ext in '' $ac_executable_extensions; do
8276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8277     ac_cv_prog_AR="${ac_tool_prefix}ar"
8278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8279     break 2
8280   fi
8281 done
8282   done
8283 IFS=$as_save_IFS
8284
8285 fi
8286 fi
8287 AR=$ac_cv_prog_AR
8288 if test -n "$AR"; then
8289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8290 $as_echo "$AR" >&6; }
8291 else
8292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293 $as_echo "no" >&6; }
8294 fi
8295
8296
8297 fi
8298 if test -z "$ac_cv_prog_AR"; then
8299   ac_ct_AR=$AR
8300   # Extract the first word of "ar", so it can be a program name with args.
8301 set dummy ar; ac_word=$2
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8303 $as_echo_n "checking for $ac_word... " >&6; }
8304 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8305   $as_echo_n "(cached) " >&6
8306 else
8307   if test -n "$ac_ct_AR"; then
8308   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8309 else
8310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8311 for as_dir in $PATH
8312 do
8313   IFS=$as_save_IFS
8314   test -z "$as_dir" && as_dir=.
8315     for ac_exec_ext in '' $ac_executable_extensions; do
8316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8317     ac_cv_prog_ac_ct_AR="ar"
8318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8319     break 2
8320   fi
8321 done
8322   done
8323 IFS=$as_save_IFS
8324
8325 fi
8326 fi
8327 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8328 if test -n "$ac_ct_AR"; then
8329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8330 $as_echo "$ac_ct_AR" >&6; }
8331 else
8332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8333 $as_echo "no" >&6; }
8334 fi
8335
8336   if test "x$ac_ct_AR" = x; then
8337     AR="false"
8338   else
8339     case $cross_compiling:$ac_tool_warned in
8340 yes:)
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8343 ac_tool_warned=yes ;;
8344 esac
8345     AR=$ac_ct_AR
8346   fi
8347 else
8348   AR="$ac_cv_prog_AR"
8349 fi
8350
8351 test -z "$AR" && AR=ar
8352 test -z "$AR_FLAGS" && AR_FLAGS=cru
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364 if test -n "$ac_tool_prefix"; then
8365   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8366 set dummy ${ac_tool_prefix}strip; ac_word=$2
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8368 $as_echo_n "checking for $ac_word... " >&6; }
8369 if test "${ac_cv_prog_STRIP+set}" = set; then :
8370   $as_echo_n "(cached) " >&6
8371 else
8372   if test -n "$STRIP"; then
8373   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8374 else
8375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8376 for as_dir in $PATH
8377 do
8378   IFS=$as_save_IFS
8379   test -z "$as_dir" && as_dir=.
8380     for ac_exec_ext in '' $ac_executable_extensions; do
8381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8382     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8384     break 2
8385   fi
8386 done
8387   done
8388 IFS=$as_save_IFS
8389
8390 fi
8391 fi
8392 STRIP=$ac_cv_prog_STRIP
8393 if test -n "$STRIP"; then
8394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8395 $as_echo "$STRIP" >&6; }
8396 else
8397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8398 $as_echo "no" >&6; }
8399 fi
8400
8401
8402 fi
8403 if test -z "$ac_cv_prog_STRIP"; then
8404   ac_ct_STRIP=$STRIP
8405   # Extract the first word of "strip", so it can be a program name with args.
8406 set dummy strip; ac_word=$2
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8408 $as_echo_n "checking for $ac_word... " >&6; }
8409 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8410   $as_echo_n "(cached) " >&6
8411 else
8412   if test -n "$ac_ct_STRIP"; then
8413   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8414 else
8415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416 for as_dir in $PATH
8417 do
8418   IFS=$as_save_IFS
8419   test -z "$as_dir" && as_dir=.
8420     for ac_exec_ext in '' $ac_executable_extensions; do
8421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8422     ac_cv_prog_ac_ct_STRIP="strip"
8423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8424     break 2
8425   fi
8426 done
8427   done
8428 IFS=$as_save_IFS
8429
8430 fi
8431 fi
8432 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8433 if test -n "$ac_ct_STRIP"; then
8434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8435 $as_echo "$ac_ct_STRIP" >&6; }
8436 else
8437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438 $as_echo "no" >&6; }
8439 fi
8440
8441   if test "x$ac_ct_STRIP" = x; then
8442     STRIP=":"
8443   else
8444     case $cross_compiling:$ac_tool_warned in
8445 yes:)
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8447 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8448 ac_tool_warned=yes ;;
8449 esac
8450     STRIP=$ac_ct_STRIP
8451   fi
8452 else
8453   STRIP="$ac_cv_prog_STRIP"
8454 fi
8455
8456 test -z "$STRIP" && STRIP=:
8457
8458
8459
8460
8461
8462
8463 if test -n "$ac_tool_prefix"; then
8464   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8465 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8467 $as_echo_n "checking for $ac_word... " >&6; }
8468 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8469   $as_echo_n "(cached) " >&6
8470 else
8471   if test -n "$RANLIB"; then
8472   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8473 else
8474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8475 for as_dir in $PATH
8476 do
8477   IFS=$as_save_IFS
8478   test -z "$as_dir" && as_dir=.
8479     for ac_exec_ext in '' $ac_executable_extensions; do
8480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8481     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8483     break 2
8484   fi
8485 done
8486   done
8487 IFS=$as_save_IFS
8488
8489 fi
8490 fi
8491 RANLIB=$ac_cv_prog_RANLIB
8492 if test -n "$RANLIB"; then
8493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8494 $as_echo "$RANLIB" >&6; }
8495 else
8496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8497 $as_echo "no" >&6; }
8498 fi
8499
8500
8501 fi
8502 if test -z "$ac_cv_prog_RANLIB"; then
8503   ac_ct_RANLIB=$RANLIB
8504   # Extract the first word of "ranlib", so it can be a program name with args.
8505 set dummy ranlib; ac_word=$2
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8507 $as_echo_n "checking for $ac_word... " >&6; }
8508 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8509   $as_echo_n "(cached) " >&6
8510 else
8511   if test -n "$ac_ct_RANLIB"; then
8512   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8513 else
8514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8515 for as_dir in $PATH
8516 do
8517   IFS=$as_save_IFS
8518   test -z "$as_dir" && as_dir=.
8519     for ac_exec_ext in '' $ac_executable_extensions; do
8520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8521     ac_cv_prog_ac_ct_RANLIB="ranlib"
8522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8523     break 2
8524   fi
8525 done
8526   done
8527 IFS=$as_save_IFS
8528
8529 fi
8530 fi
8531 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8532 if test -n "$ac_ct_RANLIB"; then
8533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8534 $as_echo "$ac_ct_RANLIB" >&6; }
8535 else
8536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537 $as_echo "no" >&6; }
8538 fi
8539
8540   if test "x$ac_ct_RANLIB" = x; then
8541     RANLIB=":"
8542   else
8543     case $cross_compiling:$ac_tool_warned in
8544 yes:)
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8547 ac_tool_warned=yes ;;
8548 esac
8549     RANLIB=$ac_ct_RANLIB
8550   fi
8551 else
8552   RANLIB="$ac_cv_prog_RANLIB"
8553 fi
8554
8555 test -z "$RANLIB" && RANLIB=:
8556
8557
8558
8559
8560
8561
8562 # Determine commands to create old-style static archives.
8563 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8564 old_postinstall_cmds='chmod 644 $oldlib'
8565 old_postuninstall_cmds=
8566
8567 if test -n "$RANLIB"; then
8568   case $host_os in
8569   openbsd*)
8570     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8571     ;;
8572   *)
8573     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8574     ;;
8575   esac
8576   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8577 fi
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612 # If no C compiler was specified, use CC.
8613 LTCC=${LTCC-"$CC"}
8614
8615 # If no C compiler flags were specified, use CFLAGS.
8616 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8617
8618 # Allow CC to be a program name with arguments.
8619 compiler=$CC
8620
8621
8622 # Check for command to grab the raw symbol name followed by C symbol from nm.
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8624 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8625 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8626   $as_echo_n "(cached) " >&6
8627 else
8628
8629 # These are sane defaults that work on at least a few old systems.
8630 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8631
8632 # Character class describing NM global symbol codes.
8633 symcode='[BCDEGRST]'
8634
8635 # Regexp to match symbols that can be accessed directly from C.
8636 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8637
8638 # Define system-specific variables.
8639 case $host_os in
8640 aix*)
8641   symcode='[BCDT]'
8642   ;;
8643 cygwin* | mingw* | pw32* | cegcc*)
8644   symcode='[ABCDGISTW]'
8645   ;;
8646 hpux*)
8647   if test "$host_cpu" = ia64; then
8648     symcode='[ABCDEGRST]'
8649   fi
8650   ;;
8651 irix* | nonstopux*)
8652   symcode='[BCDEGRST]'
8653   ;;
8654 osf*)
8655   symcode='[BCDEGQRST]'
8656   ;;
8657 solaris*)
8658   symcode='[BDRT]'
8659   ;;
8660 sco3.2v5*)
8661   symcode='[DT]'
8662   ;;
8663 sysv4.2uw2*)
8664   symcode='[DT]'
8665   ;;
8666 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8667   symcode='[ABDT]'
8668   ;;
8669 sysv4)
8670   symcode='[DFNSTU]'
8671   ;;
8672 esac
8673
8674 # If we're using GNU nm, then use its standard symbol codes.
8675 case `$NM -V 2>&1` in
8676 *GNU* | *'with BFD'*)
8677   symcode='[ABCDGIRSTW]' ;;
8678 esac
8679
8680 # Transform an extracted symbol line into a proper C declaration.
8681 # Some systems (esp. on ia64) link data and code symbols differently,
8682 # so use this general approach.
8683 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8684
8685 # Transform an extracted symbol line into symbol name and symbol address
8686 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8687 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
8688
8689 # Handle CRLF in mingw tool chain
8690 opt_cr=
8691 case $build_os in
8692 mingw*)
8693   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8694   ;;
8695 esac
8696
8697 # Try without a prefix underscore, then with it.
8698 for ac_symprfx in "" "_"; do
8699
8700   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8701   symxfrm="\\1 $ac_symprfx\\2 \\2"
8702
8703   # Write the raw and C identifiers.
8704   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8705     # Fake it for dumpbin and say T for any non-static function
8706     # and D for any global variable.
8707     # Also find C++ and __fastcall symbols from MSVC++,
8708     # which start with @ or ?.
8709     lt_cv_sys_global_symbol_pipe="$AWK '"\
8710 "     {last_section=section; section=\$ 3};"\
8711 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8712 "     \$ 0!~/External *\|/{next};"\
8713 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8714 "     {if(hide[section]) next};"\
8715 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8716 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8717 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8718 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8719 "     ' prfx=^$ac_symprfx"
8720   else
8721     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8722   fi
8723
8724   # Check to see that the pipe works correctly.
8725   pipe_works=no
8726
8727   rm -f conftest*
8728   cat > conftest.$ac_ext <<_LT_EOF
8729 #ifdef __cplusplus
8730 extern "C" {
8731 #endif
8732 char nm_test_var;
8733 void nm_test_func(void);
8734 void nm_test_func(void){}
8735 #ifdef __cplusplus
8736 }
8737 #endif
8738 int main(){nm_test_var='a';nm_test_func();return(0);}
8739 _LT_EOF
8740
8741   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8742   (eval $ac_compile) 2>&5
8743   ac_status=$?
8744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8745   test $ac_status = 0; }; then
8746     # Now try to grab the symbols.
8747     nlist=conftest.nm
8748     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
8749   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8750   ac_status=$?
8751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8752   test $ac_status = 0; } && test -s "$nlist"; then
8753       # Try sorting and uniquifying the output.
8754       if sort "$nlist" | uniq > "$nlist"T; then
8755         mv -f "$nlist"T "$nlist"
8756       else
8757         rm -f "$nlist"T
8758       fi
8759
8760       # Make sure that we snagged all the symbols we need.
8761       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8762         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8763           cat <<_LT_EOF > conftest.$ac_ext
8764 #ifdef __cplusplus
8765 extern "C" {
8766 #endif
8767
8768 _LT_EOF
8769           # Now generate the symbol file.
8770           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8771
8772           cat <<_LT_EOF >> conftest.$ac_ext
8773
8774 /* The mapping between symbol names and symbols.  */
8775 const struct {
8776   const char *name;
8777   void       *address;
8778 }
8779 lt__PROGRAM__LTX_preloaded_symbols[] =
8780 {
8781   { "@PROGRAM@", (void *) 0 },
8782 _LT_EOF
8783           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8784           cat <<\_LT_EOF >> conftest.$ac_ext
8785   {0, (void *) 0}
8786 };
8787
8788 /* This works around a problem in FreeBSD linker */
8789 #ifdef FREEBSD_WORKAROUND
8790 static const void *lt_preloaded_setup() {
8791   return lt__PROGRAM__LTX_preloaded_symbols;
8792 }
8793 #endif
8794
8795 #ifdef __cplusplus
8796 }
8797 #endif
8798 _LT_EOF
8799           # Now try linking the two files.
8800           mv conftest.$ac_objext conftstm.$ac_objext
8801           lt_save_LIBS="$LIBS"
8802           lt_save_CFLAGS="$CFLAGS"
8803           LIBS="conftstm.$ac_objext"
8804           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8805           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8806   (eval $ac_link) 2>&5
8807   ac_status=$?
8808   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8809   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8810             pipe_works=yes
8811           fi
8812           LIBS="$lt_save_LIBS"
8813           CFLAGS="$lt_save_CFLAGS"
8814         else
8815           echo "cannot find nm_test_func in $nlist" >&5
8816         fi
8817       else
8818         echo "cannot find nm_test_var in $nlist" >&5
8819       fi
8820     else
8821       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8822     fi
8823   else
8824     echo "$progname: failed program was:" >&5
8825     cat conftest.$ac_ext >&5
8826   fi
8827   rm -rf conftest* conftst*
8828
8829   # Do not use the global_symbol_pipe unless it works.
8830   if test "$pipe_works" = yes; then
8831     break
8832   else
8833     lt_cv_sys_global_symbol_pipe=
8834   fi
8835 done
8836
8837 fi
8838
8839 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8840   lt_cv_sys_global_symbol_to_cdecl=
8841 fi
8842 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8844 $as_echo "failed" >&6; }
8845 else
8846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8847 $as_echo "ok" >&6; }
8848 fi
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871 # Check whether --enable-libtool-lock was given.
8872 if test "${enable_libtool_lock+set}" = set; then :
8873   enableval=$enable_libtool_lock;
8874 fi
8875
8876 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8877
8878 # Some flags need to be propagated to the compiler or linker for good
8879 # libtool support.
8880 case $host in
8881 ia64-*-hpux*)
8882   # Find out which ABI we are using.
8883   echo 'int i;' > conftest.$ac_ext
8884   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8885   (eval $ac_compile) 2>&5
8886   ac_status=$?
8887   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8888   test $ac_status = 0; }; then
8889     case `/usr/bin/file conftest.$ac_objext` in
8890       *ELF-32*)
8891         HPUX_IA64_MODE="32"
8892         ;;
8893       *ELF-64*)
8894         HPUX_IA64_MODE="64"
8895         ;;
8896     esac
8897   fi
8898   rm -rf conftest*
8899   ;;
8900 *-*-irix6*)
8901   # Find out which ABI we are using.
8902   echo '#line 8902 "configure"' > conftest.$ac_ext
8903   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8904   (eval $ac_compile) 2>&5
8905   ac_status=$?
8906   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8907   test $ac_status = 0; }; then
8908     if test "$lt_cv_prog_gnu_ld" = yes; then
8909       case `/usr/bin/file conftest.$ac_objext` in
8910         *32-bit*)
8911           LD="${LD-ld} -melf32bsmip"
8912           ;;
8913         *N32*)
8914           LD="${LD-ld} -melf32bmipn32"
8915           ;;
8916         *64-bit*)
8917           LD="${LD-ld} -melf64bmip"
8918         ;;
8919       esac
8920     else
8921       case `/usr/bin/file conftest.$ac_objext` in
8922         *32-bit*)
8923           LD="${LD-ld} -32"
8924           ;;
8925         *N32*)
8926           LD="${LD-ld} -n32"
8927           ;;
8928         *64-bit*)
8929           LD="${LD-ld} -64"
8930           ;;
8931       esac
8932     fi
8933   fi
8934   rm -rf conftest*
8935   ;;
8936
8937 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8938 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8939   # Find out which ABI we are using.
8940   echo 'int i;' > conftest.$ac_ext
8941   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8942   (eval $ac_compile) 2>&5
8943   ac_status=$?
8944   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8945   test $ac_status = 0; }; then
8946     case `/usr/bin/file conftest.o` in
8947       *32-bit*)
8948         case $host in
8949           x86_64-*kfreebsd*-gnu)
8950             LD="${LD-ld} -m elf_i386_fbsd"
8951             ;;
8952           x86_64-*linux*)
8953             LD="${LD-ld} -m elf_i386"
8954             ;;
8955           ppc64-*linux*|powerpc64-*linux*)
8956             LD="${LD-ld} -m elf32ppclinux"
8957             ;;
8958           s390x-*linux*)
8959             LD="${LD-ld} -m elf_s390"
8960             ;;
8961           sparc64-*linux*)
8962             LD="${LD-ld} -m elf32_sparc"
8963             ;;
8964         esac
8965         ;;
8966       *64-bit*)
8967         case $host in
8968           x86_64-*kfreebsd*-gnu)
8969             LD="${LD-ld} -m elf_x86_64_fbsd"
8970             ;;
8971           x86_64-*linux*)
8972             LD="${LD-ld} -m elf_x86_64"
8973             ;;
8974           ppc*-*linux*|powerpc*-*linux*)
8975             LD="${LD-ld} -m elf64ppc"
8976             ;;
8977           s390*-*linux*|s390*-*tpf*)
8978             LD="${LD-ld} -m elf64_s390"
8979             ;;
8980           sparc*-*linux*)
8981             LD="${LD-ld} -m elf64_sparc"
8982             ;;
8983         esac
8984         ;;
8985     esac
8986   fi
8987   rm -rf conftest*
8988   ;;
8989
8990 *-*-sco3.2v5*)
8991   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8992   SAVE_CFLAGS="$CFLAGS"
8993   CFLAGS="$CFLAGS -belf"
8994   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8995 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8996 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8997   $as_echo_n "(cached) " >&6
8998 else
8999   ac_ext=c
9000 ac_cpp='$CPP $CPPFLAGS'
9001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9004
9005      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006 /* end confdefs.h.  */
9007
9008 int
9009 main ()
9010 {
9011
9012   ;
9013   return 0;
9014 }
9015 _ACEOF
9016 if ac_fn_c_try_link "$LINENO"; then :
9017   lt_cv_cc_needs_belf=yes
9018 else
9019   lt_cv_cc_needs_belf=no
9020 fi
9021 rm -f core conftest.err conftest.$ac_objext \
9022     conftest$ac_exeext conftest.$ac_ext
9023      ac_ext=c
9024 ac_cpp='$CPP $CPPFLAGS'
9025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9028
9029 fi
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9031 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9032   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9033     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9034     CFLAGS="$SAVE_CFLAGS"
9035   fi
9036   ;;
9037 sparc*-*solaris*)
9038   # Find out which ABI we are using.
9039   echo 'int i;' > conftest.$ac_ext
9040   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9041   (eval $ac_compile) 2>&5
9042   ac_status=$?
9043   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9044   test $ac_status = 0; }; then
9045     case `/usr/bin/file conftest.o` in
9046     *64-bit*)
9047       case $lt_cv_prog_gnu_ld in
9048       yes*) LD="${LD-ld} -m elf64_sparc" ;;
9049       *)
9050         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9051           LD="${LD-ld} -64"
9052         fi
9053         ;;
9054       esac
9055       ;;
9056     esac
9057   fi
9058   rm -rf conftest*
9059   ;;
9060 esac
9061
9062 need_locks="$enable_libtool_lock"
9063
9064
9065   case $host_os in
9066     rhapsody* | darwin*)
9067     if test -n "$ac_tool_prefix"; then
9068   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9069 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9071 $as_echo_n "checking for $ac_word... " >&6; }
9072 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
9073   $as_echo_n "(cached) " >&6
9074 else
9075   if test -n "$DSYMUTIL"; then
9076   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9077 else
9078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9079 for as_dir in $PATH
9080 do
9081   IFS=$as_save_IFS
9082   test -z "$as_dir" && as_dir=.
9083     for ac_exec_ext in '' $ac_executable_extensions; do
9084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9085     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9086     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9087     break 2
9088   fi
9089 done
9090   done
9091 IFS=$as_save_IFS
9092
9093 fi
9094 fi
9095 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9096 if test -n "$DSYMUTIL"; then
9097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9098 $as_echo "$DSYMUTIL" >&6; }
9099 else
9100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9101 $as_echo "no" >&6; }
9102 fi
9103
9104
9105 fi
9106 if test -z "$ac_cv_prog_DSYMUTIL"; then
9107   ac_ct_DSYMUTIL=$DSYMUTIL
9108   # Extract the first word of "dsymutil", so it can be a program name with args.
9109 set dummy dsymutil; ac_word=$2
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9111 $as_echo_n "checking for $ac_word... " >&6; }
9112 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
9113   $as_echo_n "(cached) " >&6
9114 else
9115   if test -n "$ac_ct_DSYMUTIL"; then
9116   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9117 else
9118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9119 for as_dir in $PATH
9120 do
9121   IFS=$as_save_IFS
9122   test -z "$as_dir" && as_dir=.
9123     for ac_exec_ext in '' $ac_executable_extensions; do
9124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9125     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9127     break 2
9128   fi
9129 done
9130   done
9131 IFS=$as_save_IFS
9132
9133 fi
9134 fi
9135 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9136 if test -n "$ac_ct_DSYMUTIL"; then
9137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9138 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9139 else
9140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9141 $as_echo "no" >&6; }
9142 fi
9143
9144   if test "x$ac_ct_DSYMUTIL" = x; then
9145     DSYMUTIL=":"
9146   else
9147     case $cross_compiling:$ac_tool_warned in
9148 yes:)
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9151 ac_tool_warned=yes ;;
9152 esac
9153     DSYMUTIL=$ac_ct_DSYMUTIL
9154   fi
9155 else
9156   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9157 fi
9158
9159     if test -n "$ac_tool_prefix"; then
9160   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9161 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9163 $as_echo_n "checking for $ac_word... " >&6; }
9164 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
9165   $as_echo_n "(cached) " >&6
9166 else
9167   if test -n "$NMEDIT"; then
9168   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9169 else
9170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9171 for as_dir in $PATH
9172 do
9173   IFS=$as_save_IFS
9174   test -z "$as_dir" && as_dir=.
9175     for ac_exec_ext in '' $ac_executable_extensions; do
9176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9177     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9179     break 2
9180   fi
9181 done
9182   done
9183 IFS=$as_save_IFS
9184
9185 fi
9186 fi
9187 NMEDIT=$ac_cv_prog_NMEDIT
9188 if test -n "$NMEDIT"; then
9189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9190 $as_echo "$NMEDIT" >&6; }
9191 else
9192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9193 $as_echo "no" >&6; }
9194 fi
9195
9196
9197 fi
9198 if test -z "$ac_cv_prog_NMEDIT"; then
9199   ac_ct_NMEDIT=$NMEDIT
9200   # Extract the first word of "nmedit", so it can be a program name with args.
9201 set dummy nmedit; ac_word=$2
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9203 $as_echo_n "checking for $ac_word... " >&6; }
9204 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9205   $as_echo_n "(cached) " >&6
9206 else
9207   if test -n "$ac_ct_NMEDIT"; then
9208   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9209 else
9210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9211 for as_dir in $PATH
9212 do
9213   IFS=$as_save_IFS
9214   test -z "$as_dir" && as_dir=.
9215     for ac_exec_ext in '' $ac_executable_extensions; do
9216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9217     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9219     break 2
9220   fi
9221 done
9222   done
9223 IFS=$as_save_IFS
9224
9225 fi
9226 fi
9227 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9228 if test -n "$ac_ct_NMEDIT"; then
9229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9230 $as_echo "$ac_ct_NMEDIT" >&6; }
9231 else
9232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9233 $as_echo "no" >&6; }
9234 fi
9235
9236   if test "x$ac_ct_NMEDIT" = x; then
9237     NMEDIT=":"
9238   else
9239     case $cross_compiling:$ac_tool_warned in
9240 yes:)
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9243 ac_tool_warned=yes ;;
9244 esac
9245     NMEDIT=$ac_ct_NMEDIT
9246   fi
9247 else
9248   NMEDIT="$ac_cv_prog_NMEDIT"
9249 fi
9250
9251     if test -n "$ac_tool_prefix"; then
9252   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9253 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9255 $as_echo_n "checking for $ac_word... " >&6; }
9256 if test "${ac_cv_prog_LIPO+set}" = set; then :
9257   $as_echo_n "(cached) " >&6
9258 else
9259   if test -n "$LIPO"; then
9260   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9261 else
9262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9263 for as_dir in $PATH
9264 do
9265   IFS=$as_save_IFS
9266   test -z "$as_dir" && as_dir=.
9267     for ac_exec_ext in '' $ac_executable_extensions; do
9268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9269     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9271     break 2
9272   fi
9273 done
9274   done
9275 IFS=$as_save_IFS
9276
9277 fi
9278 fi
9279 LIPO=$ac_cv_prog_LIPO
9280 if test -n "$LIPO"; then
9281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9282 $as_echo "$LIPO" >&6; }
9283 else
9284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9285 $as_echo "no" >&6; }
9286 fi
9287
9288
9289 fi
9290 if test -z "$ac_cv_prog_LIPO"; then
9291   ac_ct_LIPO=$LIPO
9292   # Extract the first word of "lipo", so it can be a program name with args.
9293 set dummy lipo; ac_word=$2
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9295 $as_echo_n "checking for $ac_word... " >&6; }
9296 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9297   $as_echo_n "(cached) " >&6
9298 else
9299   if test -n "$ac_ct_LIPO"; then
9300   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9301 else
9302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9303 for as_dir in $PATH
9304 do
9305   IFS=$as_save_IFS
9306   test -z "$as_dir" && as_dir=.
9307     for ac_exec_ext in '' $ac_executable_extensions; do
9308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9309     ac_cv_prog_ac_ct_LIPO="lipo"
9310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9311     break 2
9312   fi
9313 done
9314   done
9315 IFS=$as_save_IFS
9316
9317 fi
9318 fi
9319 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9320 if test -n "$ac_ct_LIPO"; then
9321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9322 $as_echo "$ac_ct_LIPO" >&6; }
9323 else
9324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9325 $as_echo "no" >&6; }
9326 fi
9327
9328   if test "x$ac_ct_LIPO" = x; then
9329     LIPO=":"
9330   else
9331     case $cross_compiling:$ac_tool_warned in
9332 yes:)
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9335 ac_tool_warned=yes ;;
9336 esac
9337     LIPO=$ac_ct_LIPO
9338   fi
9339 else
9340   LIPO="$ac_cv_prog_LIPO"
9341 fi
9342
9343     if test -n "$ac_tool_prefix"; then
9344   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9345 set dummy ${ac_tool_prefix}otool; ac_word=$2
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9347 $as_echo_n "checking for $ac_word... " >&6; }
9348 if test "${ac_cv_prog_OTOOL+set}" = set; then :
9349   $as_echo_n "(cached) " >&6
9350 else
9351   if test -n "$OTOOL"; then
9352   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9353 else
9354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9355 for as_dir in $PATH
9356 do
9357   IFS=$as_save_IFS
9358   test -z "$as_dir" && as_dir=.
9359     for ac_exec_ext in '' $ac_executable_extensions; do
9360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9361     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9363     break 2
9364   fi
9365 done
9366   done
9367 IFS=$as_save_IFS
9368
9369 fi
9370 fi
9371 OTOOL=$ac_cv_prog_OTOOL
9372 if test -n "$OTOOL"; then
9373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9374 $as_echo "$OTOOL" >&6; }
9375 else
9376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9377 $as_echo "no" >&6; }
9378 fi
9379
9380
9381 fi
9382 if test -z "$ac_cv_prog_OTOOL"; then
9383   ac_ct_OTOOL=$OTOOL
9384   # Extract the first word of "otool", so it can be a program name with args.
9385 set dummy otool; ac_word=$2
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9387 $as_echo_n "checking for $ac_word... " >&6; }
9388 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9389   $as_echo_n "(cached) " >&6
9390 else
9391   if test -n "$ac_ct_OTOOL"; then
9392   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9393 else
9394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9395 for as_dir in $PATH
9396 do
9397   IFS=$as_save_IFS
9398   test -z "$as_dir" && as_dir=.
9399     for ac_exec_ext in '' $ac_executable_extensions; do
9400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9401     ac_cv_prog_ac_ct_OTOOL="otool"
9402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9403     break 2
9404   fi
9405 done
9406   done
9407 IFS=$as_save_IFS
9408
9409 fi
9410 fi
9411 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9412 if test -n "$ac_ct_OTOOL"; then
9413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9414 $as_echo "$ac_ct_OTOOL" >&6; }
9415 else
9416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9417 $as_echo "no" >&6; }
9418 fi
9419
9420   if test "x$ac_ct_OTOOL" = x; then
9421     OTOOL=":"
9422   else
9423     case $cross_compiling:$ac_tool_warned in
9424 yes:)
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9427 ac_tool_warned=yes ;;
9428 esac
9429     OTOOL=$ac_ct_OTOOL
9430   fi
9431 else
9432   OTOOL="$ac_cv_prog_OTOOL"
9433 fi
9434
9435     if test -n "$ac_tool_prefix"; then
9436   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9437 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9439 $as_echo_n "checking for $ac_word... " >&6; }
9440 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9441   $as_echo_n "(cached) " >&6
9442 else
9443   if test -n "$OTOOL64"; then
9444   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9445 else
9446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9447 for as_dir in $PATH
9448 do
9449   IFS=$as_save_IFS
9450   test -z "$as_dir" && as_dir=.
9451     for ac_exec_ext in '' $ac_executable_extensions; do
9452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9453     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9455     break 2
9456   fi
9457 done
9458   done
9459 IFS=$as_save_IFS
9460
9461 fi
9462 fi
9463 OTOOL64=$ac_cv_prog_OTOOL64
9464 if test -n "$OTOOL64"; then
9465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9466 $as_echo "$OTOOL64" >&6; }
9467 else
9468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9469 $as_echo "no" >&6; }
9470 fi
9471
9472
9473 fi
9474 if test -z "$ac_cv_prog_OTOOL64"; then
9475   ac_ct_OTOOL64=$OTOOL64
9476   # Extract the first word of "otool64", so it can be a program name with args.
9477 set dummy otool64; ac_word=$2
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9479 $as_echo_n "checking for $ac_word... " >&6; }
9480 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9481   $as_echo_n "(cached) " >&6
9482 else
9483   if test -n "$ac_ct_OTOOL64"; then
9484   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9485 else
9486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9487 for as_dir in $PATH
9488 do
9489   IFS=$as_save_IFS
9490   test -z "$as_dir" && as_dir=.
9491     for ac_exec_ext in '' $ac_executable_extensions; do
9492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9493     ac_cv_prog_ac_ct_OTOOL64="otool64"
9494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9495     break 2
9496   fi
9497 done
9498   done
9499 IFS=$as_save_IFS
9500
9501 fi
9502 fi
9503 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9504 if test -n "$ac_ct_OTOOL64"; then
9505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9506 $as_echo "$ac_ct_OTOOL64" >&6; }
9507 else
9508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9509 $as_echo "no" >&6; }
9510 fi
9511
9512   if test "x$ac_ct_OTOOL64" = x; then
9513     OTOOL64=":"
9514   else
9515     case $cross_compiling:$ac_tool_warned in
9516 yes:)
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9519 ac_tool_warned=yes ;;
9520 esac
9521     OTOOL64=$ac_ct_OTOOL64
9522   fi
9523 else
9524   OTOOL64="$ac_cv_prog_OTOOL64"
9525 fi
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9554 $as_echo_n "checking for -single_module linker flag... " >&6; }
9555 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9556   $as_echo_n "(cached) " >&6
9557 else
9558   lt_cv_apple_cc_single_mod=no
9559       if test -z "${LT_MULTI_MODULE}"; then
9560         # By default we will add the -single_module flag. You can override
9561         # by either setting the environment variable LT_MULTI_MODULE
9562         # non-empty at configure time, or by adding -multi_module to the
9563         # link flags.
9564         rm -rf libconftest.dylib*
9565         echo "int foo(void){return 1;}" > conftest.c
9566         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9567 -dynamiclib -Wl,-single_module conftest.c" >&5
9568         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9569           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9570         _lt_result=$?
9571         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9572           lt_cv_apple_cc_single_mod=yes
9573         else
9574           cat conftest.err >&5
9575         fi
9576         rm -rf libconftest.dylib*
9577         rm -f conftest.*
9578       fi
9579 fi
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9581 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9582     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9583 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9584 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9585   $as_echo_n "(cached) " >&6
9586 else
9587   lt_cv_ld_exported_symbols_list=no
9588       save_LDFLAGS=$LDFLAGS
9589       echo "_main" > conftest.sym
9590       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9591       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9592 /* end confdefs.h.  */
9593
9594 int
9595 main ()
9596 {
9597
9598   ;
9599   return 0;
9600 }
9601 _ACEOF
9602 if ac_fn_c_try_link "$LINENO"; then :
9603   lt_cv_ld_exported_symbols_list=yes
9604 else
9605   lt_cv_ld_exported_symbols_list=no
9606 fi
9607 rm -f core conftest.err conftest.$ac_objext \
9608     conftest$ac_exeext conftest.$ac_ext
9609         LDFLAGS="$save_LDFLAGS"
9610
9611 fi
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9613 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9614     case $host_os in
9615     rhapsody* | darwin1.[012])
9616       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9617     darwin1.*)
9618       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9619     darwin*) # darwin 5.x on
9620       # if running on 10.5 or later, the deployment target defaults
9621       # to the OS version, if on x86, and 10.4, the deployment
9622       # target defaults to 10.4. Don't you love it?
9623       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9624         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9625           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9626         10.[012]*)
9627           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9628         10.*)
9629           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9630       esac
9631     ;;
9632   esac
9633     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9634       _lt_dar_single_mod='$single_module'
9635     fi
9636     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9637       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9638     else
9639       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9640     fi
9641     if test "$DSYMUTIL" != ":"; then
9642       _lt_dsymutil='~$DSYMUTIL $lib || :'
9643     else
9644       _lt_dsymutil=
9645     fi
9646     ;;
9647   esac
9648
9649 for ac_header in dlfcn.h
9650 do :
9651   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9652 "
9653 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9654   cat >>confdefs.h <<_ACEOF
9655 #define HAVE_DLFCN_H 1
9656 _ACEOF
9657
9658 fi
9659
9660 done
9661
9662
9663
9664 ac_ext=cpp
9665 ac_cpp='$CXXCPP $CPPFLAGS'
9666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9669 if test -z "$CXX"; then
9670   if test -n "$CCC"; then
9671     CXX=$CCC
9672   else
9673     if test -n "$ac_tool_prefix"; then
9674   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9675   do
9676     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9677 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9679 $as_echo_n "checking for $ac_word... " >&6; }
9680 if test "${ac_cv_prog_CXX+set}" = set; then :
9681   $as_echo_n "(cached) " >&6
9682 else
9683   if test -n "$CXX"; then
9684   ac_cv_prog_CXX="$CXX" # Let the user override the test.
9685 else
9686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9687 for as_dir in $PATH
9688 do
9689   IFS=$as_save_IFS
9690   test -z "$as_dir" && as_dir=.
9691     for ac_exec_ext in '' $ac_executable_extensions; do
9692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9693     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9695     break 2
9696   fi
9697 done
9698   done
9699 IFS=$as_save_IFS
9700
9701 fi
9702 fi
9703 CXX=$ac_cv_prog_CXX
9704 if test -n "$CXX"; then
9705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
9706 $as_echo "$CXX" >&6; }
9707 else
9708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9709 $as_echo "no" >&6; }
9710 fi
9711
9712
9713     test -n "$CXX" && break
9714   done
9715 fi
9716 if test -z "$CXX"; then
9717   ac_ct_CXX=$CXX
9718   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9719 do
9720   # Extract the first word of "$ac_prog", so it can be a program name with args.
9721 set dummy $ac_prog; ac_word=$2
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9723 $as_echo_n "checking for $ac_word... " >&6; }
9724 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
9725   $as_echo_n "(cached) " >&6
9726 else
9727   if test -n "$ac_ct_CXX"; then
9728   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9729 else
9730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9731 for as_dir in $PATH
9732 do
9733   IFS=$as_save_IFS
9734   test -z "$as_dir" && as_dir=.
9735     for ac_exec_ext in '' $ac_executable_extensions; do
9736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9737     ac_cv_prog_ac_ct_CXX="$ac_prog"
9738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9739     break 2
9740   fi
9741 done
9742   done
9743 IFS=$as_save_IFS
9744
9745 fi
9746 fi
9747 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9748 if test -n "$ac_ct_CXX"; then
9749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
9750 $as_echo "$ac_ct_CXX" >&6; }
9751 else
9752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9753 $as_echo "no" >&6; }
9754 fi
9755
9756
9757   test -n "$ac_ct_CXX" && break
9758 done
9759
9760   if test "x$ac_ct_CXX" = x; then
9761     CXX="g++"
9762   else
9763     case $cross_compiling:$ac_tool_warned in
9764 yes:)
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9767 ac_tool_warned=yes ;;
9768 esac
9769     CXX=$ac_ct_CXX
9770   fi
9771 fi
9772
9773   fi
9774 fi
9775 # Provide some information about the compiler.
9776 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
9777 set X $ac_compile
9778 ac_compiler=$2
9779 for ac_option in --version -v -V -qversion; do
9780   { { ac_try="$ac_compiler $ac_option >&5"
9781 case "(($ac_try" in
9782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9783   *) ac_try_echo=$ac_try;;
9784 esac
9785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9786 $as_echo "$ac_try_echo"; } >&5
9787   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
9788   ac_status=$?
9789   if test -s conftest.err; then
9790     sed '10a\
9791 ... rest of stderr output deleted ...
9792          10q' conftest.err >conftest.er1
9793     cat conftest.er1 >&5
9794   fi
9795   rm -f conftest.er1 conftest.err
9796   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9797   test $ac_status = 0; }
9798 done
9799
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
9801 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
9802 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
9803   $as_echo_n "(cached) " >&6
9804 else
9805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9806 /* end confdefs.h.  */
9807
9808 int
9809 main ()
9810 {
9811 #ifndef __GNUC__
9812        choke me
9813 #endif
9814
9815   ;
9816   return 0;
9817 }
9818 _ACEOF
9819 if ac_fn_cxx_try_compile "$LINENO"; then :
9820   ac_compiler_gnu=yes
9821 else
9822   ac_compiler_gnu=no
9823 fi
9824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9825 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9826
9827 fi
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
9829 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
9830 if test $ac_compiler_gnu = yes; then
9831   GXX=yes
9832 else
9833   GXX=
9834 fi
9835 ac_test_CXXFLAGS=${CXXFLAGS+set}
9836 ac_save_CXXFLAGS=$CXXFLAGS
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
9838 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
9839 if test "${ac_cv_prog_cxx_g+set}" = set; then :
9840   $as_echo_n "(cached) " >&6
9841 else
9842   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
9843    ac_cxx_werror_flag=yes
9844    ac_cv_prog_cxx_g=no
9845    CXXFLAGS="-g"
9846    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9847 /* end confdefs.h.  */
9848
9849 int
9850 main ()
9851 {
9852
9853   ;
9854   return 0;
9855 }
9856 _ACEOF
9857 if ac_fn_cxx_try_compile "$LINENO"; then :
9858   ac_cv_prog_cxx_g=yes
9859 else
9860   CXXFLAGS=""
9861       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9862 /* end confdefs.h.  */
9863
9864 int
9865 main ()
9866 {
9867
9868   ;
9869   return 0;
9870 }
9871 _ACEOF
9872 if ac_fn_cxx_try_compile "$LINENO"; then :
9873
9874 else
9875   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9876          CXXFLAGS="-g"
9877          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9878 /* end confdefs.h.  */
9879
9880 int
9881 main ()
9882 {
9883
9884   ;
9885   return 0;
9886 }
9887 _ACEOF
9888 if ac_fn_cxx_try_compile "$LINENO"; then :
9889   ac_cv_prog_cxx_g=yes
9890 fi
9891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9892 fi
9893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9894 fi
9895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9896    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9897 fi
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
9899 $as_echo "$ac_cv_prog_cxx_g" >&6; }
9900 if test "$ac_test_CXXFLAGS" = set; then
9901   CXXFLAGS=$ac_save_CXXFLAGS
9902 elif test $ac_cv_prog_cxx_g = yes; then
9903   if test "$GXX" = yes; then
9904     CXXFLAGS="-g -O2"
9905   else
9906     CXXFLAGS="-g"
9907   fi
9908 else
9909   if test "$GXX" = yes; then
9910     CXXFLAGS="-O2"
9911   else
9912     CXXFLAGS=
9913   fi
9914 fi
9915 ac_ext=c
9916 ac_cpp='$CPP $CPPFLAGS'
9917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9920
9921 depcc="$CXX"  am_compiler_list=
9922
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9924 $as_echo_n "checking dependency style of $depcc... " >&6; }
9925 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9926   $as_echo_n "(cached) " >&6
9927 else
9928   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9929   # We make a subdir and do the tests there.  Otherwise we can end up
9930   # making bogus files that we don't know about and never remove.  For
9931   # instance it was reported that on HP-UX the gcc test will end up
9932   # making a dummy file named `D' -- because `-MD' means `put the output
9933   # in D'.
9934   mkdir conftest.dir
9935   # Copy depcomp to subdir because otherwise we won't find it if we're
9936   # using a relative directory.
9937   cp "$am_depcomp" conftest.dir
9938   cd conftest.dir
9939   # We will build objects and dependencies in a subdirectory because
9940   # it helps to detect inapplicable dependency modes.  For instance
9941   # both Tru64's cc and ICC support -MD to output dependencies as a
9942   # side effect of compilation, but ICC will put the dependencies in
9943   # the current directory while Tru64 will put them in the object
9944   # directory.
9945   mkdir sub
9946
9947   am_cv_CXX_dependencies_compiler_type=none
9948   if test "$am_compiler_list" = ""; then
9949      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9950   fi
9951   am__universal=false
9952   case " $depcc " in #(
9953      *\ -arch\ *\ -arch\ *) am__universal=true ;;
9954      esac
9955
9956   for depmode in $am_compiler_list; do
9957     # Setup a source with many dependencies, because some compilers
9958     # like to wrap large dependency lists on column 80 (with \), and
9959     # we should not choose a depcomp mode which is confused by this.
9960     #
9961     # We need to recreate these files for each test, as the compiler may
9962     # overwrite some of them when testing with obscure command lines.
9963     # This happens at least with the AIX C compiler.
9964     : > sub/conftest.c
9965     for i in 1 2 3 4 5 6; do
9966       echo '#include "conftst'$i'.h"' >> sub/conftest.c
9967       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9968       # Solaris 8's {/usr,}/bin/sh.
9969       touch sub/conftst$i.h
9970     done
9971     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9972
9973     # We check with `-c' and `-o' for the sake of the "dashmstdout"
9974     # mode.  It turns out that the SunPro C++ compiler does not properly
9975     # handle `-M -o', and we need to detect this.  Also, some Intel
9976     # versions had trouble with output in subdirs
9977     am__obj=sub/conftest.${OBJEXT-o}
9978     am__minus_obj="-o $am__obj"
9979     case $depmode in
9980     gcc)
9981       # This depmode causes a compiler race in universal mode.
9982       test "$am__universal" = false || continue
9983       ;;
9984     nosideeffect)
9985       # after this tag, mechanisms are not by side-effect, so they'll
9986       # only be used when explicitly requested
9987       if test "x$enable_dependency_tracking" = xyes; then
9988         continue
9989       else
9990         break
9991       fi
9992       ;;
9993     msvisualcpp | msvcmsys)
9994       # This compiler won't grok `-c -o', but also, the minuso test has
9995       # not run yet.  These depmodes are late enough in the game, and
9996       # so weak that their functioning should not be impacted.
9997       am__obj=conftest.${OBJEXT-o}
9998       am__minus_obj=
9999       ;;
10000     none) break ;;
10001     esac
10002     if depmode=$depmode \
10003        source=sub/conftest.c object=$am__obj \
10004        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10005        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10006          >/dev/null 2>conftest.err &&
10007        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10008        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10009        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10010        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10011       # icc doesn't choke on unknown options, it will just issue warnings
10012       # or remarks (even with -Werror).  So we grep stderr for any message
10013       # that says an option was ignored or not supported.
10014       # When given -MP, icc 7.0 and 7.1 complain thusly:
10015       #   icc: Command line warning: ignoring option '-M'; no argument required
10016       # The diagnosis changed in icc 8.0:
10017       #   icc: Command line remark: option '-MP' not supported
10018       if (grep 'ignoring option' conftest.err ||
10019           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10020         am_cv_CXX_dependencies_compiler_type=$depmode
10021         break
10022       fi
10023     fi
10024   done
10025
10026   cd ..
10027   rm -rf conftest.dir
10028 else
10029   am_cv_CXX_dependencies_compiler_type=none
10030 fi
10031
10032 fi
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10034 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10035 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10036
10037  if
10038   test "x$enable_dependency_tracking" != xno \
10039   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10040   am__fastdepCXX_TRUE=
10041   am__fastdepCXX_FALSE='#'
10042 else
10043   am__fastdepCXX_TRUE='#'
10044   am__fastdepCXX_FALSE=
10045 fi
10046
10047
10048 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10049     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10050     (test "X$CXX" != "Xg++"))) ; then
10051   ac_ext=cpp
10052 ac_cpp='$CXXCPP $CPPFLAGS'
10053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10057 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10058 if test -z "$CXXCPP"; then
10059   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
10060   $as_echo_n "(cached) " >&6
10061 else
10062       # Double quotes because CXXCPP needs to be expanded
10063     for CXXCPP in "$CXX -E" "/lib/cpp"
10064     do
10065       ac_preproc_ok=false
10066 for ac_cxx_preproc_warn_flag in '' yes
10067 do
10068   # Use a header file that comes with gcc, so configuring glibc
10069   # with a fresh cross-compiler works.
10070   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10071   # <limits.h> exists even on freestanding compilers.
10072   # On the NeXT, cc -E runs the code through the compiler's parser,
10073   # not just through cpp. "Syntax error" is here to catch this case.
10074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10075 /* end confdefs.h.  */
10076 #ifdef __STDC__
10077 # include <limits.h>
10078 #else
10079 # include <assert.h>
10080 #endif
10081                      Syntax error
10082 _ACEOF
10083 if ac_fn_cxx_try_cpp "$LINENO"; then :
10084
10085 else
10086   # Broken: fails on valid input.
10087 continue
10088 fi
10089 rm -f conftest.err conftest.i conftest.$ac_ext
10090
10091   # OK, works on sane cases.  Now check whether nonexistent headers
10092   # can be detected and how.
10093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10094 /* end confdefs.h.  */
10095 #include <ac_nonexistent.h>
10096 _ACEOF
10097 if ac_fn_cxx_try_cpp "$LINENO"; then :
10098   # Broken: success on invalid input.
10099 continue
10100 else
10101   # Passes both tests.
10102 ac_preproc_ok=:
10103 break
10104 fi
10105 rm -f conftest.err conftest.i conftest.$ac_ext
10106
10107 done
10108 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10109 rm -f conftest.i conftest.err conftest.$ac_ext
10110 if $ac_preproc_ok; then :
10111   break
10112 fi
10113
10114     done
10115     ac_cv_prog_CXXCPP=$CXXCPP
10116
10117 fi
10118   CXXCPP=$ac_cv_prog_CXXCPP
10119 else
10120   ac_cv_prog_CXXCPP=$CXXCPP
10121 fi
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10123 $as_echo "$CXXCPP" >&6; }
10124 ac_preproc_ok=false
10125 for ac_cxx_preproc_warn_flag in '' yes
10126 do
10127   # Use a header file that comes with gcc, so configuring glibc
10128   # with a fresh cross-compiler works.
10129   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10130   # <limits.h> exists even on freestanding compilers.
10131   # On the NeXT, cc -E runs the code through the compiler's parser,
10132   # not just through cpp. "Syntax error" is here to catch this case.
10133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10134 /* end confdefs.h.  */
10135 #ifdef __STDC__
10136 # include <limits.h>
10137 #else
10138 # include <assert.h>
10139 #endif
10140                      Syntax error
10141 _ACEOF
10142 if ac_fn_cxx_try_cpp "$LINENO"; then :
10143
10144 else
10145   # Broken: fails on valid input.
10146 continue
10147 fi
10148 rm -f conftest.err conftest.i conftest.$ac_ext
10149
10150   # OK, works on sane cases.  Now check whether nonexistent headers
10151   # can be detected and how.
10152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10153 /* end confdefs.h.  */
10154 #include <ac_nonexistent.h>
10155 _ACEOF
10156 if ac_fn_cxx_try_cpp "$LINENO"; then :
10157   # Broken: success on invalid input.
10158 continue
10159 else
10160   # Passes both tests.
10161 ac_preproc_ok=:
10162 break
10163 fi
10164 rm -f conftest.err conftest.i conftest.$ac_ext
10165
10166 done
10167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10168 rm -f conftest.i conftest.err conftest.$ac_ext
10169 if $ac_preproc_ok; then :
10170
10171 else
10172   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10174 _lt_caught_CXX_error=yes; }
10175 fi
10176
10177 ac_ext=c
10178 ac_cpp='$CPP $CPPFLAGS'
10179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10182
10183 else
10184   _lt_caught_CXX_error=yes
10185 fi
10186
10187
10188
10189
10190 # Set options
10191
10192
10193
10194         enable_dlopen=no
10195
10196
10197
10198
10199
10200
10201 # Check whether --with-pic was given.
10202 if test "${with_pic+set}" = set; then :
10203   withval=$with_pic; pic_mode="$withval"
10204 else
10205   pic_mode=default
10206 fi
10207
10208
10209 test -z "$pic_mode" && pic_mode=default
10210
10211
10212
10213
10214
10215
10216
10217   # Check whether --enable-fast-install was given.
10218 if test "${enable_fast_install+set}" = set; then :
10219   enableval=$enable_fast_install; p=${PACKAGE-default}
10220     case $enableval in
10221     yes) enable_fast_install=yes ;;
10222     no) enable_fast_install=no ;;
10223     *)
10224       enable_fast_install=no
10225       # Look at the argument we got.  We use all the common list separators.
10226       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10227       for pkg in $enableval; do
10228         IFS="$lt_save_ifs"
10229         if test "X$pkg" = "X$p"; then
10230           enable_fast_install=yes
10231         fi
10232       done
10233       IFS="$lt_save_ifs"
10234       ;;
10235     esac
10236 else
10237   enable_fast_install=yes
10238 fi
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250 # This can be used to rebuild libtool when needed
10251 LIBTOOL_DEPS="$ltmain"
10252
10253 # Always use our own libtool.
10254 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280 test -z "$LN_S" && LN_S="ln -s"
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295 if test -n "${ZSH_VERSION+set}" ; then
10296    setopt NO_GLOB_SUBST
10297 fi
10298
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10300 $as_echo_n "checking for objdir... " >&6; }
10301 if test "${lt_cv_objdir+set}" = set; then :
10302   $as_echo_n "(cached) " >&6
10303 else
10304   rm -f .libs 2>/dev/null
10305 mkdir .libs 2>/dev/null
10306 if test -d .libs; then
10307   lt_cv_objdir=.libs
10308 else
10309   # MS-DOS does not allow filenames that begin with a dot.
10310   lt_cv_objdir=_libs
10311 fi
10312 rmdir .libs 2>/dev/null
10313 fi
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10315 $as_echo "$lt_cv_objdir" >&6; }
10316 objdir=$lt_cv_objdir
10317
10318
10319
10320
10321
10322 cat >>confdefs.h <<_ACEOF
10323 #define LT_OBJDIR "$lt_cv_objdir/"
10324 _ACEOF
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342 case $host_os in
10343 aix3*)
10344   # AIX sometimes has problems with the GCC collect2 program.  For some
10345   # reason, if we set the COLLECT_NAMES environment variable, the problems
10346   # vanish in a puff of smoke.
10347   if test "X${COLLECT_NAMES+set}" != Xset; then
10348     COLLECT_NAMES=
10349     export COLLECT_NAMES
10350   fi
10351   ;;
10352 esac
10353
10354 # Sed substitution that helps us do robust quoting.  It backslashifies
10355 # metacharacters that are still active within double-quoted strings.
10356 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10357
10358 # Same as above, but do not quote variable references.
10359 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10360
10361 # Sed substitution to delay expansion of an escaped shell variable in a
10362 # double_quote_subst'ed string.
10363 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10364
10365 # Sed substitution to delay expansion of an escaped single quote.
10366 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10367
10368 # Sed substitution to avoid accidental globbing in evaled expressions
10369 no_glob_subst='s/\*/\\\*/g'
10370
10371 # Global variables:
10372 ofile=libtool
10373 can_build_shared=yes
10374
10375 # All known linkers require a `.a' archive for static linking (except MSVC,
10376 # which needs '.lib').
10377 libext=a
10378
10379 with_gnu_ld="$lt_cv_prog_gnu_ld"
10380
10381 old_CC="$CC"
10382 old_CFLAGS="$CFLAGS"
10383
10384 # Set sane defaults for various variables
10385 test -z "$CC" && CC=cc
10386 test -z "$LTCC" && LTCC=$CC
10387 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10388 test -z "$LD" && LD=ld
10389 test -z "$ac_objext" && ac_objext=o
10390
10391 for cc_temp in $compiler""; do
10392   case $cc_temp in
10393     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10394     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10395     \-*) ;;
10396     *) break;;
10397   esac
10398 done
10399 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10400
10401
10402 # Only perform the check for file, if the check method requires it
10403 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10404 case $deplibs_check_method in
10405 file_magic*)
10406   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10407     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10408 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10409 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10410   $as_echo_n "(cached) " >&6
10411 else
10412   case $MAGIC_CMD in
10413 [\\/*] |  ?:[\\/]*)
10414   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10415   ;;
10416 *)
10417   lt_save_MAGIC_CMD="$MAGIC_CMD"
10418   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10419   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10420   for ac_dir in $ac_dummy; do
10421     IFS="$lt_save_ifs"
10422     test -z "$ac_dir" && ac_dir=.
10423     if test -f $ac_dir/${ac_tool_prefix}file; then
10424       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10425       if test -n "$file_magic_test_file"; then
10426         case $deplibs_check_method in
10427         "file_magic "*)
10428           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10429           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10430           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10431             $EGREP "$file_magic_regex" > /dev/null; then
10432             :
10433           else
10434             cat <<_LT_EOF 1>&2
10435
10436 *** Warning: the command libtool uses to detect shared libraries,
10437 *** $file_magic_cmd, produces output that libtool cannot recognize.
10438 *** The result is that libtool may fail to recognize shared libraries
10439 *** as such.  This will affect the creation of libtool libraries that
10440 *** depend on shared libraries, but programs linked with such libtool
10441 *** libraries will work regardless of this problem.  Nevertheless, you
10442 *** may want to report the problem to your system manager and/or to
10443 *** bug-libtool@gnu.org
10444
10445 _LT_EOF
10446           fi ;;
10447         esac
10448       fi
10449       break
10450     fi
10451   done
10452   IFS="$lt_save_ifs"
10453   MAGIC_CMD="$lt_save_MAGIC_CMD"
10454   ;;
10455 esac
10456 fi
10457
10458 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10459 if test -n "$MAGIC_CMD"; then
10460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10461 $as_echo "$MAGIC_CMD" >&6; }
10462 else
10463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10464 $as_echo "no" >&6; }
10465 fi
10466
10467
10468
10469
10470
10471 if test -z "$lt_cv_path_MAGIC_CMD"; then
10472   if test -n "$ac_tool_prefix"; then
10473     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10474 $as_echo_n "checking for file... " >&6; }
10475 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10476   $as_echo_n "(cached) " >&6
10477 else
10478   case $MAGIC_CMD in
10479 [\\/*] |  ?:[\\/]*)
10480   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10481   ;;
10482 *)
10483   lt_save_MAGIC_CMD="$MAGIC_CMD"
10484   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10485   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10486   for ac_dir in $ac_dummy; do
10487     IFS="$lt_save_ifs"
10488     test -z "$ac_dir" && ac_dir=.
10489     if test -f $ac_dir/file; then
10490       lt_cv_path_MAGIC_CMD="$ac_dir/file"
10491       if test -n "$file_magic_test_file"; then
10492         case $deplibs_check_method in
10493         "file_magic "*)
10494           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10495           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10496           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10497             $EGREP "$file_magic_regex" > /dev/null; then
10498             :
10499           else
10500             cat <<_LT_EOF 1>&2
10501
10502 *** Warning: the command libtool uses to detect shared libraries,
10503 *** $file_magic_cmd, produces output that libtool cannot recognize.
10504 *** The result is that libtool may fail to recognize shared libraries
10505 *** as such.  This will affect the creation of libtool libraries that
10506 *** depend on shared libraries, but programs linked with such libtool
10507 *** libraries will work regardless of this problem.  Nevertheless, you
10508 *** may want to report the problem to your system manager and/or to
10509 *** bug-libtool@gnu.org
10510
10511 _LT_EOF
10512           fi ;;
10513         esac
10514       fi
10515       break
10516     fi
10517   done
10518   IFS="$lt_save_ifs"
10519   MAGIC_CMD="$lt_save_MAGIC_CMD"
10520   ;;
10521 esac
10522 fi
10523
10524 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10525 if test -n "$MAGIC_CMD"; then
10526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10527 $as_echo "$MAGIC_CMD" >&6; }
10528 else
10529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10530 $as_echo "no" >&6; }
10531 fi
10532
10533
10534   else
10535     MAGIC_CMD=:
10536   fi
10537 fi
10538
10539   fi
10540   ;;
10541 esac
10542
10543 # Use C for the default configuration in the libtool script
10544
10545 lt_save_CC="$CC"
10546 ac_ext=c
10547 ac_cpp='$CPP $CPPFLAGS'
10548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10551
10552
10553 # Source file extension for C test sources.
10554 ac_ext=c
10555
10556 # Object file extension for compiled C test sources.
10557 objext=o
10558 objext=$objext
10559
10560 # Code to be used in simple compile tests
10561 lt_simple_compile_test_code="int some_variable = 0;"
10562
10563 # Code to be used in simple link tests
10564 lt_simple_link_test_code='int main(){return(0);}'
10565
10566
10567
10568
10569
10570
10571
10572 # If no C compiler was specified, use CC.
10573 LTCC=${LTCC-"$CC"}
10574
10575 # If no C compiler flags were specified, use CFLAGS.
10576 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10577
10578 # Allow CC to be a program name with arguments.
10579 compiler=$CC
10580
10581 # Save the default compiler, since it gets overwritten when the other
10582 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10583 compiler_DEFAULT=$CC
10584
10585 # save warnings/boilerplate of simple test code
10586 ac_outfile=conftest.$ac_objext
10587 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10588 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10589 _lt_compiler_boilerplate=`cat conftest.err`
10590 $RM conftest*
10591
10592 ac_outfile=conftest.$ac_objext
10593 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10594 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10595 _lt_linker_boilerplate=`cat conftest.err`
10596 $RM -r conftest*
10597
10598
10599 ## CAVEAT EMPTOR:
10600 ## There is no encapsulation within the following macros, do not change
10601 ## the running order or otherwise move them around unless you know exactly
10602 ## what you are doing...
10603 if test -n "$compiler"; then
10604
10605 lt_prog_compiler_no_builtin_flag=
10606
10607 if test "$GCC" = yes; then
10608   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10609
10610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10611 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10612 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10613   $as_echo_n "(cached) " >&6
10614 else
10615   lt_cv_prog_compiler_rtti_exceptions=no
10616    ac_outfile=conftest.$ac_objext
10617    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10618    lt_compiler_flag="-fno-rtti -fno-exceptions"
10619    # Insert the option either (1) after the last *FLAGS variable, or
10620    # (2) before a word containing "conftest.", or (3) at the end.
10621    # Note that $ac_compile itself does not contain backslashes and begins
10622    # with a dollar sign (not a hyphen), so the echo should work correctly.
10623    # The option is referenced via a variable to avoid confusing sed.
10624    lt_compile=`echo "$ac_compile" | $SED \
10625    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10626    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10627    -e 's:$: $lt_compiler_flag:'`
10628    (eval echo "\"\$as_me:10628: $lt_compile\"" >&5)
10629    (eval "$lt_compile" 2>conftest.err)
10630    ac_status=$?
10631    cat conftest.err >&5
10632    echo "$as_me:10632: \$? = $ac_status" >&5
10633    if (exit $ac_status) && test -s "$ac_outfile"; then
10634      # The compiler can only warn and ignore the option if not recognized
10635      # So say no if there are warnings other than the usual output.
10636      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10637      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10638      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10639        lt_cv_prog_compiler_rtti_exceptions=yes
10640      fi
10641    fi
10642    $RM conftest*
10643
10644 fi
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10646 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10647
10648 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10649     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10650 else
10651     :
10652 fi
10653
10654 fi
10655
10656
10657
10658
10659
10660
10661   lt_prog_compiler_wl=
10662 lt_prog_compiler_pic=
10663 lt_prog_compiler_static=
10664
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10666 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10667
10668   if test "$GCC" = yes; then
10669     lt_prog_compiler_wl='-Wl,'
10670     lt_prog_compiler_static='-static'
10671
10672     case $host_os in
10673       aix*)
10674       # All AIX code is PIC.
10675       if test "$host_cpu" = ia64; then
10676         # AIX 5 now supports IA64 processor
10677         lt_prog_compiler_static='-Bstatic'
10678       fi
10679       ;;
10680
10681     amigaos*)
10682       case $host_cpu in
10683       powerpc)
10684             # see comment about AmigaOS4 .so support
10685             lt_prog_compiler_pic='-fPIC'
10686         ;;
10687       m68k)
10688             # FIXME: we need at least 68020 code to build shared libraries, but
10689             # adding the `-m68020' flag to GCC prevents building anything better,
10690             # like `-m68040'.
10691             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10692         ;;
10693       esac
10694       ;;
10695
10696     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10697       # PIC is the default for these OSes.
10698       ;;
10699
10700     mingw* | cygwin* | pw32* | os2* | cegcc*)
10701       # This hack is so that the source file can tell whether it is being
10702       # built for inclusion in a dll (and should export symbols for example).
10703       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10704       # (--disable-auto-import) libraries
10705       lt_prog_compiler_pic='-DDLL_EXPORT'
10706       ;;
10707
10708     darwin* | rhapsody*)
10709       # PIC is the default on this platform
10710       # Common symbols not allowed in MH_DYLIB files
10711       lt_prog_compiler_pic='-fno-common'
10712       ;;
10713
10714     hpux*)
10715       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10716       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10717       # sets the default TLS model and affects inlining.
10718       case $host_cpu in
10719       hppa*64*)
10720         # +Z the default
10721         ;;
10722       *)
10723         lt_prog_compiler_pic='-fPIC'
10724         ;;
10725       esac
10726       ;;
10727
10728     interix[3-9]*)
10729       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10730       # Instead, we relocate shared libraries at runtime.
10731       ;;
10732
10733     msdosdjgpp*)
10734       # Just because we use GCC doesn't mean we suddenly get shared libraries
10735       # on systems that don't support them.
10736       lt_prog_compiler_can_build_shared=no
10737       enable_shared=no
10738       ;;
10739
10740     *nto* | *qnx*)
10741       # QNX uses GNU C++, but need to define -shared option too, otherwise
10742       # it will coredump.
10743       lt_prog_compiler_pic='-fPIC -shared'
10744       ;;
10745
10746     sysv4*MP*)
10747       if test -d /usr/nec; then
10748         lt_prog_compiler_pic=-Kconform_pic
10749       fi
10750       ;;
10751
10752     *)
10753       lt_prog_compiler_pic='-fPIC'
10754       ;;
10755     esac
10756   else
10757     # PORTME Check for flag to pass linker flags through the system compiler.
10758     case $host_os in
10759     aix*)
10760       lt_prog_compiler_wl='-Wl,'
10761       if test "$host_cpu" = ia64; then
10762         # AIX 5 now supports IA64 processor
10763         lt_prog_compiler_static='-Bstatic'
10764       else
10765         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10766       fi
10767       ;;
10768
10769     mingw* | cygwin* | pw32* | os2* | cegcc*)
10770       # This hack is so that the source file can tell whether it is being
10771       # built for inclusion in a dll (and should export symbols for example).
10772       lt_prog_compiler_pic='-DDLL_EXPORT'
10773       ;;
10774
10775     hpux9* | hpux10* | hpux11*)
10776       lt_prog_compiler_wl='-Wl,'
10777       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10778       # not for PA HP-UX.
10779       case $host_cpu in
10780       hppa*64*|ia64*)
10781         # +Z the default
10782         ;;
10783       *)
10784         lt_prog_compiler_pic='+Z'
10785         ;;
10786       esac
10787       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10788       lt_prog_compiler_static='${wl}-a ${wl}archive'
10789       ;;
10790
10791     irix5* | irix6* | nonstopux*)
10792       lt_prog_compiler_wl='-Wl,'
10793       # PIC (with -KPIC) is the default.
10794       lt_prog_compiler_static='-non_shared'
10795       ;;
10796
10797     linux* | k*bsd*-gnu)
10798       case $cc_basename in
10799       # old Intel for x86_64 which still supported -KPIC.
10800       ecc*)
10801         lt_prog_compiler_wl='-Wl,'
10802         lt_prog_compiler_pic='-KPIC'
10803         lt_prog_compiler_static='-static'
10804         ;;
10805       # icc used to be incompatible with GCC.
10806       # ICC 10 doesn't accept -KPIC any more.
10807       icc* | ifort*)
10808         lt_prog_compiler_wl='-Wl,'
10809         lt_prog_compiler_pic='-fPIC'
10810         lt_prog_compiler_static='-static'
10811         ;;
10812       # Lahey Fortran 8.1.
10813       lf95*)
10814         lt_prog_compiler_wl='-Wl,'
10815         lt_prog_compiler_pic='--shared'
10816         lt_prog_compiler_static='--static'
10817         ;;
10818       pgcc* | pgf77* | pgf90* | pgf95*)
10819         # Portland Group compilers (*not* the Pentium gcc compiler,
10820         # which looks to be a dead project)
10821         lt_prog_compiler_wl='-Wl,'
10822         lt_prog_compiler_pic='-fpic'
10823         lt_prog_compiler_static='-Bstatic'
10824         ;;
10825       ccc*)
10826         lt_prog_compiler_wl='-Wl,'
10827         # All Alpha code is PIC.
10828         lt_prog_compiler_static='-non_shared'
10829         ;;
10830       xl*)
10831         # IBM XL C 8.0/Fortran 10.1 on PPC
10832         lt_prog_compiler_wl='-Wl,'
10833         lt_prog_compiler_pic='-qpic'
10834         lt_prog_compiler_static='-qstaticlink'
10835         ;;
10836       *)
10837         case `$CC -V 2>&1 | sed 5q` in
10838         *Sun\ C*)
10839           # Sun C 5.9
10840           lt_prog_compiler_pic='-KPIC'
10841           lt_prog_compiler_static='-Bstatic'
10842           lt_prog_compiler_wl='-Wl,'
10843           ;;
10844         *Sun\ F*)
10845           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10846           lt_prog_compiler_pic='-KPIC'
10847           lt_prog_compiler_static='-Bstatic'
10848           lt_prog_compiler_wl=''
10849           ;;
10850         esac
10851         ;;
10852       esac
10853       ;;
10854
10855     newsos6)
10856       lt_prog_compiler_pic='-KPIC'
10857       lt_prog_compiler_static='-Bstatic'
10858       ;;
10859
10860     *nto* | *qnx*)
10861       # QNX uses GNU C++, but need to define -shared option too, otherwise
10862       # it will coredump.
10863       lt_prog_compiler_pic='-fPIC -shared'
10864       ;;
10865
10866     osf3* | osf4* | osf5*)
10867       lt_prog_compiler_wl='-Wl,'
10868       # All OSF/1 code is PIC.
10869       lt_prog_compiler_static='-non_shared'
10870       ;;
10871
10872     rdos*)
10873       lt_prog_compiler_static='-non_shared'
10874       ;;
10875
10876     solaris*)
10877       lt_prog_compiler_pic='-KPIC'
10878       lt_prog_compiler_static='-Bstatic'
10879       case $cc_basename in
10880       f77* | f90* | f95*)
10881         lt_prog_compiler_wl='-Qoption ld ';;
10882       *)
10883         lt_prog_compiler_wl='-Wl,';;
10884       esac
10885       ;;
10886
10887     sunos4*)
10888       lt_prog_compiler_wl='-Qoption ld '
10889       lt_prog_compiler_pic='-PIC'
10890       lt_prog_compiler_static='-Bstatic'
10891       ;;
10892
10893     sysv4 | sysv4.2uw2* | sysv4.3*)
10894       lt_prog_compiler_wl='-Wl,'
10895       lt_prog_compiler_pic='-KPIC'
10896       lt_prog_compiler_static='-Bstatic'
10897       ;;
10898
10899     sysv4*MP*)
10900       if test -d /usr/nec ;then
10901         lt_prog_compiler_pic='-Kconform_pic'
10902         lt_prog_compiler_static='-Bstatic'
10903       fi
10904       ;;
10905
10906     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10907       lt_prog_compiler_wl='-Wl,'
10908       lt_prog_compiler_pic='-KPIC'
10909       lt_prog_compiler_static='-Bstatic'
10910       ;;
10911
10912     unicos*)
10913       lt_prog_compiler_wl='-Wl,'
10914       lt_prog_compiler_can_build_shared=no
10915       ;;
10916
10917     uts4*)
10918       lt_prog_compiler_pic='-pic'
10919       lt_prog_compiler_static='-Bstatic'
10920       ;;
10921
10922     *)
10923       lt_prog_compiler_can_build_shared=no
10924       ;;
10925     esac
10926   fi
10927
10928 case $host_os in
10929   # For platforms which do not support PIC, -DPIC is meaningless:
10930   *djgpp*)
10931     lt_prog_compiler_pic=
10932     ;;
10933   *)
10934     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10935     ;;
10936 esac
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10938 $as_echo "$lt_prog_compiler_pic" >&6; }
10939
10940
10941
10942
10943
10944
10945 #
10946 # Check to make sure the PIC flag actually works.
10947 #
10948 if test -n "$lt_prog_compiler_pic"; then
10949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10950 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10951 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10952   $as_echo_n "(cached) " >&6
10953 else
10954   lt_cv_prog_compiler_pic_works=no
10955    ac_outfile=conftest.$ac_objext
10956    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10957    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10958    # Insert the option either (1) after the last *FLAGS variable, or
10959    # (2) before a word containing "conftest.", or (3) at the end.
10960    # Note that $ac_compile itself does not contain backslashes and begins
10961    # with a dollar sign (not a hyphen), so the echo should work correctly.
10962    # The option is referenced via a variable to avoid confusing sed.
10963    lt_compile=`echo "$ac_compile" | $SED \
10964    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10965    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10966    -e 's:$: $lt_compiler_flag:'`
10967    (eval echo "\"\$as_me:10967: $lt_compile\"" >&5)
10968    (eval "$lt_compile" 2>conftest.err)
10969    ac_status=$?
10970    cat conftest.err >&5
10971    echo "$as_me:10971: \$? = $ac_status" >&5
10972    if (exit $ac_status) && test -s "$ac_outfile"; then
10973      # The compiler can only warn and ignore the option if not recognized
10974      # So say no if there are warnings other than the usual output.
10975      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10976      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10977      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10978        lt_cv_prog_compiler_pic_works=yes
10979      fi
10980    fi
10981    $RM conftest*
10982
10983 fi
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10985 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10986
10987 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10988     case $lt_prog_compiler_pic in
10989      "" | " "*) ;;
10990      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10991      esac
10992 else
10993     lt_prog_compiler_pic=
10994      lt_prog_compiler_can_build_shared=no
10995 fi
10996
10997 fi
10998
10999
11000
11001
11002
11003
11004 #
11005 # Check to make sure the static flag actually works.
11006 #
11007 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11009 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11010 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
11011   $as_echo_n "(cached) " >&6
11012 else
11013   lt_cv_prog_compiler_static_works=no
11014    save_LDFLAGS="$LDFLAGS"
11015    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11016    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11017    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11018      # The linker can only warn and ignore the option if not recognized
11019      # So say no if there are warnings
11020      if test -s conftest.err; then
11021        # Append any errors to the config.log.
11022        cat conftest.err 1>&5
11023        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11024        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11025        if diff conftest.exp conftest.er2 >/dev/null; then
11026          lt_cv_prog_compiler_static_works=yes
11027        fi
11028      else
11029        lt_cv_prog_compiler_static_works=yes
11030      fi
11031    fi
11032    $RM -r conftest*
11033    LDFLAGS="$save_LDFLAGS"
11034
11035 fi
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11037 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11038
11039 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11040     :
11041 else
11042     lt_prog_compiler_static=
11043 fi
11044
11045
11046
11047
11048
11049
11050
11051   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11052 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11053 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
11054   $as_echo_n "(cached) " >&6
11055 else
11056   lt_cv_prog_compiler_c_o=no
11057    $RM -r conftest 2>/dev/null
11058    mkdir conftest
11059    cd conftest
11060    mkdir out
11061    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11062
11063    lt_compiler_flag="-o out/conftest2.$ac_objext"
11064    # Insert the option either (1) after the last *FLAGS variable, or
11065    # (2) before a word containing "conftest.", or (3) at the end.
11066    # Note that $ac_compile itself does not contain backslashes and begins
11067    # with a dollar sign (not a hyphen), so the echo should work correctly.
11068    lt_compile=`echo "$ac_compile" | $SED \
11069    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11070    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11071    -e 's:$: $lt_compiler_flag:'`
11072    (eval echo "\"\$as_me:11072: $lt_compile\"" >&5)
11073    (eval "$lt_compile" 2>out/conftest.err)
11074    ac_status=$?
11075    cat out/conftest.err >&5
11076    echo "$as_me:11076: \$? = $ac_status" >&5
11077    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11078    then
11079      # The compiler can only warn and ignore the option if not recognized
11080      # So say no if there are warnings
11081      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11082      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11083      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11084        lt_cv_prog_compiler_c_o=yes
11085      fi
11086    fi
11087    chmod u+w . 2>&5
11088    $RM conftest*
11089    # SGI C++ compiler will create directory out/ii_files/ for
11090    # template instantiation
11091    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11092    $RM out/* && rmdir out
11093    cd ..
11094    $RM -r conftest
11095    $RM conftest*
11096
11097 fi
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11099 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11100
11101
11102
11103
11104
11105
11106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11107 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11108 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
11109   $as_echo_n "(cached) " >&6
11110 else
11111   lt_cv_prog_compiler_c_o=no
11112    $RM -r conftest 2>/dev/null
11113    mkdir conftest
11114    cd conftest
11115    mkdir out
11116    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11117
11118    lt_compiler_flag="-o out/conftest2.$ac_objext"
11119    # Insert the option either (1) after the last *FLAGS variable, or
11120    # (2) before a word containing "conftest.", or (3) at the end.
11121    # Note that $ac_compile itself does not contain backslashes and begins
11122    # with a dollar sign (not a hyphen), so the echo should work correctly.
11123    lt_compile=`echo "$ac_compile" | $SED \
11124    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11125    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11126    -e 's:$: $lt_compiler_flag:'`
11127    (eval echo "\"\$as_me:11127: $lt_compile\"" >&5)
11128    (eval "$lt_compile" 2>out/conftest.err)
11129    ac_status=$?
11130    cat out/conftest.err >&5
11131    echo "$as_me:11131: \$? = $ac_status" >&5
11132    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11133    then
11134      # The compiler can only warn and ignore the option if not recognized
11135      # So say no if there are warnings
11136      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11137      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11138      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11139        lt_cv_prog_compiler_c_o=yes
11140      fi
11141    fi
11142    chmod u+w . 2>&5
11143    $RM conftest*
11144    # SGI C++ compiler will create directory out/ii_files/ for
11145    # template instantiation
11146    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11147    $RM out/* && rmdir out
11148    cd ..
11149    $RM -r conftest
11150    $RM conftest*
11151
11152 fi
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11154 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11155
11156
11157
11158
11159 hard_links="nottested"
11160 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11161   # do not overwrite the value of need_locks provided by the user
11162   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11163 $as_echo_n "checking if we can lock with hard links... " >&6; }
11164   hard_links=yes
11165   $RM conftest*
11166   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11167   touch conftest.a
11168   ln conftest.a conftest.b 2>&5 || hard_links=no
11169   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11171 $as_echo "$hard_links" >&6; }
11172   if test "$hard_links" = no; then
11173     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11174 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11175     need_locks=warn
11176   fi
11177 else
11178   need_locks=no
11179 fi
11180
11181
11182
11183
11184
11185
11186   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11187 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11188
11189   runpath_var=
11190   allow_undefined_flag=
11191   always_export_symbols=no
11192   archive_cmds=
11193   archive_expsym_cmds=
11194   compiler_needs_object=no
11195   enable_shared_with_static_runtimes=no
11196   export_dynamic_flag_spec=
11197   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11198   hardcode_automatic=no
11199   hardcode_direct=no
11200   hardcode_direct_absolute=no
11201   hardcode_libdir_flag_spec=
11202   hardcode_libdir_flag_spec_ld=
11203   hardcode_libdir_separator=
11204   hardcode_minus_L=no
11205   hardcode_shlibpath_var=unsupported
11206   inherit_rpath=no
11207   link_all_deplibs=unknown
11208   module_cmds=
11209   module_expsym_cmds=
11210   old_archive_from_new_cmds=
11211   old_archive_from_expsyms_cmds=
11212   thread_safe_flag_spec=
11213   whole_archive_flag_spec=
11214   # include_expsyms should be a list of space-separated symbols to be *always*
11215   # included in the symbol list
11216   include_expsyms=
11217   # exclude_expsyms can be an extended regexp of symbols to exclude
11218   # it will be wrapped by ` (' and `)$', so one must not match beginning or
11219   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11220   # as well as any symbol that contains `d'.
11221   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11222   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11223   # platforms (ab)use it in PIC code, but their linkers get confused if
11224   # the symbol is explicitly referenced.  Since portable code cannot
11225   # rely on this symbol name, it's probably fine to never include it in
11226   # preloaded symbol tables.
11227   # Exclude shared library initialization/finalization symbols.
11228   extract_expsyms_cmds=
11229
11230   case $host_os in
11231   cygwin* | mingw* | pw32* | cegcc*)
11232     # FIXME: the MSVC++ port hasn't been tested in a loooong time
11233     # When not using gcc, we currently assume that we are using
11234     # Microsoft Visual C++.
11235     if test "$GCC" != yes; then
11236       with_gnu_ld=no
11237     fi
11238     ;;
11239   interix*)
11240     # we just hope/assume this is gcc and not c89 (= MSVC++)
11241     with_gnu_ld=yes
11242     ;;
11243   openbsd*)
11244     with_gnu_ld=no
11245     ;;
11246   esac
11247
11248   ld_shlibs=yes
11249   if test "$with_gnu_ld" = yes; then
11250     # If archive_cmds runs LD, not CC, wlarc should be empty
11251     wlarc='${wl}'
11252
11253     # Set some defaults for GNU ld with shared library support. These
11254     # are reset later if shared libraries are not supported. Putting them
11255     # here allows them to be overridden if necessary.
11256     runpath_var=LD_RUN_PATH
11257     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11258     export_dynamic_flag_spec='${wl}--export-dynamic'
11259     # ancient GNU ld didn't support --whole-archive et. al.
11260     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11261       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11262     else
11263       whole_archive_flag_spec=
11264     fi
11265     supports_anon_versioning=no
11266     case `$LD -v 2>&1` in
11267       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11268       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11269       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11270       *\ 2.11.*) ;; # other 2.11 versions
11271       *) supports_anon_versioning=yes ;;
11272     esac
11273
11274     # See if GNU ld supports shared libraries.
11275     case $host_os in
11276     aix[3-9]*)
11277       # On AIX/PPC, the GNU linker is very broken
11278       if test "$host_cpu" != ia64; then
11279         ld_shlibs=no
11280         cat <<_LT_EOF 1>&2
11281
11282 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
11283 *** to be unable to reliably create shared libraries on AIX.
11284 *** Therefore, libtool is disabling shared libraries support.  If you
11285 *** really care for shared libraries, you may want to modify your PATH
11286 *** so that a non-GNU linker is found, and then restart.
11287
11288 _LT_EOF
11289       fi
11290       ;;
11291
11292     amigaos*)
11293       case $host_cpu in
11294       powerpc)
11295             # see comment about AmigaOS4 .so support
11296             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11297             archive_expsym_cmds=''
11298         ;;
11299       m68k)
11300             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
11301             hardcode_libdir_flag_spec='-L$libdir'
11302             hardcode_minus_L=yes
11303         ;;
11304       esac
11305       ;;
11306
11307     beos*)
11308       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11309         allow_undefined_flag=unsupported
11310         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11311         # support --undefined.  This deserves some investigation.  FIXME
11312         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11313       else
11314         ld_shlibs=no
11315       fi
11316       ;;
11317
11318     cygwin* | mingw* | pw32* | cegcc*)
11319       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11320       # as there is no search path for DLLs.
11321       hardcode_libdir_flag_spec='-L$libdir'
11322       allow_undefined_flag=unsupported
11323       always_export_symbols=no
11324       enable_shared_with_static_runtimes=yes
11325       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11326
11327       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11328         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11329         # If the export-symbols file already is a .def file (1st line
11330         # is EXPORTS), use it as is; otherwise, prepend...
11331         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11332           cp $export_symbols $output_objdir/$soname.def;
11333         else
11334           echo EXPORTS > $output_objdir/$soname.def;
11335           cat $export_symbols >> $output_objdir/$soname.def;
11336         fi~
11337         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11338       else
11339         ld_shlibs=no
11340       fi
11341       ;;
11342
11343     interix[3-9]*)
11344       hardcode_direct=no
11345       hardcode_shlibpath_var=no
11346       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11347       export_dynamic_flag_spec='${wl}-E'
11348       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11349       # Instead, shared libraries are loaded at an image base (0x10000000 by
11350       # default) and relocated if they conflict, which is a slow very memory
11351       # consuming and fragmenting process.  To avoid this, we pick a random,
11352       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11353       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11354       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11355       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11356       ;;
11357
11358     gnu* | linux* | tpf* | k*bsd*-gnu)
11359       tmp_diet=no
11360       if test "$host_os" = linux-dietlibc; then
11361         case $cc_basename in
11362           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
11363         esac
11364       fi
11365       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11366          && test "$tmp_diet" = no
11367       then
11368         tmp_addflag=
11369         tmp_sharedflag='-shared'
11370         case $cc_basename,$host_cpu in
11371         pgcc*)                          # Portland Group C compiler
11372           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11373           tmp_addflag=' $pic_flag'
11374           ;;
11375         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
11376           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11377           tmp_addflag=' $pic_flag -Mnomain' ;;
11378         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11379           tmp_addflag=' -i_dynamic' ;;
11380         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11381           tmp_addflag=' -i_dynamic -nofor_main' ;;
11382         ifc* | ifort*)                  # Intel Fortran compiler
11383           tmp_addflag=' -nofor_main' ;;
11384         lf95*)                          # Lahey Fortran 8.1
11385           whole_archive_flag_spec=
11386           tmp_sharedflag='--shared' ;;
11387         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
11388           tmp_sharedflag='-qmkshrobj'
11389           tmp_addflag= ;;
11390         esac
11391         case `$CC -V 2>&1 | sed 5q` in
11392         *Sun\ C*)                       # Sun C 5.9
11393           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11394           compiler_needs_object=yes
11395           tmp_sharedflag='-G' ;;
11396         *Sun\ F*)                       # Sun Fortran 8.3
11397           tmp_sharedflag='-G' ;;
11398         esac
11399         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11400
11401         if test "x$supports_anon_versioning" = xyes; then
11402           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11403             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11404             echo "local: *; };" >> $output_objdir/$libname.ver~
11405             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11406         fi
11407
11408         case $cc_basename in
11409         xlf*)
11410           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11411           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11412           hardcode_libdir_flag_spec=
11413           hardcode_libdir_flag_spec_ld='-rpath $libdir'
11414           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11415           if test "x$supports_anon_versioning" = xyes; then
11416             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11417               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11418               echo "local: *; };" >> $output_objdir/$libname.ver~
11419               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11420           fi
11421           ;;
11422         esac
11423       else
11424         ld_shlibs=no
11425       fi
11426       ;;
11427
11428     netbsd* | netbsdelf*-gnu)
11429       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11430         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11431         wlarc=
11432       else
11433         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11434         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11435       fi
11436       ;;
11437
11438     solaris*)
11439       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11440         ld_shlibs=no
11441         cat <<_LT_EOF 1>&2
11442
11443 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11444 *** create shared libraries on Solaris systems.  Therefore, libtool
11445 *** is disabling shared libraries support.  We urge you to upgrade GNU
11446 *** binutils to release 2.9.1 or newer.  Another option is to modify
11447 *** your PATH or compiler configuration so that the native linker is
11448 *** used, and then restart.
11449
11450 _LT_EOF
11451       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11452         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11453         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11454       else
11455         ld_shlibs=no
11456       fi
11457       ;;
11458
11459     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11460       case `$LD -v 2>&1` in
11461         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11462         ld_shlibs=no
11463         cat <<_LT_EOF 1>&2
11464
11465 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11466 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11467 *** is disabling shared libraries support.  We urge you to upgrade GNU
11468 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11469 *** your PATH or compiler configuration so that the native linker is
11470 *** used, and then restart.
11471
11472 _LT_EOF
11473         ;;
11474         *)
11475           # For security reasons, it is highly recommended that you always
11476           # use absolute paths for naming shared libraries, and exclude the
11477           # DT_RUNPATH tag from executables and libraries.  But doing so
11478           # requires that you compile everything twice, which is a pain.
11479           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11480             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11481             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11482             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11483           else
11484             ld_shlibs=no
11485           fi
11486         ;;
11487       esac
11488       ;;
11489
11490     sunos4*)
11491       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11492       wlarc=
11493       hardcode_direct=yes
11494       hardcode_shlibpath_var=no
11495       ;;
11496
11497     *)
11498       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11499         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11500         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11501       else
11502         ld_shlibs=no
11503       fi
11504       ;;
11505     esac
11506
11507     if test "$ld_shlibs" = no; then
11508       runpath_var=
11509       hardcode_libdir_flag_spec=
11510       export_dynamic_flag_spec=
11511       whole_archive_flag_spec=
11512     fi
11513   else
11514     # PORTME fill in a description of your system's linker (not GNU ld)
11515     case $host_os in
11516     aix3*)
11517       allow_undefined_flag=unsupported
11518       always_export_symbols=yes
11519       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
11520       # Note: this linker hardcodes the directories in LIBPATH if there
11521       # are no directories specified by -L.
11522       hardcode_minus_L=yes
11523       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11524         # Neither direct hardcoding nor static linking is supported with a
11525         # broken collect2.
11526         hardcode_direct=unsupported
11527       fi
11528       ;;
11529
11530     aix[4-9]*)
11531       if test "$host_cpu" = ia64; then
11532         # On IA64, the linker does run time linking by default, so we don't
11533         # have to do anything special.
11534         aix_use_runtimelinking=no
11535         exp_sym_flag='-Bexport'
11536         no_entry_flag=""
11537       else
11538         # If we're using GNU nm, then we don't want the "-C" option.
11539         # -C means demangle to AIX nm, but means don't demangle with GNU nm
11540         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11541           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11542         else
11543           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11544         fi
11545         aix_use_runtimelinking=no
11546
11547         # Test if we are trying to use run time linking or normal
11548         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11549         # need to do runtime linking.
11550         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11551           for ld_flag in $LDFLAGS; do
11552           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11553             aix_use_runtimelinking=yes
11554             break
11555           fi
11556           done
11557           ;;
11558         esac
11559
11560         exp_sym_flag='-bexport'
11561         no_entry_flag='-bnoentry'
11562       fi
11563
11564       # When large executables or shared objects are built, AIX ld can
11565       # have problems creating the table of contents.  If linking a library
11566       # or program results in "error TOC overflow" add -mminimal-toc to
11567       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11568       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11569
11570       archive_cmds=''
11571       hardcode_direct=yes
11572       hardcode_direct_absolute=yes
11573       hardcode_libdir_separator=':'
11574       link_all_deplibs=yes
11575       file_list_spec='${wl}-f,'
11576
11577       if test "$GCC" = yes; then
11578         case $host_os in aix4.[012]|aix4.[012].*)
11579         # We only want to do this on AIX 4.2 and lower, the check
11580         # below for broken collect2 doesn't work under 4.3+
11581           collect2name=`${CC} -print-prog-name=collect2`
11582           if test -f "$collect2name" &&
11583            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11584           then
11585           # We have reworked collect2
11586           :
11587           else
11588           # We have old collect2
11589           hardcode_direct=unsupported
11590           # It fails to find uninstalled libraries when the uninstalled
11591           # path is not listed in the libpath.  Setting hardcode_minus_L
11592           # to unsupported forces relinking
11593           hardcode_minus_L=yes
11594           hardcode_libdir_flag_spec='-L$libdir'
11595           hardcode_libdir_separator=
11596           fi
11597           ;;
11598         esac
11599         shared_flag='-shared'
11600         if test "$aix_use_runtimelinking" = yes; then
11601           shared_flag="$shared_flag "'${wl}-G'
11602         fi
11603         link_all_deplibs=no
11604       else
11605         # not using gcc
11606         if test "$host_cpu" = ia64; then
11607         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11608         # chokes on -Wl,-G. The following line is correct:
11609           shared_flag='-G'
11610         else
11611           if test "$aix_use_runtimelinking" = yes; then
11612             shared_flag='${wl}-G'
11613           else
11614             shared_flag='${wl}-bM:SRE'
11615           fi
11616         fi
11617       fi
11618
11619       export_dynamic_flag_spec='${wl}-bexpall'
11620       # It seems that -bexpall does not export symbols beginning with
11621       # underscore (_), so it is better to generate a list of symbols to export.
11622       always_export_symbols=yes
11623       if test "$aix_use_runtimelinking" = yes; then
11624         # Warning - without using the other runtime loading flags (-brtl),
11625         # -berok will link without error, but may produce a broken library.
11626         allow_undefined_flag='-berok'
11627         # Determine the default libpath from the value encoded in an
11628         # empty executable.
11629         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11630 /* end confdefs.h.  */
11631
11632 int
11633 main ()
11634 {
11635
11636   ;
11637   return 0;
11638 }
11639 _ACEOF
11640 if ac_fn_c_try_link "$LINENO"; then :
11641
11642 lt_aix_libpath_sed='
11643     /Import File Strings/,/^$/ {
11644         /^0/ {
11645             s/^0  *\(.*\)$/\1/
11646             p
11647         }
11648     }'
11649 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11650 # Check for a 64-bit object if we didn't find anything.
11651 if test -z "$aix_libpath"; then
11652   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11653 fi
11654 fi
11655 rm -f core conftest.err conftest.$ac_objext \
11656     conftest$ac_exeext conftest.$ac_ext
11657 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11658
11659         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11660         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11661       else
11662         if test "$host_cpu" = ia64; then
11663           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11664           allow_undefined_flag="-z nodefs"
11665           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11666         else
11667          # Determine the default libpath from the value encoded in an
11668          # empty executable.
11669          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11670 /* end confdefs.h.  */
11671
11672 int
11673 main ()
11674 {
11675
11676   ;
11677   return 0;
11678 }
11679 _ACEOF
11680 if ac_fn_c_try_link "$LINENO"; then :
11681
11682 lt_aix_libpath_sed='
11683     /Import File Strings/,/^$/ {
11684         /^0/ {
11685             s/^0  *\(.*\)$/\1/
11686             p
11687         }
11688     }'
11689 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11690 # Check for a 64-bit object if we didn't find anything.
11691 if test -z "$aix_libpath"; then
11692   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11693 fi
11694 fi
11695 rm -f core conftest.err conftest.$ac_objext \
11696     conftest$ac_exeext conftest.$ac_ext
11697 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11698
11699          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11700           # Warning - without using the other run time loading flags,
11701           # -berok will link without error, but may produce a broken library.
11702           no_undefined_flag=' ${wl}-bernotok'
11703           allow_undefined_flag=' ${wl}-berok'
11704           # Exported symbols can be pulled into shared objects from archives
11705           whole_archive_flag_spec='$convenience'
11706           archive_cmds_need_lc=yes
11707           # This is similar to how AIX traditionally builds its shared libraries.
11708           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11709         fi
11710       fi
11711       ;;
11712
11713     amigaos*)
11714       case $host_cpu in
11715       powerpc)
11716             # see comment about AmigaOS4 .so support
11717             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11718             archive_expsym_cmds=''
11719         ;;
11720       m68k)
11721             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
11722             hardcode_libdir_flag_spec='-L$libdir'
11723             hardcode_minus_L=yes
11724         ;;
11725       esac
11726       ;;
11727
11728     bsdi[45]*)
11729       export_dynamic_flag_spec=-rdynamic
11730       ;;
11731
11732     cygwin* | mingw* | pw32* | cegcc*)
11733       # When not using gcc, we currently assume that we are using
11734       # Microsoft Visual C++.
11735       # hardcode_libdir_flag_spec is actually meaningless, as there is
11736       # no search path for DLLs.
11737       hardcode_libdir_flag_spec=' '
11738       allow_undefined_flag=unsupported
11739       # Tell ltmain to make .lib files, not .a files.
11740       libext=lib
11741       # Tell ltmain to make .dll files, not .so files.
11742       shrext_cmds=".dll"
11743       # FIXME: Setting linknames here is a bad hack.
11744       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11745       # The linker will automatically build a .lib file if we build a DLL.
11746       old_archive_from_new_cmds='true'
11747       # FIXME: Should let the user specify the lib program.
11748       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11749       fix_srcfile_path='`cygpath -w "$srcfile"`'
11750       enable_shared_with_static_runtimes=yes
11751       ;;
11752
11753     darwin* | rhapsody*)
11754
11755
11756   archive_cmds_need_lc=no
11757   hardcode_direct=no
11758   hardcode_automatic=yes
11759   hardcode_shlibpath_var=unsupported
11760   whole_archive_flag_spec=''
11761   link_all_deplibs=yes
11762   allow_undefined_flag="$_lt_dar_allow_undefined"
11763   case $cc_basename in
11764      ifort*) _lt_dar_can_shared=yes ;;
11765      *) _lt_dar_can_shared=$GCC ;;
11766   esac
11767   if test "$_lt_dar_can_shared" = "yes"; then
11768     output_verbose_link_cmd=echo
11769     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11770     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11771     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11772     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11773
11774   else
11775   ld_shlibs=no
11776   fi
11777
11778       ;;
11779
11780     dgux*)
11781       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11782       hardcode_libdir_flag_spec='-L$libdir'
11783       hardcode_shlibpath_var=no
11784       ;;
11785
11786     freebsd1*)
11787       ld_shlibs=no
11788       ;;
11789
11790     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11791     # support.  Future versions do this automatically, but an explicit c++rt0.o
11792     # does not break anything, and helps significantly (at the cost of a little
11793     # extra space).
11794     freebsd2.2*)
11795       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11796       hardcode_libdir_flag_spec='-R$libdir'
11797       hardcode_direct=yes
11798       hardcode_shlibpath_var=no
11799       ;;
11800
11801     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11802     freebsd2*)
11803       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11804       hardcode_direct=yes
11805       hardcode_minus_L=yes
11806       hardcode_shlibpath_var=no
11807       ;;
11808
11809     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11810     freebsd* | dragonfly*)
11811       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11812       hardcode_libdir_flag_spec='-R$libdir'
11813       hardcode_direct=yes
11814       hardcode_shlibpath_var=no
11815       ;;
11816
11817     hpux9*)
11818       if test "$GCC" = yes; then
11819         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11820       else
11821         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11822       fi
11823       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11824       hardcode_libdir_separator=:
11825       hardcode_direct=yes
11826
11827       # hardcode_minus_L: Not really in the search PATH,
11828       # but as the default location of the library.
11829       hardcode_minus_L=yes
11830       export_dynamic_flag_spec='${wl}-E'
11831       ;;
11832
11833     hpux10*)
11834       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11835         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11836       else
11837         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11838       fi
11839       if test "$with_gnu_ld" = no; then
11840         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11841         hardcode_libdir_flag_spec_ld='+b $libdir'
11842         hardcode_libdir_separator=:
11843         hardcode_direct=yes
11844         hardcode_direct_absolute=yes
11845         export_dynamic_flag_spec='${wl}-E'
11846         # hardcode_minus_L: Not really in the search PATH,
11847         # but as the default location of the library.
11848         hardcode_minus_L=yes
11849       fi
11850       ;;
11851
11852     hpux11*)
11853       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11854         case $host_cpu in
11855         hppa*64*)
11856           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11857           ;;
11858         ia64*)
11859           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11860           ;;
11861         *)
11862           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11863           ;;
11864         esac
11865       else
11866         case $host_cpu in
11867         hppa*64*)
11868           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11869           ;;
11870         ia64*)
11871           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11872           ;;
11873         *)
11874           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11875           ;;
11876         esac
11877       fi
11878       if test "$with_gnu_ld" = no; then
11879         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11880         hardcode_libdir_separator=:
11881
11882         case $host_cpu in
11883         hppa*64*|ia64*)
11884           hardcode_direct=no
11885           hardcode_shlibpath_var=no
11886           ;;
11887         *)
11888           hardcode_direct=yes
11889           hardcode_direct_absolute=yes
11890           export_dynamic_flag_spec='${wl}-E'
11891
11892           # hardcode_minus_L: Not really in the search PATH,
11893           # but as the default location of the library.
11894           hardcode_minus_L=yes
11895           ;;
11896         esac
11897       fi
11898       ;;
11899
11900     irix5* | irix6* | nonstopux*)
11901       if test "$GCC" = yes; then
11902         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11903         # Try to use the -exported_symbol ld option, if it does not
11904         # work, assume that -exports_file does not work either and
11905         # implicitly export all symbols.
11906         save_LDFLAGS="$LDFLAGS"
11907         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11908         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11909 /* end confdefs.h.  */
11910 int foo(void) {}
11911 _ACEOF
11912 if ac_fn_c_try_link "$LINENO"; then :
11913   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11914
11915 fi
11916 rm -f core conftest.err conftest.$ac_objext \
11917     conftest$ac_exeext conftest.$ac_ext
11918         LDFLAGS="$save_LDFLAGS"
11919       else
11920         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11921         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11922       fi
11923       archive_cmds_need_lc='no'
11924       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11925       hardcode_libdir_separator=:
11926       inherit_rpath=yes
11927       link_all_deplibs=yes
11928       ;;
11929
11930     netbsd* | netbsdelf*-gnu)
11931       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11932         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11933       else
11934         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11935       fi
11936       hardcode_libdir_flag_spec='-R$libdir'
11937       hardcode_direct=yes
11938       hardcode_shlibpath_var=no
11939       ;;
11940
11941     newsos6)
11942       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11943       hardcode_direct=yes
11944       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11945       hardcode_libdir_separator=:
11946       hardcode_shlibpath_var=no
11947       ;;
11948
11949     *nto* | *qnx*)
11950       ;;
11951
11952     openbsd*)
11953       if test -f /usr/libexec/ld.so; then
11954         hardcode_direct=yes
11955         hardcode_shlibpath_var=no
11956         hardcode_direct_absolute=yes
11957         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11958           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11959           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11960           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11961           export_dynamic_flag_spec='${wl}-E'
11962         else
11963           case $host_os in
11964            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11965              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11966              hardcode_libdir_flag_spec='-R$libdir'
11967              ;;
11968            *)
11969              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11970              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11971              ;;
11972           esac
11973         fi
11974       else
11975         ld_shlibs=no
11976       fi
11977       ;;
11978
11979     os2*)
11980       hardcode_libdir_flag_spec='-L$libdir'
11981       hardcode_minus_L=yes
11982       allow_undefined_flag=unsupported
11983       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11984       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11985       ;;
11986
11987     osf3*)
11988       if test "$GCC" = yes; then
11989         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11990         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11991       else
11992         allow_undefined_flag=' -expect_unresolved \*'
11993         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11994       fi
11995       archive_cmds_need_lc='no'
11996       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11997       hardcode_libdir_separator=:
11998       ;;
11999
12000     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12001       if test "$GCC" = yes; then
12002         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12003         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12004         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12005       else
12006         allow_undefined_flag=' -expect_unresolved \*'
12007         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12008         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12009         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
12010
12011         # Both c and cxx compiler support -rpath directly
12012         hardcode_libdir_flag_spec='-rpath $libdir'
12013       fi
12014       archive_cmds_need_lc='no'
12015       hardcode_libdir_separator=:
12016       ;;
12017
12018     solaris*)
12019       no_undefined_flag=' -z defs'
12020       if test "$GCC" = yes; then
12021         wlarc='${wl}'
12022         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12023         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12024           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12025       else
12026         case `$CC -V 2>&1` in
12027         *"Compilers 5.0"*)
12028           wlarc=''
12029           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12030           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12031           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12032           ;;
12033         *)
12034           wlarc='${wl}'
12035           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12036           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12037           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12038           ;;
12039         esac
12040       fi
12041       hardcode_libdir_flag_spec='-R$libdir'
12042       hardcode_shlibpath_var=no
12043       case $host_os in
12044       solaris2.[0-5] | solaris2.[0-5].*) ;;
12045       *)
12046         # The compiler driver will combine and reorder linker options,
12047         # but understands `-z linker_flag'.  GCC discards it without `$wl',
12048         # but is careful enough not to reorder.
12049         # Supported since Solaris 2.6 (maybe 2.5.1?)
12050         if test "$GCC" = yes; then
12051           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12052         else
12053           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12054         fi
12055         ;;
12056       esac
12057       link_all_deplibs=yes
12058       ;;
12059
12060     sunos4*)
12061       if test "x$host_vendor" = xsequent; then
12062         # Use $CC to link under sequent, because it throws in some extra .o
12063         # files that make .init and .fini sections work.
12064         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12065       else
12066         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12067       fi
12068       hardcode_libdir_flag_spec='-L$libdir'
12069       hardcode_direct=yes
12070       hardcode_minus_L=yes
12071       hardcode_shlibpath_var=no
12072       ;;
12073
12074     sysv4)
12075       case $host_vendor in
12076         sni)
12077           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12078           hardcode_direct=yes # is this really true???
12079         ;;
12080         siemens)
12081           ## LD is ld it makes a PLAMLIB
12082           ## CC just makes a GrossModule.
12083           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12084           reload_cmds='$CC -r -o $output$reload_objs'
12085           hardcode_direct=no
12086         ;;
12087         motorola)
12088           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12089           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12090         ;;
12091       esac
12092       runpath_var='LD_RUN_PATH'
12093       hardcode_shlibpath_var=no
12094       ;;
12095
12096     sysv4.3*)
12097       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12098       hardcode_shlibpath_var=no
12099       export_dynamic_flag_spec='-Bexport'
12100       ;;
12101
12102     sysv4*MP*)
12103       if test -d /usr/nec; then
12104         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12105         hardcode_shlibpath_var=no
12106         runpath_var=LD_RUN_PATH
12107         hardcode_runpath_var=yes
12108         ld_shlibs=yes
12109       fi
12110       ;;
12111
12112     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12113       no_undefined_flag='${wl}-z,text'
12114       archive_cmds_need_lc=no
12115       hardcode_shlibpath_var=no
12116       runpath_var='LD_RUN_PATH'
12117
12118       if test "$GCC" = yes; then
12119         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12120         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12121       else
12122         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12123         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12124       fi
12125       ;;
12126
12127     sysv5* | sco3.2v5* | sco5v6*)
12128       # Note: We can NOT use -z defs as we might desire, because we do not
12129       # link with -lc, and that would cause any symbols used from libc to
12130       # always be unresolved, which means just about no library would
12131       # ever link correctly.  If we're not using GNU ld we use -z text
12132       # though, which does catch some bad symbols but isn't as heavy-handed
12133       # as -z defs.
12134       no_undefined_flag='${wl}-z,text'
12135       allow_undefined_flag='${wl}-z,nodefs'
12136       archive_cmds_need_lc=no
12137       hardcode_shlibpath_var=no
12138       hardcode_libdir_flag_spec='${wl}-R,$libdir'
12139       hardcode_libdir_separator=':'
12140       link_all_deplibs=yes
12141       export_dynamic_flag_spec='${wl}-Bexport'
12142       runpath_var='LD_RUN_PATH'
12143
12144       if test "$GCC" = yes; then
12145         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12146         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12147       else
12148         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12149         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12150       fi
12151       ;;
12152
12153     uts4*)
12154       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12155       hardcode_libdir_flag_spec='-L$libdir'
12156       hardcode_shlibpath_var=no
12157       ;;
12158
12159     *)
12160       ld_shlibs=no
12161       ;;
12162     esac
12163
12164     if test x$host_vendor = xsni; then
12165       case $host in
12166       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12167         export_dynamic_flag_spec='${wl}-Blargedynsym'
12168         ;;
12169       esac
12170     fi
12171   fi
12172
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12174 $as_echo "$ld_shlibs" >&6; }
12175 test "$ld_shlibs" = no && can_build_shared=no
12176
12177 with_gnu_ld=$with_gnu_ld
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193 #
12194 # Do we need to explicitly link libc?
12195 #
12196 case "x$archive_cmds_need_lc" in
12197 x|xyes)
12198   # Assume -lc should be added
12199   archive_cmds_need_lc=yes
12200
12201   if test "$enable_shared" = yes && test "$GCC" = yes; then
12202     case $archive_cmds in
12203     *'~'*)
12204       # FIXME: we may have to deal with multi-command sequences.
12205       ;;
12206     '$CC '*)
12207       # Test whether the compiler implicitly links with -lc since on some
12208       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12209       # to ld, don't add -lc before -lgcc.
12210       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12211 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12212       $RM conftest*
12213       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12214
12215       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12216   (eval $ac_compile) 2>&5
12217   ac_status=$?
12218   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12219   test $ac_status = 0; } 2>conftest.err; then
12220         soname=conftest
12221         lib=conftest
12222         libobjs=conftest.$ac_objext
12223         deplibs=
12224         wl=$lt_prog_compiler_wl
12225         pic_flag=$lt_prog_compiler_pic
12226         compiler_flags=-v
12227         linker_flags=-v
12228         verstring=
12229         output_objdir=.
12230         libname=conftest
12231         lt_save_allow_undefined_flag=$allow_undefined_flag
12232         allow_undefined_flag=
12233         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12234   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12235   ac_status=$?
12236   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12237   test $ac_status = 0; }
12238         then
12239           archive_cmds_need_lc=no
12240         else
12241           archive_cmds_need_lc=yes
12242         fi
12243         allow_undefined_flag=$lt_save_allow_undefined_flag
12244       else
12245         cat conftest.err 1>&5
12246       fi
12247       $RM conftest*
12248       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
12249 $as_echo "$archive_cmds_need_lc" >&6; }
12250       ;;
12251     esac
12252   fi
12253   ;;
12254 esac
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12413 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12414
12415 if test "$GCC" = yes; then
12416   case $host_os in
12417     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12418     *) lt_awk_arg="/^libraries:/" ;;
12419   esac
12420   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12421   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
12422     # if the path contains ";" then we assume it to be the separator
12423     # otherwise default to the standard path separator (i.e. ":") - it is
12424     # assumed that no part of a normal pathname contains ";" but that should
12425     # okay in the real world where ";" in dirpaths is itself problematic.
12426     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
12427   else
12428     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12429   fi
12430   # Ok, now we have the path, separated by spaces, we can step through it
12431   # and add multilib dir if necessary.
12432   lt_tmp_lt_search_path_spec=
12433   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12434   for lt_sys_path in $lt_search_path_spec; do
12435     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12436       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12437     else
12438       test -d "$lt_sys_path" && \
12439         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12440     fi
12441   done
12442   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
12443 BEGIN {RS=" "; FS="/|\n";} {
12444   lt_foo="";
12445   lt_count=0;
12446   for (lt_i = NF; lt_i > 0; lt_i--) {
12447     if ($lt_i != "" && $lt_i != ".") {
12448       if ($lt_i == "..") {
12449         lt_count++;
12450       } else {
12451         if (lt_count == 0) {
12452           lt_foo="/" $lt_i lt_foo;
12453         } else {
12454           lt_count--;
12455         }
12456       }
12457     }
12458   }
12459   if (lt_foo != "") { lt_freq[lt_foo]++; }
12460   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12461 }'`
12462   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
12463 else
12464   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12465 fi
12466 library_names_spec=
12467 libname_spec='lib$name'
12468 soname_spec=
12469 shrext_cmds=".so"
12470 postinstall_cmds=
12471 postuninstall_cmds=
12472 finish_cmds=
12473 finish_eval=
12474 shlibpath_var=
12475 shlibpath_overrides_runpath=unknown
12476 version_type=none
12477 dynamic_linker="$host_os ld.so"
12478 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12479 need_lib_prefix=unknown
12480 hardcode_into_libs=no
12481
12482 # when you set need_version to no, make sure it does not cause -set_version
12483 # flags to be left without arguments
12484 need_version=unknown
12485
12486 case $host_os in
12487 aix3*)
12488   version_type=linux
12489   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12490   shlibpath_var=LIBPATH
12491
12492   # AIX 3 has no versioning support, so we append a major version to the name.
12493   soname_spec='${libname}${release}${shared_ext}$major'
12494   ;;
12495
12496 aix[4-9]*)
12497   version_type=linux
12498   need_lib_prefix=no
12499   need_version=no
12500   hardcode_into_libs=yes
12501   if test "$host_cpu" = ia64; then
12502     # AIX 5 supports IA64
12503     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12504     shlibpath_var=LD_LIBRARY_PATH
12505   else
12506     # With GCC up to 2.95.x, collect2 would create an import file
12507     # for dependence libraries.  The import file would start with
12508     # the line `#! .'.  This would cause the generated library to
12509     # depend on `.', always an invalid library.  This was fixed in
12510     # development snapshots of GCC prior to 3.0.
12511     case $host_os in
12512       aix4 | aix4.[01] | aix4.[01].*)
12513       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12514            echo ' yes '
12515            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12516         :
12517       else
12518         can_build_shared=no
12519       fi
12520       ;;
12521     esac
12522     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12523     # soname into executable. Probably we can add versioning support to
12524     # collect2, so additional links can be useful in future.
12525     if test "$aix_use_runtimelinking" = yes; then
12526       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12527       # instead of lib<name>.a to let people know that these are not
12528       # typical AIX shared libraries.
12529       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12530     else
12531       # We preserve .a as extension for shared libraries through AIX4.2
12532       # and later when we are not doing run time linking.
12533       library_names_spec='${libname}${release}.a $libname.a'
12534       soname_spec='${libname}${release}${shared_ext}$major'
12535     fi
12536     shlibpath_var=LIBPATH
12537   fi
12538   ;;
12539
12540 amigaos*)
12541   case $host_cpu in
12542   powerpc)
12543     # Since July 2007 AmigaOS4 officially supports .so libraries.
12544     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12545     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12546     ;;
12547   m68k)
12548     library_names_spec='$libname.ixlibrary $libname.a'
12549     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12550     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12551     ;;
12552   esac
12553   ;;
12554
12555 beos*)
12556   library_names_spec='${libname}${shared_ext}'
12557   dynamic_linker="$host_os ld.so"
12558   shlibpath_var=LIBRARY_PATH
12559   ;;
12560
12561 bsdi[45]*)
12562   version_type=linux
12563   need_version=no
12564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12565   soname_spec='${libname}${release}${shared_ext}$major'
12566   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12567   shlibpath_var=LD_LIBRARY_PATH
12568   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12569   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12570   # the default ld.so.conf also contains /usr/contrib/lib and
12571   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12572   # libtool to hard-code these into programs
12573   ;;
12574
12575 cygwin* | mingw* | pw32* | cegcc*)
12576   version_type=windows
12577   shrext_cmds=".dll"
12578   need_version=no
12579   need_lib_prefix=no
12580
12581   case $GCC,$host_os in
12582   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12583     library_names_spec='$libname.dll.a'
12584     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12585     postinstall_cmds='base_file=`basename \${file}`~
12586       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12587       dldir=$destdir/`dirname \$dlpath`~
12588       test -d \$dldir || mkdir -p \$dldir~
12589       $install_prog $dir/$dlname \$dldir/$dlname~
12590       chmod a+x \$dldir/$dlname~
12591       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12592         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12593       fi'
12594     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12595       dlpath=$dir/\$dldll~
12596        $RM \$dlpath'
12597     shlibpath_overrides_runpath=yes
12598
12599     case $host_os in
12600     cygwin*)
12601       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12602       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12603       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12604       ;;
12605     mingw* | cegcc*)
12606       # MinGW DLLs use traditional 'lib' prefix
12607       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12608       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12609       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12610         # It is most probably a Windows format PATH printed by
12611         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12612         # path with ; separators, and with drive letters. We can handle the
12613         # drive letters (cygwin fileutils understands them), so leave them,
12614         # especially as we might pass files found there to a mingw objdump,
12615         # which wouldn't understand a cygwinified path. Ahh.
12616         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12617       else
12618         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12619       fi
12620       ;;
12621     pw32*)
12622       # pw32 DLLs use 'pw' prefix rather than 'lib'
12623       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12624       ;;
12625     esac
12626     ;;
12627
12628   *)
12629     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12630     ;;
12631   esac
12632   dynamic_linker='Win32 ld.exe'
12633   # FIXME: first we should search . and the directory the executable is in
12634   shlibpath_var=PATH
12635   ;;
12636
12637 darwin* | rhapsody*)
12638   dynamic_linker="$host_os dyld"
12639   version_type=darwin
12640   need_lib_prefix=no
12641   need_version=no
12642   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12643   soname_spec='${libname}${release}${major}$shared_ext'
12644   shlibpath_overrides_runpath=yes
12645   shlibpath_var=DYLD_LIBRARY_PATH
12646   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12647
12648   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12649   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12650   ;;
12651
12652 dgux*)
12653   version_type=linux
12654   need_lib_prefix=no
12655   need_version=no
12656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12657   soname_spec='${libname}${release}${shared_ext}$major'
12658   shlibpath_var=LD_LIBRARY_PATH
12659   ;;
12660
12661 freebsd1*)
12662   dynamic_linker=no
12663   ;;
12664
12665 freebsd* | dragonfly*)
12666   # DragonFly does not have aout.  When/if they implement a new
12667   # versioning mechanism, adjust this.
12668   if test -x /usr/bin/objformat; then
12669     objformat=`/usr/bin/objformat`
12670   else
12671     case $host_os in
12672     freebsd[123]*) objformat=aout ;;
12673     *) objformat=elf ;;
12674     esac
12675   fi
12676   version_type=freebsd-$objformat
12677   case $version_type in
12678     freebsd-elf*)
12679       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12680       need_version=no
12681       need_lib_prefix=no
12682       ;;
12683     freebsd-*)
12684       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12685       need_version=yes
12686       ;;
12687   esac
12688   shlibpath_var=LD_LIBRARY_PATH
12689   case $host_os in
12690   freebsd2*)
12691     shlibpath_overrides_runpath=yes
12692     ;;
12693   freebsd3.[01]* | freebsdelf3.[01]*)
12694     shlibpath_overrides_runpath=yes
12695     hardcode_into_libs=yes
12696     ;;
12697   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12698   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12699     shlibpath_overrides_runpath=no
12700     hardcode_into_libs=yes
12701     ;;
12702   *) # from 4.6 on, and DragonFly
12703     shlibpath_overrides_runpath=yes
12704     hardcode_into_libs=yes
12705     ;;
12706   esac
12707   ;;
12708
12709 gnu*)
12710   version_type=linux
12711   need_lib_prefix=no
12712   need_version=no
12713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12714   soname_spec='${libname}${release}${shared_ext}$major'
12715   shlibpath_var=LD_LIBRARY_PATH
12716   hardcode_into_libs=yes
12717   ;;
12718
12719 hpux9* | hpux10* | hpux11*)
12720   # Give a soname corresponding to the major version so that dld.sl refuses to
12721   # link against other versions.
12722   version_type=sunos
12723   need_lib_prefix=no
12724   need_version=no
12725   case $host_cpu in
12726   ia64*)
12727     shrext_cmds='.so'
12728     hardcode_into_libs=yes
12729     dynamic_linker="$host_os dld.so"
12730     shlibpath_var=LD_LIBRARY_PATH
12731     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12732     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12733     soname_spec='${libname}${release}${shared_ext}$major'
12734     if test "X$HPUX_IA64_MODE" = X32; then
12735       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12736     else
12737       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12738     fi
12739     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12740     ;;
12741   hppa*64*)
12742     shrext_cmds='.sl'
12743     hardcode_into_libs=yes
12744     dynamic_linker="$host_os dld.sl"
12745     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12746     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12747     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12748     soname_spec='${libname}${release}${shared_ext}$major'
12749     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12750     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12751     ;;
12752   *)
12753     shrext_cmds='.sl'
12754     dynamic_linker="$host_os dld.sl"
12755     shlibpath_var=SHLIB_PATH
12756     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12757     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12758     soname_spec='${libname}${release}${shared_ext}$major'
12759     ;;
12760   esac
12761   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12762   postinstall_cmds='chmod 555 $lib'
12763   ;;
12764
12765 interix[3-9]*)
12766   version_type=linux
12767   need_lib_prefix=no
12768   need_version=no
12769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12770   soname_spec='${libname}${release}${shared_ext}$major'
12771   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12772   shlibpath_var=LD_LIBRARY_PATH
12773   shlibpath_overrides_runpath=no
12774   hardcode_into_libs=yes
12775   ;;
12776
12777 irix5* | irix6* | nonstopux*)
12778   case $host_os in
12779     nonstopux*) version_type=nonstopux ;;
12780     *)
12781         if test "$lt_cv_prog_gnu_ld" = yes; then
12782                 version_type=linux
12783         else
12784                 version_type=irix
12785         fi ;;
12786   esac
12787   need_lib_prefix=no
12788   need_version=no
12789   soname_spec='${libname}${release}${shared_ext}$major'
12790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12791   case $host_os in
12792   irix5* | nonstopux*)
12793     libsuff= shlibsuff=
12794     ;;
12795   *)
12796     case $LD in # libtool.m4 will add one of these switches to LD
12797     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12798       libsuff= shlibsuff= libmagic=32-bit;;
12799     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12800       libsuff=32 shlibsuff=N32 libmagic=N32;;
12801     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12802       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12803     *) libsuff= shlibsuff= libmagic=never-match;;
12804     esac
12805     ;;
12806   esac
12807   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12808   shlibpath_overrides_runpath=no
12809   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12810   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12811   hardcode_into_libs=yes
12812   ;;
12813
12814 # No shared lib support for Linux oldld, aout, or coff.
12815 linux*oldld* | linux*aout* | linux*coff*)
12816   dynamic_linker=no
12817   ;;
12818
12819 # This must be Linux ELF.
12820 linux* | k*bsd*-gnu)
12821   version_type=linux
12822   need_lib_prefix=no
12823   need_version=no
12824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12825   soname_spec='${libname}${release}${shared_ext}$major'
12826   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12827   shlibpath_var=LD_LIBRARY_PATH
12828   shlibpath_overrides_runpath=no
12829   # Some binutils ld are patched to set DT_RUNPATH
12830   save_LDFLAGS=$LDFLAGS
12831   save_libdir=$libdir
12832   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12833        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12835 /* end confdefs.h.  */
12836
12837 int
12838 main ()
12839 {
12840
12841   ;
12842   return 0;
12843 }
12844 _ACEOF
12845 if ac_fn_c_try_link "$LINENO"; then :
12846   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12847   shlibpath_overrides_runpath=yes
12848 fi
12849 fi
12850 rm -f core conftest.err conftest.$ac_objext \
12851     conftest$ac_exeext conftest.$ac_ext
12852   LDFLAGS=$save_LDFLAGS
12853   libdir=$save_libdir
12854
12855   # This implies no fast_install, which is unacceptable.
12856   # Some rework will be needed to allow for fast_install
12857   # before this can be enabled.
12858   hardcode_into_libs=yes
12859
12860   # Append ld.so.conf contents to the search path
12861   if test -f /etc/ld.so.conf; then
12862     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12863     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12864   fi
12865
12866   # We used to test for /lib/ld.so.1 and disable shared libraries on
12867   # powerpc, because MkLinux only supported shared libraries with the
12868   # GNU dynamic linker.  Since this was broken with cross compilers,
12869   # most powerpc-linux boxes support dynamic linking these days and
12870   # people can always --disable-shared, the test was removed, and we
12871   # assume the GNU/Linux dynamic linker is in use.
12872   dynamic_linker='GNU/Linux ld.so'
12873   ;;
12874
12875 netbsdelf*-gnu)
12876   version_type=linux
12877   need_lib_prefix=no
12878   need_version=no
12879   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12880   soname_spec='${libname}${release}${shared_ext}$major'
12881   shlibpath_var=LD_LIBRARY_PATH
12882   shlibpath_overrides_runpath=no
12883   hardcode_into_libs=yes
12884   dynamic_linker='NetBSD ld.elf_so'
12885   ;;
12886
12887 netbsd*)
12888   version_type=sunos
12889   need_lib_prefix=no
12890   need_version=no
12891   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12892     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12893     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12894     dynamic_linker='NetBSD (a.out) ld.so'
12895   else
12896     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12897     soname_spec='${libname}${release}${shared_ext}$major'
12898     dynamic_linker='NetBSD ld.elf_so'
12899   fi
12900   shlibpath_var=LD_LIBRARY_PATH
12901   shlibpath_overrides_runpath=yes
12902   hardcode_into_libs=yes
12903   ;;
12904
12905 newsos6)
12906   version_type=linux
12907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12908   shlibpath_var=LD_LIBRARY_PATH
12909   shlibpath_overrides_runpath=yes
12910   ;;
12911
12912 *nto* | *qnx*)
12913   version_type=qnx
12914   need_lib_prefix=no
12915   need_version=no
12916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12917   soname_spec='${libname}${release}${shared_ext}$major'
12918   shlibpath_var=LD_LIBRARY_PATH
12919   shlibpath_overrides_runpath=no
12920   hardcode_into_libs=yes
12921   dynamic_linker='ldqnx.so'
12922   ;;
12923
12924 openbsd*)
12925   version_type=sunos
12926   sys_lib_dlsearch_path_spec="/usr/lib"
12927   need_lib_prefix=no
12928   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12929   case $host_os in
12930     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12931     *)                          need_version=no  ;;
12932   esac
12933   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12934   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12935   shlibpath_var=LD_LIBRARY_PATH
12936   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12937     case $host_os in
12938       openbsd2.[89] | openbsd2.[89].*)
12939         shlibpath_overrides_runpath=no
12940         ;;
12941       *)
12942         shlibpath_overrides_runpath=yes
12943         ;;
12944       esac
12945   else
12946     shlibpath_overrides_runpath=yes
12947   fi
12948   ;;
12949
12950 os2*)
12951   libname_spec='$name'
12952   shrext_cmds=".dll"
12953   need_lib_prefix=no
12954   library_names_spec='$libname${shared_ext} $libname.a'
12955   dynamic_linker='OS/2 ld.exe'
12956   shlibpath_var=LIBPATH
12957   ;;
12958
12959 osf3* | osf4* | osf5*)
12960   version_type=osf
12961   need_lib_prefix=no
12962   need_version=no
12963   soname_spec='${libname}${release}${shared_ext}$major'
12964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12965   shlibpath_var=LD_LIBRARY_PATH
12966   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12967   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12968   ;;
12969
12970 rdos*)
12971   dynamic_linker=no
12972   ;;
12973
12974 solaris*)
12975   version_type=linux
12976   need_lib_prefix=no
12977   need_version=no
12978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12979   soname_spec='${libname}${release}${shared_ext}$major'
12980   shlibpath_var=LD_LIBRARY_PATH
12981   shlibpath_overrides_runpath=yes
12982   hardcode_into_libs=yes
12983   # ldd complains unless libraries are executable
12984   postinstall_cmds='chmod +x $lib'
12985   ;;
12986
12987 sunos4*)
12988   version_type=sunos
12989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12990   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12991   shlibpath_var=LD_LIBRARY_PATH
12992   shlibpath_overrides_runpath=yes
12993   if test "$with_gnu_ld" = yes; then
12994     need_lib_prefix=no
12995   fi
12996   need_version=yes
12997   ;;
12998
12999 sysv4 | sysv4.3*)
13000   version_type=linux
13001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13002   soname_spec='${libname}${release}${shared_ext}$major'
13003   shlibpath_var=LD_LIBRARY_PATH
13004   case $host_vendor in
13005     sni)
13006       shlibpath_overrides_runpath=no
13007       need_lib_prefix=no
13008       runpath_var=LD_RUN_PATH
13009       ;;
13010     siemens)
13011       need_lib_prefix=no
13012       ;;
13013     motorola)
13014       need_lib_prefix=no
13015       need_version=no
13016       shlibpath_overrides_runpath=no
13017       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13018       ;;
13019   esac
13020   ;;
13021
13022 sysv4*MP*)
13023   if test -d /usr/nec ;then
13024     version_type=linux
13025     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13026     soname_spec='$libname${shared_ext}.$major'
13027     shlibpath_var=LD_LIBRARY_PATH
13028   fi
13029   ;;
13030
13031 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13032   version_type=freebsd-elf
13033   need_lib_prefix=no
13034   need_version=no
13035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13036   soname_spec='${libname}${release}${shared_ext}$major'
13037   shlibpath_var=LD_LIBRARY_PATH
13038   shlibpath_overrides_runpath=yes
13039   hardcode_into_libs=yes
13040   if test "$with_gnu_ld" = yes; then
13041     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13042   else
13043     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13044     case $host_os in
13045       sco3.2v5*)
13046         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13047         ;;
13048     esac
13049   fi
13050   sys_lib_dlsearch_path_spec='/usr/lib'
13051   ;;
13052
13053 tpf*)
13054   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13055   version_type=linux
13056   need_lib_prefix=no
13057   need_version=no
13058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13059   shlibpath_var=LD_LIBRARY_PATH
13060   shlibpath_overrides_runpath=no
13061   hardcode_into_libs=yes
13062   ;;
13063
13064 uts4*)
13065   version_type=linux
13066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13067   soname_spec='${libname}${release}${shared_ext}$major'
13068   shlibpath_var=LD_LIBRARY_PATH
13069   ;;
13070
13071 *)
13072   dynamic_linker=no
13073   ;;
13074 esac
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13076 $as_echo "$dynamic_linker" >&6; }
13077 test "$dynamic_linker" = no && can_build_shared=no
13078
13079 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13080 if test "$GCC" = yes; then
13081   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13082 fi
13083
13084 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13085   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13086 fi
13087 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13088   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13089 fi
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13178 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13179 hardcode_action=
13180 if test -n "$hardcode_libdir_flag_spec" ||
13181    test -n "$runpath_var" ||
13182    test "X$hardcode_automatic" = "Xyes" ; then
13183
13184   # We can hardcode non-existent directories.
13185   if test "$hardcode_direct" != no &&
13186      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13187      # have to relink, otherwise we might link with an installed library
13188      # when we should be linking with a yet-to-be-installed one
13189      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13190      test "$hardcode_minus_L" != no; then
13191     # Linking always hardcodes the temporary library directory.
13192     hardcode_action=relink
13193   else
13194     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13195     hardcode_action=immediate
13196   fi
13197 else
13198   # We cannot hardcode anything, or else we can only hardcode existing
13199   # directories.
13200   hardcode_action=unsupported
13201 fi
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13203 $as_echo "$hardcode_action" >&6; }
13204
13205 if test "$hardcode_action" = relink ||
13206    test "$inherit_rpath" = yes; then
13207   # Fast installation is not supported
13208   enable_fast_install=no
13209 elif test "$shlibpath_overrides_runpath" = yes ||
13210      test "$enable_shared" = no; then
13211   # Fast installation is not necessary
13212   enable_fast_install=needless
13213 fi
13214
13215
13216
13217
13218
13219
13220   if test "x$enable_dlopen" != xyes; then
13221   enable_dlopen=unknown
13222   enable_dlopen_self=unknown
13223   enable_dlopen_self_static=unknown
13224 else
13225   lt_cv_dlopen=no
13226   lt_cv_dlopen_libs=
13227
13228   case $host_os in
13229   beos*)
13230     lt_cv_dlopen="load_add_on"
13231     lt_cv_dlopen_libs=
13232     lt_cv_dlopen_self=yes
13233     ;;
13234
13235   mingw* | pw32* | cegcc*)
13236     lt_cv_dlopen="LoadLibrary"
13237     lt_cv_dlopen_libs=
13238     ;;
13239
13240   cygwin*)
13241     lt_cv_dlopen="dlopen"
13242     lt_cv_dlopen_libs=
13243     ;;
13244
13245   darwin*)
13246   # if libdl is installed we need to link against it
13247     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13248 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13249 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13250   $as_echo_n "(cached) " >&6
13251 else
13252   ac_check_lib_save_LIBS=$LIBS
13253 LIBS="-ldl  $LIBS"
13254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13255 /* end confdefs.h.  */
13256
13257 /* Override any GCC internal prototype to avoid an error.
13258    Use char because int might match the return type of a GCC
13259    builtin and then its argument prototype would still apply.  */
13260 #ifdef __cplusplus
13261 extern "C"
13262 #endif
13263 char dlopen ();
13264 int
13265 main ()
13266 {
13267 return dlopen ();
13268   ;
13269   return 0;
13270 }
13271 _ACEOF
13272 if ac_fn_c_try_link "$LINENO"; then :
13273   ac_cv_lib_dl_dlopen=yes
13274 else
13275   ac_cv_lib_dl_dlopen=no
13276 fi
13277 rm -f core conftest.err conftest.$ac_objext \
13278     conftest$ac_exeext conftest.$ac_ext
13279 LIBS=$ac_check_lib_save_LIBS
13280 fi
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13282 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13283 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13284   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13285 else
13286
13287     lt_cv_dlopen="dyld"
13288     lt_cv_dlopen_libs=
13289     lt_cv_dlopen_self=yes
13290
13291 fi
13292
13293     ;;
13294
13295   *)
13296     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13297 if test "x$ac_cv_func_shl_load" = x""yes; then :
13298   lt_cv_dlopen="shl_load"
13299 else
13300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13301 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13302 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13303   $as_echo_n "(cached) " >&6
13304 else
13305   ac_check_lib_save_LIBS=$LIBS
13306 LIBS="-ldld  $LIBS"
13307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13308 /* end confdefs.h.  */
13309
13310 /* Override any GCC internal prototype to avoid an error.
13311    Use char because int might match the return type of a GCC
13312    builtin and then its argument prototype would still apply.  */
13313 #ifdef __cplusplus
13314 extern "C"
13315 #endif
13316 char shl_load ();
13317 int
13318 main ()
13319 {
13320 return shl_load ();
13321   ;
13322   return 0;
13323 }
13324 _ACEOF
13325 if ac_fn_c_try_link "$LINENO"; then :
13326   ac_cv_lib_dld_shl_load=yes
13327 else
13328   ac_cv_lib_dld_shl_load=no
13329 fi
13330 rm -f core conftest.err conftest.$ac_objext \
13331     conftest$ac_exeext conftest.$ac_ext
13332 LIBS=$ac_check_lib_save_LIBS
13333 fi
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13335 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13336 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13337   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13338 else
13339   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13340 if test "x$ac_cv_func_dlopen" = x""yes; then :
13341   lt_cv_dlopen="dlopen"
13342 else
13343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13344 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13345 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13346   $as_echo_n "(cached) " >&6
13347 else
13348   ac_check_lib_save_LIBS=$LIBS
13349 LIBS="-ldl  $LIBS"
13350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13351 /* end confdefs.h.  */
13352
13353 /* Override any GCC internal prototype to avoid an error.
13354    Use char because int might match the return type of a GCC
13355    builtin and then its argument prototype would still apply.  */
13356 #ifdef __cplusplus
13357 extern "C"
13358 #endif
13359 char dlopen ();
13360 int
13361 main ()
13362 {
13363 return dlopen ();
13364   ;
13365   return 0;
13366 }
13367 _ACEOF
13368 if ac_fn_c_try_link "$LINENO"; then :
13369   ac_cv_lib_dl_dlopen=yes
13370 else
13371   ac_cv_lib_dl_dlopen=no
13372 fi
13373 rm -f core conftest.err conftest.$ac_objext \
13374     conftest$ac_exeext conftest.$ac_ext
13375 LIBS=$ac_check_lib_save_LIBS
13376 fi
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13378 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13379 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13380   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13381 else
13382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13383 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13384 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13385   $as_echo_n "(cached) " >&6
13386 else
13387   ac_check_lib_save_LIBS=$LIBS
13388 LIBS="-lsvld  $LIBS"
13389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13390 /* end confdefs.h.  */
13391
13392 /* Override any GCC internal prototype to avoid an error.
13393    Use char because int might match the return type of a GCC
13394    builtin and then its argument prototype would still apply.  */
13395 #ifdef __cplusplus
13396 extern "C"
13397 #endif
13398 char dlopen ();
13399 int
13400 main ()
13401 {
13402 return dlopen ();
13403   ;
13404   return 0;
13405 }
13406 _ACEOF
13407 if ac_fn_c_try_link "$LINENO"; then :
13408   ac_cv_lib_svld_dlopen=yes
13409 else
13410   ac_cv_lib_svld_dlopen=no
13411 fi
13412 rm -f core conftest.err conftest.$ac_objext \
13413     conftest$ac_exeext conftest.$ac_ext
13414 LIBS=$ac_check_lib_save_LIBS
13415 fi
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13417 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13418 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13419   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13420 else
13421   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13422 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13423 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13424   $as_echo_n "(cached) " >&6
13425 else
13426   ac_check_lib_save_LIBS=$LIBS
13427 LIBS="-ldld  $LIBS"
13428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13429 /* end confdefs.h.  */
13430
13431 /* Override any GCC internal prototype to avoid an error.
13432    Use char because int might match the return type of a GCC
13433    builtin and then its argument prototype would still apply.  */
13434 #ifdef __cplusplus
13435 extern "C"
13436 #endif
13437 char dld_link ();
13438 int
13439 main ()
13440 {
13441 return dld_link ();
13442   ;
13443   return 0;
13444 }
13445 _ACEOF
13446 if ac_fn_c_try_link "$LINENO"; then :
13447   ac_cv_lib_dld_dld_link=yes
13448 else
13449   ac_cv_lib_dld_dld_link=no
13450 fi
13451 rm -f core conftest.err conftest.$ac_objext \
13452     conftest$ac_exeext conftest.$ac_ext
13453 LIBS=$ac_check_lib_save_LIBS
13454 fi
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13456 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13457 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13458   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13459 fi
13460
13461
13462 fi
13463
13464
13465 fi
13466
13467
13468 fi
13469
13470
13471 fi
13472
13473
13474 fi
13475
13476     ;;
13477   esac
13478
13479   if test "x$lt_cv_dlopen" != xno; then
13480     enable_dlopen=yes
13481   else
13482     enable_dlopen=no
13483   fi
13484
13485   case $lt_cv_dlopen in
13486   dlopen)
13487     save_CPPFLAGS="$CPPFLAGS"
13488     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13489
13490     save_LDFLAGS="$LDFLAGS"
13491     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13492
13493     save_LIBS="$LIBS"
13494     LIBS="$lt_cv_dlopen_libs $LIBS"
13495
13496     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13497 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13498 if test "${lt_cv_dlopen_self+set}" = set; then :
13499   $as_echo_n "(cached) " >&6
13500 else
13501           if test "$cross_compiling" = yes; then :
13502   lt_cv_dlopen_self=cross
13503 else
13504   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13505   lt_status=$lt_dlunknown
13506   cat > conftest.$ac_ext <<_LT_EOF
13507 #line 13507 "configure"
13508 #include "confdefs.h"
13509
13510 #if HAVE_DLFCN_H
13511 #include <dlfcn.h>
13512 #endif
13513
13514 #include <stdio.h>
13515
13516 #ifdef RTLD_GLOBAL
13517 #  define LT_DLGLOBAL           RTLD_GLOBAL
13518 #else
13519 #  ifdef DL_GLOBAL
13520 #    define LT_DLGLOBAL         DL_GLOBAL
13521 #  else
13522 #    define LT_DLGLOBAL         0
13523 #  endif
13524 #endif
13525
13526 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13527    find out it does not work in some platform. */
13528 #ifndef LT_DLLAZY_OR_NOW
13529 #  ifdef RTLD_LAZY
13530 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13531 #  else
13532 #    ifdef DL_LAZY
13533 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13534 #    else
13535 #      ifdef RTLD_NOW
13536 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13537 #      else
13538 #        ifdef DL_NOW
13539 #          define LT_DLLAZY_OR_NOW      DL_NOW
13540 #        else
13541 #          define LT_DLLAZY_OR_NOW      0
13542 #        endif
13543 #      endif
13544 #    endif
13545 #  endif
13546 #endif
13547
13548 void fnord() { int i=42;}
13549 int main ()
13550 {
13551   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13552   int status = $lt_dlunknown;
13553
13554   if (self)
13555     {
13556       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13557       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13558       /* dlclose (self); */
13559     }
13560   else
13561     puts (dlerror ());
13562
13563   return status;
13564 }
13565 _LT_EOF
13566   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13567   (eval $ac_link) 2>&5
13568   ac_status=$?
13569   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13570   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13571     (./conftest; exit; ) >&5 2>/dev/null
13572     lt_status=$?
13573     case x$lt_status in
13574       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13575       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13576       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13577     esac
13578   else :
13579     # compilation failed
13580     lt_cv_dlopen_self=no
13581   fi
13582 fi
13583 rm -fr conftest*
13584
13585
13586 fi
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13588 $as_echo "$lt_cv_dlopen_self" >&6; }
13589
13590     if test "x$lt_cv_dlopen_self" = xyes; then
13591       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13592       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13593 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13594 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13595   $as_echo_n "(cached) " >&6
13596 else
13597           if test "$cross_compiling" = yes; then :
13598   lt_cv_dlopen_self_static=cross
13599 else
13600   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13601   lt_status=$lt_dlunknown
13602   cat > conftest.$ac_ext <<_LT_EOF
13603 #line 13603 "configure"
13604 #include "confdefs.h"
13605
13606 #if HAVE_DLFCN_H
13607 #include <dlfcn.h>
13608 #endif
13609
13610 #include <stdio.h>
13611
13612 #ifdef RTLD_GLOBAL
13613 #  define LT_DLGLOBAL           RTLD_GLOBAL
13614 #else
13615 #  ifdef DL_GLOBAL
13616 #    define LT_DLGLOBAL         DL_GLOBAL
13617 #  else
13618 #    define LT_DLGLOBAL         0
13619 #  endif
13620 #endif
13621
13622 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13623    find out it does not work in some platform. */
13624 #ifndef LT_DLLAZY_OR_NOW
13625 #  ifdef RTLD_LAZY
13626 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13627 #  else
13628 #    ifdef DL_LAZY
13629 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13630 #    else
13631 #      ifdef RTLD_NOW
13632 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13633 #      else
13634 #        ifdef DL_NOW
13635 #          define LT_DLLAZY_OR_NOW      DL_NOW
13636 #        else
13637 #          define LT_DLLAZY_OR_NOW      0
13638 #        endif
13639 #      endif
13640 #    endif
13641 #  endif
13642 #endif
13643
13644 void fnord() { int i=42;}
13645 int main ()
13646 {
13647   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13648   int status = $lt_dlunknown;
13649
13650   if (self)
13651     {
13652       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13653       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13654       /* dlclose (self); */
13655     }
13656   else
13657     puts (dlerror ());
13658
13659   return status;
13660 }
13661 _LT_EOF
13662   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13663   (eval $ac_link) 2>&5
13664   ac_status=$?
13665   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13666   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13667     (./conftest; exit; ) >&5 2>/dev/null
13668     lt_status=$?
13669     case x$lt_status in
13670       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13671       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13672       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13673     esac
13674   else :
13675     # compilation failed
13676     lt_cv_dlopen_self_static=no
13677   fi
13678 fi
13679 rm -fr conftest*
13680
13681
13682 fi
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13684 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13685     fi
13686
13687     CPPFLAGS="$save_CPPFLAGS"
13688     LDFLAGS="$save_LDFLAGS"
13689     LIBS="$save_LIBS"
13690     ;;
13691   esac
13692
13693   case $lt_cv_dlopen_self in
13694   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13695   *) enable_dlopen_self=unknown ;;
13696   esac
13697
13698   case $lt_cv_dlopen_self_static in
13699   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13700   *) enable_dlopen_self_static=unknown ;;
13701   esac
13702 fi
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720 striplib=
13721 old_striplib=
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13723 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13724 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13725   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13726   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13728 $as_echo "yes" >&6; }
13729 else
13730 # FIXME - insert some real tests, host_os isn't really good enough
13731   case $host_os in
13732   darwin*)
13733     if test -n "$STRIP" ; then
13734       striplib="$STRIP -x"
13735       old_striplib="$STRIP -S"
13736       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13737 $as_echo "yes" >&6; }
13738     else
13739       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13740 $as_echo "no" >&6; }
13741     fi
13742     ;;
13743   *)
13744     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13745 $as_echo "no" >&6; }
13746     ;;
13747   esac
13748 fi
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761   # Report which library types will actually be built
13762   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13763 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13765 $as_echo "$can_build_shared" >&6; }
13766
13767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13768 $as_echo_n "checking whether to build shared libraries... " >&6; }
13769   test "$can_build_shared" = "no" && enable_shared=no
13770
13771   # On AIX, shared libraries and static libraries use the same namespace, and
13772   # are all built from PIC.
13773   case $host_os in
13774   aix3*)
13775     test "$enable_shared" = yes && enable_static=no
13776     if test -n "$RANLIB"; then
13777       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13778       postinstall_cmds='$RANLIB $lib'
13779     fi
13780     ;;
13781
13782   aix[4-9]*)
13783     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13784       test "$enable_shared" = yes && enable_static=no
13785     fi
13786     ;;
13787   esac
13788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13789 $as_echo "$enable_shared" >&6; }
13790
13791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13792 $as_echo_n "checking whether to build static libraries... " >&6; }
13793   # Make sure either enable_shared or enable_static is yes.
13794   test "$enable_shared" = yes || enable_static=yes
13795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13796 $as_echo "$enable_static" >&6; }
13797
13798
13799
13800
13801 fi
13802 ac_ext=c
13803 ac_cpp='$CPP $CPPFLAGS'
13804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13807
13808 CC="$lt_save_CC"
13809
13810
13811 ac_ext=cpp
13812 ac_cpp='$CXXCPP $CPPFLAGS'
13813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13816
13817 archive_cmds_need_lc_CXX=no
13818 allow_undefined_flag_CXX=
13819 always_export_symbols_CXX=no
13820 archive_expsym_cmds_CXX=
13821 compiler_needs_object_CXX=no
13822 export_dynamic_flag_spec_CXX=
13823 hardcode_direct_CXX=no
13824 hardcode_direct_absolute_CXX=no
13825 hardcode_libdir_flag_spec_CXX=
13826 hardcode_libdir_flag_spec_ld_CXX=
13827 hardcode_libdir_separator_CXX=
13828 hardcode_minus_L_CXX=no
13829 hardcode_shlibpath_var_CXX=unsupported
13830 hardcode_automatic_CXX=no
13831 inherit_rpath_CXX=no
13832 module_cmds_CXX=
13833 module_expsym_cmds_CXX=
13834 link_all_deplibs_CXX=unknown
13835 old_archive_cmds_CXX=$old_archive_cmds
13836 no_undefined_flag_CXX=
13837 whole_archive_flag_spec_CXX=
13838 enable_shared_with_static_runtimes_CXX=no
13839
13840 # Source file extension for C++ test sources.
13841 ac_ext=cpp
13842
13843 # Object file extension for compiled C++ test sources.
13844 objext=o
13845 objext_CXX=$objext
13846
13847 # No sense in running all these tests if we already determined that
13848 # the CXX compiler isn't working.  Some variables (like enable_shared)
13849 # are currently assumed to apply to all compilers on this platform,
13850 # and will be corrupted by setting them based on a non-working compiler.
13851 if test "$_lt_caught_CXX_error" != yes; then
13852   # Code to be used in simple compile tests
13853   lt_simple_compile_test_code="int some_variable = 0;"
13854
13855   # Code to be used in simple link tests
13856   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13857
13858   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13859
13860
13861
13862
13863
13864
13865 # If no C compiler was specified, use CC.
13866 LTCC=${LTCC-"$CC"}
13867
13868 # If no C compiler flags were specified, use CFLAGS.
13869 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13870
13871 # Allow CC to be a program name with arguments.
13872 compiler=$CC
13873
13874
13875   # save warnings/boilerplate of simple test code
13876   ac_outfile=conftest.$ac_objext
13877 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13878 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13879 _lt_compiler_boilerplate=`cat conftest.err`
13880 $RM conftest*
13881
13882   ac_outfile=conftest.$ac_objext
13883 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13884 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13885 _lt_linker_boilerplate=`cat conftest.err`
13886 $RM -r conftest*
13887
13888
13889   # Allow CC to be a program name with arguments.
13890   lt_save_CC=$CC
13891   lt_save_LD=$LD
13892   lt_save_GCC=$GCC
13893   GCC=$GXX
13894   lt_save_with_gnu_ld=$with_gnu_ld
13895   lt_save_path_LD=$lt_cv_path_LD
13896   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13897     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13898   else
13899     $as_unset lt_cv_prog_gnu_ld
13900   fi
13901   if test -n "${lt_cv_path_LDCXX+set}"; then
13902     lt_cv_path_LD=$lt_cv_path_LDCXX
13903   else
13904     $as_unset lt_cv_path_LD
13905   fi
13906   test -z "${LDCXX+set}" || LD=$LDCXX
13907   CC=${CXX-"c++"}
13908   compiler=$CC
13909   compiler_CXX=$CC
13910   for cc_temp in $compiler""; do
13911   case $cc_temp in
13912     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13913     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13914     \-*) ;;
13915     *) break;;
13916   esac
13917 done
13918 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13919
13920
13921   if test -n "$compiler"; then
13922     # We don't want -fno-exception when compiling C++ code, so set the
13923     # no_builtin_flag separately
13924     if test "$GXX" = yes; then
13925       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13926     else
13927       lt_prog_compiler_no_builtin_flag_CXX=
13928     fi
13929
13930     if test "$GXX" = yes; then
13931       # Set up default GNU C++ configuration
13932
13933
13934
13935 # Check whether --with-gnu-ld was given.
13936 if test "${with_gnu_ld+set}" = set; then :
13937   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13938 else
13939   with_gnu_ld=no
13940 fi
13941
13942 ac_prog=ld
13943 if test "$GCC" = yes; then
13944   # Check if gcc -print-prog-name=ld gives a path.
13945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13946 $as_echo_n "checking for ld used by $CC... " >&6; }
13947   case $host in
13948   *-*-mingw*)
13949     # gcc leaves a trailing carriage return which upsets mingw
13950     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13951   *)
13952     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13953   esac
13954   case $ac_prog in
13955     # Accept absolute paths.
13956     [\\/]* | ?:[\\/]*)
13957       re_direlt='/[^/][^/]*/\.\./'
13958       # Canonicalize the pathname of ld
13959       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13960       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13961         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13962       done
13963       test -z "$LD" && LD="$ac_prog"
13964       ;;
13965   "")
13966     # If it fails, then pretend we aren't using GCC.
13967     ac_prog=ld
13968     ;;
13969   *)
13970     # If it is relative, then search for the first ld in PATH.
13971     with_gnu_ld=unknown
13972     ;;
13973   esac
13974 elif test "$with_gnu_ld" = yes; then
13975   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13976 $as_echo_n "checking for GNU ld... " >&6; }
13977 else
13978   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13979 $as_echo_n "checking for non-GNU ld... " >&6; }
13980 fi
13981 if test "${lt_cv_path_LD+set}" = set; then :
13982   $as_echo_n "(cached) " >&6
13983 else
13984   if test -z "$LD"; then
13985   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13986   for ac_dir in $PATH; do
13987     IFS="$lt_save_ifs"
13988     test -z "$ac_dir" && ac_dir=.
13989     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13990       lt_cv_path_LD="$ac_dir/$ac_prog"
13991       # Check to see if the program is GNU ld.  I'd rather use --version,
13992       # but apparently some variants of GNU ld only accept -v.
13993       # Break only if it was the GNU/non-GNU ld that we prefer.
13994       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13995       *GNU* | *'with BFD'*)
13996         test "$with_gnu_ld" != no && break
13997         ;;
13998       *)
13999         test "$with_gnu_ld" != yes && break
14000         ;;
14001       esac
14002     fi
14003   done
14004   IFS="$lt_save_ifs"
14005 else
14006   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14007 fi
14008 fi
14009
14010 LD="$lt_cv_path_LD"
14011 if test -n "$LD"; then
14012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14013 $as_echo "$LD" >&6; }
14014 else
14015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14016 $as_echo "no" >&6; }
14017 fi
14018 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14020 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14021 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14022   $as_echo_n "(cached) " >&6
14023 else
14024   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14025 case `$LD -v 2>&1 </dev/null` in
14026 *GNU* | *'with BFD'*)
14027   lt_cv_prog_gnu_ld=yes
14028   ;;
14029 *)
14030   lt_cv_prog_gnu_ld=no
14031   ;;
14032 esac
14033 fi
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14035 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14036 with_gnu_ld=$lt_cv_prog_gnu_ld
14037
14038
14039
14040
14041
14042
14043
14044       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14045       # archiving commands below assume that GNU ld is being used.
14046       if test "$with_gnu_ld" = yes; then
14047         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14048         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14049
14050         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14051         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14052
14053         # If archive_cmds runs LD, not CC, wlarc should be empty
14054         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14055         #     investigate it a little bit more. (MM)
14056         wlarc='${wl}'
14057
14058         # ancient GNU ld didn't support --whole-archive et. al.
14059         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14060           $GREP 'no-whole-archive' > /dev/null; then
14061           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14062         else
14063           whole_archive_flag_spec_CXX=
14064         fi
14065       else
14066         with_gnu_ld=no
14067         wlarc=
14068
14069         # A generic and very simple default shared library creation
14070         # command for GNU C++ for the case where it uses the native
14071         # linker, instead of GNU ld.  If possible, this setting should
14072         # overridden to take advantage of the native linker features on
14073         # the platform it is being used on.
14074         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14075       fi
14076
14077       # Commands to make compiler produce verbose output that lists
14078       # what "hidden" libraries, object files and flags are used when
14079       # linking a shared library.
14080       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14081
14082     else
14083       GXX=no
14084       with_gnu_ld=no
14085       wlarc=
14086     fi
14087
14088     # PORTME: fill in a description of your system's C++ link characteristics
14089     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14090 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14091     ld_shlibs_CXX=yes
14092     case $host_os in
14093       aix3*)
14094         # FIXME: insert proper C++ library support
14095         ld_shlibs_CXX=no
14096         ;;
14097       aix[4-9]*)
14098         if test "$host_cpu" = ia64; then
14099           # On IA64, the linker does run time linking by default, so we don't
14100           # have to do anything special.
14101           aix_use_runtimelinking=no
14102           exp_sym_flag='-Bexport'
14103           no_entry_flag=""
14104         else
14105           aix_use_runtimelinking=no
14106
14107           # Test if we are trying to use run time linking or normal
14108           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14109           # need to do runtime linking.
14110           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14111             for ld_flag in $LDFLAGS; do
14112               case $ld_flag in
14113               *-brtl*)
14114                 aix_use_runtimelinking=yes
14115                 break
14116                 ;;
14117               esac
14118             done
14119             ;;
14120           esac
14121
14122           exp_sym_flag='-bexport'
14123           no_entry_flag='-bnoentry'
14124         fi
14125
14126         # When large executables or shared objects are built, AIX ld can
14127         # have problems creating the table of contents.  If linking a library
14128         # or program results in "error TOC overflow" add -mminimal-toc to
14129         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14130         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14131
14132         archive_cmds_CXX=''
14133         hardcode_direct_CXX=yes
14134         hardcode_direct_absolute_CXX=yes
14135         hardcode_libdir_separator_CXX=':'
14136         link_all_deplibs_CXX=yes
14137         file_list_spec_CXX='${wl}-f,'
14138
14139         if test "$GXX" = yes; then
14140           case $host_os in aix4.[012]|aix4.[012].*)
14141           # We only want to do this on AIX 4.2 and lower, the check
14142           # below for broken collect2 doesn't work under 4.3+
14143           collect2name=`${CC} -print-prog-name=collect2`
14144           if test -f "$collect2name" &&
14145              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14146           then
14147             # We have reworked collect2
14148             :
14149           else
14150             # We have old collect2
14151             hardcode_direct_CXX=unsupported
14152             # It fails to find uninstalled libraries when the uninstalled
14153             # path is not listed in the libpath.  Setting hardcode_minus_L
14154             # to unsupported forces relinking
14155             hardcode_minus_L_CXX=yes
14156             hardcode_libdir_flag_spec_CXX='-L$libdir'
14157             hardcode_libdir_separator_CXX=
14158           fi
14159           esac
14160           shared_flag='-shared'
14161           if test "$aix_use_runtimelinking" = yes; then
14162             shared_flag="$shared_flag "'${wl}-G'
14163           fi
14164         else
14165           # not using gcc
14166           if test "$host_cpu" = ia64; then
14167           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14168           # chokes on -Wl,-G. The following line is correct:
14169           shared_flag='-G'
14170           else
14171             if test "$aix_use_runtimelinking" = yes; then
14172               shared_flag='${wl}-G'
14173             else
14174               shared_flag='${wl}-bM:SRE'
14175             fi
14176           fi
14177         fi
14178
14179         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14180         # It seems that -bexpall does not export symbols beginning with
14181         # underscore (_), so it is better to generate a list of symbols to
14182         # export.
14183         always_export_symbols_CXX=yes
14184         if test "$aix_use_runtimelinking" = yes; then
14185           # Warning - without using the other runtime loading flags (-brtl),
14186           # -berok will link without error, but may produce a broken library.
14187           allow_undefined_flag_CXX='-berok'
14188           # Determine the default libpath from the value encoded in an empty
14189           # executable.
14190           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14191 /* end confdefs.h.  */
14192
14193 int
14194 main ()
14195 {
14196
14197   ;
14198   return 0;
14199 }
14200 _ACEOF
14201 if ac_fn_cxx_try_link "$LINENO"; then :
14202
14203 lt_aix_libpath_sed='
14204     /Import File Strings/,/^$/ {
14205         /^0/ {
14206             s/^0  *\(.*\)$/\1/
14207             p
14208         }
14209     }'
14210 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14211 # Check for a 64-bit object if we didn't find anything.
14212 if test -z "$aix_libpath"; then
14213   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14214 fi
14215 fi
14216 rm -f core conftest.err conftest.$ac_objext \
14217     conftest$ac_exeext conftest.$ac_ext
14218 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14219
14220           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14221
14222           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14223         else
14224           if test "$host_cpu" = ia64; then
14225             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14226             allow_undefined_flag_CXX="-z nodefs"
14227             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14228           else
14229             # Determine the default libpath from the value encoded in an
14230             # empty executable.
14231             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14232 /* end confdefs.h.  */
14233
14234 int
14235 main ()
14236 {
14237
14238   ;
14239   return 0;
14240 }
14241 _ACEOF
14242 if ac_fn_cxx_try_link "$LINENO"; then :
14243
14244 lt_aix_libpath_sed='
14245     /Import File Strings/,/^$/ {
14246         /^0/ {
14247             s/^0  *\(.*\)$/\1/
14248             p
14249         }
14250     }'
14251 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14252 # Check for a 64-bit object if we didn't find anything.
14253 if test -z "$aix_libpath"; then
14254   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14255 fi
14256 fi
14257 rm -f core conftest.err conftest.$ac_objext \
14258     conftest$ac_exeext conftest.$ac_ext
14259 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14260
14261             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14262             # Warning - without using the other run time loading flags,
14263             # -berok will link without error, but may produce a broken library.
14264             no_undefined_flag_CXX=' ${wl}-bernotok'
14265             allow_undefined_flag_CXX=' ${wl}-berok'
14266             # Exported symbols can be pulled into shared objects from archives
14267             whole_archive_flag_spec_CXX='$convenience'
14268             archive_cmds_need_lc_CXX=yes
14269             # This is similar to how AIX traditionally builds its shared
14270             # libraries.
14271             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14272           fi
14273         fi
14274         ;;
14275
14276       beos*)
14277         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14278           allow_undefined_flag_CXX=unsupported
14279           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14280           # support --undefined.  This deserves some investigation.  FIXME
14281           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14282         else
14283           ld_shlibs_CXX=no
14284         fi
14285         ;;
14286
14287       chorus*)
14288         case $cc_basename in
14289           *)
14290           # FIXME: insert proper C++ library support
14291           ld_shlibs_CXX=no
14292           ;;
14293         esac
14294         ;;
14295
14296       cygwin* | mingw* | pw32* | cegcc*)
14297         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14298         # as there is no search path for DLLs.
14299         hardcode_libdir_flag_spec_CXX='-L$libdir'
14300         allow_undefined_flag_CXX=unsupported
14301         always_export_symbols_CXX=no
14302         enable_shared_with_static_runtimes_CXX=yes
14303
14304         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14305           archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14306           # If the export-symbols file already is a .def file (1st line
14307           # is EXPORTS), use it as is; otherwise, prepend...
14308           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14309             cp $export_symbols $output_objdir/$soname.def;
14310           else
14311             echo EXPORTS > $output_objdir/$soname.def;
14312             cat $export_symbols >> $output_objdir/$soname.def;
14313           fi~
14314           $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14315         else
14316           ld_shlibs_CXX=no
14317         fi
14318         ;;
14319       darwin* | rhapsody*)
14320
14321
14322   archive_cmds_need_lc_CXX=no
14323   hardcode_direct_CXX=no
14324   hardcode_automatic_CXX=yes
14325   hardcode_shlibpath_var_CXX=unsupported
14326   whole_archive_flag_spec_CXX=''
14327   link_all_deplibs_CXX=yes
14328   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14329   case $cc_basename in
14330      ifort*) _lt_dar_can_shared=yes ;;
14331      *) _lt_dar_can_shared=$GCC ;;
14332   esac
14333   if test "$_lt_dar_can_shared" = "yes"; then
14334     output_verbose_link_cmd=echo
14335     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14336     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14337     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14338     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14339        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14340       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
14341       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
14342     fi
14343
14344   else
14345   ld_shlibs_CXX=no
14346   fi
14347
14348         ;;
14349
14350       dgux*)
14351         case $cc_basename in
14352           ec++*)
14353             # FIXME: insert proper C++ library support
14354             ld_shlibs_CXX=no
14355             ;;
14356           ghcx*)
14357             # Green Hills C++ Compiler
14358             # FIXME: insert proper C++ library support
14359             ld_shlibs_CXX=no
14360             ;;
14361           *)
14362             # FIXME: insert proper C++ library support
14363             ld_shlibs_CXX=no
14364             ;;
14365         esac
14366         ;;
14367
14368       freebsd[12]*)
14369         # C++ shared libraries reported to be fairly broken before
14370         # switch to ELF
14371         ld_shlibs_CXX=no
14372         ;;
14373
14374       freebsd-elf*)
14375         archive_cmds_need_lc_CXX=no
14376         ;;
14377
14378       freebsd* | dragonfly*)
14379         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14380         # conventions
14381         ld_shlibs_CXX=yes
14382         ;;
14383
14384       gnu*)
14385         ;;
14386
14387       hpux9*)
14388         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14389         hardcode_libdir_separator_CXX=:
14390         export_dynamic_flag_spec_CXX='${wl}-E'
14391         hardcode_direct_CXX=yes
14392         hardcode_minus_L_CXX=yes # Not in the search PATH,
14393                                              # but as the default
14394                                              # location of the library.
14395
14396         case $cc_basename in
14397           CC*)
14398             # FIXME: insert proper C++ library support
14399             ld_shlibs_CXX=no
14400             ;;
14401           aCC*)
14402             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14403             # Commands to make compiler produce verbose output that lists
14404             # what "hidden" libraries, object files and flags are used when
14405             # linking a shared library.
14406             #
14407             # There doesn't appear to be a way to prevent this compiler from
14408             # explicitly linking system object files so we need to strip them
14409             # from the output so that they don't get included in the library
14410             # dependencies.
14411             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14412             ;;
14413           *)
14414             if test "$GXX" = yes; then
14415               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14416             else
14417               # FIXME: insert proper C++ library support
14418               ld_shlibs_CXX=no
14419             fi
14420             ;;
14421         esac
14422         ;;
14423
14424       hpux10*|hpux11*)
14425         if test $with_gnu_ld = no; then
14426           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14427           hardcode_libdir_separator_CXX=:
14428
14429           case $host_cpu in
14430             hppa*64*|ia64*)
14431               ;;
14432             *)
14433               export_dynamic_flag_spec_CXX='${wl}-E'
14434               ;;
14435           esac
14436         fi
14437         case $host_cpu in
14438           hppa*64*|ia64*)
14439             hardcode_direct_CXX=no
14440             hardcode_shlibpath_var_CXX=no
14441             ;;
14442           *)
14443             hardcode_direct_CXX=yes
14444             hardcode_direct_absolute_CXX=yes
14445             hardcode_minus_L_CXX=yes # Not in the search PATH,
14446                                                  # but as the default
14447                                                  # location of the library.
14448             ;;
14449         esac
14450
14451         case $cc_basename in
14452           CC*)
14453             # FIXME: insert proper C++ library support
14454             ld_shlibs_CXX=no
14455             ;;
14456           aCC*)
14457             case $host_cpu in
14458               hppa*64*)
14459                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14460                 ;;
14461               ia64*)
14462                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14463                 ;;
14464               *)
14465                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14466                 ;;
14467             esac
14468             # Commands to make compiler produce verbose output that lists
14469             # what "hidden" libraries, object files and flags are used when
14470             # linking a shared library.
14471             #
14472             # There doesn't appear to be a way to prevent this compiler from
14473             # explicitly linking system object files so we need to strip them
14474             # from the output so that they don't get included in the library
14475             # dependencies.
14476             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14477             ;;
14478           *)
14479             if test "$GXX" = yes; then
14480               if test $with_gnu_ld = no; then
14481                 case $host_cpu in
14482                   hppa*64*)
14483                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14484                     ;;
14485                   ia64*)
14486                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14487                     ;;
14488                   *)
14489                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14490                     ;;
14491                 esac
14492               fi
14493             else
14494               # FIXME: insert proper C++ library support
14495               ld_shlibs_CXX=no
14496             fi
14497             ;;
14498         esac
14499         ;;
14500
14501       interix[3-9]*)
14502         hardcode_direct_CXX=no
14503         hardcode_shlibpath_var_CXX=no
14504         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14505         export_dynamic_flag_spec_CXX='${wl}-E'
14506         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14507         # Instead, shared libraries are loaded at an image base (0x10000000 by
14508         # default) and relocated if they conflict, which is a slow very memory
14509         # consuming and fragmenting process.  To avoid this, we pick a random,
14510         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14511         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14512         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14513         archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14514         ;;
14515       irix5* | irix6*)
14516         case $cc_basename in
14517           CC*)
14518             # SGI C++
14519             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14520
14521             # Archives containing C++ object files must be created using
14522             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14523             # necessary to make sure instantiated templates are included
14524             # in the archive.
14525             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14526             ;;
14527           *)
14528             if test "$GXX" = yes; then
14529               if test "$with_gnu_ld" = no; then
14530                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14531               else
14532                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
14533               fi
14534             fi
14535             link_all_deplibs_CXX=yes
14536             ;;
14537         esac
14538         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14539         hardcode_libdir_separator_CXX=:
14540         inherit_rpath_CXX=yes
14541         ;;
14542
14543       linux* | k*bsd*-gnu)
14544         case $cc_basename in
14545           KCC*)
14546             # Kuck and Associates, Inc. (KAI) C++ Compiler
14547
14548             # KCC will only create a shared library if the output file
14549             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14550             # to its proper name (with version) after linking.
14551             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14552             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
14553             # Commands to make compiler produce verbose output that lists
14554             # what "hidden" libraries, object files and flags are used when
14555             # linking a shared library.
14556             #
14557             # There doesn't appear to be a way to prevent this compiler from
14558             # explicitly linking system object files so we need to strip them
14559             # from the output so that they don't get included in the library
14560             # dependencies.
14561             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14562
14563             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14564             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14565
14566             # Archives containing C++ object files must be created using
14567             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14568             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14569             ;;
14570           icpc* | ecpc* )
14571             # Intel C++
14572             with_gnu_ld=yes
14573             # version 8.0 and above of icpc choke on multiply defined symbols
14574             # if we add $predep_objects and $postdep_objects, however 7.1 and
14575             # earlier do not add the objects themselves.
14576             case `$CC -V 2>&1` in
14577               *"Version 7."*)
14578                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14579                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14580                 ;;
14581               *)  # Version 8.0 or newer
14582                 tmp_idyn=
14583                 case $host_cpu in
14584                   ia64*) tmp_idyn=' -i_dynamic';;
14585                 esac
14586                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14587                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14588                 ;;
14589             esac
14590             archive_cmds_need_lc_CXX=no
14591             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14592             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14593             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14594             ;;
14595           pgCC* | pgcpp*)
14596             # Portland Group C++ compiler
14597             case `$CC -V` in
14598             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14599               prelink_cmds_CXX='tpldir=Template.dir~
14600                 rm -rf $tpldir~
14601                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14602                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14603               old_archive_cmds_CXX='tpldir=Template.dir~
14604                 rm -rf $tpldir~
14605                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14606                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14607                 $RANLIB $oldlib'
14608               archive_cmds_CXX='tpldir=Template.dir~
14609                 rm -rf $tpldir~
14610                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14611                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14612               archive_expsym_cmds_CXX='tpldir=Template.dir~
14613                 rm -rf $tpldir~
14614                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14615                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14616               ;;
14617             *) # Version 6 will use weak symbols
14618               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14619               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14620               ;;
14621             esac
14622
14623             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14624             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14625             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
14626             ;;
14627           cxx*)
14628             # Compaq C++
14629             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14630             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14631
14632             runpath_var=LD_RUN_PATH
14633             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14634             hardcode_libdir_separator_CXX=:
14635
14636             # Commands to make compiler produce verbose output that lists
14637             # what "hidden" libraries, object files and flags are used when
14638             # linking a shared library.
14639             #
14640             # There doesn't appear to be a way to prevent this compiler from
14641             # explicitly linking system object files so we need to strip them
14642             # from the output so that they don't get included in the library
14643             # dependencies.
14644             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14645             ;;
14646           xl*)
14647             # IBM XL 8.0 on PPC, with GNU ld
14648             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14649             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14650             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14651             if test "x$supports_anon_versioning" = xyes; then
14652               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14653                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14654                 echo "local: *; };" >> $output_objdir/$libname.ver~
14655                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14656             fi
14657             ;;
14658           *)
14659             case `$CC -V 2>&1 | sed 5q` in
14660             *Sun\ C*)
14661               # Sun C++ 5.9
14662               no_undefined_flag_CXX=' -zdefs'
14663               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14664               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14665               hardcode_libdir_flag_spec_CXX='-R$libdir'
14666               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
14667               compiler_needs_object_CXX=yes
14668
14669               # Not sure whether something based on
14670               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14671               # would be better.
14672               output_verbose_link_cmd='echo'
14673
14674               # Archives containing C++ object files must be created using
14675               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14676               # necessary to make sure instantiated templates are included
14677               # in the archive.
14678               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14679               ;;
14680             esac
14681             ;;
14682         esac
14683         ;;
14684
14685       lynxos*)
14686         # FIXME: insert proper C++ library support
14687         ld_shlibs_CXX=no
14688         ;;
14689
14690       m88k*)
14691         # FIXME: insert proper C++ library support
14692         ld_shlibs_CXX=no
14693         ;;
14694
14695       mvs*)
14696         case $cc_basename in
14697           cxx*)
14698             # FIXME: insert proper C++ library support
14699             ld_shlibs_CXX=no
14700             ;;
14701           *)
14702             # FIXME: insert proper C++ library support
14703             ld_shlibs_CXX=no
14704             ;;
14705         esac
14706         ;;
14707
14708       netbsd*)
14709         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14710           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14711           wlarc=
14712           hardcode_libdir_flag_spec_CXX='-R$libdir'
14713           hardcode_direct_CXX=yes
14714           hardcode_shlibpath_var_CXX=no
14715         fi
14716         # Workaround some broken pre-1.5 toolchains
14717         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14718         ;;
14719
14720       *nto* | *qnx*)
14721         ld_shlibs_CXX=yes
14722         ;;
14723
14724       openbsd2*)
14725         # C++ shared libraries are fairly broken
14726         ld_shlibs_CXX=no
14727         ;;
14728
14729       openbsd*)
14730         if test -f /usr/libexec/ld.so; then
14731           hardcode_direct_CXX=yes
14732           hardcode_shlibpath_var_CXX=no
14733           hardcode_direct_absolute_CXX=yes
14734           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14735           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14736           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14737             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14738             export_dynamic_flag_spec_CXX='${wl}-E'
14739             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14740           fi
14741           output_verbose_link_cmd=echo
14742         else
14743           ld_shlibs_CXX=no
14744         fi
14745         ;;
14746
14747       osf3* | osf4* | osf5*)
14748         case $cc_basename in
14749           KCC*)
14750             # Kuck and Associates, Inc. (KAI) C++ Compiler
14751
14752             # KCC will only create a shared library if the output file
14753             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14754             # to its proper name (with version) after linking.
14755             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14756
14757             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14758             hardcode_libdir_separator_CXX=:
14759
14760             # Archives containing C++ object files must be created using
14761             # the KAI C++ compiler.
14762             case $host in
14763               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14764               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14765             esac
14766             ;;
14767           RCC*)
14768             # Rational C++ 2.4.1
14769             # FIXME: insert proper C++ library support
14770             ld_shlibs_CXX=no
14771             ;;
14772           cxx*)
14773             case $host in
14774               osf3*)
14775                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14776                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14777                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14778                 ;;
14779               *)
14780                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14781                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14782                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14783                   echo "-hidden">> $lib.exp~
14784                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
14785                   $RM $lib.exp'
14786                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14787                 ;;
14788             esac
14789
14790             hardcode_libdir_separator_CXX=:
14791
14792             # Commands to make compiler produce verbose output that lists
14793             # what "hidden" libraries, object files and flags are used when
14794             # linking a shared library.
14795             #
14796             # There doesn't appear to be a way to prevent this compiler from
14797             # explicitly linking system object files so we need to strip them
14798             # from the output so that they don't get included in the library
14799             # dependencies.
14800             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14801             ;;
14802           *)
14803             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14804               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14805               case $host in
14806                 osf3*)
14807                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14808                   ;;
14809                 *)
14810                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14811                   ;;
14812               esac
14813
14814               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14815               hardcode_libdir_separator_CXX=:
14816
14817               # Commands to make compiler produce verbose output that lists
14818               # what "hidden" libraries, object files and flags are used when
14819               # linking a shared library.
14820               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14821
14822             else
14823               # FIXME: insert proper C++ library support
14824               ld_shlibs_CXX=no
14825             fi
14826             ;;
14827         esac
14828         ;;
14829
14830       psos*)
14831         # FIXME: insert proper C++ library support
14832         ld_shlibs_CXX=no
14833         ;;
14834
14835       sunos4*)
14836         case $cc_basename in
14837           CC*)
14838             # Sun C++ 4.x
14839             # FIXME: insert proper C++ library support
14840             ld_shlibs_CXX=no
14841             ;;
14842           lcc*)
14843             # Lucid
14844             # FIXME: insert proper C++ library support
14845             ld_shlibs_CXX=no
14846             ;;
14847           *)
14848             # FIXME: insert proper C++ library support
14849             ld_shlibs_CXX=no
14850             ;;
14851         esac
14852         ;;
14853
14854       solaris*)
14855         case $cc_basename in
14856           CC*)
14857             # Sun C++ 4.2, 5.x and Centerline C++
14858             archive_cmds_need_lc_CXX=yes
14859             no_undefined_flag_CXX=' -zdefs'
14860             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14861             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14862               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14863
14864             hardcode_libdir_flag_spec_CXX='-R$libdir'
14865             hardcode_shlibpath_var_CXX=no
14866             case $host_os in
14867               solaris2.[0-5] | solaris2.[0-5].*) ;;
14868               *)
14869                 # The compiler driver will combine and reorder linker options,
14870                 # but understands `-z linker_flag'.
14871                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14872                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14873                 ;;
14874             esac
14875             link_all_deplibs_CXX=yes
14876
14877             output_verbose_link_cmd='echo'
14878
14879             # Archives containing C++ object files must be created using
14880             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14881             # necessary to make sure instantiated templates are included
14882             # in the archive.
14883             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14884             ;;
14885           gcx*)
14886             # Green Hills C++ Compiler
14887             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14888
14889             # The C++ compiler must be used to create the archive.
14890             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14891             ;;
14892           *)
14893             # GNU C++ compiler with Solaris linker
14894             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14895               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14896               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14897                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14898                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14899                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14900
14901                 # Commands to make compiler produce verbose output that lists
14902                 # what "hidden" libraries, object files and flags are used when
14903                 # linking a shared library.
14904                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14905               else
14906                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14907                 # platform.
14908                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14909                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14910                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14911
14912                 # Commands to make compiler produce verbose output that lists
14913                 # what "hidden" libraries, object files and flags are used when
14914                 # linking a shared library.
14915                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14916               fi
14917
14918               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14919               case $host_os in
14920                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14921                 *)
14922                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14923                   ;;
14924               esac
14925             fi
14926             ;;
14927         esac
14928         ;;
14929
14930     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14931       no_undefined_flag_CXX='${wl}-z,text'
14932       archive_cmds_need_lc_CXX=no
14933       hardcode_shlibpath_var_CXX=no
14934       runpath_var='LD_RUN_PATH'
14935
14936       case $cc_basename in
14937         CC*)
14938           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14939           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14940           ;;
14941         *)
14942           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14943           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14944           ;;
14945       esac
14946       ;;
14947
14948       sysv5* | sco3.2v5* | sco5v6*)
14949         # Note: We can NOT use -z defs as we might desire, because we do not
14950         # link with -lc, and that would cause any symbols used from libc to
14951         # always be unresolved, which means just about no library would
14952         # ever link correctly.  If we're not using GNU ld we use -z text
14953         # though, which does catch some bad symbols but isn't as heavy-handed
14954         # as -z defs.
14955         no_undefined_flag_CXX='${wl}-z,text'
14956         allow_undefined_flag_CXX='${wl}-z,nodefs'
14957         archive_cmds_need_lc_CXX=no
14958         hardcode_shlibpath_var_CXX=no
14959         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14960         hardcode_libdir_separator_CXX=':'
14961         link_all_deplibs_CXX=yes
14962         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14963         runpath_var='LD_RUN_PATH'
14964
14965         case $cc_basename in
14966           CC*)
14967             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14968             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14969             ;;
14970           *)
14971             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14972             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14973             ;;
14974         esac
14975       ;;
14976
14977       tandem*)
14978         case $cc_basename in
14979           NCC*)
14980             # NonStop-UX NCC 3.20
14981             # FIXME: insert proper C++ library support
14982             ld_shlibs_CXX=no
14983             ;;
14984           *)
14985             # FIXME: insert proper C++ library support
14986             ld_shlibs_CXX=no
14987             ;;
14988         esac
14989         ;;
14990
14991       vxworks*)
14992         # FIXME: insert proper C++ library support
14993         ld_shlibs_CXX=no
14994         ;;
14995
14996       *)
14997         # FIXME: insert proper C++ library support
14998         ld_shlibs_CXX=no
14999         ;;
15000     esac
15001
15002     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15003 $as_echo "$ld_shlibs_CXX" >&6; }
15004     test "$ld_shlibs_CXX" = no && can_build_shared=no
15005
15006     GCC_CXX="$GXX"
15007     LD_CXX="$LD"
15008
15009     ## CAVEAT EMPTOR:
15010     ## There is no encapsulation within the following macros, do not change
15011     ## the running order or otherwise move them around unless you know exactly
15012     ## what you are doing...
15013     # Dependencies to place before and after the object being linked:
15014 predep_objects_CXX=
15015 postdep_objects_CXX=
15016 predeps_CXX=
15017 postdeps_CXX=
15018 compiler_lib_search_path_CXX=
15019
15020 cat > conftest.$ac_ext <<_LT_EOF
15021 class Foo
15022 {
15023 public:
15024   Foo (void) { a = 0; }
15025 private:
15026   int a;
15027 };
15028 _LT_EOF
15029
15030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15031   (eval $ac_compile) 2>&5
15032   ac_status=$?
15033   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15034   test $ac_status = 0; }; then
15035   # Parse the compiler output and extract the necessary
15036   # objects, libraries and library flags.
15037
15038   # Sentinel used to keep track of whether or not we are before
15039   # the conftest object file.
15040   pre_test_object_deps_done=no
15041
15042   for p in `eval "$output_verbose_link_cmd"`; do
15043     case $p in
15044
15045     -L* | -R* | -l*)
15046        # Some compilers place space between "-{L,R}" and the path.
15047        # Remove the space.
15048        if test $p = "-L" ||
15049           test $p = "-R"; then
15050          prev=$p
15051          continue
15052        else
15053          prev=
15054        fi
15055
15056        if test "$pre_test_object_deps_done" = no; then
15057          case $p in
15058          -L* | -R*)
15059            # Internal compiler library paths should come after those
15060            # provided the user.  The postdeps already come after the
15061            # user supplied libs so there is no need to process them.
15062            if test -z "$compiler_lib_search_path_CXX"; then
15063              compiler_lib_search_path_CXX="${prev}${p}"
15064            else
15065              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15066            fi
15067            ;;
15068          # The "-l" case would never come before the object being
15069          # linked, so don't bother handling this case.
15070          esac
15071        else
15072          if test -z "$postdeps_CXX"; then
15073            postdeps_CXX="${prev}${p}"
15074          else
15075            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15076          fi
15077        fi
15078        ;;
15079
15080     *.$objext)
15081        # This assumes that the test object file only shows up
15082        # once in the compiler output.
15083        if test "$p" = "conftest.$objext"; then
15084          pre_test_object_deps_done=yes
15085          continue
15086        fi
15087
15088        if test "$pre_test_object_deps_done" = no; then
15089          if test -z "$predep_objects_CXX"; then
15090            predep_objects_CXX="$p"
15091          else
15092            predep_objects_CXX="$predep_objects_CXX $p"
15093          fi
15094        else
15095          if test -z "$postdep_objects_CXX"; then
15096            postdep_objects_CXX="$p"
15097          else
15098            postdep_objects_CXX="$postdep_objects_CXX $p"
15099          fi
15100        fi
15101        ;;
15102
15103     *) ;; # Ignore the rest.
15104
15105     esac
15106   done
15107
15108   # Clean up.
15109   rm -f a.out a.exe
15110 else
15111   echo "libtool.m4: error: problem compiling CXX test program"
15112 fi
15113
15114 $RM -f confest.$objext
15115
15116 # PORTME: override above test on systems where it is broken
15117 case $host_os in
15118 interix[3-9]*)
15119   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15120   # hack all around it, let's just trust "g++" to DTRT.
15121   predep_objects_CXX=
15122   postdep_objects_CXX=
15123   postdeps_CXX=
15124   ;;
15125
15126 linux*)
15127   case `$CC -V 2>&1 | sed 5q` in
15128   *Sun\ C*)
15129     # Sun C++ 5.9
15130
15131     # The more standards-conforming stlport4 library is
15132     # incompatible with the Cstd library. Avoid specifying
15133     # it if it's in CXXFLAGS. Ignore libCrun as
15134     # -library=stlport4 depends on it.
15135     case " $CXX $CXXFLAGS " in
15136     *" -library=stlport4 "*)
15137       solaris_use_stlport4=yes
15138       ;;
15139     esac
15140
15141     if test "$solaris_use_stlport4" != yes; then
15142       postdeps_CXX='-library=Cstd -library=Crun'
15143     fi
15144     ;;
15145   esac
15146   ;;
15147
15148 solaris*)
15149   case $cc_basename in
15150   CC*)
15151     # The more standards-conforming stlport4 library is
15152     # incompatible with the Cstd library. Avoid specifying
15153     # it if it's in CXXFLAGS. Ignore libCrun as
15154     # -library=stlport4 depends on it.
15155     case " $CXX $CXXFLAGS " in
15156     *" -library=stlport4 "*)
15157       solaris_use_stlport4=yes
15158       ;;
15159     esac
15160
15161     # Adding this requires a known-good setup of shared libraries for
15162     # Sun compiler versions before 5.6, else PIC objects from an old
15163     # archive will be linked into the output, leading to subtle bugs.
15164     if test "$solaris_use_stlport4" != yes; then
15165       postdeps_CXX='-library=Cstd -library=Crun'
15166     fi
15167     ;;
15168   esac
15169   ;;
15170 esac
15171
15172
15173 case " $postdeps_CXX " in
15174 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15175 esac
15176  compiler_lib_search_dirs_CXX=
15177 if test -n "${compiler_lib_search_path_CXX}"; then
15178  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15179 fi
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211     lt_prog_compiler_wl_CXX=
15212 lt_prog_compiler_pic_CXX=
15213 lt_prog_compiler_static_CXX=
15214
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15216 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15217
15218   # C++ specific cases for pic, static, wl, etc.
15219   if test "$GXX" = yes; then
15220     lt_prog_compiler_wl_CXX='-Wl,'
15221     lt_prog_compiler_static_CXX='-static'
15222
15223     case $host_os in
15224     aix*)
15225       # All AIX code is PIC.
15226       if test "$host_cpu" = ia64; then
15227         # AIX 5 now supports IA64 processor
15228         lt_prog_compiler_static_CXX='-Bstatic'
15229       fi
15230       ;;
15231
15232     amigaos*)
15233       case $host_cpu in
15234       powerpc)
15235             # see comment about AmigaOS4 .so support
15236             lt_prog_compiler_pic_CXX='-fPIC'
15237         ;;
15238       m68k)
15239             # FIXME: we need at least 68020 code to build shared libraries, but
15240             # adding the `-m68020' flag to GCC prevents building anything better,
15241             # like `-m68040'.
15242             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15243         ;;
15244       esac
15245       ;;
15246
15247     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15248       # PIC is the default for these OSes.
15249       ;;
15250     mingw* | cygwin* | os2* | pw32* | cegcc*)
15251       # This hack is so that the source file can tell whether it is being
15252       # built for inclusion in a dll (and should export symbols for example).
15253       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15254       # (--disable-auto-import) libraries
15255       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15256       ;;
15257     darwin* | rhapsody*)
15258       # PIC is the default on this platform
15259       # Common symbols not allowed in MH_DYLIB files
15260       lt_prog_compiler_pic_CXX='-fno-common'
15261       ;;
15262     *djgpp*)
15263       # DJGPP does not support shared libraries at all
15264       lt_prog_compiler_pic_CXX=
15265       ;;
15266     interix[3-9]*)
15267       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15268       # Instead, we relocate shared libraries at runtime.
15269       ;;
15270     sysv4*MP*)
15271       if test -d /usr/nec; then
15272         lt_prog_compiler_pic_CXX=-Kconform_pic
15273       fi
15274       ;;
15275     hpux*)
15276       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15277       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15278       # sets the default TLS model and affects inlining.
15279       case $host_cpu in
15280       hppa*64*)
15281         ;;
15282       *)
15283         lt_prog_compiler_pic_CXX='-fPIC'
15284         ;;
15285       esac
15286       ;;
15287     *qnx* | *nto*)
15288       # QNX uses GNU C++, but need to define -shared option too, otherwise
15289       # it will coredump.
15290       lt_prog_compiler_pic_CXX='-fPIC -shared'
15291       ;;
15292     *)
15293       lt_prog_compiler_pic_CXX='-fPIC'
15294       ;;
15295     esac
15296   else
15297     case $host_os in
15298       aix[4-9]*)
15299         # All AIX code is PIC.
15300         if test "$host_cpu" = ia64; then
15301           # AIX 5 now supports IA64 processor
15302           lt_prog_compiler_static_CXX='-Bstatic'
15303         else
15304           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15305         fi
15306         ;;
15307       chorus*)
15308         case $cc_basename in
15309         cxch68*)
15310           # Green Hills C++ Compiler
15311           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
15312           ;;
15313         esac
15314         ;;
15315       dgux*)
15316         case $cc_basename in
15317           ec++*)
15318             lt_prog_compiler_pic_CXX='-KPIC'
15319             ;;
15320           ghcx*)
15321             # Green Hills C++ Compiler
15322             lt_prog_compiler_pic_CXX='-pic'
15323             ;;
15324           *)
15325             ;;
15326         esac
15327         ;;
15328       freebsd* | dragonfly*)
15329         # FreeBSD uses GNU C++
15330         ;;
15331       hpux9* | hpux10* | hpux11*)
15332         case $cc_basename in
15333           CC*)
15334             lt_prog_compiler_wl_CXX='-Wl,'
15335             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15336             if test "$host_cpu" != ia64; then
15337               lt_prog_compiler_pic_CXX='+Z'
15338             fi
15339             ;;
15340           aCC*)
15341             lt_prog_compiler_wl_CXX='-Wl,'
15342             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15343             case $host_cpu in
15344             hppa*64*|ia64*)
15345               # +Z the default
15346               ;;
15347             *)
15348               lt_prog_compiler_pic_CXX='+Z'
15349               ;;
15350             esac
15351             ;;
15352           *)
15353             ;;
15354         esac
15355         ;;
15356       interix*)
15357         # This is c89, which is MS Visual C++ (no shared libs)
15358         # Anyone wants to do a port?
15359         ;;
15360       irix5* | irix6* | nonstopux*)
15361         case $cc_basename in
15362           CC*)
15363             lt_prog_compiler_wl_CXX='-Wl,'
15364             lt_prog_compiler_static_CXX='-non_shared'
15365             # CC pic flag -KPIC is the default.
15366             ;;
15367           *)
15368             ;;
15369         esac
15370         ;;
15371       linux* | k*bsd*-gnu)
15372         case $cc_basename in
15373           KCC*)
15374             # KAI C++ Compiler
15375             lt_prog_compiler_wl_CXX='--backend -Wl,'
15376             lt_prog_compiler_pic_CXX='-fPIC'
15377             ;;
15378           ecpc* )
15379             # old Intel C++ for x86_64 which still supported -KPIC.
15380             lt_prog_compiler_wl_CXX='-Wl,'
15381             lt_prog_compiler_pic_CXX='-KPIC'
15382             lt_prog_compiler_static_CXX='-static'
15383             ;;
15384           icpc* )
15385             # Intel C++, used to be incompatible with GCC.
15386             # ICC 10 doesn't accept -KPIC any more.
15387             lt_prog_compiler_wl_CXX='-Wl,'
15388             lt_prog_compiler_pic_CXX='-fPIC'
15389             lt_prog_compiler_static_CXX='-static'
15390             ;;
15391           pgCC* | pgcpp*)
15392             # Portland Group C++ compiler
15393             lt_prog_compiler_wl_CXX='-Wl,'
15394             lt_prog_compiler_pic_CXX='-fpic'
15395             lt_prog_compiler_static_CXX='-Bstatic'
15396             ;;
15397           cxx*)
15398             # Compaq C++
15399             # Make sure the PIC flag is empty.  It appears that all Alpha
15400             # Linux and Compaq Tru64 Unix objects are PIC.
15401             lt_prog_compiler_pic_CXX=
15402             lt_prog_compiler_static_CXX='-non_shared'
15403             ;;
15404           xlc* | xlC*)
15405             # IBM XL 8.0 on PPC
15406             lt_prog_compiler_wl_CXX='-Wl,'
15407             lt_prog_compiler_pic_CXX='-qpic'
15408             lt_prog_compiler_static_CXX='-qstaticlink'
15409             ;;
15410           *)
15411             case `$CC -V 2>&1 | sed 5q` in
15412             *Sun\ C*)
15413               # Sun C++ 5.9
15414               lt_prog_compiler_pic_CXX='-KPIC'
15415               lt_prog_compiler_static_CXX='-Bstatic'
15416               lt_prog_compiler_wl_CXX='-Qoption ld '
15417               ;;
15418             esac
15419             ;;
15420         esac
15421         ;;
15422       lynxos*)
15423         ;;
15424       m88k*)
15425         ;;
15426       mvs*)
15427         case $cc_basename in
15428           cxx*)
15429             lt_prog_compiler_pic_CXX='-W c,exportall'
15430             ;;
15431           *)
15432             ;;
15433         esac
15434         ;;
15435       netbsd* | netbsdelf*-gnu)
15436         ;;
15437       *qnx* | *nto*)
15438         # QNX uses GNU C++, but need to define -shared option too, otherwise
15439         # it will coredump.
15440         lt_prog_compiler_pic_CXX='-fPIC -shared'
15441         ;;
15442       osf3* | osf4* | osf5*)
15443         case $cc_basename in
15444           KCC*)
15445             lt_prog_compiler_wl_CXX='--backend -Wl,'
15446             ;;
15447           RCC*)
15448             # Rational C++ 2.4.1
15449             lt_prog_compiler_pic_CXX='-pic'
15450             ;;
15451           cxx*)
15452             # Digital/Compaq C++
15453             lt_prog_compiler_wl_CXX='-Wl,'
15454             # Make sure the PIC flag is empty.  It appears that all Alpha
15455             # Linux and Compaq Tru64 Unix objects are PIC.
15456             lt_prog_compiler_pic_CXX=
15457             lt_prog_compiler_static_CXX='-non_shared'
15458             ;;
15459           *)
15460             ;;
15461         esac
15462         ;;
15463       psos*)
15464         ;;
15465       solaris*)
15466         case $cc_basename in
15467           CC*)
15468             # Sun C++ 4.2, 5.x and Centerline C++
15469             lt_prog_compiler_pic_CXX='-KPIC'
15470             lt_prog_compiler_static_CXX='-Bstatic'
15471             lt_prog_compiler_wl_CXX='-Qoption ld '
15472             ;;
15473           gcx*)
15474             # Green Hills C++ Compiler
15475             lt_prog_compiler_pic_CXX='-PIC'
15476             ;;
15477           *)
15478             ;;
15479         esac
15480         ;;
15481       sunos4*)
15482         case $cc_basename in
15483           CC*)
15484             # Sun C++ 4.x
15485             lt_prog_compiler_pic_CXX='-pic'
15486             lt_prog_compiler_static_CXX='-Bstatic'
15487             ;;
15488           lcc*)
15489             # Lucid
15490             lt_prog_compiler_pic_CXX='-pic'
15491             ;;
15492           *)
15493             ;;
15494         esac
15495         ;;
15496       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15497         case $cc_basename in
15498           CC*)
15499             lt_prog_compiler_wl_CXX='-Wl,'
15500             lt_prog_compiler_pic_CXX='-KPIC'
15501             lt_prog_compiler_static_CXX='-Bstatic'
15502             ;;
15503         esac
15504         ;;
15505       tandem*)
15506         case $cc_basename in
15507           NCC*)
15508             # NonStop-UX NCC 3.20
15509             lt_prog_compiler_pic_CXX='-KPIC'
15510             ;;
15511           *)
15512             ;;
15513         esac
15514         ;;
15515       vxworks*)
15516         ;;
15517       *)
15518         lt_prog_compiler_can_build_shared_CXX=no
15519         ;;
15520     esac
15521   fi
15522
15523 case $host_os in
15524   # For platforms which do not support PIC, -DPIC is meaningless:
15525   *djgpp*)
15526     lt_prog_compiler_pic_CXX=
15527     ;;
15528   *)
15529     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15530     ;;
15531 esac
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15533 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15534
15535
15536
15537 #
15538 # Check to make sure the PIC flag actually works.
15539 #
15540 if test -n "$lt_prog_compiler_pic_CXX"; then
15541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15542 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15543 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15544   $as_echo_n "(cached) " >&6
15545 else
15546   lt_cv_prog_compiler_pic_works_CXX=no
15547    ac_outfile=conftest.$ac_objext
15548    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15549    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15550    # Insert the option either (1) after the last *FLAGS variable, or
15551    # (2) before a word containing "conftest.", or (3) at the end.
15552    # Note that $ac_compile itself does not contain backslashes and begins
15553    # with a dollar sign (not a hyphen), so the echo should work correctly.
15554    # The option is referenced via a variable to avoid confusing sed.
15555    lt_compile=`echo "$ac_compile" | $SED \
15556    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15557    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15558    -e 's:$: $lt_compiler_flag:'`
15559    (eval echo "\"\$as_me:15559: $lt_compile\"" >&5)
15560    (eval "$lt_compile" 2>conftest.err)
15561    ac_status=$?
15562    cat conftest.err >&5
15563    echo "$as_me:15563: \$? = $ac_status" >&5
15564    if (exit $ac_status) && test -s "$ac_outfile"; then
15565      # The compiler can only warn and ignore the option if not recognized
15566      # So say no if there are warnings other than the usual output.
15567      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15568      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15569      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15570        lt_cv_prog_compiler_pic_works_CXX=yes
15571      fi
15572    fi
15573    $RM conftest*
15574
15575 fi
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15577 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15578
15579 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15580     case $lt_prog_compiler_pic_CXX in
15581      "" | " "*) ;;
15582      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15583      esac
15584 else
15585     lt_prog_compiler_pic_CXX=
15586      lt_prog_compiler_can_build_shared_CXX=no
15587 fi
15588
15589 fi
15590
15591
15592
15593 #
15594 # Check to make sure the static flag actually works.
15595 #
15596 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15598 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15599 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15600   $as_echo_n "(cached) " >&6
15601 else
15602   lt_cv_prog_compiler_static_works_CXX=no
15603    save_LDFLAGS="$LDFLAGS"
15604    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15605    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15606    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15607      # The linker can only warn and ignore the option if not recognized
15608      # So say no if there are warnings
15609      if test -s conftest.err; then
15610        # Append any errors to the config.log.
15611        cat conftest.err 1>&5
15612        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15613        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15614        if diff conftest.exp conftest.er2 >/dev/null; then
15615          lt_cv_prog_compiler_static_works_CXX=yes
15616        fi
15617      else
15618        lt_cv_prog_compiler_static_works_CXX=yes
15619      fi
15620    fi
15621    $RM -r conftest*
15622    LDFLAGS="$save_LDFLAGS"
15623
15624 fi
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15626 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15627
15628 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15629     :
15630 else
15631     lt_prog_compiler_static_CXX=
15632 fi
15633
15634
15635
15636
15637     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15638 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15639 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15640   $as_echo_n "(cached) " >&6
15641 else
15642   lt_cv_prog_compiler_c_o_CXX=no
15643    $RM -r conftest 2>/dev/null
15644    mkdir conftest
15645    cd conftest
15646    mkdir out
15647    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15648
15649    lt_compiler_flag="-o out/conftest2.$ac_objext"
15650    # Insert the option either (1) after the last *FLAGS variable, or
15651    # (2) before a word containing "conftest.", or (3) at the end.
15652    # Note that $ac_compile itself does not contain backslashes and begins
15653    # with a dollar sign (not a hyphen), so the echo should work correctly.
15654    lt_compile=`echo "$ac_compile" | $SED \
15655    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15656    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15657    -e 's:$: $lt_compiler_flag:'`
15658    (eval echo "\"\$as_me:15658: $lt_compile\"" >&5)
15659    (eval "$lt_compile" 2>out/conftest.err)
15660    ac_status=$?
15661    cat out/conftest.err >&5
15662    echo "$as_me:15662: \$? = $ac_status" >&5
15663    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15664    then
15665      # The compiler can only warn and ignore the option if not recognized
15666      # So say no if there are warnings
15667      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15668      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15669      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15670        lt_cv_prog_compiler_c_o_CXX=yes
15671      fi
15672    fi
15673    chmod u+w . 2>&5
15674    $RM conftest*
15675    # SGI C++ compiler will create directory out/ii_files/ for
15676    # template instantiation
15677    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15678    $RM out/* && rmdir out
15679    cd ..
15680    $RM -r conftest
15681    $RM conftest*
15682
15683 fi
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15685 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15686
15687
15688
15689     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15690 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15691 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15692   $as_echo_n "(cached) " >&6
15693 else
15694   lt_cv_prog_compiler_c_o_CXX=no
15695    $RM -r conftest 2>/dev/null
15696    mkdir conftest
15697    cd conftest
15698    mkdir out
15699    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15700
15701    lt_compiler_flag="-o out/conftest2.$ac_objext"
15702    # Insert the option either (1) after the last *FLAGS variable, or
15703    # (2) before a word containing "conftest.", or (3) at the end.
15704    # Note that $ac_compile itself does not contain backslashes and begins
15705    # with a dollar sign (not a hyphen), so the echo should work correctly.
15706    lt_compile=`echo "$ac_compile" | $SED \
15707    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15708    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15709    -e 's:$: $lt_compiler_flag:'`
15710    (eval echo "\"\$as_me:15710: $lt_compile\"" >&5)
15711    (eval "$lt_compile" 2>out/conftest.err)
15712    ac_status=$?
15713    cat out/conftest.err >&5
15714    echo "$as_me:15714: \$? = $ac_status" >&5
15715    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15716    then
15717      # The compiler can only warn and ignore the option if not recognized
15718      # So say no if there are warnings
15719      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15720      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15721      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15722        lt_cv_prog_compiler_c_o_CXX=yes
15723      fi
15724    fi
15725    chmod u+w . 2>&5
15726    $RM conftest*
15727    # SGI C++ compiler will create directory out/ii_files/ for
15728    # template instantiation
15729    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15730    $RM out/* && rmdir out
15731    cd ..
15732    $RM -r conftest
15733    $RM conftest*
15734
15735 fi
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15737 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15738
15739
15740
15741
15742 hard_links="nottested"
15743 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15744   # do not overwrite the value of need_locks provided by the user
15745   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15746 $as_echo_n "checking if we can lock with hard links... " >&6; }
15747   hard_links=yes
15748   $RM conftest*
15749   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15750   touch conftest.a
15751   ln conftest.a conftest.b 2>&5 || hard_links=no
15752   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15754 $as_echo "$hard_links" >&6; }
15755   if test "$hard_links" = no; then
15756     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15757 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15758     need_locks=warn
15759   fi
15760 else
15761   need_locks=no
15762 fi
15763
15764
15765
15766     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15767 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15768
15769   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15770   case $host_os in
15771   aix[4-9]*)
15772     # If we're using GNU nm, then we don't want the "-C" option.
15773     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15774     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15775       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15776     else
15777       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15778     fi
15779     ;;
15780   pw32*)
15781     export_symbols_cmds_CXX="$ltdll_cmds"
15782   ;;
15783   cygwin* | mingw* | cegcc*)
15784     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15785   ;;
15786   linux* | k*bsd*-gnu)
15787     link_all_deplibs_CXX=no
15788   ;;
15789   *)
15790     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15791   ;;
15792   esac
15793   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15794
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15796 $as_echo "$ld_shlibs_CXX" >&6; }
15797 test "$ld_shlibs_CXX" = no && can_build_shared=no
15798
15799 with_gnu_ld_CXX=$with_gnu_ld
15800
15801
15802
15803
15804
15805
15806 #
15807 # Do we need to explicitly link libc?
15808 #
15809 case "x$archive_cmds_need_lc_CXX" in
15810 x|xyes)
15811   # Assume -lc should be added
15812   archive_cmds_need_lc_CXX=yes
15813
15814   if test "$enable_shared" = yes && test "$GCC" = yes; then
15815     case $archive_cmds_CXX in
15816     *'~'*)
15817       # FIXME: we may have to deal with multi-command sequences.
15818       ;;
15819     '$CC '*)
15820       # Test whether the compiler implicitly links with -lc since on some
15821       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15822       # to ld, don't add -lc before -lgcc.
15823       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15824 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15825       $RM conftest*
15826       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15827
15828       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15829   (eval $ac_compile) 2>&5
15830   ac_status=$?
15831   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15832   test $ac_status = 0; } 2>conftest.err; then
15833         soname=conftest
15834         lib=conftest
15835         libobjs=conftest.$ac_objext
15836         deplibs=
15837         wl=$lt_prog_compiler_wl_CXX
15838         pic_flag=$lt_prog_compiler_pic_CXX
15839         compiler_flags=-v
15840         linker_flags=-v
15841         verstring=
15842         output_objdir=.
15843         libname=conftest
15844         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15845         allow_undefined_flag_CXX=
15846         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15847   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15848   ac_status=$?
15849   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15850   test $ac_status = 0; }
15851         then
15852           archive_cmds_need_lc_CXX=no
15853         else
15854           archive_cmds_need_lc_CXX=yes
15855         fi
15856         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15857       else
15858         cat conftest.err 1>&5
15859       fi
15860       $RM conftest*
15861       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
15862 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
15863       ;;
15864     esac
15865   fi
15866   ;;
15867 esac
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15933 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15934
15935 library_names_spec=
15936 libname_spec='lib$name'
15937 soname_spec=
15938 shrext_cmds=".so"
15939 postinstall_cmds=
15940 postuninstall_cmds=
15941 finish_cmds=
15942 finish_eval=
15943 shlibpath_var=
15944 shlibpath_overrides_runpath=unknown
15945 version_type=none
15946 dynamic_linker="$host_os ld.so"
15947 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15948 need_lib_prefix=unknown
15949 hardcode_into_libs=no
15950
15951 # when you set need_version to no, make sure it does not cause -set_version
15952 # flags to be left without arguments
15953 need_version=unknown
15954
15955 case $host_os in
15956 aix3*)
15957   version_type=linux
15958   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15959   shlibpath_var=LIBPATH
15960
15961   # AIX 3 has no versioning support, so we append a major version to the name.
15962   soname_spec='${libname}${release}${shared_ext}$major'
15963   ;;
15964
15965 aix[4-9]*)
15966   version_type=linux
15967   need_lib_prefix=no
15968   need_version=no
15969   hardcode_into_libs=yes
15970   if test "$host_cpu" = ia64; then
15971     # AIX 5 supports IA64
15972     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15973     shlibpath_var=LD_LIBRARY_PATH
15974   else
15975     # With GCC up to 2.95.x, collect2 would create an import file
15976     # for dependence libraries.  The import file would start with
15977     # the line `#! .'.  This would cause the generated library to
15978     # depend on `.', always an invalid library.  This was fixed in
15979     # development snapshots of GCC prior to 3.0.
15980     case $host_os in
15981       aix4 | aix4.[01] | aix4.[01].*)
15982       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15983            echo ' yes '
15984            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15985         :
15986       else
15987         can_build_shared=no
15988       fi
15989       ;;
15990     esac
15991     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15992     # soname into executable. Probably we can add versioning support to
15993     # collect2, so additional links can be useful in future.
15994     if test "$aix_use_runtimelinking" = yes; then
15995       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15996       # instead of lib<name>.a to let people know that these are not
15997       # typical AIX shared libraries.
15998       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15999     else
16000       # We preserve .a as extension for shared libraries through AIX4.2
16001       # and later when we are not doing run time linking.
16002       library_names_spec='${libname}${release}.a $libname.a'
16003       soname_spec='${libname}${release}${shared_ext}$major'
16004     fi
16005     shlibpath_var=LIBPATH
16006   fi
16007   ;;
16008
16009 amigaos*)
16010   case $host_cpu in
16011   powerpc)
16012     # Since July 2007 AmigaOS4 officially supports .so libraries.
16013     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16014     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16015     ;;
16016   m68k)
16017     library_names_spec='$libname.ixlibrary $libname.a'
16018     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16019     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16020     ;;
16021   esac
16022   ;;
16023
16024 beos*)
16025   library_names_spec='${libname}${shared_ext}'
16026   dynamic_linker="$host_os ld.so"
16027   shlibpath_var=LIBRARY_PATH
16028   ;;
16029
16030 bsdi[45]*)
16031   version_type=linux
16032   need_version=no
16033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16034   soname_spec='${libname}${release}${shared_ext}$major'
16035   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16036   shlibpath_var=LD_LIBRARY_PATH
16037   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16038   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16039   # the default ld.so.conf also contains /usr/contrib/lib and
16040   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16041   # libtool to hard-code these into programs
16042   ;;
16043
16044 cygwin* | mingw* | pw32* | cegcc*)
16045   version_type=windows
16046   shrext_cmds=".dll"
16047   need_version=no
16048   need_lib_prefix=no
16049
16050   case $GCC,$host_os in
16051   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16052     library_names_spec='$libname.dll.a'
16053     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16054     postinstall_cmds='base_file=`basename \${file}`~
16055       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16056       dldir=$destdir/`dirname \$dlpath`~
16057       test -d \$dldir || mkdir -p \$dldir~
16058       $install_prog $dir/$dlname \$dldir/$dlname~
16059       chmod a+x \$dldir/$dlname~
16060       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16061         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16062       fi'
16063     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16064       dlpath=$dir/\$dldll~
16065        $RM \$dlpath'
16066     shlibpath_overrides_runpath=yes
16067
16068     case $host_os in
16069     cygwin*)
16070       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16071       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16072       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16073       ;;
16074     mingw* | cegcc*)
16075       # MinGW DLLs use traditional 'lib' prefix
16076       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16077       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16078       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16079         # It is most probably a Windows format PATH printed by
16080         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16081         # path with ; separators, and with drive letters. We can handle the
16082         # drive letters (cygwin fileutils understands them), so leave them,
16083         # especially as we might pass files found there to a mingw objdump,
16084         # which wouldn't understand a cygwinified path. Ahh.
16085         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16086       else
16087         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16088       fi
16089       ;;
16090     pw32*)
16091       # pw32 DLLs use 'pw' prefix rather than 'lib'
16092       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16093       ;;
16094     esac
16095     ;;
16096
16097   *)
16098     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16099     ;;
16100   esac
16101   dynamic_linker='Win32 ld.exe'
16102   # FIXME: first we should search . and the directory the executable is in
16103   shlibpath_var=PATH
16104   ;;
16105
16106 darwin* | rhapsody*)
16107   dynamic_linker="$host_os dyld"
16108   version_type=darwin
16109   need_lib_prefix=no
16110   need_version=no
16111   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16112   soname_spec='${libname}${release}${major}$shared_ext'
16113   shlibpath_overrides_runpath=yes
16114   shlibpath_var=DYLD_LIBRARY_PATH
16115   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16116
16117   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16118   ;;
16119
16120 dgux*)
16121   version_type=linux
16122   need_lib_prefix=no
16123   need_version=no
16124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16125   soname_spec='${libname}${release}${shared_ext}$major'
16126   shlibpath_var=LD_LIBRARY_PATH
16127   ;;
16128
16129 freebsd1*)
16130   dynamic_linker=no
16131   ;;
16132
16133 freebsd* | dragonfly*)
16134   # DragonFly does not have aout.  When/if they implement a new
16135   # versioning mechanism, adjust this.
16136   if test -x /usr/bin/objformat; then
16137     objformat=`/usr/bin/objformat`
16138   else
16139     case $host_os in
16140     freebsd[123]*) objformat=aout ;;
16141     *) objformat=elf ;;
16142     esac
16143   fi
16144   version_type=freebsd-$objformat
16145   case $version_type in
16146     freebsd-elf*)
16147       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16148       need_version=no
16149       need_lib_prefix=no
16150       ;;
16151     freebsd-*)
16152       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16153       need_version=yes
16154       ;;
16155   esac
16156   shlibpath_var=LD_LIBRARY_PATH
16157   case $host_os in
16158   freebsd2*)
16159     shlibpath_overrides_runpath=yes
16160     ;;
16161   freebsd3.[01]* | freebsdelf3.[01]*)
16162     shlibpath_overrides_runpath=yes
16163     hardcode_into_libs=yes
16164     ;;
16165   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16166   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16167     shlibpath_overrides_runpath=no
16168     hardcode_into_libs=yes
16169     ;;
16170   *) # from 4.6 on, and DragonFly
16171     shlibpath_overrides_runpath=yes
16172     hardcode_into_libs=yes
16173     ;;
16174   esac
16175   ;;
16176
16177 gnu*)
16178   version_type=linux
16179   need_lib_prefix=no
16180   need_version=no
16181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16182   soname_spec='${libname}${release}${shared_ext}$major'
16183   shlibpath_var=LD_LIBRARY_PATH
16184   hardcode_into_libs=yes
16185   ;;
16186
16187 hpux9* | hpux10* | hpux11*)
16188   # Give a soname corresponding to the major version so that dld.sl refuses to
16189   # link against other versions.
16190   version_type=sunos
16191   need_lib_prefix=no
16192   need_version=no
16193   case $host_cpu in
16194   ia64*)
16195     shrext_cmds='.so'
16196     hardcode_into_libs=yes
16197     dynamic_linker="$host_os dld.so"
16198     shlibpath_var=LD_LIBRARY_PATH
16199     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16200     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16201     soname_spec='${libname}${release}${shared_ext}$major'
16202     if test "X$HPUX_IA64_MODE" = X32; then
16203       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16204     else
16205       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16206     fi
16207     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16208     ;;
16209   hppa*64*)
16210     shrext_cmds='.sl'
16211     hardcode_into_libs=yes
16212     dynamic_linker="$host_os dld.sl"
16213     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16214     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16215     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16216     soname_spec='${libname}${release}${shared_ext}$major'
16217     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16218     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16219     ;;
16220   *)
16221     shrext_cmds='.sl'
16222     dynamic_linker="$host_os dld.sl"
16223     shlibpath_var=SHLIB_PATH
16224     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16225     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16226     soname_spec='${libname}${release}${shared_ext}$major'
16227     ;;
16228   esac
16229   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16230   postinstall_cmds='chmod 555 $lib'
16231   ;;
16232
16233 interix[3-9]*)
16234   version_type=linux
16235   need_lib_prefix=no
16236   need_version=no
16237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16238   soname_spec='${libname}${release}${shared_ext}$major'
16239   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16240   shlibpath_var=LD_LIBRARY_PATH
16241   shlibpath_overrides_runpath=no
16242   hardcode_into_libs=yes
16243   ;;
16244
16245 irix5* | irix6* | nonstopux*)
16246   case $host_os in
16247     nonstopux*) version_type=nonstopux ;;
16248     *)
16249         if test "$lt_cv_prog_gnu_ld" = yes; then
16250                 version_type=linux
16251         else
16252                 version_type=irix
16253         fi ;;
16254   esac
16255   need_lib_prefix=no
16256   need_version=no
16257   soname_spec='${libname}${release}${shared_ext}$major'
16258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16259   case $host_os in
16260   irix5* | nonstopux*)
16261     libsuff= shlibsuff=
16262     ;;
16263   *)
16264     case $LD in # libtool.m4 will add one of these switches to LD
16265     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16266       libsuff= shlibsuff= libmagic=32-bit;;
16267     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16268       libsuff=32 shlibsuff=N32 libmagic=N32;;
16269     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16270       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16271     *) libsuff= shlibsuff= libmagic=never-match;;
16272     esac
16273     ;;
16274   esac
16275   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16276   shlibpath_overrides_runpath=no
16277   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16278   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16279   hardcode_into_libs=yes
16280   ;;
16281
16282 # No shared lib support for Linux oldld, aout, or coff.
16283 linux*oldld* | linux*aout* | linux*coff*)
16284   dynamic_linker=no
16285   ;;
16286
16287 # This must be Linux ELF.
16288 linux* | k*bsd*-gnu)
16289   version_type=linux
16290   need_lib_prefix=no
16291   need_version=no
16292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16293   soname_spec='${libname}${release}${shared_ext}$major'
16294   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16295   shlibpath_var=LD_LIBRARY_PATH
16296   shlibpath_overrides_runpath=no
16297   # Some binutils ld are patched to set DT_RUNPATH
16298   save_LDFLAGS=$LDFLAGS
16299   save_libdir=$libdir
16300   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16301        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16303 /* end confdefs.h.  */
16304
16305 int
16306 main ()
16307 {
16308
16309   ;
16310   return 0;
16311 }
16312 _ACEOF
16313 if ac_fn_cxx_try_link "$LINENO"; then :
16314   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16315   shlibpath_overrides_runpath=yes
16316 fi
16317 fi
16318 rm -f core conftest.err conftest.$ac_objext \
16319     conftest$ac_exeext conftest.$ac_ext
16320   LDFLAGS=$save_LDFLAGS
16321   libdir=$save_libdir
16322
16323   # This implies no fast_install, which is unacceptable.
16324   # Some rework will be needed to allow for fast_install
16325   # before this can be enabled.
16326   hardcode_into_libs=yes
16327
16328   # Append ld.so.conf contents to the search path
16329   if test -f /etc/ld.so.conf; then
16330     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16331     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16332   fi
16333
16334   # We used to test for /lib/ld.so.1 and disable shared libraries on
16335   # powerpc, because MkLinux only supported shared libraries with the
16336   # GNU dynamic linker.  Since this was broken with cross compilers,
16337   # most powerpc-linux boxes support dynamic linking these days and
16338   # people can always --disable-shared, the test was removed, and we
16339   # assume the GNU/Linux dynamic linker is in use.
16340   dynamic_linker='GNU/Linux ld.so'
16341   ;;
16342
16343 netbsdelf*-gnu)
16344   version_type=linux
16345   need_lib_prefix=no
16346   need_version=no
16347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16348   soname_spec='${libname}${release}${shared_ext}$major'
16349   shlibpath_var=LD_LIBRARY_PATH
16350   shlibpath_overrides_runpath=no
16351   hardcode_into_libs=yes
16352   dynamic_linker='NetBSD ld.elf_so'
16353   ;;
16354
16355 netbsd*)
16356   version_type=sunos
16357   need_lib_prefix=no
16358   need_version=no
16359   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16360     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16361     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16362     dynamic_linker='NetBSD (a.out) ld.so'
16363   else
16364     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16365     soname_spec='${libname}${release}${shared_ext}$major'
16366     dynamic_linker='NetBSD ld.elf_so'
16367   fi
16368   shlibpath_var=LD_LIBRARY_PATH
16369   shlibpath_overrides_runpath=yes
16370   hardcode_into_libs=yes
16371   ;;
16372
16373 newsos6)
16374   version_type=linux
16375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16376   shlibpath_var=LD_LIBRARY_PATH
16377   shlibpath_overrides_runpath=yes
16378   ;;
16379
16380 *nto* | *qnx*)
16381   version_type=qnx
16382   need_lib_prefix=no
16383   need_version=no
16384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16385   soname_spec='${libname}${release}${shared_ext}$major'
16386   shlibpath_var=LD_LIBRARY_PATH
16387   shlibpath_overrides_runpath=no
16388   hardcode_into_libs=yes
16389   dynamic_linker='ldqnx.so'
16390   ;;
16391
16392 openbsd*)
16393   version_type=sunos
16394   sys_lib_dlsearch_path_spec="/usr/lib"
16395   need_lib_prefix=no
16396   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16397   case $host_os in
16398     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16399     *)                          need_version=no  ;;
16400   esac
16401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16402   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16403   shlibpath_var=LD_LIBRARY_PATH
16404   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16405     case $host_os in
16406       openbsd2.[89] | openbsd2.[89].*)
16407         shlibpath_overrides_runpath=no
16408         ;;
16409       *)
16410         shlibpath_overrides_runpath=yes
16411         ;;
16412       esac
16413   else
16414     shlibpath_overrides_runpath=yes
16415   fi
16416   ;;
16417
16418 os2*)
16419   libname_spec='$name'
16420   shrext_cmds=".dll"
16421   need_lib_prefix=no
16422   library_names_spec='$libname${shared_ext} $libname.a'
16423   dynamic_linker='OS/2 ld.exe'
16424   shlibpath_var=LIBPATH
16425   ;;
16426
16427 osf3* | osf4* | osf5*)
16428   version_type=osf
16429   need_lib_prefix=no
16430   need_version=no
16431   soname_spec='${libname}${release}${shared_ext}$major'
16432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16433   shlibpath_var=LD_LIBRARY_PATH
16434   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16435   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16436   ;;
16437
16438 rdos*)
16439   dynamic_linker=no
16440   ;;
16441
16442 solaris*)
16443   version_type=linux
16444   need_lib_prefix=no
16445   need_version=no
16446   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16447   soname_spec='${libname}${release}${shared_ext}$major'
16448   shlibpath_var=LD_LIBRARY_PATH
16449   shlibpath_overrides_runpath=yes
16450   hardcode_into_libs=yes
16451   # ldd complains unless libraries are executable
16452   postinstall_cmds='chmod +x $lib'
16453   ;;
16454
16455 sunos4*)
16456   version_type=sunos
16457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16458   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16459   shlibpath_var=LD_LIBRARY_PATH
16460   shlibpath_overrides_runpath=yes
16461   if test "$with_gnu_ld" = yes; then
16462     need_lib_prefix=no
16463   fi
16464   need_version=yes
16465   ;;
16466
16467 sysv4 | sysv4.3*)
16468   version_type=linux
16469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16470   soname_spec='${libname}${release}${shared_ext}$major'
16471   shlibpath_var=LD_LIBRARY_PATH
16472   case $host_vendor in
16473     sni)
16474       shlibpath_overrides_runpath=no
16475       need_lib_prefix=no
16476       runpath_var=LD_RUN_PATH
16477       ;;
16478     siemens)
16479       need_lib_prefix=no
16480       ;;
16481     motorola)
16482       need_lib_prefix=no
16483       need_version=no
16484       shlibpath_overrides_runpath=no
16485       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16486       ;;
16487   esac
16488   ;;
16489
16490 sysv4*MP*)
16491   if test -d /usr/nec ;then
16492     version_type=linux
16493     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16494     soname_spec='$libname${shared_ext}.$major'
16495     shlibpath_var=LD_LIBRARY_PATH
16496   fi
16497   ;;
16498
16499 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16500   version_type=freebsd-elf
16501   need_lib_prefix=no
16502   need_version=no
16503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16504   soname_spec='${libname}${release}${shared_ext}$major'
16505   shlibpath_var=LD_LIBRARY_PATH
16506   shlibpath_overrides_runpath=yes
16507   hardcode_into_libs=yes
16508   if test "$with_gnu_ld" = yes; then
16509     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16510   else
16511     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16512     case $host_os in
16513       sco3.2v5*)
16514         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16515         ;;
16516     esac
16517   fi
16518   sys_lib_dlsearch_path_spec='/usr/lib'
16519   ;;
16520
16521 tpf*)
16522   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16523   version_type=linux
16524   need_lib_prefix=no
16525   need_version=no
16526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16527   shlibpath_var=LD_LIBRARY_PATH
16528   shlibpath_overrides_runpath=no
16529   hardcode_into_libs=yes
16530   ;;
16531
16532 uts4*)
16533   version_type=linux
16534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16535   soname_spec='${libname}${release}${shared_ext}$major'
16536   shlibpath_var=LD_LIBRARY_PATH
16537   ;;
16538
16539 *)
16540   dynamic_linker=no
16541   ;;
16542 esac
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16544 $as_echo "$dynamic_linker" >&6; }
16545 test "$dynamic_linker" = no && can_build_shared=no
16546
16547 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16548 if test "$GCC" = yes; then
16549   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16550 fi
16551
16552 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16553   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16554 fi
16555 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16556   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16557 fi
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16595 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16596 hardcode_action_CXX=
16597 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16598    test -n "$runpath_var_CXX" ||
16599    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16600
16601   # We can hardcode non-existent directories.
16602   if test "$hardcode_direct_CXX" != no &&
16603      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16604      # have to relink, otherwise we might link with an installed library
16605      # when we should be linking with a yet-to-be-installed one
16606      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16607      test "$hardcode_minus_L_CXX" != no; then
16608     # Linking always hardcodes the temporary library directory.
16609     hardcode_action_CXX=relink
16610   else
16611     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16612     hardcode_action_CXX=immediate
16613   fi
16614 else
16615   # We cannot hardcode anything, or else we can only hardcode existing
16616   # directories.
16617   hardcode_action_CXX=unsupported
16618 fi
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16620 $as_echo "$hardcode_action_CXX" >&6; }
16621
16622 if test "$hardcode_action_CXX" = relink ||
16623    test "$inherit_rpath_CXX" = yes; then
16624   # Fast installation is not supported
16625   enable_fast_install=no
16626 elif test "$shlibpath_overrides_runpath" = yes ||
16627      test "$enable_shared" = no; then
16628   # Fast installation is not necessary
16629   enable_fast_install=needless
16630 fi
16631
16632
16633
16634
16635
16636
16637
16638   fi # test -n "$compiler"
16639
16640   CC=$lt_save_CC
16641   LDCXX=$LD
16642   LD=$lt_save_LD
16643   GCC=$lt_save_GCC
16644   with_gnu_ld=$lt_save_with_gnu_ld
16645   lt_cv_path_LDCXX=$lt_cv_path_LD
16646   lt_cv_path_LD=$lt_save_path_LD
16647   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16648   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16649 fi # test "$_lt_caught_CXX_error" != yes
16650
16651 ac_ext=c
16652 ac_cpp='$CPP $CPPFLAGS'
16653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669         ac_config_commands="$ac_config_commands libtool"
16670
16671
16672
16673
16674 # Only expand once:
16675
16676
16677
16678
16679
16680         no_undefined=""
16681         case "${host_os}" in
16682                 *mingw* | *cygwin*)
16683
16684                 # on MinGW/Cygwin extra LDFLAGS are required
16685                 no_undefined="-no-undefined"
16686                 ;;
16687         esac
16688         NO_UNDEFINED=$no_undefined
16689
16690
16691
16692
16693
16694
16695         # Find any Python interpreter.
16696     if test -z "$PYTHON"; then
16697       for ac_prog in python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0
16698 do
16699   # Extract the first word of "$ac_prog", so it can be a program name with args.
16700 set dummy $ac_prog; ac_word=$2
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16702 $as_echo_n "checking for $ac_word... " >&6; }
16703 if test "${ac_cv_path_PYTHON+set}" = set; then :
16704   $as_echo_n "(cached) " >&6
16705 else
16706   case $PYTHON in
16707   [\\/]* | ?:[\\/]*)
16708   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
16709   ;;
16710   *)
16711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16712 for as_dir in $PATH
16713 do
16714   IFS=$as_save_IFS
16715   test -z "$as_dir" && as_dir=.
16716     for ac_exec_ext in '' $ac_executable_extensions; do
16717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16718     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
16719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16720     break 2
16721   fi
16722 done
16723   done
16724 IFS=$as_save_IFS
16725
16726   ;;
16727 esac
16728 fi
16729 PYTHON=$ac_cv_path_PYTHON
16730 if test -n "$PYTHON"; then
16731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16732 $as_echo "$PYTHON" >&6; }
16733 else
16734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16735 $as_echo "no" >&6; }
16736 fi
16737
16738
16739   test -n "$PYTHON" && break
16740 done
16741 test -n "$PYTHON" || PYTHON=":"
16742
16743     fi
16744     am_display_PYTHON=python
16745
16746
16747   if test "$PYTHON" = :; then
16748       as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
16749   else
16750
16751
16752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
16753 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
16754 if test "${am_cv_python_version+set}" = set; then :
16755   $as_echo_n "(cached) " >&6
16756 else
16757   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
16758 fi
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
16760 $as_echo "$am_cv_python_version" >&6; }
16761   PYTHON_VERSION=$am_cv_python_version
16762
16763
16764
16765   PYTHON_PREFIX='${prefix}'
16766
16767   PYTHON_EXEC_PREFIX='${exec_prefix}'
16768
16769
16770
16771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
16772 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
16773 if test "${am_cv_python_platform+set}" = set; then :
16774   $as_echo_n "(cached) " >&6
16775 else
16776   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
16777 fi
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
16779 $as_echo "$am_cv_python_platform" >&6; }
16780   PYTHON_PLATFORM=$am_cv_python_platform
16781
16782
16783
16784
16785                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
16786 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
16787 if test "${am_cv_python_pythondir+set}" = set; then :
16788   $as_echo_n "(cached) " >&6
16789 else
16790   if test "x$prefix" = xNONE
16791      then
16792        am_py_prefix=$ac_default_prefix
16793      else
16794        am_py_prefix=$prefix
16795      fi
16796      am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
16797      echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
16798      case $am_cv_python_pythondir in
16799      $am_py_prefix*)
16800        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
16801        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
16802        ;;
16803      *)
16804        case $am_py_prefix in
16805          /usr|/System*) ;;
16806          *)
16807           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
16808           ;;
16809        esac
16810        ;;
16811      esac
16812
16813 fi
16814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
16815 $as_echo "$am_cv_python_pythondir" >&6; }
16816   pythondir=$am_cv_python_pythondir
16817
16818
16819
16820   pkgpythondir=\${pythondir}/$PACKAGE
16821
16822
16823             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
16824 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
16825 if test "${am_cv_python_pyexecdir+set}" = set; then :
16826   $as_echo_n "(cached) " >&6
16827 else
16828   if test "x$exec_prefix" = xNONE
16829      then
16830        am_py_exec_prefix=$am_py_prefix
16831      else
16832        am_py_exec_prefix=$exec_prefix
16833      fi
16834      am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
16835      echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
16836      case $am_cv_python_pyexecdir in
16837      $am_py_exec_prefix*)
16838        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
16839        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
16840        ;;
16841      *)
16842        case $am_py_exec_prefix in
16843          /usr|/System*) ;;
16844          *)
16845            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
16846            ;;
16847        esac
16848        ;;
16849      esac
16850
16851 fi
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
16853 $as_echo "$am_cv_python_pyexecdir" >&6; }
16854   pyexecdir=$am_cv_python_pyexecdir
16855
16856
16857
16858   pkgpyexecdir=\${pyexecdir}/$PACKAGE
16859
16860
16861
16862   fi
16863
16864
16865
16866
16867
16868
16869
16870 # Check whether --with-pythondir was given.
16871 if test "${with_pythondir+set}" = set; then :
16872   withval=$with_pythondir; with_pythondir=${withval}
16873 else
16874   with_pythondir=${prefix}/lib/python2.5/site-packages
16875 fi
16876
16877
16878         # if we're cross-compiling, asking the host python about any of
16879         # this is completely useless...
16880
16881         if test x$cross_compiling != xno
16882         then
16883                 pythondir=$with_pythondir
16884                 pyexecdir=$with_pythondir
16885
16886
16887         else
16888
16889             # For Fedora Core 5 and 6, see ticket:39 in Trac
16890             if test -f '/etc/redhat-release'; then
16891                     if  (echo $pyexecdir | grep -q lib64); then
16892                             pythondir="$pyexecdir"
16893                     fi
16894             fi
16895
16896             # Check for Python include path
16897             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
16898 $as_echo_n "checking for Python include path... " >&6; }
16899             if test -z "$PYTHON" ; then
16900                     as_fn_error $? "cannot find Python path" "$LINENO" 5
16901             fi
16902
16903             # ask distutils which include path we should use
16904             python_cmd='
16905 import distutils.sysconfig
16906 import os
16907 path = distutils.sysconfig.get_python_inc(plat_specific=False)
16908 if os.sep == "\\":
16909   path = path.replace("\\", "/")
16910 print path
16911 '
16912             python_path=`$PYTHON -c "$python_cmd"`
16913             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_path" >&5
16914 $as_echo "$python_path" >&6; }
16915             if test -z "$python_path" ; then
16916                     as_fn_error $? "cannot find Python include path" "$LINENO" 5
16917             fi
16918
16919             PYTHON_CPPFLAGS=-I$python_path
16920
16921
16922             # Check for Python headers usability
16923             python_save_CPPFLAGS=$CPPFLAGS
16924             CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
16925             for ac_header in Python.h
16926 do :
16927   ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
16928 if test "x$ac_cv_header_Python_h" = x""yes; then :
16929   cat >>confdefs.h <<_ACEOF
16930 #define HAVE_PYTHON_H 1
16931 _ACEOF
16932
16933 else
16934   as_fn_error $? "cannot find usable Python headers" "$LINENO" 5
16935 fi
16936
16937 done
16938
16939             CPPFLAGS="$python_save_CPPFLAGS"
16940
16941             # Only set this on mingw and cygwin hosts, (only implemented
16942             # for mingw host, for crosscompiling you need to trick this)
16943
16944             PYTHON_LDFLAGS=""
16945             case $host_os in
16946                  *mingw* | *cygwin* )
16947               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python LDFLAGS" >&5
16948 $as_echo_n "checking for Python LDFLAGS... " >&6; }
16949
16950             python_cmd='
16951 import distutils.sysconfig
16952 import os
16953 path = distutils.sysconfig.get_config_var("LIBPL")
16954 if path == None:
16955   path = distutils.sysconfig.PREFIX + "/libs"
16956 if os.sep == "\\":
16957   path = path.replace("\\", "/")
16958 print path
16959 '
16960               python_stdlib_path=`$PYTHON -c "$python_cmd"`
16961
16962               python_version_nodot=`echo $PYTHON_VERSION | sed "s,\.,,"`
16963               libpython_name="python$PYTHON_VERSION"
16964
16965               # Standard install of python for win32 has libpython24.a
16966               # instead of libpython2.4.a so we check for the library
16967               # without the dot in the version number.
16968
16969               python_stdlib_filename=`find $python_stdlib_path -type f -name libpython$python_version_nodot.* -print | sed "1q"`
16970               if test -n "$python_stdlib_filename" ; then
16971                     libpython_name="python$python_version_nodot"
16972               fi
16973
16974               PYTHON_LDFLAGS="-L$python_stdlib_path -l$libpython_name"
16975               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
16976 $as_echo "$PYTHON_LDFLAGS" >&6; }
16977               # Replace all backslashes in PYTHON Paths with forward slashes
16978               pythondir=`echo $pythondir |sed 's,\\\\,/,g'`
16979               pkgpythondir=`echo $pkgpythondir |sed 's,\\\\,/,g'`
16980               pyexecdir=`echo $pyexecdir |sed 's,\\\\,/,g'`
16981               pkgpyexecdir=`echo $pkgpyexecdir |sed 's,\\\\,/,g'`
16982               ;;
16983             esac
16984
16985             case $host_os in
16986                  *mingw* )
16987               # Python 2.5 requires ".pyd" instead of ".dll" for extensions
16988               PYTHON_LDFLAGS="-shrext .pyd ${PYTHON_LDFLAGS}"
16989             esac
16990
16991
16992         fi
16993
16994
16995
16996
16997
16998
16999
17000
17001         # Extract the first word of "swig", so it can be a program name with args.
17002 set dummy swig; ac_word=$2
17003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17004 $as_echo_n "checking for $ac_word... " >&6; }
17005 if test "${ac_cv_prog_SWIG+set}" = set; then :
17006   $as_echo_n "(cached) " >&6
17007 else
17008   if test -n "$SWIG"; then
17009   ac_cv_prog_SWIG="$SWIG" # Let the user override the test.
17010 else
17011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17012 for as_dir in $PATH
17013 do
17014   IFS=$as_save_IFS
17015   test -z "$as_dir" && as_dir=.
17016     for ac_exec_ext in '' $ac_executable_extensions; do
17017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17018     ac_cv_prog_SWIG="`which swig`"
17019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17020     break 2
17021   fi
17022 done
17023   done
17024 IFS=$as_save_IFS
17025
17026 fi
17027 fi
17028 SWIG=$ac_cv_prog_SWIG
17029 if test -n "$SWIG"; then
17030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
17031 $as_echo "$SWIG" >&6; }
17032 else
17033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17034 $as_echo "no" >&6; }
17035 fi
17036
17037
17038         if test -z "$SWIG" ; then
17039                 as_fn_error $? "Cannot find 'swig' program.  SWIG version >= 1.3.31 required" "$LINENO" 5
17040                 SWIG=false
17041         elif test -n "1.3.31" ; then
17042                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
17043 $as_echo_n "checking for SWIG version... " >&6; }
17044                 swig_version=`$SWIG -version 2>&1 | \
17045                         awk '/^SWIG Version [0-9]+\.[0-9]+\.[0-9]+.*$/ { split($3,a,"[^.0-9]"); print a[1] }'`
17046                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
17047 $as_echo "$swig_version" >&6; }
17048                 if test -n "$swig_version" ; then
17049                         swig_version=`echo $swig_version | \
17050                                 awk '{ split($1,a,"\."); print a[1]*1000000+a[2]*1000+a[3] }' 2>/dev/null`
17051                         swig_required_version=`echo 1.3.31 | \
17052                                 awk '{ split($1,a,"\."); print a[1]*1000000+a[2]*1000+a[3] }' 2>/dev/null`
17053                         if test $swig_required_version -gt $swig_version ; then
17054                                 as_fn_error $? "SWIG version >= 1.3.31 required" "$LINENO" 5
17055                         fi
17056                 else
17057                         as_fn_error $? "cannot determine SWIG version" "$LINENO" 5
17058                 fi
17059         fi
17060
17061
17062
17063
17064         if test "$SWIG" != "false" ; then
17065                 SWIG="$SWIG -c++"
17066         fi
17067
17068
17069
17070
17071         if test "$SWIG" != "false" ; then
17072                 SWIG_PYTHON_LIB=-lswigpy
17073
17074                 SWIG_PYTHON_OPT=-python
17075
17076         fi
17077         SWIG_PYTHON_CPPFLAGS=$PYTHON_CPPFLAGS
17078
17079
17080
17081
17082 # Allow user to choose whether to generate SWIG/Python
17083 # Default is enabled
17084 # Check whether --enable-python was given.
17085 if test "${enable_python+set}" = set; then :
17086   enableval=$enable_python; case "${enableval}" in
17087      yes) enable_python=yes ;;
17088      no) enable_python=no ;;
17089      *) as_fn_error $? "bad value ${enableval} for --enable-python" "$LINENO" 5  ;;
17090    esac
17091 else
17092   enable_python=yes
17093
17094 fi
17095
17096  if test x$enable_python = xyes; then
17097   PYTHON_TRUE=
17098   PYTHON_FALSE='#'
17099 else
17100   PYTHON_TRUE='#'
17101   PYTHON_FALSE=
17102 fi
17103
17104
17105 # Extract the first word of "xmlto", so it can be a program name with args.
17106 set dummy xmlto; ac_word=$2
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17108 $as_echo_n "checking for $ac_word... " >&6; }
17109 if test "${ac_cv_prog_XMLTO+set}" = set; then :
17110   $as_echo_n "(cached) " >&6
17111 else
17112   if test -n "$XMLTO"; then
17113   ac_cv_prog_XMLTO="$XMLTO" # Let the user override the test.
17114 else
17115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17116 for as_dir in $PATH
17117 do
17118   IFS=$as_save_IFS
17119   test -z "$as_dir" && as_dir=.
17120     for ac_exec_ext in '' $ac_executable_extensions; do
17121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17122     ac_cv_prog_XMLTO="yes"
17123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17124     break 2
17125   fi
17126 done
17127   done
17128 IFS=$as_save_IFS
17129
17130 fi
17131 fi
17132 XMLTO=$ac_cv_prog_XMLTO
17133 if test -n "$XMLTO"; then
17134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
17135 $as_echo "$XMLTO" >&6; }
17136 else
17137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17138 $as_echo "no" >&6; }
17139 fi
17140
17141
17142  if test x$XMLTO = xyes; then
17143   HAS_XMLTO_TRUE=
17144   HAS_XMLTO_FALSE='#'
17145 else
17146   HAS_XMLTO_TRUE='#'
17147   HAS_XMLTO_FALSE=
17148 fi
17149
17150
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
17152 $as_echo_n "checking for socket in -lsocket... " >&6; }
17153 if test "${ac_cv_lib_socket_socket+set}" = set; then :
17154   $as_echo_n "(cached) " >&6
17155 else
17156   ac_check_lib_save_LIBS=$LIBS
17157 LIBS="-lsocket  $LIBS"
17158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17159 /* end confdefs.h.  */
17160
17161 /* Override any GCC internal prototype to avoid an error.
17162    Use char because int might match the return type of a GCC
17163    builtin and then its argument prototype would still apply.  */
17164 #ifdef __cplusplus
17165 extern "C"
17166 #endif
17167 char socket ();
17168 int
17169 main ()
17170 {
17171 return socket ();
17172   ;
17173   return 0;
17174 }
17175 _ACEOF
17176 if ac_fn_c_try_link "$LINENO"; then :
17177   ac_cv_lib_socket_socket=yes
17178 else
17179   ac_cv_lib_socket_socket=no
17180 fi
17181 rm -f core conftest.err conftest.$ac_objext \
17182     conftest$ac_exeext conftest.$ac_ext
17183 LIBS=$ac_check_lib_save_LIBS
17184 fi
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
17186 $as_echo "$ac_cv_lib_socket_socket" >&6; }
17187 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
17188   cat >>confdefs.h <<_ACEOF
17189 #define HAVE_LIBSOCKET 1
17190 _ACEOF
17191
17192   LIBS="-lsocket $LIBS"
17193
17194 fi
17195
17196
17197 if test x$CXX_FOR_BUILD = x
17198 then
17199   if test x$cross_compiling = xno; then
17200     CXX_FOR_BUILD=${CXX}
17201   else
17202     CXX_FOR_BUILD=g++
17203   fi
17204 fi
17205
17206
17207
17208
17209         ac_ext=c
17210 ac_cpp='$CPP $CPPFLAGS'
17211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17214
17215
17216         for ac_header in sys/ipc.h sys/shm.h
17217 do :
17218   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17219 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17220 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17221   cat >>confdefs.h <<_ACEOF
17222 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17223 _ACEOF
17224
17225 fi
17226
17227 done
17228
17229
17230         save_LIBS="$LIBS"
17231         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shmat" >&5
17232 $as_echo_n "checking for library containing shmat... " >&6; }
17233 if test "${ac_cv_search_shmat+set}" = set; then :
17234   $as_echo_n "(cached) " >&6
17235 else
17236   ac_func_search_save_LIBS=$LIBS
17237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17238 /* end confdefs.h.  */
17239
17240 /* Override any GCC internal prototype to avoid an error.
17241    Use char because int might match the return type of a GCC
17242    builtin and then its argument prototype would still apply.  */
17243 #ifdef __cplusplus
17244 extern "C"
17245 #endif
17246 char shmat ();
17247 int
17248 main ()
17249 {
17250 return shmat ();
17251   ;
17252   return 0;
17253 }
17254 _ACEOF
17255 for ac_lib in '' cygipc ipc; do
17256   if test -z "$ac_lib"; then
17257     ac_res="none required"
17258   else
17259     ac_res=-l$ac_lib
17260     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17261   fi
17262   if ac_fn_c_try_link "$LINENO"; then :
17263   ac_cv_search_shmat=$ac_res
17264 fi
17265 rm -f core conftest.err conftest.$ac_objext \
17266     conftest$ac_exeext
17267   if test "${ac_cv_search_shmat+set}" = set; then :
17268   break
17269 fi
17270 done
17271 if test "${ac_cv_search_shmat+set}" = set; then :
17272
17273 else
17274   ac_cv_search_shmat=no
17275 fi
17276 rm conftest.$ac_ext
17277 LIBS=$ac_func_search_save_LIBS
17278 fi
17279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shmat" >&5
17280 $as_echo "$ac_cv_search_shmat" >&6; }
17281 ac_res=$ac_cv_search_shmat
17282 if test "$ac_res" != no; then :
17283   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17284    IPC_LIBS="$LIBS"
17285 else
17286    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SystemV IPC support not found. " >&5
17287 $as_echo "$as_me: WARNING: SystemV IPC support not found. " >&2;}
17288
17289 fi
17290
17291         LIBS="$save_LIBS"
17292
17293         ac_ext=c
17294 ac_cpp='$CPP $CPPFLAGS'
17295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17298
17299
17300
17301
17302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17303 $as_echo_n "checking for ANSI C header files... " >&6; }
17304 if test "${ac_cv_header_stdc+set}" = set; then :
17305   $as_echo_n "(cached) " >&6
17306 else
17307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17308 /* end confdefs.h.  */
17309 #include <stdlib.h>
17310 #include <stdarg.h>
17311 #include <string.h>
17312 #include <float.h>
17313
17314 int
17315 main ()
17316 {
17317
17318   ;
17319   return 0;
17320 }
17321 _ACEOF
17322 if ac_fn_c_try_compile "$LINENO"; then :
17323   ac_cv_header_stdc=yes
17324 else
17325   ac_cv_header_stdc=no
17326 fi
17327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17328
17329 if test $ac_cv_header_stdc = yes; then
17330   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17332 /* end confdefs.h.  */
17333 #include <string.h>
17334
17335 _ACEOF
17336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17337   $EGREP "memchr" >/dev/null 2>&1; then :
17338
17339 else
17340   ac_cv_header_stdc=no
17341 fi
17342 rm -f conftest*
17343
17344 fi
17345
17346 if test $ac_cv_header_stdc = yes; then
17347   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17348   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17349 /* end confdefs.h.  */
17350 #include <stdlib.h>
17351
17352 _ACEOF
17353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17354   $EGREP "free" >/dev/null 2>&1; then :
17355
17356 else
17357   ac_cv_header_stdc=no
17358 fi
17359 rm -f conftest*
17360
17361 fi
17362
17363 if test $ac_cv_header_stdc = yes; then
17364   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17365   if test "$cross_compiling" = yes; then :
17366   :
17367 else
17368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17369 /* end confdefs.h.  */
17370 #include <ctype.h>
17371 #include <stdlib.h>
17372 #if ((' ' & 0x0FF) == 0x020)
17373 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17374 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17375 #else
17376 # define ISLOWER(c) \
17377                    (('a' <= (c) && (c) <= 'i') \
17378                      || ('j' <= (c) && (c) <= 'r') \
17379                      || ('s' <= (c) && (c) <= 'z'))
17380 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17381 #endif
17382
17383 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17384 int
17385 main ()
17386 {
17387   int i;
17388   for (i = 0; i < 256; i++)
17389     if (XOR (islower (i), ISLOWER (i))
17390         || toupper (i) != TOUPPER (i))
17391       return 2;
17392   return 0;
17393 }
17394 _ACEOF
17395 if ac_fn_c_try_run "$LINENO"; then :
17396
17397 else
17398   ac_cv_header_stdc=no
17399 fi
17400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17401   conftest.$ac_objext conftest.beam conftest.$ac_ext
17402 fi
17403
17404 fi
17405 fi
17406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17407 $as_echo "$ac_cv_header_stdc" >&6; }
17408 if test $ac_cv_header_stdc = yes; then
17409
17410 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
17411
17412 fi
17413
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
17415 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
17416 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
17417   $as_echo_n "(cached) " >&6
17418 else
17419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17420 /* end confdefs.h.  */
17421 #include <sys/types.h>
17422 #include <sys/wait.h>
17423 #ifndef WEXITSTATUS
17424 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
17425 #endif
17426 #ifndef WIFEXITED
17427 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
17428 #endif
17429
17430 int
17431 main ()
17432 {
17433   int s;
17434   wait (&s);
17435   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
17436   ;
17437   return 0;
17438 }
17439 _ACEOF
17440 if ac_fn_c_try_compile "$LINENO"; then :
17441   ac_cv_header_sys_wait_h=yes
17442 else
17443   ac_cv_header_sys_wait_h=no
17444 fi
17445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17446 fi
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
17448 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
17449 if test $ac_cv_header_sys_wait_h = yes; then
17450
17451 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
17452
17453 fi
17454
17455 for ac_header in fcntl.h limits.h strings.h time.h sys/ioctl.h sys/time.h unistd.h
17456 do :
17457   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17458 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17459 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17460   cat >>confdefs.h <<_ACEOF
17461 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17462 _ACEOF
17463
17464 fi
17465
17466 done
17467
17468 for ac_header in linux/ppdev.h dev/ppbus/ppi.h sys/mman.h sys/select.h sys/types.h
17469 do :
17470   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17471 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17472 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17473   cat >>confdefs.h <<_ACEOF
17474 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17475 _ACEOF
17476
17477 fi
17478
17479 done
17480
17481 for ac_header in sys/resource.h stdint.h sched.h signal.h sys/syscall.h malloc.h
17482 do :
17483   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17484 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17485 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17486   cat >>confdefs.h <<_ACEOF
17487 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17488 _ACEOF
17489
17490 fi
17491
17492 done
17493
17494 for ac_header in windows.h
17495 do :
17496   ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
17497 if test "x$ac_cv_header_windows_h" = x""yes; then :
17498   cat >>confdefs.h <<_ACEOF
17499 #define HAVE_WINDOWS_H 1
17500 _ACEOF
17501
17502 fi
17503
17504 done
17505
17506 for ac_header in vec_types.h
17507 do :
17508   ac_fn_c_check_header_mongrel "$LINENO" "vec_types.h" "ac_cv_header_vec_types_h" "$ac_includes_default"
17509 if test "x$ac_cv_header_vec_types_h" = x""yes; then :
17510   cat >>confdefs.h <<_ACEOF
17511 #define HAVE_VEC_TYPES_H 1
17512 _ACEOF
17513
17514 fi
17515
17516 done
17517
17518 for ac_header in netdb.h netinet/in.h arpa/inet.h sys/types.h sys/socket.h
17519 do :
17520   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17521 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17522 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17523   cat >>confdefs.h <<_ACEOF
17524 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17525 _ACEOF
17526
17527 fi
17528
17529 done
17530
17531
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17533 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17534 if test "${ac_cv_c_const+set}" = set; then :
17535   $as_echo_n "(cached) " >&6
17536 else
17537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17538 /* end confdefs.h.  */
17539
17540 int
17541 main ()
17542 {
17543 /* FIXME: Include the comments suggested by Paul. */
17544 #ifndef __cplusplus
17545   /* Ultrix mips cc rejects this.  */
17546   typedef int charset[2];
17547   const charset cs;
17548   /* SunOS 4.1.1 cc rejects this.  */
17549   char const *const *pcpcc;
17550   char **ppc;
17551   /* NEC SVR4.0.2 mips cc rejects this.  */
17552   struct point {int x, y;};
17553   static struct point const zero = {0,0};
17554   /* AIX XL C 1.02.0.0 rejects this.
17555      It does not let you subtract one const X* pointer from another in
17556      an arm of an if-expression whose if-part is not a constant
17557      expression */
17558   const char *g = "string";
17559   pcpcc = &g + (g ? g-g : 0);
17560   /* HPUX 7.0 cc rejects these. */
17561   ++pcpcc;
17562   ppc = (char**) pcpcc;
17563   pcpcc = (char const *const *) ppc;
17564   { /* SCO 3.2v4 cc rejects this.  */
17565     char *t;
17566     char const *s = 0 ? (char *) 0 : (char const *) 0;
17567
17568     *t++ = 0;
17569     if (s) return 0;
17570   }
17571   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17572     int x[] = {25, 17};
17573     const int *foo = &x[0];
17574     ++foo;
17575   }
17576   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17577     typedef const int *iptr;
17578     iptr p = 0;
17579     ++p;
17580   }
17581   { /* AIX XL C 1.02.0.0 rejects this saying
17582        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17583     struct s { int j; const int *ap[3]; };
17584     struct s *b; b->j = 5;
17585   }
17586   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17587     const int foo = 10;
17588     if (!foo) return 0;
17589   }
17590   return !cs[0] && !zero.x;
17591 #endif
17592
17593   ;
17594   return 0;
17595 }
17596 _ACEOF
17597 if ac_fn_c_try_compile "$LINENO"; then :
17598   ac_cv_c_const=yes
17599 else
17600   ac_cv_c_const=no
17601 fi
17602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17603 fi
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17605 $as_echo "$ac_cv_c_const" >&6; }
17606 if test $ac_cv_c_const = no; then
17607
17608 $as_echo "#define const /**/" >>confdefs.h
17609
17610 fi
17611
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17613 $as_echo_n "checking for inline... " >&6; }
17614 if test "${ac_cv_c_inline+set}" = set; then :
17615   $as_echo_n "(cached) " >&6
17616 else
17617   ac_cv_c_inline=no
17618 for ac_kw in inline __inline__ __inline; do
17619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17620 /* end confdefs.h.  */
17621 #ifndef __cplusplus
17622 typedef int foo_t;
17623 static $ac_kw foo_t static_foo () {return 0; }
17624 $ac_kw foo_t foo () {return 0; }
17625 #endif
17626
17627 _ACEOF
17628 if ac_fn_c_try_compile "$LINENO"; then :
17629   ac_cv_c_inline=$ac_kw
17630 fi
17631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17632   test "$ac_cv_c_inline" != no && break
17633 done
17634
17635 fi
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17637 $as_echo "$ac_cv_c_inline" >&6; }
17638
17639 case $ac_cv_c_inline in
17640   inline | yes) ;;
17641   *)
17642     case $ac_cv_c_inline in
17643       no) ac_val=;;
17644       *) ac_val=$ac_cv_c_inline;;
17645     esac
17646     cat >>confdefs.h <<_ACEOF
17647 #ifndef __cplusplus
17648 #define inline $ac_val
17649 #endif
17650 _ACEOF
17651     ;;
17652 esac
17653
17654 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17655 if test "x$ac_cv_type_size_t" = x""yes; then :
17656
17657 else
17658
17659 cat >>confdefs.h <<_ACEOF
17660 #define size_t unsigned int
17661 _ACEOF
17662
17663 fi
17664
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
17666 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
17667 if test "${ac_cv_header_time+set}" = set; then :
17668   $as_echo_n "(cached) " >&6
17669 else
17670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17671 /* end confdefs.h.  */
17672 #include <sys/types.h>
17673 #include <sys/time.h>
17674 #include <time.h>
17675
17676 int
17677 main ()
17678 {
17679 if ((struct tm *) 0)
17680 return 0;
17681   ;
17682   return 0;
17683 }
17684 _ACEOF
17685 if ac_fn_c_try_compile "$LINENO"; then :
17686   ac_cv_header_time=yes
17687 else
17688   ac_cv_header_time=no
17689 fi
17690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17691 fi
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
17693 $as_echo "$ac_cv_header_time" >&6; }
17694 if test $ac_cv_header_time = yes; then
17695
17696 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
17697
17698 fi
17699
17700  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17701 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17702 if test "${ac_cv_c_bigendian+set}" = set; then :
17703   $as_echo_n "(cached) " >&6
17704 else
17705   ac_cv_c_bigendian=unknown
17706     # See if we're dealing with a universal compiler.
17707     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17708 /* end confdefs.h.  */
17709 #ifndef __APPLE_CC__
17710                not a universal capable compiler
17711              #endif
17712              typedef int dummy;
17713
17714 _ACEOF
17715 if ac_fn_c_try_compile "$LINENO"; then :
17716
17717         # Check for potential -arch flags.  It is not universal unless
17718         # there are at least two -arch flags with different values.
17719         ac_arch=
17720         ac_prev=
17721         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17722          if test -n "$ac_prev"; then
17723            case $ac_word in
17724              i?86 | x86_64 | ppc | ppc64)
17725                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17726                  ac_arch=$ac_word
17727                else
17728                  ac_cv_c_bigendian=universal
17729                  break
17730                fi
17731                ;;
17732            esac
17733            ac_prev=
17734          elif test "x$ac_word" = "x-arch"; then
17735            ac_prev=arch
17736          fi
17737        done
17738 fi
17739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17740     if test $ac_cv_c_bigendian = unknown; then
17741       # See if sys/param.h defines the BYTE_ORDER macro.
17742       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17743 /* end confdefs.h.  */
17744 #include <sys/types.h>
17745              #include <sys/param.h>
17746
17747 int
17748 main ()
17749 {
17750 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17751                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17752                      && LITTLE_ENDIAN)
17753               bogus endian macros
17754              #endif
17755
17756   ;
17757   return 0;
17758 }
17759 _ACEOF
17760 if ac_fn_c_try_compile "$LINENO"; then :
17761   # It does; now see whether it defined to BIG_ENDIAN or not.
17762          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17763 /* end confdefs.h.  */
17764 #include <sys/types.h>
17765                 #include <sys/param.h>
17766
17767 int
17768 main ()
17769 {
17770 #if BYTE_ORDER != BIG_ENDIAN
17771                  not big endian
17772                 #endif
17773
17774   ;
17775   return 0;
17776 }
17777 _ACEOF
17778 if ac_fn_c_try_compile "$LINENO"; then :
17779   ac_cv_c_bigendian=yes
17780 else
17781   ac_cv_c_bigendian=no
17782 fi
17783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17784 fi
17785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17786     fi
17787     if test $ac_cv_c_bigendian = unknown; then
17788       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17789       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17790 /* end confdefs.h.  */
17791 #include <limits.h>
17792
17793 int
17794 main ()
17795 {
17796 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17797               bogus endian macros
17798              #endif
17799
17800   ;
17801   return 0;
17802 }
17803 _ACEOF
17804 if ac_fn_c_try_compile "$LINENO"; then :
17805   # It does; now see whether it defined to _BIG_ENDIAN or not.
17806          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17807 /* end confdefs.h.  */
17808 #include <limits.h>
17809
17810 int
17811 main ()
17812 {
17813 #ifndef _BIG_ENDIAN
17814                  not big endian
17815                 #endif
17816
17817   ;
17818   return 0;
17819 }
17820 _ACEOF
17821 if ac_fn_c_try_compile "$LINENO"; then :
17822   ac_cv_c_bigendian=yes
17823 else
17824   ac_cv_c_bigendian=no
17825 fi
17826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17827 fi
17828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17829     fi
17830     if test $ac_cv_c_bigendian = unknown; then
17831       # Compile a test program.
17832       if test "$cross_compiling" = yes; then :
17833   # Try to guess by grepping values from an object file.
17834          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17835 /* end confdefs.h.  */
17836 short int ascii_mm[] =
17837                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17838                 short int ascii_ii[] =
17839                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17840                 int use_ascii (int i) {
17841                   return ascii_mm[i] + ascii_ii[i];
17842                 }
17843                 short int ebcdic_ii[] =
17844                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17845                 short int ebcdic_mm[] =
17846                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17847                 int use_ebcdic (int i) {
17848                   return ebcdic_mm[i] + ebcdic_ii[i];
17849                 }
17850                 extern int foo;
17851
17852 int
17853 main ()
17854 {
17855 return use_ascii (foo) == use_ebcdic (foo);
17856   ;
17857   return 0;
17858 }
17859 _ACEOF
17860 if ac_fn_c_try_compile "$LINENO"; then :
17861   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17862               ac_cv_c_bigendian=yes
17863             fi
17864             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17865               if test "$ac_cv_c_bigendian" = unknown; then
17866                 ac_cv_c_bigendian=no
17867               else
17868                 # finding both strings is unlikely to happen, but who knows?
17869                 ac_cv_c_bigendian=unknown
17870               fi
17871             fi
17872 fi
17873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17874 else
17875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17876 /* end confdefs.h.  */
17877 $ac_includes_default
17878 int
17879 main ()
17880 {
17881
17882              /* Are we little or big endian?  From Harbison&Steele.  */
17883              union
17884              {
17885                long int l;
17886                char c[sizeof (long int)];
17887              } u;
17888              u.l = 1;
17889              return u.c[sizeof (long int) - 1] == 1;
17890
17891   ;
17892   return 0;
17893 }
17894 _ACEOF
17895 if ac_fn_c_try_run "$LINENO"; then :
17896   ac_cv_c_bigendian=no
17897 else
17898   ac_cv_c_bigendian=yes
17899 fi
17900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17901   conftest.$ac_objext conftest.beam conftest.$ac_ext
17902 fi
17903
17904     fi
17905 fi
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17907 $as_echo "$ac_cv_c_bigendian" >&6; }
17908  case $ac_cv_c_bigendian in #(
17909    yes)
17910      GR_ARCH_BIGENDIAN=1;; #(
17911    no)
17912      GR_ARCH_BIGENDIAN=0 ;; #(
17913    universal)
17914
17915 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17916
17917      ;; #(
17918    *)
17919      as_fn_error $? "unknown endianness
17920  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5  ;;
17921  esac
17922
17923
17924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
17925 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
17926 if test "${ac_cv_struct_tm+set}" = set; then :
17927   $as_echo_n "(cached) " >&6
17928 else
17929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17930 /* end confdefs.h.  */
17931 #include <sys/types.h>
17932 #include <time.h>
17933
17934 int
17935 main ()
17936 {
17937 struct tm tm;
17938                                      int *p = &tm.tm_sec;
17939                                      return !p;
17940   ;
17941   return 0;
17942 }
17943 _ACEOF
17944 if ac_fn_c_try_compile "$LINENO"; then :
17945   ac_cv_struct_tm=time.h
17946 else
17947   ac_cv_struct_tm=sys/time.h
17948 fi
17949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17950 fi
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
17952 $as_echo "$ac_cv_struct_tm" >&6; }
17953 if test $ac_cv_struct_tm = sys/time.h; then
17954
17955 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
17956
17957 fi
17958
17959
17960 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17961 # for constant arguments.  Useless!
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17963 $as_echo_n "checking for working alloca.h... " >&6; }
17964 if test "${ac_cv_working_alloca_h+set}" = set; then :
17965   $as_echo_n "(cached) " >&6
17966 else
17967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17968 /* end confdefs.h.  */
17969 #include <alloca.h>
17970 int
17971 main ()
17972 {
17973 char *p = (char *) alloca (2 * sizeof (int));
17974                           if (p) return 0;
17975   ;
17976   return 0;
17977 }
17978 _ACEOF
17979 if ac_fn_c_try_link "$LINENO"; then :
17980   ac_cv_working_alloca_h=yes
17981 else
17982   ac_cv_working_alloca_h=no
17983 fi
17984 rm -f core conftest.err conftest.$ac_objext \
17985     conftest$ac_exeext conftest.$ac_ext
17986 fi
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
17988 $as_echo "$ac_cv_working_alloca_h" >&6; }
17989 if test $ac_cv_working_alloca_h = yes; then
17990
17991 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
17992
17993 fi
17994
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
17996 $as_echo_n "checking for alloca... " >&6; }
17997 if test "${ac_cv_func_alloca_works+set}" = set; then :
17998   $as_echo_n "(cached) " >&6
17999 else
18000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18001 /* end confdefs.h.  */
18002 #ifdef __GNUC__
18003 # define alloca __builtin_alloca
18004 #else
18005 # ifdef _MSC_VER
18006 #  include <malloc.h>
18007 #  define alloca _alloca
18008 # else
18009 #  ifdef HAVE_ALLOCA_H
18010 #   include <alloca.h>
18011 #  else
18012 #   ifdef _AIX
18013  #pragma alloca
18014 #   else
18015 #    ifndef alloca /* predefined by HP cc +Olibcalls */
18016 char *alloca ();
18017 #    endif
18018 #   endif
18019 #  endif
18020 # endif
18021 #endif
18022
18023 int
18024 main ()
18025 {
18026 char *p = (char *) alloca (1);
18027                                     if (p) return 0;
18028   ;
18029   return 0;
18030 }
18031 _ACEOF
18032 if ac_fn_c_try_link "$LINENO"; then :
18033   ac_cv_func_alloca_works=yes
18034 else
18035   ac_cv_func_alloca_works=no
18036 fi
18037 rm -f core conftest.err conftest.$ac_objext \
18038     conftest$ac_exeext conftest.$ac_ext
18039 fi
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18041 $as_echo "$ac_cv_func_alloca_works" >&6; }
18042
18043 if test $ac_cv_func_alloca_works = yes; then
18044
18045 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18046
18047 else
18048   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18049 # that cause trouble.  Some versions do not even contain alloca or
18050 # contain a buggy version.  If you still want to use their alloca,
18051 # use ar to extract alloca.o from them instead of compiling alloca.c.
18052
18053 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18054
18055 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18056
18057
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18059 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18060 if test "${ac_cv_os_cray+set}" = set; then :
18061   $as_echo_n "(cached) " >&6
18062 else
18063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18064 /* end confdefs.h.  */
18065 #if defined CRAY && ! defined CRAY2
18066 webecray
18067 #else
18068 wenotbecray
18069 #endif
18070
18071 _ACEOF
18072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18073   $EGREP "webecray" >/dev/null 2>&1; then :
18074   ac_cv_os_cray=yes
18075 else
18076   ac_cv_os_cray=no
18077 fi
18078 rm -f conftest*
18079
18080 fi
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18082 $as_echo "$ac_cv_os_cray" >&6; }
18083 if test $ac_cv_os_cray = yes; then
18084   for ac_func in _getb67 GETB67 getb67; do
18085     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18086 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18087 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18088
18089 cat >>confdefs.h <<_ACEOF
18090 #define CRAY_STACKSEG_END $ac_func
18091 _ACEOF
18092
18093     break
18094 fi
18095
18096   done
18097 fi
18098
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18100 $as_echo_n "checking stack direction for C alloca... " >&6; }
18101 if test "${ac_cv_c_stack_direction+set}" = set; then :
18102   $as_echo_n "(cached) " >&6
18103 else
18104   if test "$cross_compiling" = yes; then :
18105   ac_cv_c_stack_direction=0
18106 else
18107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18108 /* end confdefs.h.  */
18109 $ac_includes_default
18110 int
18111 find_stack_direction ()
18112 {
18113   static char *addr = 0;
18114   auto char dummy;
18115   if (addr == 0)
18116     {
18117       addr = &dummy;
18118       return find_stack_direction ();
18119     }
18120   else
18121     return (&dummy > addr) ? 1 : -1;
18122 }
18123
18124 int
18125 main ()
18126 {
18127   return find_stack_direction () < 0;
18128 }
18129 _ACEOF
18130 if ac_fn_c_try_run "$LINENO"; then :
18131   ac_cv_c_stack_direction=1
18132 else
18133   ac_cv_c_stack_direction=-1
18134 fi
18135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18136   conftest.$ac_objext conftest.beam conftest.$ac_ext
18137 fi
18138
18139 fi
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18141 $as_echo "$ac_cv_c_stack_direction" >&6; }
18142 cat >>confdefs.h <<_ACEOF
18143 #define STACK_DIRECTION $ac_cv_c_stack_direction
18144 _ACEOF
18145
18146
18147 fi
18148
18149
18150
18151
18152   # Check for allocing memory alignment functions
18153   # If 'posix_memalign' is available, use it solely.
18154   for ac_func in posix_memalign
18155 do :
18156   ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
18157 if test "x$ac_cv_func_posix_memalign" = x""yes; then :
18158   cat >>confdefs.h <<_ACEOF
18159 #define HAVE_POSIX_MEMALIGN 1
18160 _ACEOF
18161
18162 else
18163
18164     # Otherwise, check for valloc and the
18165     # (a-priori known) alignment of 'malloc'
18166     for ac_func in valloc
18167 do :
18168   ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
18169 if test "x$ac_cv_func_valloc" = x""yes; then :
18170   cat >>confdefs.h <<_ACEOF
18171 #define HAVE_VALLOC 1
18172 _ACEOF
18173
18174 fi
18175 done
18176
18177     aligned_malloc=0
18178     # 'malloc' is 16-byte aligned on (at least) Darwin 8 and 9
18179     case "$host_os" in
18180       darwin8*) aligned_malloc=16 ;;
18181       darwin9*) aligned_malloc=16 ;;
18182       *) ;;
18183     esac
18184     if test $aligned_malloc = 0; then
18185       { $as_echo "$as_me:${as_lineno-$LINENO}: result: malloc has unknown alignment." >&5
18186 $as_echo "malloc has unknown alignment." >&6; }
18187     else
18188       { $as_echo "$as_me:${as_lineno-$LINENO}: result: malloc is $aligned_malloc-byte aligned." >&5
18189 $as_echo "malloc is $aligned_malloc-byte aligned." >&6; }
18190     fi
18191
18192 cat >>confdefs.h <<_ACEOF
18193 #define ALIGNED_MALLOC $aligned_malloc
18194 _ACEOF
18195
18196
18197 fi
18198 done
18199
18200
18201 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
18202   $as_echo_n "(cached) " >&6
18203 else
18204   ac_cv_func_setvbuf_reversed=no
18205 fi
18206
18207
18208 for ac_func in vprintf
18209 do :
18210   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
18211 if test "x$ac_cv_func_vprintf" = x""yes; then :
18212   cat >>confdefs.h <<_ACEOF
18213 #define HAVE_VPRINTF 1
18214 _ACEOF
18215
18216 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
18217 if test "x$ac_cv_func__doprnt" = x""yes; then :
18218
18219 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
18220
18221 fi
18222
18223 fi
18224 done
18225
18226
18227 for ac_func in mmap select socket strcspn strerror strspn getpagesize sysconf
18228 do :
18229   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18230 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18231 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18232   cat >>confdefs.h <<_ACEOF
18233 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18234 _ACEOF
18235
18236 fi
18237 done
18238
18239 for ac_func in snprintf gettimeofday nanosleep sched_setscheduler
18240 do :
18241   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18242 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18243 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18244   cat >>confdefs.h <<_ACEOF
18245 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18246 _ACEOF
18247
18248 fi
18249 done
18250
18251 for ac_func in modf sqrt sigaction sigprocmask pthread_sigmask
18252 do :
18253   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18254 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18255 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18256   cat >>confdefs.h <<_ACEOF
18257 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18258 _ACEOF
18259
18260 fi
18261 done
18262
18263 for ac_func in sched_setaffinity
18264 do :
18265   ac_fn_c_check_func "$LINENO" "sched_setaffinity" "ac_cv_func_sched_setaffinity"
18266 if test "x$ac_cv_func_sched_setaffinity" = x""yes; then :
18267   cat >>confdefs.h <<_ACEOF
18268 #define HAVE_SCHED_SETAFFINITY 1
18269 _ACEOF
18270
18271 fi
18272 done
18273
18274
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincos in -lm" >&5
18276 $as_echo_n "checking for sincos in -lm... " >&6; }
18277 if test "${ac_cv_lib_m_sincos+set}" = set; then :
18278   $as_echo_n "(cached) " >&6
18279 else
18280   ac_check_lib_save_LIBS=$LIBS
18281 LIBS="-lm  $LIBS"
18282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18283 /* end confdefs.h.  */
18284
18285 /* Override any GCC internal prototype to avoid an error.
18286    Use char because int might match the return type of a GCC
18287    builtin and then its argument prototype would still apply.  */
18288 #ifdef __cplusplus
18289 extern "C"
18290 #endif
18291 char sincos ();
18292 int
18293 main ()
18294 {
18295 return sincos ();
18296   ;
18297   return 0;
18298 }
18299 _ACEOF
18300 if ac_fn_c_try_link "$LINENO"; then :
18301   ac_cv_lib_m_sincos=yes
18302 else
18303   ac_cv_lib_m_sincos=no
18304 fi
18305 rm -f core conftest.err conftest.$ac_objext \
18306     conftest$ac_exeext conftest.$ac_ext
18307 LIBS=$ac_check_lib_save_LIBS
18308 fi
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sincos" >&5
18310 $as_echo "$ac_cv_lib_m_sincos" >&6; }
18311 if test "x$ac_cv_lib_m_sincos" = x""yes; then :
18312
18313 $as_echo "#define HAVE_SINCOS 1" >>confdefs.h
18314
18315 fi
18316
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosf in -lm" >&5
18318 $as_echo_n "checking for sincosf in -lm... " >&6; }
18319 if test "${ac_cv_lib_m_sincosf+set}" = set; then :
18320   $as_echo_n "(cached) " >&6
18321 else
18322   ac_check_lib_save_LIBS=$LIBS
18323 LIBS="-lm  $LIBS"
18324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18325 /* end confdefs.h.  */
18326
18327 /* Override any GCC internal prototype to avoid an error.
18328    Use char because int might match the return type of a GCC
18329    builtin and then its argument prototype would still apply.  */
18330 #ifdef __cplusplus
18331 extern "C"
18332 #endif
18333 char sincosf ();
18334 int
18335 main ()
18336 {
18337 return sincosf ();
18338   ;
18339   return 0;
18340 }
18341 _ACEOF
18342 if ac_fn_c_try_link "$LINENO"; then :
18343   ac_cv_lib_m_sincosf=yes
18344 else
18345   ac_cv_lib_m_sincosf=no
18346 fi
18347 rm -f core conftest.err conftest.$ac_objext \
18348     conftest$ac_exeext conftest.$ac_ext
18349 LIBS=$ac_check_lib_save_LIBS
18350 fi
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sincosf" >&5
18352 $as_echo "$ac_cv_lib_m_sincosf" >&6; }
18353 if test "x$ac_cv_lib_m_sincosf" = x""yes; then :
18354
18355 $as_echo "#define HAVE_SINCOSF 1" >>confdefs.h
18356
18357 fi
18358
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf in -lm" >&5
18360 $as_echo_n "checking for sinf in -lm... " >&6; }
18361 if test "${ac_cv_lib_m_sinf+set}" = set; then :
18362   $as_echo_n "(cached) " >&6
18363 else
18364   ac_check_lib_save_LIBS=$LIBS
18365 LIBS="-lm  $LIBS"
18366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18367 /* end confdefs.h.  */
18368
18369 /* Override any GCC internal prototype to avoid an error.
18370    Use char because int might match the return type of a GCC
18371    builtin and then its argument prototype would still apply.  */
18372 #ifdef __cplusplus
18373 extern "C"
18374 #endif
18375 char sinf ();
18376 int
18377 main ()
18378 {
18379 return sinf ();
18380   ;
18381   return 0;
18382 }
18383 _ACEOF
18384 if ac_fn_c_try_link "$LINENO"; then :
18385   ac_cv_lib_m_sinf=yes
18386 else
18387   ac_cv_lib_m_sinf=no
18388 fi
18389 rm -f core conftest.err conftest.$ac_objext \
18390     conftest$ac_exeext conftest.$ac_ext
18391 LIBS=$ac_check_lib_save_LIBS
18392 fi
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sinf" >&5
18394 $as_echo "$ac_cv_lib_m_sinf" >&6; }
18395 if test "x$ac_cv_lib_m_sinf" = x""yes; then :
18396
18397 $as_echo "#define HAVE_SINF 1" >>confdefs.h
18398
18399 fi
18400
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf in -lm" >&5
18402 $as_echo_n "checking for cosf in -lm... " >&6; }
18403 if test "${ac_cv_lib_m_cosf+set}" = set; then :
18404   $as_echo_n "(cached) " >&6
18405 else
18406   ac_check_lib_save_LIBS=$LIBS
18407 LIBS="-lm  $LIBS"
18408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18409 /* end confdefs.h.  */
18410
18411 /* Override any GCC internal prototype to avoid an error.
18412    Use char because int might match the return type of a GCC
18413    builtin and then its argument prototype would still apply.  */
18414 #ifdef __cplusplus
18415 extern "C"
18416 #endif
18417 char cosf ();
18418 int
18419 main ()
18420 {
18421 return cosf ();
18422   ;
18423   return 0;
18424 }
18425 _ACEOF
18426 if ac_fn_c_try_link "$LINENO"; then :
18427   ac_cv_lib_m_cosf=yes
18428 else
18429   ac_cv_lib_m_cosf=no
18430 fi
18431 rm -f core conftest.err conftest.$ac_objext \
18432     conftest$ac_exeext conftest.$ac_ext
18433 LIBS=$ac_check_lib_save_LIBS
18434 fi
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cosf" >&5
18436 $as_echo "$ac_cv_lib_m_cosf" >&6; }
18437 if test "x$ac_cv_lib_m_cosf" = x""yes; then :
18438
18439 $as_echo "#define HAVE_COSF 1" >>confdefs.h
18440
18441 fi
18442
18443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc in -lm" >&5
18444 $as_echo_n "checking for trunc in -lm... " >&6; }
18445 if test "${ac_cv_lib_m_trunc+set}" = set; then :
18446   $as_echo_n "(cached) " >&6
18447 else
18448   ac_check_lib_save_LIBS=$LIBS
18449 LIBS="-lm  $LIBS"
18450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18451 /* end confdefs.h.  */
18452
18453 /* Override any GCC internal prototype to avoid an error.
18454    Use char because int might match the return type of a GCC
18455    builtin and then its argument prototype would still apply.  */
18456 #ifdef __cplusplus
18457 extern "C"
18458 #endif
18459 char trunc ();
18460 int
18461 main ()
18462 {
18463 return trunc ();
18464   ;
18465   return 0;
18466 }
18467 _ACEOF
18468 if ac_fn_c_try_link "$LINENO"; then :
18469   ac_cv_lib_m_trunc=yes
18470 else
18471   ac_cv_lib_m_trunc=no
18472 fi
18473 rm -f core conftest.err conftest.$ac_objext \
18474     conftest$ac_exeext conftest.$ac_ext
18475 LIBS=$ac_check_lib_save_LIBS
18476 fi
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_trunc" >&5
18478 $as_echo "$ac_cv_lib_m_trunc" >&6; }
18479 if test "x$ac_cv_lib_m_trunc" = x""yes; then :
18480
18481 $as_echo "#define HAVE_TRUNC 1" >>confdefs.h
18482
18483 fi
18484
18485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp10 in -lm" >&5
18486 $as_echo_n "checking for exp10 in -lm... " >&6; }
18487 if test "${ac_cv_lib_m_exp10+set}" = set; then :
18488   $as_echo_n "(cached) " >&6
18489 else
18490   ac_check_lib_save_LIBS=$LIBS
18491 LIBS="-lm  $LIBS"
18492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18493 /* end confdefs.h.  */
18494
18495 /* Override any GCC internal prototype to avoid an error.
18496    Use char because int might match the return type of a GCC
18497    builtin and then its argument prototype would still apply.  */
18498 #ifdef __cplusplus
18499 extern "C"
18500 #endif
18501 char exp10 ();
18502 int
18503 main ()
18504 {
18505 return exp10 ();
18506   ;
18507   return 0;
18508 }
18509 _ACEOF
18510 if ac_fn_c_try_link "$LINENO"; then :
18511   ac_cv_lib_m_exp10=yes
18512 else
18513   ac_cv_lib_m_exp10=no
18514 fi
18515 rm -f core conftest.err conftest.$ac_objext \
18516     conftest$ac_exeext conftest.$ac_ext
18517 LIBS=$ac_check_lib_save_LIBS
18518 fi
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp10" >&5
18520 $as_echo "$ac_cv_lib_m_exp10" >&6; }
18521 if test "x$ac_cv_lib_m_exp10" = x""yes; then :
18522
18523 $as_echo "#define HAVE_EXP10 1" >>confdefs.h
18524
18525 fi
18526
18527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
18528 $as_echo_n "checking for log2 in -lm... " >&6; }
18529 if test "${ac_cv_lib_m_log2+set}" = set; then :
18530   $as_echo_n "(cached) " >&6
18531 else
18532   ac_check_lib_save_LIBS=$LIBS
18533 LIBS="-lm  $LIBS"
18534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18535 /* end confdefs.h.  */
18536
18537 /* Override any GCC internal prototype to avoid an error.
18538    Use char because int might match the return type of a GCC
18539    builtin and then its argument prototype would still apply.  */
18540 #ifdef __cplusplus
18541 extern "C"
18542 #endif
18543 char log2 ();
18544 int
18545 main ()
18546 {
18547 return log2 ();
18548   ;
18549   return 0;
18550 }
18551 _ACEOF
18552 if ac_fn_c_try_link "$LINENO"; then :
18553   ac_cv_lib_m_log2=yes
18554 else
18555   ac_cv_lib_m_log2=no
18556 fi
18557 rm -f core conftest.err conftest.$ac_objext \
18558     conftest$ac_exeext conftest.$ac_ext
18559 LIBS=$ac_check_lib_save_LIBS
18560 fi
18561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
18562 $as_echo "$ac_cv_lib_m_log2" >&6; }
18563 if test "x$ac_cv_lib_m_log2" = x""yes; then :
18564
18565 $as_echo "#define HAVE_LOG2 1" >>confdefs.h
18566
18567 fi
18568
18569 #AC_FUNC_MKTIME
18570
18571
18572
18573
18574   SHM_OPEN_LIBS=""
18575   save_LIBS="$LIBS"
18576   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
18577 $as_echo_n "checking for library containing shm_open... " >&6; }
18578 if test "${ac_cv_search_shm_open+set}" = set; then :
18579   $as_echo_n "(cached) " >&6
18580 else
18581   ac_func_search_save_LIBS=$LIBS
18582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18583 /* end confdefs.h.  */
18584
18585 /* Override any GCC internal prototype to avoid an error.
18586    Use char because int might match the return type of a GCC
18587    builtin and then its argument prototype would still apply.  */
18588 #ifdef __cplusplus
18589 extern "C"
18590 #endif
18591 char shm_open ();
18592 int
18593 main ()
18594 {
18595 return shm_open ();
18596   ;
18597   return 0;
18598 }
18599 _ACEOF
18600 for ac_lib in '' rt; do
18601   if test -z "$ac_lib"; then
18602     ac_res="none required"
18603   else
18604     ac_res=-l$ac_lib
18605     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18606   fi
18607   if ac_fn_c_try_link "$LINENO"; then :
18608   ac_cv_search_shm_open=$ac_res
18609 fi
18610 rm -f core conftest.err conftest.$ac_objext \
18611     conftest$ac_exeext
18612   if test "${ac_cv_search_shm_open+set}" = set; then :
18613   break
18614 fi
18615 done
18616 if test "${ac_cv_search_shm_open+set}" = set; then :
18617
18618 else
18619   ac_cv_search_shm_open=no
18620 fi
18621 rm conftest.$ac_ext
18622 LIBS=$ac_func_search_save_LIBS
18623 fi
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
18625 $as_echo "$ac_cv_search_shm_open" >&6; }
18626 ac_res=$ac_cv_search_shm_open
18627 if test "$ac_res" != no; then :
18628   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18629   SHM_OPEN_LIBS="$LIBS"
18630 fi
18631
18632   for ac_func in shm_open
18633 do :
18634   ac_fn_c_check_func "$LINENO" "shm_open" "ac_cv_func_shm_open"
18635 if test "x$ac_cv_func_shm_open" = x""yes; then :
18636   cat >>confdefs.h <<_ACEOF
18637 #define HAVE_SHM_OPEN 1
18638 _ACEOF
18639
18640 fi
18641 done
18642
18643   LIBS="$save_LIBS"
18644
18645
18646
18647
18648 # Check whether --with-gnu-ld was given.
18649 if test "${with_gnu_ld+set}" = set; then :
18650   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18651 else
18652   with_gnu_ld=no
18653 fi
18654
18655 ac_prog=ld
18656 if test "$GCC" = yes; then
18657   # Check if gcc -print-prog-name=ld gives a path.
18658   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18659 $as_echo_n "checking for ld used by $CC... " >&6; }
18660   case $host in
18661   *-*-mingw*)
18662     # gcc leaves a trailing carriage return which upsets mingw
18663     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18664   *)
18665     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18666   esac
18667   case $ac_prog in
18668     # Accept absolute paths.
18669     [\\/]* | ?:[\\/]*)
18670       re_direlt='/[^/][^/]*/\.\./'
18671       # Canonicalize the pathname of ld
18672       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18673       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18674         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18675       done
18676       test -z "$LD" && LD="$ac_prog"
18677       ;;
18678   "")
18679     # If it fails, then pretend we aren't using GCC.
18680     ac_prog=ld
18681     ;;
18682   *)
18683     # If it is relative, then search for the first ld in PATH.
18684     with_gnu_ld=unknown
18685     ;;
18686   esac
18687 elif test "$with_gnu_ld" = yes; then
18688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18689 $as_echo_n "checking for GNU ld... " >&6; }
18690 else
18691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18692 $as_echo_n "checking for non-GNU ld... " >&6; }
18693 fi
18694 if test "${lt_cv_path_LD+set}" = set; then :
18695   $as_echo_n "(cached) " >&6
18696 else
18697   if test -z "$LD"; then
18698   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18699   for ac_dir in $PATH; do
18700     IFS="$lt_save_ifs"
18701     test -z "$ac_dir" && ac_dir=.
18702     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18703       lt_cv_path_LD="$ac_dir/$ac_prog"
18704       # Check to see if the program is GNU ld.  I'd rather use --version,
18705       # but apparently some variants of GNU ld only accept -v.
18706       # Break only if it was the GNU/non-GNU ld that we prefer.
18707       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18708       *GNU* | *'with BFD'*)
18709         test "$with_gnu_ld" != no && break
18710         ;;
18711       *)
18712         test "$with_gnu_ld" != yes && break
18713         ;;
18714       esac
18715     fi
18716   done
18717   IFS="$lt_save_ifs"
18718 else
18719   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18720 fi
18721 fi
18722
18723 LD="$lt_cv_path_LD"
18724 if test -n "$LD"; then
18725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18726 $as_echo "$LD" >&6; }
18727 else
18728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18729 $as_echo "no" >&6; }
18730 fi
18731 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
18732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18733 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18734 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18735   $as_echo_n "(cached) " >&6
18736 else
18737   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18738 case `$LD -v 2>&1 </dev/null` in
18739 *GNU* | *'with BFD'*)
18740   lt_cv_prog_gnu_ld=yes
18741   ;;
18742 *)
18743   lt_cv_prog_gnu_ld=no
18744   ;;
18745 esac
18746 fi
18747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18748 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18749 with_gnu_ld=$lt_cv_prog_gnu_ld
18750
18751
18752
18753
18754
18755
18756
18757
18758 # on Mingw32 extra LDFLAGS are required to ease global variable linking
18759 LIBGNURADIO_CORE_EXTRA_LDFLAGS=""
18760
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $LD accepts --enable-runtime-pseudo-reloc" >&5
18762 $as_echo_n "checking whether $LD accepts --enable-runtime-pseudo-reloc... " >&6; }
18763 if ${LD} --enable-runtime-pseudo-reloc --version >/dev/null 2>&1
18764 then
18765         # libtool requires the quotes
18766         LIBGNURADIO_CORE_EXTRA_LDFLAGS="\"-Wl,--enable-runtime-pseudo-reloc\""
18767         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18768 $as_echo "yes" >&6; }
18769 else
18770         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18771 $as_echo "no" >&6; }
18772 fi
18773
18774
18775
18776
18777
18778   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateFileMapping function" >&5
18779 $as_echo_n "checking for CreateFileMapping function... " >&6; }
18780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18781 /* end confdefs.h.  */
18782
18783 #include <windows.h>
18784 int main (int argc, char **argv)
18785 {
18786     HANDLE handle;
18787     int size;
18788     char                seg_name[1024];
18789     handle = CreateFileMapping(
18790                      INVALID_HANDLE_VALUE,    // use paging file
18791                      NULL,                    // default security
18792                      PAGE_READWRITE,          // read/write access
18793                      0,                       // max. object size
18794                      size,                // buffer size
18795                      seg_name);                 // name of mapping object
18796     return 0;
18797 }
18798
18799 _ACEOF
18800 if ac_fn_c_try_compile "$LINENO"; then :
18801   HAVE_CREATEFILEMAPPING=yes
18802
18803 $as_echo "#define HAVE_CREATEFILEMAPPING 1" >>confdefs.h
18804
18805 else
18806   HAVE_CREATEFILEMAPPING=no
18807 fi
18808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18809
18810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CREATEFILEMAPPING" >&5
18811 $as_echo "$HAVE_CREATEFILEMAPPING" >&6; }
18812    if test x$HAVE_CREATEFILEMAPPING = xyes; then
18813   HAVE_CREATEFILEMAPPING_TRUE=
18814   HAVE_CREATEFILEMAPPING_FALSE='#'
18815 else
18816   HAVE_CREATEFILEMAPPING_TRUE='#'
18817   HAVE_CREATEFILEMAPPING_FALSE=
18818 fi
18819
18820
18821
18822
18823
18824 for ac_header in sys/types.h fcntl.h io.h
18825 do :
18826   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18827 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18828 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18829   cat >>confdefs.h <<_ACEOF
18830 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18831 _ACEOF
18832
18833 fi
18834
18835 done
18836
18837 for ac_header in windows.h
18838 do :
18839   ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
18840 if test "x$ac_cv_header_windows_h" = x""yes; then :
18841   cat >>confdefs.h <<_ACEOF
18842 #define HAVE_WINDOWS_H 1
18843 _ACEOF
18844
18845 fi
18846
18847 done
18848
18849 for ac_header in winioctl.h winbase.h
18850 do :
18851   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18852 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
18853         #if HAVE_WINDOWS_H
18854         #include <windows.h>
18855         #endif
18856
18857 "
18858 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18859   cat >>confdefs.h <<_ACEOF
18860 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18861 _ACEOF
18862
18863 fi
18864
18865 done
18866
18867
18868 for ac_func in getopt usleep gettimeofday nanosleep rand srand random srandom sleep sigaction
18869 do :
18870   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18871 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18872 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18873   cat >>confdefs.h <<_ACEOF
18874 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18875 _ACEOF
18876
18877 fi
18878 done
18879
18880 ac_fn_c_check_type "$LINENO" "struct timezone" "ac_cv_type_struct_timezone" "
18881      #if HAVE_SYS_TYPES_H
18882      # include <sys/types.h>
18883      #endif
18884      #if TIME_WITH_SYS_TIME
18885      # include <sys/time.h>
18886      # include <time.h>
18887      #else
18888      # if HAVE_SYS_TIME_H
18889      #  include <sys/time.h>
18890      # else
18891      #  include <time.h>
18892      # endif
18893      #endif
18894
18895 "
18896 if test "x$ac_cv_type_struct_timezone" = x""yes; then :
18897
18898 cat >>confdefs.h <<_ACEOF
18899 #define HAVE_STRUCT_TIMEZONE 1
18900 _ACEOF
18901
18902
18903 fi
18904 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "
18905      #if HAVE_SYS_TYPES_H
18906      # include <sys/types.h>
18907      #endif
18908      #if TIME_WITH_SYS_TIME
18909      # include <sys/time.h>
18910      # include <time.h>
18911      #else
18912      # if HAVE_SYS_TIME_H
18913      #  include <sys/time.h>
18914      # else
18915      #  include <time.h>
18916      # endif
18917      #endif
18918
18919 "
18920 if test "x$ac_cv_type_struct_timespec" = x""yes; then :
18921
18922 cat >>confdefs.h <<_ACEOF
18923 #define HAVE_STRUCT_TIMESPEC 1
18924 _ACEOF
18925
18926
18927 fi
18928 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "
18929      #if HAVE_SYS_TYPES_H
18930      # include <sys/types.h>
18931      #endif
18932      #if TIME_WITH_SYS_TIME
18933      # include <sys/time.h>
18934      # include <time.h>
18935      #else
18936      # if HAVE_SYS_TIME_H
18937      #  include <sys/time.h>
18938      # else
18939      #  include <time.h>
18940      # endif
18941      #endif
18942
18943 "
18944 if test "x$ac_cv_type_ssize_t" = x""yes; then :
18945
18946 cat >>confdefs.h <<_ACEOF
18947 #define HAVE_SSIZE_T 1
18948 _ACEOF
18949
18950
18951 fi
18952
18953
18954 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
18955 if test "x$ac_cv_func_getopt" = x""yes; then :
18956   $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
18957
18958 else
18959   case " $LIBOBJS " in
18960   *" getopt.$ac_objext "* ) ;;
18961   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
18962  ;;
18963 esac
18964
18965 fi
18966
18967 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
18968 if test "x$ac_cv_func_usleep" = x""yes; then :
18969   $as_echo "#define HAVE_USLEEP 1" >>confdefs.h
18970
18971 else
18972   case " $LIBOBJS " in
18973   *" usleep.$ac_objext "* ) ;;
18974   *) LIBOBJS="$LIBOBJS usleep.$ac_objext"
18975  ;;
18976 esac
18977
18978 fi
18979
18980 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
18981 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
18982   $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
18983
18984 else
18985   case " $LIBOBJS " in
18986   *" gettimeofday.$ac_objext "* ) ;;
18987   *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
18988  ;;
18989 esac
18990
18991 fi
18992
18993
18994
18995
18996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Sleep" >&5
18997 $as_echo_n "checking for Sleep... " >&6; }
18998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18999 /* end confdefs.h.  */
19000    #include <windows.h>
19001                 #include <winbase.h>
19002
19003 int
19004 main ()
19005 {
19006  Sleep(0);
19007   ;
19008   return 0;
19009 }
19010 _ACEOF
19011 if ac_fn_c_try_link "$LINENO"; then :
19012
19013 $as_echo "#define HAVE_SSLEEP 1" >>confdefs.h
19014
19015                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19016 $as_echo "yes" >&6; }
19017 else
19018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19019 $as_echo "no" >&6; }
19020
19021 fi
19022 rm -f core conftest.err conftest.$ac_objext \
19023     conftest$ac_exeext conftest.$ac_ext
19024
19025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir accepts only one arg" >&5
19026 $as_echo_n "checking whether mkdir accepts only one arg... " >&6; }
19027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19028 /* end confdefs.h.  */
19029 #include <sys/types.h>
19030        #include <sys/stat.h>
19031        #include <fcntl.h>
19032 int
19033 main ()
19034 {
19035
19036        mkdir("")
19037
19038   ;
19039   return 0;
19040 }
19041 _ACEOF
19042 if ac_fn_c_try_compile "$LINENO"; then :
19043    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19044 $as_echo "yes" >&6; }
19045
19046 $as_echo "#define MKDIR_TAKES_ONE_ARG /**/" >>confdefs.h
19047
19048 else
19049    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19050 $as_echo "no" >&6; }
19051
19052 fi
19053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19054
19055
19056
19057
19058
19059
19060 # Extract the first word of "dot", so it can be a program name with args.
19061 set dummy dot; ac_word=$2
19062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19063 $as_echo_n "checking for $ac_word... " >&6; }
19064 if test "${ac_cv_prog_HAVE_DOT+set}" = set; then :
19065   $as_echo_n "(cached) " >&6
19066 else
19067   if test -n "$HAVE_DOT"; then
19068   ac_cv_prog_HAVE_DOT="$HAVE_DOT" # Let the user override the test.
19069 else
19070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19071 for as_dir in $PATH
19072 do
19073   IFS=$as_save_IFS
19074   test -z "$as_dir" && as_dir=.
19075     for ac_exec_ext in '' $ac_executable_extensions; do
19076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19077     ac_cv_prog_HAVE_DOT="YES"
19078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19079     break 2
19080   fi
19081 done
19082   done
19083 IFS=$as_save_IFS
19084
19085   test -z "$ac_cv_prog_HAVE_DOT" && ac_cv_prog_HAVE_DOT="NO"
19086 fi
19087 fi
19088 HAVE_DOT=$ac_cv_prog_HAVE_DOT
19089 if test -n "$HAVE_DOT"; then
19090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOT" >&5
19091 $as_echo "$HAVE_DOT" >&6; }
19092 else
19093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19094 $as_echo "no" >&6; }
19095 fi
19096
19097
19098
19099
19100
19101 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19102         if test -n "$ac_tool_prefix"; then
19103   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19104 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19106 $as_echo_n "checking for $ac_word... " >&6; }
19107 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
19108   $as_echo_n "(cached) " >&6
19109 else
19110   case $PKG_CONFIG in
19111   [\\/]* | ?:[\\/]*)
19112   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19113   ;;
19114   *)
19115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19116 for as_dir in $PATH
19117 do
19118   IFS=$as_save_IFS
19119   test -z "$as_dir" && as_dir=.
19120     for ac_exec_ext in '' $ac_executable_extensions; do
19121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19122     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19124     break 2
19125   fi
19126 done
19127   done
19128 IFS=$as_save_IFS
19129
19130   ;;
19131 esac
19132 fi
19133 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19134 if test -n "$PKG_CONFIG"; then
19135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19136 $as_echo "$PKG_CONFIG" >&6; }
19137 else
19138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19139 $as_echo "no" >&6; }
19140 fi
19141
19142
19143 fi
19144 if test -z "$ac_cv_path_PKG_CONFIG"; then
19145   ac_pt_PKG_CONFIG=$PKG_CONFIG
19146   # Extract the first word of "pkg-config", so it can be a program name with args.
19147 set dummy pkg-config; ac_word=$2
19148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19149 $as_echo_n "checking for $ac_word... " >&6; }
19150 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
19151   $as_echo_n "(cached) " >&6
19152 else
19153   case $ac_pt_PKG_CONFIG in
19154   [\\/]* | ?:[\\/]*)
19155   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19156   ;;
19157   *)
19158   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19159 for as_dir in $PATH
19160 do
19161   IFS=$as_save_IFS
19162   test -z "$as_dir" && as_dir=.
19163     for ac_exec_ext in '' $ac_executable_extensions; do
19164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19165     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19167     break 2
19168   fi
19169 done
19170   done
19171 IFS=$as_save_IFS
19172
19173   ;;
19174 esac
19175 fi
19176 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19177 if test -n "$ac_pt_PKG_CONFIG"; then
19178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19179 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19180 else
19181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19182 $as_echo "no" >&6; }
19183 fi
19184
19185   if test "x$ac_pt_PKG_CONFIG" = x; then
19186     PKG_CONFIG=""
19187   else
19188     case $cross_compiling:$ac_tool_warned in
19189 yes:)
19190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19192 ac_tool_warned=yes ;;
19193 esac
19194     PKG_CONFIG=$ac_pt_PKG_CONFIG
19195   fi
19196 else
19197   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19198 fi
19199
19200 fi
19201 if test -n "$PKG_CONFIG"; then
19202         _pkg_min_version=0.18
19203         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19204 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19205         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19206                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19207 $as_echo "yes" >&6; }
19208         else
19209                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19210 $as_echo "no" >&6; }
19211                 PKG_CONFIG=""
19212         fi
19213
19214 fi
19215
19216
19217
19218 pkg_failed=no
19219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW3F" >&5
19220 $as_echo_n "checking for FFTW3F... " >&6; }
19221
19222 if test -n "$PKG_CONFIG"; then
19223     if test -n "$FFTW3F_CFLAGS"; then
19224         pkg_cv_FFTW3F_CFLAGS="$FFTW3F_CFLAGS"
19225     else
19226         if test -n "$PKG_CONFIG" && \
19227     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3f >= 3.0\""; } >&5
19228   ($PKG_CONFIG --exists --print-errors "fftw3f >= 3.0") 2>&5
19229   ac_status=$?
19230   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19231   test $ac_status = 0; }; then
19232   pkg_cv_FFTW3F_CFLAGS=`$PKG_CONFIG --cflags "fftw3f >= 3.0" 2>/dev/null`
19233 else
19234   pkg_failed=yes
19235 fi
19236     fi
19237 else
19238         pkg_failed=untried
19239 fi
19240
19241 if test x$cross_compiling = xyes
19242 then
19243     if test -n "$PKG_CONFIG"; then
19244     if test -n "$FFTW3F_LIBS"; then
19245         pkg_cv_FFTW3F_LIBS="$FFTW3F_LIBS"
19246     else
19247         if test -n "$PKG_CONFIG" && \
19248     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3f >= 3.0\""; } >&5
19249   ($PKG_CONFIG --exists --print-errors "fftw3f >= 3.0") 2>&5
19250   ac_status=$?
19251   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19252   test $ac_status = 0; }; then
19253   pkg_cv_FFTW3F_LIBS=`$PKG_CONFIG --libs --static "fftw3f >= 3.0" 2>/dev/null`
19254 else
19255   pkg_failed=yes
19256 fi
19257     fi
19258 else
19259         pkg_failed=untried
19260 fi
19261     _pkg_tmp=
19262   for flag in $pkg_cv_FFTW3F_LIBS; do
19263     case $flag in
19264     (-L/lib* | -L/usr/lib* )       ;; # ignore
19265     (*) _pkg_tmp="$_pkg_tmp $flag" ;;
19266     esac
19267   done
19268   pkg_cv_FFTW3F_LIBS="$_pkg_tmp"
19269 else
19270   if test -n "$PKG_CONFIG"; then
19271     if test -n "$FFTW3F_LIBS"; then
19272         pkg_cv_FFTW3F_LIBS="$FFTW3F_LIBS"
19273     else
19274         if test -n "$PKG_CONFIG" && \
19275     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3f >= 3.0\""; } >&5
19276   ($PKG_CONFIG --exists --print-errors "fftw3f >= 3.0") 2>&5
19277   ac_status=$?
19278   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19279   test $ac_status = 0; }; then
19280   pkg_cv_FFTW3F_LIBS=`$PKG_CONFIG --libs --static "fftw3f >= 3.0" 2>/dev/null`
19281 else
19282   pkg_failed=yes
19283 fi
19284     fi
19285 else
19286         pkg_failed=untried
19287 fi
19288 fi
19289
19290 if test -n "$PKG_CONFIG"; then
19291     if test -n "$FFTW3F_INCLUDEDIR"; then
19292         pkg_cv_FFTW3F_INCLUDEDIR="$FFTW3F_INCLUDEDIR"
19293     else
19294         if test -n "$PKG_CONFIG" && \
19295     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3f >= 3.0\""; } >&5
19296   ($PKG_CONFIG --exists --print-errors "fftw3f >= 3.0") 2>&5
19297   ac_status=$?
19298   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19299   test $ac_status = 0; }; then
19300   pkg_cv_FFTW3F_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "fftw3f >= 3.0" 2>/dev/null`
19301 else
19302   pkg_failed=yes
19303 fi
19304     fi
19305 else
19306         pkg_failed=untried
19307 fi
19308
19309
19310
19311
19312 if test $pkg_failed = yes; then
19313
19314 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19315         _pkg_short_errors_supported=yes
19316 else
19317         _pkg_short_errors_supported=no
19318 fi
19319         if test $_pkg_short_errors_supported = yes; then
19320                 FFTW3F_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fftw3f >= 3.0"`
19321         else
19322                 FFTW3F_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fftw3f >= 3.0"`
19323         fi
19324         # Put the nasty error message in config.log where it belongs
19325         echo "$FFTW3F_PKG_ERRORS" >&5
19326
19327         as_fn_error $? "Package requirements (fftw3f >= 3.0) were not met:
19328
19329 $FFTW3F_PKG_ERRORS
19330
19331 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19332 installed software in a non-standard prefix.
19333
19334 Alternatively, you may set the environment variables FFTW3F_CFLAGS
19335 and FFTW3F_LIBS to avoid the need to call pkg-config.
19336 See the pkg-config man page for more details.
19337 " "$LINENO" 5
19338 elif test $pkg_failed = untried; then
19339         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19341 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19342 is in your PATH or set the PKG_CONFIG environment variable to the full
19343 path to pkg-config.
19344
19345 Alternatively, you may set the environment variables FFTW3F_CFLAGS
19346 and FFTW3F_LIBS to avoid the need to call pkg-config.
19347 See the pkg-config man page for more details.
19348
19349 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19350 See \`config.log' for more details" "$LINENO" 5 ; }
19351 else
19352         FFTW3F_CFLAGS=$pkg_cv_FFTW3F_CFLAGS
19353         FFTW3F_LIBS=$pkg_cv_FFTW3F_LIBS
19354         FFTW3F_INCLUDEDIR=$pkg_cv_FFTW3F_INCLUDEDIR
19355
19356         FFTW3F_CPPFLAGS=""
19357         for flag in $FFTW3F_CFLAGS; do
19358           case $flag in
19359           -I* | -D* | -U*) FFTW3F_CPPFLAGS="$FFTW3F_CPPFLAGS $flag" ;;
19360           esac
19361         done
19362         pkg_cv_FFTW3F_CPPFLAGS=$FFTW3F_CPPFLAGS
19363
19364
19365         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19366 $as_echo "yes" >&6; }
19367         :
19368 fi
19369
19370
19371
19372   # Check whether --enable-doxygen was given.
19373 if test "${enable_doxygen+set}" = set; then :
19374   enableval=$enable_doxygen;
19375 fi
19376
19377   # Check whether --enable-dot was given.
19378 if test "${enable_dot+set}" = set; then :
19379   enableval=$enable_dot;
19380 fi
19381
19382
19383   if test "x$enable_doxygen" = xno; then
19384         enable_doc=no
19385   else
19386         # Extract the first word of "doxygen", so it can be a program name with args.
19387 set dummy doxygen; ac_word=$2
19388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19389 $as_echo_n "checking for $ac_word... " >&6; }
19390 if test "${ac_cv_path_DOXYGEN+set}" = set; then :
19391   $as_echo_n "(cached) " >&6
19392 else
19393   case $DOXYGEN in
19394   [\\/]* | ?:[\\/]*)
19395   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
19396   ;;
19397   *)
19398   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19399 for as_dir in $PATH
19400 do
19401   IFS=$as_save_IFS
19402   test -z "$as_dir" && as_dir=.
19403     for ac_exec_ext in '' $ac_executable_extensions; do
19404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19405     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
19406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19407     break 2
19408   fi
19409 done
19410   done
19411 IFS=$as_save_IFS
19412
19413   ;;
19414 esac
19415 fi
19416 DOXYGEN=$ac_cv_path_DOXYGEN
19417 if test -n "$DOXYGEN"; then
19418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
19419 $as_echo "$DOXYGEN" >&6; }
19420 else
19421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19422 $as_echo "no" >&6; }
19423 fi
19424
19425
19426         if test x$DOXYGEN = x; then
19427                 if test "x$enable_doxygen" = xyes; then
19428                         as_fn_error $? "could not find doxygen" "$LINENO" 5
19429                 fi
19430                 enable_doc=no
19431                 generate_docs=
19432         else
19433                 enable_doc=yes
19434                 generate_docs=docs
19435                 # Extract the first word of "dot", so it can be a program name with args.
19436 set dummy dot; ac_word=$2
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19438 $as_echo_n "checking for $ac_word... " >&6; }
19439 if test "${ac_cv_path_DOT+set}" = set; then :
19440   $as_echo_n "(cached) " >&6
19441 else
19442   case $DOT in
19443   [\\/]* | ?:[\\/]*)
19444   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
19445   ;;
19446   *)
19447   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19448 for as_dir in $PATH
19449 do
19450   IFS=$as_save_IFS
19451   test -z "$as_dir" && as_dir=.
19452     for ac_exec_ext in '' $ac_executable_extensions; do
19453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19454     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
19455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19456     break 2
19457   fi
19458 done
19459   done
19460 IFS=$as_save_IFS
19461
19462   ;;
19463 esac
19464 fi
19465 DOT=$ac_cv_path_DOT
19466 if test -n "$DOT"; then
19467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
19468 $as_echo "$DOT" >&6; }
19469 else
19470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19471 $as_echo "no" >&6; }
19472 fi
19473
19474
19475         fi
19476   fi
19477
19478    if test x$enable_doc = xyes; then
19479   DOC_TRUE=
19480   DOC_FALSE='#'
19481 else
19482   DOC_TRUE='#'
19483   DOC_FALSE=
19484 fi
19485
19486
19487   if test x$DOT = x; then
19488         if test "x$enable_dot" = xyes; then
19489                 as_fn_error $? "could not find dot" "$LINENO" 5
19490         fi
19491         enable_dot=no
19492   else
19493         enable_dot=yes
19494   fi
19495
19496   enable_xml_docs=YES
19497
19498   enable_html_docs=YES
19499
19500   enable_latex_docs=NO
19501
19502
19503
19504
19505
19506
19507 # Check whether --with-md-cpu was given.
19508 if test "${with_md_cpu+set}" = set; then :
19509   withval=$with_md_cpu; cf_with_md_cpu="$withval"
19510 else
19511
19512     if test "$cross_compiling" != no; then
19513             cf_with_md_cpu="$host_cpu"
19514   else
19515                     case "$host_os" in
19516      *darwin*10*)
19517       # The cast to long int works around a bug in the HP C Compiler
19518 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19519 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19520 # This bug is HP SR number 8606223364.
19521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
19522 $as_echo_n "checking size of void*... " >&6; }
19523 if test "${ac_cv_sizeof_voidp+set}" = set; then :
19524   $as_echo_n "(cached) " >&6
19525 else
19526   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
19527
19528 else
19529   if test "$ac_cv_type_voidp" = yes; then
19530      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19532 as_fn_error 77 "cannot compute sizeof (void*)
19533 See \`config.log' for more details" "$LINENO" 5 ; }
19534    else
19535      ac_cv_sizeof_voidp=0
19536    fi
19537 fi
19538
19539 fi
19540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
19541 $as_echo "$ac_cv_sizeof_voidp" >&6; }
19542
19543
19544
19545 cat >>confdefs.h <<_ACEOF
19546 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
19547 _ACEOF
19548
19549
19550       if test "$ac_cv_sizeof_voidp" = 4; then
19551        cf_with_md_cpu="i386"
19552       else
19553        cf_with_md_cpu="x86_64"
19554       fi
19555       ;;
19556      *)
19557       cf_with_md_cpu="$host_cpu"
19558       ;;
19559     esac
19560   fi
19561
19562 fi
19563
19564   case "$cf_with_md_cpu" in
19565    x86 | i[3-7]86)      MD_CPU=x86      MD_SUBCPU=x86 ;;
19566    x86_64)              MD_CPU=x86      MD_SUBCPU=x86_64 ;;
19567    powerpc*)            MD_CPU=powerpc ;;
19568    arm*)
19569
19570   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19571 /* end confdefs.h.  */
19572 #ifndef __ARM_ARCH_5__
19573     #error "Not armv5"
19574     #endif
19575
19576 int
19577 main ()
19578 {
19579
19580   ;
19581   return 0;
19582 }
19583 _ACEOF
19584 if ac_fn_c_try_compile "$LINENO"; then :
19585   is_armv5=yes
19586 else
19587   is_armv5=no
19588 fi
19589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19590
19591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19592 /* end confdefs.h.  */
19593 #ifndef __ARM_ARCH_7A__
19594     #error "Not armv7-a"
19595     #endif
19596
19597 int
19598 main ()
19599 {
19600
19601   ;
19602   return 0;
19603 }
19604 _ACEOF
19605 if ac_fn_c_try_compile "$LINENO"; then :
19606   is_armv7_a=yes
19607 else
19608   is_armv7_a=no
19609 fi
19610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19611
19612
19613        if test $is_armv5 = yes; then MD_CPU=armv5;
19614        elif test $is_armv7_a = yes; then MD_CPU=armv7_a;
19615        else MD_CPU=generic; fi
19616        ;;
19617    *)                   MD_CPU=generic ;;
19618   esac
19619
19620   # Check whether --enable-altivec was given.
19621 if test "${enable_altivec+set}" = set; then :
19622   enableval=$enable_altivec;  if test $MD_CPU = powerpc; then
19623         case "$enableval" in
19624           (no)  MD_CPU=generic ;;
19625           (yes)
19626
19627   echo 'void f(){}' > conftest.c
19628   for i in -mabi=altivec -maltivec
19629   do
19630     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $i" >&5
19631 $as_echo_n "checking whether $CC accepts $i... " >&6; }
19632     if test -z "`${CC} $i -c conftest.c 2>&1`"
19633     then
19634       lf_CFLAGS="${lf_CFLAGS} $i"
19635       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19636 $as_echo "yes" >&6; }
19637     else
19638       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19639 $as_echo "no" >&6; }
19640     fi
19641   done
19642   rm -f conftest.c conftest.o
19643
19644
19645
19646   echo 'void f(){}' > conftest.cc
19647   for i in -mabi=altivec -maltivec
19648   do
19649     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts $i" >&5
19650 $as_echo_n "checking whether $CXX accepts $i... " >&6; }
19651     if test -z "`${CXX} $i -c conftest.cc 2>&1`"
19652     then
19653       lf_CXXFLAGS="${lf_CXXFLAGS} $i"
19654       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19655 $as_echo "yes" >&6; }
19656     else
19657       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19658 $as_echo "no" >&6; }
19659     fi
19660   done
19661   rm -f conftest.cc conftest.o
19662
19663
19664  ;;
19665           (*) as_fn_error $? "Invalid argument ($enableval) to --enable-altivec" "$LINENO" 5  ;;
19666         esac
19667       fi
19668 else
19669    if test $MD_CPU = powerpc; then
19670
19671   echo 'void f(){}' > conftest.c
19672   for i in -mabi=altivec -maltivec
19673   do
19674     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $i" >&5
19675 $as_echo_n "checking whether $CC accepts $i... " >&6; }
19676     if test -z "`${CC} $i -c conftest.c 2>&1`"
19677     then
19678       lf_CFLAGS="${lf_CFLAGS} $i"
19679       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19680 $as_echo "yes" >&6; }
19681     else
19682       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19683 $as_echo "no" >&6; }
19684     fi
19685   done
19686   rm -f conftest.c conftest.o
19687
19688
19689
19690   echo 'void f(){}' > conftest.cc
19691   for i in -mabi=altivec -maltivec
19692   do
19693     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts $i" >&5
19694 $as_echo_n "checking whether $CXX accepts $i... " >&6; }
19695     if test -z "`${CXX} $i -c conftest.cc 2>&1`"
19696     then
19697       lf_CXXFLAGS="${lf_CXXFLAGS} $i"
19698       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19699 $as_echo "yes" >&6; }
19700     else
19701       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19702 $as_echo "no" >&6; }
19703     fi
19704   done
19705   rm -f conftest.cc conftest.o
19706
19707
19708  fi
19709 fi
19710
19711
19712
19713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for machine dependent speedups" >&5
19714 $as_echo_n "checking for machine dependent speedups... " >&6; }
19715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD_CPU" >&5
19716 $as_echo "$MD_CPU" >&6; }
19717
19718
19719
19720    if test "$MD_CPU" = "x86"; then
19721   MD_CPU_x86_TRUE=
19722   MD_CPU_x86_FALSE='#'
19723 else
19724   MD_CPU_x86_TRUE='#'
19725   MD_CPU_x86_FALSE=
19726 fi
19727
19728    if test "$MD_SUBCPU" = "x86_64"; then
19729   MD_SUBCPU_x86_64_TRUE=
19730   MD_SUBCPU_x86_64_FALSE='#'
19731 else
19732   MD_SUBCPU_x86_64_TRUE='#'
19733   MD_SUBCPU_x86_64_FALSE=
19734 fi
19735
19736    if test "$MD_CPU" = "powerpc"; then
19737   MD_CPU_powerpc_TRUE=
19738   MD_CPU_powerpc_FALSE='#'
19739 else
19740   MD_CPU_powerpc_TRUE='#'
19741   MD_CPU_powerpc_FALSE=
19742 fi
19743
19744    if test "$MD_CPU" = "armv5"; then
19745   MD_CPU_armv5_TRUE=
19746   MD_CPU_armv5_FALSE='#'
19747 else
19748   MD_CPU_armv5_TRUE='#'
19749   MD_CPU_armv5_FALSE=
19750 fi
19751
19752    if test "$MD_CPU" = "armv7_a"; then
19753   MD_CPU_armv7_a_TRUE=
19754   MD_CPU_armv7_a_FALSE='#'
19755 else
19756   MD_CPU_armv7_a_TRUE='#'
19757   MD_CPU_armv7_a_FALSE=
19758 fi
19759
19760    if test "$MD_CPU" = "generic"; then
19761   MD_CPU_generic_TRUE=
19762   MD_CPU_generic_FALSE='#'
19763 else
19764   MD_CPU_generic_TRUE='#'
19765   MD_CPU_generic_FALSE=
19766 fi
19767
19768
19769
19770 if test -n "$PKG_CONFIG" && \
19771     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit\""; } >&5
19772   ($PKG_CONFIG --exists --print-errors "cppunit") 2>&5
19773   ac_status=$?
19774   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19775   test $ac_status = 0; }; then
19776
19777
19778
19779 pkg_failed=no
19780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPPUNIT" >&5
19781 $as_echo_n "checking for CPPUNIT... " >&6; }
19782
19783 if test -n "$PKG_CONFIG"; then
19784     if test -n "$CPPUNIT_CFLAGS"; then
19785         pkg_cv_CPPUNIT_CFLAGS="$CPPUNIT_CFLAGS"
19786     else
19787         if test -n "$PKG_CONFIG" && \
19788     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit >= 1.9.14\""; } >&5
19789   ($PKG_CONFIG --exists --print-errors "cppunit >= 1.9.14") 2>&5
19790   ac_status=$?
19791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19792   test $ac_status = 0; }; then
19793   pkg_cv_CPPUNIT_CFLAGS=`$PKG_CONFIG --cflags "cppunit >= 1.9.14" 2>/dev/null`
19794 else
19795   pkg_failed=yes
19796 fi
19797     fi
19798 else
19799         pkg_failed=untried
19800 fi
19801
19802 if test x$cross_compiling = xyes
19803 then
19804     if test -n "$PKG_CONFIG"; then
19805     if test -n "$CPPUNIT_LIBS"; then
19806         pkg_cv_CPPUNIT_LIBS="$CPPUNIT_LIBS"
19807     else
19808         if test -n "$PKG_CONFIG" && \
19809     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit >= 1.9.14\""; } >&5
19810   ($PKG_CONFIG --exists --print-errors "cppunit >= 1.9.14") 2>&5
19811   ac_status=$?
19812   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19813   test $ac_status = 0; }; then
19814   pkg_cv_CPPUNIT_LIBS=`$PKG_CONFIG --libs --static "cppunit >= 1.9.14" 2>/dev/null`
19815 else
19816   pkg_failed=yes
19817 fi
19818     fi
19819 else
19820         pkg_failed=untried
19821 fi
19822     _pkg_tmp=
19823   for flag in $pkg_cv_CPPUNIT_LIBS; do
19824     case $flag in
19825     (-L/lib* | -L/usr/lib* )       ;; # ignore
19826     (*) _pkg_tmp="$_pkg_tmp $flag" ;;
19827     esac
19828   done
19829   pkg_cv_CPPUNIT_LIBS="$_pkg_tmp"
19830 else
19831   if test -n "$PKG_CONFIG"; then
19832     if test -n "$CPPUNIT_LIBS"; then
19833         pkg_cv_CPPUNIT_LIBS="$CPPUNIT_LIBS"
19834     else
19835         if test -n "$PKG_CONFIG" && \
19836     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit >= 1.9.14\""; } >&5
19837   ($PKG_CONFIG --exists --print-errors "cppunit >= 1.9.14") 2>&5
19838   ac_status=$?
19839   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19840   test $ac_status = 0; }; then
19841   pkg_cv_CPPUNIT_LIBS=`$PKG_CONFIG --libs --static "cppunit >= 1.9.14" 2>/dev/null`
19842 else
19843   pkg_failed=yes
19844 fi
19845     fi
19846 else
19847         pkg_failed=untried
19848 fi
19849 fi
19850
19851 if test -n "$PKG_CONFIG"; then
19852     if test -n "$CPPUNIT_INCLUDEDIR"; then
19853         pkg_cv_CPPUNIT_INCLUDEDIR="$CPPUNIT_INCLUDEDIR"
19854     else
19855         if test -n "$PKG_CONFIG" && \
19856     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit >= 1.9.14\""; } >&5
19857   ($PKG_CONFIG --exists --print-errors "cppunit >= 1.9.14") 2>&5
19858   ac_status=$?
19859   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19860   test $ac_status = 0; }; then
19861   pkg_cv_CPPUNIT_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "cppunit >= 1.9.14" 2>/dev/null`
19862 else
19863   pkg_failed=yes
19864 fi
19865     fi
19866 else
19867         pkg_failed=untried
19868 fi
19869
19870
19871
19872
19873 if test $pkg_failed = yes; then
19874
19875 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19876         _pkg_short_errors_supported=yes
19877 else
19878         _pkg_short_errors_supported=no
19879 fi
19880         if test $_pkg_short_errors_supported = yes; then
19881                 CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cppunit >= 1.9.14"`
19882         else
19883                 CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cppunit >= 1.9.14"`
19884         fi
19885         # Put the nasty error message in config.log where it belongs
19886         echo "$CPPUNIT_PKG_ERRORS" >&5
19887
19888         as_fn_error $? "Package requirements (cppunit >= 1.9.14) were not met:
19889
19890 $CPPUNIT_PKG_ERRORS
19891
19892 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19893 installed software in a non-standard prefix.
19894
19895 Alternatively, you may set the environment variables CPPUNIT_CFLAGS
19896 and CPPUNIT_LIBS to avoid the need to call pkg-config.
19897 See the pkg-config man page for more details.
19898 " "$LINENO" 5
19899 elif test $pkg_failed = untried; then
19900         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19902 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19903 is in your PATH or set the PKG_CONFIG environment variable to the full
19904 path to pkg-config.
19905
19906 Alternatively, you may set the environment variables CPPUNIT_CFLAGS
19907 and CPPUNIT_LIBS to avoid the need to call pkg-config.
19908 See the pkg-config man page for more details.
19909
19910 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19911 See \`config.log' for more details" "$LINENO" 5 ; }
19912 else
19913         CPPUNIT_CFLAGS=$pkg_cv_CPPUNIT_CFLAGS
19914         CPPUNIT_LIBS=$pkg_cv_CPPUNIT_LIBS
19915         CPPUNIT_INCLUDEDIR=$pkg_cv_CPPUNIT_INCLUDEDIR
19916
19917         CPPUNIT_CPPFLAGS=""
19918         for flag in $CPPUNIT_CFLAGS; do
19919           case $flag in
19920           -I* | -D* | -U*) CPPUNIT_CPPFLAGS="$CPPUNIT_CPPFLAGS $flag" ;;
19921           esac
19922         done
19923         pkg_cv_CPPUNIT_CPPFLAGS=$CPPUNIT_CPPFLAGS
19924
19925
19926         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19927 $as_echo "yes" >&6; }
19928         :
19929 fi
19930 else
19931
19932
19933
19934 # Check whether --with-cppunit-prefix was given.
19935 if test "${with_cppunit_prefix+set}" = set; then :
19936   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
19937 else
19938   cppunit_config_prefix=""
19939 fi
19940
19941
19942 # Check whether --with-cppunit-exec-prefix was given.
19943 if test "${with_cppunit_exec_prefix+set}" = set; then :
19944   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
19945 else
19946   cppunit_config_exec_prefix=""
19947 fi
19948
19949
19950   if test x$cppunit_config_exec_prefix != x ; then
19951      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
19952      if test x${CPPUNIT_CONFIG+set} != xset ; then
19953         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
19954      fi
19955   fi
19956   if test x$cppunit_config_prefix != x ; then
19957      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
19958      if test x${CPPUNIT_CONFIG+set} != xset ; then
19959         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
19960      fi
19961   fi
19962
19963   # Extract the first word of "cppunit-config", so it can be a program name with args.
19964 set dummy cppunit-config; ac_word=$2
19965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19966 $as_echo_n "checking for $ac_word... " >&6; }
19967 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then :
19968   $as_echo_n "(cached) " >&6
19969 else
19970   case $CPPUNIT_CONFIG in
19971   [\\/]* | ?:[\\/]*)
19972   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
19973   ;;
19974   *)
19975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19976 for as_dir in $PATH
19977 do
19978   IFS=$as_save_IFS
19979   test -z "$as_dir" && as_dir=.
19980     for ac_exec_ext in '' $ac_executable_extensions; do
19981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19982     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19984     break 2
19985   fi
19986 done
19987   done
19988 IFS=$as_save_IFS
19989
19990   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
19991   ;;
19992 esac
19993 fi
19994 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
19995 if test -n "$CPPUNIT_CONFIG"; then
19996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPUNIT_CONFIG" >&5
19997 $as_echo "$CPPUNIT_CONFIG" >&6; }
19998 else
19999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20000 $as_echo "no" >&6; }
20001 fi
20002
20003
20004   cppunit_version_min=1.9.14
20005
20006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cppunit - version >= $cppunit_version_min" >&5
20007 $as_echo_n "checking for Cppunit - version >= $cppunit_version_min... " >&6; }
20008   no_cppunit=""
20009   if test "$CPPUNIT_CONFIG" = "no" ; then
20010     no_cppunit=yes
20011   else
20012     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
20013     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
20014     cppunit_version=`$CPPUNIT_CONFIG --version`
20015
20016     cppunit_major_version=`echo $cppunit_version | \
20017            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20018     cppunit_minor_version=`echo $cppunit_version | \
20019            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20020     cppunit_micro_version=`echo $cppunit_version | \
20021            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20022
20023     cppunit_major_min=`echo $cppunit_version_min | \
20024            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20025     cppunit_minor_min=`echo $cppunit_version_min | \
20026            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20027     cppunit_micro_min=`echo $cppunit_version_min | \
20028            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20029
20030     cppunit_version_proper=`expr \
20031         $cppunit_major_version \> $cppunit_major_min \| \
20032         $cppunit_major_version \= $cppunit_major_min \& \
20033         $cppunit_minor_version \> $cppunit_minor_min \| \
20034         $cppunit_major_version \= $cppunit_major_min \& \
20035         $cppunit_minor_version \= $cppunit_minor_min \& \
20036         $cppunit_micro_version \>= $cppunit_micro_min `
20037
20038     if test "$cppunit_version_proper" = "1" ; then
20039       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
20040 $as_echo "$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
20041     else
20042       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20043 $as_echo "no" >&6; }
20044       no_cppunit=yes
20045     fi
20046   fi
20047
20048   if test "x$no_cppunit" = x ; then
20049      :
20050   else
20051      CPPUNIT_CFLAGS=""
20052      CPPUNIT_LIBS=""
20053      as_fn_error $? "GNU Radio requires cppunit.  Stop" "$LINENO" 5
20054   fi
20055
20056
20057
20058
20059 fi
20060
20061 CPPUNIT_INCLUDES=$CPPUNIT_CFLAGS
20062
20063
20064 # Extract the first word of "guile", so it can be a program name with args.
20065 set dummy guile; ac_word=$2
20066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20067 $as_echo_n "checking for $ac_word... " >&6; }
20068 if test "${ac_cv_path_GUILE+set}" = set; then :
20069   $as_echo_n "(cached) " >&6
20070 else
20071   case $GUILE in
20072   [\\/]* | ?:[\\/]*)
20073   ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
20074   ;;
20075   *)
20076   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20077 for as_dir in $PATH
20078 do
20079   IFS=$as_save_IFS
20080   test -z "$as_dir" && as_dir=.
20081     for ac_exec_ext in '' $ac_executable_extensions; do
20082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20083     ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
20084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20085     break 2
20086   fi
20087 done
20088   done
20089 IFS=$as_save_IFS
20090
20091   ;;
20092 esac
20093 fi
20094 GUILE=$ac_cv_path_GUILE
20095 if test -n "$GUILE"; then
20096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE" >&5
20097 $as_echo "$GUILE" >&6; }
20098 else
20099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20100 $as_echo "no" >&6; }
20101 fi
20102
20103
20104
20105 case "$host_os" in
20106      darwin*)
20107
20108
20109
20110 # Check whether --with-boost was given.
20111 if test "${with_boost+set}" = set; then :
20112   withval=$with_boost;
20113     if test "$withval" = "no"; then
20114         want_boost="no"
20115     elif test "$withval" = "yes"; then
20116         want_boost="yes"
20117         ac_boost_path=""
20118     else
20119         want_boost="yes"
20120         ac_boost_path="$withval"
20121     fi
20122
20123 else
20124   want_boost="yes"
20125 fi
20126
20127
20128
20129
20130 # Check whether --with-boost-libdir was given.
20131 if test "${with_boost_libdir+set}" = set; then :
20132   withval=$with_boost_libdir;
20133         if test -d $withval
20134         then
20135                 ac_boost_lib_path="$withval"
20136         else
20137                 as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
20138         fi
20139
20140 else
20141   ac_boost_lib_path=""
20142
20143 fi
20144
20145
20146 if test "x$want_boost" = "xyes"; then
20147     boost_lib_version_req=1.37
20148     boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
20149     boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
20150     boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
20151     boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
20152     if test "x$boost_lib_version_req_sub_minor" = "x" ; then
20153         boost_lib_version_req_sub_minor="0"
20154         fi
20155     WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+  $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
20156     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost >= $boost_lib_version_req" >&5
20157 $as_echo_n "checking for boost >= $boost_lib_version_req... " >&6; }
20158     succeeded=no
20159
20160                 if test "$ac_boost_path" != ""; then
20161                         if test -d "$ac_boost_path/lib${gr_libdir_suffix}"; then
20162             BOOST_LDFLAGS="-L$ac_boost_path/lib${gr_libdir_suffix}"
20163         else
20164             BOOST_LDFLAGS="-L$ac_boost_path/lib"
20165         fi
20166         BOOST_CPPFLAGS="-I$ac_boost_path/include"
20167     else
20168         for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
20169             if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
20170                                                 if test -d "$ac_boost_path_tmp/lib${gr_libdir_suffix}"; then
20171                     BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib${gr_libdir_suffix}"
20172                 else
20173                     BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib"
20174                 fi
20175                 BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
20176                 break;
20177             fi
20178         done
20179     fi
20180
20181             if test "$ac_boost_lib_path" != ""; then
20182        BOOST_LDFLAGS="-L$ac_boost_lib_path"
20183     fi
20184
20185     CPPFLAGS_SAVED="$CPPFLAGS"
20186     CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20187     export CPPFLAGS
20188
20189     LDFLAGS_SAVED="$LDFLAGS"
20190     LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
20191     export LDFLAGS
20192
20193     ac_ext=cpp
20194 ac_cpp='$CXXCPP $CPPFLAGS'
20195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20198
20199         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20200 /* end confdefs.h.  */
20201
20202     #include <boost/version.hpp>
20203
20204 int
20205 main ()
20206 {
20207
20208     #if BOOST_VERSION >= $WANT_BOOST_VERSION
20209     // Everything is okay
20210     #else
20211     #  error Boost version is too old
20212     #endif
20213
20214   ;
20215   return 0;
20216 }
20217 _ACEOF
20218 if ac_fn_cxx_try_compile "$LINENO"; then :
20219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20220 $as_echo "yes" >&6; }
20221           succeeded=yes
20222           found_system=yes
20223
20224 fi
20225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20226     ac_ext=c
20227 ac_cpp='$CPP $CPPFLAGS'
20228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20231
20232     CPPFLAGS="$CPPFLAGS_SAVED"
20233     LDFLAGS="$LDFLAGS_SAVED"
20234
20235
20236             if test "$succeeded" != "yes"; then
20237         _version=0
20238
20239         if test "$ac_boost_path" != ""; then
20240             path_list="$ac_boost_path"
20241         else
20242             path_list="/usr /usr/local /opt /opt/local"
20243         fi
20244         for ac_boost_path in $path_list ; do
20245             if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
20246                 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
20247                     _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's,/include/boost-,,; s,_,.,'`
20248                     V_CHECK=`expr $_version_tmp \> $_version`
20249                     if test "$V_CHECK" = "1" ; then
20250                         _version=$_version_tmp
20251                         best_path=$ac_boost_path
20252                     fi
20253                 done
20254             fi
20255         done
20256
20257         VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
20258         BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
20259
20260         if test "$ac_boost_lib_path" = "";  then
20261                             if test -d "$best_path/lib${gr_libdir_suffix}"; then
20262                 BOOST_LDFLAGS="-L$best_path/lib${gr_libdir_suffix}"
20263             else
20264                 BOOST_LDFLAGS="-L$best_path/lib"
20265             fi
20266         fi
20267
20268         CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20269         export CPPFLAGS
20270         LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
20271         export LDFLAGS
20272
20273         ac_ext=cpp
20274 ac_cpp='$CXXCPP $CPPFLAGS'
20275 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20276 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20277 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20278
20279             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20280 /* end confdefs.h.  */
20281
20282         #include <boost/version.hpp>
20283
20284 int
20285 main ()
20286 {
20287
20288         #if BOOST_VERSION >= $WANT_BOOST_VERSION
20289         // Everything is okay
20290         #else
20291         #  error Boost version is too old
20292         #endif
20293
20294   ;
20295   return 0;
20296 }
20297 _ACEOF
20298 if ac_fn_cxx_try_compile "$LINENO"; then :
20299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20300 $as_echo "yes" >&6; }
20301               succeeded=yes
20302               found_system=yes
20303
20304 fi
20305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20306         ac_ext=c
20307 ac_cpp='$CPP $CPPFLAGS'
20308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20311
20312         CPPFLAGS="$CPPFLAGS_SAVED"
20313         LDFLAGS="$LDFLAGS_SAVED"
20314     fi
20315
20316     if test "$succeeded" != "yes" ; then
20317         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20318 $as_echo "no" >&6; }
20319         if test "$_version" = "0" ; then
20320             as_fn_error $? "we could not detect the boost libraries (version $boost_lib_version_req_shorten or higher).
20321 If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>." "$LINENO" 5
20322         else
20323             as_fn_error $? "your boost libraries seem to old (version $_version)." "$LINENO" 5
20324         fi
20325     else
20326
20327
20328
20329 $as_echo "#define HAVE_BOOST 1" >>confdefs.h
20330
20331     fi
20332 fi
20333
20334         ;;
20335       *)
20336
20337
20338
20339 # Check whether --with-boost was given.
20340 if test "${with_boost+set}" = set; then :
20341   withval=$with_boost;
20342     if test "$withval" = "no"; then
20343         want_boost="no"
20344     elif test "$withval" = "yes"; then
20345         want_boost="yes"
20346         ac_boost_path=""
20347     else
20348         want_boost="yes"
20349         ac_boost_path="$withval"
20350     fi
20351
20352 else
20353   want_boost="yes"
20354 fi
20355
20356
20357
20358
20359 # Check whether --with-boost-libdir was given.
20360 if test "${with_boost_libdir+set}" = set; then :
20361   withval=$with_boost_libdir;
20362         if test -d $withval
20363         then
20364                 ac_boost_lib_path="$withval"
20365         else
20366                 as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
20367         fi
20368
20369 else
20370   ac_boost_lib_path=""
20371
20372 fi
20373
20374
20375 if test "x$want_boost" = "xyes"; then
20376     boost_lib_version_req=1.35
20377     boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
20378     boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
20379     boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
20380     boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
20381     if test "x$boost_lib_version_req_sub_minor" = "x" ; then
20382         boost_lib_version_req_sub_minor="0"
20383         fi
20384     WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+  $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
20385     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost >= $boost_lib_version_req" >&5
20386 $as_echo_n "checking for boost >= $boost_lib_version_req... " >&6; }
20387     succeeded=no
20388
20389                 if test "$ac_boost_path" != ""; then
20390                         if test -d "$ac_boost_path/lib${gr_libdir_suffix}"; then
20391             BOOST_LDFLAGS="-L$ac_boost_path/lib${gr_libdir_suffix}"
20392         else
20393             BOOST_LDFLAGS="-L$ac_boost_path/lib"
20394         fi
20395         BOOST_CPPFLAGS="-I$ac_boost_path/include"
20396     else
20397         for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
20398             if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
20399                                                 if test -d "$ac_boost_path_tmp/lib${gr_libdir_suffix}"; then
20400                     BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib${gr_libdir_suffix}"
20401                 else
20402                     BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib"
20403                 fi
20404                 BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
20405                 break;
20406             fi
20407         done
20408     fi
20409
20410             if test "$ac_boost_lib_path" != ""; then
20411        BOOST_LDFLAGS="-L$ac_boost_lib_path"
20412     fi
20413
20414     CPPFLAGS_SAVED="$CPPFLAGS"
20415     CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20416     export CPPFLAGS
20417
20418     LDFLAGS_SAVED="$LDFLAGS"
20419     LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
20420     export LDFLAGS
20421
20422     ac_ext=cpp
20423 ac_cpp='$CXXCPP $CPPFLAGS'
20424 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20425 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20426 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20427
20428         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20429 /* end confdefs.h.  */
20430
20431     #include <boost/version.hpp>
20432
20433 int
20434 main ()
20435 {
20436
20437     #if BOOST_VERSION >= $WANT_BOOST_VERSION
20438     // Everything is okay
20439     #else
20440     #  error Boost version is too old
20441     #endif
20442
20443   ;
20444   return 0;
20445 }
20446 _ACEOF
20447 if ac_fn_cxx_try_compile "$LINENO"; then :
20448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20449 $as_echo "yes" >&6; }
20450           succeeded=yes
20451           found_system=yes
20452
20453 fi
20454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20455     ac_ext=c
20456 ac_cpp='$CPP $CPPFLAGS'
20457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20460
20461     CPPFLAGS="$CPPFLAGS_SAVED"
20462     LDFLAGS="$LDFLAGS_SAVED"
20463
20464
20465             if test "$succeeded" != "yes"; then
20466         _version=0
20467
20468         if test "$ac_boost_path" != ""; then
20469             path_list="$ac_boost_path"
20470         else
20471             path_list="/usr /usr/local /opt /opt/local"
20472         fi
20473         for ac_boost_path in $path_list ; do
20474             if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
20475                 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
20476                     _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's,/include/boost-,,; s,_,.,'`
20477                     V_CHECK=`expr $_version_tmp \> $_version`
20478                     if test "$V_CHECK" = "1" ; then
20479                         _version=$_version_tmp
20480                         best_path=$ac_boost_path
20481                     fi
20482                 done
20483             fi
20484         done
20485
20486         VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
20487         BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
20488
20489         if test "$ac_boost_lib_path" = "";  then
20490                             if test -d "$best_path/lib${gr_libdir_suffix}"; then
20491                 BOOST_LDFLAGS="-L$best_path/lib${gr_libdir_suffix}"
20492             else
20493                 BOOST_LDFLAGS="-L$best_path/lib"
20494             fi
20495         fi
20496
20497         CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20498         export CPPFLAGS
20499         LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
20500         export LDFLAGS
20501
20502         ac_ext=cpp
20503 ac_cpp='$CXXCPP $CPPFLAGS'
20504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20507
20508             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20509 /* end confdefs.h.  */
20510
20511         #include <boost/version.hpp>
20512
20513 int
20514 main ()
20515 {
20516
20517         #if BOOST_VERSION >= $WANT_BOOST_VERSION
20518         // Everything is okay
20519         #else
20520         #  error Boost version is too old
20521         #endif
20522
20523   ;
20524   return 0;
20525 }
20526 _ACEOF
20527 if ac_fn_cxx_try_compile "$LINENO"; then :
20528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20529 $as_echo "yes" >&6; }
20530               succeeded=yes
20531               found_system=yes
20532
20533 fi
20534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20535         ac_ext=c
20536 ac_cpp='$CPP $CPPFLAGS'
20537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20540
20541         CPPFLAGS="$CPPFLAGS_SAVED"
20542         LDFLAGS="$LDFLAGS_SAVED"
20543     fi
20544
20545     if test "$succeeded" != "yes" ; then
20546         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20547 $as_echo "no" >&6; }
20548         if test "$_version" = "0" ; then
20549             as_fn_error $? "we could not detect the boost libraries (version $boost_lib_version_req_shorten or higher).
20550 If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>." "$LINENO" 5
20551         else
20552             as_fn_error $? "your boost libraries seem to old (version $_version)." "$LINENO" 5
20553         fi
20554     else
20555
20556
20557
20558 $as_echo "#define HAVE_BOOST 1" >>confdefs.h
20559
20560     fi
20561 fi
20562
20563         ;;
20564 esac
20565
20566
20567
20568
20569 ac_ext=c
20570 ac_cpp='$CPP $CPPFLAGS'
20571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20574
20575 acx_pthread_ok=no
20576
20577 # We used to check for pthread.h first, but this fails if pthread.h
20578 # requires special compiler flags (e.g. on True64 or Sequent).
20579 # It gets checked for in the link test anyway.
20580
20581 # First of all, check if the user has set any of the PTHREAD_LIBS,
20582 # etcetera environment variables, and if threads linking works using
20583 # them:
20584 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
20585         save_CFLAGS="$CFLAGS"
20586         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20587         save_LIBS="$LIBS"
20588         LIBS="$PTHREAD_LIBS $LIBS"
20589         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
20590 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
20591         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20592 /* end confdefs.h.  */
20593
20594 /* Override any GCC internal prototype to avoid an error.
20595    Use char because int might match the return type of a GCC
20596    builtin and then its argument prototype would still apply.  */
20597 #ifdef __cplusplus
20598 extern "C"
20599 #endif
20600 char pthread_join ();
20601 int
20602 main ()
20603 {
20604 return pthread_join ();
20605   ;
20606   return 0;
20607 }
20608 _ACEOF
20609 if ac_fn_c_try_link "$LINENO"; then :
20610   acx_pthread_ok=yes
20611 fi
20612 rm -f core conftest.err conftest.$ac_objext \
20613     conftest$ac_exeext conftest.$ac_ext
20614         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
20615 $as_echo "$acx_pthread_ok" >&6; }
20616         if test x"$acx_pthread_ok" = xno; then
20617                 PTHREAD_LIBS=""
20618                 PTHREAD_CFLAGS=""
20619         fi
20620         LIBS="$save_LIBS"
20621         CFLAGS="$save_CFLAGS"
20622 fi
20623
20624 # We must check for the threads library under a number of different
20625 # names; the ordering is very important because some systems
20626 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
20627 # libraries is broken (non-POSIX).
20628
20629 # Create a list of thread flags to try.  Items starting with a "-" are
20630 # C compiler flags, and other items are library names, except for "none"
20631 # which indicates that we try without any flags at all, and "pthread-config"
20632 # which is a program returning the flags for the Pth emulation library.
20633
20634 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
20635
20636 # The ordering *is* (sometimes) important.  Some notes on the
20637 # individual items follow:
20638
20639 # pthreads: AIX (must check this before -lpthread)
20640 # none: in case threads are in libc; should be tried before -Kthread and
20641 #       other compiler flags to prevent continual compiler warnings
20642 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
20643 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
20644 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
20645 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
20646 # -pthreads: Solaris/gcc
20647 # -mthreads: Mingw32/gcc, Lynx/gcc
20648 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
20649 #      doesn't hurt to check since this sometimes defines pthreads too;
20650 #      also defines -D_REENTRANT)
20651 #      ... -mt is also the pthreads flag for HP/aCC
20652 # pthread: Linux, etcetera
20653 # --thread-safe: KAI C++
20654 # pthread-config: use pthread-config program (for GNU Pth library)
20655
20656 case "${host_cpu}-${host_os}" in
20657         *solaris*)
20658
20659         # On Solaris (at least, for some versions), libc contains stubbed
20660         # (non-functional) versions of the pthreads routines, so link-based
20661         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
20662         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
20663         # a function called by this macro, so we could check for that, but
20664         # who knows whether they'll stub that too in a future libc.)  So,
20665         # we'll just look for -pthreads and -lpthread first:
20666
20667         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
20668         ;;
20669 esac
20670
20671 if test x"$acx_pthread_ok" = xno; then
20672 for flag in $acx_pthread_flags; do
20673
20674         case $flag in
20675                 none)
20676                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
20677 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
20678                 ;;
20679
20680                 -*)
20681                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
20682 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
20683                 PTHREAD_CFLAGS="$flag"
20684                 ;;
20685
20686                 pthread-config)
20687                 # Extract the first word of "pthread-config", so it can be a program name with args.
20688 set dummy pthread-config; ac_word=$2
20689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20690 $as_echo_n "checking for $ac_word... " >&6; }
20691 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
20692   $as_echo_n "(cached) " >&6
20693 else
20694   if test -n "$acx_pthread_config"; then
20695   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
20696 else
20697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20698 for as_dir in $PATH
20699 do
20700   IFS=$as_save_IFS
20701   test -z "$as_dir" && as_dir=.
20702     for ac_exec_ext in '' $ac_executable_extensions; do
20703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20704     ac_cv_prog_acx_pthread_config="yes"
20705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20706     break 2
20707   fi
20708 done
20709   done
20710 IFS=$as_save_IFS
20711
20712   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
20713 fi
20714 fi
20715 acx_pthread_config=$ac_cv_prog_acx_pthread_config
20716 if test -n "$acx_pthread_config"; then
20717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
20718 $as_echo "$acx_pthread_config" >&6; }
20719 else
20720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20721 $as_echo "no" >&6; }
20722 fi
20723
20724
20725                 if test x"$acx_pthread_config" = xno; then continue; fi
20726                 PTHREAD_CFLAGS="`pthread-config --cflags`"
20727                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
20728                 ;;
20729
20730                 *)
20731                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
20732 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
20733                 PTHREAD_LIBS="-l$flag"
20734                 ;;
20735         esac
20736
20737         save_LIBS="$LIBS"
20738         save_CFLAGS="$CFLAGS"
20739         LIBS="$PTHREAD_LIBS $LIBS"
20740         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20741
20742         # Check for various functions.  We must include pthread.h,
20743         # since some functions may be macros.  (On the Sequent, we
20744         # need a special flag -Kthread to make this header compile.)
20745         # We check for pthread_join because it is in -lpthread on IRIX
20746         # while pthread_create is in libc.  We check for pthread_attr_init
20747         # due to DEC craziness with -lpthreads.  We check for
20748         # pthread_cleanup_push because it is one of the few pthread
20749         # functions on Solaris that doesn't have a non-functional libc stub.
20750         # We try pthread_create on general principles.
20751         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20752 /* end confdefs.h.  */
20753 #include <pthread.h>
20754 int
20755 main ()
20756 {
20757 pthread_t th; pthread_join(th, 0);
20758                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
20759                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
20760   ;
20761   return 0;
20762 }
20763 _ACEOF
20764 if ac_fn_c_try_link "$LINENO"; then :
20765   acx_pthread_ok=yes
20766 fi
20767 rm -f core conftest.err conftest.$ac_objext \
20768     conftest$ac_exeext conftest.$ac_ext
20769
20770         LIBS="$save_LIBS"
20771         CFLAGS="$save_CFLAGS"
20772
20773         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
20774 $as_echo "$acx_pthread_ok" >&6; }
20775         if test "x$acx_pthread_ok" = xyes; then
20776                 break;
20777         fi
20778
20779         PTHREAD_LIBS=""
20780         PTHREAD_CFLAGS=""
20781 done
20782 fi
20783
20784 # Various other checks:
20785 if test "x$acx_pthread_ok" = xyes; then
20786         save_LIBS="$LIBS"
20787         LIBS="$PTHREAD_LIBS $LIBS"
20788         save_CFLAGS="$CFLAGS"
20789         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20790
20791         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
20792         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
20793 $as_echo_n "checking for joinable pthread attribute... " >&6; }
20794         attr_name=unknown
20795         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
20796             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20797 /* end confdefs.h.  */
20798 #include <pthread.h>
20799 int
20800 main ()
20801 {
20802 int attr=$attr; return attr;
20803   ;
20804   return 0;
20805 }
20806 _ACEOF
20807 if ac_fn_c_try_link "$LINENO"; then :
20808   attr_name=$attr; break
20809 fi
20810 rm -f core conftest.err conftest.$ac_objext \
20811     conftest$ac_exeext conftest.$ac_ext
20812         done
20813         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
20814 $as_echo "$attr_name" >&6; }
20815         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
20816
20817 cat >>confdefs.h <<_ACEOF
20818 #define PTHREAD_CREATE_JOINABLE $attr_name
20819 _ACEOF
20820
20821         fi
20822
20823         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
20824 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
20825         flag=no
20826         case "${host_cpu}-${host_os}" in
20827             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
20828             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
20829         esac
20830         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
20831 $as_echo "${flag}" >&6; }
20832         if test "x$flag" != xno; then
20833             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
20834         fi
20835
20836         LIBS="$save_LIBS"
20837         CFLAGS="$save_CFLAGS"
20838
20839         # More AIX lossage: must compile with xlc_r or cc_r
20840         if test x"$GCC" != xyes; then
20841           for ac_prog in xlc_r cc_r
20842 do
20843   # Extract the first word of "$ac_prog", so it can be a program name with args.
20844 set dummy $ac_prog; ac_word=$2
20845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20846 $as_echo_n "checking for $ac_word... " >&6; }
20847 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
20848   $as_echo_n "(cached) " >&6
20849 else
20850   if test -n "$PTHREAD_CC"; then
20851   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
20852 else
20853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20854 for as_dir in $PATH
20855 do
20856   IFS=$as_save_IFS
20857   test -z "$as_dir" && as_dir=.
20858     for ac_exec_ext in '' $ac_executable_extensions; do
20859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20860     ac_cv_prog_PTHREAD_CC="$ac_prog"
20861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20862     break 2
20863   fi
20864 done
20865   done
20866 IFS=$as_save_IFS
20867
20868 fi
20869 fi
20870 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
20871 if test -n "$PTHREAD_CC"; then
20872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
20873 $as_echo "$PTHREAD_CC" >&6; }
20874 else
20875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20876 $as_echo "no" >&6; }
20877 fi
20878
20879
20880   test -n "$PTHREAD_CC" && break
20881 done
20882 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
20883
20884         else
20885           PTHREAD_CC=$CC
20886         fi
20887 else
20888         PTHREAD_CC="$CC"
20889 fi
20890
20891
20892
20893
20894
20895 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20896 if test x"$acx_pthread_ok" = xyes; then
20897
20898 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
20899
20900         :
20901 else
20902         acx_pthread_ok=no
20903
20904 fi
20905 ac_ext=c
20906 ac_cpp='$CPP $CPPFLAGS'
20907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20910
20911
20912
20913
20914
20915
20916
20917
20918 # Check whether --with-boost-thread was given.
20919 if test "${with_boost_thread+set}" = set; then :
20920   withval=$with_boost_thread;
20921                 if test "$withval" = "no"; then
20922                     want_boost="no"
20923                 elif test "$withval" = "yes"; then
20924                     want_boost="yes"
20925                     ax_boost_user_lib=""
20926                 else
20927                     want_boost="yes"
20928                     ax_boost_user_lib="$withval"
20929                 fi
20930
20931 else
20932   want_boost="yes"
20933 fi
20934
20935
20936
20937
20938     if test "$want_boost" = "yes"; then
20939
20940
20941
20942
20943         CPPFLAGS_SAVED="$CPPFLAGS"
20944         LDFLAGS_SAVED="$LDFLAGS"
20945         CXXFLAGS_SAVED="$CXXFLAGS"
20946
20947         CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20948         LDFLAGS="$LDFLAGS $BOOST_LDFLAGS $PTHREAD_LIBS"
20949         CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
20950
20951         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the boost::thread includes are available" >&5
20952 $as_echo_n "checking whether the boost::thread includes are available... " >&6; }
20953 if test "${ax_cv_boost_thread+set}" = set; then :
20954   $as_echo_n "(cached) " >&6
20955 else
20956   ac_ext=cpp
20957 ac_cpp='$CXXCPP $CPPFLAGS'
20958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20961
20962              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20963 /* end confdefs.h.  */
20964 #include <boost/thread/thread.hpp>
20965 int
20966 main ()
20967 {
20968 boost::thread_group thrds;
20969                                    return 0;
20970   ;
20971   return 0;
20972 }
20973 _ACEOF
20974 if ac_fn_cxx_try_compile "$LINENO"; then :
20975   ax_cv_boost_thread=yes
20976 else
20977   ax_cv_boost_thread=no
20978 fi
20979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20980              ac_ext=c
20981 ac_cpp='$CPP $CPPFLAGS'
20982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20985
20986
20987 fi
20988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_thread" >&5
20989 $as_echo "$ax_cv_boost_thread" >&6; }
20990
20991         if test "$ax_cv_boost_thread" = "yes"; then
20992             BOOST_CXXFLAGS="$PTHREAD_CFLAGS"
20993
20994
20995
20996     ac_ext=cpp
20997 ac_cpp='$CXXCPP $CPPFLAGS'
20998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21001
21002
21003 $as_echo "#define HAVE_BOOST_THREAD 1" >>confdefs.h
21004
21005     BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
21006
21007         link_ok="no"
21008     if test "$ax_boost_user_lib" != ""; then
21009                 for ax_lib in $ax_boost_user_lib boost_thread-${ax_boost_user_lib}; do
21010             as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
21011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
21012 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
21013 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
21014   $as_echo_n "(cached) " >&6
21015 else
21016   ac_check_lib_save_LIBS=$LIBS
21017 LIBS="-l$ax_lib  $LIBS"
21018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21019 /* end confdefs.h.  */
21020
21021 /* Override any GCC internal prototype to avoid an error.
21022    Use char because int might match the return type of a GCC
21023    builtin and then its argument prototype would still apply.  */
21024 #ifdef __cplusplus
21025 extern "C"
21026 #endif
21027 char exit ();
21028 int
21029 main ()
21030 {
21031 return exit ();
21032   ;
21033   return 0;
21034 }
21035 _ACEOF
21036 if ac_fn_cxx_try_link "$LINENO"; then :
21037   eval "$as_ac_Lib=yes"
21038 else
21039   eval "$as_ac_Lib=no"
21040 fi
21041 rm -f core conftest.err conftest.$ac_objext \
21042     conftest$ac_exeext conftest.$ac_ext
21043 LIBS=$ac_check_lib_save_LIBS
21044 fi
21045 eval ac_res=\$$as_ac_Lib
21046                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21047 $as_echo "$ac_res" >&6; }
21048 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21049   BOOST_THREAD_LIB="-l$ax_lib";  link_ok="yes"; break
21050 fi
21051
21052         done
21053     else
21054                 head=$BOOSTLIBDIR/libboost_thread
21055         for f in ${head}*.so* ${head}*.a* ${head}*.dll* ${head}*.dylib; do
21056                     case $f in
21057               *\**) continue;;
21058             esac
21059             f=`echo $f | sed -e 's,.*/,,' -e 's,^lib,,'`
21060                     f=`echo $f | sed -e 's,\(boost_thread.*\)\.so.*$,\1,' -e 's,\(boost_thread.*\)\.a.*$,\1,' -e 's,\(boost_thread.*\)\.dll.*$,\1,' -e 's,\(boost_thread.*\)\.dylib.*$,\1,'`
21061
21062             ax_lib=$f
21063             as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
21065 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
21066 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
21067   $as_echo_n "(cached) " >&6
21068 else
21069   ac_check_lib_save_LIBS=$LIBS
21070 LIBS="-l$ax_lib  $LIBS"
21071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21072 /* end confdefs.h.  */
21073
21074 /* Override any GCC internal prototype to avoid an error.
21075    Use char because int might match the return type of a GCC
21076    builtin and then its argument prototype would still apply.  */
21077 #ifdef __cplusplus
21078 extern "C"
21079 #endif
21080 char exit ();
21081 int
21082 main ()
21083 {
21084 return exit ();
21085   ;
21086   return 0;
21087 }
21088 _ACEOF
21089 if ac_fn_cxx_try_link "$LINENO"; then :
21090   eval "$as_ac_Lib=yes"
21091 else
21092   eval "$as_ac_Lib=no"
21093 fi
21094 rm -f core conftest.err conftest.$ac_objext \
21095     conftest$ac_exeext conftest.$ac_ext
21096 LIBS=$ac_check_lib_save_LIBS
21097 fi
21098 eval ac_res=\$$as_ac_Lib
21099                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21100 $as_echo "$ac_res" >&6; }
21101 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21102   BOOST_THREAD_LIB="-l$ax_lib";  link_ok="yes"; break
21103 fi
21104
21105         done
21106     fi
21107
21108     if test "$link_ok" != "yes"; then
21109         as_fn_error $? "Could not link against libboost_thread!" "$LINENO" 5
21110     fi
21111     ac_ext=c
21112 ac_cpp='$CPP $CPPFLAGS'
21113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21116
21117
21118
21119             if test "$link_ok" = "yes" && test -n "$PTHREAD_LIBS"; then
21120                 BOOST_THREAD_LIB="$BOOST_THREAD_LIB $PTHREAD_LIBS"
21121             fi
21122         fi
21123
21124         CPPFLAGS="$CPPFLAGS_SAVED"
21125         LDFLAGS="$LDFLAGS_SAVED"
21126         CXXFLAGS="$CXXFLAGS_SAVED"
21127     fi
21128
21129 CXXFLAGS="$CXXFLAGS $BOOST_CXXFLAGS"       CFLAGS="$CFLAGS $BOOST_CXXFLAGS"
21130
21131
21132
21133
21134
21135
21136
21137 # Check whether --with-boost-date-time was given.
21138 if test "${with_boost_date_time+set}" = set; then :
21139   withval=$with_boost_date_time;
21140                 if test "$withval" = "no"; then
21141                     want_boost="no"
21142                 elif test "$withval" = "yes"; then
21143                     want_boost="yes"
21144                     ax_boost_user_lib=""
21145                 else
21146                     want_boost="yes"
21147                     ax_boost_user_lib="$withval"
21148                 fi
21149
21150 else
21151   want_boost="yes"
21152 fi
21153
21154
21155
21156     if test "$want_boost" = "yes"; then
21157
21158
21159         CPPFLAGS_SAVED="$CPPFLAGS"
21160         CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
21161         LDFLAGS_SAVED="$LDFLAGS"
21162         LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
21163         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the boost::date_time includes are available" >&5
21164 $as_echo_n "checking whether the boost::date_time includes are available... " >&6; }
21165 if test "${ax_cv_boost_date_time+set}" = set; then :
21166   $as_echo_n "(cached) " >&6
21167 else
21168   ac_ext=cpp
21169 ac_cpp='$CXXCPP $CPPFLAGS'
21170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21173
21174                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21175 /* end confdefs.h.  */
21176 #include <boost/date_time/gregorian/gregorian_types.hpp>
21177 int
21178 main ()
21179 {
21180 using namespace boost::gregorian; date d(2002,Jan,10); return 0;
21181   ;
21182   return 0;
21183 }
21184 _ACEOF
21185 if ac_fn_cxx_try_compile "$LINENO"; then :
21186   ax_cv_boost_date_time=yes
21187 else
21188   ax_cv_boost_date_time=no
21189 fi
21190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21191                         ac_ext=c
21192 ac_cpp='$CPP $CPPFLAGS'
21193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21196
21197
21198 fi
21199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_date_time" >&5
21200 $as_echo "$ax_cv_boost_date_time" >&6; }
21201         if test "$ax_cv_boost_date_time" = "yes"; then
21202
21203
21204     ac_ext=cpp
21205 ac_cpp='$CXXCPP $CPPFLAGS'
21206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21209
21210
21211 $as_echo "#define HAVE_BOOST_DATE_TIME 1" >>confdefs.h
21212
21213     BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
21214
21215         link_ok="no"
21216     if test "$ax_boost_user_lib" != ""; then
21217                 for ax_lib in $ax_boost_user_lib boost_date_time-${ax_boost_user_lib}; do
21218             as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
21219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
21220 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
21221 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
21222   $as_echo_n "(cached) " >&6
21223 else
21224   ac_check_lib_save_LIBS=$LIBS
21225 LIBS="-l$ax_lib  $LIBS"
21226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21227 /* end confdefs.h.  */
21228
21229 /* Override any GCC internal prototype to avoid an error.
21230    Use char because int might match the return type of a GCC
21231    builtin and then its argument prototype would still apply.  */
21232 #ifdef __cplusplus
21233 extern "C"
21234 #endif
21235 char exit ();
21236 int
21237 main ()
21238 {
21239 return exit ();
21240   ;
21241   return 0;
21242 }
21243 _ACEOF
21244 if ac_fn_cxx_try_link "$LINENO"; then :
21245   eval "$as_ac_Lib=yes"
21246 else
21247   eval "$as_ac_Lib=no"
21248 fi
21249 rm -f core conftest.err conftest.$ac_objext \
21250     conftest$ac_exeext conftest.$ac_ext
21251 LIBS=$ac_check_lib_save_LIBS
21252 fi
21253 eval ac_res=\$$as_ac_Lib
21254                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21255 $as_echo "$ac_res" >&6; }
21256 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21257   BOOST_DATE_TIME_LIB="-l$ax_lib";  link_ok="yes"; break
21258 fi
21259
21260         done
21261     else
21262                 head=$BOOSTLIBDIR/libboost_date_time
21263         for f in ${head}*.so* ${head}*.a* ${head}*.dll* ${head}*.dylib; do
21264                     case $f in
21265               *\**) continue;;
21266             esac
21267             f=`echo $f | sed -e 's,.*/,,' -e 's,^lib,,'`
21268                     f=`echo $f | sed -e 's,\(boost_date_time.*\)\.so.*$,\1,' -e 's,\(boost_date_time.*\)\.a.*$,\1,' -e 's,\(boost_date_time.*\)\.dll.*$,\1,' -e 's,\(boost_date_time.*\)\.dylib.*$,\1,'`
21269
21270             ax_lib=$f
21271             as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
21272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
21273 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
21274 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
21275   $as_echo_n "(cached) " >&6
21276 else
21277   ac_check_lib_save_LIBS=$LIBS
21278 LIBS="-l$ax_lib  $LIBS"
21279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21280 /* end confdefs.h.  */
21281
21282 /* Override any GCC internal prototype to avoid an error.
21283    Use char because int might match the return type of a GCC
21284    builtin and then its argument prototype would still apply.  */
21285 #ifdef __cplusplus
21286 extern "C"
21287 #endif
21288 char exit ();
21289 int
21290 main ()
21291 {
21292 return exit ();
21293   ;
21294   return 0;
21295 }
21296 _ACEOF
21297 if ac_fn_cxx_try_link "$LINENO"; then :
21298   eval "$as_ac_Lib=yes"
21299 else
21300   eval "$as_ac_Lib=no"
21301 fi
21302 rm -f core conftest.err conftest.$ac_objext \
21303     conftest$ac_exeext conftest.$ac_ext
21304 LIBS=$ac_check_lib_save_LIBS
21305 fi
21306 eval ac_res=\$$as_ac_Lib
21307                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21308 $as_echo "$ac_res" >&6; }
21309 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21310   BOOST_DATE_TIME_LIB="-l$ax_lib";  link_ok="yes"; break
21311 fi
21312
21313         done
21314     fi
21315
21316     if test "$link_ok" != "yes"; then
21317         as_fn_error $? "Could not link against libboost_date_time!" "$LINENO" 5
21318     fi
21319     ac_ext=c
21320 ac_cpp='$CPP $CPPFLAGS'
21321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21324
21325
21326
21327         fi
21328         CPPFLAGS="$CPPFLAGS_SAVED"
21329         LDFLAGS="$LDFLAGS_SAVED"
21330     fi
21331
21332
21333
21334
21335
21336
21337
21338
21339
21340
21341 # Check whether --with-boost-program-options was given.
21342 if test "${with_boost_program_options+set}" = set; then :
21343   withval=$with_boost_program_options;
21344                 if test "$withval" = "no"; then
21345                     want_boost="no"
21346                 elif test "$withval" = "yes"; then
21347                     want_boost="yes"
21348                     ax_boost_user_lib=""
21349                 else
21350                     want_boost="yes"
21351                     ax_boost_user_lib="$withval"
21352                 fi
21353
21354 else
21355   want_boost="yes"
21356 fi
21357
21358
21359
21360     if test "$want_boost" = "yes"; then
21361
21362
21363         CPPFLAGS_SAVED="$CPPFLAGS"
21364         CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
21365         LDFLAGS_SAVED="$LDFLAGS"
21366         LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
21367         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the boost::program_options includes are available" >&5
21368 $as_echo_n "checking whether the boost::program_options includes are available... " >&6; }
21369 if test "${ax_cv_boost_program_options+set}" = set; then :
21370   $as_echo_n "(cached) " >&6
21371 else
21372   ac_ext=cpp
21373 ac_cpp='$CXXCPP $CPPFLAGS'
21374 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21375 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21376 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21377
21378                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21379 /* end confdefs.h.  */
21380 #include <boost/program_options.hpp>
21381 int
21382 main ()
21383 {
21384 boost::program_options::options_description generic("Generic options");
21385                      return 0;
21386   ;
21387   return 0;
21388 }
21389 _ACEOF
21390 if ac_fn_cxx_try_compile "$LINENO"; then :
21391   ax_cv_boost_program_options=yes
21392 else
21393   ax_cv_boost_program_options=no
21394 fi
21395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21396                         ac_ext=c
21397 ac_cpp='$CPP $CPPFLAGS'
21398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21401
21402
21403 fi
21404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_program_options" >&5
21405 $as_echo "$ax_cv_boost_program_options" >&6; }
21406         if test "$ax_cv_boost_program_options" = "yes"; then
21407
21408
21409     ac_ext=cpp
21410 ac_cpp='$CXXCPP $CPPFLAGS'
21411 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21412 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21413 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21414
21415
21416 $as_echo "#define HAVE_BOOST_PROGRAM_OPTIONS 1" >>confdefs.h
21417
21418     BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
21419
21420         link_ok="no"
21421     if test "$ax_boost_user_lib" != ""; then
21422                 for ax_lib in $ax_boost_user_lib boost_program_options-${ax_boost_user_lib}; do
21423             as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
21424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
21425 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
21426 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
21427   $as_echo_n "(cached) " >&6
21428 else
21429   ac_check_lib_save_LIBS=$LIBS
21430 LIBS="-l$ax_lib  $LIBS"
21431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21432 /* end confdefs.h.  */
21433
21434 /* Override any GCC internal prototype to avoid an error.
21435    Use char because int might match the return type of a GCC
21436    builtin and then its argument prototype would still apply.  */
21437 #ifdef __cplusplus
21438 extern "C"
21439 #endif
21440 char exit ();
21441 int
21442 main ()
21443 {
21444 return exit ();
21445   ;
21446   return 0;
21447 }
21448 _ACEOF
21449 if ac_fn_cxx_try_link "$LINENO"; then :
21450   eval "$as_ac_Lib=yes"
21451 else
21452   eval "$as_ac_Lib=no"
21453 fi
21454 rm -f core conftest.err conftest.$ac_objext \
21455     conftest$ac_exeext conftest.$ac_ext
21456 LIBS=$ac_check_lib_save_LIBS
21457 fi
21458 eval ac_res=\$$as_ac_Lib
21459                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21460 $as_echo "$ac_res" >&6; }
21461 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21462   BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib";  link_ok="yes"; break
21463 fi
21464
21465         done
21466     else
21467                 head=$BOOSTLIBDIR/libboost_program_options
21468         for f in ${head}*.so* ${head}*.a* ${head}*.dll* ${head}*.dylib; do
21469                     case $f in
21470               *\**) continue;;
21471             esac
21472             f=`echo $f | sed -e 's,.*/,,' -e 's,^lib,,'`
21473                     f=`echo $f | sed -e 's,\(boost_program_options.*\)\.so.*$,\1,' -e 's,\(boost_program_options.*\)\.a.*$,\1,' -e 's,\(boost_program_options.*\)\.dll.*$,\1,' -e 's,\(boost_program_options.*\)\.dylib.*$,\1,'`
21474
21475             ax_lib=$f
21476             as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
21477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
21478 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
21479 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
21480   $as_echo_n "(cached) " >&6
21481 else
21482   ac_check_lib_save_LIBS=$LIBS
21483 LIBS="-l$ax_lib  $LIBS"
21484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21485 /* end confdefs.h.  */
21486
21487 /* Override any GCC internal prototype to avoid an error.
21488    Use char because int might match the return type of a GCC
21489    builtin and then its argument prototype would still apply.  */
21490 #ifdef __cplusplus
21491 extern "C"
21492 #endif
21493 char exit ();
21494 int
21495 main ()
21496 {
21497 return exit ();
21498   ;
21499   return 0;
21500 }
21501 _ACEOF
21502 if ac_fn_cxx_try_link "$LINENO"; then :
21503   eval "$as_ac_Lib=yes"
21504 else
21505   eval "$as_ac_Lib=no"
21506 fi
21507 rm -f core conftest.err conftest.$ac_objext \
21508     conftest$ac_exeext conftest.$ac_ext
21509 LIBS=$ac_check_lib_save_LIBS
21510 fi
21511 eval ac_res=\$$as_ac_Lib
21512                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21513 $as_echo "$ac_res" >&6; }
21514 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21515   BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib";  link_ok="yes"; break
21516 fi
21517
21518         done
21519     fi
21520
21521     if test "$link_ok" != "yes"; then
21522         as_fn_error $? "Could not link against libboost_program_options!" "$LINENO" 5
21523     fi
21524     ac_ext=c
21525 ac_cpp='$CPP $CPPFLAGS'
21526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21529
21530
21531
21532         fi
21533         CPPFLAGS="$CPPFLAGS_SAVED"
21534         LDFLAGS="$LDFLAGS_SAVED"
21535     fi
21536
21537
21538
21539
21540 BUILD_DATE=`date -u +"%a, %d %b %Y %R:%S"`
21541
21542
21543 if test "${sysconfdir}" == "\${prefix}/etc" ; then
21544    if test "${prefix}" == "NONE" ; then
21545       SYSCONFDIR="$ac_default_prefix/etc"
21546    else
21547       SYSCONFDIR="${prefix}/etc"
21548    fi
21549 else
21550    SYSCONFDIR=${sysconfdir}
21551 fi
21552
21553
21554 GR_PREFSDIR=$SYSCONFDIR/${PACKAGE}/conf.d
21555
21556
21557
21558 # Check whether --enable-all-components was given.
21559 if test "${enable_all_components+set}" = set; then :
21560   enableval=$enable_all_components;
21561 fi
21562
21563
21564 build_dirs="config"
21565
21566
21567
21568     passed=yes
21569     # Check whether --enable-gruel was given.
21570 if test "${enable_gruel+set}" = set; then :
21571   enableval=$enable_gruel;
21572 else
21573
21574         enable_gruel=$enable_all_components
21575         if test x$enable_all_components = xno; then
21576             passed=no
21577         fi
21578
21579 fi
21580
21581
21582
21583
21584     if test x = x; then
21585         pc_comp_name="gruel"
21586     else
21587         pc_comp_name=""
21588     fi
21589
21590
21591 # Check whether --with-gruel was given.
21592 if test "${with_gruel+set}" = set; then :
21593   withval=$with_gruel; if test "x$withval" != "xyes"; then
21594                     with_gruel_val=$withval
21595                     with_gruel=yes
21596                  fi
21597 fi
21598
21599     if test x$with_gruel = xyes; then
21600         if test x$enable_gruel = xyes; then
21601             as_fn_error $? "Component gruel: Cannot use both --enable and --with" "$LINENO" 5
21602         else
21603
21604         s_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
21605
21606             l_PKG_CONFIG_PATH=$with_gruel_val
21607     if test "x$l_PKG_CONFIG_PATH" != "x"; then
21608         export PKG_CONFIG_PATH=$l_PKG_CONFIG_PATH
21609
21610                 if ! test -r ${l_PKG_CONFIG_PATH}/${pc_comp_name}.pc; then
21611             as_fn_error $? "Component gruel: PKGCONFIG cannot find info for ${pc_comp_name}, with provided PKG_CONFIG_PATH = [ $l_PKG_CONFIG_PATH ] ." "$LINENO" 5
21612         fi
21613     fi
21614
21615         if test -n "$PKG_CONFIG" && \
21616     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${pc_comp_name}\""; } >&5
21617   ($PKG_CONFIG --exists --print-errors "${pc_comp_name}") 2>&5
21618   ac_status=$?
21619   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21620   test $ac_status = 0; }; then
21621   passed=with; check1=yes
21622 else
21623
21624         check1=no
21625                                         if test "x$l_PKG_CONFIG_PATH" != "x"; then
21626             if test "x$s_PKG_CONFIG_PATH" != "x"; then
21627                 export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${s_PKG_CONFIG_PATH}
21628                 if test -n "$PKG_CONFIG" && \
21629     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${pc_comp_name}\""; } >&5
21630   ($PKG_CONFIG --exists --print-errors "${pc_comp_name}") 2>&5
21631   ac_status=$?
21632   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21633   test $ac_status = 0; }; then
21634   passed=with
21635 else
21636   passed=no
21637 fi
21638             fi
21639         fi
21640         if test $passed != with; then
21641             as_fn_error $? "Component gruel: PKGCONFIG cannot find info for ${pc_comp_name}, with PKG_CONFIG_PATH = [ $PKG_CONFIG_PATH ] ." "$LINENO" 5
21642         fi
21643                 s_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
21644
21645 fi
21646
21647                 gruel_INCLUDES=`$PKG_CONFIG --cflags-only-I ${pc_comp_name}`
21648     gruel_LA=`$PKG_CONFIG --libs ${pc_comp_name}`
21649     gruel_INCLUDEDIR=`$PKG_CONFIG --variable=includedir ${pc_comp_name}`
21650
21651     if test x$check1 = xyes; then
21652                         if test "x$s_PKG_CONFIG_PATH" != "x"; then
21653             export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${s_PKG_CONFIG_PATH}
21654         fi
21655     fi
21656
21657             :
21658         fi
21659     fi
21660
21661
21662
21663                     if test $passed = yes; then
21664
21665     if test x"$GUILE" = x; then
21666         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gruel requires guile, which was not found." >&5
21667 $as_echo "Component gruel requires guile, which was not found." >&6; }
21668         passed=no
21669     fi
21670
21671     fi
21672     if test $passed != with; then
21673                 gruel_INCLUDES="\
21674 -I\${abs_top_srcdir}/gruel/src/include \
21675 -I\${abs_top_builddir}/gruel/src/include"
21676         gruel_LA="\${abs_top_builddir}/gruel/src/lib/libgruel.la"
21677         gruel_LIBDIRPATH="\${abs_top_builddir}/gruel/src/lib:\${abs_top_builddir}/gruel/src/lib/.libs"
21678     fi
21679
21680     ac_config_files="$ac_config_files gruel/Makefile gruel/gruel.pc gruel/src/Makefile gruel/src/include/Makefile gruel/src/include/gruel/Makefile gruel/src/include/gruel/inet.h gruel/src/lib/Makefile gruel/src/lib/pmt/Makefile gruel/src/lib/msg/Makefile gruel/src/scheme/Makefile gruel/src/scheme/gnuradio/Makefile"
21681
21682
21683         ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
21684 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
21685   GR_HAVE_ARPA_INET=1
21686 else
21687   GR_HAVE_ARPA_INET=0
21688 fi
21689
21690
21691     ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
21692 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
21693   GR_HAVE_NETINET_IN=1
21694 else
21695   GR_HAVE_NETINET_IN=0
21696 fi
21697
21698
21699     ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
21700 if test "x$ac_cv_header_byteswap_h" = x""yes; then :
21701   GR_HAVE_BYTESWAP=1
21702 else
21703   GR_HAVE_BYTESWAP=0
21704 fi
21705
21706
21707
21708
21709
21710
21711
21712
21713     gruel_with=no
21714     if test $passed = no; then
21715         if test x$enable_gruel = xyes; then
21716             as_fn_error $? "Component gruel has errors; stopping." "$LINENO" 5
21717         else
21718             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gruel." >&5
21719 $as_echo "Not building component gruel." >&6; }
21720         fi
21721     else
21722         if test $passed = with; then
21723             with_dirs="$with_dirs gruel"
21724
21725     if test "x${gruel_INCLUDES}" != "x"; then
21726         if test "x$with_INCLUDES" = "x"; then
21727             with_INCLUDES="${gruel_INCLUDES}"
21728         else
21729             with_INCLUDES="${gruel_INCLUDES}"" ""$with_INCLUDES"
21730         fi
21731         gruel_INCLUDES=
21732     fi
21733
21734
21735     if test "x${gruel_SWIG_INCLUDES}" != "x"; then
21736         if test "x$with_SWIG_INCLUDES" = "x"; then
21737             with_SWIG_INCLUDES="${gruel_SWIG_INCLUDES}"
21738         else
21739             with_SWIG_INCLUDES="${gruel_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
21740         fi
21741         gruel_SWIG_INCLUDES=
21742     fi
21743
21744
21745     if test "x${gruel_PYDIRPATH}" != "x"; then
21746         if test "x$with_PYDIRPATH" = "x"; then
21747             with_PYDIRPATH="${gruel_PYDIRPATH}"
21748         else
21749             with_PYDIRPATH="${gruel_PYDIRPATH}"":""$with_PYDIRPATH"
21750         fi
21751         gruel_PYDIRPATH=
21752     fi
21753
21754
21755     if test "x${gruel_SWIGDIRPATH}" != "x"; then
21756         if test "x$with_SWIGDIRPATH" = "x"; then
21757             with_SWIGDIRPATH="${gruel_SWIGDIRPATH}"
21758         else
21759             with_SWIGDIRPATH="${gruel_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
21760         fi
21761         gruel_SWIGDIRPATH=
21762     fi
21763
21764
21765     if test "x${gruel_LIBDIRPATH}" != "x"; then
21766         if test "x$with_LIBDIRPATH" = "x"; then
21767             with_LIBDIRPATH="${gruel_LIBDIRPATH}"
21768         else
21769             with_LIBDIRPATH="${gruel_LIBDIRPATH}"":""$with_LIBDIRPATH"
21770         fi
21771         gruel_LIBDIRPATH=
21772     fi
21773
21774             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gruel will be included from a pre-installed library and includes." >&5
21775 $as_echo "Component gruel will be included from a pre-installed library and includes." >&6; }
21776             gruel_with=yes
21777         else
21778             gruel_LDFLAG=
21779             if test x$enable_gruel != xno; then
21780                 :
21781                 build_dirs="$build_dirs gruel"
21782                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gruel passed configuration checks; building." >&5
21783 $as_echo "Component gruel passed configuration checks; building." >&6; }
21784             else
21785                 passed=no
21786                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gruel passed configuration checks; but not building." >&5
21787 $as_echo "Component gruel passed configuration checks; but not building." >&6; }
21788             fi
21789         fi
21790     fi
21791     if test $passed = no; then
21792         skipped_dirs="$skipped_dirs gruel"
21793         gruel_skipped=yes
21794     else
21795         gruel_skipped=no
21796     fi
21797
21798
21799
21800
21801
21802
21803
21804
21805
21806
21807     passed=yes
21808     # Check whether --enable-gcell was given.
21809 if test "${enable_gcell+set}" = set; then :
21810   enableval=$enable_gcell;
21811 else
21812
21813         enable_gcell=$enable_all_components
21814         if test x$enable_all_components = xno; then
21815             passed=no
21816         fi
21817
21818 fi
21819
21820
21821
21822
21823                     if test $passed = yes; then
21824                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host_cpu is powerpc*" >&5
21825 $as_echo_n "checking whether host_cpu is powerpc*... " >&6; }
21826         case "$host_cpu" in
21827             powerpc*)
21828                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21829 $as_echo "yes" >&6; }
21830                 ;;
21831             *)
21832                 passed=no
21833                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21834 $as_echo "no" >&6; }
21835                 ;;
21836         esac
21837
21838                 # Extract the first word of "spu-gcc", so it can be a program name with args.
21839 set dummy spu-gcc; ac_word=$2
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21841 $as_echo_n "checking for $ac_word... " >&6; }
21842 if test "${ac_cv_prog_SPU_GCC_PROG+set}" = set; then :
21843   $as_echo_n "(cached) " >&6
21844 else
21845   if test -n "$SPU_GCC_PROG"; then
21846   ac_cv_prog_SPU_GCC_PROG="$SPU_GCC_PROG" # Let the user override the test.
21847 else
21848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21849 for as_dir in $PATH
21850 do
21851   IFS=$as_save_IFS
21852   test -z "$as_dir" && as_dir=.
21853     for ac_exec_ext in '' $ac_executable_extensions; do
21854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21855     ac_cv_prog_SPU_GCC_PROG="yes"
21856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21857     break 2
21858   fi
21859 done
21860   done
21861 IFS=$as_save_IFS
21862
21863   test -z "$ac_cv_prog_SPU_GCC_PROG" && ac_cv_prog_SPU_GCC_PROG="no"
21864 fi
21865 fi
21866 SPU_GCC_PROG=$ac_cv_prog_SPU_GCC_PROG
21867 if test -n "$SPU_GCC_PROG"; then
21868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPU_GCC_PROG" >&5
21869 $as_echo "$SPU_GCC_PROG" >&6; }
21870 else
21871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21872 $as_echo "no" >&6; }
21873 fi
21874
21875
21876         if test $SPU_GCC_PROG = no; then
21877             passed=no
21878         fi
21879     fi
21880
21881     if test $passed != with; then
21882                 gcell_INCLUDES="-I\${abs_top_srcdir}/gcell/include"
21883         gcell_LA="\${abs_top_builddir}/gcell/lib/libgcell.la"
21884         gcell_spu_INCLUDES="-I\${abs_top_srcdir}/gcell/include"
21885         gcell_spu_LA="\${abs_top_builddir}/gcell/lib/spu/libgcell_spu.a"
21886
21887
21888
21889     fi
21890
21891     ac_config_files="$ac_config_files gcell/Makefile gcell/gcell.pc gcell/gcell_spu.pc gcell/include/Makefile gcell/include/gcell/Makefile gcell/include/gcell/spu/Makefile gcell/lib/Makefile gcell/lib/spu/Makefile gcell/lib/general/Makefile gcell/lib/wrapper/Makefile gcell/lib/runtime/Makefile gcell/apps/Makefile gcell/apps/spu/Makefile gcell/ibm/Makefile"
21892
21893
21894
21895
21896     gcell_with=no
21897     if test $passed = no; then
21898         if test x$enable_gcell = xyes; then
21899             as_fn_error $? "Component gcell has errors; stopping." "$LINENO" 5
21900         else
21901             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gcell." >&5
21902 $as_echo "Not building component gcell." >&6; }
21903         fi
21904     else
21905         if test $passed = with; then
21906             with_dirs="$with_dirs gcell"
21907
21908     if test "x${gcell_INCLUDES}" != "x"; then
21909         if test "x$with_INCLUDES" = "x"; then
21910             with_INCLUDES="${gcell_INCLUDES}"
21911         else
21912             with_INCLUDES="${gcell_INCLUDES}"" ""$with_INCLUDES"
21913         fi
21914         gcell_INCLUDES=
21915     fi
21916
21917
21918     if test "x${gcell_SWIG_INCLUDES}" != "x"; then
21919         if test "x$with_SWIG_INCLUDES" = "x"; then
21920             with_SWIG_INCLUDES="${gcell_SWIG_INCLUDES}"
21921         else
21922             with_SWIG_INCLUDES="${gcell_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
21923         fi
21924         gcell_SWIG_INCLUDES=
21925     fi
21926
21927
21928     if test "x${gcell_PYDIRPATH}" != "x"; then
21929         if test "x$with_PYDIRPATH" = "x"; then
21930             with_PYDIRPATH="${gcell_PYDIRPATH}"
21931         else
21932             with_PYDIRPATH="${gcell_PYDIRPATH}"":""$with_PYDIRPATH"
21933         fi
21934         gcell_PYDIRPATH=
21935     fi
21936
21937
21938     if test "x${gcell_SWIGDIRPATH}" != "x"; then
21939         if test "x$with_SWIGDIRPATH" = "x"; then
21940             with_SWIGDIRPATH="${gcell_SWIGDIRPATH}"
21941         else
21942             with_SWIGDIRPATH="${gcell_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
21943         fi
21944         gcell_SWIGDIRPATH=
21945     fi
21946
21947
21948     if test "x${gcell_LIBDIRPATH}" != "x"; then
21949         if test "x$with_LIBDIRPATH" = "x"; then
21950             with_LIBDIRPATH="${gcell_LIBDIRPATH}"
21951         else
21952             with_LIBDIRPATH="${gcell_LIBDIRPATH}"":""$with_LIBDIRPATH"
21953         fi
21954         gcell_LIBDIRPATH=
21955     fi
21956
21957             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gcell will be included from a pre-installed library and includes." >&5
21958 $as_echo "Component gcell will be included from a pre-installed library and includes." >&6; }
21959             gcell_with=yes
21960         else
21961             gcell_LDFLAG=
21962             if test x$enable_gcell != xno; then
21963                 :
21964                 build_dirs="$build_dirs gcell"
21965                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gcell passed configuration checks; building." >&5
21966 $as_echo "Component gcell passed configuration checks; building." >&6; }
21967             else
21968                 passed=no
21969                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gcell passed configuration checks; but not building." >&5
21970 $as_echo "Component gcell passed configuration checks; but not building." >&6; }
21971             fi
21972         fi
21973     fi
21974     if test $passed = no; then
21975         skipped_dirs="$skipped_dirs gcell"
21976         gcell_skipped=yes
21977     else
21978         gcell_skipped=no
21979     fi
21980
21981
21982
21983
21984
21985
21986
21987
21988
21989
21990
21991     passed=yes
21992     # Check whether --enable-gnuradio-core was given.
21993 if test "${enable_gnuradio_core+set}" = set; then :
21994   enableval=$enable_gnuradio_core;
21995 else
21996
21997         enable_gnuradio_core=$enable_all_components
21998         if test x$enable_all_components = xno; then
21999             passed=no
22000         fi
22001
22002 fi
22003
22004
22005
22006
22007
22008     if test x = x; then
22009         pc_comp_name="gnuradio-core"
22010     else
22011         pc_comp_name=""
22012     fi
22013
22014
22015 # Check whether --with-gnuradio-core was given.
22016 if test "${with_gnuradio_core+set}" = set; then :
22017   withval=$with_gnuradio_core; if test "x$withval" != "xyes"; then
22018                     with_gnuradio_core_val=$withval
22019                     with_gnuradio_core=yes
22020                  fi
22021 fi
22022
22023     if test x$with_gnuradio_core = xyes; then
22024         if test x$enable_gnuradio_core = xyes; then
22025             as_fn_error $? "Component gnuradio-core: Cannot use both --enable and --with" "$LINENO" 5
22026         else
22027
22028         s_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
22029
22030             l_PKG_CONFIG_PATH=$with_gnuradio_core_val
22031     if test "x$l_PKG_CONFIG_PATH" != "x"; then
22032         export PKG_CONFIG_PATH=$l_PKG_CONFIG_PATH
22033
22034                 if ! test -r ${l_PKG_CONFIG_PATH}/${pc_comp_name}.pc; then
22035             as_fn_error $? "Component gnuradio-core: PKGCONFIG cannot find info for ${pc_comp_name}, with provided PKG_CONFIG_PATH = [ $l_PKG_CONFIG_PATH ] ." "$LINENO" 5
22036         fi
22037     fi
22038
22039         if test -n "$PKG_CONFIG" && \
22040     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${pc_comp_name}\""; } >&5
22041   ($PKG_CONFIG --exists --print-errors "${pc_comp_name}") 2>&5
22042   ac_status=$?
22043   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22044   test $ac_status = 0; }; then
22045   passed=with; check1=yes
22046 else
22047
22048         check1=no
22049                                         if test "x$l_PKG_CONFIG_PATH" != "x"; then
22050             if test "x$s_PKG_CONFIG_PATH" != "x"; then
22051                 export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${s_PKG_CONFIG_PATH}
22052                 if test -n "$PKG_CONFIG" && \
22053     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${pc_comp_name}\""; } >&5
22054   ($PKG_CONFIG --exists --print-errors "${pc_comp_name}") 2>&5
22055   ac_status=$?
22056   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22057   test $ac_status = 0; }; then
22058   passed=with
22059 else
22060   passed=no
22061 fi
22062             fi
22063         fi
22064         if test $passed != with; then
22065             as_fn_error $? "Component gnuradio-core: PKGCONFIG cannot find info for ${pc_comp_name}, with PKG_CONFIG_PATH = [ $PKG_CONFIG_PATH ] ." "$LINENO" 5
22066         fi
22067                 s_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
22068
22069 fi
22070
22071                 gnuradio_core_INCLUDES=`$PKG_CONFIG --cflags-only-I ${pc_comp_name}`
22072     gnuradio_core_LA=`$PKG_CONFIG --libs ${pc_comp_name}`
22073     gnuradio_core_INCLUDEDIR=`$PKG_CONFIG --variable=includedir ${pc_comp_name}`
22074
22075     if test x$check1 = xyes; then
22076                         if test "x$s_PKG_CONFIG_PATH" != "x"; then
22077             export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${s_PKG_CONFIG_PATH}
22078         fi
22079     fi
22080
22081
22082                 gnuradio_core_SWIGDIRPATH="$gnuradio_core_INCLUDEDIR/swig"
22083         gnuradio_core_I="$gnuradio_core_SWIGDIRPATH/gnuradio.i"
22084         gnuradio_core_SWIG_INCLUDES="-I$gnuradio_core_SWIGDIRPATH"
22085         gnuradio_core_PYDIRPATH=$pythondir
22086
22087         fi
22088     fi
22089
22090
22091
22092
22093     if test $passed != no; then
22094         if test $passed = yes; then
22095                         if test x$gruel_skipped = xyes; then
22096                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gnuradio-core requires gruel, which is not being built or specified via pre-installed files." >&5
22097 $as_echo "Component gnuradio-core requires gruel, which is not being built or specified via pre-installed files." >&6; }
22098                 passed=no
22099             fi
22100         else
22101                         if test x$gruel_with = xno; then
22102                 as_fn_error $? "Component gnuradio-core requires gruel to be included as --with-gruel[=arg]" "$LINENO" 5
22103             fi
22104         fi
22105     fi
22106
22107
22108                     if test $passed = yes; then
22109
22110
22111
22112 acx_cblas_ok=no
22113
22114
22115 # Check whether --with-cblas was given.
22116 if test "${with_cblas+set}" = set; then :
22117   withval=$with_cblas;
22118 fi
22119
22120 case $with_cblas in
22121         yes | "") ;;
22122         no) acx_cblas_ok=disable ;;
22123         -* | */* | *.a | *.so | *.so.* | *.o) CBLAS_LIBS="$with_cblas" ;;
22124         *) CBLAS_LIBS="-l$with_cblas" ;;
22125 esac
22126
22127
22128 acx_cblas_save_LIBS="$LIBS"
22129 LIBS="$LIBS $FLIBS"
22130
22131 # First, check CBLAS_LIBS environment variable
22132 if test $acx_cblas_ok = no; then
22133 if test "x$CBLAS_LIBS" != x; then
22134         save_LIBS="$LIBS"; LIBS="$CBLAS_LIBS $LIBS"
22135         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_sgemm in $CBLAS_LIBS" >&5
22136 $as_echo_n "checking for cblas_sgemm in $CBLAS_LIBS... " >&6; }
22137         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22138 /* end confdefs.h.  */
22139
22140 /* Override any GCC internal prototype to avoid an error.
22141    Use char because int might match the return type of a GCC
22142    builtin and then its argument prototype would still apply.  */
22143 #ifdef __cplusplus
22144 extern "C"
22145 #endif
22146 char cblas_sgemm ();
22147 int
22148 main ()
22149 {
22150 return cblas_sgemm ();
22151   ;
22152   return 0;
22153 }
22154 _ACEOF
22155 if ac_fn_c_try_link "$LINENO"; then :
22156   acx_cblas_ok=yes
22157 else
22158   CBLAS_LIBS=""
22159 fi
22160 rm -f core conftest.err conftest.$ac_objext \
22161     conftest$ac_exeext conftest.$ac_ext
22162         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cblas_ok" >&5
22163 $as_echo "$acx_cblas_ok" >&6; }
22164         LIBS="$save_LIBS"
22165 fi
22166 fi
22167
22168 # CBLAS linked to by default?  (happens on some supercomputers)
22169 if test $acx_cblas_ok = no; then
22170         save_LIBS="$LIBS"; LIBS="$LIBS"
22171         ac_fn_c_check_func "$LINENO" "cblas_sgemm" "ac_cv_func_cblas_sgemm"
22172 if test "x$ac_cv_func_cblas_sgemm" = x""yes; then :
22173   acx_cblas_ok=yes
22174 fi
22175
22176         LIBS="$save_LIBS"
22177 fi
22178
22179 # CBLAS in ATLAS library? (http://math-atlas.sourceforge.net/)
22180 if test $acx_cblas_ok = no; then
22181         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATL_xerbla in -latlas" >&5
22182 $as_echo_n "checking for ATL_xerbla in -latlas... " >&6; }
22183 if test "${ac_cv_lib_atlas_ATL_xerbla+set}" = set; then :
22184   $as_echo_n "(cached) " >&6
22185 else
22186   ac_check_lib_save_LIBS=$LIBS
22187 LIBS="-latlas -latlas $LIBS"
22188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22189 /* end confdefs.h.  */
22190
22191 /* Override any GCC internal prototype to avoid an error.
22192    Use char because int might match the return type of a GCC
22193    builtin and then its argument prototype would still apply.  */
22194 #ifdef __cplusplus
22195 extern "C"
22196 #endif
22197 char ATL_xerbla ();
22198 int
22199 main ()
22200 {
22201 return ATL_xerbla ();
22202   ;
22203   return 0;
22204 }
22205 _ACEOF
22206 if ac_fn_c_try_link "$LINENO"; then :
22207   ac_cv_lib_atlas_ATL_xerbla=yes
22208 else
22209   ac_cv_lib_atlas_ATL_xerbla=no
22210 fi
22211 rm -f core conftest.err conftest.$ac_objext \
22212     conftest$ac_exeext conftest.$ac_ext
22213 LIBS=$ac_check_lib_save_LIBS
22214 fi
22215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atlas_ATL_xerbla" >&5
22216 $as_echo "$ac_cv_lib_atlas_ATL_xerbla" >&6; }
22217 if test "x$ac_cv_lib_atlas_ATL_xerbla" = x""yes; then :
22218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lcblas" >&5
22219 $as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
22220 if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then :
22221   $as_echo_n "(cached) " >&6
22222 else
22223   ac_check_lib_save_LIBS=$LIBS
22224 LIBS="-lcblas -latlas $LIBS"
22225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22226 /* end confdefs.h.  */
22227
22228 /* Override any GCC internal prototype to avoid an error.
22229    Use char because int might match the return type of a GCC
22230    builtin and then its argument prototype would still apply.  */
22231 #ifdef __cplusplus
22232 extern "C"
22233 #endif
22234 char cblas_dgemm ();
22235 int
22236 main ()
22237 {
22238 return cblas_dgemm ();
22239   ;
22240   return 0;
22241 }
22242 _ACEOF
22243 if ac_fn_c_try_link "$LINENO"; then :
22244   ac_cv_lib_cblas_cblas_dgemm=yes
22245 else
22246   ac_cv_lib_cblas_cblas_dgemm=no
22247 fi
22248 rm -f core conftest.err conftest.$ac_objext \
22249     conftest$ac_exeext conftest.$ac_ext
22250 LIBS=$ac_check_lib_save_LIBS
22251 fi
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
22253 $as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
22254 if test "x$ac_cv_lib_cblas_cblas_dgemm" = x""yes; then :
22255   acx_cblas_ok=yes
22256                  CBLAS_LIBS="-lcblas -latlas"
22257 fi
22258
22259 fi
22260
22261 fi
22262
22263 # CBLAS in ATLAS library in /usr/lib64/atlas (if not cross-compiling)
22264 if test $acx_cblas_ok = no && test "$cross_compiling" = no; then
22265         unset ac_cv_lib_atlas_ATL_xerbla
22266         unset ac_cv_lib_cblas_cblas_dgemm
22267         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATL_xerbla in -latlas" >&5
22268 $as_echo_n "checking for ATL_xerbla in -latlas... " >&6; }
22269 if test "${ac_cv_lib_atlas_ATL_xerbla+set}" = set; then :
22270   $as_echo_n "(cached) " >&6
22271 else
22272   ac_check_lib_save_LIBS=$LIBS
22273 LIBS="-latlas -L/usr/lib64/atlas -latlas $LIBS"
22274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22275 /* end confdefs.h.  */
22276
22277 /* Override any GCC internal prototype to avoid an error.
22278    Use char because int might match the return type of a GCC
22279    builtin and then its argument prototype would still apply.  */
22280 #ifdef __cplusplus
22281 extern "C"
22282 #endif
22283 char ATL_xerbla ();
22284 int
22285 main ()
22286 {
22287 return ATL_xerbla ();
22288   ;
22289   return 0;
22290 }
22291 _ACEOF
22292 if ac_fn_c_try_link "$LINENO"; then :
22293   ac_cv_lib_atlas_ATL_xerbla=yes
22294 else
22295   ac_cv_lib_atlas_ATL_xerbla=no
22296 fi
22297 rm -f core conftest.err conftest.$ac_objext \
22298     conftest$ac_exeext conftest.$ac_ext
22299 LIBS=$ac_check_lib_save_LIBS
22300 fi
22301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atlas_ATL_xerbla" >&5
22302 $as_echo "$ac_cv_lib_atlas_ATL_xerbla" >&6; }
22303 if test "x$ac_cv_lib_atlas_ATL_xerbla" = x""yes; then :
22304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lcblas" >&5
22305 $as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
22306 if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then :
22307   $as_echo_n "(cached) " >&6
22308 else
22309   ac_check_lib_save_LIBS=$LIBS
22310 LIBS="-lcblas -L/usr/lib64/atlas -latlas $LIBS"
22311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22312 /* end confdefs.h.  */
22313
22314 /* Override any GCC internal prototype to avoid an error.
22315    Use char because int might match the return type of a GCC
22316    builtin and then its argument prototype would still apply.  */
22317 #ifdef __cplusplus
22318 extern "C"
22319 #endif
22320 char cblas_dgemm ();
22321 int
22322 main ()
22323 {
22324 return cblas_dgemm ();
22325   ;
22326   return 0;
22327 }
22328 _ACEOF
22329 if ac_fn_c_try_link "$LINENO"; then :
22330   ac_cv_lib_cblas_cblas_dgemm=yes
22331 else
22332   ac_cv_lib_cblas_cblas_dgemm=no
22333 fi
22334 rm -f core conftest.err conftest.$ac_objext \
22335     conftest$ac_exeext conftest.$ac_ext
22336 LIBS=$ac_check_lib_save_LIBS
22337 fi
22338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
22339 $as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
22340 if test "x$ac_cv_lib_cblas_cblas_dgemm" = x""yes; then :
22341   acx_cblas_ok=yes
22342                  CBLAS_LIBS="-L/usr/lib64/atlas -lcblas -latlas"
22343 fi
22344
22345 fi
22346
22347 fi
22348
22349 # CBLAS in ATLAS library in /usr/lib/atlas (if not cross-compiling)
22350 if test $acx_cblas_ok = no && test "$cross_compiling" = no; then
22351         unset ac_cv_lib_atlas_ATL_xerbla
22352         unset ac_cv_lib_cblas_cblas_dgemm
22353         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATL_xerbla in -latlas" >&5
22354 $as_echo_n "checking for ATL_xerbla in -latlas... " >&6; }
22355 if test "${ac_cv_lib_atlas_ATL_xerbla+set}" = set; then :
22356   $as_echo_n "(cached) " >&6
22357 else
22358   ac_check_lib_save_LIBS=$LIBS
22359 LIBS="-latlas -L/usr/lib/atlas -latlas $LIBS"
22360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22361 /* end confdefs.h.  */
22362
22363 /* Override any GCC internal prototype to avoid an error.
22364    Use char because int might match the return type of a GCC
22365    builtin and then its argument prototype would still apply.  */
22366 #ifdef __cplusplus
22367 extern "C"
22368 #endif
22369 char ATL_xerbla ();
22370 int
22371 main ()
22372 {
22373 return ATL_xerbla ();
22374   ;
22375   return 0;
22376 }
22377 _ACEOF
22378 if ac_fn_c_try_link "$LINENO"; then :
22379   ac_cv_lib_atlas_ATL_xerbla=yes
22380 else
22381   ac_cv_lib_atlas_ATL_xerbla=no
22382 fi
22383 rm -f core conftest.err conftest.$ac_objext \
22384     conftest$ac_exeext conftest.$ac_ext
22385 LIBS=$ac_check_lib_save_LIBS
22386 fi
22387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atlas_ATL_xerbla" >&5
22388 $as_echo "$ac_cv_lib_atlas_ATL_xerbla" >&6; }
22389 if test "x$ac_cv_lib_atlas_ATL_xerbla" = x""yes; then :
22390   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lcblas" >&5
22391 $as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
22392 if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then :
22393   $as_echo_n "(cached) " >&6
22394 else
22395   ac_check_lib_save_LIBS=$LIBS
22396 LIBS="-lcblas -L/usr/lib/atlas -latlas $LIBS"
22397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22398 /* end confdefs.h.  */
22399
22400 /* Override any GCC internal prototype to avoid an error.
22401    Use char because int might match the return type of a GCC
22402    builtin and then its argument prototype would still apply.  */
22403 #ifdef __cplusplus
22404 extern "C"
22405 #endif
22406 char cblas_dgemm ();
22407 int
22408 main ()
22409 {
22410 return cblas_dgemm ();
22411   ;
22412   return 0;
22413 }
22414 _ACEOF
22415 if ac_fn_c_try_link "$LINENO"; then :
22416   ac_cv_lib_cblas_cblas_dgemm=yes
22417 else
22418   ac_cv_lib_cblas_cblas_dgemm=no
22419 fi
22420 rm -f core conftest.err conftest.$ac_objext \
22421     conftest$ac_exeext conftest.$ac_ext
22422 LIBS=$ac_check_lib_save_LIBS
22423 fi
22424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
22425 $as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
22426 if test "x$ac_cv_lib_cblas_cblas_dgemm" = x""yes; then :
22427   acx_cblas_ok=yes
22428                  CBLAS_LIBS="-L/usr/lib/atlas -lcblas -latlas"
22429 fi
22430
22431 fi
22432
22433 fi
22434
22435
22436 # CBLAS in PhiPACK libraries? (requires generic BLAS lib, too)
22437 if test $acx_cblas_ok = no; then
22438         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_sgemm in -lcblas" >&5
22439 $as_echo_n "checking for cblas_sgemm in -lcblas... " >&6; }
22440 if test "${ac_cv_lib_cblas_cblas_sgemm+set}" = set; then :
22441   $as_echo_n "(cached) " >&6
22442 else
22443   ac_check_lib_save_LIBS=$LIBS
22444 LIBS="-lcblas  $LIBS"
22445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22446 /* end confdefs.h.  */
22447
22448 /* Override any GCC internal prototype to avoid an error.
22449    Use char because int might match the return type of a GCC
22450    builtin and then its argument prototype would still apply.  */
22451 #ifdef __cplusplus
22452 extern "C"
22453 #endif
22454 char cblas_sgemm ();
22455 int
22456 main ()
22457 {
22458 return cblas_sgemm ();
22459   ;
22460   return 0;
22461 }
22462 _ACEOF
22463 if ac_fn_c_try_link "$LINENO"; then :
22464   ac_cv_lib_cblas_cblas_sgemm=yes
22465 else
22466   ac_cv_lib_cblas_cblas_sgemm=no
22467 fi
22468 rm -f core conftest.err conftest.$ac_objext \
22469     conftest$ac_exeext conftest.$ac_ext
22470 LIBS=$ac_check_lib_save_LIBS
22471 fi
22472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_sgemm" >&5
22473 $as_echo "$ac_cv_lib_cblas_cblas_sgemm" >&6; }
22474 if test "x$ac_cv_lib_cblas_cblas_sgemm" = x""yes; then :
22475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -ldgemm" >&5
22476 $as_echo_n "checking for cblas_dgemm in -ldgemm... " >&6; }
22477 if test "${ac_cv_lib_dgemm_cblas_dgemm+set}" = set; then :
22478   $as_echo_n "(cached) " >&6
22479 else
22480   ac_check_lib_save_LIBS=$LIBS
22481 LIBS="-ldgemm -lblas $LIBS"
22482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22483 /* end confdefs.h.  */
22484
22485 /* Override any GCC internal prototype to avoid an error.
22486    Use char because int might match the return type of a GCC
22487    builtin and then its argument prototype would still apply.  */
22488 #ifdef __cplusplus
22489 extern "C"
22490 #endif
22491 char cblas_dgemm ();
22492 int
22493 main ()
22494 {
22495 return cblas_dgemm ();
22496   ;
22497   return 0;
22498 }
22499 _ACEOF
22500 if ac_fn_c_try_link "$LINENO"; then :
22501   ac_cv_lib_dgemm_cblas_dgemm=yes
22502 else
22503   ac_cv_lib_dgemm_cblas_dgemm=no
22504 fi
22505 rm -f core conftest.err conftest.$ac_objext \
22506     conftest$ac_exeext conftest.$ac_ext
22507 LIBS=$ac_check_lib_save_LIBS
22508 fi
22509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgemm_cblas_dgemm" >&5
22510 $as_echo "$ac_cv_lib_dgemm_cblas_dgemm" >&6; }
22511 if test "x$ac_cv_lib_dgemm_cblas_dgemm" = x""yes; then :
22512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_sgemm in -lsgemm" >&5
22513 $as_echo_n "checking for cblas_sgemm in -lsgemm... " >&6; }
22514 if test "${ac_cv_lib_sgemm_cblas_sgemm+set}" = set; then :
22515   $as_echo_n "(cached) " >&6
22516 else
22517   ac_check_lib_save_LIBS=$LIBS
22518 LIBS="-lsgemm -lblas $LIBS"
22519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22520 /* end confdefs.h.  */
22521
22522 /* Override any GCC internal prototype to avoid an error.
22523    Use char because int might match the return type of a GCC
22524    builtin and then its argument prototype would still apply.  */
22525 #ifdef __cplusplus
22526 extern "C"
22527 #endif
22528 char cblas_sgemm ();
22529 int
22530 main ()
22531 {
22532 return cblas_sgemm ();
22533   ;
22534   return 0;
22535 }
22536 _ACEOF
22537 if ac_fn_c_try_link "$LINENO"; then :
22538   ac_cv_lib_sgemm_cblas_sgemm=yes
22539 else
22540   ac_cv_lib_sgemm_cblas_sgemm=no
22541 fi
22542 rm -f core conftest.err conftest.$ac_objext \
22543     conftest$ac_exeext conftest.$ac_ext
22544 LIBS=$ac_check_lib_save_LIBS
22545 fi
22546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sgemm_cblas_sgemm" >&5
22547 $as_echo "$ac_cv_lib_sgemm_cblas_sgemm" >&6; }
22548 if test "x$ac_cv_lib_sgemm_cblas_sgemm" = x""yes; then :
22549   acx_cblas_ok=yes; CBLAS_LIBS="-lsgemm -ldgemm -lblas"
22550 fi
22551
22552 fi
22553
22554 fi
22555
22556 fi
22557
22558 # BLAS in Intel MKL library?
22559 if test $acx_cblas_ok = no; then
22560         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_sgemm in -lmkl" >&5
22561 $as_echo_n "checking for cblas_sgemm in -lmkl... " >&6; }
22562 if test "${ac_cv_lib_mkl_cblas_sgemm+set}" = set; then :
22563   $as_echo_n "(cached) " >&6
22564 else
22565   ac_check_lib_save_LIBS=$LIBS
22566 LIBS="-lmkl  $LIBS"
22567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22568 /* end confdefs.h.  */
22569
22570 /* Override any GCC internal prototype to avoid an error.
22571    Use char because int might match the return type of a GCC
22572    builtin and then its argument prototype would still apply.  */
22573 #ifdef __cplusplus
22574 extern "C"
22575 #endif
22576 char cblas_sgemm ();
22577 int
22578 main ()
22579 {
22580 return cblas_sgemm ();
22581   ;
22582   return 0;
22583 }
22584 _ACEOF
22585 if ac_fn_c_try_link "$LINENO"; then :
22586   ac_cv_lib_mkl_cblas_sgemm=yes
22587 else
22588   ac_cv_lib_mkl_cblas_sgemm=no
22589 fi
22590 rm -f core conftest.err conftest.$ac_objext \
22591     conftest$ac_exeext conftest.$ac_ext
22592 LIBS=$ac_check_lib_save_LIBS
22593 fi
22594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mkl_cblas_sgemm" >&5
22595 $as_echo "$ac_cv_lib_mkl_cblas_sgemm" >&6; }
22596 if test "x$ac_cv_lib_mkl_cblas_sgemm" = x""yes; then :
22597   acx_cblas_ok=yes;CBLAS_LIBS="-lmkl"
22598 fi
22599
22600 fi
22601
22602 # CBLAS in Apple vecLib library?
22603 if test $acx_cblas_ok = no; then
22604         save_LIBS="$LIBS"; LIBS="-framework vecLib $LIBS"
22605         ac_fn_c_check_func "$LINENO" "cblas_sgemm" "ac_cv_func_cblas_sgemm"
22606 if test "x$ac_cv_func_cblas_sgemm" = x""yes; then :
22607   acx_cblas_ok=yes;CBLAS_LIBS="-framework vecLib"
22608 fi
22609
22610         LIBS="$save_LIBS"
22611 fi
22612
22613 # CBLAS in Alpha CXML library?
22614 if test $acx_cblas_ok = no; then
22615         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_sgemm in -lcxml" >&5
22616 $as_echo_n "checking for cblas_sgemm in -lcxml... " >&6; }
22617 if test "${ac_cv_lib_cxml_cblas_sgemm+set}" = set; then :
22618   $as_echo_n "(cached) " >&6
22619 else
22620   ac_check_lib_save_LIBS=$LIBS
22621 LIBS="-lcxml  $LIBS"
22622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22623 /* end confdefs.h.  */
22624
22625 /* Override any GCC internal prototype to avoid an error.
22626    Use char because int might match the return type of a GCC
22627    builtin and then its argument prototype would still apply.  */
22628 #ifdef __cplusplus
22629 extern "C"
22630 #endif
22631 char cblas_sgemm ();
22632 int
22633 main ()
22634 {
22635 return cblas_sgemm ();
22636   ;
22637   return 0;
22638 }
22639 _ACEOF
22640 if ac_fn_c_try_link "$LINENO"; then :
22641   ac_cv_lib_cxml_cblas_sgemm=yes
22642 else
22643   ac_cv_lib_cxml_cblas_sgemm=no
22644 fi
22645 rm -f core conftest.err conftest.$ac_objext \
22646     conftest$ac_exeext conftest.$ac_ext
22647 LIBS=$ac_check_lib_save_LIBS
22648 fi
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cxml_cblas_sgemm" >&5
22650 $as_echo "$ac_cv_lib_cxml_cblas_sgemm" >&6; }
22651 if test "x$ac_cv_lib_cxml_cblas_sgemm" = x""yes; then :
22652   acx_cblas_ok=yes;CBLAS_LIBS="-lcxml"
22653 fi
22654
22655 fi
22656
22657 # CBLAS in Alpha DXML library? (now called CXML, see above)
22658 if test $acx_cblas_ok = no; then
22659         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_sgemm in -ldxml" >&5
22660 $as_echo_n "checking for cblas_sgemm in -ldxml... " >&6; }
22661 if test "${ac_cv_lib_dxml_cblas_sgemm+set}" = set; then :
22662   $as_echo_n "(cached) " >&6
22663 else
22664   ac_check_lib_save_LIBS=$LIBS
22665 LIBS="-ldxml  $LIBS"
22666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22667 /* end confdefs.h.  */
22668
22669 /* Override any GCC internal prototype to avoid an error.
22670    Use char because int might match the return type of a GCC
22671    builtin and then its argument prototype would still apply.  */
22672 #ifdef __cplusplus
22673 extern "C"
22674 #endif
22675 char cblas_sgemm ();
22676 int
22677 main ()
22678 {
22679 return cblas_sgemm ();
22680   ;
22681   return 0;
22682 }
22683 _ACEOF
22684 if ac_fn_c_try_link "$LINENO"; then :
22685   ac_cv_lib_dxml_cblas_sgemm=yes
22686 else
22687   ac_cv_lib_dxml_cblas_sgemm=no
22688 fi
22689 rm -f core conftest.err conftest.$ac_objext \
22690     conftest$ac_exeext conftest.$ac_ext
22691 LIBS=$ac_check_lib_save_LIBS
22692 fi
22693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dxml_cblas_sgemm" >&5
22694 $as_echo "$ac_cv_lib_dxml_cblas_sgemm" >&6; }
22695 if test "x$ac_cv_lib_dxml_cblas_sgemm" = x""yes; then :
22696   acx_cblas_ok=yes;CBLAS_LIBS="-ldxml"
22697 fi
22698
22699 fi
22700
22701 # CBLAS in Sun Performance library?
22702 if test $acx_cblas_ok = no; then
22703         if test "x$GCC" != xyes; then # only works with Sun CC
22704                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosp in -lsunmath" >&5
22705 $as_echo_n "checking for acosp in -lsunmath... " >&6; }
22706 if test "${ac_cv_lib_sunmath_acosp+set}" = set; then :
22707   $as_echo_n "(cached) " >&6
22708 else
22709   ac_check_lib_save_LIBS=$LIBS
22710 LIBS="-lsunmath  $LIBS"
22711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22712 /* end confdefs.h.  */
22713
22714 /* Override any GCC internal prototype to avoid an error.
22715    Use char because int might match the return type of a GCC
22716    builtin and then its argument prototype would still apply.  */
22717 #ifdef __cplusplus
22718 extern "C"
22719 #endif
22720 char acosp ();
22721 int
22722 main ()
22723 {
22724 return acosp ();
22725   ;
22726   return 0;
22727 }
22728 _ACEOF
22729 if ac_fn_c_try_link "$LINENO"; then :
22730   ac_cv_lib_sunmath_acosp=yes
22731 else
22732   ac_cv_lib_sunmath_acosp=no
22733 fi
22734 rm -f core conftest.err conftest.$ac_objext \
22735     conftest$ac_exeext conftest.$ac_ext
22736 LIBS=$ac_check_lib_save_LIBS
22737 fi
22738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sunmath_acosp" >&5
22739 $as_echo "$ac_cv_lib_sunmath_acosp" >&6; }
22740 if test "x$ac_cv_lib_sunmath_acosp" = x""yes; then :
22741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_sgemm in -lsunperf" >&5
22742 $as_echo_n "checking for cblas_sgemm in -lsunperf... " >&6; }
22743 if test "${ac_cv_lib_sunperf_cblas_sgemm+set}" = set; then :
22744   $as_echo_n "(cached) " >&6
22745 else
22746   ac_check_lib_save_LIBS=$LIBS
22747 LIBS="-lsunperf -lsunmath $LIBS"
22748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22749 /* end confdefs.h.  */
22750
22751 /* Override any GCC internal prototype to avoid an error.
22752    Use char because int might match the return type of a GCC
22753    builtin and then its argument prototype would still apply.  */
22754 #ifdef __cplusplus
22755 extern "C"
22756 #endif
22757 char cblas_sgemm ();
22758 int
22759 main ()
22760 {
22761 return cblas_sgemm ();
22762   ;
22763   return 0;
22764 }
22765 _ACEOF
22766 if ac_fn_c_try_link "$LINENO"; then :
22767   ac_cv_lib_sunperf_cblas_sgemm=yes
22768 else
22769   ac_cv_lib_sunperf_cblas_sgemm=no
22770 fi
22771 rm -f core conftest.err conftest.$ac_objext \
22772     conftest$ac_exeext conftest.$ac_ext
22773 LIBS=$ac_check_lib_save_LIBS
22774 fi
22775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sunperf_cblas_sgemm" >&5
22776 $as_echo "$ac_cv_lib_sunperf_cblas_sgemm" >&6; }
22777 if test "x$ac_cv_lib_sunperf_cblas_sgemm" = x""yes; then :
22778   CBLAS_LIBS="-xlic_lib=sunperf -lsunmath"
22779                                  acx_cblas_ok=yes
22780 fi
22781
22782 fi
22783
22784         fi
22785 fi
22786
22787 # CBLAS in SCSL library?  (SGI/Cray Scientific Library)
22788 if test $acx_cblas_ok = no; then
22789         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_sgemm in -lscs" >&5
22790 $as_echo_n "checking for cblas_sgemm in -lscs... " >&6; }
22791 if test "${ac_cv_lib_scs_cblas_sgemm+set}" = set; then :
22792   $as_echo_n "(cached) " >&6
22793 else
22794   ac_check_lib_save_LIBS=$LIBS
22795 LIBS="-lscs  $LIBS"
22796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22797 /* end confdefs.h.  */
22798
22799 /* Override any GCC internal prototype to avoid an error.
22800    Use char because int might match the return type of a GCC
22801    builtin and then its argument prototype would still apply.  */
22802 #ifdef __cplusplus
22803 extern "C"
22804 #endif
22805 char cblas_sgemm ();
22806 int
22807 main ()
22808 {
22809 return cblas_sgemm ();
22810   ;
22811   return 0;
22812 }
22813 _ACEOF
22814 if ac_fn_c_try_link "$LINENO"; then :
22815   ac_cv_lib_scs_cblas_sgemm=yes
22816 else
22817   ac_cv_lib_scs_cblas_sgemm=no
22818 fi
22819 rm -f core conftest.err conftest.$ac_objext \
22820     conftest$ac_exeext conftest.$ac_ext
22821 LIBS=$ac_check_lib_save_LIBS
22822 fi
22823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_scs_cblas_sgemm" >&5
22824 $as_echo "$ac_cv_lib_scs_cblas_sgemm" >&6; }
22825 if test "x$ac_cv_lib_scs_cblas_sgemm" = x""yes; then :
22826   acx_cblas_ok=yes; CBLAS_LIBS="-lscs"
22827 fi
22828
22829 fi
22830
22831 # CBLAS in SGIMATH library?
22832 if test $acx_cblas_ok = no; then
22833         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_sgemm in -lcomplib.sgimath" >&5
22834 $as_echo_n "checking for cblas_sgemm in -lcomplib.sgimath... " >&6; }
22835 if test "${ac_cv_lib_complib_sgimath_cblas_sgemm+set}" = set; then :
22836   $as_echo_n "(cached) " >&6
22837 else
22838   ac_check_lib_save_LIBS=$LIBS
22839 LIBS="-lcomplib.sgimath  $LIBS"
22840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22841 /* end confdefs.h.  */
22842
22843 /* Override any GCC internal prototype to avoid an error.
22844    Use char because int might match the return type of a GCC
22845    builtin and then its argument prototype would still apply.  */
22846 #ifdef __cplusplus
22847 extern "C"
22848 #endif
22849 char cblas_sgemm ();
22850 int
22851 main ()
22852 {
22853 return cblas_sgemm ();
22854   ;
22855   return 0;
22856 }
22857 _ACEOF
22858 if ac_fn_c_try_link "$LINENO"; then :
22859   ac_cv_lib_complib_sgimath_cblas_sgemm=yes
22860 else
22861   ac_cv_lib_complib_sgimath_cblas_sgemm=no
22862 fi
22863 rm -f core conftest.err conftest.$ac_objext \
22864     conftest$ac_exeext conftest.$ac_ext
22865 LIBS=$ac_check_lib_save_LIBS
22866 fi
22867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_complib_sgimath_cblas_sgemm" >&5
22868 $as_echo "$ac_cv_lib_complib_sgimath_cblas_sgemm" >&6; }
22869 if test "x$ac_cv_lib_complib_sgimath_cblas_sgemm" = x""yes; then :
22870   acx_cblas_ok=yes; CBLAS_LIBS="-lcomplib.sgimath"
22871 fi
22872
22873 fi
22874
22875 # CBLAS in IBM ESSL library? (requires generic CBLAS lib, too)
22876 if test $acx_cblas_ok = no; then
22877         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_sgemm in -lcblas" >&5
22878 $as_echo_n "checking for cblas_sgemm in -lcblas... " >&6; }
22879 if test "${ac_cv_lib_cblas_cblas_sgemm+set}" = set; then :
22880   $as_echo_n "(cached) " >&6
22881 else
22882   ac_check_lib_save_LIBS=$LIBS
22883 LIBS="-lcblas  $LIBS"
22884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22885 /* end confdefs.h.  */
22886
22887 /* Override any GCC internal prototype to avoid an error.
22888    Use char because int might match the return type of a GCC
22889    builtin and then its argument prototype would still apply.  */
22890 #ifdef __cplusplus
22891 extern "C"
22892 #endif
22893 char cblas_sgemm ();
22894 int
22895 main ()
22896 {
22897 return cblas_sgemm ();
22898   ;
22899   return 0;
22900 }
22901 _ACEOF
22902 if ac_fn_c_try_link "$LINENO"; then :
22903   ac_cv_lib_cblas_cblas_sgemm=yes
22904 else
22905   ac_cv_lib_cblas_cblas_sgemm=no
22906 fi
22907 rm -f core conftest.err conftest.$ac_objext \
22908     conftest$ac_exeext conftest.$ac_ext
22909 LIBS=$ac_check_lib_save_LIBS
22910 fi
22911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_sgemm" >&5
22912 $as_echo "$ac_cv_lib_cblas_cblas_sgemm" >&6; }
22913 if test "x$ac_cv_lib_cblas_cblas_sgemm" = x""yes; then :
22914   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_sgemm in -lessl" >&5
22915 $as_echo_n "checking for cblas_sgemm in -lessl... " >&6; }
22916 if test "${ac_cv_lib_essl_cblas_sgemm+set}" = set; then :
22917   $as_echo_n "(cached) " >&6
22918 else
22919   ac_check_lib_save_LIBS=$LIBS
22920 LIBS="-lessl -lblas $FLIBS $LIBS"
22921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22922 /* end confdefs.h.  */
22923
22924 /* Override any GCC internal prototype to avoid an error.
22925    Use char because int might match the return type of a GCC
22926    builtin and then its argument prototype would still apply.  */
22927 #ifdef __cplusplus
22928 extern "C"
22929 #endif
22930 char cblas_sgemm ();
22931 int
22932 main ()
22933 {
22934 return cblas_sgemm ();
22935   ;
22936   return 0;
22937 }
22938 _ACEOF
22939 if ac_fn_c_try_link "$LINENO"; then :
22940   ac_cv_lib_essl_cblas_sgemm=yes
22941 else
22942   ac_cv_lib_essl_cblas_sgemm=no
22943 fi
22944 rm -f core conftest.err conftest.$ac_objext \
22945     conftest$ac_exeext conftest.$ac_ext
22946 LIBS=$ac_check_lib_save_LIBS
22947 fi
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_essl_cblas_sgemm" >&5
22949 $as_echo "$ac_cv_lib_essl_cblas_sgemm" >&6; }
22950 if test "x$ac_cv_lib_essl_cblas_sgemm" = x""yes; then :
22951   acx_cblas_ok=yes; CBLAS_LIBS="-lessl -lblas"
22952 fi
22953
22954 fi
22955
22956 fi
22957
22958 # Generic CBLAS library?
22959 if test $acx_cblas_ok = no; then
22960         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_sgemm in -lcblas" >&5
22961 $as_echo_n "checking for cblas_sgemm in -lcblas... " >&6; }
22962 if test "${ac_cv_lib_cblas_cblas_sgemm+set}" = set; then :
22963   $as_echo_n "(cached) " >&6
22964 else
22965   ac_check_lib_save_LIBS=$LIBS
22966 LIBS="-lcblas  $LIBS"
22967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22968 /* end confdefs.h.  */
22969
22970 /* Override any GCC internal prototype to avoid an error.
22971    Use char because int might match the return type of a GCC
22972    builtin and then its argument prototype would still apply.  */
22973 #ifdef __cplusplus
22974 extern "C"
22975 #endif
22976 char cblas_sgemm ();
22977 int
22978 main ()
22979 {
22980 return cblas_sgemm ();
22981   ;
22982   return 0;
22983 }
22984 _ACEOF
22985 if ac_fn_c_try_link "$LINENO"; then :
22986   ac_cv_lib_cblas_cblas_sgemm=yes
22987 else
22988   ac_cv_lib_cblas_cblas_sgemm=no
22989 fi
22990 rm -f core conftest.err conftest.$ac_objext \
22991     conftest$ac_exeext conftest.$ac_ext
22992 LIBS=$ac_check_lib_save_LIBS
22993 fi
22994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_sgemm" >&5
22995 $as_echo "$ac_cv_lib_cblas_cblas_sgemm" >&6; }
22996 if test "x$ac_cv_lib_cblas_cblas_sgemm" = x""yes; then :
22997   acx_cblas_ok=yes; CBLAS_LIBS="-lcblas"
22998 fi
22999
23000 fi
23001
23002 # Generic BLAS library?
23003 if test $acx_cblas_ok = no; then
23004         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_sgemm in -lblas" >&5
23005 $as_echo_n "checking for cblas_sgemm in -lblas... " >&6; }
23006 if test "${ac_cv_lib_blas_cblas_sgemm+set}" = set; then :
23007   $as_echo_n "(cached) " >&6
23008 else
23009   ac_check_lib_save_LIBS=$LIBS
23010 LIBS="-lblas  $LIBS"
23011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23012 /* end confdefs.h.  */
23013
23014 /* Override any GCC internal prototype to avoid an error.
23015    Use char because int might match the return type of a GCC
23016    builtin and then its argument prototype would still apply.  */
23017 #ifdef __cplusplus
23018 extern "C"
23019 #endif
23020 char cblas_sgemm ();
23021 int
23022 main ()
23023 {
23024 return cblas_sgemm ();
23025   ;
23026   return 0;
23027 }
23028 _ACEOF
23029 if ac_fn_c_try_link "$LINENO"; then :
23030   ac_cv_lib_blas_cblas_sgemm=yes
23031 else
23032   ac_cv_lib_blas_cblas_sgemm=no
23033 fi
23034 rm -f core conftest.err conftest.$ac_objext \
23035     conftest$ac_exeext conftest.$ac_ext
23036 LIBS=$ac_check_lib_save_LIBS
23037 fi
23038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blas_cblas_sgemm" >&5
23039 $as_echo "$ac_cv_lib_blas_cblas_sgemm" >&6; }
23040 if test "x$ac_cv_lib_blas_cblas_sgemm" = x""yes; then :
23041   acx_cblas_ok=yes; CBLAS_LIBS="-lblas"
23042 fi
23043
23044 fi
23045
23046 # GSL generic CBLAS library?
23047 if test $acx_cblas_ok = no; then
23048         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_sgemm in -lgslcblas" >&5
23049 $as_echo_n "checking for cblas_sgemm in -lgslcblas... " >&6; }
23050 if test "${ac_cv_lib_gslcblas_cblas_sgemm+set}" = set; then :
23051   $as_echo_n "(cached) " >&6
23052 else
23053   ac_check_lib_save_LIBS=$LIBS
23054 LIBS="-lgslcblas  $LIBS"
23055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23056 /* end confdefs.h.  */
23057
23058 /* Override any GCC internal prototype to avoid an error.
23059    Use char because int might match the return type of a GCC
23060    builtin and then its argument prototype would still apply.  */
23061 #ifdef __cplusplus
23062 extern "C"
23063 #endif
23064 char cblas_sgemm ();
23065 int
23066 main ()
23067 {
23068 return cblas_sgemm ();
23069   ;
23070   return 0;
23071 }
23072 _ACEOF
23073 if ac_fn_c_try_link "$LINENO"; then :
23074   ac_cv_lib_gslcblas_cblas_sgemm=yes
23075 else
23076   ac_cv_lib_gslcblas_cblas_sgemm=no
23077 fi
23078 rm -f core conftest.err conftest.$ac_objext \
23079     conftest$ac_exeext conftest.$ac_ext
23080 LIBS=$ac_check_lib_save_LIBS
23081 fi
23082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gslcblas_cblas_sgemm" >&5
23083 $as_echo "$ac_cv_lib_gslcblas_cblas_sgemm" >&6; }
23084 if test "x$ac_cv_lib_gslcblas_cblas_sgemm" = x""yes; then :
23085   acx_cblas_ok=yes; CBLAS_LIBS="-lgslcblas"
23086 fi
23087
23088 fi
23089
23090
23091
23092 LIBS="$acx_cblas_save_LIBS"
23093
23094 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23095 if test x"$acx_cblas_ok" = xyes; then
23096
23097 $as_echo "#define HAVE_CBLAS 1" >>confdefs.h
23098
23099         :
23100 else
23101         acx_cblas_ok=no
23102
23103 fi
23104
23105
23106
23107
23108 pkg_failed=no
23109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSL" >&5
23110 $as_echo_n "checking for GSL... " >&6; }
23111
23112 if test -n "$PKG_CONFIG"; then
23113     if test -n "$GSL_CFLAGS"; then
23114         pkg_cv_GSL_CFLAGS="$GSL_CFLAGS"
23115     else
23116         if test -n "$PKG_CONFIG" && \
23117     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gsl >= 1.10\""; } >&5
23118   ($PKG_CONFIG --exists --print-errors "gsl >= 1.10") 2>&5
23119   ac_status=$?
23120   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23121   test $ac_status = 0; }; then
23122   pkg_cv_GSL_CFLAGS=`$PKG_CONFIG --cflags "gsl >= 1.10" 2>/dev/null`
23123 else
23124   pkg_failed=yes
23125 fi
23126     fi
23127 else
23128         pkg_failed=untried
23129 fi
23130
23131 if test x$cross_compiling = xyes
23132 then
23133     if test -n "$PKG_CONFIG"; then
23134     if test -n "$GSL_LIBS"; then
23135         pkg_cv_GSL_LIBS="$GSL_LIBS"
23136     else
23137         if test -n "$PKG_CONFIG" && \
23138     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gsl >= 1.10\""; } >&5
23139   ($PKG_CONFIG --exists --print-errors "gsl >= 1.10") 2>&5
23140   ac_status=$?
23141   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23142   test $ac_status = 0; }; then
23143   pkg_cv_GSL_LIBS=`$PKG_CONFIG --libs --static "gsl >= 1.10" 2>/dev/null`
23144 else
23145   pkg_failed=yes
23146 fi
23147     fi
23148 else
23149         pkg_failed=untried
23150 fi
23151     _pkg_tmp=
23152   for flag in $pkg_cv_GSL_LIBS; do
23153     case $flag in
23154     (-L/lib* | -L/usr/lib* )       ;; # ignore
23155     (*) _pkg_tmp="$_pkg_tmp $flag" ;;
23156     esac
23157   done
23158   pkg_cv_GSL_LIBS="$_pkg_tmp"
23159 else
23160   if test -n "$PKG_CONFIG"; then
23161     if test -n "$GSL_LIBS"; then
23162         pkg_cv_GSL_LIBS="$GSL_LIBS"
23163     else
23164         if test -n "$PKG_CONFIG" && \
23165     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gsl >= 1.10\""; } >&5
23166   ($PKG_CONFIG --exists --print-errors "gsl >= 1.10") 2>&5
23167   ac_status=$?
23168   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23169   test $ac_status = 0; }; then
23170   pkg_cv_GSL_LIBS=`$PKG_CONFIG --libs --static "gsl >= 1.10" 2>/dev/null`
23171 else
23172   pkg_failed=yes
23173 fi
23174     fi
23175 else
23176         pkg_failed=untried
23177 fi
23178 fi
23179
23180 if test -n "$PKG_CONFIG"; then
23181     if test -n "$GSL_INCLUDEDIR"; then
23182         pkg_cv_GSL_INCLUDEDIR="$GSL_INCLUDEDIR"
23183     else
23184         if test -n "$PKG_CONFIG" && \
23185     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gsl >= 1.10\""; } >&5
23186   ($PKG_CONFIG --exists --print-errors "gsl >= 1.10") 2>&5
23187   ac_status=$?
23188   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23189   test $ac_status = 0; }; then
23190   pkg_cv_GSL_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "gsl >= 1.10" 2>/dev/null`
23191 else
23192   pkg_failed=yes
23193 fi
23194     fi
23195 else
23196         pkg_failed=untried
23197 fi
23198
23199
23200
23201
23202 if test $pkg_failed = yes; then
23203
23204 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23205         _pkg_short_errors_supported=yes
23206 else
23207         _pkg_short_errors_supported=no
23208 fi
23209         if test $_pkg_short_errors_supported = yes; then
23210                 GSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gsl >= 1.10"`
23211         else
23212                 GSL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gsl >= 1.10"`
23213         fi
23214         # Put the nasty error message in config.log where it belongs
23215         echo "$GSL_PKG_ERRORS" >&5
23216
23217         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23218 $as_echo "no" >&6; }
23219                             passed=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gnuradio-core requires package gsl >= 1.10, not found." >&5
23220 $as_echo "gnuradio-core requires package gsl >= 1.10, not found." >&6; }
23221 elif test $pkg_failed = untried; then
23222                     passed=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gnuradio-core requires package gsl >= 1.10, not found." >&5
23223 $as_echo "gnuradio-core requires package gsl >= 1.10, not found." >&6; }
23224 else
23225         GSL_CFLAGS=$pkg_cv_GSL_CFLAGS
23226         GSL_LIBS=$pkg_cv_GSL_LIBS
23227         GSL_INCLUDEDIR=$pkg_cv_GSL_INCLUDEDIR
23228
23229         GSL_CPPFLAGS=""
23230         for flag in $GSL_CFLAGS; do
23231           case $flag in
23232           -I* | -D* | -U*) GSL_CPPFLAGS="$GSL_CPPFLAGS $flag" ;;
23233           esac
23234         done
23235         pkg_cv_GSL_CPPFLAGS=$GSL_CPPFLAGS
23236
23237
23238         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23239 $as_echo "yes" >&6; }
23240         :
23241 fi
23242     fi
23243
23244     if test $passed != with; then
23245                 gnuradio_core_INCLUDES="\
23246 -I\${abs_top_srcdir}/gnuradio-core/src/lib/runtime \
23247 -I\${abs_top_srcdir}/gnuradio-core/src/lib/general \
23248 -I\${abs_top_builddir}/gnuradio-core/src/lib/general \
23249 -I\${abs_top_srcdir}/gnuradio-core/src/lib/gengen \
23250 -I\${abs_top_builddir}/gnuradio-core/src/lib/gengen \
23251 -I\${abs_top_srcdir}/gnuradio-core/src/lib/filter \
23252 -I\${abs_top_builddir}/gnuradio-core/src/lib/filter \
23253 -I\${abs_top_srcdir}/gnuradio-core/src/lib/missing \
23254 -I\${abs_top_srcdir}/gnuradio-core/src/lib/reed-solomon \
23255 -I\${abs_top_srcdir}/gnuradio-core/src/lib/viterbi \
23256 -I\${abs_top_srcdir}/gnuradio-core/src/lib/io \
23257 -I\${abs_top_srcdir}/gnuradio-core/src/lib/g72x \
23258 -I\${abs_top_srcdir}/gnuradio-core/src/lib/swig \
23259 -I\${abs_top_srcdir}/gnuradio-core/src/lib/hier \
23260 -I\${abs_top_builddir}/gnuradio-core/src/lib/swig \
23261 \$(FFTW3F_CFLAGS) \
23262 \$(GSL_CFLAGS)"
23263         gnuradio_core_LA="\${abs_top_builddir}/gnuradio-core/src/lib/libgnuradio-core.la"
23264                 gnuradio_core_LIBDIRPATH="\${abs_top_builddir}/gnuradio-core/src/lib:\${abs_top_builddir}/gnuradio-core/src/lib/.libs"
23265         gnuradio_core_SWIGDIRPATH="\${abs_top_builddir}/gnuradio-core/src/lib/swig:\${abs_top_builddir}/gnuradio-core/src/lib/swig/.libs:\${abs_top_srcdir}/gnuradio-core/src/lib/swig"
23266         gnuradio_core_PYDIRPATH="\${abs_top_srcdir}/gnuradio-core/src/python"
23267     fi
23268
23269
23270
23271
23272
23273     ac_config_files="$ac_config_files gnuradio-core/Makefile gnuradio-core/gnuradio-core.pc gnuradio-core/src/Makefile gnuradio-core/src/gen_interpolator_taps/Makefile gnuradio-core/src/lib/Makefile gnuradio-core/src/lib/filter/Makefile gnuradio-core/src/lib/g72x/Makefile gnuradio-core/src/lib/general/Makefile gnuradio-core/src/lib/general/gr_constants.cc gnuradio-core/src/lib/gengen/Makefile gnuradio-core/src/lib/io/Makefile gnuradio-core/src/lib/missing/Makefile gnuradio-core/src/lib/reed-solomon/Makefile gnuradio-core/src/lib/viterbi/Makefile gnuradio-core/src/lib/runtime/Makefile gnuradio-core/src/lib/hier/Makefile gnuradio-core/src/lib/swig/Makefile gnuradio-core/src/python/Makefile gnuradio-core/src/python/bin/Makefile gnuradio-core/src/python/gnuradio/Makefile gnuradio-core/src/python/gnuradio/blks2/Makefile gnuradio-core/src/python/gnuradio/blks2impl/Makefile gnuradio-core/src/python/gnuradio/gr/Makefile gnuradio-core/src/python/gnuradio/gr/run_tests gnuradio-core/src/python/gnuradio/gru/Makefile gnuradio-core/src/python/gnuradio/gruimpl/Makefile gnuradio-core/src/python/gnuradio/vocoder/Makefile gnuradio-core/src/tests/Makefile gnuradio-core/src/utils/Makefile"
23274
23275
23276
23277
23278     gnuradio_core_with=no
23279     if test $passed = no; then
23280         if test x$enable_gnuradio_core = xyes; then
23281             as_fn_error $? "Component gnuradio-core has errors; stopping." "$LINENO" 5
23282         else
23283             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gnuradio-core." >&5
23284 $as_echo "Not building component gnuradio-core." >&6; }
23285         fi
23286     else
23287         if test $passed = with; then
23288             with_dirs="$with_dirs gnuradio-core"
23289
23290     if test "x${gnuradio_core_INCLUDES}" != "x"; then
23291         if test "x$with_INCLUDES" = "x"; then
23292             with_INCLUDES="${gnuradio_core_INCLUDES}"
23293         else
23294             with_INCLUDES="${gnuradio_core_INCLUDES}"" ""$with_INCLUDES"
23295         fi
23296         gnuradio_core_INCLUDES=
23297     fi
23298
23299
23300     if test "x${gnuradio_core_SWIG_INCLUDES}" != "x"; then
23301         if test "x$with_SWIG_INCLUDES" = "x"; then
23302             with_SWIG_INCLUDES="${gnuradio_core_SWIG_INCLUDES}"
23303         else
23304             with_SWIG_INCLUDES="${gnuradio_core_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
23305         fi
23306         gnuradio_core_SWIG_INCLUDES=
23307     fi
23308
23309
23310     if test "x${gnuradio_core_PYDIRPATH}" != "x"; then
23311         if test "x$with_PYDIRPATH" = "x"; then
23312             with_PYDIRPATH="${gnuradio_core_PYDIRPATH}"
23313         else
23314             with_PYDIRPATH="${gnuradio_core_PYDIRPATH}"":""$with_PYDIRPATH"
23315         fi
23316         gnuradio_core_PYDIRPATH=
23317     fi
23318
23319
23320     if test "x${gnuradio_core_SWIGDIRPATH}" != "x"; then
23321         if test "x$with_SWIGDIRPATH" = "x"; then
23322             with_SWIGDIRPATH="${gnuradio_core_SWIGDIRPATH}"
23323         else
23324             with_SWIGDIRPATH="${gnuradio_core_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
23325         fi
23326         gnuradio_core_SWIGDIRPATH=
23327     fi
23328
23329
23330     if test "x${gnuradio_core_LIBDIRPATH}" != "x"; then
23331         if test "x$with_LIBDIRPATH" = "x"; then
23332             with_LIBDIRPATH="${gnuradio_core_LIBDIRPATH}"
23333         else
23334             with_LIBDIRPATH="${gnuradio_core_LIBDIRPATH}"":""$with_LIBDIRPATH"
23335         fi
23336         gnuradio_core_LIBDIRPATH=
23337     fi
23338
23339             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gnuradio-core will be included from a pre-installed library and includes." >&5
23340 $as_echo "Component gnuradio-core will be included from a pre-installed library and includes." >&6; }
23341             gnuradio_core_with=yes
23342         else
23343             gnuradio_core_LDFLAG=
23344             if test x$enable_gnuradio_core != xno; then
23345                         ac_config_commands="$ac_config_commands run_tests_core"
23346
23347
23348                 build_dirs="$build_dirs gnuradio-core"
23349                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gnuradio-core passed configuration checks; building." >&5
23350 $as_echo "Component gnuradio-core passed configuration checks; building." >&6; }
23351             else
23352                 passed=no
23353                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gnuradio-core passed configuration checks; but not building." >&5
23354 $as_echo "Component gnuradio-core passed configuration checks; but not building." >&6; }
23355             fi
23356         fi
23357     fi
23358     if test $passed = no; then
23359         skipped_dirs="$skipped_dirs gnuradio-core"
23360         gnuradio_core_skipped=yes
23361     else
23362         gnuradio_core_skipped=no
23363     fi
23364
23365
23366
23367
23368
23369
23370
23371
23372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
23373 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
23374 if test "${ac_cv_header_stat_broken+set}" = set; then :
23375   $as_echo_n "(cached) " >&6
23376 else
23377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23378 /* end confdefs.h.  */
23379 #include <sys/types.h>
23380 #include <sys/stat.h>
23381
23382 #if defined S_ISBLK && defined S_IFDIR
23383 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
23384 #endif
23385
23386 #if defined S_ISBLK && defined S_IFCHR
23387 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
23388 #endif
23389
23390 #if defined S_ISLNK && defined S_IFREG
23391 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
23392 #endif
23393
23394 #if defined S_ISSOCK && defined S_IFREG
23395 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
23396 #endif
23397
23398 _ACEOF
23399 if ac_fn_c_try_compile "$LINENO"; then :
23400   ac_cv_header_stat_broken=no
23401 else
23402   ac_cv_header_stat_broken=yes
23403 fi
23404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23405 fi
23406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
23407 $as_echo "$ac_cv_header_stat_broken" >&6; }
23408 if test $ac_cv_header_stat_broken = yes; then
23409
23410 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
23411
23412 fi
23413
23414
23415       for ac_header in fcntl.h
23416 do :
23417   ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
23418 if test "x$ac_cv_header_fcntl_h" = x""yes; then :
23419   cat >>confdefs.h <<_ACEOF
23420 #define HAVE_FCNTL_H 1
23421 _ACEOF
23422
23423 fi
23424
23425 done
23426
23427
23428
23429       for ac_header in sys/time.h
23430 do :
23431   ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
23432 if test "x$ac_cv_header_sys_time_h" = x""yes; then :
23433   cat >>confdefs.h <<_ACEOF
23434 #define HAVE_SYS_TIME_H 1
23435 _ACEOF
23436
23437 fi
23438
23439 done
23440
23441
23442
23443       for ac_header in unistd.h
23444 do :
23445   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
23446 if test "x$ac_cv_header_unistd_h" = x""yes; then :
23447   cat >>confdefs.h <<_ACEOF
23448 #define HAVE_UNISTD_H 1
23449 _ACEOF
23450
23451 fi
23452
23453 done
23454
23455
23456
23457       ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
23458 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
23459   ac_have_decl=1
23460 else
23461   ac_have_decl=0
23462 fi
23463
23464 cat >>confdefs.h <<_ACEOF
23465 #define HAVE_DECL_GETENV $ac_have_decl
23466 _ACEOF
23467
23468
23469
23470
23471
23472     passed=yes
23473     # Check whether --enable-usrp was given.
23474 if test "${enable_usrp+set}" = set; then :
23475   enableval=$enable_usrp;
23476 else
23477
23478         enable_usrp=$enable_all_components
23479         if test x$enable_all_components = xno; then
23480             passed=no
23481         fi
23482
23483 fi
23484
23485
23486
23487
23488
23489     if test x = x; then
23490         pc_comp_name="usrp"
23491     else
23492         pc_comp_name=""
23493     fi
23494
23495
23496 # Check whether --with-usrp was given.
23497 if test "${with_usrp+set}" = set; then :
23498   withval=$with_usrp; if test "x$withval" != "xyes"; then
23499                     with_usrp_val=$withval
23500                     with_usrp=yes
23501                  fi
23502 fi
23503
23504     if test x$with_usrp = xyes; then
23505         if test x$enable_usrp = xyes; then
23506             as_fn_error $? "Component usrp: Cannot use both --enable and --with" "$LINENO" 5
23507         else
23508
23509         s_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
23510
23511             l_PKG_CONFIG_PATH=$with_usrp_val
23512     if test "x$l_PKG_CONFIG_PATH" != "x"; then
23513         export PKG_CONFIG_PATH=$l_PKG_CONFIG_PATH
23514
23515                 if ! test -r ${l_PKG_CONFIG_PATH}/${pc_comp_name}.pc; then
23516             as_fn_error $? "Component usrp: PKGCONFIG cannot find info for ${pc_comp_name}, with provided PKG_CONFIG_PATH = [ $l_PKG_CONFIG_PATH ] ." "$LINENO" 5
23517         fi
23518     fi
23519
23520         if test -n "$PKG_CONFIG" && \
23521     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${pc_comp_name}\""; } >&5
23522   ($PKG_CONFIG --exists --print-errors "${pc_comp_name}") 2>&5
23523   ac_status=$?
23524   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23525   test $ac_status = 0; }; then
23526   passed=with; check1=yes
23527 else
23528
23529         check1=no
23530                                         if test "x$l_PKG_CONFIG_PATH" != "x"; then
23531             if test "x$s_PKG_CONFIG_PATH" != "x"; then
23532                 export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${s_PKG_CONFIG_PATH}
23533                 if test -n "$PKG_CONFIG" && \
23534     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${pc_comp_name}\""; } >&5
23535   ($PKG_CONFIG --exists --print-errors "${pc_comp_name}") 2>&5
23536   ac_status=$?
23537   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23538   test $ac_status = 0; }; then
23539   passed=with
23540 else
23541   passed=no
23542 fi
23543             fi
23544         fi
23545         if test $passed != with; then
23546             as_fn_error $? "Component usrp: PKGCONFIG cannot find info for ${pc_comp_name}, with PKG_CONFIG_PATH = [ $PKG_CONFIG_PATH ] ." "$LINENO" 5
23547         fi
23548                 s_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
23549
23550 fi
23551
23552                 usrp_INCLUDES=`$PKG_CONFIG --cflags-only-I ${pc_comp_name}`
23553     usrp_LA=`$PKG_CONFIG --libs ${pc_comp_name}`
23554     usrp_INCLUDEDIR=`$PKG_CONFIG --variable=includedir ${pc_comp_name}`
23555
23556     if test x$check1 = xyes; then
23557                         if test "x$s_PKG_CONFIG_PATH" != "x"; then
23558             export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${s_PKG_CONFIG_PATH}
23559         fi
23560     fi
23561
23562             :
23563         fi
23564     fi
23565
23566
23567
23568
23569     if test $passed != no; then
23570         if test $passed = yes; then
23571                         if test x$gruel_skipped = xyes; then
23572                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component usrp requires gruel, which is not being built or specified via pre-installed files." >&5
23573 $as_echo "Component usrp requires gruel, which is not being built or specified via pre-installed files." >&6; }
23574                 passed=no
23575             fi
23576         else
23577                         if test x$gruel_with = xno; then
23578                 as_fn_error $? "Component usrp requires gruel to be included as --with-gruel[=arg]" "$LINENO" 5
23579             fi
23580         fi
23581     fi
23582
23583
23584
23585   req_libusb1=no
23586   USE_LIBUSB1=0
23587
23588 # Check whether --with-fusb-tech was given.
23589 if test "${with_fusb_tech+set}" = set; then :
23590   withval=$with_fusb_tech; cf_with_fusb_tech="$withval"
23591 else
23592   cf_with_fusb_tech="$host_os"
23593 fi
23594
23595   if test x${enable_usrp} != xno; then
23596       case "$cf_with_fusb_tech" in
23597         libusb1*)
23598           FUSB_TECH=libusb1
23599           req_libusb1=yes
23600           USE_LIBUSB1=1
23601           ;;
23602         linux*)
23603           ac_fn_c_check_header_mongrel "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "$ac_includes_default"
23604 if test "x$ac_cv_header_linux_usbdevice_fs_h" = x""yes; then :
23605   x_have_usbdevice_fs_h=yes
23606 else
23607   x_have_usbdevice_fs_h=no
23608 fi
23609
23610
23611           if test x${x_have_usbdevice_fs_h} = xyes; then
23612               FUSB_TECH=linux
23613           else
23614               FUSB_TECH=generic
23615           fi
23616           ;;
23617         darwin*)
23618           FUSB_TECH=darwin
23619           ;;
23620         cygwin*|win*|mingw*)
23621           FUSB_TECH=win32
23622           ;;
23623         *bsd*)
23624           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RA/WB" >&5
23625 $as_echo_n "checking for RA/WB... " >&6; }
23626           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23627 /* end confdefs.h.  */
23628 #include <dev/usb/usb.h>
23629 int
23630 main ()
23631 {
23632 struct usb_bulk_ra_wb_opt o;
23633                                                ioctl(0, USB_SET_BULK_RA, &o);
23634   ;
23635   return 0;
23636 }
23637 _ACEOF
23638 if ac_fn_c_try_compile "$LINENO"; then :
23639   FUSB_TECH=ra_wb
23640 else
23641   FUSB_TECH=generic
23642 fi
23643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23644           ;;
23645         *)
23646           FUSB_TECH=generic
23647           ;;
23648       esac
23649
23650       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fast usb technique to use" >&5
23651 $as_echo_n "checking for fast usb technique to use... " >&6; }
23652       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FUSB_TECH" >&5
23653 $as_echo "$FUSB_TECH" >&6; }
23654
23655   fi
23656
23657    if test x$FUSB_TECH = xdarwin; then
23658   FUSB_TECH_darwin_TRUE=
23659   FUSB_TECH_darwin_FALSE='#'
23660 else
23661   FUSB_TECH_darwin_TRUE='#'
23662   FUSB_TECH_darwin_FALSE=
23663 fi
23664
23665    if test x$FUSB_TECH = xwin32; then
23666   FUSB_TECH_win32_TRUE=
23667   FUSB_TECH_win32_FALSE='#'
23668 else
23669   FUSB_TECH_win32_TRUE='#'
23670   FUSB_TECH_win32_FALSE=
23671 fi
23672
23673    if test x$FUSB_TECH = xgeneric; then
23674   FUSB_TECH_generic_TRUE=
23675   FUSB_TECH_generic_FALSE='#'
23676 else
23677   FUSB_TECH_generic_TRUE='#'
23678   FUSB_TECH_generic_FALSE=
23679 fi
23680
23681    if test x$FUSB_TECH = xlinux; then
23682   FUSB_TECH_linux_TRUE=
23683   FUSB_TECH_linux_FALSE='#'
23684 else
23685   FUSB_TECH_linux_TRUE='#'
23686   FUSB_TECH_linux_FALSE=
23687 fi
23688
23689    if test x$FUSB_TECH = xlibusb1; then
23690   FUSB_TECH_libusb1_TRUE=
23691   FUSB_TECH_libusb1_FALSE='#'
23692 else
23693   FUSB_TECH_libusb1_TRUE='#'
23694   FUSB_TECH_libusb1_FALSE=
23695 fi
23696
23697    if test x$FUSB_TECH = xra_wb; then
23698   FUSB_TECH_ra_wb_TRUE=
23699   FUSB_TECH_ra_wb_FALSE='#'
23700 else
23701   FUSB_TECH_ra_wb_TRUE='#'
23702   FUSB_TECH_ra_wb_FALSE=
23703 fi
23704
23705
23706
23707   ac_config_files="$ac_config_files usrp/host/include/usrp/libusb_types.h"
23708
23709
23710
23711                     if test $passed = yes; then
23712                           ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
23713 if test "x$ac_cv_func_mkstemp" = x""yes; then :
23714   $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
23715
23716 else
23717   case " $LIBOBJS " in
23718   *" mkstemp.$ac_objext "* ) ;;
23719   *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
23720  ;;
23721 esac
23722
23723 fi
23724
23725
23726   if test $ac_cv_func_mkstemp = no; then
23727     utils_cv_func_mkstemp_limitations=yes
23728   else
23729     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mkstemp limitations" >&5
23730 $as_echo_n "checking for mkstemp limitations... " >&6; }
23731 if test "${utils_cv_func_mkstemp_limitations+set}" = set; then :
23732   $as_echo_n "(cached) " >&6
23733 else
23734
23735         if test "$cross_compiling" = yes; then :
23736   utils_cv_func_mkstemp_limitations=yes
23737
23738 else
23739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23740 /* end confdefs.h.  */
23741
23742 #         include <stdlib.h>
23743           int main ()
23744           {
23745             int i;
23746             for (i = 0; i < 70; i++)
23747               {
23748                 char template[] = "conftestXXXXXX";
23749                 int fd = mkstemp (template);
23750                 if (fd == -1)
23751                   exit (1);
23752                 close (fd);
23753               }
23754             exit (0);
23755           }
23756
23757 _ACEOF
23758 if ac_fn_c_try_run "$LINENO"; then :
23759   utils_cv_func_mkstemp_limitations=no
23760 else
23761   utils_cv_func_mkstemp_limitations=yes
23762 fi
23763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23764   conftest.$ac_objext conftest.beam conftest.$ac_ext
23765 fi
23766
23767
23768
23769 fi
23770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $utils_cv_func_mkstemp_limitations" >&5
23771 $as_echo "$utils_cv_func_mkstemp_limitations" >&6; }
23772   fi
23773
23774   if test $utils_cv_func_mkstemp_limitations = yes; then
23775     case " $LIBOBJS " in
23776   *" mkstemp.$ac_objext "* ) ;;
23777   *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
23778  ;;
23779 esac
23780
23781     case " $LIBOBJS " in
23782   *" tempname.$ac_objext "* ) ;;
23783   *) LIBOBJS="$LIBOBJS tempname.$ac_objext"
23784  ;;
23785 esac
23786
23787
23788 $as_echo "#define mkstemp rpl_mkstemp" >>confdefs.h
23789
23790
23791
23792
23793
23794
23795
23796   :
23797
23798
23799
23800
23801
23802
23803
23804
23805
23806
23807
23808   for ac_header in stdint.h
23809 do :
23810   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
23811 if test "x$ac_cv_header_stdint_h" = x""yes; then :
23812   cat >>confdefs.h <<_ACEOF
23813 #define HAVE_STDINT_H 1
23814 _ACEOF
23815
23816 fi
23817
23818 done
23819
23820   for ac_func in __secure_getenv gettimeofday lstat
23821 do :
23822   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23823 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23824 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23825   cat >>confdefs.h <<_ACEOF
23826 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23827 _ACEOF
23828
23829 fi
23830 done
23831
23832
23833   :
23834
23835
23836
23837
23838
23839   # AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])
23840
23841     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir accepts only one arg" >&5
23842 $as_echo_n "checking whether mkdir accepts only one arg... " >&6; }
23843   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23844 /* end confdefs.h.  */
23845 #include <sys/types.h>
23846        #include <sys/stat.h>
23847        #include <fcntl.h>
23848 int
23849 main ()
23850 {
23851
23852        mkdir("")
23853
23854   ;
23855   return 0;
23856 }
23857 _ACEOF
23858 if ac_fn_c_try_compile "$LINENO"; then :
23859    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23860 $as_echo "yes" >&6; }
23861
23862 $as_echo "#define MKDIR_TAKES_ONE_ARG /**/" >>confdefs.h
23863
23864 else
23865    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23866 $as_echo "no" >&6; }
23867
23868 fi
23869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23870
23871   fi
23872
23873
23874                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23875 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23876 if test "${ac_cv_c_bigendian+set}" = set; then :
23877   $as_echo_n "(cached) " >&6
23878 else
23879   ac_cv_c_bigendian=unknown
23880     # See if we're dealing with a universal compiler.
23881     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23882 /* end confdefs.h.  */
23883 #ifndef __APPLE_CC__
23884                not a universal capable compiler
23885              #endif
23886              typedef int dummy;
23887
23888 _ACEOF
23889 if ac_fn_c_try_compile "$LINENO"; then :
23890
23891         # Check for potential -arch flags.  It is not universal unless
23892         # there are at least two -arch flags with different values.
23893         ac_arch=
23894         ac_prev=
23895         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23896          if test -n "$ac_prev"; then
23897            case $ac_word in
23898              i?86 | x86_64 | ppc | ppc64)
23899                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23900                  ac_arch=$ac_word
23901                else
23902                  ac_cv_c_bigendian=universal
23903                  break
23904                fi
23905                ;;
23906            esac
23907            ac_prev=
23908          elif test "x$ac_word" = "x-arch"; then
23909            ac_prev=arch
23910          fi
23911        done
23912 fi
23913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23914     if test $ac_cv_c_bigendian = unknown; then
23915       # See if sys/param.h defines the BYTE_ORDER macro.
23916       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23917 /* end confdefs.h.  */
23918 #include <sys/types.h>
23919              #include <sys/param.h>
23920
23921 int
23922 main ()
23923 {
23924 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23925                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23926                      && LITTLE_ENDIAN)
23927               bogus endian macros
23928              #endif
23929
23930   ;
23931   return 0;
23932 }
23933 _ACEOF
23934 if ac_fn_c_try_compile "$LINENO"; then :
23935   # It does; now see whether it defined to BIG_ENDIAN or not.
23936          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23937 /* end confdefs.h.  */
23938 #include <sys/types.h>
23939                 #include <sys/param.h>
23940
23941 int
23942 main ()
23943 {
23944 #if BYTE_ORDER != BIG_ENDIAN
23945                  not big endian
23946                 #endif
23947
23948   ;
23949   return 0;
23950 }
23951 _ACEOF
23952 if ac_fn_c_try_compile "$LINENO"; then :
23953   ac_cv_c_bigendian=yes
23954 else
23955   ac_cv_c_bigendian=no
23956 fi
23957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23958 fi
23959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23960     fi
23961     if test $ac_cv_c_bigendian = unknown; then
23962       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23963       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23964 /* end confdefs.h.  */
23965 #include <limits.h>
23966
23967 int
23968 main ()
23969 {
23970 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23971               bogus endian macros
23972              #endif
23973
23974   ;
23975   return 0;
23976 }
23977 _ACEOF
23978 if ac_fn_c_try_compile "$LINENO"; then :
23979   # It does; now see whether it defined to _BIG_ENDIAN or not.
23980          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23981 /* end confdefs.h.  */
23982 #include <limits.h>
23983
23984 int
23985 main ()
23986 {
23987 #ifndef _BIG_ENDIAN
23988                  not big endian
23989                 #endif
23990
23991   ;
23992   return 0;
23993 }
23994 _ACEOF
23995 if ac_fn_c_try_compile "$LINENO"; then :
23996   ac_cv_c_bigendian=yes
23997 else
23998   ac_cv_c_bigendian=no
23999 fi
24000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24001 fi
24002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24003     fi
24004     if test $ac_cv_c_bigendian = unknown; then
24005       # Compile a test program.
24006       if test "$cross_compiling" = yes; then :
24007   # Try to guess by grepping values from an object file.
24008          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24009 /* end confdefs.h.  */
24010 short int ascii_mm[] =
24011                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24012                 short int ascii_ii[] =
24013                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24014                 int use_ascii (int i) {
24015                   return ascii_mm[i] + ascii_ii[i];
24016                 }
24017                 short int ebcdic_ii[] =
24018                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24019                 short int ebcdic_mm[] =
24020                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24021                 int use_ebcdic (int i) {
24022                   return ebcdic_mm[i] + ebcdic_ii[i];
24023                 }
24024                 extern int foo;
24025
24026 int
24027 main ()
24028 {
24029 return use_ascii (foo) == use_ebcdic (foo);
24030   ;
24031   return 0;
24032 }
24033 _ACEOF
24034 if ac_fn_c_try_compile "$LINENO"; then :
24035   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
24036               ac_cv_c_bigendian=yes
24037             fi
24038             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24039               if test "$ac_cv_c_bigendian" = unknown; then
24040                 ac_cv_c_bigendian=no
24041               else
24042                 # finding both strings is unlikely to happen, but who knows?
24043                 ac_cv_c_bigendian=unknown
24044               fi
24045             fi
24046 fi
24047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24048 else
24049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24050 /* end confdefs.h.  */
24051 $ac_includes_default
24052 int
24053 main ()
24054 {
24055
24056              /* Are we little or big endian?  From Harbison&Steele.  */
24057              union
24058              {
24059                long int l;
24060                char c[sizeof (long int)];
24061              } u;
24062              u.l = 1;
24063              return u.c[sizeof (long int) - 1] == 1;
24064
24065   ;
24066   return 0;
24067 }
24068 _ACEOF
24069 if ac_fn_c_try_run "$LINENO"; then :
24070   ac_cv_c_bigendian=no
24071 else
24072   ac_cv_c_bigendian=yes
24073 fi
24074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24075   conftest.$ac_objext conftest.beam conftest.$ac_ext
24076 fi
24077
24078     fi
24079 fi
24080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
24081 $as_echo "$ac_cv_c_bigendian" >&6; }
24082  case $ac_cv_c_bigendian in #(
24083    yes)
24084      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
24085 ;; #(
24086    no)
24087       ;; #(
24088    universal)
24089
24090 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
24091
24092      ;; #(
24093    *)
24094      as_fn_error $? "unknown endianness
24095  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5  ;;
24096  esac
24097
24098         for ac_header in byteswap.h linux/compiler.h
24099 do :
24100   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24101 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24102 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24103   cat >>confdefs.h <<_ACEOF
24104 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24105 _ACEOF
24106
24107 fi
24108
24109 done
24110
24111         for ac_func in getrusage sched_setscheduler pthread_setschedparam
24112 do :
24113   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24114 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24115 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24116   cat >>confdefs.h <<_ACEOF
24117 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24118 _ACEOF
24119
24120 fi
24121 done
24122
24123         for ac_func in sigaction snprintf
24124 do :
24125   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24126 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24127 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24128   cat >>confdefs.h <<_ACEOF
24129 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24130 _ACEOF
24131
24132 fi
24133 done
24134
24135
24136
24137
24138   libusbok=no
24139   have_libusb1=no
24140   LIBUSB_PKG_CONFIG_NAME=''
24141   if test x$req_libusb1 = xyes; then
24142
24143
24144
24145 pkg_failed=no
24146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for USB" >&5
24147 $as_echo_n "checking for USB... " >&6; }
24148
24149 if test -n "$PKG_CONFIG"; then
24150     if test -n "$USB_CFLAGS"; then
24151         pkg_cv_USB_CFLAGS="$USB_CFLAGS"
24152     else
24153         if test -n "$PKG_CONFIG" && \
24154     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
24155   ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
24156   ac_status=$?
24157   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24158   test $ac_status = 0; }; then
24159   pkg_cv_USB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
24160 else
24161   pkg_failed=yes
24162 fi
24163     fi
24164 else
24165         pkg_failed=untried
24166 fi
24167
24168 if test x$cross_compiling = xyes
24169 then
24170     if test -n "$PKG_CONFIG"; then
24171     if test -n "$USB_LIBS"; then
24172         pkg_cv_USB_LIBS="$USB_LIBS"
24173     else
24174         if test -n "$PKG_CONFIG" && \
24175     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
24176   ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
24177   ac_status=$?
24178   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24179   test $ac_status = 0; }; then
24180   pkg_cv_USB_LIBS=`$PKG_CONFIG --libs --static "libusb-1.0" 2>/dev/null`
24181 else
24182   pkg_failed=yes
24183 fi
24184     fi
24185 else
24186         pkg_failed=untried
24187 fi
24188     _pkg_tmp=
24189   for flag in $pkg_cv_USB_LIBS; do
24190     case $flag in
24191     (-L/lib* | -L/usr/lib* )       ;; # ignore
24192     (*) _pkg_tmp="$_pkg_tmp $flag" ;;
24193     esac
24194   done
24195   pkg_cv_USB_LIBS="$_pkg_tmp"
24196 else
24197   if test -n "$PKG_CONFIG"; then
24198     if test -n "$USB_LIBS"; then
24199         pkg_cv_USB_LIBS="$USB_LIBS"
24200     else
24201         if test -n "$PKG_CONFIG" && \
24202     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
24203   ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
24204   ac_status=$?
24205   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24206   test $ac_status = 0; }; then
24207   pkg_cv_USB_LIBS=`$PKG_CONFIG --libs --static "libusb-1.0" 2>/dev/null`
24208 else
24209   pkg_failed=yes
24210 fi
24211     fi
24212 else
24213         pkg_failed=untried
24214 fi
24215 fi
24216
24217 if test -n "$PKG_CONFIG"; then
24218     if test -n "$USB_INCLUDEDIR"; then
24219         pkg_cv_USB_INCLUDEDIR="$USB_INCLUDEDIR"
24220     else
24221         if test -n "$PKG_CONFIG" && \
24222     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
24223   ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
24224   ac_status=$?
24225   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24226   test $ac_status = 0; }; then
24227   pkg_cv_USB_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "libusb-1.0" 2>/dev/null`
24228 else
24229   pkg_failed=yes
24230 fi
24231     fi
24232 else
24233         pkg_failed=untried
24234 fi
24235
24236
24237
24238
24239 if test $pkg_failed = yes; then
24240
24241 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24242         _pkg_short_errors_supported=yes
24243 else
24244         _pkg_short_errors_supported=no
24245 fi
24246         if test $_pkg_short_errors_supported = yes; then
24247                 USB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libusb-1.0"`
24248         else
24249                 USB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libusb-1.0"`
24250         fi
24251         # Put the nasty error message in config.log where it belongs
24252         echo "$USB_PKG_ERRORS" >&5
24253
24254         as_fn_error $? "Package requirements (libusb-1.0) were not met:
24255
24256 $USB_PKG_ERRORS
24257
24258 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24259 installed software in a non-standard prefix.
24260
24261 Alternatively, you may set the environment variables USB_CFLAGS
24262 and USB_LIBS to avoid the need to call pkg-config.
24263 See the pkg-config man page for more details.
24264 " "$LINENO" 5
24265 elif test $pkg_failed = untried; then
24266         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24268 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
24269 is in your PATH or set the PKG_CONFIG environment variable to the full
24270 path to pkg-config.
24271
24272 Alternatively, you may set the environment variables USB_CFLAGS
24273 and USB_LIBS to avoid the need to call pkg-config.
24274 See the pkg-config man page for more details.
24275
24276 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24277 See \`config.log' for more details" "$LINENO" 5 ; }
24278 else
24279         USB_CFLAGS=$pkg_cv_USB_CFLAGS
24280         USB_LIBS=$pkg_cv_USB_LIBS
24281         USB_INCLUDEDIR=$pkg_cv_USB_INCLUDEDIR
24282
24283         USB_CPPFLAGS=""
24284         for flag in $USB_CFLAGS; do
24285           case $flag in
24286           -I* | -D* | -U*) USB_CPPFLAGS="$USB_CPPFLAGS $flag" ;;
24287           esac
24288         done
24289         pkg_cv_USB_CPPFLAGS=$USB_CPPFLAGS
24290
24291
24292         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24293 $as_echo "yes" >&6; }
24294
24295       libusbok=yes
24296       have_libusb1=yes
24297       usb_header='libusb-1.0/libusb.h'
24298       usb_lib_func='libusb_bulk_transfer'
24299       usb_lib_name='usb-1.0'
24300       LIBUSB_PKG_CONFIG_NAME='libusb-1.0'
24301
24302 fi
24303   else
24304
24305
24306
24307
24308 pkg_failed=no
24309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for USB" >&5
24310 $as_echo_n "checking for USB... " >&6; }
24311
24312 if test -n "$PKG_CONFIG"; then
24313     if test -n "$USB_CFLAGS"; then
24314         pkg_cv_USB_CFLAGS="$USB_CFLAGS"
24315     else
24316         if test -n "$PKG_CONFIG" && \
24317     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb\""; } >&5
24318   ($PKG_CONFIG --exists --print-errors "libusb") 2>&5
24319   ac_status=$?
24320   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24321   test $ac_status = 0; }; then
24322   pkg_cv_USB_CFLAGS=`$PKG_CONFIG --cflags "libusb" 2>/dev/null`
24323 else
24324   pkg_failed=yes
24325 fi
24326     fi
24327 else
24328         pkg_failed=untried
24329 fi
24330
24331 if test x$cross_compiling = xyes
24332 then
24333     if test -n "$PKG_CONFIG"; then
24334     if test -n "$USB_LIBS"; then
24335         pkg_cv_USB_LIBS="$USB_LIBS"
24336     else
24337         if test -n "$PKG_CONFIG" && \
24338     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb\""; } >&5
24339   ($PKG_CONFIG --exists --print-errors "libusb") 2>&5
24340   ac_status=$?
24341   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24342   test $ac_status = 0; }; then
24343   pkg_cv_USB_LIBS=`$PKG_CONFIG --libs --static "libusb" 2>/dev/null`
24344 else
24345   pkg_failed=yes
24346 fi
24347     fi
24348 else
24349         pkg_failed=untried
24350 fi
24351     _pkg_tmp=
24352   for flag in $pkg_cv_USB_LIBS; do
24353     case $flag in
24354     (-L/lib* | -L/usr/lib* )       ;; # ignore
24355     (*) _pkg_tmp="$_pkg_tmp $flag" ;;
24356     esac
24357   done
24358   pkg_cv_USB_LIBS="$_pkg_tmp"
24359 else
24360   if test -n "$PKG_CONFIG"; then
24361     if test -n "$USB_LIBS"; then
24362         pkg_cv_USB_LIBS="$USB_LIBS"
24363     else
24364         if test -n "$PKG_CONFIG" && \
24365     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb\""; } >&5
24366   ($PKG_CONFIG --exists --print-errors "libusb") 2>&5
24367   ac_status=$?
24368   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24369   test $ac_status = 0; }; then
24370   pkg_cv_USB_LIBS=`$PKG_CONFIG --libs --static "libusb" 2>/dev/null`
24371 else
24372   pkg_failed=yes
24373 fi
24374     fi
24375 else
24376         pkg_failed=untried
24377 fi
24378 fi
24379
24380 if test -n "$PKG_CONFIG"; then
24381     if test -n "$USB_INCLUDEDIR"; then
24382         pkg_cv_USB_INCLUDEDIR="$USB_INCLUDEDIR"
24383     else
24384         if test -n "$PKG_CONFIG" && \
24385     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb\""; } >&5
24386   ($PKG_CONFIG --exists --print-errors "libusb") 2>&5
24387   ac_status=$?
24388   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24389   test $ac_status = 0; }; then
24390   pkg_cv_USB_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "libusb" 2>/dev/null`
24391 else
24392   pkg_failed=yes
24393 fi
24394     fi
24395 else
24396         pkg_failed=untried
24397 fi
24398
24399
24400
24401
24402 if test $pkg_failed = yes; then
24403
24404 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24405         _pkg_short_errors_supported=yes
24406 else
24407         _pkg_short_errors_supported=no
24408 fi
24409         if test $_pkg_short_errors_supported = yes; then
24410                 USB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libusb"`
24411         else
24412                 USB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libusb"`
24413         fi
24414         # Put the nasty error message in config.log where it belongs
24415         echo "$USB_PKG_ERRORS" >&5
24416
24417         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24418 $as_echo "no" >&6; }
24419                 libusbok=no
24420 elif test $pkg_failed = untried; then
24421         libusbok=no
24422 else
24423         USB_CFLAGS=$pkg_cv_USB_CFLAGS
24424         USB_LIBS=$pkg_cv_USB_LIBS
24425         USB_INCLUDEDIR=$pkg_cv_USB_INCLUDEDIR
24426
24427         USB_CPPFLAGS=""
24428         for flag in $USB_CFLAGS; do
24429           case $flag in
24430           -I* | -D* | -U*) USB_CPPFLAGS="$USB_CPPFLAGS $flag" ;;
24431           esac
24432         done
24433         pkg_cv_USB_CPPFLAGS=$USB_CPPFLAGS
24434
24435
24436         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24437 $as_echo "yes" >&6; }
24438
24439       libusbok=yes
24440       LIBUSB_PKG_CONFIG_NAME='libusb'
24441
24442 fi
24443         if test $libusbok = no; then
24444
24445
24446
24447 pkg_failed=no
24448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for USB" >&5
24449 $as_echo_n "checking for USB... " >&6; }
24450
24451 if test -n "$PKG_CONFIG"; then
24452     if test -n "$USB_CFLAGS"; then
24453         pkg_cv_USB_CFLAGS="$USB_CFLAGS"
24454     else
24455         if test -n "$PKG_CONFIG" && \
24456     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-legacy\""; } >&5
24457   ($PKG_CONFIG --exists --print-errors "libusb-legacy") 2>&5
24458   ac_status=$?
24459   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24460   test $ac_status = 0; }; then
24461   pkg_cv_USB_CFLAGS=`$PKG_CONFIG --cflags "libusb-legacy" 2>/dev/null`
24462 else
24463   pkg_failed=yes
24464 fi
24465     fi
24466 else
24467         pkg_failed=untried
24468 fi
24469
24470 if test x$cross_compiling = xyes
24471 then
24472     if test -n "$PKG_CONFIG"; then
24473     if test -n "$USB_LIBS"; then
24474         pkg_cv_USB_LIBS="$USB_LIBS"
24475     else
24476         if test -n "$PKG_CONFIG" && \
24477     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-legacy\""; } >&5
24478   ($PKG_CONFIG --exists --print-errors "libusb-legacy") 2>&5
24479   ac_status=$?
24480   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24481   test $ac_status = 0; }; then
24482   pkg_cv_USB_LIBS=`$PKG_CONFIG --libs --static "libusb-legacy" 2>/dev/null`
24483 else
24484   pkg_failed=yes
24485 fi
24486     fi
24487 else
24488         pkg_failed=untried
24489 fi
24490     _pkg_tmp=
24491   for flag in $pkg_cv_USB_LIBS; do
24492     case $flag in
24493     (-L/lib* | -L/usr/lib* )       ;; # ignore
24494     (*) _pkg_tmp="$_pkg_tmp $flag" ;;
24495     esac
24496   done
24497   pkg_cv_USB_LIBS="$_pkg_tmp"
24498 else
24499   if test -n "$PKG_CONFIG"; then
24500     if test -n "$USB_LIBS"; then
24501         pkg_cv_USB_LIBS="$USB_LIBS"
24502     else
24503         if test -n "$PKG_CONFIG" && \
24504     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-legacy\""; } >&5
24505   ($PKG_CONFIG --exists --print-errors "libusb-legacy") 2>&5
24506   ac_status=$?
24507   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24508   test $ac_status = 0; }; then
24509   pkg_cv_USB_LIBS=`$PKG_CONFIG --libs --static "libusb-legacy" 2>/dev/null`
24510 else
24511   pkg_failed=yes
24512 fi
24513     fi
24514 else
24515         pkg_failed=untried
24516 fi
24517 fi
24518
24519 if test -n "$PKG_CONFIG"; then
24520     if test -n "$USB_INCLUDEDIR"; then
24521         pkg_cv_USB_INCLUDEDIR="$USB_INCLUDEDIR"
24522     else
24523         if test -n "$PKG_CONFIG" && \
24524     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-legacy\""; } >&5
24525   ($PKG_CONFIG --exists --print-errors "libusb-legacy") 2>&5
24526   ac_status=$?
24527   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24528   test $ac_status = 0; }; then
24529   pkg_cv_USB_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "libusb-legacy" 2>/dev/null`
24530 else
24531   pkg_failed=yes
24532 fi
24533     fi
24534 else
24535         pkg_failed=untried
24536 fi
24537
24538
24539
24540
24541 if test $pkg_failed = yes; then
24542
24543 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24544         _pkg_short_errors_supported=yes
24545 else
24546         _pkg_short_errors_supported=no
24547 fi
24548         if test $_pkg_short_errors_supported = yes; then
24549                 USB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libusb-legacy"`
24550         else
24551                 USB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libusb-legacy"`
24552         fi
24553         # Put the nasty error message in config.log where it belongs
24554         echo "$USB_PKG_ERRORS" >&5
24555
24556         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24557 $as_echo "no" >&6; }
24558                 libusbok=no
24559 elif test $pkg_failed = untried; then
24560         libusbok=no
24561 else
24562         USB_CFLAGS=$pkg_cv_USB_CFLAGS
24563         USB_LIBS=$pkg_cv_USB_LIBS
24564         USB_INCLUDEDIR=$pkg_cv_USB_INCLUDEDIR
24565
24566         USB_CPPFLAGS=""
24567         for flag in $USB_CFLAGS; do
24568           case $flag in
24569           -I* | -D* | -U*) USB_CPPFLAGS="$USB_CPPFLAGS $flag" ;;
24570           esac
24571         done
24572         pkg_cv_USB_CPPFLAGS=$USB_CPPFLAGS
24573
24574
24575         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24576 $as_echo "yes" >&6; }
24577
24578         libusbok=yes
24579         LIBUSB_PKG_CONFIG_NAME='libusb-legacy'
24580
24581 fi
24582     fi
24583         usb_header='usb.h'
24584     usb_lib_func='usb_bulk_write'
24585     usb_lib_name='usb'
24586   fi
24587
24588   if test x$req_libusb1 != xyes || test $have_libusb1 = yes; then
24589             libusbok=yes
24590
24591
24592
24593     ac_ext=c
24594 ac_cpp='$CPP $CPPFLAGS'
24595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24598
24599     save_CPPFLAGS="$CPPFLAGS"
24600     if test x$USB_INCLUDEDIR != x; then
24601       USB_INCLUDES="-I$USB_INCLUDEDIR"
24602       CPPFLAGS="$CPPFLAGS $USB_INCLUDES"
24603
24604     fi
24605     for ac_header in $usb_header
24606 do :
24607   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24608 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24609 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24610   cat >>confdefs.h <<_ACEOF
24611 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24612 _ACEOF
24613
24614 else
24615   libusbok=no
24616 fi
24617
24618 done
24619
24620     CPPFLAGS="$save_CPPFLAGS"
24621     ac_ext=c
24622 ac_cpp='$CPP $CPPFLAGS'
24623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24626
24627
24628     if test $libusbok = no; then
24629       { $as_echo "$as_me:${as_lineno-$LINENO}: result: USRP requires libusb header '$usb_header' which was not found or was not usable. See http://www.libusb.org" >&5
24630 $as_echo "USRP requires libusb header '$usb_header' which was not found or was not usable. See http://www.libusb.org" >&6; }
24631     else
24632
24633
24634       ac_ext=c
24635 ac_cpp='$CPP $CPPFLAGS'
24636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24639
24640       save_LIBS="$LIBS"
24641       LIBS=""
24642       case "$host_os" in
24643         darwin*)
24644           USB_LIBS="$USB_LIBS -lIOKit"
24645           LIBS="$USB_LIBS"
24646           ;;
24647         *) ;;
24648       esac
24649       as_ac_Lib=`$as_echo "ac_cv_lib_$usb_lib_name''_$usb_lib_func" | $as_tr_sh`
24650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $usb_lib_func in -l$usb_lib_name" >&5
24651 $as_echo_n "checking for $usb_lib_func in -l$usb_lib_name... " >&6; }
24652 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
24653   $as_echo_n "(cached) " >&6
24654 else
24655   ac_check_lib_save_LIBS=$LIBS
24656 LIBS="-l$usb_lib_name  $LIBS"
24657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24658 /* end confdefs.h.  */
24659
24660 /* Override any GCC internal prototype to avoid an error.
24661    Use char because int might match the return type of a GCC
24662    builtin and then its argument prototype would still apply.  */
24663 #ifdef __cplusplus
24664 extern "C"
24665 #endif
24666 char $usb_lib_func ();
24667 int
24668 main ()
24669 {
24670 return $usb_lib_func ();
24671   ;
24672   return 0;
24673 }
24674 _ACEOF
24675 if ac_fn_c_try_link "$LINENO"; then :
24676   eval "$as_ac_Lib=yes"
24677 else
24678   eval "$as_ac_Lib=no"
24679 fi
24680 rm -f core conftest.err conftest.$ac_objext \
24681     conftest$ac_exeext conftest.$ac_ext
24682 LIBS=$ac_check_lib_save_LIBS
24683 fi
24684 eval ac_res=\$$as_ac_Lib
24685                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24686 $as_echo "$ac_res" >&6; }
24687 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
24688   cat >>confdefs.h <<_ACEOF
24689 #define `$as_echo "HAVE_LIB$usb_lib_name" | $as_tr_cpp` 1
24690 _ACEOF
24691
24692   LIBS="-l$usb_lib_name $LIBS"
24693
24694 else
24695
24696         libusbok=no
24697         { $as_echo "$as_me:${as_lineno-$LINENO}: result: USRP requires library '$usb_lib_name' with function '$usb_lib_func', which was either not found or was not usable. See http://www.libusb.org" >&5
24698 $as_echo "USRP requires library '$usb_lib_name' with function '$usb_lib_func', which was either not found or was not usable. See http://www.libusb.org" >&6; }
24699
24700 fi
24701
24702       case "$host_os" in
24703         cygwin* | mingw*)
24704           USB_LIBS="$LIBS"
24705           ;;
24706         *) ;;
24707       esac
24708       LIBS="$save_LIBS"
24709       ac_ext=c
24710 ac_cpp='$CPP $CPPFLAGS'
24711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24714
24715     fi
24716   fi
24717   if test $libusbok = yes; then
24718
24719     :
24720   else
24721     USB_INCLUDES=
24722     USB_LIBS=
24723     passed=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Unable to find dependency libusb." >&5
24724 $as_echo "Unable to find dependency libusb." >&6; }
24725   fi
24726
24727
24728
24729         sdccok=yes
24730         # Extract the first word of "sdcc", so it can be a program name with args.
24731 set dummy sdcc; ac_word=$2
24732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24733 $as_echo_n "checking for $ac_word... " >&6; }
24734 if test "${ac_cv_prog_XCC+set}" = set; then :
24735   $as_echo_n "(cached) " >&6
24736 else
24737   if test -n "$XCC"; then
24738   ac_cv_prog_XCC="$XCC" # Let the user override the test.
24739 else
24740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24741 for as_dir in $PATH
24742 do
24743   IFS=$as_save_IFS
24744   test -z "$as_dir" && as_dir=.
24745     for ac_exec_ext in '' $ac_executable_extensions; do
24746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24747     ac_cv_prog_XCC="sdcc -mmcs51 --no-xinit-opt"
24748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24749     break 2
24750   fi
24751 done
24752   done
24753 IFS=$as_save_IFS
24754
24755   test -z "$ac_cv_prog_XCC" && ac_cv_prog_XCC="no"
24756 fi
24757 fi
24758 XCC=$ac_cv_prog_XCC
24759 if test -n "$XCC"; then
24760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCC" >&5
24761 $as_echo "$XCC" >&6; }
24762 else
24763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24764 $as_echo "no" >&6; }
24765 fi
24766
24767
24768         # Extract the first word of "asx8051", so it can be a program name with args.
24769 set dummy asx8051; ac_word=$2
24770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24771 $as_echo_n "checking for $ac_word... " >&6; }
24772 if test "${ac_cv_prog_XAS+set}" = set; then :
24773   $as_echo_n "(cached) " >&6
24774 else
24775   if test -n "$XAS"; then
24776   ac_cv_prog_XAS="$XAS" # Let the user override the test.
24777 else
24778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24779 for as_dir in $PATH
24780 do
24781   IFS=$as_save_IFS
24782   test -z "$as_dir" && as_dir=.
24783     for ac_exec_ext in '' $ac_executable_extensions; do
24784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24785     ac_cv_prog_XAS="asx8051 -plosgff"
24786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24787     break 2
24788   fi
24789 done
24790   done
24791 IFS=$as_save_IFS
24792
24793   test -z "$ac_cv_prog_XAS" && ac_cv_prog_XAS="no"
24794 fi
24795 fi
24796 XAS=$ac_cv_prog_XAS
24797 if test -n "$XAS"; then
24798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAS" >&5
24799 $as_echo "$XAS" >&6; }
24800 else
24801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24802 $as_echo "no" >&6; }
24803 fi
24804
24805
24806
24807         if test "$XCC" = "no" -o "$XAS" = "no" ; then
24808                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: USRP requires sdcc. sdcc not found. See http://sdcc.sf.net" >&5
24809 $as_echo "USRP requires sdcc. sdcc not found. See http://sdcc.sf.net" >&6; }
24810                 sdccok=no
24811         else
24812                 sdcc_version_min=2.4.0
24813
24814                 sdcc_version=`sdcc --version 2>&1 | \
24815                         sed  's/\(SDCC.* \)\([0-9]*\.[0-9]*\.[0-9]*\)\( .*$\)/\2/'`
24816
24817                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sdcc_version \"$sdcc_version\"" >&5
24818 $as_echo_n "checking sdcc_version \"$sdcc_version\"... " >&6; }
24819
24820                 sdcc_major_version=`echo $sdcc_version | \
24821                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24822                 sdcc_minor_version=`echo $sdcc_version | \
24823                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24824                 sdcc_micro_version=`echo $sdcc_version | \
24825                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24826
24827                 sdcc_major_min=`echo $sdcc_version_min | \
24828                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24829                 sdcc_minor_min=`echo $sdcc_version_min | \
24830                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24831                 sdcc_micro_min=`echo $sdcc_version_min | \
24832                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24833
24834                 sdcc_version_proper=`expr \
24835                         "$sdcc_major_version" \> "$sdcc_major_min" \| \
24836                         "$sdcc_major_version" \= "$sdcc_major_min" \& \
24837                         "$sdcc_minor_version" \> "$sdcc_minor_min" \| \
24838                         "$sdcc_major_version" \= "$sdcc_major_min" \& \
24839                         "$sdcc_minor_version" \= "$sdcc_minor_min" \& \
24840                         "$sdcc_micro_version" \>= "$sdcc_micro_min" `
24841
24842                 if test "$sdcc_version_proper" = "1" ; then
24843                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sdcc_major_version.$sdcc_minor_version.$sdcc_micro_version" >&5
24844 $as_echo "$sdcc_major_version.$sdcc_minor_version.$sdcc_micro_version" >&6; }
24845                 else
24846                         sdccok=no
24847                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: USRP requires sdcc >= $sdcc_version_min. sdcc not found. See http://sdcc.sf.net" >&5
24848 $as_echo "USRP requires sdcc >= $sdcc_version_min. sdcc not found. See http://sdcc.sf.net" >&6; }
24849                 fi
24850
24851
24852
24853         fi
24854
24855         if test $sdccok = yes; then
24856                 :
24857         else
24858                 passed=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Unable to find firmware compiler SDCC." >&5
24859 $as_echo "Unable to find firmware compiler SDCC." >&6; }
24860         fi
24861
24862     fi
24863     if test $passed != with; then
24864                 usrp_INCLUDES=" \
24865                 -I\${abs_top_srcdir}/usrp/host/include \
24866                 -I\${abs_top_builddir}/usrp/host/include \
24867                 -I\${abs_top_srcdir}/usrp/firmware/include"
24868         usrp_LA="\${abs_top_builddir}/usrp/host/lib/libusrp.la"
24869     fi
24870
24871     ac_config_files="$ac_config_files usrp/Makefile usrp/usrp.pc usrp/usrp.iss usrp/doc/Doxyfile usrp/doc/Makefile usrp/doc/other/Makefile usrp/host/Makefile usrp/host/include/Makefile usrp/host/include/usrp/Makefile usrp/host/misc/Makefile usrp/host/lib/Makefile usrp/host/lib/std_paths.h usrp/host/swig/Makefile usrp/host/apps/Makefile usrp/firmware/Makefile usrp/firmware/include/Makefile usrp/firmware/lib/Makefile usrp/firmware/src/Makefile usrp/firmware/src/common/Makefile usrp/firmware/src/usrp2/Makefile usrp/fpga/Makefile usrp/fpga/rbf/Makefile usrp/fpga/rbf/rev2/Makefile usrp/fpga/rbf/rev4/Makefile"
24872
24873
24874
24875
24876     usrp_with=no
24877     if test $passed = no; then
24878         if test x$enable_usrp = xyes; then
24879             as_fn_error $? "Component usrp has errors; stopping." "$LINENO" 5
24880         else
24881             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component usrp." >&5
24882 $as_echo "Not building component usrp." >&6; }
24883         fi
24884     else
24885         if test $passed = with; then
24886             with_dirs="$with_dirs usrp"
24887
24888     if test "x${usrp_INCLUDES}" != "x"; then
24889         if test "x$with_INCLUDES" = "x"; then
24890             with_INCLUDES="${usrp_INCLUDES}"
24891         else
24892             with_INCLUDES="${usrp_INCLUDES}"" ""$with_INCLUDES"
24893         fi
24894         usrp_INCLUDES=
24895     fi
24896
24897
24898     if test "x${usrp_SWIG_INCLUDES}" != "x"; then
24899         if test "x$with_SWIG_INCLUDES" = "x"; then
24900             with_SWIG_INCLUDES="${usrp_SWIG_INCLUDES}"
24901         else
24902             with_SWIG_INCLUDES="${usrp_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
24903         fi
24904         usrp_SWIG_INCLUDES=
24905     fi
24906
24907
24908     if test "x${usrp_PYDIRPATH}" != "x"; then
24909         if test "x$with_PYDIRPATH" = "x"; then
24910             with_PYDIRPATH="${usrp_PYDIRPATH}"
24911         else
24912             with_PYDIRPATH="${usrp_PYDIRPATH}"":""$with_PYDIRPATH"
24913         fi
24914         usrp_PYDIRPATH=
24915     fi
24916
24917
24918     if test "x${usrp_SWIGDIRPATH}" != "x"; then
24919         if test "x$with_SWIGDIRPATH" = "x"; then
24920             with_SWIGDIRPATH="${usrp_SWIGDIRPATH}"
24921         else
24922             with_SWIGDIRPATH="${usrp_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
24923         fi
24924         usrp_SWIGDIRPATH=
24925     fi
24926
24927
24928     if test "x${usrp_LIBDIRPATH}" != "x"; then
24929         if test "x$with_LIBDIRPATH" = "x"; then
24930             with_LIBDIRPATH="${usrp_LIBDIRPATH}"
24931         else
24932             with_LIBDIRPATH="${usrp_LIBDIRPATH}"":""$with_LIBDIRPATH"
24933         fi
24934         usrp_LIBDIRPATH=
24935     fi
24936
24937             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component usrp will be included from a pre-installed library and includes." >&5
24938 $as_echo "Component usrp will be included from a pre-installed library and includes." >&6; }
24939             usrp_with=yes
24940         else
24941             usrp_LDFLAG=
24942             if test x$enable_usrp != xno; then
24943                 :
24944                 build_dirs="$build_dirs usrp"
24945                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component usrp passed configuration checks; building." >&5
24946 $as_echo "Component usrp passed configuration checks; building." >&6; }
24947             else
24948                 passed=no
24949                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component usrp passed configuration checks; but not building." >&5
24950 $as_echo "Component usrp passed configuration checks; but not building." >&6; }
24951             fi
24952         fi
24953     fi
24954     if test $passed = no; then
24955         skipped_dirs="$skipped_dirs usrp"
24956         usrp_skipped=yes
24957     else
24958         usrp_skipped=no
24959     fi
24960
24961
24962
24963
24964
24965
24966
24967
24968
24969
24970
24971
24972
24973     passed=yes
24974     # Check whether --enable-usrp2 was given.
24975 if test "${enable_usrp2+set}" = set; then :
24976   enableval=$enable_usrp2;
24977 else
24978
24979         enable_usrp2=$enable_all_components
24980         if test x$enable_all_components = xno; then
24981             passed=no
24982         fi
24983
24984 fi
24985
24986
24987
24988
24989         subdirs="$subdirs usrp2/firmware"
24990
24991
24992
24993     if test $passed != no; then
24994         if test $passed = yes; then
24995                         if test x$gruel_skipped = xyes; then
24996                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component usrp2 requires gruel, which is not being built or specified via pre-installed files." >&5
24997 $as_echo "Component usrp2 requires gruel, which is not being built or specified via pre-installed files." >&6; }
24998                 passed=no
24999             fi
25000         else
25001                         if test x$gruel_with = xno; then
25002                 as_fn_error $? "Component usrp2 requires gruel to be included as --with-gruel[=arg]" "$LINENO" 5
25003             fi
25004         fi
25005     fi
25006
25007
25008         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host_os is linux*" >&5
25009 $as_echo_n "checking whether host_os is linux*... " >&6; }
25010     case "$host_os" in
25011       linux*)
25012         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25013 $as_echo "yes" >&6; }
25014         ;;
25015       *)
25016         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25017 $as_echo "no" >&6; }
25018         { $as_echo "$as_me:${as_lineno-$LINENO}: USRP2 currently requires Linux host OS, not found" >&5
25019 $as_echo "$as_me: USRP2 currently requires Linux host OS, not found" >&6;}
25020         passed="no"
25021         ;;
25022     esac
25023
25024                     if test $passed = yes; then
25025                 for ac_header in arpa/inet.h byteswap.h linux/if_packet.h sys/socket.h sys/un.h
25026 do :
25027   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25028 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25029 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25030   cat >>confdefs.h <<_ACEOF
25031 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25032 _ACEOF
25033
25034 fi
25035
25036 done
25037
25038         ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "#define __USE_GNU 1
25039                           #include <sys/types.h>
25040                           #include <sys/socket.h>
25041                           #include <sys/un.h>
25042 "
25043 if test "x$ac_cv_member_struct_msghdr_msg_control" = x""yes; then :
25044
25045 cat >>confdefs.h <<_ACEOF
25046 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
25047 _ACEOF
25048
25049
25050 fi
25051 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#define __USE_GNU 1
25052                           #include <sys/types.h>
25053                           #include <sys/socket.h>
25054                           #include <sys/un.h>
25055 "
25056 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = x""yes; then :
25057
25058 cat >>confdefs.h <<_ACEOF
25059 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
25060 _ACEOF
25061
25062
25063 fi
25064 ac_fn_c_check_member "$LINENO" "struct cmsgcred" "cmcred_uid" "ac_cv_member_struct_cmsgcred_cmcred_uid" "#define __USE_GNU 1
25065                           #include <sys/types.h>
25066                           #include <sys/socket.h>
25067                           #include <sys/un.h>
25068 "
25069 if test "x$ac_cv_member_struct_cmsgcred_cmcred_uid" = x""yes; then :
25070
25071 cat >>confdefs.h <<_ACEOF
25072 #define HAVE_STRUCT_CMSGCRED_CMCRED_UID 1
25073 _ACEOF
25074
25075
25076 fi
25077 ac_fn_c_check_member "$LINENO" "struct ucred" "uid" "ac_cv_member_struct_ucred_uid" "#define __USE_GNU 1
25078                           #include <sys/types.h>
25079                           #include <sys/socket.h>
25080                           #include <sys/un.h>
25081 "
25082 if test "x$ac_cv_member_struct_ucred_uid" = x""yes; then :
25083
25084 cat >>confdefs.h <<_ACEOF
25085 #define HAVE_STRUCT_UCRED_UID 1
25086 _ACEOF
25087
25088
25089 fi
25090
25091     fi
25092     if test $passed != with; then
25093                 USRP2_INCLUDES="-I\${abs_top_srcdir}/usrp2/host/include \
25094                 -I\${abs_top_srcdir}/usrp2/firmware/include"
25095         USRP2_LA="\${abs_top_builddir}/usrp2/host/lib/libusrp2.la"
25096     fi
25097
25098
25099
25100
25101     ac_config_files="$ac_config_files usrp2/Makefile usrp2/host/Makefile usrp2/host/usrp2.pc usrp2/host/include/Makefile usrp2/host/include/usrp2/Makefile usrp2/host/lib/Makefile usrp2/host/apps/Makefile"
25102
25103
25104
25105
25106     usrp2_with=no
25107     if test $passed = no; then
25108         if test x$enable_usrp2 = xyes; then
25109             as_fn_error $? "Component usrp2 has errors; stopping." "$LINENO" 5
25110         else
25111             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component usrp2." >&5
25112 $as_echo "Not building component usrp2." >&6; }
25113         fi
25114     else
25115         if test $passed = with; then
25116             with_dirs="$with_dirs usrp2"
25117
25118     if test "x${usrp2_INCLUDES}" != "x"; then
25119         if test "x$with_INCLUDES" = "x"; then
25120             with_INCLUDES="${usrp2_INCLUDES}"
25121         else
25122             with_INCLUDES="${usrp2_INCLUDES}"" ""$with_INCLUDES"
25123         fi
25124         usrp2_INCLUDES=
25125     fi
25126
25127
25128     if test "x${usrp2_SWIG_INCLUDES}" != "x"; then
25129         if test "x$with_SWIG_INCLUDES" = "x"; then
25130             with_SWIG_INCLUDES="${usrp2_SWIG_INCLUDES}"
25131         else
25132             with_SWIG_INCLUDES="${usrp2_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
25133         fi
25134         usrp2_SWIG_INCLUDES=
25135     fi
25136
25137
25138     if test "x${usrp2_PYDIRPATH}" != "x"; then
25139         if test "x$with_PYDIRPATH" = "x"; then
25140             with_PYDIRPATH="${usrp2_PYDIRPATH}"
25141         else
25142             with_PYDIRPATH="${usrp2_PYDIRPATH}"":""$with_PYDIRPATH"
25143         fi
25144         usrp2_PYDIRPATH=
25145     fi
25146
25147
25148     if test "x${usrp2_SWIGDIRPATH}" != "x"; then
25149         if test "x$with_SWIGDIRPATH" = "x"; then
25150             with_SWIGDIRPATH="${usrp2_SWIGDIRPATH}"
25151         else
25152             with_SWIGDIRPATH="${usrp2_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
25153         fi
25154         usrp2_SWIGDIRPATH=
25155     fi
25156
25157
25158     if test "x${usrp2_LIBDIRPATH}" != "x"; then
25159         if test "x$with_LIBDIRPATH" = "x"; then
25160             with_LIBDIRPATH="${usrp2_LIBDIRPATH}"
25161         else
25162             with_LIBDIRPATH="${usrp2_LIBDIRPATH}"":""$with_LIBDIRPATH"
25163         fi
25164         usrp2_LIBDIRPATH=
25165     fi
25166
25167             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component usrp2 will be included from a pre-installed library and includes." >&5
25168 $as_echo "Component usrp2 will be included from a pre-installed library and includes." >&6; }
25169             usrp2_with=yes
25170         else
25171             usrp2_LDFLAG=
25172             if test x$enable_usrp2 != xno; then
25173                 :
25174                 build_dirs="$build_dirs usrp2"
25175                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component usrp2 passed configuration checks; building." >&5
25176 $as_echo "Component usrp2 passed configuration checks; building." >&6; }
25177             else
25178                 passed=no
25179                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component usrp2 passed configuration checks; but not building." >&5
25180 $as_echo "Component usrp2 passed configuration checks; but not building." >&6; }
25181             fi
25182         fi
25183     fi
25184     if test $passed = no; then
25185         skipped_dirs="$skipped_dirs usrp2"
25186         usrp2_skipped=yes
25187     else
25188         usrp2_skipped=no
25189     fi
25190
25191
25192
25193
25194
25195
25196
25197
25198
25199
25200
25201     passed=yes
25202     # Check whether --enable-gr-usrp was given.
25203 if test "${enable_gr_usrp+set}" = set; then :
25204   enableval=$enable_gr_usrp;
25205 else
25206
25207         enable_gr_usrp=$enable_all_components
25208         if test x$enable_all_components = xno; then
25209             passed=no
25210         fi
25211
25212 fi
25213
25214
25215
25216
25217
25218     if test $passed != no; then
25219         if test $passed = yes; then
25220                         if test x$usrp_skipped = xyes; then
25221                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-usrp requires usrp, which is not being built or specified via pre-installed files." >&5
25222 $as_echo "Component gr-usrp requires usrp, which is not being built or specified via pre-installed files." >&6; }
25223                 passed=no
25224             fi
25225         else
25226                         if test x$usrp_with = xno; then
25227                 as_fn_error $? "Component gr-usrp requires usrp to be included as --with-usrp[=arg]" "$LINENO" 5
25228             fi
25229         fi
25230     fi
25231
25232
25233     if test $passed != no; then
25234         if test $passed = yes; then
25235                         if test x$gnuradio_core_skipped = xyes; then
25236                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-usrp requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
25237 $as_echo "Component gr-usrp requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
25238                 passed=no
25239             fi
25240         else
25241                         if test x$gnuradio_core_with = xno; then
25242                 as_fn_error $? "Component gr-usrp requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
25243             fi
25244         fi
25245     fi
25246
25247
25248     ac_config_files="$ac_config_files gr-usrp/Makefile gr-usrp/gnuradio-usrp.pc gr-usrp/src/Makefile gr-usrp/src/run_tests gr-usrp/apps/Makefile"
25249
25250
25251
25252
25253     gr_usrp_with=no
25254     if test $passed = no; then
25255         if test x$enable_gr_usrp = xyes; then
25256             as_fn_error $? "Component gr-usrp has errors; stopping." "$LINENO" 5
25257         else
25258             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-usrp." >&5
25259 $as_echo "Not building component gr-usrp." >&6; }
25260         fi
25261     else
25262         if test $passed = with; then
25263             with_dirs="$with_dirs gr-usrp"
25264
25265     if test "x${gr_usrp_INCLUDES}" != "x"; then
25266         if test "x$with_INCLUDES" = "x"; then
25267             with_INCLUDES="${gr_usrp_INCLUDES}"
25268         else
25269             with_INCLUDES="${gr_usrp_INCLUDES}"" ""$with_INCLUDES"
25270         fi
25271         gr_usrp_INCLUDES=
25272     fi
25273
25274
25275     if test "x${gr_usrp_SWIG_INCLUDES}" != "x"; then
25276         if test "x$with_SWIG_INCLUDES" = "x"; then
25277             with_SWIG_INCLUDES="${gr_usrp_SWIG_INCLUDES}"
25278         else
25279             with_SWIG_INCLUDES="${gr_usrp_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
25280         fi
25281         gr_usrp_SWIG_INCLUDES=
25282     fi
25283
25284
25285     if test "x${gr_usrp_PYDIRPATH}" != "x"; then
25286         if test "x$with_PYDIRPATH" = "x"; then
25287             with_PYDIRPATH="${gr_usrp_PYDIRPATH}"
25288         else
25289             with_PYDIRPATH="${gr_usrp_PYDIRPATH}"":""$with_PYDIRPATH"
25290         fi
25291         gr_usrp_PYDIRPATH=
25292     fi
25293
25294
25295     if test "x${gr_usrp_SWIGDIRPATH}" != "x"; then
25296         if test "x$with_SWIGDIRPATH" = "x"; then
25297             with_SWIGDIRPATH="${gr_usrp_SWIGDIRPATH}"
25298         else
25299             with_SWIGDIRPATH="${gr_usrp_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
25300         fi
25301         gr_usrp_SWIGDIRPATH=
25302     fi
25303
25304
25305     if test "x${gr_usrp_LIBDIRPATH}" != "x"; then
25306         if test "x$with_LIBDIRPATH" = "x"; then
25307             with_LIBDIRPATH="${gr_usrp_LIBDIRPATH}"
25308         else
25309             with_LIBDIRPATH="${gr_usrp_LIBDIRPATH}"":""$with_LIBDIRPATH"
25310         fi
25311         gr_usrp_LIBDIRPATH=
25312     fi
25313
25314             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-usrp will be included from a pre-installed library and includes." >&5
25315 $as_echo "Component gr-usrp will be included from a pre-installed library and includes." >&6; }
25316             gr_usrp_with=yes
25317         else
25318             gr_usrp_LDFLAG=
25319             if test x$enable_gr_usrp != xno; then
25320                         ac_config_commands="$ac_config_commands run_tests_usrp"
25321
25322
25323                 build_dirs="$build_dirs gr-usrp"
25324                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-usrp passed configuration checks; building." >&5
25325 $as_echo "Component gr-usrp passed configuration checks; building." >&6; }
25326             else
25327                 passed=no
25328                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-usrp passed configuration checks; but not building." >&5
25329 $as_echo "Component gr-usrp passed configuration checks; but not building." >&6; }
25330             fi
25331         fi
25332     fi
25333     if test $passed = no; then
25334         skipped_dirs="$skipped_dirs gr-usrp"
25335         gr_usrp_skipped=yes
25336     else
25337         gr_usrp_skipped=no
25338     fi
25339
25340
25341
25342
25343
25344
25345
25346
25347
25348
25349     passed=yes
25350     # Check whether --enable-gr-usrp2 was given.
25351 if test "${enable_gr_usrp2+set}" = set; then :
25352   enableval=$enable_gr_usrp2;
25353 else
25354
25355         enable_gr_usrp2=$enable_all_components
25356         if test x$enable_all_components = xno; then
25357             passed=no
25358         fi
25359
25360 fi
25361
25362
25363
25364
25365
25366     if test $passed != no; then
25367         if test $passed = yes; then
25368                         if test x$usrp2_skipped = xyes; then
25369                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-usrp2 requires usrp2, which is not being built or specified via pre-installed files." >&5
25370 $as_echo "Component gr-usrp2 requires usrp2, which is not being built or specified via pre-installed files." >&6; }
25371                 passed=no
25372             fi
25373         else
25374                         if test x$usrp2_with = xno; then
25375                 as_fn_error $? "Component gr-usrp2 requires usrp2 to be included as --with-usrp2[=arg]" "$LINENO" 5
25376             fi
25377         fi
25378     fi
25379
25380
25381     if test $passed != no; then
25382         if test $passed = yes; then
25383                         if test x$gnuradio_core_skipped = xyes; then
25384                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-usrp2 requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
25385 $as_echo "Component gr-usrp2 requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
25386                 passed=no
25387             fi
25388         else
25389                         if test x$gnuradio_core_with = xno; then
25390                 as_fn_error $? "Component gr-usrp2 requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
25391             fi
25392         fi
25393     fi
25394
25395
25396     ac_config_files="$ac_config_files gr-usrp2/Makefile gr-usrp2/gnuradio-usrp2.pc gr-usrp2/src/Makefile gr-usrp2/src/run_tests"
25397
25398
25399
25400
25401     gr_usrp2_with=no
25402     if test $passed = no; then
25403         if test x$enable_gr_usrp2 = xyes; then
25404             as_fn_error $? "Component gr-usrp2 has errors; stopping." "$LINENO" 5
25405         else
25406             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-usrp2." >&5
25407 $as_echo "Not building component gr-usrp2." >&6; }
25408         fi
25409     else
25410         if test $passed = with; then
25411             with_dirs="$with_dirs gr-usrp2"
25412
25413     if test "x${gr_usrp2_INCLUDES}" != "x"; then
25414         if test "x$with_INCLUDES" = "x"; then
25415             with_INCLUDES="${gr_usrp2_INCLUDES}"
25416         else
25417             with_INCLUDES="${gr_usrp2_INCLUDES}"" ""$with_INCLUDES"
25418         fi
25419         gr_usrp2_INCLUDES=
25420     fi
25421
25422
25423     if test "x${gr_usrp2_SWIG_INCLUDES}" != "x"; then
25424         if test "x$with_SWIG_INCLUDES" = "x"; then
25425             with_SWIG_INCLUDES="${gr_usrp2_SWIG_INCLUDES}"
25426         else
25427             with_SWIG_INCLUDES="${gr_usrp2_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
25428         fi
25429         gr_usrp2_SWIG_INCLUDES=
25430     fi
25431
25432
25433     if test "x${gr_usrp2_PYDIRPATH}" != "x"; then
25434         if test "x$with_PYDIRPATH" = "x"; then
25435             with_PYDIRPATH="${gr_usrp2_PYDIRPATH}"
25436         else
25437             with_PYDIRPATH="${gr_usrp2_PYDIRPATH}"":""$with_PYDIRPATH"
25438         fi
25439         gr_usrp2_PYDIRPATH=
25440     fi
25441
25442
25443     if test "x${gr_usrp2_SWIGDIRPATH}" != "x"; then
25444         if test "x$with_SWIGDIRPATH" = "x"; then
25445             with_SWIGDIRPATH="${gr_usrp2_SWIGDIRPATH}"
25446         else
25447             with_SWIGDIRPATH="${gr_usrp2_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
25448         fi
25449         gr_usrp2_SWIGDIRPATH=
25450     fi
25451
25452
25453     if test "x${gr_usrp2_LIBDIRPATH}" != "x"; then
25454         if test "x$with_LIBDIRPATH" = "x"; then
25455             with_LIBDIRPATH="${gr_usrp2_LIBDIRPATH}"
25456         else
25457             with_LIBDIRPATH="${gr_usrp2_LIBDIRPATH}"":""$with_LIBDIRPATH"
25458         fi
25459         gr_usrp2_LIBDIRPATH=
25460     fi
25461
25462             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-usrp2 will be included from a pre-installed library and includes." >&5
25463 $as_echo "Component gr-usrp2 will be included from a pre-installed library and includes." >&6; }
25464             gr_usrp2_with=yes
25465         else
25466             gr_usrp2_LDFLAG=
25467             if test x$enable_gr_usrp2 != xno; then
25468                         ac_config_commands="$ac_config_commands run_tests_usrp2"
25469
25470
25471                 build_dirs="$build_dirs gr-usrp2"
25472                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-usrp2 passed configuration checks; building." >&5
25473 $as_echo "Component gr-usrp2 passed configuration checks; building." >&6; }
25474             else
25475                 passed=no
25476                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-usrp2 passed configuration checks; but not building." >&5
25477 $as_echo "Component gr-usrp2 passed configuration checks; but not building." >&6; }
25478             fi
25479         fi
25480     fi
25481     if test $passed = no; then
25482         skipped_dirs="$skipped_dirs gr-usrp2"
25483         gr_usrp2_skipped=yes
25484     else
25485         gr_usrp2_skipped=no
25486     fi
25487
25488
25489
25490
25491
25492
25493
25494
25495
25496
25497
25498     passed=yes
25499     # Check whether --enable-gr-gcell was given.
25500 if test "${enable_gr_gcell+set}" = set; then :
25501   enableval=$enable_gr_gcell;
25502 else
25503
25504         enable_gr_gcell=$enable_all_components
25505         if test x$enable_all_components = xno; then
25506             passed=no
25507         fi
25508
25509 fi
25510
25511
25512
25513
25514
25515     if test $passed != no; then
25516         if test $passed = yes; then
25517                         if test x$gcell_skipped = xyes; then
25518                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-gcell requires gcell, which is not being built or specified via pre-installed files." >&5
25519 $as_echo "Component gr-gcell requires gcell, which is not being built or specified via pre-installed files." >&6; }
25520                 passed=no
25521             fi
25522         else
25523                         if test x$gcell_with = xno; then
25524                 as_fn_error $? "Component gr-gcell requires gcell to be included as --with-gcell[=arg]" "$LINENO" 5
25525             fi
25526         fi
25527     fi
25528
25529
25530     if test $passed != no; then
25531         if test $passed = yes; then
25532                         if test x$gnuradio_core_skipped = xyes; then
25533                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-gcell requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
25534 $as_echo "Component gr-gcell requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
25535                 passed=no
25536             fi
25537         else
25538                         if test x$gnuradio_core_with = xno; then
25539                 as_fn_error $? "Component gr-gcell requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
25540             fi
25541         fi
25542     fi
25543
25544
25545     ac_config_files="$ac_config_files gr-gcell/Makefile gr-gcell/src/Makefile gr-gcell/src/examples/Makefile gr-gcell/src/run_tests"
25546
25547
25548
25549
25550     gr_gcell_with=no
25551     if test $passed = no; then
25552         if test x$enable_gr_gcell = xyes; then
25553             as_fn_error $? "Component gr-gcell has errors; stopping." "$LINENO" 5
25554         else
25555             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-gcell." >&5
25556 $as_echo "Not building component gr-gcell." >&6; }
25557         fi
25558     else
25559         if test $passed = with; then
25560             with_dirs="$with_dirs gr-gcell"
25561
25562     if test "x${gr_gcell_INCLUDES}" != "x"; then
25563         if test "x$with_INCLUDES" = "x"; then
25564             with_INCLUDES="${gr_gcell_INCLUDES}"
25565         else
25566             with_INCLUDES="${gr_gcell_INCLUDES}"" ""$with_INCLUDES"
25567         fi
25568         gr_gcell_INCLUDES=
25569     fi
25570
25571
25572     if test "x${gr_gcell_SWIG_INCLUDES}" != "x"; then
25573         if test "x$with_SWIG_INCLUDES" = "x"; then
25574             with_SWIG_INCLUDES="${gr_gcell_SWIG_INCLUDES}"
25575         else
25576             with_SWIG_INCLUDES="${gr_gcell_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
25577         fi
25578         gr_gcell_SWIG_INCLUDES=
25579     fi
25580
25581
25582     if test "x${gr_gcell_PYDIRPATH}" != "x"; then
25583         if test "x$with_PYDIRPATH" = "x"; then
25584             with_PYDIRPATH="${gr_gcell_PYDIRPATH}"
25585         else
25586             with_PYDIRPATH="${gr_gcell_PYDIRPATH}"":""$with_PYDIRPATH"
25587         fi
25588         gr_gcell_PYDIRPATH=
25589     fi
25590
25591
25592     if test "x${gr_gcell_SWIGDIRPATH}" != "x"; then
25593         if test "x$with_SWIGDIRPATH" = "x"; then
25594             with_SWIGDIRPATH="${gr_gcell_SWIGDIRPATH}"
25595         else
25596             with_SWIGDIRPATH="${gr_gcell_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
25597         fi
25598         gr_gcell_SWIGDIRPATH=
25599     fi
25600
25601
25602     if test "x${gr_gcell_LIBDIRPATH}" != "x"; then
25603         if test "x$with_LIBDIRPATH" = "x"; then
25604             with_LIBDIRPATH="${gr_gcell_LIBDIRPATH}"
25605         else
25606             with_LIBDIRPATH="${gr_gcell_LIBDIRPATH}"":""$with_LIBDIRPATH"
25607         fi
25608         gr_gcell_LIBDIRPATH=
25609     fi
25610
25611             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-gcell will be included from a pre-installed library and includes." >&5
25612 $as_echo "Component gr-gcell will be included from a pre-installed library and includes." >&6; }
25613             gr_gcell_with=yes
25614         else
25615             gr_gcell_LDFLAG=
25616             if test x$enable_gr_gcell != xno; then
25617                         ac_config_commands="$ac_config_commands run_tests_gcell"
25618
25619
25620                 build_dirs="$build_dirs gr-gcell"
25621                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-gcell passed configuration checks; building." >&5
25622 $as_echo "Component gr-gcell passed configuration checks; building." >&6; }
25623             else
25624                 passed=no
25625                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-gcell passed configuration checks; but not building." >&5
25626 $as_echo "Component gr-gcell passed configuration checks; but not building." >&6; }
25627             fi
25628         fi
25629     fi
25630     if test $passed = no; then
25631         skipped_dirs="$skipped_dirs gr-gcell"
25632         gr_gcell_skipped=yes
25633     else
25634         gr_gcell_skipped=no
25635     fi
25636
25637
25638
25639
25640
25641
25642
25643
25644
25645
25646     passed=yes
25647     # Check whether --enable-gr-msdd6000 was given.
25648 if test "${enable_gr_msdd6000+set}" = set; then :
25649   enableval=$enable_gr_msdd6000;
25650 else
25651
25652         enable_gr_msdd6000=$enable_all_components
25653         if test x$enable_all_components = xno; then
25654             passed=no
25655         fi
25656
25657 fi
25658
25659
25660
25661
25662     ac_config_files="$ac_config_files gr-msdd6000/Makefile gr-msdd6000/gnuradio-msdd6000.pc gr-msdd6000/src/Makefile"
25663
25664
25665
25666     if test $passed != no; then
25667         if test $passed = yes; then
25668                         if test x$gnuradio_core_skipped = xyes; then
25669                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-msdd6000 requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
25670 $as_echo "Component gr-msdd6000 requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
25671                 passed=no
25672             fi
25673         else
25674                         if test x$gnuradio_core_with = xno; then
25675                 as_fn_error $? "Component gr-msdd6000 requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
25676             fi
25677         fi
25678     fi
25679
25680
25681     for ac_header in netinet/in.h arpa/inet.h sys/socket.h netdb.h
25682 do :
25683   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25684 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25685 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25686   cat >>confdefs.h <<_ACEOF
25687 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25688 _ACEOF
25689
25690 else
25691   passed=no
25692 fi
25693
25694 done
25695
25696
25697
25698
25699     gr_msdd6000_with=no
25700     if test $passed = no; then
25701         if test x$enable_gr_msdd6000 = xyes; then
25702             as_fn_error $? "Component gr-msdd6000 has errors; stopping." "$LINENO" 5
25703         else
25704             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-msdd6000." >&5
25705 $as_echo "Not building component gr-msdd6000." >&6; }
25706         fi
25707     else
25708         if test $passed = with; then
25709             with_dirs="$with_dirs gr-msdd6000"
25710
25711     if test "x${gr_msdd6000_INCLUDES}" != "x"; then
25712         if test "x$with_INCLUDES" = "x"; then
25713             with_INCLUDES="${gr_msdd6000_INCLUDES}"
25714         else
25715             with_INCLUDES="${gr_msdd6000_INCLUDES}"" ""$with_INCLUDES"
25716         fi
25717         gr_msdd6000_INCLUDES=
25718     fi
25719
25720
25721     if test "x${gr_msdd6000_SWIG_INCLUDES}" != "x"; then
25722         if test "x$with_SWIG_INCLUDES" = "x"; then
25723             with_SWIG_INCLUDES="${gr_msdd6000_SWIG_INCLUDES}"
25724         else
25725             with_SWIG_INCLUDES="${gr_msdd6000_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
25726         fi
25727         gr_msdd6000_SWIG_INCLUDES=
25728     fi
25729
25730
25731     if test "x${gr_msdd6000_PYDIRPATH}" != "x"; then
25732         if test "x$with_PYDIRPATH" = "x"; then
25733             with_PYDIRPATH="${gr_msdd6000_PYDIRPATH}"
25734         else
25735             with_PYDIRPATH="${gr_msdd6000_PYDIRPATH}"":""$with_PYDIRPATH"
25736         fi
25737         gr_msdd6000_PYDIRPATH=
25738     fi
25739
25740
25741     if test "x${gr_msdd6000_SWIGDIRPATH}" != "x"; then
25742         if test "x$with_SWIGDIRPATH" = "x"; then
25743             with_SWIGDIRPATH="${gr_msdd6000_SWIGDIRPATH}"
25744         else
25745             with_SWIGDIRPATH="${gr_msdd6000_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
25746         fi
25747         gr_msdd6000_SWIGDIRPATH=
25748     fi
25749
25750
25751     if test "x${gr_msdd6000_LIBDIRPATH}" != "x"; then
25752         if test "x$with_LIBDIRPATH" = "x"; then
25753             with_LIBDIRPATH="${gr_msdd6000_LIBDIRPATH}"
25754         else
25755             with_LIBDIRPATH="${gr_msdd6000_LIBDIRPATH}"":""$with_LIBDIRPATH"
25756         fi
25757         gr_msdd6000_LIBDIRPATH=
25758     fi
25759
25760             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-msdd6000 will be included from a pre-installed library and includes." >&5
25761 $as_echo "Component gr-msdd6000 will be included from a pre-installed library and includes." >&6; }
25762             gr_msdd6000_with=yes
25763         else
25764             gr_msdd6000_LDFLAG=
25765             if test x$enable_gr_msdd6000 != xno; then
25766
25767                 build_dirs="$build_dirs gr-msdd6000"
25768                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-msdd6000 passed configuration checks; building." >&5
25769 $as_echo "Component gr-msdd6000 passed configuration checks; building." >&6; }
25770             else
25771                 passed=no
25772                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-msdd6000 passed configuration checks; but not building." >&5
25773 $as_echo "Component gr-msdd6000 passed configuration checks; but not building." >&6; }
25774             fi
25775         fi
25776     fi
25777     if test $passed = no; then
25778         skipped_dirs="$skipped_dirs gr-msdd6000"
25779         gr_msdd6000_skipped=yes
25780     else
25781         gr_msdd6000_skipped=no
25782     fi
25783
25784
25785
25786
25787
25788
25789
25790
25791
25792
25793
25794     passed=yes
25795     # Check whether --enable-gr-audio-alsa was given.
25796 if test "${enable_gr_audio_alsa+set}" = set; then :
25797   enableval=$enable_gr_audio_alsa;
25798 else
25799
25800         enable_gr_audio_alsa=$enable_all_components
25801         if test x$enable_all_components = xno; then
25802             passed=no
25803         fi
25804
25805 fi
25806
25807
25808
25809
25810
25811     if test $passed != no; then
25812         if test $passed = yes; then
25813                         if test x$gnuradio_core_skipped = xyes; then
25814                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-alsa requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
25815 $as_echo "Component gr-audio-alsa requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
25816                 passed=no
25817             fi
25818         else
25819                         if test x$gnuradio_core_with = xno; then
25820                 as_fn_error $? "Component gr-audio-alsa requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
25821             fi
25822         fi
25823     fi
25824
25825
25826                     if test $passed = yes; then
25827
25828
25829
25830 pkg_failed=no
25831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5
25832 $as_echo_n "checking for ALSA... " >&6; }
25833
25834 if test -n "$PKG_CONFIG"; then
25835     if test -n "$ALSA_CFLAGS"; then
25836         pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
25837     else
25838         if test -n "$PKG_CONFIG" && \
25839     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa >= 0.9\""; } >&5
25840   ($PKG_CONFIG --exists --print-errors "alsa >= 0.9") 2>&5
25841   ac_status=$?
25842   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25843   test $ac_status = 0; }; then
25844   pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa >= 0.9" 2>/dev/null`
25845 else
25846   pkg_failed=yes
25847 fi
25848     fi
25849 else
25850         pkg_failed=untried
25851 fi
25852
25853 if test x$cross_compiling = xyes
25854 then
25855     if test -n "$PKG_CONFIG"; then
25856     if test -n "$ALSA_LIBS"; then
25857         pkg_cv_ALSA_LIBS="$ALSA_LIBS"
25858     else
25859         if test -n "$PKG_CONFIG" && \
25860     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa >= 0.9\""; } >&5
25861   ($PKG_CONFIG --exists --print-errors "alsa >= 0.9") 2>&5
25862   ac_status=$?
25863   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25864   test $ac_status = 0; }; then
25865   pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs --static "alsa >= 0.9" 2>/dev/null`
25866 else
25867   pkg_failed=yes
25868 fi
25869     fi
25870 else
25871         pkg_failed=untried
25872 fi
25873     _pkg_tmp=
25874   for flag in $pkg_cv_ALSA_LIBS; do
25875     case $flag in
25876     (-L/lib* | -L/usr/lib* )       ;; # ignore
25877     (*) _pkg_tmp="$_pkg_tmp $flag" ;;
25878     esac
25879   done
25880   pkg_cv_ALSA_LIBS="$_pkg_tmp"
25881 else
25882   if test -n "$PKG_CONFIG"; then
25883     if test -n "$ALSA_LIBS"; then
25884         pkg_cv_ALSA_LIBS="$ALSA_LIBS"
25885     else
25886         if test -n "$PKG_CONFIG" && \
25887     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa >= 0.9\""; } >&5
25888   ($PKG_CONFIG --exists --print-errors "alsa >= 0.9") 2>&5
25889   ac_status=$?
25890   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25891   test $ac_status = 0; }; then
25892   pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs --static "alsa >= 0.9" 2>/dev/null`
25893 else
25894   pkg_failed=yes
25895 fi
25896     fi
25897 else
25898         pkg_failed=untried
25899 fi
25900 fi
25901
25902 if test -n "$PKG_CONFIG"; then
25903     if test -n "$ALSA_INCLUDEDIR"; then
25904         pkg_cv_ALSA_INCLUDEDIR="$ALSA_INCLUDEDIR"
25905     else
25906         if test -n "$PKG_CONFIG" && \
25907     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa >= 0.9\""; } >&5
25908   ($PKG_CONFIG --exists --print-errors "alsa >= 0.9") 2>&5
25909   ac_status=$?
25910   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25911   test $ac_status = 0; }; then
25912   pkg_cv_ALSA_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "alsa >= 0.9" 2>/dev/null`
25913 else
25914   pkg_failed=yes
25915 fi
25916     fi
25917 else
25918         pkg_failed=untried
25919 fi
25920
25921
25922
25923
25924 if test $pkg_failed = yes; then
25925
25926 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25927         _pkg_short_errors_supported=yes
25928 else
25929         _pkg_short_errors_supported=no
25930 fi
25931         if test $_pkg_short_errors_supported = yes; then
25932                 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa >= 0.9"`
25933         else
25934                 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa >= 0.9"`
25935         fi
25936         # Put the nasty error message in config.log where it belongs
25937         echo "$ALSA_PKG_ERRORS" >&5
25938
25939         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25940 $as_echo "no" >&6; }
25941                 passed=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-audio-alsa requires package alsa, not found." >&5
25942 $as_echo "gr-audio-alsa requires package alsa, not found." >&6; }
25943 elif test $pkg_failed = untried; then
25944         passed=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-audio-alsa requires package alsa, not found." >&5
25945 $as_echo "gr-audio-alsa requires package alsa, not found." >&6; }
25946 else
25947         ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
25948         ALSA_LIBS=$pkg_cv_ALSA_LIBS
25949         ALSA_INCLUDEDIR=$pkg_cv_ALSA_INCLUDEDIR
25950
25951         ALSA_CPPFLAGS=""
25952         for flag in $ALSA_CFLAGS; do
25953           case $flag in
25954           -I* | -D* | -U*) ALSA_CPPFLAGS="$ALSA_CPPFLAGS $flag" ;;
25955           esac
25956         done
25957         pkg_cv_ALSA_CPPFLAGS=$ALSA_CPPFLAGS
25958
25959
25960         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25961 $as_echo "yes" >&6; }
25962         :
25963 fi
25964     fi
25965
25966     ac_config_files="$ac_config_files gr-audio-alsa/Makefile gr-audio-alsa/gnuradio-audio-alsa.pc gr-audio-alsa/src/Makefile gr-audio-alsa/src/run_tests"
25967
25968
25969
25970
25971     gr_audio_alsa_with=no
25972     if test $passed = no; then
25973         if test x$enable_gr_audio_alsa = xyes; then
25974             as_fn_error $? "Component gr-audio-alsa has errors; stopping." "$LINENO" 5
25975         else
25976             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-audio-alsa." >&5
25977 $as_echo "Not building component gr-audio-alsa." >&6; }
25978         fi
25979     else
25980         if test $passed = with; then
25981             with_dirs="$with_dirs gr-audio-alsa"
25982
25983     if test "x${gr_audio_alsa_INCLUDES}" != "x"; then
25984         if test "x$with_INCLUDES" = "x"; then
25985             with_INCLUDES="${gr_audio_alsa_INCLUDES}"
25986         else
25987             with_INCLUDES="${gr_audio_alsa_INCLUDES}"" ""$with_INCLUDES"
25988         fi
25989         gr_audio_alsa_INCLUDES=
25990     fi
25991
25992
25993     if test "x${gr_audio_alsa_SWIG_INCLUDES}" != "x"; then
25994         if test "x$with_SWIG_INCLUDES" = "x"; then
25995             with_SWIG_INCLUDES="${gr_audio_alsa_SWIG_INCLUDES}"
25996         else
25997             with_SWIG_INCLUDES="${gr_audio_alsa_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
25998         fi
25999         gr_audio_alsa_SWIG_INCLUDES=
26000     fi
26001
26002
26003     if test "x${gr_audio_alsa_PYDIRPATH}" != "x"; then
26004         if test "x$with_PYDIRPATH" = "x"; then
26005             with_PYDIRPATH="${gr_audio_alsa_PYDIRPATH}"
26006         else
26007             with_PYDIRPATH="${gr_audio_alsa_PYDIRPATH}"":""$with_PYDIRPATH"
26008         fi
26009         gr_audio_alsa_PYDIRPATH=
26010     fi
26011
26012
26013     if test "x${gr_audio_alsa_SWIGDIRPATH}" != "x"; then
26014         if test "x$with_SWIGDIRPATH" = "x"; then
26015             with_SWIGDIRPATH="${gr_audio_alsa_SWIGDIRPATH}"
26016         else
26017             with_SWIGDIRPATH="${gr_audio_alsa_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
26018         fi
26019         gr_audio_alsa_SWIGDIRPATH=
26020     fi
26021
26022
26023     if test "x${gr_audio_alsa_LIBDIRPATH}" != "x"; then
26024         if test "x$with_LIBDIRPATH" = "x"; then
26025             with_LIBDIRPATH="${gr_audio_alsa_LIBDIRPATH}"
26026         else
26027             with_LIBDIRPATH="${gr_audio_alsa_LIBDIRPATH}"":""$with_LIBDIRPATH"
26028         fi
26029         gr_audio_alsa_LIBDIRPATH=
26030     fi
26031
26032             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-alsa will be included from a pre-installed library and includes." >&5
26033 $as_echo "Component gr-audio-alsa will be included from a pre-installed library and includes." >&6; }
26034             gr_audio_alsa_with=yes
26035         else
26036             gr_audio_alsa_LDFLAG=
26037             if test x$enable_gr_audio_alsa != xno; then
26038                         ac_config_commands="$ac_config_commands run_tests_alsa"
26039
26040
26041                 build_dirs="$build_dirs gr-audio-alsa"
26042                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-alsa passed configuration checks; building." >&5
26043 $as_echo "Component gr-audio-alsa passed configuration checks; building." >&6; }
26044             else
26045                 passed=no
26046                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-alsa passed configuration checks; but not building." >&5
26047 $as_echo "Component gr-audio-alsa passed configuration checks; but not building." >&6; }
26048             fi
26049         fi
26050     fi
26051     if test $passed = no; then
26052         skipped_dirs="$skipped_dirs gr-audio-alsa"
26053         gr_audio_alsa_skipped=yes
26054     else
26055         gr_audio_alsa_skipped=no
26056     fi
26057
26058
26059
26060
26061
26062
26063
26064
26065
26066
26067
26068     passed=yes
26069     # Check whether --enable-gr-audio-jack was given.
26070 if test "${enable_gr_audio_jack+set}" = set; then :
26071   enableval=$enable_gr_audio_jack;
26072 else
26073
26074         enable_gr_audio_jack=$enable_all_components
26075         if test x$enable_all_components = xno; then
26076             passed=no
26077         fi
26078
26079 fi
26080
26081
26082
26083
26084
26085     if test $passed != no; then
26086         if test $passed = yes; then
26087                         if test x$gnuradio_core_skipped = xyes; then
26088                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-jack requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
26089 $as_echo "Component gr-audio-jack requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
26090                 passed=no
26091             fi
26092         else
26093                         if test x$gnuradio_core_with = xno; then
26094                 as_fn_error $? "Component gr-audio-jack requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
26095             fi
26096         fi
26097     fi
26098
26099
26100                     if test $passed = yes; then
26101
26102
26103
26104 pkg_failed=no
26105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5
26106 $as_echo_n "checking for JACK... " >&6; }
26107
26108 if test -n "$PKG_CONFIG"; then
26109     if test -n "$JACK_CFLAGS"; then
26110         pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
26111     else
26112         if test -n "$PKG_CONFIG" && \
26113     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.8\""; } >&5
26114   ($PKG_CONFIG --exists --print-errors "jack >= 0.8") 2>&5
26115   ac_status=$?
26116   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26117   test $ac_status = 0; }; then
26118   pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.8" 2>/dev/null`
26119 else
26120   pkg_failed=yes
26121 fi
26122     fi
26123 else
26124         pkg_failed=untried
26125 fi
26126
26127 if test x$cross_compiling = xyes
26128 then
26129     if test -n "$PKG_CONFIG"; then
26130     if test -n "$JACK_LIBS"; then
26131         pkg_cv_JACK_LIBS="$JACK_LIBS"
26132     else
26133         if test -n "$PKG_CONFIG" && \
26134     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.8\""; } >&5
26135   ($PKG_CONFIG --exists --print-errors "jack >= 0.8") 2>&5
26136   ac_status=$?
26137   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26138   test $ac_status = 0; }; then
26139   pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs --static "jack >= 0.8" 2>/dev/null`
26140 else
26141   pkg_failed=yes
26142 fi
26143     fi
26144 else
26145         pkg_failed=untried
26146 fi
26147     _pkg_tmp=
26148   for flag in $pkg_cv_JACK_LIBS; do
26149     case $flag in
26150     (-L/lib* | -L/usr/lib* )       ;; # ignore
26151     (*) _pkg_tmp="$_pkg_tmp $flag" ;;
26152     esac
26153   done
26154   pkg_cv_JACK_LIBS="$_pkg_tmp"
26155 else
26156   if test -n "$PKG_CONFIG"; then
26157     if test -n "$JACK_LIBS"; then
26158         pkg_cv_JACK_LIBS="$JACK_LIBS"
26159     else
26160         if test -n "$PKG_CONFIG" && \
26161     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.8\""; } >&5
26162   ($PKG_CONFIG --exists --print-errors "jack >= 0.8") 2>&5
26163   ac_status=$?
26164   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26165   test $ac_status = 0; }; then
26166   pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs --static "jack >= 0.8" 2>/dev/null`
26167 else
26168   pkg_failed=yes
26169 fi
26170     fi
26171 else
26172         pkg_failed=untried
26173 fi
26174 fi
26175
26176 if test -n "$PKG_CONFIG"; then
26177     if test -n "$JACK_INCLUDEDIR"; then
26178         pkg_cv_JACK_INCLUDEDIR="$JACK_INCLUDEDIR"
26179     else
26180         if test -n "$PKG_CONFIG" && \
26181     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.8\""; } >&5
26182   ($PKG_CONFIG --exists --print-errors "jack >= 0.8") 2>&5
26183   ac_status=$?
26184   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26185   test $ac_status = 0; }; then
26186   pkg_cv_JACK_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "jack >= 0.8" 2>/dev/null`
26187 else
26188   pkg_failed=yes
26189 fi
26190     fi
26191 else
26192         pkg_failed=untried
26193 fi
26194
26195
26196
26197
26198 if test $pkg_failed = yes; then
26199
26200 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26201         _pkg_short_errors_supported=yes
26202 else
26203         _pkg_short_errors_supported=no
26204 fi
26205         if test $_pkg_short_errors_supported = yes; then
26206                 JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "jack >= 0.8"`
26207         else
26208                 JACK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "jack >= 0.8"`
26209         fi
26210         # Put the nasty error message in config.log where it belongs
26211         echo "$JACK_PKG_ERRORS" >&5
26212
26213         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26214 $as_echo "no" >&6; }
26215                 passed=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-audio-jack requires package jack, not found." >&5
26216 $as_echo "gr-audio-jack requires package jack, not found." >&6; }
26217 elif test $pkg_failed = untried; then
26218         passed=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-audio-jack requires package jack, not found." >&5
26219 $as_echo "gr-audio-jack requires package jack, not found." >&6; }
26220 else
26221         JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
26222         JACK_LIBS=$pkg_cv_JACK_LIBS
26223         JACK_INCLUDEDIR=$pkg_cv_JACK_INCLUDEDIR
26224
26225         JACK_CPPFLAGS=""
26226         for flag in $JACK_CFLAGS; do
26227           case $flag in
26228           -I* | -D* | -U*) JACK_CPPFLAGS="$JACK_CPPFLAGS $flag" ;;
26229           esac
26230         done
26231         pkg_cv_JACK_CPPFLAGS=$JACK_CPPFLAGS
26232
26233
26234         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26235 $as_echo "yes" >&6; }
26236         :
26237 fi
26238     fi
26239
26240     ac_config_files="$ac_config_files gr-audio-jack/Makefile gr-audio-jack/gnuradio-audio-jack.pc gr-audio-jack/src/Makefile gr-audio-jack/src/run_tests"
26241
26242
26243
26244
26245     gr_audio_jack_with=no
26246     if test $passed = no; then
26247         if test x$enable_gr_audio_jack = xyes; then
26248             as_fn_error $? "Component gr-audio-jack has errors; stopping." "$LINENO" 5
26249         else
26250             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-audio-jack." >&5
26251 $as_echo "Not building component gr-audio-jack." >&6; }
26252         fi
26253     else
26254         if test $passed = with; then
26255             with_dirs="$with_dirs gr-audio-jack"
26256
26257     if test "x${gr_audio_jack_INCLUDES}" != "x"; then
26258         if test "x$with_INCLUDES" = "x"; then
26259             with_INCLUDES="${gr_audio_jack_INCLUDES}"
26260         else
26261             with_INCLUDES="${gr_audio_jack_INCLUDES}"" ""$with_INCLUDES"
26262         fi
26263         gr_audio_jack_INCLUDES=
26264     fi
26265
26266
26267     if test "x${gr_audio_jack_SWIG_INCLUDES}" != "x"; then
26268         if test "x$with_SWIG_INCLUDES" = "x"; then
26269             with_SWIG_INCLUDES="${gr_audio_jack_SWIG_INCLUDES}"
26270         else
26271             with_SWIG_INCLUDES="${gr_audio_jack_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
26272         fi
26273         gr_audio_jack_SWIG_INCLUDES=
26274     fi
26275
26276
26277     if test "x${gr_audio_jack_PYDIRPATH}" != "x"; then
26278         if test "x$with_PYDIRPATH" = "x"; then
26279             with_PYDIRPATH="${gr_audio_jack_PYDIRPATH}"
26280         else
26281             with_PYDIRPATH="${gr_audio_jack_PYDIRPATH}"":""$with_PYDIRPATH"
26282         fi
26283         gr_audio_jack_PYDIRPATH=
26284     fi
26285
26286
26287     if test "x${gr_audio_jack_SWIGDIRPATH}" != "x"; then
26288         if test "x$with_SWIGDIRPATH" = "x"; then
26289             with_SWIGDIRPATH="${gr_audio_jack_SWIGDIRPATH}"
26290         else
26291             with_SWIGDIRPATH="${gr_audio_jack_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
26292         fi
26293         gr_audio_jack_SWIGDIRPATH=
26294     fi
26295
26296
26297     if test "x${gr_audio_jack_LIBDIRPATH}" != "x"; then
26298         if test "x$with_LIBDIRPATH" = "x"; then
26299             with_LIBDIRPATH="${gr_audio_jack_LIBDIRPATH}"
26300         else
26301             with_LIBDIRPATH="${gr_audio_jack_LIBDIRPATH}"":""$with_LIBDIRPATH"
26302         fi
26303         gr_audio_jack_LIBDIRPATH=
26304     fi
26305
26306             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-jack will be included from a pre-installed library and includes." >&5
26307 $as_echo "Component gr-audio-jack will be included from a pre-installed library and includes." >&6; }
26308             gr_audio_jack_with=yes
26309         else
26310             gr_audio_jack_LDFLAG=
26311             if test x$enable_gr_audio_jack != xno; then
26312                         ac_config_commands="$ac_config_commands run_tests_jack"
26313
26314
26315                 build_dirs="$build_dirs gr-audio-jack"
26316                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-jack passed configuration checks; building." >&5
26317 $as_echo "Component gr-audio-jack passed configuration checks; building." >&6; }
26318             else
26319                 passed=no
26320                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-jack passed configuration checks; but not building." >&5
26321 $as_echo "Component gr-audio-jack passed configuration checks; but not building." >&6; }
26322             fi
26323         fi
26324     fi
26325     if test $passed = no; then
26326         skipped_dirs="$skipped_dirs gr-audio-jack"
26327         gr_audio_jack_skipped=yes
26328     else
26329         gr_audio_jack_skipped=no
26330     fi
26331
26332
26333
26334
26335
26336
26337
26338
26339
26340
26341
26342     passed=yes
26343     # Check whether --enable-gr-audio-oss was given.
26344 if test "${enable_gr_audio_oss+set}" = set; then :
26345   enableval=$enable_gr_audio_oss;
26346 else
26347
26348         enable_gr_audio_oss=$enable_all_components
26349         if test x$enable_all_components = xno; then
26350             passed=no
26351         fi
26352
26353 fi
26354
26355
26356
26357
26358
26359     if test $passed != no; then
26360         if test $passed = yes; then
26361                         if test x$gnuradio_core_skipped = xyes; then
26362                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-oss requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
26363 $as_echo "Component gr-audio-oss requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
26364                 passed=no
26365             fi
26366         else
26367                         if test x$gnuradio_core_with = xno; then
26368                 as_fn_error $? "Component gr-audio-oss requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
26369             fi
26370         fi
26371     fi
26372
26373
26374                     if test $passed = yes; then
26375                 case $host_os in
26376           netbsd*)
26377             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lossaudio" >&5
26378 $as_echo_n "checking for main in -lossaudio... " >&6; }
26379 if test "${ac_cv_lib_ossaudio_main+set}" = set; then :
26380   $as_echo_n "(cached) " >&6
26381 else
26382   ac_check_lib_save_LIBS=$LIBS
26383 LIBS="-lossaudio  $LIBS"
26384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26385 /* end confdefs.h.  */
26386
26387
26388 int
26389 main ()
26390 {
26391 return main ();
26392   ;
26393   return 0;
26394 }
26395 _ACEOF
26396 if ac_fn_c_try_link "$LINENO"; then :
26397   ac_cv_lib_ossaudio_main=yes
26398 else
26399   ac_cv_lib_ossaudio_main=no
26400 fi
26401 rm -f core conftest.err conftest.$ac_objext \
26402     conftest$ac_exeext conftest.$ac_ext
26403 LIBS=$ac_check_lib_save_LIBS
26404 fi
26405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio_main" >&5
26406 $as_echo "$ac_cv_lib_ossaudio_main" >&6; }
26407 if test "x$ac_cv_lib_ossaudio_main" = x""yes; then :
26408   cat >>confdefs.h <<_ACEOF
26409 #define HAVE_LIBOSSAUDIO 1
26410 _ACEOF
26411
26412   LIBS="-lossaudio $LIBS"
26413
26414 else
26415   passed=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-audio-oss requires library ossaudio, not found." >&5
26416 $as_echo "gr-audio-oss requires library ossaudio, not found." >&6; }
26417 fi
26418 ac_cv_lib_ossaudio=ac_cv_lib_ossaudio_main
26419
26420             if test $passed != no; then
26421                 OSS_LIBS=-lossaudio
26422
26423                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OSS library $OSS_LIBS" >&5
26424 $as_echo "Using OSS library $OSS_LIBS" >&6; }
26425             fi
26426             ;;
26427           darwin*)
26428                     passed=no
26429             ;;
26430           *)
26431             ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
26432 if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then :
26433
26434 else
26435   passed=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-audio-oss requires sys/soundcard.h, not found." >&5
26436 $as_echo "gr-audio-oss requires sys/soundcard.h, not found." >&6; }
26437 fi
26438
26439
26440         esac
26441     fi
26442
26443     ac_config_files="$ac_config_files gr-audio-oss/Makefile gr-audio-oss/gnuradio-audio-oss.pc gr-audio-oss/src/Makefile gr-audio-oss/src/run_tests"
26444
26445
26446
26447
26448     gr_audio_oss_with=no
26449     if test $passed = no; then
26450         if test x$enable_gr_audio_oss = xyes; then
26451             as_fn_error $? "Component gr-audio-oss has errors; stopping." "$LINENO" 5
26452         else
26453             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-audio-oss." >&5
26454 $as_echo "Not building component gr-audio-oss." >&6; }
26455         fi
26456     else
26457         if test $passed = with; then
26458             with_dirs="$with_dirs gr-audio-oss"
26459
26460     if test "x${gr_audio_oss_INCLUDES}" != "x"; then
26461         if test "x$with_INCLUDES" = "x"; then
26462             with_INCLUDES="${gr_audio_oss_INCLUDES}"
26463         else
26464             with_INCLUDES="${gr_audio_oss_INCLUDES}"" ""$with_INCLUDES"
26465         fi
26466         gr_audio_oss_INCLUDES=
26467     fi
26468
26469
26470     if test "x${gr_audio_oss_SWIG_INCLUDES}" != "x"; then
26471         if test "x$with_SWIG_INCLUDES" = "x"; then
26472             with_SWIG_INCLUDES="${gr_audio_oss_SWIG_INCLUDES}"
26473         else
26474             with_SWIG_INCLUDES="${gr_audio_oss_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
26475         fi
26476         gr_audio_oss_SWIG_INCLUDES=
26477     fi
26478
26479
26480     if test "x${gr_audio_oss_PYDIRPATH}" != "x"; then
26481         if test "x$with_PYDIRPATH" = "x"; then
26482             with_PYDIRPATH="${gr_audio_oss_PYDIRPATH}"
26483         else
26484             with_PYDIRPATH="${gr_audio_oss_PYDIRPATH}"":""$with_PYDIRPATH"
26485         fi
26486         gr_audio_oss_PYDIRPATH=
26487     fi
26488
26489
26490     if test "x${gr_audio_oss_SWIGDIRPATH}" != "x"; then
26491         if test "x$with_SWIGDIRPATH" = "x"; then
26492             with_SWIGDIRPATH="${gr_audio_oss_SWIGDIRPATH}"
26493         else
26494             with_SWIGDIRPATH="${gr_audio_oss_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
26495         fi
26496         gr_audio_oss_SWIGDIRPATH=
26497     fi
26498
26499
26500     if test "x${gr_audio_oss_LIBDIRPATH}" != "x"; then
26501         if test "x$with_LIBDIRPATH" = "x"; then
26502             with_LIBDIRPATH="${gr_audio_oss_LIBDIRPATH}"
26503         else
26504             with_LIBDIRPATH="${gr_audio_oss_LIBDIRPATH}"":""$with_LIBDIRPATH"
26505         fi
26506         gr_audio_oss_LIBDIRPATH=
26507     fi
26508
26509             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-oss will be included from a pre-installed library and includes." >&5
26510 $as_echo "Component gr-audio-oss will be included from a pre-installed library and includes." >&6; }
26511             gr_audio_oss_with=yes
26512         else
26513             gr_audio_oss_LDFLAG=
26514             if test x$enable_gr_audio_oss != xno; then
26515                         ac_config_commands="$ac_config_commands run_tests_oss"
26516
26517
26518                 build_dirs="$build_dirs gr-audio-oss"
26519                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-oss passed configuration checks; building." >&5
26520 $as_echo "Component gr-audio-oss passed configuration checks; building." >&6; }
26521             else
26522                 passed=no
26523                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-oss passed configuration checks; but not building." >&5
26524 $as_echo "Component gr-audio-oss passed configuration checks; but not building." >&6; }
26525             fi
26526         fi
26527     fi
26528     if test $passed = no; then
26529         skipped_dirs="$skipped_dirs gr-audio-oss"
26530         gr_audio_oss_skipped=yes
26531     else
26532         gr_audio_oss_skipped=no
26533     fi
26534
26535
26536
26537
26538
26539
26540
26541
26542
26543
26544
26545     passed=yes
26546     # Check whether --enable-gr-audio-osx was given.
26547 if test "${enable_gr_audio_osx+set}" = set; then :
26548   enableval=$enable_gr_audio_osx;
26549 else
26550
26551         enable_gr_audio_osx=$enable_all_components
26552         if test x$enable_all_components = xno; then
26553             passed=no
26554         fi
26555
26556 fi
26557
26558
26559
26560
26561
26562     if test $passed != no; then
26563         if test $passed = yes; then
26564                         if test x$gnuradio_core_skipped = xyes; then
26565                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-osx requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
26566 $as_echo "Component gr-audio-osx requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
26567                 passed=no
26568             fi
26569         else
26570                         if test x$gnuradio_core_with = xno; then
26571                 as_fn_error $? "Component gr-audio-osx requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
26572             fi
26573         fi
26574     fi
26575
26576
26577                     if test $passed = yes; then
26578         case "$host_os" in
26579           darwin*)
26580
26581     audiounitok=yes
26582     case "$host_os" in
26583         darwin*);;
26584         *)
26585            audiounitok=no
26586            { $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-audio-osx requires darwin or MacOS X." >&5
26587 $as_echo "gr-audio-osx requires darwin or MacOS X." >&6; }
26588     esac
26589
26590     for ac_header in AudioUnit/AudioUnit.h
26591 do :
26592   ac_fn_c_check_header_mongrel "$LINENO" "AudioUnit/AudioUnit.h" "ac_cv_header_AudioUnit_AudioUnit_h" "$ac_includes_default"
26593 if test "x$ac_cv_header_AudioUnit_AudioUnit_h" = x""yes; then :
26594   cat >>confdefs.h <<_ACEOF
26595 #define HAVE_AUDIOUNIT_AUDIOUNIT_H 1
26596 _ACEOF
26597
26598 else
26599   audiounitok=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-audio-osx requires AudioUnit/AudioUnit.h, which is available on MacOS X." >&5
26600 $as_echo "gr-audio-osx requires AudioUnit/AudioUnit.h, which is available on MacOS X." >&6; }
26601 fi
26602
26603 done
26604
26605
26606     for ac_header in AudioToolbox/AudioToolbox.h
26607 do :
26608   ac_fn_c_check_header_mongrel "$LINENO" "AudioToolbox/AudioToolbox.h" "ac_cv_header_AudioToolbox_AudioToolbox_h" "$ac_includes_default"
26609 if test "x$ac_cv_header_AudioToolbox_AudioToolbox_h" = x""yes; then :
26610   cat >>confdefs.h <<_ACEOF
26611 #define HAVE_AUDIOTOOLBOX_AUDIOTOOLBOX_H 1
26612 _ACEOF
26613
26614 else
26615   audiounitok=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-audio-osx requires AudioToolbox/AudioToolbox.h, which is available on MacOS X." >&5
26616 $as_echo "gr-audio-osx requires AudioToolbox/AudioToolbox.h, which is available on MacOS X." >&6; }
26617 fi
26618
26619 done
26620
26621
26622     if test $audiounitok = yes; then
26623         :
26624     else
26625         passed=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-audio-osx requires AudioUnit, not found." >&5
26626 $as_echo "gr-audio-osx requires AudioUnit, not found." >&6; }
26627     fi
26628
26629               ;;
26630           *)
26631               { $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-audio-osx will build on Mac OS X and Darwin only." >&5
26632 $as_echo "gr-audio-osx will build on Mac OS X and Darwin only." >&6; }
26633               passed=no
26634               ;;
26635         esac
26636     fi
26637
26638     ac_config_files="$ac_config_files gr-audio-osx/Makefile gr-audio-osx/src/Makefile gr-audio-osx/src/run_tests"
26639
26640
26641
26642
26643     gr_audio_osx_with=no
26644     if test $passed = no; then
26645         if test x$enable_gr_audio_osx = xyes; then
26646             as_fn_error $? "Component gr-audio-osx has errors; stopping." "$LINENO" 5
26647         else
26648             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-audio-osx." >&5
26649 $as_echo "Not building component gr-audio-osx." >&6; }
26650         fi
26651     else
26652         if test $passed = with; then
26653             with_dirs="$with_dirs gr-audio-osx"
26654
26655     if test "x${gr_audio_osx_INCLUDES}" != "x"; then
26656         if test "x$with_INCLUDES" = "x"; then
26657             with_INCLUDES="${gr_audio_osx_INCLUDES}"
26658         else
26659             with_INCLUDES="${gr_audio_osx_INCLUDES}"" ""$with_INCLUDES"
26660         fi
26661         gr_audio_osx_INCLUDES=
26662     fi
26663
26664
26665     if test "x${gr_audio_osx_SWIG_INCLUDES}" != "x"; then
26666         if test "x$with_SWIG_INCLUDES" = "x"; then
26667             with_SWIG_INCLUDES="${gr_audio_osx_SWIG_INCLUDES}"
26668         else
26669             with_SWIG_INCLUDES="${gr_audio_osx_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
26670         fi
26671         gr_audio_osx_SWIG_INCLUDES=
26672     fi
26673
26674
26675     if test "x${gr_audio_osx_PYDIRPATH}" != "x"; then
26676         if test "x$with_PYDIRPATH" = "x"; then
26677             with_PYDIRPATH="${gr_audio_osx_PYDIRPATH}"
26678         else
26679             with_PYDIRPATH="${gr_audio_osx_PYDIRPATH}"":""$with_PYDIRPATH"
26680         fi
26681         gr_audio_osx_PYDIRPATH=
26682     fi
26683
26684
26685     if test "x${gr_audio_osx_SWIGDIRPATH}" != "x"; then
26686         if test "x$with_SWIGDIRPATH" = "x"; then
26687             with_SWIGDIRPATH="${gr_audio_osx_SWIGDIRPATH}"
26688         else
26689             with_SWIGDIRPATH="${gr_audio_osx_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
26690         fi
26691         gr_audio_osx_SWIGDIRPATH=
26692     fi
26693
26694
26695     if test "x${gr_audio_osx_LIBDIRPATH}" != "x"; then
26696         if test "x$with_LIBDIRPATH" = "x"; then
26697             with_LIBDIRPATH="${gr_audio_osx_LIBDIRPATH}"
26698         else
26699             with_LIBDIRPATH="${gr_audio_osx_LIBDIRPATH}"":""$with_LIBDIRPATH"
26700         fi
26701         gr_audio_osx_LIBDIRPATH=
26702     fi
26703
26704             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-osx will be included from a pre-installed library and includes." >&5
26705 $as_echo "Component gr-audio-osx will be included from a pre-installed library and includes." >&6; }
26706             gr_audio_osx_with=yes
26707         else
26708             gr_audio_osx_LDFLAG=
26709             if test x$enable_gr_audio_osx != xno; then
26710                         ac_config_commands="$ac_config_commands run_tests_osx"
26711
26712
26713                 build_dirs="$build_dirs gr-audio-osx"
26714                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-osx passed configuration checks; building." >&5
26715 $as_echo "Component gr-audio-osx passed configuration checks; building." >&6; }
26716             else
26717                 passed=no
26718                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-osx passed configuration checks; but not building." >&5
26719 $as_echo "Component gr-audio-osx passed configuration checks; but not building." >&6; }
26720             fi
26721         fi
26722     fi
26723     if test $passed = no; then
26724         skipped_dirs="$skipped_dirs gr-audio-osx"
26725         gr_audio_osx_skipped=yes
26726     else
26727         gr_audio_osx_skipped=no
26728     fi
26729
26730
26731
26732
26733
26734
26735
26736
26737
26738
26739
26740     passed=yes
26741     # Check whether --enable-gr-audio-portaudio was given.
26742 if test "${enable_gr_audio_portaudio+set}" = set; then :
26743   enableval=$enable_gr_audio_portaudio;
26744 else
26745
26746         enable_gr_audio_portaudio=$enable_all_components
26747         if test x$enable_all_components = xno; then
26748             passed=no
26749         fi
26750
26751 fi
26752
26753
26754
26755
26756
26757     if test $passed != no; then
26758         if test $passed = yes; then
26759                         if test x$gnuradio_core_skipped = xyes; then
26760                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-portaudio requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
26761 $as_echo "Component gr-audio-portaudio requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
26762                 passed=no
26763             fi
26764         else
26765                         if test x$gnuradio_core_with = xno; then
26766                 as_fn_error $? "Component gr-audio-portaudio requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
26767             fi
26768         fi
26769     fi
26770
26771
26772                     if test $passed = yes; then
26773
26774
26775
26776 pkg_failed=no
26777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PORTAUDIO" >&5
26778 $as_echo_n "checking for PORTAUDIO... " >&6; }
26779
26780 if test -n "$PKG_CONFIG"; then
26781     if test -n "$PORTAUDIO_CFLAGS"; then
26782         pkg_cv_PORTAUDIO_CFLAGS="$PORTAUDIO_CFLAGS"
26783     else
26784         if test -n "$PKG_CONFIG" && \
26785     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"portaudio-2.0 >= 19\""; } >&5
26786   ($PKG_CONFIG --exists --print-errors "portaudio-2.0 >= 19") 2>&5
26787   ac_status=$?
26788   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26789   test $ac_status = 0; }; then
26790   pkg_cv_PORTAUDIO_CFLAGS=`$PKG_CONFIG --cflags "portaudio-2.0 >= 19" 2>/dev/null`
26791 else
26792   pkg_failed=yes
26793 fi
26794     fi
26795 else
26796         pkg_failed=untried
26797 fi
26798
26799 if test x$cross_compiling = xyes
26800 then
26801     if test -n "$PKG_CONFIG"; then
26802     if test -n "$PORTAUDIO_LIBS"; then
26803         pkg_cv_PORTAUDIO_LIBS="$PORTAUDIO_LIBS"
26804     else
26805         if test -n "$PKG_CONFIG" && \
26806     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"portaudio-2.0 >= 19\""; } >&5
26807   ($PKG_CONFIG --exists --print-errors "portaudio-2.0 >= 19") 2>&5
26808   ac_status=$?
26809   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26810   test $ac_status = 0; }; then
26811   pkg_cv_PORTAUDIO_LIBS=`$PKG_CONFIG --libs --static "portaudio-2.0 >= 19" 2>/dev/null`
26812 else
26813   pkg_failed=yes
26814 fi
26815     fi
26816 else
26817         pkg_failed=untried
26818 fi
26819     _pkg_tmp=
26820   for flag in $pkg_cv_PORTAUDIO_LIBS; do
26821     case $flag in
26822     (-L/lib* | -L/usr/lib* )       ;; # ignore
26823     (*) _pkg_tmp="$_pkg_tmp $flag" ;;
26824     esac
26825   done
26826   pkg_cv_PORTAUDIO_LIBS="$_pkg_tmp"
26827 else
26828   if test -n "$PKG_CONFIG"; then
26829     if test -n "$PORTAUDIO_LIBS"; then
26830         pkg_cv_PORTAUDIO_LIBS="$PORTAUDIO_LIBS"
26831     else
26832         if test -n "$PKG_CONFIG" && \
26833     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"portaudio-2.0 >= 19\""; } >&5
26834   ($PKG_CONFIG --exists --print-errors "portaudio-2.0 >= 19") 2>&5
26835   ac_status=$?
26836   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26837   test $ac_status = 0; }; then
26838   pkg_cv_PORTAUDIO_LIBS=`$PKG_CONFIG --libs --static "portaudio-2.0 >= 19" 2>/dev/null`
26839 else
26840   pkg_failed=yes
26841 fi
26842     fi
26843 else
26844         pkg_failed=untried
26845 fi
26846 fi
26847
26848 if test -n "$PKG_CONFIG"; then
26849     if test -n "$PORTAUDIO_INCLUDEDIR"; then
26850         pkg_cv_PORTAUDIO_INCLUDEDIR="$PORTAUDIO_INCLUDEDIR"
26851     else
26852         if test -n "$PKG_CONFIG" && \
26853     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"portaudio-2.0 >= 19\""; } >&5
26854   ($PKG_CONFIG --exists --print-errors "portaudio-2.0 >= 19") 2>&5
26855   ac_status=$?
26856   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26857   test $ac_status = 0; }; then
26858   pkg_cv_PORTAUDIO_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "portaudio-2.0 >= 19" 2>/dev/null`
26859 else
26860   pkg_failed=yes
26861 fi
26862     fi
26863 else
26864         pkg_failed=untried
26865 fi
26866
26867
26868
26869
26870 if test $pkg_failed = yes; then
26871
26872 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26873         _pkg_short_errors_supported=yes
26874 else
26875         _pkg_short_errors_supported=no
26876 fi
26877         if test $_pkg_short_errors_supported = yes; then
26878                 PORTAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "portaudio-2.0 >= 19"`
26879         else
26880                 PORTAUDIO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "portaudio-2.0 >= 19"`
26881         fi
26882         # Put the nasty error message in config.log where it belongs
26883         echo "$PORTAUDIO_PKG_ERRORS" >&5
26884
26885         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26886 $as_echo "no" >&6; }
26887                 passed=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-audio-portaudio requires package portaudio, not found." >&5
26888 $as_echo "gr-audio-portaudio requires package portaudio, not found." >&6; }
26889 elif test $pkg_failed = untried; then
26890         passed=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-audio-portaudio requires package portaudio, not found." >&5
26891 $as_echo "gr-audio-portaudio requires package portaudio, not found." >&6; }
26892 else
26893         PORTAUDIO_CFLAGS=$pkg_cv_PORTAUDIO_CFLAGS
26894         PORTAUDIO_LIBS=$pkg_cv_PORTAUDIO_LIBS
26895         PORTAUDIO_INCLUDEDIR=$pkg_cv_PORTAUDIO_INCLUDEDIR
26896
26897         PORTAUDIO_CPPFLAGS=""
26898         for flag in $PORTAUDIO_CFLAGS; do
26899           case $flag in
26900           -I* | -D* | -U*) PORTAUDIO_CPPFLAGS="$PORTAUDIO_CPPFLAGS $flag" ;;
26901           esac
26902         done
26903         pkg_cv_PORTAUDIO_CPPFLAGS=$PORTAUDIO_CPPFLAGS
26904
26905
26906         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26907 $as_echo "yes" >&6; }
26908         :
26909 fi
26910     fi
26911
26912     ac_config_files="$ac_config_files gr-audio-portaudio/Makefile gr-audio-portaudio/gnuradio-audio-portaudio.pc gr-audio-portaudio/src/Makefile gr-audio-portaudio/src/run_tests"
26913
26914
26915
26916
26917     gr_audio_portaudio_with=no
26918     if test $passed = no; then
26919         if test x$enable_gr_audio_portaudio = xyes; then
26920             as_fn_error $? "Component gr-audio-portaudio has errors; stopping." "$LINENO" 5
26921         else
26922             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-audio-portaudio." >&5
26923 $as_echo "Not building component gr-audio-portaudio." >&6; }
26924         fi
26925     else
26926         if test $passed = with; then
26927             with_dirs="$with_dirs gr-audio-portaudio"
26928
26929     if test "x${gr_audio_portaudio_INCLUDES}" != "x"; then
26930         if test "x$with_INCLUDES" = "x"; then
26931             with_INCLUDES="${gr_audio_portaudio_INCLUDES}"
26932         else
26933             with_INCLUDES="${gr_audio_portaudio_INCLUDES}"" ""$with_INCLUDES"
26934         fi
26935         gr_audio_portaudio_INCLUDES=
26936     fi
26937
26938
26939     if test "x${gr_audio_portaudio_SWIG_INCLUDES}" != "x"; then
26940         if test "x$with_SWIG_INCLUDES" = "x"; then
26941             with_SWIG_INCLUDES="${gr_audio_portaudio_SWIG_INCLUDES}"
26942         else
26943             with_SWIG_INCLUDES="${gr_audio_portaudio_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
26944         fi
26945         gr_audio_portaudio_SWIG_INCLUDES=
26946     fi
26947
26948
26949     if test "x${gr_audio_portaudio_PYDIRPATH}" != "x"; then
26950         if test "x$with_PYDIRPATH" = "x"; then
26951             with_PYDIRPATH="${gr_audio_portaudio_PYDIRPATH}"
26952         else
26953             with_PYDIRPATH="${gr_audio_portaudio_PYDIRPATH}"":""$with_PYDIRPATH"
26954         fi
26955         gr_audio_portaudio_PYDIRPATH=
26956     fi
26957
26958
26959     if test "x${gr_audio_portaudio_SWIGDIRPATH}" != "x"; then
26960         if test "x$with_SWIGDIRPATH" = "x"; then
26961             with_SWIGDIRPATH="${gr_audio_portaudio_SWIGDIRPATH}"
26962         else
26963             with_SWIGDIRPATH="${gr_audio_portaudio_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
26964         fi
26965         gr_audio_portaudio_SWIGDIRPATH=
26966     fi
26967
26968
26969     if test "x${gr_audio_portaudio_LIBDIRPATH}" != "x"; then
26970         if test "x$with_LIBDIRPATH" = "x"; then
26971             with_LIBDIRPATH="${gr_audio_portaudio_LIBDIRPATH}"
26972         else
26973             with_LIBDIRPATH="${gr_audio_portaudio_LIBDIRPATH}"":""$with_LIBDIRPATH"
26974         fi
26975         gr_audio_portaudio_LIBDIRPATH=
26976     fi
26977
26978             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-portaudio will be included from a pre-installed library and includes." >&5
26979 $as_echo "Component gr-audio-portaudio will be included from a pre-installed library and includes." >&6; }
26980             gr_audio_portaudio_with=yes
26981         else
26982             gr_audio_portaudio_LDFLAG=
26983             if test x$enable_gr_audio_portaudio != xno; then
26984                         ac_config_commands="$ac_config_commands run_tests_portaudio"
26985
26986
26987                 build_dirs="$build_dirs gr-audio-portaudio"
26988                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-portaudio passed configuration checks; building." >&5
26989 $as_echo "Component gr-audio-portaudio passed configuration checks; building." >&6; }
26990             else
26991                 passed=no
26992                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-portaudio passed configuration checks; but not building." >&5
26993 $as_echo "Component gr-audio-portaudio passed configuration checks; but not building." >&6; }
26994             fi
26995         fi
26996     fi
26997     if test $passed = no; then
26998         skipped_dirs="$skipped_dirs gr-audio-portaudio"
26999         gr_audio_portaudio_skipped=yes
27000     else
27001         gr_audio_portaudio_skipped=no
27002     fi
27003
27004
27005
27006
27007
27008
27009
27010
27011
27012
27013
27014     passed=yes
27015     # Check whether --enable-gr-audio-windows was given.
27016 if test "${enable_gr_audio_windows+set}" = set; then :
27017   enableval=$enable_gr_audio_windows;
27018 else
27019
27020         enable_gr_audio_windows=$enable_all_components
27021         if test x$enable_all_components = xno; then
27022             passed=no
27023         fi
27024
27025 fi
27026
27027
27028
27029
27030
27031     if test $passed != no; then
27032         if test $passed = yes; then
27033                         if test x$gnuradio_core_skipped = xyes; then
27034                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-windows requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
27035 $as_echo "Component gr-audio-windows requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
27036                 passed=no
27037             fi
27038         else
27039                         if test x$gnuradio_core_with = xno; then
27040                 as_fn_error $? "Component gr-audio-windows requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
27041             fi
27042         fi
27043     fi
27044
27045
27046                     if test $passed = yes; then
27047         case "$host_os" in
27048           cygwin*|win*|mingw*)
27049                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwinmm" >&5
27050 $as_echo_n "checking for main in -lwinmm... " >&6; }
27051 if test "${ac_cv_lib_winmm_main+set}" = set; then :
27052   $as_echo_n "(cached) " >&6
27053 else
27054   ac_check_lib_save_LIBS=$LIBS
27055 LIBS="-lwinmm  $LIBS"
27056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27057 /* end confdefs.h.  */
27058
27059
27060 int
27061 main ()
27062 {
27063 return main ();
27064   ;
27065   return 0;
27066 }
27067 _ACEOF
27068 if ac_fn_c_try_link "$LINENO"; then :
27069   ac_cv_lib_winmm_main=yes
27070 else
27071   ac_cv_lib_winmm_main=no
27072 fi
27073 rm -f core conftest.err conftest.$ac_objext \
27074     conftest$ac_exeext conftest.$ac_ext
27075 LIBS=$ac_check_lib_save_LIBS
27076 fi
27077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_winmm_main" >&5
27078 $as_echo "$ac_cv_lib_winmm_main" >&6; }
27079 if test "x$ac_cv_lib_winmm_main" = x""yes; then :
27080   cat >>confdefs.h <<_ACEOF
27081 #define HAVE_LIBWINMM 1
27082 _ACEOF
27083
27084   LIBS="-lwinmm $LIBS"
27085
27086 else
27087   passed=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-audio-windows requires library winmm, not found." >&5
27088 $as_echo "gr-audio-windows requires library winmm, not found." >&6; }
27089 fi
27090 ac_cv_lib_winmm=ac_cv_lib_winmm_main
27091
27092             ;;
27093           *)
27094             { $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-audio-windows will build on a Windows Unix environment only." >&5
27095 $as_echo "gr-audio-windows will build on a Windows Unix environment only." >&6; }
27096           passed=no
27097           ;;
27098         esac
27099     fi
27100
27101     ac_config_files="$ac_config_files gr-audio-windows/Makefile gr-audio-windows/src/Makefile gr-audio-windows/src/run_tests"
27102
27103
27104
27105
27106     gr_audio_windows_with=no
27107     if test $passed = no; then
27108         if test x$enable_gr_audio_windows = xyes; then
27109             as_fn_error $? "Component gr-audio-windows has errors; stopping." "$LINENO" 5
27110         else
27111             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-audio-windows." >&5
27112 $as_echo "Not building component gr-audio-windows." >&6; }
27113         fi
27114     else
27115         if test $passed = with; then
27116             with_dirs="$with_dirs gr-audio-windows"
27117
27118     if test "x${gr_audio_windows_INCLUDES}" != "x"; then
27119         if test "x$with_INCLUDES" = "x"; then
27120             with_INCLUDES="${gr_audio_windows_INCLUDES}"
27121         else
27122             with_INCLUDES="${gr_audio_windows_INCLUDES}"" ""$with_INCLUDES"
27123         fi
27124         gr_audio_windows_INCLUDES=
27125     fi
27126
27127
27128     if test "x${gr_audio_windows_SWIG_INCLUDES}" != "x"; then
27129         if test "x$with_SWIG_INCLUDES" = "x"; then
27130             with_SWIG_INCLUDES="${gr_audio_windows_SWIG_INCLUDES}"
27131         else
27132             with_SWIG_INCLUDES="${gr_audio_windows_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
27133         fi
27134         gr_audio_windows_SWIG_INCLUDES=
27135     fi
27136
27137
27138     if test "x${gr_audio_windows_PYDIRPATH}" != "x"; then
27139         if test "x$with_PYDIRPATH" = "x"; then
27140             with_PYDIRPATH="${gr_audio_windows_PYDIRPATH}"
27141         else
27142             with_PYDIRPATH="${gr_audio_windows_PYDIRPATH}"":""$with_PYDIRPATH"
27143         fi
27144         gr_audio_windows_PYDIRPATH=
27145     fi
27146
27147
27148     if test "x${gr_audio_windows_SWIGDIRPATH}" != "x"; then
27149         if test "x$with_SWIGDIRPATH" = "x"; then
27150             with_SWIGDIRPATH="${gr_audio_windows_SWIGDIRPATH}"
27151         else
27152             with_SWIGDIRPATH="${gr_audio_windows_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
27153         fi
27154         gr_audio_windows_SWIGDIRPATH=
27155     fi
27156
27157
27158     if test "x${gr_audio_windows_LIBDIRPATH}" != "x"; then
27159         if test "x$with_LIBDIRPATH" = "x"; then
27160             with_LIBDIRPATH="${gr_audio_windows_LIBDIRPATH}"
27161         else
27162             with_LIBDIRPATH="${gr_audio_windows_LIBDIRPATH}"":""$with_LIBDIRPATH"
27163         fi
27164         gr_audio_windows_LIBDIRPATH=
27165     fi
27166
27167             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-windows will be included from a pre-installed library and includes." >&5
27168 $as_echo "Component gr-audio-windows will be included from a pre-installed library and includes." >&6; }
27169             gr_audio_windows_with=yes
27170         else
27171             gr_audio_windows_LDFLAG=
27172             if test x$enable_gr_audio_windows != xno; then
27173                 WINAUDIO_LIBS=-lwinmm
27174
27175                 ac_config_commands="$ac_config_commands run_tests_audio_windows"
27176
27177
27178                 build_dirs="$build_dirs gr-audio-windows"
27179                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-windows passed configuration checks; building." >&5
27180 $as_echo "Component gr-audio-windows passed configuration checks; building." >&6; }
27181             else
27182                 passed=no
27183                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-windows passed configuration checks; but not building." >&5
27184 $as_echo "Component gr-audio-windows passed configuration checks; but not building." >&6; }
27185             fi
27186         fi
27187     fi
27188     if test $passed = no; then
27189         skipped_dirs="$skipped_dirs gr-audio-windows"
27190         gr_audio_windows_skipped=yes
27191     else
27192         gr_audio_windows_skipped=no
27193     fi
27194
27195
27196
27197
27198
27199
27200
27201
27202
27203
27204
27205     passed=yes
27206     # Check whether --enable-gr-atsc was given.
27207 if test "${enable_gr_atsc+set}" = set; then :
27208   enableval=$enable_gr_atsc;
27209 else
27210
27211         enable_gr_atsc=$enable_all_components
27212         if test x$enable_all_components = xno; then
27213             passed=no
27214         fi
27215
27216 fi
27217
27218
27219
27220
27221
27222     if test $passed != no; then
27223         if test $passed = yes; then
27224                         if test x$gnuradio_core_skipped = xyes; then
27225                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-atsc requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
27226 $as_echo "Component gr-atsc requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
27227                 passed=no
27228             fi
27229         else
27230                         if test x$gnuradio_core_with = xno; then
27231                 as_fn_error $? "Component gr-atsc requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
27232             fi
27233         fi
27234     fi
27235
27236
27237     ac_config_files="$ac_config_files gr-atsc/Makefile gr-atsc/gnuradio-atsc.pc gr-atsc/doc/Makefile gr-atsc/src/Makefile gr-atsc/src/lib/Makefile gr-atsc/src/python/Makefile gr-atsc/src/python/run_tests"
27238
27239
27240
27241
27242     gr_atsc_with=no
27243     if test $passed = no; then
27244         if test x$enable_gr_atsc = xyes; then
27245             as_fn_error $? "Component gr-atsc has errors; stopping." "$LINENO" 5
27246         else
27247             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-atsc." >&5
27248 $as_echo "Not building component gr-atsc." >&6; }
27249         fi
27250     else
27251         if test $passed = with; then
27252             with_dirs="$with_dirs gr-atsc"
27253
27254     if test "x${gr_atsc_INCLUDES}" != "x"; then
27255         if test "x$with_INCLUDES" = "x"; then
27256             with_INCLUDES="${gr_atsc_INCLUDES}"
27257         else
27258             with_INCLUDES="${gr_atsc_INCLUDES}"" ""$with_INCLUDES"
27259         fi
27260         gr_atsc_INCLUDES=
27261     fi
27262
27263
27264     if test "x${gr_atsc_SWIG_INCLUDES}" != "x"; then
27265         if test "x$with_SWIG_INCLUDES" = "x"; then
27266             with_SWIG_INCLUDES="${gr_atsc_SWIG_INCLUDES}"
27267         else
27268             with_SWIG_INCLUDES="${gr_atsc_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
27269         fi
27270         gr_atsc_SWIG_INCLUDES=
27271     fi
27272
27273
27274     if test "x${gr_atsc_PYDIRPATH}" != "x"; then
27275         if test "x$with_PYDIRPATH" = "x"; then
27276             with_PYDIRPATH="${gr_atsc_PYDIRPATH}"
27277         else
27278             with_PYDIRPATH="${gr_atsc_PYDIRPATH}"":""$with_PYDIRPATH"
27279         fi
27280         gr_atsc_PYDIRPATH=
27281     fi
27282
27283
27284     if test "x${gr_atsc_SWIGDIRPATH}" != "x"; then
27285         if test "x$with_SWIGDIRPATH" = "x"; then
27286             with_SWIGDIRPATH="${gr_atsc_SWIGDIRPATH}"
27287         else
27288             with_SWIGDIRPATH="${gr_atsc_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
27289         fi
27290         gr_atsc_SWIGDIRPATH=
27291     fi
27292
27293
27294     if test "x${gr_atsc_LIBDIRPATH}" != "x"; then
27295         if test "x$with_LIBDIRPATH" = "x"; then
27296             with_LIBDIRPATH="${gr_atsc_LIBDIRPATH}"
27297         else
27298             with_LIBDIRPATH="${gr_atsc_LIBDIRPATH}"":""$with_LIBDIRPATH"
27299         fi
27300         gr_atsc_LIBDIRPATH=
27301     fi
27302
27303             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-atsc will be included from a pre-installed library and includes." >&5
27304 $as_echo "Component gr-atsc will be included from a pre-installed library and includes." >&6; }
27305             gr_atsc_with=yes
27306         else
27307             gr_atsc_LDFLAG=
27308             if test x$enable_gr_atsc != xno; then
27309                         ac_config_commands="$ac_config_commands run_tests_atsc"
27310
27311
27312                 build_dirs="$build_dirs gr-atsc"
27313                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-atsc passed configuration checks; building." >&5
27314 $as_echo "Component gr-atsc passed configuration checks; building." >&6; }
27315             else
27316                 passed=no
27317                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-atsc passed configuration checks; but not building." >&5
27318 $as_echo "Component gr-atsc passed configuration checks; but not building." >&6; }
27319             fi
27320         fi
27321     fi
27322     if test $passed = no; then
27323         skipped_dirs="$skipped_dirs gr-atsc"
27324         gr_atsc_skipped=yes
27325     else
27326         gr_atsc_skipped=no
27327     fi
27328
27329
27330
27331
27332
27333
27334
27335
27336
27337
27338
27339     passed=yes
27340     # Check whether --enable-gr-comedi was given.
27341 if test "${enable_gr_comedi+set}" = set; then :
27342   enableval=$enable_gr_comedi;
27343 else
27344
27345         enable_gr_comedi=$enable_all_components
27346         if test x$enable_all_components = xno; then
27347             passed=no
27348         fi
27349
27350 fi
27351
27352
27353
27354
27355
27356     if test $passed != no; then
27357         if test $passed = yes; then
27358                         if test x$gnuradio_core_skipped = xyes; then
27359                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-comedi requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
27360 $as_echo "Component gr-comedi requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
27361                 passed=no
27362             fi
27363         else
27364                         if test x$gnuradio_core_with = xno; then
27365                 as_fn_error $? "Component gr-comedi requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
27366             fi
27367         fi
27368     fi
27369
27370
27371                     if test $passed = yes; then
27372
27373
27374
27375 pkg_failed=no
27376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMEDI" >&5
27377 $as_echo_n "checking for COMEDI... " >&6; }
27378
27379 if test -n "$PKG_CONFIG"; then
27380     if test -n "$COMEDI_CFLAGS"; then
27381         pkg_cv_COMEDI_CFLAGS="$COMEDI_CFLAGS"
27382     else
27383         if test -n "$PKG_CONFIG" && \
27384     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"comedilib < 0.8\""; } >&5
27385   ($PKG_CONFIG --exists --print-errors "comedilib < 0.8") 2>&5
27386   ac_status=$?
27387   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27388   test $ac_status = 0; }; then
27389   pkg_cv_COMEDI_CFLAGS=`$PKG_CONFIG --cflags "comedilib < 0.8" 2>/dev/null`
27390 else
27391   pkg_failed=yes
27392 fi
27393     fi
27394 else
27395         pkg_failed=untried
27396 fi
27397
27398 if test x$cross_compiling = xyes
27399 then
27400     if test -n "$PKG_CONFIG"; then
27401     if test -n "$COMEDI_LIBS"; then
27402         pkg_cv_COMEDI_LIBS="$COMEDI_LIBS"
27403     else
27404         if test -n "$PKG_CONFIG" && \
27405     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"comedilib < 0.8\""; } >&5
27406   ($PKG_CONFIG --exists --print-errors "comedilib < 0.8") 2>&5
27407   ac_status=$?
27408   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27409   test $ac_status = 0; }; then
27410   pkg_cv_COMEDI_LIBS=`$PKG_CONFIG --libs --static "comedilib < 0.8" 2>/dev/null`
27411 else
27412   pkg_failed=yes
27413 fi
27414     fi
27415 else
27416         pkg_failed=untried
27417 fi
27418     _pkg_tmp=
27419   for flag in $pkg_cv_COMEDI_LIBS; do
27420     case $flag in
27421     (-L/lib* | -L/usr/lib* )       ;; # ignore
27422     (*) _pkg_tmp="$_pkg_tmp $flag" ;;
27423     esac
27424   done
27425   pkg_cv_COMEDI_LIBS="$_pkg_tmp"
27426 else
27427   if test -n "$PKG_CONFIG"; then
27428     if test -n "$COMEDI_LIBS"; then
27429         pkg_cv_COMEDI_LIBS="$COMEDI_LIBS"
27430     else
27431         if test -n "$PKG_CONFIG" && \
27432     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"comedilib < 0.8\""; } >&5
27433   ($PKG_CONFIG --exists --print-errors "comedilib < 0.8") 2>&5
27434   ac_status=$?
27435   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27436   test $ac_status = 0; }; then
27437   pkg_cv_COMEDI_LIBS=`$PKG_CONFIG --libs --static "comedilib < 0.8" 2>/dev/null`
27438 else
27439   pkg_failed=yes
27440 fi
27441     fi
27442 else
27443         pkg_failed=untried
27444 fi
27445 fi
27446
27447 if test -n "$PKG_CONFIG"; then
27448     if test -n "$COMEDI_INCLUDEDIR"; then
27449         pkg_cv_COMEDI_INCLUDEDIR="$COMEDI_INCLUDEDIR"
27450     else
27451         if test -n "$PKG_CONFIG" && \
27452     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"comedilib < 0.8\""; } >&5
27453   ($PKG_CONFIG --exists --print-errors "comedilib < 0.8") 2>&5
27454   ac_status=$?
27455   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27456   test $ac_status = 0; }; then
27457   pkg_cv_COMEDI_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "comedilib < 0.8" 2>/dev/null`
27458 else
27459   pkg_failed=yes
27460 fi
27461     fi
27462 else
27463         pkg_failed=untried
27464 fi
27465
27466
27467
27468
27469 if test $pkg_failed = yes; then
27470
27471 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27472         _pkg_short_errors_supported=yes
27473 else
27474         _pkg_short_errors_supported=no
27475 fi
27476         if test $_pkg_short_errors_supported = yes; then
27477                 COMEDI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "comedilib < 0.8"`
27478         else
27479                 COMEDI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "comedilib < 0.8"`
27480         fi
27481         # Put the nasty error message in config.log where it belongs
27482         echo "$COMEDI_PKG_ERRORS" >&5
27483
27484         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27485 $as_echo "no" >&6; }
27486                 passed=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-comedi requires comedilib, not found." >&5
27487 $as_echo "gr-comedi requires comedilib, not found." >&6; }
27488 elif test $pkg_failed = untried; then
27489         passed=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-comedi requires comedilib, not found." >&5
27490 $as_echo "gr-comedi requires comedilib, not found." >&6; }
27491 else
27492         COMEDI_CFLAGS=$pkg_cv_COMEDI_CFLAGS
27493         COMEDI_LIBS=$pkg_cv_COMEDI_LIBS
27494         COMEDI_INCLUDEDIR=$pkg_cv_COMEDI_INCLUDEDIR
27495
27496         COMEDI_CPPFLAGS=""
27497         for flag in $COMEDI_CFLAGS; do
27498           case $flag in
27499           -I* | -D* | -U*) COMEDI_CPPFLAGS="$COMEDI_CPPFLAGS $flag" ;;
27500           esac
27501         done
27502         pkg_cv_COMEDI_CPPFLAGS=$COMEDI_CPPFLAGS
27503
27504
27505         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27506 $as_echo "yes" >&6; }
27507         :
27508 fi
27509     fi
27510
27511     ac_config_files="$ac_config_files gr-comedi/Makefile gr-comedi/gnuradio-comedi.pc gr-comedi/src/Makefile gr-comedi/src/run_tests"
27512
27513
27514
27515
27516     gr_comedi_with=no
27517     if test $passed = no; then
27518         if test x$enable_gr_comedi = xyes; then
27519             as_fn_error $? "Component gr-comedi has errors; stopping." "$LINENO" 5
27520         else
27521             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-comedi." >&5
27522 $as_echo "Not building component gr-comedi." >&6; }
27523         fi
27524     else
27525         if test $passed = with; then
27526             with_dirs="$with_dirs gr-comedi"
27527
27528     if test "x${gr_comedi_INCLUDES}" != "x"; then
27529         if test "x$with_INCLUDES" = "x"; then
27530             with_INCLUDES="${gr_comedi_INCLUDES}"
27531         else
27532             with_INCLUDES="${gr_comedi_INCLUDES}"" ""$with_INCLUDES"
27533         fi
27534         gr_comedi_INCLUDES=
27535     fi
27536
27537
27538     if test "x${gr_comedi_SWIG_INCLUDES}" != "x"; then
27539         if test "x$with_SWIG_INCLUDES" = "x"; then
27540             with_SWIG_INCLUDES="${gr_comedi_SWIG_INCLUDES}"
27541         else
27542             with_SWIG_INCLUDES="${gr_comedi_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
27543         fi
27544         gr_comedi_SWIG_INCLUDES=
27545     fi
27546
27547
27548     if test "x${gr_comedi_PYDIRPATH}" != "x"; then
27549         if test "x$with_PYDIRPATH" = "x"; then
27550             with_PYDIRPATH="${gr_comedi_PYDIRPATH}"
27551         else
27552             with_PYDIRPATH="${gr_comedi_PYDIRPATH}"":""$with_PYDIRPATH"
27553         fi
27554         gr_comedi_PYDIRPATH=
27555     fi
27556
27557
27558     if test "x${gr_comedi_SWIGDIRPATH}" != "x"; then
27559         if test "x$with_SWIGDIRPATH" = "x"; then
27560             with_SWIGDIRPATH="${gr_comedi_SWIGDIRPATH}"
27561         else
27562             with_SWIGDIRPATH="${gr_comedi_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
27563         fi
27564         gr_comedi_SWIGDIRPATH=
27565     fi
27566
27567
27568     if test "x${gr_comedi_LIBDIRPATH}" != "x"; then
27569         if test "x$with_LIBDIRPATH" = "x"; then
27570             with_LIBDIRPATH="${gr_comedi_LIBDIRPATH}"
27571         else
27572             with_LIBDIRPATH="${gr_comedi_LIBDIRPATH}"":""$with_LIBDIRPATH"
27573         fi
27574         gr_comedi_LIBDIRPATH=
27575     fi
27576
27577             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-comedi will be included from a pre-installed library and includes." >&5
27578 $as_echo "Component gr-comedi will be included from a pre-installed library and includes." >&6; }
27579             gr_comedi_with=yes
27580         else
27581             gr_comedi_LDFLAG=
27582             if test x$enable_gr_comedi != xno; then
27583                         ac_config_commands="$ac_config_commands run_tests_comedi"
27584
27585
27586                 build_dirs="$build_dirs gr-comedi"
27587                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-comedi passed configuration checks; building." >&5
27588 $as_echo "Component gr-comedi passed configuration checks; building." >&6; }
27589             else
27590                 passed=no
27591                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-comedi passed configuration checks; but not building." >&5
27592 $as_echo "Component gr-comedi passed configuration checks; but not building." >&6; }
27593             fi
27594         fi
27595     fi
27596     if test $passed = no; then
27597         skipped_dirs="$skipped_dirs gr-comedi"
27598         gr_comedi_skipped=yes
27599     else
27600         gr_comedi_skipped=no
27601     fi
27602
27603
27604
27605
27606
27607
27608
27609
27610
27611
27612
27613     passed=yes
27614     # Check whether --enable-gr-cvsd-vocoder was given.
27615 if test "${enable_gr_cvsd_vocoder+set}" = set; then :
27616   enableval=$enable_gr_cvsd_vocoder;
27617 else
27618
27619         enable_gr_cvsd_vocoder=$enable_all_components
27620         if test x$enable_all_components = xno; then
27621             passed=no
27622         fi
27623
27624 fi
27625
27626
27627
27628
27629
27630     if test $passed != no; then
27631         if test $passed = yes; then
27632                         if test x$gnuradio_core_skipped = xyes; then
27633                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-cvsd-vocoder requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
27634 $as_echo "Component gr-cvsd-vocoder requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
27635                 passed=no
27636             fi
27637         else
27638                         if test x$gnuradio_core_with = xno; then
27639                 as_fn_error $? "Component gr-cvsd-vocoder requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
27640             fi
27641         fi
27642     fi
27643
27644
27645     ac_config_files="$ac_config_files gr-cvsd-vocoder/Makefile gr-cvsd-vocoder/gnuradio-cvsd-vocoder.pc gr-cvsd-vocoder/src/Makefile gr-cvsd-vocoder/src/lib/Makefile gr-cvsd-vocoder/src/python/Makefile gr-cvsd-vocoder/src/python/run_tests"
27646
27647
27648
27649
27650     gr_cvsd_vocoder_with=no
27651     if test $passed = no; then
27652         if test x$enable_gr_cvsd_vocoder = xyes; then
27653             as_fn_error $? "Component gr-cvsd-vocoder has errors; stopping." "$LINENO" 5
27654         else
27655             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-cvsd-vocoder." >&5
27656 $as_echo "Not building component gr-cvsd-vocoder." >&6; }
27657         fi
27658     else
27659         if test $passed = with; then
27660             with_dirs="$with_dirs gr-cvsd-vocoder"
27661
27662     if test "x${gr_cvsd_vocoder_INCLUDES}" != "x"; then
27663         if test "x$with_INCLUDES" = "x"; then
27664             with_INCLUDES="${gr_cvsd_vocoder_INCLUDES}"
27665         else
27666             with_INCLUDES="${gr_cvsd_vocoder_INCLUDES}"" ""$with_INCLUDES"
27667         fi
27668         gr_cvsd_vocoder_INCLUDES=
27669     fi
27670
27671
27672     if test "x${gr_cvsd_vocoder_SWIG_INCLUDES}" != "x"; then
27673         if test "x$with_SWIG_INCLUDES" = "x"; then
27674             with_SWIG_INCLUDES="${gr_cvsd_vocoder_SWIG_INCLUDES}"
27675         else
27676             with_SWIG_INCLUDES="${gr_cvsd_vocoder_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
27677         fi
27678         gr_cvsd_vocoder_SWIG_INCLUDES=
27679     fi
27680
27681
27682     if test "x${gr_cvsd_vocoder_PYDIRPATH}" != "x"; then
27683         if test "x$with_PYDIRPATH" = "x"; then
27684             with_PYDIRPATH="${gr_cvsd_vocoder_PYDIRPATH}"
27685         else
27686             with_PYDIRPATH="${gr_cvsd_vocoder_PYDIRPATH}"":""$with_PYDIRPATH"
27687         fi
27688         gr_cvsd_vocoder_PYDIRPATH=
27689     fi
27690
27691
27692     if test "x${gr_cvsd_vocoder_SWIGDIRPATH}" != "x"; then
27693         if test "x$with_SWIGDIRPATH" = "x"; then
27694             with_SWIGDIRPATH="${gr_cvsd_vocoder_SWIGDIRPATH}"
27695         else
27696             with_SWIGDIRPATH="${gr_cvsd_vocoder_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
27697         fi
27698         gr_cvsd_vocoder_SWIGDIRPATH=
27699     fi
27700
27701
27702     if test "x${gr_cvsd_vocoder_LIBDIRPATH}" != "x"; then
27703         if test "x$with_LIBDIRPATH" = "x"; then
27704             with_LIBDIRPATH="${gr_cvsd_vocoder_LIBDIRPATH}"
27705         else
27706             with_LIBDIRPATH="${gr_cvsd_vocoder_LIBDIRPATH}"":""$with_LIBDIRPATH"
27707         fi
27708         gr_cvsd_vocoder_LIBDIRPATH=
27709     fi
27710
27711             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-cvsd-vocoder will be included from a pre-installed library and includes." >&5
27712 $as_echo "Component gr-cvsd-vocoder will be included from a pre-installed library and includes." >&6; }
27713             gr_cvsd_vocoder_with=yes
27714         else
27715             gr_cvsd_vocoder_LDFLAG=
27716             if test x$enable_gr_cvsd_vocoder != xno; then
27717                         ac_config_commands="$ac_config_commands run_tests_cvsd"
27718
27719
27720                 build_dirs="$build_dirs gr-cvsd-vocoder"
27721                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-cvsd-vocoder passed configuration checks; building." >&5
27722 $as_echo "Component gr-cvsd-vocoder passed configuration checks; building." >&6; }
27723             else
27724                 passed=no
27725                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-cvsd-vocoder passed configuration checks; but not building." >&5
27726 $as_echo "Component gr-cvsd-vocoder passed configuration checks; but not building." >&6; }
27727             fi
27728         fi
27729     fi
27730     if test $passed = no; then
27731         skipped_dirs="$skipped_dirs gr-cvsd-vocoder"
27732         gr_cvsd_vocoder_skipped=yes
27733     else
27734         gr_cvsd_vocoder_skipped=no
27735     fi
27736
27737
27738
27739
27740
27741
27742
27743
27744
27745
27746
27747     passed=yes
27748     # Check whether --enable-gr-gpio was given.
27749 if test "${enable_gr_gpio+set}" = set; then :
27750   enableval=$enable_gr_gpio;
27751 else
27752
27753         enable_gr_gpio=$enable_all_components
27754         if test x$enable_all_components = xno; then
27755             passed=no
27756         fi
27757
27758 fi
27759
27760
27761
27762
27763
27764     if test $passed != no; then
27765         if test $passed = yes; then
27766                         if test x$usrp_skipped = xyes; then
27767                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-gpio requires usrp, which is not being built or specified via pre-installed files." >&5
27768 $as_echo "Component gr-gpio requires usrp, which is not being built or specified via pre-installed files." >&6; }
27769                 passed=no
27770             fi
27771         else
27772                         if test x$usrp_with = xno; then
27773                 as_fn_error $? "Component gr-gpio requires usrp to be included as --with-usrp[=arg]" "$LINENO" 5
27774             fi
27775         fi
27776     fi
27777
27778
27779     ac_config_files="$ac_config_files gr-gpio/Makefile gr-gpio/src/Makefile gr-gpio/src/fpga/Makefile gr-gpio/src/fpga/include/Makefile gr-gpio/src/fpga/top/Makefile gr-gpio/src/fpga/lib/Makefile gr-gpio/src/fpga/rbf/Makefile gr-gpio/src/python/Makefile"
27780
27781
27782
27783
27784     gr_gpio_with=no
27785     if test $passed = no; then
27786         if test x$enable_gr_gpio = xyes; then
27787             as_fn_error $? "Component gr-gpio has errors; stopping." "$LINENO" 5
27788         else
27789             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-gpio." >&5
27790 $as_echo "Not building component gr-gpio." >&6; }
27791         fi
27792     else
27793         if test $passed = with; then
27794             with_dirs="$with_dirs gr-gpio"
27795
27796     if test "x${gr_gpio_INCLUDES}" != "x"; then
27797         if test "x$with_INCLUDES" = "x"; then
27798             with_INCLUDES="${gr_gpio_INCLUDES}"
27799         else
27800             with_INCLUDES="${gr_gpio_INCLUDES}"" ""$with_INCLUDES"
27801         fi
27802         gr_gpio_INCLUDES=
27803     fi
27804
27805
27806     if test "x${gr_gpio_SWIG_INCLUDES}" != "x"; then
27807         if test "x$with_SWIG_INCLUDES" = "x"; then
27808             with_SWIG_INCLUDES="${gr_gpio_SWIG_INCLUDES}"
27809         else
27810             with_SWIG_INCLUDES="${gr_gpio_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
27811         fi
27812         gr_gpio_SWIG_INCLUDES=
27813     fi
27814
27815
27816     if test "x${gr_gpio_PYDIRPATH}" != "x"; then
27817         if test "x$with_PYDIRPATH" = "x"; then
27818             with_PYDIRPATH="${gr_gpio_PYDIRPATH}"
27819         else
27820             with_PYDIRPATH="${gr_gpio_PYDIRPATH}"":""$with_PYDIRPATH"
27821         fi
27822         gr_gpio_PYDIRPATH=
27823     fi
27824
27825
27826     if test "x${gr_gpio_SWIGDIRPATH}" != "x"; then
27827         if test "x$with_SWIGDIRPATH" = "x"; then
27828             with_SWIGDIRPATH="${gr_gpio_SWIGDIRPATH}"
27829         else
27830             with_SWIGDIRPATH="${gr_gpio_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
27831         fi
27832         gr_gpio_SWIGDIRPATH=
27833     fi
27834
27835
27836     if test "x${gr_gpio_LIBDIRPATH}" != "x"; then
27837         if test "x$with_LIBDIRPATH" = "x"; then
27838             with_LIBDIRPATH="${gr_gpio_LIBDIRPATH}"
27839         else
27840             with_LIBDIRPATH="${gr_gpio_LIBDIRPATH}"":""$with_LIBDIRPATH"
27841         fi
27842         gr_gpio_LIBDIRPATH=
27843     fi
27844
27845             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-gpio will be included from a pre-installed library and includes." >&5
27846 $as_echo "Component gr-gpio will be included from a pre-installed library and includes." >&6; }
27847             gr_gpio_with=yes
27848         else
27849             gr_gpio_LDFLAG=
27850             if test x$enable_gr_gpio != xno; then
27851                 :
27852                 build_dirs="$build_dirs gr-gpio"
27853                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-gpio passed configuration checks; building." >&5
27854 $as_echo "Component gr-gpio passed configuration checks; building." >&6; }
27855             else
27856                 passed=no
27857                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-gpio passed configuration checks; but not building." >&5
27858 $as_echo "Component gr-gpio passed configuration checks; but not building." >&6; }
27859             fi
27860         fi
27861     fi
27862     if test $passed = no; then
27863         skipped_dirs="$skipped_dirs gr-gpio"
27864         gr_gpio_skipped=yes
27865     else
27866         gr_gpio_skipped=no
27867     fi
27868
27869
27870
27871
27872
27873
27874
27875
27876
27877
27878
27879     passed=yes
27880     # Check whether --enable-gr-gsm-fr-vocoder was given.
27881 if test "${enable_gr_gsm_fr_vocoder+set}" = set; then :
27882   enableval=$enable_gr_gsm_fr_vocoder;
27883 else
27884
27885         enable_gr_gsm_fr_vocoder=$enable_all_components
27886         if test x$enable_all_components = xno; then
27887             passed=no
27888         fi
27889
27890 fi
27891
27892
27893
27894
27895
27896     if test $passed != no; then
27897         if test $passed = yes; then
27898                         if test x$gnuradio_core_skipped = xyes; then
27899                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-gsm-fr-vocoder requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
27900 $as_echo "Component gr-gsm-fr-vocoder requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
27901                 passed=no
27902             fi
27903         else
27904                         if test x$gnuradio_core_with = xno; then
27905                 as_fn_error $? "Component gr-gsm-fr-vocoder requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
27906             fi
27907         fi
27908     fi
27909
27910
27911     ac_config_files="$ac_config_files gr-gsm-fr-vocoder/Makefile gr-gsm-fr-vocoder/gnuradio-gsm-fr-vocoder.pc gr-gsm-fr-vocoder/src/Makefile gr-gsm-fr-vocoder/src/lib/Makefile gr-gsm-fr-vocoder/src/lib/gsm/Makefile gr-gsm-fr-vocoder/src/python/Makefile gr-gsm-fr-vocoder/src/python/run_tests"
27912
27913
27914
27915
27916     gr_gsm_fr_vocoder_with=no
27917     if test $passed = no; then
27918         if test x$enable_gr_gsm_fr_vocoder = xyes; then
27919             as_fn_error $? "Component gr-gsm-fr-vocoder has errors; stopping." "$LINENO" 5
27920         else
27921             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-gsm-fr-vocoder." >&5
27922 $as_echo "Not building component gr-gsm-fr-vocoder." >&6; }
27923         fi
27924     else
27925         if test $passed = with; then
27926             with_dirs="$with_dirs gr-gsm-fr-vocoder"
27927
27928     if test "x${gr_gsm_fr_vocoder_INCLUDES}" != "x"; then
27929         if test "x$with_INCLUDES" = "x"; then
27930             with_INCLUDES="${gr_gsm_fr_vocoder_INCLUDES}"
27931         else
27932             with_INCLUDES="${gr_gsm_fr_vocoder_INCLUDES}"" ""$with_INCLUDES"
27933         fi
27934         gr_gsm_fr_vocoder_INCLUDES=
27935     fi
27936
27937
27938     if test "x${gr_gsm_fr_vocoder_SWIG_INCLUDES}" != "x"; then
27939         if test "x$with_SWIG_INCLUDES" = "x"; then
27940             with_SWIG_INCLUDES="${gr_gsm_fr_vocoder_SWIG_INCLUDES}"
27941         else
27942             with_SWIG_INCLUDES="${gr_gsm_fr_vocoder_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
27943         fi
27944         gr_gsm_fr_vocoder_SWIG_INCLUDES=
27945     fi
27946
27947
27948     if test "x${gr_gsm_fr_vocoder_PYDIRPATH}" != "x"; then
27949         if test "x$with_PYDIRPATH" = "x"; then
27950             with_PYDIRPATH="${gr_gsm_fr_vocoder_PYDIRPATH}"
27951         else
27952             with_PYDIRPATH="${gr_gsm_fr_vocoder_PYDIRPATH}"":""$with_PYDIRPATH"
27953         fi
27954         gr_gsm_fr_vocoder_PYDIRPATH=
27955     fi
27956
27957
27958     if test "x${gr_gsm_fr_vocoder_SWIGDIRPATH}" != "x"; then
27959         if test "x$with_SWIGDIRPATH" = "x"; then
27960             with_SWIGDIRPATH="${gr_gsm_fr_vocoder_SWIGDIRPATH}"
27961         else
27962             with_SWIGDIRPATH="${gr_gsm_fr_vocoder_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
27963         fi
27964         gr_gsm_fr_vocoder_SWIGDIRPATH=
27965     fi
27966
27967
27968     if test "x${gr_gsm_fr_vocoder_LIBDIRPATH}" != "x"; then
27969         if test "x$with_LIBDIRPATH" = "x"; then
27970             with_LIBDIRPATH="${gr_gsm_fr_vocoder_LIBDIRPATH}"
27971         else
27972             with_LIBDIRPATH="${gr_gsm_fr_vocoder_LIBDIRPATH}"":""$with_LIBDIRPATH"
27973         fi
27974         gr_gsm_fr_vocoder_LIBDIRPATH=
27975     fi
27976
27977             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-gsm-fr-vocoder will be included from a pre-installed library and includes." >&5
27978 $as_echo "Component gr-gsm-fr-vocoder will be included from a pre-installed library and includes." >&6; }
27979             gr_gsm_fr_vocoder_with=yes
27980         else
27981             gr_gsm_fr_vocoder_LDFLAG=
27982             if test x$enable_gr_gsm_fr_vocoder != xno; then
27983                         ac_config_commands="$ac_config_commands run_tests_gsm"
27984
27985
27986                 build_dirs="$build_dirs gr-gsm-fr-vocoder"
27987                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-gsm-fr-vocoder passed configuration checks; building." >&5
27988 $as_echo "Component gr-gsm-fr-vocoder passed configuration checks; building." >&6; }
27989             else
27990                 passed=no
27991                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-gsm-fr-vocoder passed configuration checks; but not building." >&5
27992 $as_echo "Component gr-gsm-fr-vocoder passed configuration checks; but not building." >&6; }
27993             fi
27994         fi
27995     fi
27996     if test $passed = no; then
27997         skipped_dirs="$skipped_dirs gr-gsm-fr-vocoder"
27998         gr_gsm_fr_vocoder_skipped=yes
27999     else
28000         gr_gsm_fr_vocoder_skipped=no
28001     fi
28002
28003
28004
28005
28006
28007
28008
28009
28010
28011
28012
28013     passed=yes
28014     # Check whether --enable-gr-noaa was given.
28015 if test "${enable_gr_noaa+set}" = set; then :
28016   enableval=$enable_gr_noaa;
28017 else
28018
28019         enable_gr_noaa=$enable_all_components
28020         if test x$enable_all_components = xno; then
28021             passed=no
28022         fi
28023
28024 fi
28025
28026
28027
28028
28029
28030     if test $passed != no; then
28031         if test $passed = yes; then
28032                         if test x$gnuradio_core_skipped = xyes; then
28033                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-noaa requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
28034 $as_echo "Component gr-noaa requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
28035                 passed=no
28036             fi
28037         else
28038                         if test x$gnuradio_core_with = xno; then
28039                 as_fn_error $? "Component gr-noaa requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
28040             fi
28041         fi
28042     fi
28043
28044
28045     if test $passed != no; then
28046         if test $passed = yes; then
28047                         if test x$gr_wxgui_skipped = xyes; then
28048                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-noaa requires gr-wxgui, which is not being built or specified via pre-installed files." >&5
28049 $as_echo "Component gr-noaa requires gr-wxgui, which is not being built or specified via pre-installed files." >&6; }
28050                 passed=no
28051             fi
28052         else
28053                         if test x$gr_wxgui_with = xno; then
28054                 as_fn_error $? "Component gr-noaa requires gr-wxgui to be included as --with-gr-wxgui[=arg]" "$LINENO" 5
28055             fi
28056         fi
28057     fi
28058
28059
28060     if test $passed != no; then
28061         if test $passed = yes; then
28062                         if test x$grc_skipped = xyes; then
28063                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-noaa requires grc, which is not being built or specified via pre-installed files." >&5
28064 $as_echo "Component gr-noaa requires grc, which is not being built or specified via pre-installed files." >&6; }
28065                 passed=no
28066             fi
28067         else
28068                         if test x$grc_with = xno; then
28069                 as_fn_error $? "Component gr-noaa requires grc to be included as --with-grc[=arg]" "$LINENO" 5
28070             fi
28071         fi
28072     fi
28073
28074
28075     ac_config_files="$ac_config_files gr-noaa/Makefile gr-noaa/apps/Makefile gr-noaa/grc/Makefile gr-noaa/lib/Makefile gr-noaa/oct/Makefile gr-noaa/python/Makefile gr-noaa/swig/Makefile"
28076
28077
28078
28079
28080     gr_noaa_with=no
28081     if test $passed = no; then
28082         if test x$enable_gr_noaa = xyes; then
28083             as_fn_error $? "Component gr-noaa has errors; stopping." "$LINENO" 5
28084         else
28085             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-noaa." >&5
28086 $as_echo "Not building component gr-noaa." >&6; }
28087         fi
28088     else
28089         if test $passed = with; then
28090             with_dirs="$with_dirs gr-noaa"
28091
28092     if test "x${gr_noaa_INCLUDES}" != "x"; then
28093         if test "x$with_INCLUDES" = "x"; then
28094             with_INCLUDES="${gr_noaa_INCLUDES}"
28095         else
28096             with_INCLUDES="${gr_noaa_INCLUDES}"" ""$with_INCLUDES"
28097         fi
28098         gr_noaa_INCLUDES=
28099     fi
28100
28101
28102     if test "x${gr_noaa_SWIG_INCLUDES}" != "x"; then
28103         if test "x$with_SWIG_INCLUDES" = "x"; then
28104             with_SWIG_INCLUDES="${gr_noaa_SWIG_INCLUDES}"
28105         else
28106             with_SWIG_INCLUDES="${gr_noaa_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
28107         fi
28108         gr_noaa_SWIG_INCLUDES=
28109     fi
28110
28111
28112     if test "x${gr_noaa_PYDIRPATH}" != "x"; then
28113         if test "x$with_PYDIRPATH" = "x"; then
28114             with_PYDIRPATH="${gr_noaa_PYDIRPATH}"
28115         else
28116             with_PYDIRPATH="${gr_noaa_PYDIRPATH}"":""$with_PYDIRPATH"
28117         fi
28118         gr_noaa_PYDIRPATH=
28119     fi
28120
28121
28122     if test "x${gr_noaa_SWIGDIRPATH}" != "x"; then
28123         if test "x$with_SWIGDIRPATH" = "x"; then
28124             with_SWIGDIRPATH="${gr_noaa_SWIGDIRPATH}"
28125         else
28126             with_SWIGDIRPATH="${gr_noaa_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
28127         fi
28128         gr_noaa_SWIGDIRPATH=
28129     fi
28130
28131
28132     if test "x${gr_noaa_LIBDIRPATH}" != "x"; then
28133         if test "x$with_LIBDIRPATH" = "x"; then
28134             with_LIBDIRPATH="${gr_noaa_LIBDIRPATH}"
28135         else
28136             with_LIBDIRPATH="${gr_noaa_LIBDIRPATH}"":""$with_LIBDIRPATH"
28137         fi
28138         gr_noaa_LIBDIRPATH=
28139     fi
28140
28141             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-noaa will be included from a pre-installed library and includes." >&5
28142 $as_echo "Component gr-noaa will be included from a pre-installed library and includes." >&6; }
28143             gr_noaa_with=yes
28144         else
28145             gr_noaa_LDFLAG=
28146             if test x$enable_gr_noaa != xno; then
28147                         #AC_CONFIG_COMMANDS([run_tests_noaa], [chmod +x gr-pager/lib/run_tests])
28148
28149                 build_dirs="$build_dirs gr-noaa"
28150                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-noaa passed configuration checks; building." >&5
28151 $as_echo "Component gr-noaa passed configuration checks; building." >&6; }
28152             else
28153                 passed=no
28154                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-noaa passed configuration checks; but not building." >&5
28155 $as_echo "Component gr-noaa passed configuration checks; but not building." >&6; }
28156             fi
28157         fi
28158     fi
28159     if test $passed = no; then
28160         skipped_dirs="$skipped_dirs gr-noaa"
28161         gr_noaa_skipped=yes
28162     else
28163         gr_noaa_skipped=no
28164     fi
28165
28166
28167
28168
28169
28170
28171
28172
28173
28174
28175
28176     passed=yes
28177     # Check whether --enable-gr-pager was given.
28178 if test "${enable_gr_pager+set}" = set; then :
28179   enableval=$enable_gr_pager;
28180 else
28181
28182         enable_gr_pager=$enable_all_components
28183         if test x$enable_all_components = xno; then
28184             passed=no
28185         fi
28186
28187 fi
28188
28189
28190
28191
28192
28193     if test $passed != no; then
28194         if test $passed = yes; then
28195                         if test x$gnuradio_core_skipped = xyes; then
28196                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-pager requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
28197 $as_echo "Component gr-pager requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
28198                 passed=no
28199             fi
28200         else
28201                         if test x$gnuradio_core_with = xno; then
28202                 as_fn_error $? "Component gr-pager requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
28203             fi
28204         fi
28205     fi
28206
28207
28208     ac_config_files="$ac_config_files gr-pager/Makefile gr-pager/gnuradio-pager.pc gr-pager/apps/Makefile gr-pager/grc/Makefile gr-pager/lib/Makefile gr-pager/python/Makefile gr-pager/python/run_tests gr-pager/swig/Makefile"
28209
28210
28211
28212
28213     gr_pager_with=no
28214     if test $passed = no; then
28215         if test x$enable_gr_pager = xyes; then
28216             as_fn_error $? "Component gr-pager has errors; stopping." "$LINENO" 5
28217         else
28218             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-pager." >&5
28219 $as_echo "Not building component gr-pager." >&6; }
28220         fi
28221     else
28222         if test $passed = with; then
28223             with_dirs="$with_dirs gr-pager"
28224
28225     if test "x${gr_pager_INCLUDES}" != "x"; then
28226         if test "x$with_INCLUDES" = "x"; then
28227             with_INCLUDES="${gr_pager_INCLUDES}"
28228         else
28229             with_INCLUDES="${gr_pager_INCLUDES}"" ""$with_INCLUDES"
28230         fi
28231         gr_pager_INCLUDES=
28232     fi
28233
28234
28235     if test "x${gr_pager_SWIG_INCLUDES}" != "x"; then
28236         if test "x$with_SWIG_INCLUDES" = "x"; then
28237             with_SWIG_INCLUDES="${gr_pager_SWIG_INCLUDES}"
28238         else
28239             with_SWIG_INCLUDES="${gr_pager_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
28240         fi
28241         gr_pager_SWIG_INCLUDES=
28242     fi
28243
28244
28245     if test "x${gr_pager_PYDIRPATH}" != "x"; then
28246         if test "x$with_PYDIRPATH" = "x"; then
28247             with_PYDIRPATH="${gr_pager_PYDIRPATH}"
28248         else
28249             with_PYDIRPATH="${gr_pager_PYDIRPATH}"":""$with_PYDIRPATH"
28250         fi
28251         gr_pager_PYDIRPATH=
28252     fi
28253
28254
28255     if test "x${gr_pager_SWIGDIRPATH}" != "x"; then
28256         if test "x$with_SWIGDIRPATH" = "x"; then
28257             with_SWIGDIRPATH="${gr_pager_SWIGDIRPATH}"
28258         else
28259             with_SWIGDIRPATH="${gr_pager_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
28260         fi
28261         gr_pager_SWIGDIRPATH=
28262     fi
28263
28264
28265     if test "x${gr_pager_LIBDIRPATH}" != "x"; then
28266         if test "x$with_LIBDIRPATH" = "x"; then
28267             with_LIBDIRPATH="${gr_pager_LIBDIRPATH}"
28268         else
28269             with_LIBDIRPATH="${gr_pager_LIBDIRPATH}"":""$with_LIBDIRPATH"
28270         fi
28271         gr_pager_LIBDIRPATH=
28272     fi
28273
28274             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-pager will be included from a pre-installed library and includes." >&5
28275 $as_echo "Component gr-pager will be included from a pre-installed library and includes." >&6; }
28276             gr_pager_with=yes
28277         else
28278             gr_pager_LDFLAG=
28279             if test x$enable_gr_pager != xno; then
28280                         ac_config_commands="$ac_config_commands run_tests_pager"
28281
28282
28283                 build_dirs="$build_dirs gr-pager"
28284                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-pager passed configuration checks; building." >&5
28285 $as_echo "Component gr-pager passed configuration checks; building." >&6; }
28286             else
28287                 passed=no
28288                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-pager passed configuration checks; but not building." >&5
28289 $as_echo "Component gr-pager passed configuration checks; but not building." >&6; }
28290             fi
28291         fi
28292     fi
28293     if test $passed = no; then
28294         skipped_dirs="$skipped_dirs gr-pager"
28295         gr_pager_skipped=yes
28296     else
28297         gr_pager_skipped=no
28298     fi
28299
28300
28301
28302
28303
28304
28305
28306
28307
28308
28309
28310     passed=yes
28311     # Check whether --enable-gr-radar-mono was given.
28312 if test "${enable_gr_radar_mono+set}" = set; then :
28313   enableval=$enable_gr_radar_mono;
28314 else
28315
28316         enable_gr_radar_mono=$enable_all_components
28317         if test x$enable_all_components = xno; then
28318             passed=no
28319         fi
28320
28321 fi
28322
28323
28324
28325
28326
28327     if test $passed != no; then
28328         if test $passed = yes; then
28329                         if test x$usrp_skipped = xyes; then
28330                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-radar-mono requires usrp, which is not being built or specified via pre-installed files." >&5
28331 $as_echo "Component gr-radar-mono requires usrp, which is not being built or specified via pre-installed files." >&6; }
28332                 passed=no
28333             fi
28334         else
28335                         if test x$usrp_with = xno; then
28336                 as_fn_error $? "Component gr-radar-mono requires usrp to be included as --with-usrp[=arg]" "$LINENO" 5
28337             fi
28338         fi
28339     fi
28340
28341
28342     if test $passed != no; then
28343         if test $passed = yes; then
28344                         if test x$gnuradio_core_skipped = xyes; then
28345                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-radar-mono requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
28346 $as_echo "Component gr-radar-mono requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
28347                 passed=no
28348             fi
28349         else
28350                         if test x$gnuradio_core_with = xno; then
28351                 as_fn_error $? "Component gr-radar-mono requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
28352             fi
28353         fi
28354     fi
28355
28356
28357     ac_config_files="$ac_config_files gr-radar-mono/Makefile gr-radar-mono/doc/Makefile gr-radar-mono/src/Makefile gr-radar-mono/src/fpga/Makefile gr-radar-mono/src/fpga/top/Makefile gr-radar-mono/src/fpga/lib/Makefile gr-radar-mono/src/fpga/models/Makefile gr-radar-mono/src/fpga/tb/Makefile gr-radar-mono/src/lib/Makefile gr-radar-mono/src/python/Makefile gr-radar-mono/src/python/run_tests"
28358
28359
28360
28361
28362     gr_radar_mono_with=no
28363     if test $passed = no; then
28364         if test x$enable_gr_radar_mono = xyes; then
28365             as_fn_error $? "Component gr-radar-mono has errors; stopping." "$LINENO" 5
28366         else
28367             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-radar-mono." >&5
28368 $as_echo "Not building component gr-radar-mono." >&6; }
28369         fi
28370     else
28371         if test $passed = with; then
28372             with_dirs="$with_dirs gr-radar-mono"
28373
28374     if test "x${gr_radar_mono_INCLUDES}" != "x"; then
28375         if test "x$with_INCLUDES" = "x"; then
28376             with_INCLUDES="${gr_radar_mono_INCLUDES}"
28377         else
28378             with_INCLUDES="${gr_radar_mono_INCLUDES}"" ""$with_INCLUDES"
28379         fi
28380         gr_radar_mono_INCLUDES=
28381     fi
28382
28383
28384     if test "x${gr_radar_mono_SWIG_INCLUDES}" != "x"; then
28385         if test "x$with_SWIG_INCLUDES" = "x"; then
28386             with_SWIG_INCLUDES="${gr_radar_mono_SWIG_INCLUDES}"
28387         else
28388             with_SWIG_INCLUDES="${gr_radar_mono_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
28389         fi
28390         gr_radar_mono_SWIG_INCLUDES=
28391     fi
28392
28393
28394     if test "x${gr_radar_mono_PYDIRPATH}" != "x"; then
28395         if test "x$with_PYDIRPATH" = "x"; then
28396             with_PYDIRPATH="${gr_radar_mono_PYDIRPATH}"
28397         else
28398             with_PYDIRPATH="${gr_radar_mono_PYDIRPATH}"":""$with_PYDIRPATH"
28399         fi
28400         gr_radar_mono_PYDIRPATH=
28401     fi
28402
28403
28404     if test "x${gr_radar_mono_SWIGDIRPATH}" != "x"; then
28405         if test "x$with_SWIGDIRPATH" = "x"; then
28406             with_SWIGDIRPATH="${gr_radar_mono_SWIGDIRPATH}"
28407         else
28408             with_SWIGDIRPATH="${gr_radar_mono_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
28409         fi
28410         gr_radar_mono_SWIGDIRPATH=
28411     fi
28412
28413
28414     if test "x${gr_radar_mono_LIBDIRPATH}" != "x"; then
28415         if test "x$with_LIBDIRPATH" = "x"; then
28416             with_LIBDIRPATH="${gr_radar_mono_LIBDIRPATH}"
28417         else
28418             with_LIBDIRPATH="${gr_radar_mono_LIBDIRPATH}"":""$with_LIBDIRPATH"
28419         fi
28420         gr_radar_mono_LIBDIRPATH=
28421     fi
28422
28423             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-radar-mono will be included from a pre-installed library and includes." >&5
28424 $as_echo "Component gr-radar-mono will be included from a pre-installed library and includes." >&6; }
28425             gr_radar_mono_with=yes
28426         else
28427             gr_radar_mono_LDFLAG=
28428             if test x$enable_gr_radar_mono != xno; then
28429                         ac_config_commands="$ac_config_commands run_tests_radar_mono"
28430
28431
28432                 build_dirs="$build_dirs gr-radar-mono"
28433                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-radar-mono passed configuration checks; building." >&5
28434 $as_echo "Component gr-radar-mono passed configuration checks; building." >&6; }
28435             else
28436                 passed=no
28437                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-radar-mono passed configuration checks; but not building." >&5
28438 $as_echo "Component gr-radar-mono passed configuration checks; but not building." >&6; }
28439             fi
28440         fi
28441     fi
28442     if test $passed = no; then
28443         skipped_dirs="$skipped_dirs gr-radar-mono"
28444         gr_radar_mono_skipped=yes
28445     else
28446         gr_radar_mono_skipped=no
28447     fi
28448
28449
28450
28451
28452
28453
28454
28455
28456
28457
28458
28459     passed=yes
28460     # Check whether --enable-gr-radio-astronomy was given.
28461 if test "${enable_gr_radio_astronomy+set}" = set; then :
28462   enableval=$enable_gr_radio_astronomy;
28463 else
28464
28465         enable_gr_radio_astronomy=$enable_all_components
28466         if test x$enable_all_components = xno; then
28467             passed=no
28468         fi
28469
28470 fi
28471
28472
28473
28474
28475
28476     if test $passed != no; then
28477         if test $passed = yes; then
28478                         if test x$gnuradio_core_skipped = xyes; then
28479                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-radio-astronomy requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
28480 $as_echo "Component gr-radio-astronomy requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
28481                 passed=no
28482             fi
28483         else
28484                         if test x$gnuradio_core_with = xno; then
28485                 as_fn_error $? "Component gr-radio-astronomy requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
28486             fi
28487         fi
28488     fi
28489
28490
28491     ac_config_files="$ac_config_files gr-radio-astronomy/Makefile gr-radio-astronomy/src/Makefile gr-radio-astronomy/src/lib/Makefile gr-radio-astronomy/src/python/Makefile gr-radio-astronomy/src/python/run_tests"
28492
28493
28494
28495
28496     gr_radio_astronomy_with=no
28497     if test $passed = no; then
28498         if test x$enable_gr_radio_astronomy = xyes; then
28499             as_fn_error $? "Component gr-radio-astronomy has errors; stopping." "$LINENO" 5
28500         else
28501             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-radio-astronomy." >&5
28502 $as_echo "Not building component gr-radio-astronomy." >&6; }
28503         fi
28504     else
28505         if test $passed = with; then
28506             with_dirs="$with_dirs gr-radio-astronomy"
28507
28508     if test "x${gr_radio_astronomy_INCLUDES}" != "x"; then
28509         if test "x$with_INCLUDES" = "x"; then
28510             with_INCLUDES="${gr_radio_astronomy_INCLUDES}"
28511         else
28512             with_INCLUDES="${gr_radio_astronomy_INCLUDES}"" ""$with_INCLUDES"
28513         fi
28514         gr_radio_astronomy_INCLUDES=
28515     fi
28516
28517
28518     if test "x${gr_radio_astronomy_SWIG_INCLUDES}" != "x"; then
28519         if test "x$with_SWIG_INCLUDES" = "x"; then
28520             with_SWIG_INCLUDES="${gr_radio_astronomy_SWIG_INCLUDES}"
28521         else
28522             with_SWIG_INCLUDES="${gr_radio_astronomy_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
28523         fi
28524         gr_radio_astronomy_SWIG_INCLUDES=
28525     fi
28526
28527
28528     if test "x${gr_radio_astronomy_PYDIRPATH}" != "x"; then
28529         if test "x$with_PYDIRPATH" = "x"; then
28530             with_PYDIRPATH="${gr_radio_astronomy_PYDIRPATH}"
28531         else
28532             with_PYDIRPATH="${gr_radio_astronomy_PYDIRPATH}"":""$with_PYDIRPATH"
28533         fi
28534         gr_radio_astronomy_PYDIRPATH=
28535     fi
28536
28537
28538     if test "x${gr_radio_astronomy_SWIGDIRPATH}" != "x"; then
28539         if test "x$with_SWIGDIRPATH" = "x"; then
28540             with_SWIGDIRPATH="${gr_radio_astronomy_SWIGDIRPATH}"
28541         else
28542             with_SWIGDIRPATH="${gr_radio_astronomy_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
28543         fi
28544         gr_radio_astronomy_SWIGDIRPATH=
28545     fi
28546
28547
28548     if test "x${gr_radio_astronomy_LIBDIRPATH}" != "x"; then
28549         if test "x$with_LIBDIRPATH" = "x"; then
28550             with_LIBDIRPATH="${gr_radio_astronomy_LIBDIRPATH}"
28551         else
28552             with_LIBDIRPATH="${gr_radio_astronomy_LIBDIRPATH}"":""$with_LIBDIRPATH"
28553         fi
28554         gr_radio_astronomy_LIBDIRPATH=
28555     fi
28556
28557             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-radio-astronomy will be included from a pre-installed library and includes." >&5
28558 $as_echo "Component gr-radio-astronomy will be included from a pre-installed library and includes." >&6; }
28559             gr_radio_astronomy_with=yes
28560         else
28561             gr_radio_astronomy_LDFLAG=
28562             if test x$enable_gr_radio_astronomy != xno; then
28563                         ac_config_commands="$ac_config_commands run_tests_astronomy"
28564
28565
28566                 build_dirs="$build_dirs gr-radio-astronomy"
28567                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-radio-astronomy passed configuration checks; building." >&5
28568 $as_echo "Component gr-radio-astronomy passed configuration checks; building." >&6; }
28569             else
28570                 passed=no
28571                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-radio-astronomy passed configuration checks; but not building." >&5
28572 $as_echo "Component gr-radio-astronomy passed configuration checks; but not building." >&6; }
28573             fi
28574         fi
28575     fi
28576     if test $passed = no; then
28577         skipped_dirs="$skipped_dirs gr-radio-astronomy"
28578         gr_radio_astronomy_skipped=yes
28579     else
28580         gr_radio_astronomy_skipped=no
28581     fi
28582
28583
28584
28585
28586
28587
28588
28589
28590
28591
28592
28593     passed=yes
28594     # Check whether --enable-gr-trellis was given.
28595 if test "${enable_gr_trellis+set}" = set; then :
28596   enableval=$enable_gr_trellis;
28597 else
28598
28599         enable_gr_trellis=$enable_all_components
28600         if test x$enable_all_components = xno; then
28601             passed=no
28602         fi
28603
28604 fi
28605
28606
28607
28608
28609
28610     if test $passed != no; then
28611         if test $passed = yes; then
28612                         if test x$gnuradio_core_skipped = xyes; then
28613                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-trellis requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
28614 $as_echo "Component gr-trellis requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
28615                 passed=no
28616             fi
28617         else
28618                         if test x$gnuradio_core_with = xno; then
28619                 as_fn_error $? "Component gr-trellis requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
28620             fi
28621         fi
28622     fi
28623
28624
28625     ac_config_files="$ac_config_files gr-trellis/Makefile gr-trellis/gnuradio-trellis.pc gr-trellis/doc/Makefile gr-trellis/src/Makefile gr-trellis/src/lib/Makefile gr-trellis/src/python/Makefile gr-trellis/src/python/run_tests gr-trellis/src/examples/Makefile gr-trellis/src/examples/fsm_files/Makefile"
28626
28627
28628
28629
28630     gr_trellis_with=no
28631     if test $passed = no; then
28632         if test x$enable_gr_trellis = xyes; then
28633             as_fn_error $? "Component gr-trellis has errors; stopping." "$LINENO" 5
28634         else
28635             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-trellis." >&5
28636 $as_echo "Not building component gr-trellis." >&6; }
28637         fi
28638     else
28639         if test $passed = with; then
28640             with_dirs="$with_dirs gr-trellis"
28641
28642     if test "x${gr_trellis_INCLUDES}" != "x"; then
28643         if test "x$with_INCLUDES" = "x"; then
28644             with_INCLUDES="${gr_trellis_INCLUDES}"
28645         else
28646             with_INCLUDES="${gr_trellis_INCLUDES}"" ""$with_INCLUDES"
28647         fi
28648         gr_trellis_INCLUDES=
28649     fi
28650
28651
28652     if test "x${gr_trellis_SWIG_INCLUDES}" != "x"; then
28653         if test "x$with_SWIG_INCLUDES" = "x"; then
28654             with_SWIG_INCLUDES="${gr_trellis_SWIG_INCLUDES}"
28655         else
28656             with_SWIG_INCLUDES="${gr_trellis_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
28657         fi
28658         gr_trellis_SWIG_INCLUDES=
28659     fi
28660
28661
28662     if test "x${gr_trellis_PYDIRPATH}" != "x"; then
28663         if test "x$with_PYDIRPATH" = "x"; then
28664             with_PYDIRPATH="${gr_trellis_PYDIRPATH}"
28665         else
28666             with_PYDIRPATH="${gr_trellis_PYDIRPATH}"":""$with_PYDIRPATH"
28667         fi
28668         gr_trellis_PYDIRPATH=
28669     fi
28670
28671
28672     if test "x${gr_trellis_SWIGDIRPATH}" != "x"; then
28673         if test "x$with_SWIGDIRPATH" = "x"; then
28674             with_SWIGDIRPATH="${gr_trellis_SWIGDIRPATH}"
28675         else
28676             with_SWIGDIRPATH="${gr_trellis_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
28677         fi
28678         gr_trellis_SWIGDIRPATH=
28679     fi
28680
28681
28682     if test "x${gr_trellis_LIBDIRPATH}" != "x"; then
28683         if test "x$with_LIBDIRPATH" = "x"; then
28684             with_LIBDIRPATH="${gr_trellis_LIBDIRPATH}"
28685         else
28686             with_LIBDIRPATH="${gr_trellis_LIBDIRPATH}"":""$with_LIBDIRPATH"
28687         fi
28688         gr_trellis_LIBDIRPATH=
28689     fi
28690
28691             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-trellis will be included from a pre-installed library and includes." >&5
28692 $as_echo "Component gr-trellis will be included from a pre-installed library and includes." >&6; }
28693             gr_trellis_with=yes
28694         else
28695             gr_trellis_LDFLAG=
28696             if test x$enable_gr_trellis != xno; then
28697                         ac_config_commands="$ac_config_commands run_tests_gr_trellis"
28698
28699
28700                 build_dirs="$build_dirs gr-trellis"
28701                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-trellis passed configuration checks; building." >&5
28702 $as_echo "Component gr-trellis passed configuration checks; building." >&6; }
28703             else
28704                 passed=no
28705                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-trellis passed configuration checks; but not building." >&5
28706 $as_echo "Component gr-trellis passed configuration checks; but not building." >&6; }
28707             fi
28708         fi
28709     fi
28710     if test $passed = no; then
28711         skipped_dirs="$skipped_dirs gr-trellis"
28712         gr_trellis_skipped=yes
28713     else
28714         gr_trellis_skipped=no
28715     fi
28716
28717
28718
28719
28720
28721
28722
28723
28724
28725
28726
28727     passed=yes
28728     # Check whether --enable-gr-video-sdl was given.
28729 if test "${enable_gr_video_sdl+set}" = set; then :
28730   enableval=$enable_gr_video_sdl;
28731 else
28732
28733         enable_gr_video_sdl=$enable_all_components
28734         if test x$enable_all_components = xno; then
28735             passed=no
28736         fi
28737
28738 fi
28739
28740
28741
28742
28743
28744     if test $passed != no; then
28745         if test $passed = yes; then
28746                         if test x$gnuradio_core_skipped = xyes; then
28747                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-video-sdl requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
28748 $as_echo "Component gr-video-sdl requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
28749                 passed=no
28750             fi
28751         else
28752                         if test x$gnuradio_core_with = xno; then
28753                 as_fn_error $? "Component gr-video-sdl requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
28754             fi
28755         fi
28756     fi
28757
28758
28759                     if test $passed = yes; then
28760
28761
28762
28763 pkg_failed=no
28764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5
28765 $as_echo_n "checking for SDL... " >&6; }
28766
28767 if test -n "$PKG_CONFIG"; then
28768     if test -n "$SDL_CFLAGS"; then
28769         pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
28770     else
28771         if test -n "$PKG_CONFIG" && \
28772     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\""; } >&5
28773   ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5
28774   ac_status=$?
28775   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28776   test $ac_status = 0; }; then
28777   pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl >= 1.2.0" 2>/dev/null`
28778 else
28779   pkg_failed=yes
28780 fi
28781     fi
28782 else
28783         pkg_failed=untried
28784 fi
28785
28786 if test x$cross_compiling = xyes
28787 then
28788     if test -n "$PKG_CONFIG"; then
28789     if test -n "$SDL_LIBS"; then
28790         pkg_cv_SDL_LIBS="$SDL_LIBS"
28791     else
28792         if test -n "$PKG_CONFIG" && \
28793     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\""; } >&5
28794   ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5
28795   ac_status=$?
28796   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28797   test $ac_status = 0; }; then
28798   pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs --static "sdl >= 1.2.0" 2>/dev/null`
28799 else
28800   pkg_failed=yes
28801 fi
28802     fi
28803 else
28804         pkg_failed=untried
28805 fi
28806     _pkg_tmp=
28807   for flag in $pkg_cv_SDL_LIBS; do
28808     case $flag in
28809     (-L/lib* | -L/usr/lib* )       ;; # ignore
28810     (*) _pkg_tmp="$_pkg_tmp $flag" ;;
28811     esac
28812   done
28813   pkg_cv_SDL_LIBS="$_pkg_tmp"
28814 else
28815   if test -n "$PKG_CONFIG"; then
28816     if test -n "$SDL_LIBS"; then
28817         pkg_cv_SDL_LIBS="$SDL_LIBS"
28818     else
28819         if test -n "$PKG_CONFIG" && \
28820     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\""; } >&5
28821   ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5
28822   ac_status=$?
28823   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28824   test $ac_status = 0; }; then
28825   pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs --static "sdl >= 1.2.0" 2>/dev/null`
28826 else
28827   pkg_failed=yes
28828 fi
28829     fi
28830 else
28831         pkg_failed=untried
28832 fi
28833 fi
28834
28835 if test -n "$PKG_CONFIG"; then
28836     if test -n "$SDL_INCLUDEDIR"; then
28837         pkg_cv_SDL_INCLUDEDIR="$SDL_INCLUDEDIR"
28838     else
28839         if test -n "$PKG_CONFIG" && \
28840     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\""; } >&5
28841   ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5
28842   ac_status=$?
28843   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28844   test $ac_status = 0; }; then
28845   pkg_cv_SDL_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "sdl >= 1.2.0" 2>/dev/null`
28846 else
28847   pkg_failed=yes
28848 fi
28849     fi
28850 else
28851         pkg_failed=untried
28852 fi
28853
28854
28855
28856
28857 if test $pkg_failed = yes; then
28858
28859 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28860         _pkg_short_errors_supported=yes
28861 else
28862         _pkg_short_errors_supported=no
28863 fi
28864         if test $_pkg_short_errors_supported = yes; then
28865                 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sdl >= 1.2.0"`
28866         else
28867                 SDL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sdl >= 1.2.0"`
28868         fi
28869         # Put the nasty error message in config.log where it belongs
28870         echo "$SDL_PKG_ERRORS" >&5
28871
28872         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28873 $as_echo "no" >&6; }
28874                 SDL_VERSION=1.2.0
28875
28876 # Check whether --with-sdl-prefix was given.
28877 if test "${with_sdl_prefix+set}" = set; then :
28878   withval=$with_sdl_prefix; sdl_prefix="$withval"
28879 else
28880   sdl_prefix=""
28881 fi
28882
28883
28884 # Check whether --with-sdl-exec-prefix was given.
28885 if test "${with_sdl_exec_prefix+set}" = set; then :
28886   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
28887 else
28888   sdl_exec_prefix=""
28889 fi
28890
28891 # Check whether --enable-sdltest was given.
28892 if test "${enable_sdltest+set}" = set; then :
28893   enableval=$enable_sdltest;
28894 else
28895   enable_sdltest=yes
28896 fi
28897
28898
28899   if test x$sdl_exec_prefix != x ; then
28900      sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
28901      if test x${SDL_CONFIG+set} != xset ; then
28902         SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
28903      fi
28904   fi
28905   if test x$sdl_prefix != x ; then
28906      sdl_args="$sdl_args --prefix=$sdl_prefix"
28907      if test x${SDL_CONFIG+set} != xset ; then
28908         SDL_CONFIG=$sdl_prefix/bin/sdl-config
28909      fi
28910   fi
28911
28912
28913   TMP_PATH="$prefix/bin:$prefix/usr/bin:$PATH"
28914   # Extract the first word of "sdl-config", so it can be a program name with args.
28915 set dummy sdl-config; ac_word=$2
28916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28917 $as_echo_n "checking for $ac_word... " >&6; }
28918 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then :
28919   $as_echo_n "(cached) " >&6
28920 else
28921   case $SDL_CONFIG in
28922   [\\/]* | ?:[\\/]*)
28923   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
28924   ;;
28925   *)
28926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28927 for as_dir in $TMP_PATH
28928 do
28929   IFS=$as_save_IFS
28930   test -z "$as_dir" && as_dir=.
28931     for ac_exec_ext in '' $ac_executable_extensions; do
28932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28933     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28935     break 2
28936   fi
28937 done
28938   done
28939 IFS=$as_save_IFS
28940
28941   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
28942   ;;
28943 esac
28944 fi
28945 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
28946 if test -n "$SDL_CONFIG"; then
28947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
28948 $as_echo "$SDL_CONFIG" >&6; }
28949 else
28950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28951 $as_echo "no" >&6; }
28952 fi
28953
28954
28955   min_sdl_version=$SDL_VERSION
28956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
28957 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
28958   no_sdl=""
28959   if test "$SDL_CONFIG" = "no" ; then
28960     no_sdl=yes
28961   else
28962     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
28963     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
28964
28965     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
28966            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28967     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
28968            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28969     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
28970            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28971     if test "x$enable_sdltest" = "xyes" ; then
28972       ac_save_CFLAGS="$CFLAGS"
28973       ac_save_LIBS="$LIBS"
28974       CFLAGS="$CFLAGS $SDL_CFLAGS"
28975       LIBS="$LIBS $SDL_LIBS"
28976       rm -f conf.sdltest
28977       if test "$cross_compiling" = yes; then :
28978   echo $ac_n "cross compiling; assumed OK... $ac_c"
28979 else
28980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28981 /* end confdefs.h.  */
28982
28983 #include <stdio.h>
28984 #include <stdlib.h>
28985 #include <string.h>
28986 #include "SDL.h"
28987
28988 char*
28989 my_strdup (char *str)
28990 {
28991   char *new_str;
28992
28993   if (str)
28994     {
28995       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
28996       strcpy (new_str, str);
28997     }
28998   else
28999     new_str = NULL;
29000
29001   return new_str;
29002 }
29003
29004 int main (int argc, char *argv[])
29005 {
29006   int major, minor, micro;
29007   char *tmp_version;
29008
29009   /* This hangs on some systems (?)
29010   system ("touch conf.sdltest");
29011   */
29012   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
29013
29014   /* HP/UX 9 (%@#!) writes to sscanf strings */
29015   tmp_version = my_strdup("$min_sdl_version");
29016   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
29017      printf("%s, bad version string\n", "$min_sdl_version");
29018      exit(1);
29019    }
29020
29021    if (($sdl_major_version > major) ||
29022       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
29023       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
29024     {
29025       return 0;
29026     }
29027   else
29028     {
29029       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
29030       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
29031       printf("*** best to upgrade to the required version.\n");
29032       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
29033       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
29034       printf("*** config.cache before re-running configure\n");
29035       return 1;
29036     }
29037 }
29038
29039
29040 _ACEOF
29041 if ac_fn_c_try_run "$LINENO"; then :
29042
29043 else
29044   no_sdl=yes
29045 fi
29046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29047   conftest.$ac_objext conftest.beam conftest.$ac_ext
29048 fi
29049
29050        CFLAGS="$ac_save_CFLAGS"
29051        LIBS="$ac_save_LIBS"
29052      fi
29053   fi
29054   if test "x$no_sdl" = x ; then
29055      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29056 $as_echo "yes" >&6; }
29057      :
29058   else
29059      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29060 $as_echo "no" >&6; }
29061      if test "$SDL_CONFIG" = "no" ; then
29062        echo "*** The sdl-config script installed by SDL could not be found"
29063        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
29064        echo "*** your path, or set the SDL_CONFIG environment variable to the"
29065        echo "*** full path to sdl-config."
29066      else
29067        if test -f conf.sdltest ; then
29068         :
29069        else
29070           echo "*** Could not run SDL test program, checking why..."
29071           CFLAGS="$CFLAGS $SDL_CFLAGS"
29072           LIBS="$LIBS $SDL_LIBS"
29073           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29074 /* end confdefs.h.  */
29075
29076 #include <stdio.h>
29077 #include "SDL.h"
29078
29079 int main(int argc, char *argv[])
29080 { return 0; }
29081 #undef  main
29082 #define main K_and_R_C_main
29083
29084 int
29085 main ()
29086 {
29087  return 0;
29088   ;
29089   return 0;
29090 }
29091 _ACEOF
29092 if ac_fn_c_try_link "$LINENO"; then :
29093    echo "*** The test program compiled, but did not run. This usually means"
29094           echo "*** that the run-time linker is not finding SDL or finding the wrong"
29095           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
29096           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29097           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
29098           echo "*** is required on your system"
29099           echo "***"
29100           echo "*** If you have an old version installed, it is best to remove it, although"
29101           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29102 else
29103    echo "*** The test program failed to compile or link. See the file config.log for the"
29104           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
29105           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
29106           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
29107 fi
29108 rm -f core conftest.err conftest.$ac_objext \
29109     conftest$ac_exeext conftest.$ac_ext
29110           CFLAGS="$ac_save_CFLAGS"
29111           LIBS="$ac_save_LIBS"
29112        fi
29113      fi
29114      SDL_CFLAGS=""
29115      SDL_LIBS=""
29116
29117              passed=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-video-sdl requires library sdl, not found or failed test." >&5
29118 $as_echo "gr-video-sdl requires library sdl, not found or failed test." >&6; }
29119   fi
29120
29121
29122   rm -f conf.sdltest
29123
29124 elif test $pkg_failed = untried; then
29125         SDL_VERSION=1.2.0
29126
29127 # Check whether --with-sdl-prefix was given.
29128 if test "${with_sdl_prefix+set}" = set; then :
29129   withval=$with_sdl_prefix; sdl_prefix="$withval"
29130 else
29131   sdl_prefix=""
29132 fi
29133
29134
29135 # Check whether --with-sdl-exec-prefix was given.
29136 if test "${with_sdl_exec_prefix+set}" = set; then :
29137   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
29138 else
29139   sdl_exec_prefix=""
29140 fi
29141
29142 # Check whether --enable-sdltest was given.
29143 if test "${enable_sdltest+set}" = set; then :
29144   enableval=$enable_sdltest;
29145 else
29146   enable_sdltest=yes
29147 fi
29148
29149
29150   if test x$sdl_exec_prefix != x ; then
29151      sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
29152      if test x${SDL_CONFIG+set} != xset ; then
29153         SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
29154      fi
29155   fi
29156   if test x$sdl_prefix != x ; then
29157      sdl_args="$sdl_args --prefix=$sdl_prefix"
29158      if test x${SDL_CONFIG+set} != xset ; then
29159         SDL_CONFIG=$sdl_prefix/bin/sdl-config
29160      fi
29161   fi
29162
29163
29164   TMP_PATH="$prefix/bin:$prefix/usr/bin:$PATH"
29165   # Extract the first word of "sdl-config", so it can be a program name with args.
29166 set dummy sdl-config; ac_word=$2
29167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29168 $as_echo_n "checking for $ac_word... " >&6; }
29169 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then :
29170   $as_echo_n "(cached) " >&6
29171 else
29172   case $SDL_CONFIG in
29173   [\\/]* | ?:[\\/]*)
29174   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
29175   ;;
29176   *)
29177   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29178 for as_dir in $TMP_PATH
29179 do
29180   IFS=$as_save_IFS
29181   test -z "$as_dir" && as_dir=.
29182     for ac_exec_ext in '' $ac_executable_extensions; do
29183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29184     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29186     break 2
29187   fi
29188 done
29189   done
29190 IFS=$as_save_IFS
29191
29192   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
29193   ;;
29194 esac
29195 fi
29196 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
29197 if test -n "$SDL_CONFIG"; then
29198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
29199 $as_echo "$SDL_CONFIG" >&6; }
29200 else
29201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29202 $as_echo "no" >&6; }
29203 fi
29204
29205
29206   min_sdl_version=$SDL_VERSION
29207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
29208 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
29209   no_sdl=""
29210   if test "$SDL_CONFIG" = "no" ; then
29211     no_sdl=yes
29212   else
29213     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
29214     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
29215
29216     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
29217            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
29218     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
29219            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
29220     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
29221            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
29222     if test "x$enable_sdltest" = "xyes" ; then
29223       ac_save_CFLAGS="$CFLAGS"
29224       ac_save_LIBS="$LIBS"
29225       CFLAGS="$CFLAGS $SDL_CFLAGS"
29226       LIBS="$LIBS $SDL_LIBS"
29227       rm -f conf.sdltest
29228       if test "$cross_compiling" = yes; then :
29229   echo $ac_n "cross compiling; assumed OK... $ac_c"
29230 else
29231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29232 /* end confdefs.h.  */
29233
29234 #include <stdio.h>
29235 #include <stdlib.h>
29236 #include <string.h>
29237 #include "SDL.h"
29238
29239 char*
29240 my_strdup (char *str)
29241 {
29242   char *new_str;
29243
29244   if (str)
29245     {
29246       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
29247       strcpy (new_str, str);
29248     }
29249   else
29250     new_str = NULL;
29251
29252   return new_str;
29253 }
29254
29255 int main (int argc, char *argv[])
29256 {
29257   int major, minor, micro;
29258   char *tmp_version;
29259
29260   /* This hangs on some systems (?)
29261   system ("touch conf.sdltest");
29262   */
29263   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
29264
29265   /* HP/UX 9 (%@#!) writes to sscanf strings */
29266   tmp_version = my_strdup("$min_sdl_version");
29267   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
29268      printf("%s, bad version string\n", "$min_sdl_version");
29269      exit(1);
29270    }
29271
29272    if (($sdl_major_version > major) ||
29273       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
29274       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
29275     {
29276       return 0;
29277     }
29278   else
29279     {
29280       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
29281       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
29282       printf("*** best to upgrade to the required version.\n");
29283       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
29284       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
29285       printf("*** config.cache before re-running configure\n");
29286       return 1;
29287     }
29288 }
29289
29290
29291 _ACEOF
29292 if ac_fn_c_try_run "$LINENO"; then :
29293
29294 else
29295   no_sdl=yes
29296 fi
29297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29298   conftest.$ac_objext conftest.beam conftest.$ac_ext
29299 fi
29300
29301        CFLAGS="$ac_save_CFLAGS"
29302        LIBS="$ac_save_LIBS"
29303      fi
29304   fi
29305   if test "x$no_sdl" = x ; then
29306      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29307 $as_echo "yes" >&6; }
29308      :
29309   else
29310      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29311 $as_echo "no" >&6; }
29312      if test "$SDL_CONFIG" = "no" ; then
29313        echo "*** The sdl-config script installed by SDL could not be found"
29314        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
29315        echo "*** your path, or set the SDL_CONFIG environment variable to the"
29316        echo "*** full path to sdl-config."
29317      else
29318        if test -f conf.sdltest ; then
29319         :
29320        else
29321           echo "*** Could not run SDL test program, checking why..."
29322           CFLAGS="$CFLAGS $SDL_CFLAGS"
29323           LIBS="$LIBS $SDL_LIBS"
29324           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29325 /* end confdefs.h.  */
29326
29327 #include <stdio.h>
29328 #include "SDL.h"
29329
29330 int main(int argc, char *argv[])
29331 { return 0; }
29332 #undef  main
29333 #define main K_and_R_C_main
29334
29335 int
29336 main ()
29337 {
29338  return 0;
29339   ;
29340   return 0;
29341 }
29342 _ACEOF
29343 if ac_fn_c_try_link "$LINENO"; then :
29344    echo "*** The test program compiled, but did not run. This usually means"
29345           echo "*** that the run-time linker is not finding SDL or finding the wrong"
29346           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
29347           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29348           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
29349           echo "*** is required on your system"
29350           echo "***"
29351           echo "*** If you have an old version installed, it is best to remove it, although"
29352           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29353 else
29354    echo "*** The test program failed to compile or link. See the file config.log for the"
29355           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
29356           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
29357           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
29358 fi
29359 rm -f core conftest.err conftest.$ac_objext \
29360     conftest$ac_exeext conftest.$ac_ext
29361           CFLAGS="$ac_save_CFLAGS"
29362           LIBS="$ac_save_LIBS"
29363        fi
29364      fi
29365      SDL_CFLAGS=""
29366      SDL_LIBS=""
29367
29368              passed=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-video-sdl requires library sdl, not found or failed test." >&5
29369 $as_echo "gr-video-sdl requires library sdl, not found or failed test." >&6; }
29370   fi
29371
29372
29373   rm -f conf.sdltest
29374
29375 else
29376         SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
29377         SDL_LIBS=$pkg_cv_SDL_LIBS
29378         SDL_INCLUDEDIR=$pkg_cv_SDL_INCLUDEDIR
29379
29380         SDL_CPPFLAGS=""
29381         for flag in $SDL_CFLAGS; do
29382           case $flag in
29383           -I* | -D* | -U*) SDL_CPPFLAGS="$SDL_CPPFLAGS $flag" ;;
29384           esac
29385         done
29386         pkg_cv_SDL_CPPFLAGS=$SDL_CPPFLAGS
29387
29388
29389         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29390 $as_echo "yes" >&6; }
29391         :
29392 fi
29393     fi
29394
29395     ac_config_files="$ac_config_files gr-video-sdl/Makefile gr-video-sdl/gnuradio-video-sdl.pc gr-video-sdl/src/Makefile gr-video-sdl/src/run_tests"
29396
29397
29398
29399
29400     gr_video_sdl_with=no
29401     if test $passed = no; then
29402         if test x$enable_gr_video_sdl = xyes; then
29403             as_fn_error $? "Component gr-video-sdl has errors; stopping." "$LINENO" 5
29404         else
29405             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-video-sdl." >&5
29406 $as_echo "Not building component gr-video-sdl." >&6; }
29407         fi
29408     else
29409         if test $passed = with; then
29410             with_dirs="$with_dirs gr-video-sdl"
29411
29412     if test "x${gr_video_sdl_INCLUDES}" != "x"; then
29413         if test "x$with_INCLUDES" = "x"; then
29414             with_INCLUDES="${gr_video_sdl_INCLUDES}"
29415         else
29416             with_INCLUDES="${gr_video_sdl_INCLUDES}"" ""$with_INCLUDES"
29417         fi
29418         gr_video_sdl_INCLUDES=
29419     fi
29420
29421
29422     if test "x${gr_video_sdl_SWIG_INCLUDES}" != "x"; then
29423         if test "x$with_SWIG_INCLUDES" = "x"; then
29424             with_SWIG_INCLUDES="${gr_video_sdl_SWIG_INCLUDES}"
29425         else
29426             with_SWIG_INCLUDES="${gr_video_sdl_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
29427         fi
29428         gr_video_sdl_SWIG_INCLUDES=
29429     fi
29430
29431
29432     if test "x${gr_video_sdl_PYDIRPATH}" != "x"; then
29433         if test "x$with_PYDIRPATH" = "x"; then
29434             with_PYDIRPATH="${gr_video_sdl_PYDIRPATH}"
29435         else
29436             with_PYDIRPATH="${gr_video_sdl_PYDIRPATH}"":""$with_PYDIRPATH"
29437         fi
29438         gr_video_sdl_PYDIRPATH=
29439     fi
29440
29441
29442     if test "x${gr_video_sdl_SWIGDIRPATH}" != "x"; then
29443         if test "x$with_SWIGDIRPATH" = "x"; then
29444             with_SWIGDIRPATH="${gr_video_sdl_SWIGDIRPATH}"
29445         else
29446             with_SWIGDIRPATH="${gr_video_sdl_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
29447         fi
29448         gr_video_sdl_SWIGDIRPATH=
29449     fi
29450
29451
29452     if test "x${gr_video_sdl_LIBDIRPATH}" != "x"; then
29453         if test "x$with_LIBDIRPATH" = "x"; then
29454             with_LIBDIRPATH="${gr_video_sdl_LIBDIRPATH}"
29455         else
29456             with_LIBDIRPATH="${gr_video_sdl_LIBDIRPATH}"":""$with_LIBDIRPATH"
29457         fi
29458         gr_video_sdl_LIBDIRPATH=
29459     fi
29460
29461             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-video-sdl will be included from a pre-installed library and includes." >&5
29462 $as_echo "Component gr-video-sdl will be included from a pre-installed library and includes." >&6; }
29463             gr_video_sdl_with=yes
29464         else
29465             gr_video_sdl_LDFLAG=
29466             if test x$enable_gr_video_sdl != xno; then
29467                         ac_config_commands="$ac_config_commands run_tests_sdl"
29468
29469
29470                 build_dirs="$build_dirs gr-video-sdl"
29471                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-video-sdl passed configuration checks; building." >&5
29472 $as_echo "Component gr-video-sdl passed configuration checks; building." >&6; }
29473             else
29474                 passed=no
29475                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-video-sdl passed configuration checks; but not building." >&5
29476 $as_echo "Component gr-video-sdl passed configuration checks; but not building." >&6; }
29477             fi
29478         fi
29479     fi
29480     if test $passed = no; then
29481         skipped_dirs="$skipped_dirs gr-video-sdl"
29482         gr_video_sdl_skipped=yes
29483     else
29484         gr_video_sdl_skipped=no
29485     fi
29486
29487
29488
29489
29490
29491
29492
29493
29494
29495
29496
29497     passed=yes
29498     # Check whether --enable-gr-wxgui was given.
29499 if test "${enable_gr_wxgui+set}" = set; then :
29500   enableval=$enable_gr_wxgui;
29501 else
29502
29503         enable_gr_wxgui=$enable_all_components
29504         if test x$enable_all_components = xno; then
29505             passed=no
29506         fi
29507
29508 fi
29509
29510
29511
29512
29513     if test x = x; then
29514         pc_comp_name="gr-wxgui"
29515     else
29516         pc_comp_name=""
29517     fi
29518
29519
29520 # Check whether --with-gr-wxgui was given.
29521 if test "${with_gr_wxgui+set}" = set; then :
29522   withval=$with_gr_wxgui; if test "x$withval" != "xyes"; then
29523                     with_gr_wxgui_val=$withval
29524                     with_gr_wxgui=yes
29525                  fi
29526 fi
29527
29528     if test x$with_gr_wxgui = xyes; then
29529         if test x$enable_gr_wxgui = xyes; then
29530             as_fn_error $? "Component gr-wxgui: Cannot use both --enable and --with" "$LINENO" 5
29531         else
29532
29533         s_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
29534
29535             l_PKG_CONFIG_PATH=$with_gr_wxgui_val
29536     if test "x$l_PKG_CONFIG_PATH" != "x"; then
29537         export PKG_CONFIG_PATH=$l_PKG_CONFIG_PATH
29538
29539                 if ! test -r ${l_PKG_CONFIG_PATH}/${pc_comp_name}.pc; then
29540             as_fn_error $? "Component gr-wxgui: PKGCONFIG cannot find info for ${pc_comp_name}, with provided PKG_CONFIG_PATH = [ $l_PKG_CONFIG_PATH ] ." "$LINENO" 5
29541         fi
29542     fi
29543
29544         if test -n "$PKG_CONFIG" && \
29545     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${pc_comp_name}\""; } >&5
29546   ($PKG_CONFIG --exists --print-errors "${pc_comp_name}") 2>&5
29547   ac_status=$?
29548   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29549   test $ac_status = 0; }; then
29550   passed=with; check1=yes
29551 else
29552
29553         check1=no
29554                                         if test "x$l_PKG_CONFIG_PATH" != "x"; then
29555             if test "x$s_PKG_CONFIG_PATH" != "x"; then
29556                 export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${s_PKG_CONFIG_PATH}
29557                 if test -n "$PKG_CONFIG" && \
29558     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${pc_comp_name}\""; } >&5
29559   ($PKG_CONFIG --exists --print-errors "${pc_comp_name}") 2>&5
29560   ac_status=$?
29561   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29562   test $ac_status = 0; }; then
29563   passed=with
29564 else
29565   passed=no
29566 fi
29567             fi
29568         fi
29569         if test $passed != with; then
29570             as_fn_error $? "Component gr-wxgui: PKGCONFIG cannot find info for ${pc_comp_name}, with PKG_CONFIG_PATH = [ $PKG_CONFIG_PATH ] ." "$LINENO" 5
29571         fi
29572                 s_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
29573
29574 fi
29575
29576                 gr_wxgui_INCLUDES=`$PKG_CONFIG --cflags-only-I ${pc_comp_name}`
29577     gr_wxgui_LA=`$PKG_CONFIG --libs ${pc_comp_name}`
29578     gr_wxgui_INCLUDEDIR=`$PKG_CONFIG --variable=includedir ${pc_comp_name}`
29579
29580     if test x$check1 = xyes; then
29581                         if test "x$s_PKG_CONFIG_PATH" != "x"; then
29582             export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${s_PKG_CONFIG_PATH}
29583         fi
29584     fi
29585
29586             :
29587         fi
29588     fi
29589
29590
29591
29592
29593     if test $passed != no; then
29594         if test $passed = yes; then
29595                         if test x$gnuradio_core_skipped = xyes; then
29596                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-wxgui requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
29597 $as_echo "Component gr-wxgui requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
29598                 passed=no
29599             fi
29600         else
29601                         if test x$gnuradio_core_with = xno; then
29602                 as_fn_error $? "Component gr-wxgui requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
29603             fi
29604         fi
29605     fi
29606
29607
29608                     if test $passed = yes; then
29609
29610     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python wxWidgets wrappers >= 2.8" >&5
29611 $as_echo_n "checking for Python wxWidgets wrappers >= 2.8... " >&6; }
29612                 if test "wx.version().split()[0] >= "2.8""; then
29613         python_cmd='
29614 try:
29615     import wx
29616     assert wx.version().split()[0] >= "2.8"
29617 except: exit(1)'
29618                 else
29619         python_cmd='
29620 try: import wx
29621 except: exit(1)'
29622     fi
29623     if ! $PYTHON -c "$python_cmd" 2> /dev/null; then
29624         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29625 $as_echo "no" >&6; }
29626         passed=no
29627     else
29628         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29629 $as_echo "yes" >&6; }
29630
29631     fi
29632
29633
29634     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Numeric Python extensions" >&5
29635 $as_echo_n "checking for Numeric Python extensions... " >&6; }
29636                 if test ""; then
29637         python_cmd='
29638 try:
29639     import numpy
29640     assert
29641 except: exit(1)'
29642                 else
29643         python_cmd='
29644 try: import numpy
29645 except: exit(1)'
29646     fi
29647     if ! $PYTHON -c "$python_cmd" 2> /dev/null; then
29648         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29649 $as_echo "no" >&6; }
29650         passed=no
29651     else
29652         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29653 $as_echo "yes" >&6; }
29654
29655     fi
29656
29657     fi
29658
29659     ac_config_files="$ac_config_files gr-wxgui/Makefile gr-wxgui/gr-wxgui.pc gr-wxgui/src/Makefile gr-wxgui/src/python/Makefile gr-wxgui/src/python/plotter/Makefile"
29660
29661
29662
29663
29664     gr_wxgui_with=no
29665     if test $passed = no; then
29666         if test x$enable_gr_wxgui = xyes; then
29667             as_fn_error $? "Component gr-wxgui has errors; stopping." "$LINENO" 5
29668         else
29669             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-wxgui." >&5
29670 $as_echo "Not building component gr-wxgui." >&6; }
29671         fi
29672     else
29673         if test $passed = with; then
29674             with_dirs="$with_dirs gr-wxgui"
29675
29676     if test "x${gr_wxgui_INCLUDES}" != "x"; then
29677         if test "x$with_INCLUDES" = "x"; then
29678             with_INCLUDES="${gr_wxgui_INCLUDES}"
29679         else
29680             with_INCLUDES="${gr_wxgui_INCLUDES}"" ""$with_INCLUDES"
29681         fi
29682         gr_wxgui_INCLUDES=
29683     fi
29684
29685
29686     if test "x${gr_wxgui_SWIG_INCLUDES}" != "x"; then
29687         if test "x$with_SWIG_INCLUDES" = "x"; then
29688             with_SWIG_INCLUDES="${gr_wxgui_SWIG_INCLUDES}"
29689         else
29690             with_SWIG_INCLUDES="${gr_wxgui_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
29691         fi
29692         gr_wxgui_SWIG_INCLUDES=
29693     fi
29694
29695
29696     if test "x${gr_wxgui_PYDIRPATH}" != "x"; then
29697         if test "x$with_PYDIRPATH" = "x"; then
29698             with_PYDIRPATH="${gr_wxgui_PYDIRPATH}"
29699         else
29700             with_PYDIRPATH="${gr_wxgui_PYDIRPATH}"":""$with_PYDIRPATH"
29701         fi
29702         gr_wxgui_PYDIRPATH=
29703     fi
29704
29705
29706     if test "x${gr_wxgui_SWIGDIRPATH}" != "x"; then
29707         if test "x$with_SWIGDIRPATH" = "x"; then
29708             with_SWIGDIRPATH="${gr_wxgui_SWIGDIRPATH}"
29709         else
29710             with_SWIGDIRPATH="${gr_wxgui_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
29711         fi
29712         gr_wxgui_SWIGDIRPATH=
29713     fi
29714
29715
29716     if test "x${gr_wxgui_LIBDIRPATH}" != "x"; then
29717         if test "x$with_LIBDIRPATH" = "x"; then
29718             with_LIBDIRPATH="${gr_wxgui_LIBDIRPATH}"
29719         else
29720             with_LIBDIRPATH="${gr_wxgui_LIBDIRPATH}"":""$with_LIBDIRPATH"
29721         fi
29722         gr_wxgui_LIBDIRPATH=
29723     fi
29724
29725             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-wxgui will be included from a pre-installed library and includes." >&5
29726 $as_echo "Component gr-wxgui will be included from a pre-installed library and includes." >&6; }
29727             gr_wxgui_with=yes
29728         else
29729             gr_wxgui_LDFLAG=
29730             if test x$enable_gr_wxgui != xno; then
29731                 :
29732                 build_dirs="$build_dirs gr-wxgui"
29733                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-wxgui passed configuration checks; building." >&5
29734 $as_echo "Component gr-wxgui passed configuration checks; building." >&6; }
29735             else
29736                 passed=no
29737                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-wxgui passed configuration checks; but not building." >&5
29738 $as_echo "Component gr-wxgui passed configuration checks; but not building." >&6; }
29739             fi
29740         fi
29741     fi
29742     if test $passed = no; then
29743         skipped_dirs="$skipped_dirs gr-wxgui"
29744         gr_wxgui_skipped=yes
29745     else
29746         gr_wxgui_skipped=no
29747     fi
29748
29749
29750
29751
29752
29753
29754
29755
29756
29757
29758
29759
29760     passed=yes
29761     # Check whether --enable-gr-qtgui was given.
29762 if test "${enable_gr_qtgui+set}" = set; then :
29763   enableval=$enable_gr_qtgui;
29764 else
29765
29766         enable_gr_qtgui=$enable_all_components
29767         if test x$enable_all_components = xno; then
29768             passed=no
29769         fi
29770
29771 fi
29772
29773
29774
29775
29776
29777     if test $passed != no; then
29778         if test $passed = yes; then
29779                         if test x$gnuradio_core_skipped = xyes; then
29780                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-qtgui requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
29781 $as_echo "Component gr-qtgui requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
29782                 passed=no
29783             fi
29784         else
29785                         if test x$gnuradio_core_with = xno; then
29786                 as_fn_error $? "Component gr-qtgui requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
29787             fi
29788         fi
29789     fi
29790
29791
29792
29793
29794     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PyQt4 for Qt4" >&5
29795 $as_echo_n "checking for PyQt4 for Qt4... " >&6; }
29796                 if test "\
29797         PyQt4.QtCore.PYQT_VERSION >= 260000"; then
29798         python_cmd='
29799 try:
29800     import PyQt4.QtCore
29801     assert \
29802         PyQt4.QtCore.PYQT_VERSION >= 260000
29803 except: exit(1)'
29804                 else
29805         python_cmd='
29806 try: import PyQt4.QtCore
29807 except: exit(1)'
29808     fi
29809     if ! $PYTHON -c "$python_cmd" 2> /dev/null; then
29810         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29811 $as_echo "no" >&6; }
29812         passed=no
29813     else
29814         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29815 $as_echo "yes" >&6; }
29816         \
29817         passed=yes
29818     fi
29819
29820
29821     # Enable this if we want to test for PyQwt, too
29822     #PYTHON_CHECK_MODULE([PyQt4.Qwt5], [PyQwt5 for Qt4], \
29823     #   [passed=yes], [passed=no], \
29824     #   [PyQt4.Qwt5.QWT_VERSION >= 327000])
29825
29826 # Check for:
29827 #       QtOpenGL
29828 #       QtGui
29829 #       QtCore
29830 #       qwt
29831 #       qwtplot3d
29832 #       qt4
29833
29834 # qt4-core, qt4-gui, qwt5-qt4, qwt5-qt4-dev, libqwtplot3d-qt4, libqwtplot3d-qt4-dev, qt4-dev-tools
29835
29836     if test $passed = yes; then
29837
29838
29839
29840 pkg_failed=no
29841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QTCORE" >&5
29842 $as_echo_n "checking for QTCORE... " >&6; }
29843
29844 if test -n "$PKG_CONFIG"; then
29845     if test -n "$QTCORE_CFLAGS"; then
29846         pkg_cv_QTCORE_CFLAGS="$QTCORE_CFLAGS"
29847     else
29848         if test -n "$PKG_CONFIG" && \
29849     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore >= 4.2\""; } >&5
29850   ($PKG_CONFIG --exists --print-errors "QtCore >= 4.2") 2>&5
29851   ac_status=$?
29852   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29853   test $ac_status = 0; }; then
29854   pkg_cv_QTCORE_CFLAGS=`$PKG_CONFIG --cflags "QtCore >= 4.2" 2>/dev/null`
29855 else
29856   pkg_failed=yes
29857 fi
29858     fi
29859 else
29860         pkg_failed=untried
29861 fi
29862
29863 if test x$cross_compiling = xyes
29864 then
29865     if test -n "$PKG_CONFIG"; then
29866     if test -n "$QTCORE_LIBS"; then
29867         pkg_cv_QTCORE_LIBS="$QTCORE_LIBS"
29868     else
29869         if test -n "$PKG_CONFIG" && \
29870     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore >= 4.2\""; } >&5
29871   ($PKG_CONFIG --exists --print-errors "QtCore >= 4.2") 2>&5
29872   ac_status=$?
29873   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29874   test $ac_status = 0; }; then
29875   pkg_cv_QTCORE_LIBS=`$PKG_CONFIG --libs --static "QtCore >= 4.2" 2>/dev/null`
29876 else
29877   pkg_failed=yes
29878 fi
29879     fi
29880 else
29881         pkg_failed=untried
29882 fi
29883     _pkg_tmp=
29884   for flag in $pkg_cv_QTCORE_LIBS; do
29885     case $flag in
29886     (-L/lib* | -L/usr/lib* )       ;; # ignore
29887     (*) _pkg_tmp="$_pkg_tmp $flag" ;;
29888     esac
29889   done
29890   pkg_cv_QTCORE_LIBS="$_pkg_tmp"
29891 else
29892   if test -n "$PKG_CONFIG"; then
29893     if test -n "$QTCORE_LIBS"; then
29894         pkg_cv_QTCORE_LIBS="$QTCORE_LIBS"
29895     else
29896         if test -n "$PKG_CONFIG" && \
29897     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore >= 4.2\""; } >&5
29898   ($PKG_CONFIG --exists --print-errors "QtCore >= 4.2") 2>&5
29899   ac_status=$?
29900   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29901   test $ac_status = 0; }; then
29902   pkg_cv_QTCORE_LIBS=`$PKG_CONFIG --libs --static "QtCore >= 4.2" 2>/dev/null`
29903 else
29904   pkg_failed=yes
29905 fi
29906     fi
29907 else
29908         pkg_failed=untried
29909 fi
29910 fi
29911
29912 if test -n "$PKG_CONFIG"; then
29913     if test -n "$QTCORE_INCLUDEDIR"; then
29914         pkg_cv_QTCORE_INCLUDEDIR="$QTCORE_INCLUDEDIR"
29915     else
29916         if test -n "$PKG_CONFIG" && \
29917     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore >= 4.2\""; } >&5
29918   ($PKG_CONFIG --exists --print-errors "QtCore >= 4.2") 2>&5
29919   ac_status=$?
29920   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29921   test $ac_status = 0; }; then
29922   pkg_cv_QTCORE_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "QtCore >= 4.2" 2>/dev/null`
29923 else
29924   pkg_failed=yes
29925 fi
29926     fi
29927 else
29928         pkg_failed=untried
29929 fi
29930
29931
29932
29933
29934 if test $pkg_failed = yes; then
29935
29936 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29937         _pkg_short_errors_supported=yes
29938 else
29939         _pkg_short_errors_supported=no
29940 fi
29941         if test $_pkg_short_errors_supported = yes; then
29942                 QTCORE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "QtCore >= 4.2"`
29943         else
29944                 QTCORE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtCore >= 4.2"`
29945         fi
29946         # Put the nasty error message in config.log where it belongs
29947         echo "$QTCORE_PKG_ERRORS" >&5
29948
29949         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29950 $as_echo "no" >&6; }
29951                 passed=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-qtgui requires libQtCore >= 4.2." >&5
29952 $as_echo "gr-qtgui requires libQtCore >= 4.2." >&6; }
29953 elif test $pkg_failed = untried; then
29954         passed=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-qtgui requires libQtCore >= 4.2." >&5
29955 $as_echo "gr-qtgui requires libQtCore >= 4.2." >&6; }
29956 else
29957         QTCORE_CFLAGS=$pkg_cv_QTCORE_CFLAGS
29958         QTCORE_LIBS=$pkg_cv_QTCORE_LIBS
29959         QTCORE_INCLUDEDIR=$pkg_cv_QTCORE_INCLUDEDIR
29960
29961         QTCORE_CPPFLAGS=""
29962         for flag in $QTCORE_CFLAGS; do
29963           case $flag in
29964           -I* | -D* | -U*) QTCORE_CPPFLAGS="$QTCORE_CPPFLAGS $flag" ;;
29965           esac
29966         done
29967         pkg_cv_QTCORE_CPPFLAGS=$QTCORE_CPPFLAGS
29968
29969
29970         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29971 $as_echo "yes" >&6; }
29972         :
29973 fi
29974
29975
29976
29977 pkg_failed=no
29978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QTGUI" >&5
29979 $as_echo_n "checking for QTGUI... " >&6; }
29980
29981 if test -n "$PKG_CONFIG"; then
29982     if test -n "$QTGUI_CFLAGS"; then
29983         pkg_cv_QTGUI_CFLAGS="$QTGUI_CFLAGS"
29984     else
29985         if test -n "$PKG_CONFIG" && \
29986     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtGui >= 4.2\""; } >&5
29987   ($PKG_CONFIG --exists --print-errors "QtGui >= 4.2") 2>&5
29988   ac_status=$?
29989   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29990   test $ac_status = 0; }; then
29991   pkg_cv_QTGUI_CFLAGS=`$PKG_CONFIG --cflags "QtGui >= 4.2" 2>/dev/null`
29992 else
29993   pkg_failed=yes
29994 fi
29995     fi
29996 else
29997         pkg_failed=untried
29998 fi
29999
30000 if test x$cross_compiling = xyes
30001 then
30002     if test -n "$PKG_CONFIG"; then
30003     if test -n "$QTGUI_LIBS"; then
30004         pkg_cv_QTGUI_LIBS="$QTGUI_LIBS"
30005     else
30006         if test -n "$PKG_CONFIG" && \
30007     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtGui >= 4.2\""; } >&5
30008   ($PKG_CONFIG --exists --print-errors "QtGui >= 4.2") 2>&5
30009   ac_status=$?
30010   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30011   test $ac_status = 0; }; then
30012   pkg_cv_QTGUI_LIBS=`$PKG_CONFIG --libs --static "QtGui >= 4.2" 2>/dev/null`
30013 else
30014   pkg_failed=yes
30015 fi
30016     fi
30017 else
30018         pkg_failed=untried
30019 fi
30020     _pkg_tmp=
30021   for flag in $pkg_cv_QTGUI_LIBS; do
30022     case $flag in
30023     (-L/lib* | -L/usr/lib* )       ;; # ignore
30024     (*) _pkg_tmp="$_pkg_tmp $flag" ;;
30025     esac
30026   done
30027   pkg_cv_QTGUI_LIBS="$_pkg_tmp"
30028 else
30029   if test -n "$PKG_CONFIG"; then
30030     if test -n "$QTGUI_LIBS"; then
30031         pkg_cv_QTGUI_LIBS="$QTGUI_LIBS"
30032     else
30033         if test -n "$PKG_CONFIG" && \
30034     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtGui >= 4.2\""; } >&5
30035   ($PKG_CONFIG --exists --print-errors "QtGui >= 4.2") 2>&5
30036   ac_status=$?
30037   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30038   test $ac_status = 0; }; then
30039   pkg_cv_QTGUI_LIBS=`$PKG_CONFIG --libs --static "QtGui >= 4.2" 2>/dev/null`
30040 else
30041   pkg_failed=yes
30042 fi
30043     fi
30044 else
30045         pkg_failed=untried
30046 fi
30047 fi
30048
30049 if test -n "$PKG_CONFIG"; then
30050     if test -n "$QTGUI_INCLUDEDIR"; then
30051         pkg_cv_QTGUI_INCLUDEDIR="$QTGUI_INCLUDEDIR"
30052     else
30053         if test -n "$PKG_CONFIG" && \
30054     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtGui >= 4.2\""; } >&5
30055   ($PKG_CONFIG --exists --print-errors "QtGui >= 4.2") 2>&5
30056   ac_status=$?
30057   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30058   test $ac_status = 0; }; then
30059   pkg_cv_QTGUI_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "QtGui >= 4.2" 2>/dev/null`
30060 else
30061   pkg_failed=yes
30062 fi
30063     fi
30064 else
30065         pkg_failed=untried
30066 fi
30067
30068
30069
30070
30071 if test $pkg_failed = yes; then
30072
30073 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30074         _pkg_short_errors_supported=yes
30075 else
30076         _pkg_short_errors_supported=no
30077 fi
30078         if test $_pkg_short_errors_supported = yes; then
30079                 QTGUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "QtGui >= 4.2"`
30080         else
30081                 QTGUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtGui >= 4.2"`
30082         fi
30083         # Put the nasty error message in config.log where it belongs
30084         echo "$QTGUI_PKG_ERRORS" >&5
30085
30086         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30087 $as_echo "no" >&6; }
30088                 passed=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-qtgui requires libQtGui >= 4.2." >&5
30089 $as_echo "gr-qtgui requires libQtGui >= 4.2." >&6; }
30090 elif test $pkg_failed = untried; then
30091         passed=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-qtgui requires libQtGui >= 4.2." >&5
30092 $as_echo "gr-qtgui requires libQtGui >= 4.2." >&6; }
30093 else
30094         QTGUI_CFLAGS=$pkg_cv_QTGUI_CFLAGS
30095         QTGUI_LIBS=$pkg_cv_QTGUI_LIBS
30096         QTGUI_INCLUDEDIR=$pkg_cv_QTGUI_INCLUDEDIR
30097
30098         QTGUI_CPPFLAGS=""
30099         for flag in $QTGUI_CFLAGS; do
30100           case $flag in
30101           -I* | -D* | -U*) QTGUI_CPPFLAGS="$QTGUI_CPPFLAGS $flag" ;;
30102           esac
30103         done
30104         pkg_cv_QTGUI_CPPFLAGS=$QTGUI_CPPFLAGS
30105
30106
30107         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30108 $as_echo "yes" >&6; }
30109         :
30110 fi
30111
30112
30113
30114 pkg_failed=no
30115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QTOPENGL" >&5
30116 $as_echo_n "checking for QTOPENGL... " >&6; }
30117
30118 if test -n "$PKG_CONFIG"; then
30119     if test -n "$QTOPENGL_CFLAGS"; then
30120         pkg_cv_QTOPENGL_CFLAGS="$QTOPENGL_CFLAGS"
30121     else
30122         if test -n "$PKG_CONFIG" && \
30123     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtOpenGL >= 4.2\""; } >&5
30124   ($PKG_CONFIG --exists --print-errors "QtOpenGL >= 4.2") 2>&5
30125   ac_status=$?
30126   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30127   test $ac_status = 0; }; then
30128   pkg_cv_QTOPENGL_CFLAGS=`$PKG_CONFIG --cflags "QtOpenGL >= 4.2" 2>/dev/null`
30129 else
30130   pkg_failed=yes
30131 fi
30132     fi
30133 else
30134         pkg_failed=untried
30135 fi
30136
30137 if test x$cross_compiling = xyes
30138 then
30139     if test -n "$PKG_CONFIG"; then
30140     if test -n "$QTOPENGL_LIBS"; then
30141         pkg_cv_QTOPENGL_LIBS="$QTOPENGL_LIBS"
30142     else
30143         if test -n "$PKG_CONFIG" && \
30144     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtOpenGL >= 4.2\""; } >&5
30145   ($PKG_CONFIG --exists --print-errors "QtOpenGL >= 4.2") 2>&5
30146   ac_status=$?
30147   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30148   test $ac_status = 0; }; then
30149   pkg_cv_QTOPENGL_LIBS=`$PKG_CONFIG --libs --static "QtOpenGL >= 4.2" 2>/dev/null`
30150 else
30151   pkg_failed=yes
30152 fi
30153     fi
30154 else
30155         pkg_failed=untried
30156 fi
30157     _pkg_tmp=
30158   for flag in $pkg_cv_QTOPENGL_LIBS; do
30159     case $flag in
30160     (-L/lib* | -L/usr/lib* )       ;; # ignore
30161     (*) _pkg_tmp="$_pkg_tmp $flag" ;;
30162     esac
30163   done
30164   pkg_cv_QTOPENGL_LIBS="$_pkg_tmp"
30165 else
30166   if test -n "$PKG_CONFIG"; then
30167     if test -n "$QTOPENGL_LIBS"; then
30168         pkg_cv_QTOPENGL_LIBS="$QTOPENGL_LIBS"
30169     else
30170         if test -n "$PKG_CONFIG" && \
30171     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtOpenGL >= 4.2\""; } >&5
30172   ($PKG_CONFIG --exists --print-errors "QtOpenGL >= 4.2") 2>&5
30173   ac_status=$?
30174   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30175   test $ac_status = 0; }; then
30176   pkg_cv_QTOPENGL_LIBS=`$PKG_CONFIG --libs --static "QtOpenGL >= 4.2" 2>/dev/null`
30177 else
30178   pkg_failed=yes
30179 fi
30180     fi
30181 else
30182         pkg_failed=untried
30183 fi
30184 fi
30185
30186 if test -n "$PKG_CONFIG"; then
30187     if test -n "$QTOPENGL_INCLUDEDIR"; then
30188         pkg_cv_QTOPENGL_INCLUDEDIR="$QTOPENGL_INCLUDEDIR"
30189     else
30190         if test -n "$PKG_CONFIG" && \
30191     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtOpenGL >= 4.2\""; } >&5
30192   ($PKG_CONFIG --exists --print-errors "QtOpenGL >= 4.2") 2>&5
30193   ac_status=$?
30194   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30195   test $ac_status = 0; }; then
30196   pkg_cv_QTOPENGL_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "QtOpenGL >= 4.2" 2>/dev/null`
30197 else
30198   pkg_failed=yes
30199 fi
30200     fi
30201 else
30202         pkg_failed=untried
30203 fi
30204
30205
30206
30207
30208 if test $pkg_failed = yes; then
30209
30210 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30211         _pkg_short_errors_supported=yes
30212 else
30213         _pkg_short_errors_supported=no
30214 fi
30215         if test $_pkg_short_errors_supported = yes; then
30216                 QTOPENGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "QtOpenGL >= 4.2"`
30217         else
30218                 QTOPENGL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtOpenGL >= 4.2"`
30219         fi
30220         # Put the nasty error message in config.log where it belongs
30221         echo "$QTOPENGL_PKG_ERRORS" >&5
30222
30223         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30224 $as_echo "no" >&6; }
30225                 passed=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-qtgui requires libQtOpenGL >- 4.2." >&5
30226 $as_echo "gr-qtgui requires libQtOpenGL >- 4.2." >&6; }
30227 elif test $pkg_failed = untried; then
30228         passed=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-qtgui requires libQtOpenGL >- 4.2." >&5
30229 $as_echo "gr-qtgui requires libQtOpenGL >- 4.2." >&6; }
30230 else
30231         QTOPENGL_CFLAGS=$pkg_cv_QTOPENGL_CFLAGS
30232         QTOPENGL_LIBS=$pkg_cv_QTOPENGL_LIBS
30233         QTOPENGL_INCLUDEDIR=$pkg_cv_QTOPENGL_INCLUDEDIR
30234
30235         QTOPENGL_CPPFLAGS=""
30236         for flag in $QTOPENGL_CFLAGS; do
30237           case $flag in
30238           -I* | -D* | -U*) QTOPENGL_CPPFLAGS="$QTOPENGL_CPPFLAGS $flag" ;;
30239           esac
30240         done
30241         pkg_cv_QTOPENGL_CPPFLAGS=$QTOPENGL_CPPFLAGS
30242
30243
30244         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30245 $as_echo "yes" >&6; }
30246         :
30247 fi
30248
30249
30250         QWT_LIBRARY1=-lqwt-qt4
30251     QWT_LIBRARY2=-lqwt
30252
30253         ac_ext=cpp
30254 ac_cpp='$CXXCPP $CPPFLAGS'
30255 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30256 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30257 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30258
30259     qwt_save_CPPFLAGS="$CPPFLAGS"
30260     qwt_save_LIBS="$LIBS"
30261     libqwt_ok=yes
30262
30263
30264 # Check whether --with-qwt-libdir was given.
30265 if test "${with_qwt_libdir+set}" = set; then :
30266   withval=$with_qwt_libdir; qwt_libdir="$withval"
30267 else
30268   qwt_libdir=""
30269 fi
30270
30271
30272
30273 # Check whether --with-qwt-incdir was given.
30274 if test "${with_qwt_incdir+set}" = set; then :
30275   withval=$with_qwt_incdir; qwt_incdir="$withval"
30276 else
30277   qwt_incdir=""
30278 fi
30279
30280
30281 # Check whether --with-qwt-lib was given.
30282 if test "${with_qwt_lib+set}" = set; then :
30283   withval=$with_qwt_lib; qwt_lib="$withval"
30284 else
30285   qwt_lib=""
30286 fi
30287
30288
30289                 CPPFLAGS="$CPPFLAGS $QTCORE_CFLAGS"
30290
30291         if test "$qwt_incdir" = "" ; then
30292                 ac_fn_cxx_check_header_mongrel "$LINENO" "qwt/qwt.h" "ac_cv_header_qwt_qwt_h" "$ac_includes_default"
30293 if test "x$ac_cv_header_qwt_qwt_h" = x""yes; then :
30294   qwt_qwt_h=yes
30295 else
30296   qwt_qwt_h=no
30297
30298 fi
30299
30300
30301                 if test "$qwt_qwt_h" = "yes" ; then
30302             QWT_CFLAGS="$QWT_CFLAGS -I/usr/include/qwt"
30303         else
30304                         ac_fn_cxx_check_header_mongrel "$LINENO" "qwt-qt4/qwt.h" "ac_cv_header_qwt_qt4_qwt_h" "$ac_includes_default"
30305 if test "x$ac_cv_header_qwt_qt4_qwt_h" = x""yes; then :
30306   qwt_qt4_qwt_h=yes
30307 else
30308   qwt_qt4_qwt_h=no
30309
30310 fi
30311
30312
30313                         if test "$qwt_qt4_qwt_h" = "yes" ; then
30314                 QWT_CFLAGS="$QWT_CFLAGS -I/usr/include/qwt-qt4"
30315             else
30316                                 libqwt_ok=no
30317             fi
30318         fi
30319     else
30320                 QWT_CFLAGS="$QWT_CFLAGS -I$qwt_incdir"
30321         as_ac_Header=`$as_echo "ac_cv_header_$qwt_incdir/qwt.h" | $as_tr_sh`
30322 ac_fn_cxx_check_header_mongrel "$LINENO" "$qwt_incdir/qwt.h" "$as_ac_Header" "$ac_includes_default"
30323 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30324
30325 else
30326   libqwt_ok=no
30327 fi
30328
30329
30330     fi
30331
30332         if test "$libqwt_ok" = "yes" ; then
30333
30334
30335                 if test "$qwt_libdir" != "" ; then
30336             QWT_LIBS="-L$qwt_libdir $QWT_LIBS"
30337         fi
30338
30339                 CPPFLAGS="$CPPFLAGS $QWT_CFLAGS"
30340         LIBS="$qwt_save_LIBS $QT_LIBS $QWT_LIBS -lqwt"
30341
30342                 if test "$qwt_lib" != "" ; then
30343             as_ac_Lib=`$as_echo "ac_cv_lib_$qwt_lib''_main" | $as_tr_sh`
30344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$qwt_lib" >&5
30345 $as_echo_n "checking for main in -l$qwt_lib... " >&6; }
30346 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
30347   $as_echo_n "(cached) " >&6
30348 else
30349   ac_check_lib_save_LIBS=$LIBS
30350 LIBS="-l$qwt_lib  $LIBS"
30351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30352 /* end confdefs.h.  */
30353
30354
30355 int
30356 main ()
30357 {
30358 return main ();
30359   ;
30360   return 0;
30361 }
30362 _ACEOF
30363 if ac_fn_cxx_try_link "$LINENO"; then :
30364   eval "$as_ac_Lib=yes"
30365 else
30366   eval "$as_ac_Lib=no"
30367 fi
30368 rm -f core conftest.err conftest.$ac_objext \
30369     conftest$ac_exeext conftest.$ac_ext
30370 LIBS=$ac_check_lib_save_LIBS
30371 fi
30372 eval ac_res=\$$as_ac_Lib
30373                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30374 $as_echo "$ac_res" >&6; }
30375 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
30376   libqwt_ok=yes
30377 else
30378   libqwt_ok=no
30379 fi
30380
30381
30382         else
30383                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lqwt" >&5
30384 $as_echo_n "checking for main in -lqwt... " >&6; }
30385 if test "${ac_cv_lib_qwt_main+set}" = set; then :
30386   $as_echo_n "(cached) " >&6
30387 else
30388   ac_check_lib_save_LIBS=$LIBS
30389 LIBS="-lqwt  $LIBS"
30390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30391 /* end confdefs.h.  */
30392
30393
30394 int
30395 main ()
30396 {
30397 return main ();
30398   ;
30399   return 0;
30400 }
30401 _ACEOF
30402 if ac_fn_cxx_try_link "$LINENO"; then :
30403   ac_cv_lib_qwt_main=yes
30404 else
30405   ac_cv_lib_qwt_main=no
30406 fi
30407 rm -f core conftest.err conftest.$ac_objext \
30408     conftest$ac_exeext conftest.$ac_ext
30409 LIBS=$ac_check_lib_save_LIBS
30410 fi
30411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qwt_main" >&5
30412 $as_echo "$ac_cv_lib_qwt_main" >&6; }
30413 if test "x$ac_cv_lib_qwt_main" = x""yes; then :
30414   libqwt_ok=yes
30415 else
30416   libqwt_ok=no
30417 fi
30418
30419
30420                         if test "$libqwt_ok" = "yes" ; then
30421                 QWT_LIBS="$QWT_LIBS -lqwt"
30422             else
30423                                 LIBS="$qwt_save_LIBS $QT_LIBS $QWT_LIBS -lqwt-qt4"
30424                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lqwt-qt4" >&5
30425 $as_echo_n "checking for main in -lqwt-qt4... " >&6; }
30426 if test "${ac_cv_lib_qwt_qt4_main+set}" = set; then :
30427   $as_echo_n "(cached) " >&6
30428 else
30429   ac_check_lib_save_LIBS=$LIBS
30430 LIBS="-lqwt-qt4  $LIBS"
30431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30432 /* end confdefs.h.  */
30433
30434
30435 int
30436 main ()
30437 {
30438 return main ();
30439   ;
30440   return 0;
30441 }
30442 _ACEOF
30443 if ac_fn_cxx_try_link "$LINENO"; then :
30444   ac_cv_lib_qwt_qt4_main=yes
30445 else
30446   ac_cv_lib_qwt_qt4_main=no
30447 fi
30448 rm -f core conftest.err conftest.$ac_objext \
30449     conftest$ac_exeext conftest.$ac_ext
30450 LIBS=$ac_check_lib_save_LIBS
30451 fi
30452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qwt_qt4_main" >&5
30453 $as_echo "$ac_cv_lib_qwt_qt4_main" >&6; }
30454 if test "x$ac_cv_lib_qwt_qt4_main" = x""yes; then :
30455   libqwt_ok=yes
30456 else
30457   libqwt_ok=no
30458 fi
30459
30460                 if test "$libqwt_ok" = "yes" ; then
30461                     QWT_LIBS="$QWT_LIBS -lqwt-qt4"
30462                 else
30463                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Could not link to libqwt.so" >&5
30464 $as_echo "Could not link to libqwt.so" >&6; }
30465                 fi
30466             fi
30467         fi
30468     else
30469         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Could not find qwt headers" >&5
30470 $as_echo "Could not find qwt headers" >&6; }
30471     fi
30472
30473         LIBS="$qwt_save_LIBS"
30474     CPPFLAGS="$qwt_save_CPPFLAGS"
30475     ac_ext=c
30476 ac_cpp='$CPP $CPPFLAGS'
30477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30480
30481
30482         if test "x$libqwt_ok" = "xyes" ; then
30483         :
30484     else
30485         QWT_CFLAGS=""
30486         QWT_LIBDIRS=""
30487         passed=no
30488     fi
30489
30490
30491
30492
30493
30494                 if test "$passed" = "yes"; then
30495
30496
30497         ac_ext=cpp
30498 ac_cpp='$CXXCPP $CPPFLAGS'
30499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30502
30503     qwtplot3d_save_CPPFLAGS="$CPPFLAGS"
30504     qwtplot3d_save_LIBS="$LIBS"
30505     libqwtplot3d_ok=yes
30506
30507
30508 # Check whether --with-qwtplot3d-libdir was given.
30509 if test "${with_qwtplot3d_libdir+set}" = set; then :
30510   withval=$with_qwtplot3d_libdir; qwtplot3d_libdir="$withval"
30511 else
30512   qwtplot3d_libdir=""
30513 fi
30514
30515
30516
30517 # Check whether --with-qwtplot3d-incdir was given.
30518 if test "${with_qwtplot3d_incdir+set}" = set; then :
30519   withval=$with_qwtplot3d_incdir; qwtplot3d_incdir="$withval"
30520 else
30521   qwtplot3d_incdir=""
30522 fi
30523
30524
30525
30526 # Check whether --with-qwtplot3d-lib was given.
30527 if test "${with_qwtplot3d_lib+set}" = set; then :
30528   withval=$with_qwtplot3d_lib; qwtplot3d_lib="$withval"
30529 else
30530   qwtplot3d_lib=""
30531 fi
30532
30533
30534
30535                 CPPFLAGS="$CPPFLAGS $QTCORE_CFLAGS $QTGUI_CFLAGS $QWT_CFLAGS"
30536
30537         if test "$qwtplot3d_incdir" = "" ; then
30538                 ac_fn_cxx_check_header_mongrel "$LINENO" "qwtplot3d/qwt3d_plot.h" "ac_cv_header_qwtplot3d_qwt3d_plot_h" "$ac_includes_default"
30539 if test "x$ac_cv_header_qwtplot3d_qwt3d_plot_h" = x""yes; then :
30540   qwtplot3d_qwtplot3d_h=yes
30541 else
30542   qwtplot3d_qwtplot3d_h=no
30543
30544 fi
30545
30546
30547                 if test "$qwtplot3d_qwtplot3d_h" = "yes" ; then
30548             QWTPLOT3D_CFLAGS="$QWTPLOT3D_CFLAGS -I/usr/include/qwtplot3d"
30549         else
30550                         ac_fn_cxx_check_header_mongrel "$LINENO" "qwtplot3d-qt4/qwt3d_plot.h" "ac_cv_header_qwtplot3d_qt4_qwt3d_plot_h" "$ac_includes_default"
30551 if test "x$ac_cv_header_qwtplot3d_qt4_qwt3d_plot_h" = x""yes; then :
30552   qwtplot3d_qt4_qwtplot3d_h=yes
30553 else
30554   qwtplot3d_qt4_qwtplot3d_h=no
30555
30556 fi
30557
30558
30559                         if test "$qwtplot3d_qt4_qwtplot3d_h" = "yes" ; then
30560                 QWTPLOT3D_CFLAGS="$QWTPLOT3D_CFLAGS -I/usr/include/qwtplot3d-qt4"
30561             else
30562                                 libqwtplot3d_ok=no
30563             fi
30564         fi
30565     else
30566                 QWTPLOT3D_CFLAGS="$QWTPLOT3D_CFLAGS -I$qwtplot3d_incdir"
30567         as_ac_Header=`$as_echo "ac_cv_header_$qwtplot3d_incdir/qwt3d_plot.h" | $as_tr_sh`
30568 ac_fn_cxx_check_header_mongrel "$LINENO" "$qwtplot3d_incdir/qwt3d_plot.h" "$as_ac_Header" "$ac_includes_default"
30569 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30570
30571 else
30572   libqwtplot3d_ok=no
30573 fi
30574
30575
30576     fi
30577
30578         if test "$libqwtplot3d_ok" = "yes" ; then
30579
30580
30581                 if test "$qwtplot3d_libdir" != "" ; then
30582             QWTPLOT3D_LIBS="-L$qwtplot3d_libdir $QWTPLOT3D_LIBS"
30583         fi
30584
30585                 CPPFLAGS="$CPPFLAGS $QWTPLOT3D_CFLAGS"
30586         LIBS="$qwtplot3d_save_LIBS $QT_LIBS $QWTPLOT3D_LIBS -lqwtplot3d-qt4"
30587
30588                 if test "$qwtplot3d_lib" != "" ; then
30589             as_ac_Lib=`$as_echo "ac_cv_lib_$qwtplot3d_lib''_main" | $as_tr_sh`
30590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$qwtplot3d_lib" >&5
30591 $as_echo_n "checking for main in -l$qwtplot3d_lib... " >&6; }
30592 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
30593   $as_echo_n "(cached) " >&6
30594 else
30595   ac_check_lib_save_LIBS=$LIBS
30596 LIBS="-l$qwtplot3d_lib  $LIBS"
30597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30598 /* end confdefs.h.  */
30599
30600
30601 int
30602 main ()
30603 {
30604 return main ();
30605   ;
30606   return 0;
30607 }
30608 _ACEOF
30609 if ac_fn_cxx_try_link "$LINENO"; then :
30610   eval "$as_ac_Lib=yes"
30611 else
30612   eval "$as_ac_Lib=no"
30613 fi
30614 rm -f core conftest.err conftest.$ac_objext \
30615     conftest$ac_exeext conftest.$ac_ext
30616 LIBS=$ac_check_lib_save_LIBS
30617 fi
30618 eval ac_res=\$$as_ac_Lib
30619                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30620 $as_echo "$ac_res" >&6; }
30621 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
30622   libqwtplot3d_ok=yes
30623 else
30624   libqwtplot3d_ok=no
30625 fi
30626
30627
30628         else
30629                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lqwtplot3d-qt4" >&5
30630 $as_echo_n "checking for main in -lqwtplot3d-qt4... " >&6; }
30631 if test "${ac_cv_lib_qwtplot3d_qt4_main+set}" = set; then :
30632   $as_echo_n "(cached) " >&6
30633 else
30634   ac_check_lib_save_LIBS=$LIBS
30635 LIBS="-lqwtplot3d-qt4  $LIBS"
30636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30637 /* end confdefs.h.  */
30638
30639
30640 int
30641 main ()
30642 {
30643 return main ();
30644   ;
30645   return 0;
30646 }
30647 _ACEOF
30648 if ac_fn_cxx_try_link "$LINENO"; then :
30649   ac_cv_lib_qwtplot3d_qt4_main=yes
30650 else
30651   ac_cv_lib_qwtplot3d_qt4_main=no
30652 fi
30653 rm -f core conftest.err conftest.$ac_objext \
30654     conftest$ac_exeext conftest.$ac_ext
30655 LIBS=$ac_check_lib_save_LIBS
30656 fi
30657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qwtplot3d_qt4_main" >&5
30658 $as_echo "$ac_cv_lib_qwtplot3d_qt4_main" >&6; }
30659 if test "x$ac_cv_lib_qwtplot3d_qt4_main" = x""yes; then :
30660   libqwtplot3d_ok=yes
30661 else
30662   libqwtplot3d_ok=no
30663 fi
30664
30665
30666                         if test "$libqwtplot3d_ok" = "yes" ; then
30667                 QWTPLOT3D_LIBS="$QWTPLOT3D_LIBS -lqwtplot3d-qt4"
30668             else
30669                                 LIBS="$qwtplot3d_save_LIBS $QT_LIBS $QWTPLOT3D_LIBS -lqwtplot3d"
30670                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lqwtplot3d" >&5
30671 $as_echo_n "checking for main in -lqwtplot3d... " >&6; }
30672 if test "${ac_cv_lib_qwtplot3d_main+set}" = set; then :
30673   $as_echo_n "(cached) " >&6
30674 else
30675   ac_check_lib_save_LIBS=$LIBS
30676 LIBS="-lqwtplot3d  $LIBS"
30677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30678 /* end confdefs.h.  */
30679
30680
30681 int
30682 main ()
30683 {
30684 return main ();
30685   ;
30686   return 0;
30687 }
30688 _ACEOF
30689 if ac_fn_cxx_try_link "$LINENO"; then :
30690   ac_cv_lib_qwtplot3d_main=yes
30691 else
30692   ac_cv_lib_qwtplot3d_main=no
30693 fi
30694 rm -f core conftest.err conftest.$ac_objext \
30695     conftest$ac_exeext conftest.$ac_ext
30696 LIBS=$ac_check_lib_save_LIBS
30697 fi
30698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qwtplot3d_main" >&5
30699 $as_echo "$ac_cv_lib_qwtplot3d_main" >&6; }
30700 if test "x$ac_cv_lib_qwtplot3d_main" = x""yes; then :
30701   libqwtplot3d_ok=yes
30702 else
30703   libqwtplot3d_ok=no
30704 fi
30705
30706                 if test "$libqwtplot3d_ok" = "yes" ; then
30707                     QWTPLOT3D_LIBS="$QWTPLOT3D_LIBS -lqwtplot3d"
30708                 else
30709                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Could not link to libqwtplot3d.so" >&5
30710 $as_echo "Could not link to libqwtplot3d.so" >&6; }
30711                 fi
30712             fi
30713         fi
30714     else
30715         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Could not find qwtplot3d headers" >&5
30716 $as_echo "Could not find qwtplot3d headers" >&6; }
30717     fi
30718
30719         LIBS="$qwtplot3d_save_LIBS"
30720     CPPFLAGS="$qwtplot3d_save_CPPFLAGS"
30721     ac_ext=c
30722 ac_cpp='$CPP $CPPFLAGS'
30723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30726
30727
30728         if test "x$libqwtplot3d_ok" = "xyes" ; then
30729         :
30730     else
30731         QWTPLOT3D_CFLAGS=""
30732         QWTPLOT3D_LIBDIRS=""
30733         passed=no
30734     fi
30735
30736
30737
30738
30739         fi
30740
30741                         QT_INCLUDES="$QWT_CFLAGS $QWTPLOT3D_CFLAGS $QTCORE_CFLAGS $QTGUI_CFLAGS"
30742         QT_LIBS="$QWT_LIBS $QWTPLOT3D_LIBS $QTOPENGL_LIBS"
30743
30744                                 for i in $QWT_CFLAGS $QWTPLOT3D_CFLAGS; do
30745             QMAKE_INCLUDES="$QMAKE_INCLUDES ${i##-I}"
30746         done
30747
30748         QT_MOC_EXEC=`pkg-config --variable=moc_location QtCore`
30749         QT_UIC_EXEC=`pkg-config --variable=uic_location QtCore`
30750
30751
30752
30753
30754
30755
30756     fi
30757
30758     ac_config_files="$ac_config_files gr-qtgui/Makefile gr-qtgui/src/Makefile gr-qtgui/src/lib/Makefile gr-qtgui/src/python/Makefile"
30759
30760
30761
30762
30763     gr_qtgui_with=no
30764     if test $passed = no; then
30765         if test x$enable_gr_qtgui = xyes; then
30766             as_fn_error $? "Component gr-qtgui has errors; stopping." "$LINENO" 5
30767         else
30768             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-qtgui." >&5
30769 $as_echo "Not building component gr-qtgui." >&6; }
30770         fi
30771     else
30772         if test $passed = with; then
30773             with_dirs="$with_dirs gr-qtgui"
30774
30775     if test "x${gr_qtgui_INCLUDES}" != "x"; then
30776         if test "x$with_INCLUDES" = "x"; then
30777             with_INCLUDES="${gr_qtgui_INCLUDES}"
30778         else
30779             with_INCLUDES="${gr_qtgui_INCLUDES}"" ""$with_INCLUDES"
30780         fi
30781         gr_qtgui_INCLUDES=
30782     fi
30783
30784
30785     if test "x${gr_qtgui_SWIG_INCLUDES}" != "x"; then
30786         if test "x$with_SWIG_INCLUDES" = "x"; then
30787             with_SWIG_INCLUDES="${gr_qtgui_SWIG_INCLUDES}"
30788         else
30789             with_SWIG_INCLUDES="${gr_qtgui_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
30790         fi
30791         gr_qtgui_SWIG_INCLUDES=
30792     fi
30793
30794
30795     if test "x${gr_qtgui_PYDIRPATH}" != "x"; then
30796         if test "x$with_PYDIRPATH" = "x"; then
30797             with_PYDIRPATH="${gr_qtgui_PYDIRPATH}"
30798         else
30799             with_PYDIRPATH="${gr_qtgui_PYDIRPATH}"":""$with_PYDIRPATH"
30800         fi
30801         gr_qtgui_PYDIRPATH=
30802     fi
30803
30804
30805     if test "x${gr_qtgui_SWIGDIRPATH}" != "x"; then
30806         if test "x$with_SWIGDIRPATH" = "x"; then
30807             with_SWIGDIRPATH="${gr_qtgui_SWIGDIRPATH}"
30808         else
30809             with_SWIGDIRPATH="${gr_qtgui_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
30810         fi
30811         gr_qtgui_SWIGDIRPATH=
30812     fi
30813
30814
30815     if test "x${gr_qtgui_LIBDIRPATH}" != "x"; then
30816         if test "x$with_LIBDIRPATH" = "x"; then
30817             with_LIBDIRPATH="${gr_qtgui_LIBDIRPATH}"
30818         else
30819             with_LIBDIRPATH="${gr_qtgui_LIBDIRPATH}"":""$with_LIBDIRPATH"
30820         fi
30821         gr_qtgui_LIBDIRPATH=
30822     fi
30823
30824             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-qtgui will be included from a pre-installed library and includes." >&5
30825 $as_echo "Component gr-qtgui will be included from a pre-installed library and includes." >&6; }
30826             gr_qtgui_with=yes
30827         else
30828             gr_qtgui_LDFLAG=
30829             if test x$enable_gr_qtgui != xno; then
30830                 :
30831                 build_dirs="$build_dirs gr-qtgui"
30832                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-qtgui passed configuration checks; building." >&5
30833 $as_echo "Component gr-qtgui passed configuration checks; building." >&6; }
30834             else
30835                 passed=no
30836                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-qtgui passed configuration checks; but not building." >&5
30837 $as_echo "Component gr-qtgui passed configuration checks; but not building." >&6; }
30838             fi
30839         fi
30840     fi
30841     if test $passed = no; then
30842         skipped_dirs="$skipped_dirs gr-qtgui"
30843         gr_qtgui_skipped=yes
30844     else
30845         gr_qtgui_skipped=no
30846     fi
30847
30848
30849
30850
30851
30852
30853
30854
30855
30856
30857
30858     passed=yes
30859     # Check whether --enable-gr-sounder was given.
30860 if test "${enable_gr_sounder+set}" = set; then :
30861   enableval=$enable_gr_sounder;
30862 else
30863
30864         enable_gr_sounder=$enable_all_components
30865         if test x$enable_all_components = xno; then
30866             passed=no
30867         fi
30868
30869 fi
30870
30871
30872
30873
30874
30875     if test $passed != no; then
30876         if test $passed = yes; then
30877                         if test x$usrp_skipped = xyes; then
30878                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-sounder requires usrp, which is not being built or specified via pre-installed files." >&5
30879 $as_echo "Component gr-sounder requires usrp, which is not being built or specified via pre-installed files." >&6; }
30880                 passed=no
30881             fi
30882         else
30883                         if test x$usrp_with = xno; then
30884                 as_fn_error $? "Component gr-sounder requires usrp to be included as --with-usrp[=arg]" "$LINENO" 5
30885             fi
30886         fi
30887     fi
30888
30889
30890     if test $passed != no; then
30891         if test $passed = yes; then
30892                         if test x$gnuradio_core_skipped = xyes; then
30893                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-sounder requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
30894 $as_echo "Component gr-sounder requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
30895                 passed=no
30896             fi
30897         else
30898                         if test x$gnuradio_core_with = xno; then
30899                 as_fn_error $? "Component gr-sounder requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
30900             fi
30901         fi
30902     fi
30903
30904
30905     ac_config_files="$ac_config_files gr-sounder/Makefile gr-sounder/doc/Makefile gr-sounder/src/Makefile gr-sounder/src/fpga/Makefile gr-sounder/src/fpga/top/Makefile gr-sounder/src/fpga/lib/Makefile gr-sounder/src/fpga/tb/Makefile gr-sounder/src/lib/Makefile gr-sounder/src/python/Makefile gr-sounder/src/python/run_tests"
30906
30907
30908
30909
30910     gr_sounder_with=no
30911     if test $passed = no; then
30912         if test x$enable_gr_sounder = xyes; then
30913             as_fn_error $? "Component gr-sounder has errors; stopping." "$LINENO" 5
30914         else
30915             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-sounder." >&5
30916 $as_echo "Not building component gr-sounder." >&6; }
30917         fi
30918     else
30919         if test $passed = with; then
30920             with_dirs="$with_dirs gr-sounder"
30921
30922     if test "x${gr_sounder_INCLUDES}" != "x"; then
30923         if test "x$with_INCLUDES" = "x"; then
30924             with_INCLUDES="${gr_sounder_INCLUDES}"
30925         else
30926             with_INCLUDES="${gr_sounder_INCLUDES}"" ""$with_INCLUDES"
30927         fi
30928         gr_sounder_INCLUDES=
30929     fi
30930
30931
30932     if test "x${gr_sounder_SWIG_INCLUDES}" != "x"; then
30933         if test "x$with_SWIG_INCLUDES" = "x"; then
30934             with_SWIG_INCLUDES="${gr_sounder_SWIG_INCLUDES}"
30935         else
30936             with_SWIG_INCLUDES="${gr_sounder_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
30937         fi
30938         gr_sounder_SWIG_INCLUDES=
30939     fi
30940
30941
30942     if test "x${gr_sounder_PYDIRPATH}" != "x"; then
30943         if test "x$with_PYDIRPATH" = "x"; then
30944             with_PYDIRPATH="${gr_sounder_PYDIRPATH}"
30945         else
30946             with_PYDIRPATH="${gr_sounder_PYDIRPATH}"":""$with_PYDIRPATH"
30947         fi
30948         gr_sounder_PYDIRPATH=
30949     fi
30950
30951
30952     if test "x${gr_sounder_SWIGDIRPATH}" != "x"; then
30953         if test "x$with_SWIGDIRPATH" = "x"; then
30954             with_SWIGDIRPATH="${gr_sounder_SWIGDIRPATH}"
30955         else
30956             with_SWIGDIRPATH="${gr_sounder_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
30957         fi
30958         gr_sounder_SWIGDIRPATH=
30959     fi
30960
30961
30962     if test "x${gr_sounder_LIBDIRPATH}" != "x"; then
30963         if test "x$with_LIBDIRPATH" = "x"; then
30964             with_LIBDIRPATH="${gr_sounder_LIBDIRPATH}"
30965         else
30966             with_LIBDIRPATH="${gr_sounder_LIBDIRPATH}"":""$with_LIBDIRPATH"
30967         fi
30968         gr_sounder_LIBDIRPATH=
30969     fi
30970
30971             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-sounder will be included from a pre-installed library and includes." >&5
30972 $as_echo "Component gr-sounder will be included from a pre-installed library and includes." >&6; }
30973             gr_sounder_with=yes
30974         else
30975             gr_sounder_LDFLAG=
30976             if test x$enable_gr_sounder != xno; then
30977                         ac_config_commands="$ac_config_commands run_tests_sounder"
30978
30979
30980                 build_dirs="$build_dirs gr-sounder"
30981                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-sounder passed configuration checks; building." >&5
30982 $as_echo "Component gr-sounder passed configuration checks; building." >&6; }
30983             else
30984                 passed=no
30985                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-sounder passed configuration checks; but not building." >&5
30986 $as_echo "Component gr-sounder passed configuration checks; but not building." >&6; }
30987             fi
30988         fi
30989     fi
30990     if test $passed = no; then
30991         skipped_dirs="$skipped_dirs gr-sounder"
30992         gr_sounder_skipped=yes
30993     else
30994         gr_sounder_skipped=no
30995     fi
30996
30997
30998
30999
31000
31001
31002
31003
31004
31005
31006     passed=yes
31007     # Check whether --enable-gr-utils was given.
31008 if test "${enable_gr_utils+set}" = set; then :
31009   enableval=$enable_gr_utils;
31010 else
31011
31012         enable_gr_utils=$enable_all_components
31013         if test x$enable_all_components = xno; then
31014             passed=no
31015         fi
31016
31017 fi
31018
31019
31020
31021
31022
31023     if test $passed != no; then
31024         if test $passed = yes; then
31025                         if test x$gnuradio_core_skipped = xyes; then
31026                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-utils requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
31027 $as_echo "Component gr-utils requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
31028                 passed=no
31029             fi
31030         else
31031                         if test x$gnuradio_core_with = xno; then
31032                 as_fn_error $? "Component gr-utils requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
31033             fi
31034         fi
31035     fi
31036
31037
31038     if test $passed != no; then
31039         if test $passed = yes; then
31040                         if test x$usrp_skipped = xyes; then
31041                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-utils requires usrp, which is not being built or specified via pre-installed files." >&5
31042 $as_echo "Component gr-utils requires usrp, which is not being built or specified via pre-installed files." >&6; }
31043                 passed=no
31044             fi
31045         else
31046                         if test x$usrp_with = xno; then
31047                 as_fn_error $? "Component gr-utils requires usrp to be included as --with-usrp[=arg]" "$LINENO" 5
31048             fi
31049         fi
31050     fi
31051
31052
31053     if test $passed != no; then
31054         if test $passed = yes; then
31055                         if test x$gr_wxgui_skipped = xyes; then
31056                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-utils requires gr-wxgui, which is not being built or specified via pre-installed files." >&5
31057 $as_echo "Component gr-utils requires gr-wxgui, which is not being built or specified via pre-installed files." >&6; }
31058                 passed=no
31059             fi
31060         else
31061                         if test x$gr_wxgui_with = xno; then
31062                 as_fn_error $? "Component gr-utils requires gr-wxgui to be included as --with-gr-wxgui[=arg]" "$LINENO" 5
31063             fi
31064         fi
31065     fi
31066
31067
31068     ac_config_files="$ac_config_files gr-utils/Makefile gr-utils/src/Makefile gr-utils/src/lib/Makefile gr-utils/src/python/Makefile"
31069
31070
31071
31072
31073     gr_utils_with=no
31074     if test $passed = no; then
31075         if test x$enable_gr_utils = xyes; then
31076             as_fn_error $? "Component gr-utils has errors; stopping." "$LINENO" 5
31077         else
31078             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-utils." >&5
31079 $as_echo "Not building component gr-utils." >&6; }
31080         fi
31081     else
31082         if test $passed = with; then
31083             with_dirs="$with_dirs gr-utils"
31084
31085     if test "x${gr_utils_INCLUDES}" != "x"; then
31086         if test "x$with_INCLUDES" = "x"; then
31087             with_INCLUDES="${gr_utils_INCLUDES}"
31088         else
31089             with_INCLUDES="${gr_utils_INCLUDES}"" ""$with_INCLUDES"
31090         fi
31091         gr_utils_INCLUDES=
31092     fi
31093
31094
31095     if test "x${gr_utils_SWIG_INCLUDES}" != "x"; then
31096         if test "x$with_SWIG_INCLUDES" = "x"; then
31097             with_SWIG_INCLUDES="${gr_utils_SWIG_INCLUDES}"
31098         else
31099             with_SWIG_INCLUDES="${gr_utils_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
31100         fi
31101         gr_utils_SWIG_INCLUDES=
31102     fi
31103
31104
31105     if test "x${gr_utils_PYDIRPATH}" != "x"; then
31106         if test "x$with_PYDIRPATH" = "x"; then
31107             with_PYDIRPATH="${gr_utils_PYDIRPATH}"
31108         else
31109             with_PYDIRPATH="${gr_utils_PYDIRPATH}"":""$with_PYDIRPATH"
31110         fi
31111         gr_utils_PYDIRPATH=
31112     fi
31113
31114
31115     if test "x${gr_utils_SWIGDIRPATH}" != "x"; then
31116         if test "x$with_SWIGDIRPATH" = "x"; then
31117             with_SWIGDIRPATH="${gr_utils_SWIGDIRPATH}"
31118         else
31119             with_SWIGDIRPATH="${gr_utils_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
31120         fi
31121         gr_utils_SWIGDIRPATH=
31122     fi
31123
31124
31125     if test "x${gr_utils_LIBDIRPATH}" != "x"; then
31126         if test "x$with_LIBDIRPATH" = "x"; then
31127             with_LIBDIRPATH="${gr_utils_LIBDIRPATH}"
31128         else
31129             with_LIBDIRPATH="${gr_utils_LIBDIRPATH}"":""$with_LIBDIRPATH"
31130         fi
31131         gr_utils_LIBDIRPATH=
31132     fi
31133
31134             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-utils will be included from a pre-installed library and includes." >&5
31135 $as_echo "Component gr-utils will be included from a pre-installed library and includes." >&6; }
31136             gr_utils_with=yes
31137         else
31138             gr_utils_LDFLAG=
31139             if test x$enable_gr_utils != xno; then
31140                 :
31141                 build_dirs="$build_dirs gr-utils"
31142                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-utils passed configuration checks; building." >&5
31143 $as_echo "Component gr-utils passed configuration checks; building." >&6; }
31144             else
31145                 passed=no
31146                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-utils passed configuration checks; but not building." >&5
31147 $as_echo "Component gr-utils passed configuration checks; but not building." >&6; }
31148             fi
31149         fi
31150     fi
31151     if test $passed = no; then
31152         skipped_dirs="$skipped_dirs gr-utils"
31153         gr_utils_skipped=yes
31154     else
31155         gr_utils_skipped=no
31156     fi
31157
31158
31159
31160
31161
31162
31163
31164
31165
31166
31167     passed=yes
31168     # Check whether --enable-gnuradio-examples was given.
31169 if test "${enable_gnuradio_examples+set}" = set; then :
31170   enableval=$enable_gnuradio_examples;
31171 else
31172
31173         enable_gnuradio_examples=$enable_all_components
31174         if test x$enable_all_components = xno; then
31175             passed=no
31176         fi
31177
31178 fi
31179
31180
31181
31182
31183
31184     if test $passed != no; then
31185         if test $passed = yes; then
31186                         if test x$gnuradio_core_skipped = xyes; then
31187                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gnuradio-examples requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
31188 $as_echo "Component gnuradio-examples requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
31189                 passed=no
31190             fi
31191         else
31192                         if test x$gnuradio_core_with = xno; then
31193                 as_fn_error $? "Component gnuradio-examples requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
31194             fi
31195         fi
31196     fi
31197
31198
31199     ac_config_files="$ac_config_files gnuradio-examples/Makefile gnuradio-examples/c++/Makefile gnuradio-examples/python/Makefile gnuradio-examples/grc/Makefile gnuradio-examples/python/apps/hf_explorer/Makefile gnuradio-examples/python/apps/hf_radio/Makefile gnuradio-examples/python/apps/Makefile gnuradio-examples/python/audio/Makefile gnuradio-examples/python/digital/Makefile gnuradio-examples/python/digital_voice/Makefile gnuradio-examples/python/digital-bert/Makefile gnuradio-examples/python/mp-sched/Makefile gnuradio-examples/python/multi-antenna/Makefile gnuradio-examples/python/multi_usrp/Makefile gnuradio-examples/python/network/Makefile gnuradio-examples/python/ofdm/Makefile gnuradio-examples/python/pfb/Makefile gnuradio-examples/python/usrp/Makefile gnuradio-examples/python/usrp2/Makefile"
31200
31201
31202
31203
31204     gnuradio_examples_with=no
31205     if test $passed = no; then
31206         if test x$enable_gnuradio_examples = xyes; then
31207             as_fn_error $? "Component gnuradio-examples has errors; stopping." "$LINENO" 5
31208         else
31209             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gnuradio-examples." >&5
31210 $as_echo "Not building component gnuradio-examples." >&6; }
31211         fi
31212     else
31213         if test $passed = with; then
31214             with_dirs="$with_dirs gnuradio-examples"
31215
31216     if test "x${gnuradio_examples_INCLUDES}" != "x"; then
31217         if test "x$with_INCLUDES" = "x"; then
31218             with_INCLUDES="${gnuradio_examples_INCLUDES}"
31219         else
31220             with_INCLUDES="${gnuradio_examples_INCLUDES}"" ""$with_INCLUDES"
31221         fi
31222         gnuradio_examples_INCLUDES=
31223     fi
31224
31225
31226     if test "x${gnuradio_examples_SWIG_INCLUDES}" != "x"; then
31227         if test "x$with_SWIG_INCLUDES" = "x"; then
31228             with_SWIG_INCLUDES="${gnuradio_examples_SWIG_INCLUDES}"
31229         else
31230             with_SWIG_INCLUDES="${gnuradio_examples_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
31231         fi
31232         gnuradio_examples_SWIG_INCLUDES=
31233     fi
31234
31235
31236     if test "x${gnuradio_examples_PYDIRPATH}" != "x"; then
31237         if test "x$with_PYDIRPATH" = "x"; then
31238             with_PYDIRPATH="${gnuradio_examples_PYDIRPATH}"
31239         else
31240             with_PYDIRPATH="${gnuradio_examples_PYDIRPATH}"":""$with_PYDIRPATH"
31241         fi
31242         gnuradio_examples_PYDIRPATH=
31243     fi
31244
31245
31246     if test "x${gnuradio_examples_SWIGDIRPATH}" != "x"; then
31247         if test "x$with_SWIGDIRPATH" = "x"; then
31248             with_SWIGDIRPATH="${gnuradio_examples_SWIGDIRPATH}"
31249         else
31250             with_SWIGDIRPATH="${gnuradio_examples_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
31251         fi
31252         gnuradio_examples_SWIGDIRPATH=
31253     fi
31254
31255
31256     if test "x${gnuradio_examples_LIBDIRPATH}" != "x"; then
31257         if test "x$with_LIBDIRPATH" = "x"; then
31258             with_LIBDIRPATH="${gnuradio_examples_LIBDIRPATH}"
31259         else
31260             with_LIBDIRPATH="${gnuradio_examples_LIBDIRPATH}"":""$with_LIBDIRPATH"
31261         fi
31262         gnuradio_examples_LIBDIRPATH=
31263     fi
31264
31265             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gnuradio-examples will be included from a pre-installed library and includes." >&5
31266 $as_echo "Component gnuradio-examples will be included from a pre-installed library and includes." >&6; }
31267             gnuradio_examples_with=yes
31268         else
31269             gnuradio_examples_LDFLAG=
31270             if test x$enable_gnuradio_examples != xno; then
31271                 :
31272                 build_dirs="$build_dirs gnuradio-examples"
31273                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gnuradio-examples passed configuration checks; building." >&5
31274 $as_echo "Component gnuradio-examples passed configuration checks; building." >&6; }
31275             else
31276                 passed=no
31277                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gnuradio-examples passed configuration checks; but not building." >&5
31278 $as_echo "Component gnuradio-examples passed configuration checks; but not building." >&6; }
31279             fi
31280         fi
31281     fi
31282     if test $passed = no; then
31283         skipped_dirs="$skipped_dirs gnuradio-examples"
31284         gnuradio_examples_skipped=yes
31285     else
31286         gnuradio_examples_skipped=no
31287     fi
31288
31289
31290
31291
31292
31293
31294
31295
31296
31297
31298     passed=yes
31299     # Check whether --enable-grc was given.
31300 if test "${enable_grc+set}" = set; then :
31301   enableval=$enable_grc;
31302 else
31303
31304         enable_grc=$enable_all_components
31305         if test x$enable_all_components = xno; then
31306             passed=no
31307         fi
31308
31309 fi
31310
31311
31312
31313
31314
31315     if test $passed != no; then
31316         if test $passed = yes; then
31317                         if test x$gr_wxgui_skipped = xyes; then
31318                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component grc requires gr-wxgui, which is not being built or specified via pre-installed files." >&5
31319 $as_echo "Component grc requires gr-wxgui, which is not being built or specified via pre-installed files." >&6; }
31320                 passed=no
31321             fi
31322         else
31323                         if test x$gr_wxgui_with = xno; then
31324                 as_fn_error $? "Component grc requires gr-wxgui to be included as --with-gr-wxgui[=arg]" "$LINENO" 5
31325             fi
31326         fi
31327     fi
31328
31329
31330     # Extract the first word of "xdg-mime", so it can be a program name with args.
31331 set dummy xdg-mime; ac_word=$2
31332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31333 $as_echo_n "checking for $ac_word... " >&6; }
31334 if test "${ac_cv_prog_XDG_UTILS+set}" = set; then :
31335   $as_echo_n "(cached) " >&6
31336 else
31337   if test -n "$XDG_UTILS"; then
31338   ac_cv_prog_XDG_UTILS="$XDG_UTILS" # Let the user override the test.
31339 else
31340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31341 for as_dir in $PATH
31342 do
31343   IFS=$as_save_IFS
31344   test -z "$as_dir" && as_dir=.
31345     for ac_exec_ext in '' $ac_executable_extensions; do
31346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31347     ac_cv_prog_XDG_UTILS="true"
31348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31349     break 2
31350   fi
31351 done
31352   done
31353 IFS=$as_save_IFS
31354
31355   test -z "$ac_cv_prog_XDG_UTILS" && ac_cv_prog_XDG_UTILS="false"
31356 fi
31357 fi
31358 XDG_UTILS=$ac_cv_prog_XDG_UTILS
31359 if test -n "$XDG_UTILS"; then
31360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDG_UTILS" >&5
31361 $as_echo "$XDG_UTILS" >&6; }
31362 else
31363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31364 $as_echo "no" >&6; }
31365 fi
31366
31367
31368      if $XDG_UTILS; then
31369   XDG_UTILS_TRUE=
31370   XDG_UTILS_FALSE='#'
31371 else
31372   XDG_UTILS_TRUE='#'
31373   XDG_UTILS_FALSE=
31374 fi
31375
31376
31377                 if test $passed = yes; then
31378
31379     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python >= 2.5" >&5
31380 $as_echo_n "checking for Python >= 2.5... " >&6; }
31381                 if test "sys.version.split()[0] >= "2.5""; then
31382         python_cmd='
31383 try:
31384     import sys
31385     assert sys.version.split()[0] >= "2.5"
31386 except: exit(1)'
31387                 else
31388         python_cmd='
31389 try: import sys
31390 except: exit(1)'
31391     fi
31392     if ! $PYTHON -c "$python_cmd" 2> /dev/null; then
31393         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31394 $as_echo "no" >&6; }
31395         passed=no
31396     else
31397         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31398 $as_echo "yes" >&6; }
31399
31400     fi
31401
31402
31403     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python Cheetah templates >= 2.0.0" >&5
31404 $as_echo_n "checking for Python Cheetah templates >= 2.0.0... " >&6; }
31405                 if test "Cheetah.Version >= "2.0.0""; then
31406         python_cmd='
31407 try:
31408     import Cheetah
31409     assert Cheetah.Version >= "2.0.0"
31410 except: exit(1)'
31411                 else
31412         python_cmd='
31413 try: import Cheetah
31414 except: exit(1)'
31415     fi
31416     if ! $PYTHON -c "$python_cmd" 2> /dev/null; then
31417         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31418 $as_echo "no" >&6; }
31419         passed=no
31420     else
31421         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31422 $as_echo "yes" >&6; }
31423
31424     fi
31425
31426
31427     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python lxml wrappers >= 1.3.6" >&5
31428 $as_echo_n "checking for Python lxml wrappers >= 1.3.6... " >&6; }
31429                 if test "lxml.etree.LXML_VERSION >= (1, 3, 6, 0)"; then
31430         python_cmd='
31431 try:
31432     import lxml.etree
31433     assert lxml.etree.LXML_VERSION >= (1, 3, 6, 0)
31434 except: exit(1)'
31435                 else
31436         python_cmd='
31437 try: import lxml.etree
31438 except: exit(1)'
31439     fi
31440     if ! $PYTHON -c "$python_cmd" 2> /dev/null; then
31441         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31442 $as_echo "no" >&6; }
31443         passed=no
31444     else
31445         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31446 $as_echo "yes" >&6; }
31447
31448     fi
31449
31450
31451     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python gtk wrappers >= 2.10.0" >&5
31452 $as_echo_n "checking for Python gtk wrappers >= 2.10.0... " >&6; }
31453                 if test "gtk.pygtk_version >= (2, 10, 0)"; then
31454         python_cmd='
31455 try:
31456     import gtk
31457     assert gtk.pygtk_version >= (2, 10, 0)
31458 except: exit(1)'
31459                 else
31460         python_cmd='
31461 try: import gtk
31462 except: exit(1)'
31463     fi
31464     if ! $PYTHON -c "$python_cmd" 2> /dev/null; then
31465         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31466 $as_echo "no" >&6; }
31467         passed=no
31468     else
31469         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31470 $as_echo "yes" >&6; }
31471
31472     fi
31473
31474     fi
31475
31476                     if test `${PYTHON} -c "import sys; print sys.platform"` = 'darwin'; then
31477         PYTHONW=pythonw
31478     else
31479         PYTHONW=python
31480     fi
31481
31482
31483     ac_config_files="$ac_config_files grc/Makefile grc/base/Makefile grc/blocks/Makefile grc/freedesktop/Makefile grc/grc_gnuradio/Makefile grc/gui/Makefile grc/python/Makefile grc/scripts/Makefile"
31484
31485
31486
31487
31488     grc_with=no
31489     if test $passed = no; then
31490         if test x$enable_grc = xyes; then
31491             as_fn_error $? "Component grc has errors; stopping." "$LINENO" 5
31492         else
31493             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component grc." >&5
31494 $as_echo "Not building component grc." >&6; }
31495         fi
31496     else
31497         if test $passed = with; then
31498             with_dirs="$with_dirs grc"
31499
31500     if test "x${grc_INCLUDES}" != "x"; then
31501         if test "x$with_INCLUDES" = "x"; then
31502             with_INCLUDES="${grc_INCLUDES}"
31503         else
31504             with_INCLUDES="${grc_INCLUDES}"" ""$with_INCLUDES"
31505         fi
31506         grc_INCLUDES=
31507     fi
31508
31509
31510     if test "x${grc_SWIG_INCLUDES}" != "x"; then
31511         if test "x$with_SWIG_INCLUDES" = "x"; then
31512             with_SWIG_INCLUDES="${grc_SWIG_INCLUDES}"
31513         else
31514             with_SWIG_INCLUDES="${grc_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
31515         fi
31516         grc_SWIG_INCLUDES=
31517     fi
31518
31519
31520     if test "x${grc_PYDIRPATH}" != "x"; then
31521         if test "x$with_PYDIRPATH" = "x"; then
31522             with_PYDIRPATH="${grc_PYDIRPATH}"
31523         else
31524             with_PYDIRPATH="${grc_PYDIRPATH}"":""$with_PYDIRPATH"
31525         fi
31526         grc_PYDIRPATH=
31527     fi
31528
31529
31530     if test "x${grc_SWIGDIRPATH}" != "x"; then
31531         if test "x$with_SWIGDIRPATH" = "x"; then
31532             with_SWIGDIRPATH="${grc_SWIGDIRPATH}"
31533         else
31534             with_SWIGDIRPATH="${grc_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
31535         fi
31536         grc_SWIGDIRPATH=
31537     fi
31538
31539
31540     if test "x${grc_LIBDIRPATH}" != "x"; then
31541         if test "x$with_LIBDIRPATH" = "x"; then
31542             with_LIBDIRPATH="${grc_LIBDIRPATH}"
31543         else
31544             with_LIBDIRPATH="${grc_LIBDIRPATH}"":""$with_LIBDIRPATH"
31545         fi
31546         grc_LIBDIRPATH=
31547     fi
31548
31549             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component grc will be included from a pre-installed library and includes." >&5
31550 $as_echo "Component grc will be included from a pre-installed library and includes." >&6; }
31551             grc_with=yes
31552         else
31553             grc_LDFLAG=
31554             if test x$enable_grc != xno; then
31555                 :
31556                 build_dirs="$build_dirs grc"
31557                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component grc passed configuration checks; building." >&5
31558 $as_echo "Component grc passed configuration checks; building." >&6; }
31559             else
31560                 passed=no
31561                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component grc passed configuration checks; but not building." >&5
31562 $as_echo "Component grc passed configuration checks; but not building." >&6; }
31563             fi
31564         fi
31565     fi
31566     if test $passed = no; then
31567         skipped_dirs="$skipped_dirs grc"
31568         grc_skipped=yes
31569     else
31570         grc_skipped=no
31571     fi
31572
31573
31574
31575
31576
31577
31578
31579
31580
31581
31582
31583     passed=yes
31584     # Check whether --enable-docs was given.
31585 if test "${enable_docs+set}" = set; then :
31586   enableval=$enable_docs;
31587 else
31588
31589         enable_docs=$enable_all_components
31590         if test x$enable_all_components = xno; then
31591             passed=no
31592         fi
31593
31594 fi
31595
31596
31597
31598
31599     ac_config_files="$ac_config_files docs/Makefile docs/doxygen/Doxyfile docs/doxygen/Makefile docs/doxygen/other/Makefile docs/doxygen/xml-swig/Makefile"
31600
31601
31602
31603
31604     docs_with=no
31605     if test $passed = no; then
31606         if test x$enable_docs = xyes; then
31607             as_fn_error $? "Component docs has errors; stopping." "$LINENO" 5
31608         else
31609             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component docs." >&5
31610 $as_echo "Not building component docs." >&6; }
31611         fi
31612     else
31613         if test $passed = with; then
31614             with_dirs="$with_dirs docs"
31615
31616     if test "x${docs_INCLUDES}" != "x"; then
31617         if test "x$with_INCLUDES" = "x"; then
31618             with_INCLUDES="${docs_INCLUDES}"
31619         else
31620             with_INCLUDES="${docs_INCLUDES}"" ""$with_INCLUDES"
31621         fi
31622         docs_INCLUDES=
31623     fi
31624
31625
31626     if test "x${docs_SWIG_INCLUDES}" != "x"; then
31627         if test "x$with_SWIG_INCLUDES" = "x"; then
31628             with_SWIG_INCLUDES="${docs_SWIG_INCLUDES}"
31629         else
31630             with_SWIG_INCLUDES="${docs_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
31631         fi
31632         docs_SWIG_INCLUDES=
31633     fi
31634
31635
31636     if test "x${docs_PYDIRPATH}" != "x"; then
31637         if test "x$with_PYDIRPATH" = "x"; then
31638             with_PYDIRPATH="${docs_PYDIRPATH}"
31639         else
31640             with_PYDIRPATH="${docs_PYDIRPATH}"":""$with_PYDIRPATH"
31641         fi
31642         docs_PYDIRPATH=
31643     fi
31644
31645
31646     if test "x${docs_SWIGDIRPATH}" != "x"; then
31647         if test "x$with_SWIGDIRPATH" = "x"; then
31648             with_SWIGDIRPATH="${docs_SWIGDIRPATH}"
31649         else
31650             with_SWIGDIRPATH="${docs_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
31651         fi
31652         docs_SWIGDIRPATH=
31653     fi
31654
31655
31656     if test "x${docs_LIBDIRPATH}" != "x"; then
31657         if test "x$with_LIBDIRPATH" = "x"; then
31658             with_LIBDIRPATH="${docs_LIBDIRPATH}"
31659         else
31660             with_LIBDIRPATH="${docs_LIBDIRPATH}"":""$with_LIBDIRPATH"
31661         fi
31662         docs_LIBDIRPATH=
31663     fi
31664
31665             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component docs will be included from a pre-installed library and includes." >&5
31666 $as_echo "Component docs will be included from a pre-installed library and includes." >&6; }
31667             docs_with=yes
31668         else
31669             docs_LDFLAG=
31670             if test x$enable_docs != xno; then
31671                 :
31672                 build_dirs="$build_dirs docs"
31673                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component docs passed configuration checks; building." >&5
31674 $as_echo "Component docs passed configuration checks; building." >&6; }
31675             else
31676                 passed=no
31677                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component docs passed configuration checks; but not building." >&5
31678 $as_echo "Component docs passed configuration checks; but not building." >&6; }
31679             fi
31680         fi
31681     fi
31682     if test $passed = no; then
31683         skipped_dirs="$skipped_dirs docs"
31684         docs_skipped=yes
31685     else
31686         docs_skipped=no
31687     fi
31688
31689
31690
31691
31692
31693
31694
31695
31696
31697 # Each component is now either to be built, was skipped, will be
31698 # included from pre-installed libraries and includes, or failed
31699 # dependencies.
31700 build_dirs=$build_dirs
31701
31702 skipped_dirs=$skipped_dirs
31703
31704 with_dirs=$with_dirs
31705
31706
31707 # fix for older autotools that don't define these by default
31708
31709
31710
31711
31712 # 'with' variables - the pre-installed libraries, includes, and paths
31713 # - must always come last in the lists, so they require special
31714 # treatment.
31715
31716
31717
31718
31719
31720
31721 # Local files tweaked by AC
31722 ac_config_files="$ac_config_files Makefile run_tests.sh config/Makefile"
31723
31724
31725 ac_config_commands="$ac_config_commands run_tests_build"
31726
31727
31728 cat >confcache <<\_ACEOF
31729 # This file is a shell script that caches the results of configure
31730 # tests run on this system so they can be shared between configure
31731 # scripts and configure runs, see configure's option --config-cache.
31732 # It is not useful on other systems.  If it contains results you don't
31733 # want to keep, you may remove or edit it.
31734 #
31735 # config.status only pays attention to the cache file if you give it
31736 # the --recheck option to rerun configure.
31737 #
31738 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31739 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31740 # following values.
31741
31742 _ACEOF
31743
31744 # The following way of writing the cache mishandles newlines in values,
31745 # but we know of no workaround that is simple, portable, and efficient.
31746 # So, we kill variables containing newlines.
31747 # Ultrix sh set writes to stderr and can't be redirected directly,
31748 # and sets the high bit in the cache file unless we assign to the vars.
31749 (
31750   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31751     eval ac_val=\$$ac_var
31752     case $ac_val in #(
31753     *${as_nl}*)
31754       case $ac_var in #(
31755       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31756 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31757       esac
31758       case $ac_var in #(
31759       _ | IFS | as_nl) ;; #(
31760       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31761       *) { eval $ac_var=; unset $ac_var;} ;;
31762       esac ;;
31763     esac
31764   done
31765
31766   (set) 2>&1 |
31767     case $as_nl`(ac_space=' '; set) 2>&1` in #(
31768     *${as_nl}ac_space=\ *)
31769       # `set' does not quote correctly, so add quotes: double-quote
31770       # substitution turns \\\\ into \\, and sed turns \\ into \.
31771       sed -n \
31772         "s/'/'\\\\''/g;
31773           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31774       ;; #(
31775     *)
31776       # `set' quotes correctly as required by POSIX, so do not add quotes.
31777       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31778       ;;
31779     esac |
31780     sort
31781 ) |
31782   sed '
31783      /^ac_cv_env_/b end
31784      t clear
31785      :clear
31786      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31787      t end
31788      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31789      :end' >>confcache
31790 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31791   if test -w "$cache_file"; then
31792     test "x$cache_file" != "x/dev/null" &&
31793       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31794 $as_echo "$as_me: updating cache $cache_file" >&6;}
31795     cat confcache >$cache_file
31796   else
31797     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31798 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31799   fi
31800 fi
31801 rm -f confcache
31802
31803 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31804 # Let make expand exec_prefix.
31805 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31806
31807 DEFS=-DHAVE_CONFIG_H
31808
31809 ac_libobjs=
31810 ac_ltlibobjs=
31811 U=
31812 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31813   # 1. Remove the extension, and $U if already installed.
31814   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31815   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31816   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
31817   #    will be set to the directory where LIBOBJS objects are built.
31818   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31819   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31820 done
31821 LIBOBJS=$ac_libobjs
31822
31823 LTLIBOBJS=$ac_ltlibobjs
31824
31825
31826  if test -n "$EXEEXT"; then
31827   am__EXEEXT_TRUE=
31828   am__EXEEXT_FALSE='#'
31829 else
31830   am__EXEEXT_TRUE='#'
31831   am__EXEEXT_FALSE=
31832 fi
31833
31834 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
31835   as_fn_error $? "conditional \"AMDEP\" was never defined.
31836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31837 fi
31838 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31839   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
31840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31841 fi
31842 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31843   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
31844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31845 fi
31846 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
31847   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
31848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31849 fi
31850 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31851   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
31852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31853 fi
31854 if test -z "${PYTHON_TRUE}" && test -z "${PYTHON_FALSE}"; then
31855   as_fn_error $? "conditional \"PYTHON\" was never defined.
31856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31857 fi
31858 if test -z "${HAS_XMLTO_TRUE}" && test -z "${HAS_XMLTO_FALSE}"; then
31859   as_fn_error $? "conditional \"HAS_XMLTO\" was never defined.
31860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31861 fi
31862
31863 if test -z "${HAVE_CREATEFILEMAPPING_TRUE}" && test -z "${HAVE_CREATEFILEMAPPING_FALSE}"; then
31864   as_fn_error $? "conditional \"HAVE_CREATEFILEMAPPING\" was never defined.
31865 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31866 fi
31867 if test -z "${DOC_TRUE}" && test -z "${DOC_FALSE}"; then
31868   as_fn_error $? "conditional \"DOC\" was never defined.
31869 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31870 fi
31871 if test -z "${MD_CPU_x86_TRUE}" && test -z "${MD_CPU_x86_FALSE}"; then
31872   as_fn_error $? "conditional \"MD_CPU_x86\" was never defined.
31873 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31874 fi
31875 if test -z "${MD_SUBCPU_x86_64_TRUE}" && test -z "${MD_SUBCPU_x86_64_FALSE}"; then
31876   as_fn_error $? "conditional \"MD_SUBCPU_x86_64\" was never defined.
31877 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31878 fi
31879 if test -z "${MD_CPU_powerpc_TRUE}" && test -z "${MD_CPU_powerpc_FALSE}"; then
31880   as_fn_error $? "conditional \"MD_CPU_powerpc\" was never defined.
31881 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31882 fi
31883 if test -z "${MD_CPU_armv5_TRUE}" && test -z "${MD_CPU_armv5_FALSE}"; then
31884   as_fn_error $? "conditional \"MD_CPU_armv5\" was never defined.
31885 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31886 fi
31887 if test -z "${MD_CPU_armv7_a_TRUE}" && test -z "${MD_CPU_armv7_a_FALSE}"; then
31888   as_fn_error $? "conditional \"MD_CPU_armv7_a\" was never defined.
31889 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31890 fi
31891 if test -z "${MD_CPU_generic_TRUE}" && test -z "${MD_CPU_generic_FALSE}"; then
31892   as_fn_error $? "conditional \"MD_CPU_generic\" was never defined.
31893 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31894 fi
31895 if test -z "${FUSB_TECH_darwin_TRUE}" && test -z "${FUSB_TECH_darwin_FALSE}"; then
31896   as_fn_error $? "conditional \"FUSB_TECH_darwin\" was never defined.
31897 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31898 fi
31899 if test -z "${FUSB_TECH_win32_TRUE}" && test -z "${FUSB_TECH_win32_FALSE}"; then
31900   as_fn_error $? "conditional \"FUSB_TECH_win32\" was never defined.
31901 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31902 fi
31903 if test -z "${FUSB_TECH_generic_TRUE}" && test -z "${FUSB_TECH_generic_FALSE}"; then
31904   as_fn_error $? "conditional \"FUSB_TECH_generic\" was never defined.
31905 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31906 fi
31907 if test -z "${FUSB_TECH_linux_TRUE}" && test -z "${FUSB_TECH_linux_FALSE}"; then
31908   as_fn_error $? "conditional \"FUSB_TECH_linux\" was never defined.
31909 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31910 fi
31911 if test -z "${FUSB_TECH_libusb1_TRUE}" && test -z "${FUSB_TECH_libusb1_FALSE}"; then
31912   as_fn_error $? "conditional \"FUSB_TECH_libusb1\" was never defined.
31913 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31914 fi
31915 if test -z "${FUSB_TECH_ra_wb_TRUE}" && test -z "${FUSB_TECH_ra_wb_FALSE}"; then
31916   as_fn_error $? "conditional \"FUSB_TECH_ra_wb\" was never defined.
31917 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31918 fi
31919
31920 if test -z "${XDG_UTILS_TRUE}" && test -z "${XDG_UTILS_FALSE}"; then
31921   as_fn_error $? "conditional \"XDG_UTILS\" was never defined.
31922 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31923 fi
31924
31925 : ${CONFIG_STATUS=./config.status}
31926 ac_write_fail=0
31927 ac_clean_files_save=$ac_clean_files
31928 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31929 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31930 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31931 as_write_fail=0
31932 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31933 #! $SHELL
31934 # Generated by $as_me.
31935 # Run this file to recreate the current configuration.
31936 # Compiler output produced by configure, useful for debugging
31937 # configure, is in config.log if it exists.
31938
31939 debug=false
31940 ac_cs_recheck=false
31941 ac_cs_silent=false
31942
31943 SHELL=\${CONFIG_SHELL-$SHELL}
31944 export SHELL
31945 _ASEOF
31946 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31947 ## -------------------- ##
31948 ## M4sh Initialization. ##
31949 ## -------------------- ##
31950
31951 # Be more Bourne compatible
31952 DUALCASE=1; export DUALCASE # for MKS sh
31953 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31954   emulate sh
31955   NULLCMD=:
31956   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31957   # is contrary to our usage.  Disable this feature.
31958   alias -g '${1+"$@"}'='"$@"'
31959   setopt NO_GLOB_SUBST
31960 else
31961   case `(set -o) 2>/dev/null` in #(
31962   *posix*) :
31963     set -o posix ;; #(
31964   *) :
31965      ;;
31966 esac
31967 fi
31968
31969
31970 as_nl='
31971 '
31972 export as_nl
31973 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31974 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31975 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31976 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31977 # Prefer a ksh shell builtin over an external printf program on Solaris,
31978 # but without wasting forks for bash or zsh.
31979 if test -z "$BASH_VERSION$ZSH_VERSION" \
31980     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31981   as_echo='print -r --'
31982   as_echo_n='print -rn --'
31983 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31984   as_echo='printf %s\n'
31985   as_echo_n='printf %s'
31986 else
31987   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31988     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31989     as_echo_n='/usr/ucb/echo -n'
31990   else
31991     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31992     as_echo_n_body='eval
31993       arg=$1;
31994       case $arg in #(
31995       *"$as_nl"*)
31996         expr "X$arg" : "X\\(.*\\)$as_nl";
31997         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31998       esac;
31999       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32000     '
32001     export as_echo_n_body
32002     as_echo_n='sh -c $as_echo_n_body as_echo'
32003   fi
32004   export as_echo_body
32005   as_echo='sh -c $as_echo_body as_echo'
32006 fi
32007
32008 # The user is always right.
32009 if test "${PATH_SEPARATOR+set}" != set; then
32010   PATH_SEPARATOR=:
32011   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32012     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32013       PATH_SEPARATOR=';'
32014   }
32015 fi
32016
32017
32018 # IFS
32019 # We need space, tab and new line, in precisely that order.  Quoting is
32020 # there to prevent editors from complaining about space-tab.
32021 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32022 # splitting by setting IFS to empty value.)
32023 IFS=" ""        $as_nl"
32024
32025 # Find who we are.  Look in the path if we contain no directory separator.
32026 case $0 in #((
32027   *[\\/]* ) as_myself=$0 ;;
32028   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32029 for as_dir in $PATH
32030 do
32031   IFS=$as_save_IFS
32032   test -z "$as_dir" && as_dir=.
32033     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32034   done
32035 IFS=$as_save_IFS
32036
32037      ;;
32038 esac
32039 # We did not find ourselves, most probably we were run as `sh COMMAND'
32040 # in which case we are not to be found in the path.
32041 if test "x$as_myself" = x; then
32042   as_myself=$0
32043 fi
32044 if test ! -f "$as_myself"; then
32045   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32046   exit 1
32047 fi
32048
32049 # Unset variables that we do not need and which cause bugs (e.g. in
32050 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
32051 # suppresses any "Segmentation fault" message there.  '((' could
32052 # trigger a bug in pdksh 5.2.14.
32053 for as_var in BASH_ENV ENV MAIL MAILPATH
32054 do eval test x\${$as_var+set} = xset \
32055   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32056 done
32057 PS1='$ '
32058 PS2='> '
32059 PS4='+ '
32060
32061 # NLS nuisances.
32062 LC_ALL=C
32063 export LC_ALL
32064 LANGUAGE=C
32065 export LANGUAGE
32066
32067 # CDPATH.
32068 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32069
32070
32071 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32072 # ----------------------------------------
32073 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32074 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32075 # script with STATUS, using 1 if that was 0.
32076 as_fn_error ()
32077 {
32078   as_status=$1; test $as_status -eq 0 && as_status=1
32079   if test "$4"; then
32080     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32081     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32082   fi
32083   $as_echo "$as_me: error: $2" >&2
32084   as_fn_exit $as_status
32085 } # as_fn_error
32086
32087
32088 # as_fn_set_status STATUS
32089 # -----------------------
32090 # Set $? to STATUS, without forking.
32091 as_fn_set_status ()
32092 {
32093   return $1
32094 } # as_fn_set_status
32095
32096 # as_fn_exit STATUS
32097 # -----------------
32098 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32099 as_fn_exit ()
32100 {
32101   set +e
32102   as_fn_set_status $1
32103   exit $1
32104 } # as_fn_exit
32105
32106 # as_fn_unset VAR
32107 # ---------------
32108 # Portably unset VAR.
32109 as_fn_unset ()
32110 {
32111   { eval $1=; unset $1;}
32112 }
32113 as_unset=as_fn_unset
32114 # as_fn_append VAR VALUE
32115 # ----------------------
32116 # Append the text in VALUE to the end of the definition contained in VAR. Take
32117 # advantage of any shell optimizations that allow amortized linear growth over
32118 # repeated appends, instead of the typical quadratic growth present in naive
32119 # implementations.
32120 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32121   eval 'as_fn_append ()
32122   {
32123     eval $1+=\$2
32124   }'
32125 else
32126   as_fn_append ()
32127   {
32128     eval $1=\$$1\$2
32129   }
32130 fi # as_fn_append
32131
32132 # as_fn_arith ARG...
32133 # ------------------
32134 # Perform arithmetic evaluation on the ARGs, and store the result in the
32135 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32136 # must be portable across $(()) and expr.
32137 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32138   eval 'as_fn_arith ()
32139   {
32140     as_val=$(( $* ))
32141   }'
32142 else
32143   as_fn_arith ()
32144   {
32145     as_val=`expr "$@" || test $? -eq 1`
32146   }
32147 fi # as_fn_arith
32148
32149
32150 if expr a : '\(a\)' >/dev/null 2>&1 &&
32151    test "X`expr 00001 : '.*\(...\)'`" = X001; then
32152   as_expr=expr
32153 else
32154   as_expr=false
32155 fi
32156
32157 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32158   as_basename=basename
32159 else
32160   as_basename=false
32161 fi
32162
32163 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32164   as_dirname=dirname
32165 else
32166   as_dirname=false
32167 fi
32168
32169 as_me=`$as_basename -- "$0" ||
32170 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32171          X"$0" : 'X\(//\)$' \| \
32172          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32173 $as_echo X/"$0" |
32174     sed '/^.*\/\([^/][^/]*\)\/*$/{
32175             s//\1/
32176             q
32177           }
32178           /^X\/\(\/\/\)$/{
32179             s//\1/
32180             q
32181           }
32182           /^X\/\(\/\).*/{
32183             s//\1/
32184             q
32185           }
32186           s/.*/./; q'`
32187
32188 # Avoid depending upon Character Ranges.
32189 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32190 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32191 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32192 as_cr_digits='0123456789'
32193 as_cr_alnum=$as_cr_Letters$as_cr_digits
32194
32195 ECHO_C= ECHO_N= ECHO_T=
32196 case `echo -n x` in #(((((
32197 -n*)
32198   case `echo 'xy\c'` in
32199   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
32200   xy)  ECHO_C='\c';;
32201   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
32202        ECHO_T=' ';;
32203   esac;;
32204 *)
32205   ECHO_N='-n';;
32206 esac
32207
32208 rm -f conf$$ conf$$.exe conf$$.file
32209 if test -d conf$$.dir; then
32210   rm -f conf$$.dir/conf$$.file
32211 else
32212   rm -f conf$$.dir
32213   mkdir conf$$.dir 2>/dev/null
32214 fi
32215 if (echo >conf$$.file) 2>/dev/null; then
32216   if ln -s conf$$.file conf$$ 2>/dev/null; then
32217     as_ln_s='ln -s'
32218     # ... but there are two gotchas:
32219     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32220     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32221     # In both cases, we have to default to `cp -p'.
32222     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32223       as_ln_s='cp -p'
32224   elif ln conf$$.file conf$$ 2>/dev/null; then
32225     as_ln_s=ln
32226   else
32227     as_ln_s='cp -p'
32228   fi
32229 else
32230   as_ln_s='cp -p'
32231 fi
32232 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32233 rmdir conf$$.dir 2>/dev/null
32234
32235
32236 # as_fn_mkdir_p
32237 # -------------
32238 # Create "$as_dir" as a directory, including parents if necessary.
32239 as_fn_mkdir_p ()
32240 {
32241
32242   case $as_dir in #(
32243   -*) as_dir=./$as_dir;;
32244   esac
32245   test -d "$as_dir" || eval $as_mkdir_p || {
32246     as_dirs=
32247     while :; do
32248       case $as_dir in #(
32249       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32250       *) as_qdir=$as_dir;;
32251       esac
32252       as_dirs="'$as_qdir' $as_dirs"
32253       as_dir=`$as_dirname -- "$as_dir" ||
32254 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32255          X"$as_dir" : 'X\(//\)[^/]' \| \
32256          X"$as_dir" : 'X\(//\)$' \| \
32257          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32258 $as_echo X"$as_dir" |
32259     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32260             s//\1/
32261             q
32262           }
32263           /^X\(\/\/\)[^/].*/{
32264             s//\1/
32265             q
32266           }
32267           /^X\(\/\/\)$/{
32268             s//\1/
32269             q
32270           }
32271           /^X\(\/\).*/{
32272             s//\1/
32273             q
32274           }
32275           s/.*/./; q'`
32276       test -d "$as_dir" && break
32277     done
32278     test -z "$as_dirs" || eval "mkdir $as_dirs"
32279   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
32280
32281
32282 } # as_fn_mkdir_p
32283 if mkdir -p . 2>/dev/null; then
32284   as_mkdir_p='mkdir -p "$as_dir"'
32285 else
32286   test -d ./-p && rmdir ./-p
32287   as_mkdir_p=false
32288 fi
32289
32290 if test -x / >/dev/null 2>&1; then
32291   as_test_x='test -x'
32292 else
32293   if ls -dL / >/dev/null 2>&1; then
32294     as_ls_L_option=L
32295   else
32296     as_ls_L_option=
32297   fi
32298   as_test_x='
32299     eval sh -c '\''
32300       if test -d "$1"; then
32301         test -d "$1/.";
32302       else
32303         case $1 in #(
32304         -*)set "./$1";;
32305         esac;
32306         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
32307         ???[sx]*):;;*)false;;esac;fi
32308     '\'' sh
32309   '
32310 fi
32311 as_executable_p=$as_test_x
32312
32313 # Sed expression to map a string onto a valid CPP name.
32314 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32315
32316 # Sed expression to map a string onto a valid variable name.
32317 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32318
32319
32320 exec 6>&1
32321 ## ----------------------------------- ##
32322 ## Main body of $CONFIG_STATUS script. ##
32323 ## ----------------------------------- ##
32324 _ASEOF
32325 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
32326
32327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32328 # Save the log message, to keep $0 and so on meaningful, and to
32329 # report actual input values of CONFIG_FILES etc. instead of their
32330 # values after options handling.
32331 ac_log="
32332 This file was extended by $as_me, which was
32333 generated by GNU Autoconf 2.67.  Invocation command line was
32334
32335   CONFIG_FILES    = $CONFIG_FILES
32336   CONFIG_HEADERS  = $CONFIG_HEADERS
32337   CONFIG_LINKS    = $CONFIG_LINKS
32338   CONFIG_COMMANDS = $CONFIG_COMMANDS
32339   $ $0 $@
32340
32341 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32342 "
32343
32344 _ACEOF
32345
32346 case $ac_config_files in *"
32347 "*) set x $ac_config_files; shift; ac_config_files=$*;;
32348 esac
32349
32350 case $ac_config_headers in *"
32351 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
32352 esac
32353
32354
32355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32356 # Files that config.status was made for.
32357 config_files="$ac_config_files"
32358 config_headers="$ac_config_headers"
32359 config_commands="$ac_config_commands"
32360
32361 _ACEOF
32362
32363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32364 ac_cs_usage="\
32365 \`$as_me' instantiates files and other configuration actions
32366 from templates according to the current configuration.  Unless the files
32367 and actions are specified as TAGs, all are instantiated by default.
32368
32369 Usage: $0 [OPTION]... [TAG]...
32370
32371   -h, --help       print this help, then exit
32372   -V, --version    print version number and configuration settings, then exit
32373       --config     print configuration, then exit
32374   -q, --quiet, --silent
32375                    do not print progress messages
32376   -d, --debug      don't remove temporary files
32377       --recheck    update $as_me by reconfiguring in the same conditions
32378       --file=FILE[:TEMPLATE]
32379                    instantiate the configuration file FILE
32380       --header=FILE[:TEMPLATE]
32381                    instantiate the configuration header FILE
32382
32383 Configuration files:
32384 $config_files
32385
32386 Configuration headers:
32387 $config_headers
32388
32389 Configuration commands:
32390 $config_commands
32391
32392 Report bugs to the package provider."
32393
32394 _ACEOF
32395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32396 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
32397 ac_cs_version="\\
32398 config.status
32399 configured by $0, generated by GNU Autoconf 2.67,
32400   with options \\"\$ac_cs_config\\"
32401
32402 Copyright (C) 2010 Free Software Foundation, Inc.
32403 This config.status script is free software; the Free Software Foundation
32404 gives unlimited permission to copy, distribute and modify it."
32405
32406 ac_pwd='$ac_pwd'
32407 srcdir='$srcdir'
32408 INSTALL='$INSTALL'
32409 MKDIR_P='$MKDIR_P'
32410 AWK='$AWK'
32411 test -n "\$AWK" || AWK=awk
32412 _ACEOF
32413
32414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32415 # The default lists apply if the user does not specify any file.
32416 ac_need_defaults=:
32417 while test $# != 0
32418 do
32419   case $1 in
32420   --*=?*)
32421     ac_option=`expr "X$1" : 'X\([^=]*\)='`
32422     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32423     ac_shift=:
32424     ;;
32425   --*=)
32426     ac_option=`expr "X$1" : 'X\([^=]*\)='`
32427     ac_optarg=
32428     ac_shift=:
32429     ;;
32430   *)
32431     ac_option=$1
32432     ac_optarg=$2
32433     ac_shift=shift
32434     ;;
32435   esac
32436
32437   case $ac_option in
32438   # Handling of the options.
32439   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32440     ac_cs_recheck=: ;;
32441   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32442     $as_echo "$ac_cs_version"; exit ;;
32443   --config | --confi | --conf | --con | --co | --c )
32444     $as_echo "$ac_cs_config"; exit ;;
32445   --debug | --debu | --deb | --de | --d | -d )
32446     debug=: ;;
32447   --file | --fil | --fi | --f )
32448     $ac_shift
32449     case $ac_optarg in
32450     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32451     '') as_fn_error $? "missing file argument" ;;
32452     esac
32453     as_fn_append CONFIG_FILES " '$ac_optarg'"
32454     ac_need_defaults=false;;
32455   --header | --heade | --head | --hea )
32456     $ac_shift
32457     case $ac_optarg in
32458     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32459     esac
32460     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
32461     ac_need_defaults=false;;
32462   --he | --h)
32463     # Conflict between --help and --header
32464     as_fn_error $? "ambiguous option: \`$1'
32465 Try \`$0 --help' for more information.";;
32466   --help | --hel | -h )
32467     $as_echo "$ac_cs_usage"; exit ;;
32468   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32469   | -silent | --silent | --silen | --sile | --sil | --si | --s)
32470     ac_cs_silent=: ;;
32471
32472   # This is an error.
32473   -*) as_fn_error $? "unrecognized option: \`$1'
32474 Try \`$0 --help' for more information." ;;
32475
32476   *) as_fn_append ac_config_targets " $1"
32477      ac_need_defaults=false ;;
32478
32479   esac
32480   shift
32481 done
32482
32483 ac_configure_extra_args=
32484
32485 if $ac_cs_silent; then
32486   exec 6>/dev/null
32487   ac_configure_extra_args="$ac_configure_extra_args --silent"
32488 fi
32489
32490 _ACEOF
32491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32492 if \$ac_cs_recheck; then
32493   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32494   shift
32495   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32496   CONFIG_SHELL='$SHELL'
32497   export CONFIG_SHELL
32498   exec "\$@"
32499 fi
32500
32501 _ACEOF
32502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32503 exec 5>>config.log
32504 {
32505   echo
32506   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32507 ## Running $as_me. ##
32508 _ASBOX
32509   $as_echo "$ac_log"
32510 } >&5
32511
32512 _ACEOF
32513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32514 #
32515 # INIT-COMMANDS
32516 #
32517 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
32518
32519
32520 # The HP-UX ksh and POSIX shell print the target directory to stdout
32521 # if CDPATH is set.
32522 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32523
32524 sed_quote_subst='$sed_quote_subst'
32525 double_quote_subst='$double_quote_subst'
32526 delay_variable_subst='$delay_variable_subst'
32527 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
32528 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
32529 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
32530 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
32531 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
32532 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
32533 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
32534 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
32535 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
32536 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
32537 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
32538 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
32539 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
32540 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
32541 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
32542 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
32543 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
32544 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
32545 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
32546 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
32547 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
32548 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
32549 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
32550 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
32551 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
32552 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
32553 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
32554 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
32555 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
32556 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
32557 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32558 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
32559 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
32560 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
32561 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
32562 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
32563 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
32564 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32565 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32566 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32567 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
32568 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
32569 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
32570 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
32571 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
32572 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
32573 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
32574 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
32575 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
32576 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
32577 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
32578 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
32579 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
32580 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
32581 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
32582 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
32583 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
32584 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
32585 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
32586 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
32587 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
32588 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
32589 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
32590 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
32591 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32592 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32593 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
32594 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
32595 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
32596 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
32597 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
32598 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32599 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32600 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32601 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32602 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32603 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32604 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
32605 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
32606 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
32607 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
32608 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
32609 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
32610 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
32611 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
32612 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
32613 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
32614 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
32615 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
32616 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
32617 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
32618 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
32619 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32620 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
32621 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
32622 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32623 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
32624 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
32625 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
32626 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
32627 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
32628 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
32629 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
32630 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
32631 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
32632 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
32633 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
32634 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32635 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32636 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32637 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
32638 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
32639 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
32640 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
32641 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
32642 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
32643 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
32644 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
32645 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
32646 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
32647 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
32648 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
32649 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
32650 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
32651 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
32652 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
32653 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32654 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32655 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32656 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32657 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32658 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32659 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32660 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32661 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32662 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32663 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32664 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32665 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32666 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32667 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32668 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32669 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32670 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32671 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32672 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32673 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32674 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32675 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32676 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32677 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32678 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32679 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32680 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32681 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32682 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32683 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32684 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32685 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32686 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32687 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32688 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32689 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32690 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32691 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32692 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32693 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32694 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32695 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32696 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32697 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32698 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32699 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32700
32701 LTCC='$LTCC'
32702 LTCFLAGS='$LTCFLAGS'
32703 compiler='$compiler_DEFAULT'
32704
32705 # Quote evaled strings.
32706 for var in SED \
32707 GREP \
32708 EGREP \
32709 FGREP \
32710 LD \
32711 NM \
32712 LN_S \
32713 lt_SP2NL \
32714 lt_NL2SP \
32715 reload_flag \
32716 deplibs_check_method \
32717 file_magic_cmd \
32718 AR \
32719 AR_FLAGS \
32720 STRIP \
32721 RANLIB \
32722 CC \
32723 CFLAGS \
32724 compiler \
32725 lt_cv_sys_global_symbol_pipe \
32726 lt_cv_sys_global_symbol_to_cdecl \
32727 lt_cv_sys_global_symbol_to_c_name_address \
32728 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
32729 SHELL \
32730 ECHO \
32731 lt_prog_compiler_no_builtin_flag \
32732 lt_prog_compiler_wl \
32733 lt_prog_compiler_pic \
32734 lt_prog_compiler_static \
32735 lt_cv_prog_compiler_c_o \
32736 need_locks \
32737 DSYMUTIL \
32738 NMEDIT \
32739 LIPO \
32740 OTOOL \
32741 OTOOL64 \
32742 shrext_cmds \
32743 export_dynamic_flag_spec \
32744 whole_archive_flag_spec \
32745 compiler_needs_object \
32746 with_gnu_ld \
32747 allow_undefined_flag \
32748 no_undefined_flag \
32749 hardcode_libdir_flag_spec \
32750 hardcode_libdir_flag_spec_ld \
32751 hardcode_libdir_separator \
32752 fix_srcfile_path \
32753 exclude_expsyms \
32754 include_expsyms \
32755 file_list_spec \
32756 variables_saved_for_relink \
32757 libname_spec \
32758 library_names_spec \
32759 soname_spec \
32760 finish_eval \
32761 old_striplib \
32762 striplib \
32763 compiler_lib_search_dirs \
32764 predep_objects \
32765 postdep_objects \
32766 predeps \
32767 postdeps \
32768 compiler_lib_search_path \
32769 LD_CXX \
32770 compiler_CXX \
32771 lt_prog_compiler_no_builtin_flag_CXX \
32772 lt_prog_compiler_wl_CXX \
32773 lt_prog_compiler_pic_CXX \
32774 lt_prog_compiler_static_CXX \
32775 lt_cv_prog_compiler_c_o_CXX \
32776 export_dynamic_flag_spec_CXX \
32777 whole_archive_flag_spec_CXX \
32778 compiler_needs_object_CXX \
32779 with_gnu_ld_CXX \
32780 allow_undefined_flag_CXX \
32781 no_undefined_flag_CXX \
32782 hardcode_libdir_flag_spec_CXX \
32783 hardcode_libdir_flag_spec_ld_CXX \
32784 hardcode_libdir_separator_CXX \
32785 fix_srcfile_path_CXX \
32786 exclude_expsyms_CXX \
32787 include_expsyms_CXX \
32788 file_list_spec_CXX \
32789 compiler_lib_search_dirs_CXX \
32790 predep_objects_CXX \
32791 postdep_objects_CXX \
32792 predeps_CXX \
32793 postdeps_CXX \
32794 compiler_lib_search_path_CXX; do
32795     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
32796     *[\\\\\\\`\\"\\\$]*)
32797       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
32798       ;;
32799     *)
32800       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32801       ;;
32802     esac
32803 done
32804
32805 # Double-quote double-evaled strings.
32806 for var in reload_cmds \
32807 old_postinstall_cmds \
32808 old_postuninstall_cmds \
32809 old_archive_cmds \
32810 extract_expsyms_cmds \
32811 old_archive_from_new_cmds \
32812 old_archive_from_expsyms_cmds \
32813 archive_cmds \
32814 archive_expsym_cmds \
32815 module_cmds \
32816 module_expsym_cmds \
32817 export_symbols_cmds \
32818 prelink_cmds \
32819 postinstall_cmds \
32820 postuninstall_cmds \
32821 finish_cmds \
32822 sys_lib_search_path_spec \
32823 sys_lib_dlsearch_path_spec \
32824 old_archive_cmds_CXX \
32825 old_archive_from_new_cmds_CXX \
32826 old_archive_from_expsyms_cmds_CXX \
32827 archive_cmds_CXX \
32828 archive_expsym_cmds_CXX \
32829 module_cmds_CXX \
32830 module_expsym_cmds_CXX \
32831 export_symbols_cmds_CXX \
32832 prelink_cmds_CXX; do
32833     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
32834     *[\\\\\\\`\\"\\\$]*)
32835       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
32836       ;;
32837     *)
32838       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32839       ;;
32840     esac
32841 done
32842
32843 # Fix-up fallback echo if it was mangled by the above quoting rules.
32844 case \$lt_ECHO in
32845 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
32846   ;;
32847 esac
32848
32849 ac_aux_dir='$ac_aux_dir'
32850 xsi_shell='$xsi_shell'
32851 lt_shell_append='$lt_shell_append'
32852
32853 # See if we are running on zsh, and set the options which allow our
32854 # commands through without removal of \ escapes INIT.
32855 if test -n "\${ZSH_VERSION+set}" ; then
32856    setopt NO_GLOB_SUBST
32857 fi
32858
32859
32860     PACKAGE='$PACKAGE'
32861     VERSION='$VERSION'
32862     TIMESTAMP='$TIMESTAMP'
32863     RM='$RM'
32864     ofile='$ofile'
32865
32866
32867
32868
32869
32870
32871 _ACEOF
32872
32873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32874
32875 # Handling of arguments.
32876 for ac_config_target in $ac_config_targets
32877 do
32878   case $ac_config_target in
32879     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
32880     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
32881     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32882     "gruel/Makefile") CONFIG_FILES="$CONFIG_FILES gruel/Makefile" ;;
32883     "gruel/gruel.pc") CONFIG_FILES="$CONFIG_FILES gruel/gruel.pc" ;;
32884     "gruel/src/Makefile") CONFIG_FILES="$CONFIG_FILES gruel/src/Makefile" ;;
32885     "gruel/src/include/Makefile") CONFIG_FILES="$CONFIG_FILES gruel/src/include/Makefile" ;;
32886     "gruel/src/include/gruel/Makefile") CONFIG_FILES="$CONFIG_FILES gruel/src/include/gruel/Makefile" ;;
32887     "gruel/src/include/gruel/inet.h") CONFIG_FILES="$CONFIG_FILES gruel/src/include/gruel/inet.h" ;;
32888     "gruel/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gruel/src/lib/Makefile" ;;
32889     "gruel/src/lib/pmt/Makefile") CONFIG_FILES="$CONFIG_FILES gruel/src/lib/pmt/Makefile" ;;
32890     "gruel/src/lib/msg/Makefile") CONFIG_FILES="$CONFIG_FILES gruel/src/lib/msg/Makefile" ;;
32891     "gruel/src/scheme/Makefile") CONFIG_FILES="$CONFIG_FILES gruel/src/scheme/Makefile" ;;
32892     "gruel/src/scheme/gnuradio/Makefile") CONFIG_FILES="$CONFIG_FILES gruel/src/scheme/gnuradio/Makefile" ;;
32893     "gcell/Makefile") CONFIG_FILES="$CONFIG_FILES gcell/Makefile" ;;
32894     "gcell/gcell.pc") CONFIG_FILES="$CONFIG_FILES gcell/gcell.pc" ;;
32895     "gcell/gcell_spu.pc") CONFIG_FILES="$CONFIG_FILES gcell/gcell_spu.pc" ;;
32896     "gcell/include/Makefile") CONFIG_FILES="$CONFIG_FILES gcell/include/Makefile" ;;
32897     "gcell/include/gcell/Makefile") CONFIG_FILES="$CONFIG_FILES gcell/include/gcell/Makefile" ;;
32898     "gcell/include/gcell/spu/Makefile") CONFIG_FILES="$CONFIG_FILES gcell/include/gcell/spu/Makefile" ;;
32899     "gcell/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gcell/lib/Makefile" ;;
32900     "gcell/lib/spu/Makefile") CONFIG_FILES="$CONFIG_FILES gcell/lib/spu/Makefile" ;;
32901     "gcell/lib/general/Makefile") CONFIG_FILES="$CONFIG_FILES gcell/lib/general/Makefile" ;;
32902     "gcell/lib/wrapper/Makefile") CONFIG_FILES="$CONFIG_FILES gcell/lib/wrapper/Makefile" ;;
32903     "gcell/lib/runtime/Makefile") CONFIG_FILES="$CONFIG_FILES gcell/lib/runtime/Makefile" ;;
32904     "gcell/apps/Makefile") CONFIG_FILES="$CONFIG_FILES gcell/apps/Makefile" ;;
32905     "gcell/apps/spu/Makefile") CONFIG_FILES="$CONFIG_FILES gcell/apps/spu/Makefile" ;;
32906     "gcell/ibm/Makefile") CONFIG_FILES="$CONFIG_FILES gcell/ibm/Makefile" ;;
32907     "gnuradio-core/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/Makefile" ;;
32908     "gnuradio-core/gnuradio-core.pc") CONFIG_FILES="$CONFIG_FILES gnuradio-core/gnuradio-core.pc" ;;
32909     "gnuradio-core/src/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/Makefile" ;;
32910     "gnuradio-core/src/gen_interpolator_taps/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/gen_interpolator_taps/Makefile" ;;
32911     "gnuradio-core/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/Makefile" ;;
32912     "gnuradio-core/src/lib/filter/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/filter/Makefile" ;;
32913     "gnuradio-core/src/lib/g72x/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/g72x/Makefile" ;;
32914     "gnuradio-core/src/lib/general/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/general/Makefile" ;;
32915     "gnuradio-core/src/lib/general/gr_constants.cc") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/general/gr_constants.cc" ;;
32916     "gnuradio-core/src/lib/gengen/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/gengen/Makefile" ;;
32917     "gnuradio-core/src/lib/io/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/io/Makefile" ;;
32918     "gnuradio-core/src/lib/missing/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/missing/Makefile" ;;
32919     "gnuradio-core/src/lib/reed-solomon/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/reed-solomon/Makefile" ;;
32920     "gnuradio-core/src/lib/viterbi/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/viterbi/Makefile" ;;
32921     "gnuradio-core/src/lib/runtime/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/runtime/Makefile" ;;
32922     "gnuradio-core/src/lib/hier/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/hier/Makefile" ;;
32923     "gnuradio-core/src/lib/swig/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/swig/Makefile" ;;
32924     "gnuradio-core/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/Makefile" ;;
32925     "gnuradio-core/src/python/bin/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/bin/Makefile" ;;
32926     "gnuradio-core/src/python/gnuradio/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/Makefile" ;;
32927     "gnuradio-core/src/python/gnuradio/blks2/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/blks2/Makefile" ;;
32928     "gnuradio-core/src/python/gnuradio/blks2impl/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/blks2impl/Makefile" ;;
32929     "gnuradio-core/src/python/gnuradio/gr/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gr/Makefile" ;;
32930     "gnuradio-core/src/python/gnuradio/gr/run_tests") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gr/run_tests" ;;
32931     "gnuradio-core/src/python/gnuradio/gru/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gru/Makefile" ;;
32932     "gnuradio-core/src/python/gnuradio/gruimpl/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gruimpl/Makefile" ;;
32933     "gnuradio-core/src/python/gnuradio/vocoder/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/vocoder/Makefile" ;;
32934     "gnuradio-core/src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/tests/Makefile" ;;
32935     "gnuradio-core/src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/utils/Makefile" ;;
32936     "run_tests_core") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_core" ;;
32937     "usrp/host/include/usrp/libusb_types.h") CONFIG_FILES="$CONFIG_FILES usrp/host/include/usrp/libusb_types.h" ;;
32938     "usrp/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/Makefile" ;;
32939     "usrp/usrp.pc") CONFIG_FILES="$CONFIG_FILES usrp/usrp.pc" ;;
32940     "usrp/usrp.iss") CONFIG_FILES="$CONFIG_FILES usrp/usrp.iss" ;;
32941     "usrp/doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES usrp/doc/Doxyfile" ;;
32942     "usrp/doc/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/doc/Makefile" ;;
32943     "usrp/doc/other/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/doc/other/Makefile" ;;
32944     "usrp/host/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/Makefile" ;;
32945     "usrp/host/include/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/include/Makefile" ;;
32946     "usrp/host/include/usrp/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/include/usrp/Makefile" ;;
32947     "usrp/host/misc/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/misc/Makefile" ;;
32948     "usrp/host/lib/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/lib/Makefile" ;;
32949     "usrp/host/lib/std_paths.h") CONFIG_FILES="$CONFIG_FILES usrp/host/lib/std_paths.h" ;;
32950     "usrp/host/swig/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/swig/Makefile" ;;
32951     "usrp/host/apps/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/apps/Makefile" ;;
32952     "usrp/firmware/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/Makefile" ;;
32953     "usrp/firmware/include/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/include/Makefile" ;;
32954     "usrp/firmware/lib/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/lib/Makefile" ;;
32955     "usrp/firmware/src/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/src/Makefile" ;;
32956     "usrp/firmware/src/common/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/src/common/Makefile" ;;
32957     "usrp/firmware/src/usrp2/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/src/usrp2/Makefile" ;;
32958     "usrp/fpga/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/fpga/Makefile" ;;
32959     "usrp/fpga/rbf/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/fpga/rbf/Makefile" ;;
32960     "usrp/fpga/rbf/rev2/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/fpga/rbf/rev2/Makefile" ;;
32961     "usrp/fpga/rbf/rev4/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/fpga/rbf/rev4/Makefile" ;;
32962     "usrp2/Makefile") CONFIG_FILES="$CONFIG_FILES usrp2/Makefile" ;;
32963     "usrp2/host/Makefile") CONFIG_FILES="$CONFIG_FILES usrp2/host/Makefile" ;;
32964     "usrp2/host/usrp2.pc") CONFIG_FILES="$CONFIG_FILES usrp2/host/usrp2.pc" ;;
32965     "usrp2/host/include/Makefile") CONFIG_FILES="$CONFIG_FILES usrp2/host/include/Makefile" ;;
32966     "usrp2/host/include/usrp2/Makefile") CONFIG_FILES="$CONFIG_FILES usrp2/host/include/usrp2/Makefile" ;;
32967     "usrp2/host/lib/Makefile") CONFIG_FILES="$CONFIG_FILES usrp2/host/lib/Makefile" ;;
32968     "usrp2/host/apps/Makefile") CONFIG_FILES="$CONFIG_FILES usrp2/host/apps/Makefile" ;;
32969     "gr-usrp/Makefile") CONFIG_FILES="$CONFIG_FILES gr-usrp/Makefile" ;;
32970     "gr-usrp/gnuradio-usrp.pc") CONFIG_FILES="$CONFIG_FILES gr-usrp/gnuradio-usrp.pc" ;;
32971     "gr-usrp/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-usrp/src/Makefile" ;;
32972     "gr-usrp/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-usrp/src/run_tests" ;;
32973     "gr-usrp/apps/Makefile") CONFIG_FILES="$CONFIG_FILES gr-usrp/apps/Makefile" ;;
32974     "run_tests_usrp") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_usrp" ;;
32975     "gr-usrp2/Makefile") CONFIG_FILES="$CONFIG_FILES gr-usrp2/Makefile" ;;
32976     "gr-usrp2/gnuradio-usrp2.pc") CONFIG_FILES="$CONFIG_FILES gr-usrp2/gnuradio-usrp2.pc" ;;
32977     "gr-usrp2/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-usrp2/src/Makefile" ;;
32978     "gr-usrp2/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-usrp2/src/run_tests" ;;
32979     "run_tests_usrp2") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_usrp2" ;;
32980     "gr-gcell/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gcell/Makefile" ;;
32981     "gr-gcell/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gcell/src/Makefile" ;;
32982     "gr-gcell/src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gcell/src/examples/Makefile" ;;
32983     "gr-gcell/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-gcell/src/run_tests" ;;
32984     "run_tests_gcell") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_gcell" ;;
32985     "gr-msdd6000/Makefile") CONFIG_FILES="$CONFIG_FILES gr-msdd6000/Makefile" ;;
32986     "gr-msdd6000/gnuradio-msdd6000.pc") CONFIG_FILES="$CONFIG_FILES gr-msdd6000/gnuradio-msdd6000.pc" ;;
32987     "gr-msdd6000/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-msdd6000/src/Makefile" ;;
32988     "gr-audio-alsa/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-alsa/Makefile" ;;
32989     "gr-audio-alsa/gnuradio-audio-alsa.pc") CONFIG_FILES="$CONFIG_FILES gr-audio-alsa/gnuradio-audio-alsa.pc" ;;
32990     "gr-audio-alsa/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-alsa/src/Makefile" ;;
32991     "gr-audio-alsa/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-alsa/src/run_tests" ;;
32992     "run_tests_alsa") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_alsa" ;;
32993     "gr-audio-jack/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-jack/Makefile" ;;
32994     "gr-audio-jack/gnuradio-audio-jack.pc") CONFIG_FILES="$CONFIG_FILES gr-audio-jack/gnuradio-audio-jack.pc" ;;
32995     "gr-audio-jack/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-jack/src/Makefile" ;;
32996     "gr-audio-jack/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-jack/src/run_tests" ;;
32997     "run_tests_jack") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_jack" ;;
32998     "gr-audio-oss/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-oss/Makefile" ;;
32999     "gr-audio-oss/gnuradio-audio-oss.pc") CONFIG_FILES="$CONFIG_FILES gr-audio-oss/gnuradio-audio-oss.pc" ;;
33000     "gr-audio-oss/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-oss/src/Makefile" ;;
33001     "gr-audio-oss/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-oss/src/run_tests" ;;
33002     "run_tests_oss") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_oss" ;;
33003     "gr-audio-osx/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-osx/Makefile" ;;
33004     "gr-audio-osx/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-osx/src/Makefile" ;;
33005     "gr-audio-osx/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-osx/src/run_tests" ;;
33006     "run_tests_osx") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_osx" ;;
33007     "gr-audio-portaudio/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-portaudio/Makefile" ;;
33008     "gr-audio-portaudio/gnuradio-audio-portaudio.pc") CONFIG_FILES="$CONFIG_FILES gr-audio-portaudio/gnuradio-audio-portaudio.pc" ;;
33009     "gr-audio-portaudio/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-portaudio/src/Makefile" ;;
33010     "gr-audio-portaudio/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-portaudio/src/run_tests" ;;
33011     "run_tests_portaudio") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_portaudio" ;;
33012     "gr-audio-windows/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-windows/Makefile" ;;
33013     "gr-audio-windows/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-windows/src/Makefile" ;;
33014     "gr-audio-windows/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-windows/src/run_tests" ;;
33015     "run_tests_audio_windows") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_audio_windows" ;;
33016     "gr-atsc/Makefile") CONFIG_FILES="$CONFIG_FILES gr-atsc/Makefile" ;;
33017     "gr-atsc/gnuradio-atsc.pc") CONFIG_FILES="$CONFIG_FILES gr-atsc/gnuradio-atsc.pc" ;;
33018     "gr-atsc/doc/Makefile") CONFIG_FILES="$CONFIG_FILES gr-atsc/doc/Makefile" ;;
33019     "gr-atsc/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-atsc/src/Makefile" ;;
33020     "gr-atsc/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-atsc/src/lib/Makefile" ;;
33021     "gr-atsc/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-atsc/src/python/Makefile" ;;
33022     "gr-atsc/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-atsc/src/python/run_tests" ;;
33023     "run_tests_atsc") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_atsc" ;;
33024     "gr-comedi/Makefile") CONFIG_FILES="$CONFIG_FILES gr-comedi/Makefile" ;;
33025     "gr-comedi/gnuradio-comedi.pc") CONFIG_FILES="$CONFIG_FILES gr-comedi/gnuradio-comedi.pc" ;;
33026     "gr-comedi/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-comedi/src/Makefile" ;;
33027     "gr-comedi/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-comedi/src/run_tests" ;;
33028     "run_tests_comedi") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_comedi" ;;
33029     "gr-cvsd-vocoder/Makefile") CONFIG_FILES="$CONFIG_FILES gr-cvsd-vocoder/Makefile" ;;
33030     "gr-cvsd-vocoder/gnuradio-cvsd-vocoder.pc") CONFIG_FILES="$CONFIG_FILES gr-cvsd-vocoder/gnuradio-cvsd-vocoder.pc" ;;
33031     "gr-cvsd-vocoder/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-cvsd-vocoder/src/Makefile" ;;
33032     "gr-cvsd-vocoder/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-cvsd-vocoder/src/lib/Makefile" ;;
33033     "gr-cvsd-vocoder/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-cvsd-vocoder/src/python/Makefile" ;;
33034     "gr-cvsd-vocoder/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-cvsd-vocoder/src/python/run_tests" ;;
33035     "run_tests_cvsd") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_cvsd" ;;
33036     "gr-gpio/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gpio/Makefile" ;;
33037     "gr-gpio/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gpio/src/Makefile" ;;
33038     "gr-gpio/src/fpga/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gpio/src/fpga/Makefile" ;;
33039     "gr-gpio/src/fpga/include/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gpio/src/fpga/include/Makefile" ;;
33040     "gr-gpio/src/fpga/top/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gpio/src/fpga/top/Makefile" ;;
33041     "gr-gpio/src/fpga/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gpio/src/fpga/lib/Makefile" ;;
33042     "gr-gpio/src/fpga/rbf/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gpio/src/fpga/rbf/Makefile" ;;
33043     "gr-gpio/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gpio/src/python/Makefile" ;;
33044     "gr-gsm-fr-vocoder/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/Makefile" ;;
33045     "gr-gsm-fr-vocoder/gnuradio-gsm-fr-vocoder.pc") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/gnuradio-gsm-fr-vocoder.pc" ;;
33046     "gr-gsm-fr-vocoder/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/Makefile" ;;
33047     "gr-gsm-fr-vocoder/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/lib/Makefile" ;;
33048     "gr-gsm-fr-vocoder/src/lib/gsm/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/lib/gsm/Makefile" ;;
33049     "gr-gsm-fr-vocoder/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/python/Makefile" ;;
33050     "gr-gsm-fr-vocoder/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/python/run_tests" ;;
33051     "run_tests_gsm") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_gsm" ;;
33052     "gr-noaa/Makefile") CONFIG_FILES="$CONFIG_FILES gr-noaa/Makefile" ;;
33053     "gr-noaa/apps/Makefile") CONFIG_FILES="$CONFIG_FILES gr-noaa/apps/Makefile" ;;
33054     "gr-noaa/grc/Makefile") CONFIG_FILES="$CONFIG_FILES gr-noaa/grc/Makefile" ;;
33055     "gr-noaa/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-noaa/lib/Makefile" ;;
33056     "gr-noaa/oct/Makefile") CONFIG_FILES="$CONFIG_FILES gr-noaa/oct/Makefile" ;;
33057     "gr-noaa/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-noaa/python/Makefile" ;;
33058     "gr-noaa/swig/Makefile") CONFIG_FILES="$CONFIG_FILES gr-noaa/swig/Makefile" ;;
33059     "gr-pager/Makefile") CONFIG_FILES="$CONFIG_FILES gr-pager/Makefile" ;;
33060     "gr-pager/gnuradio-pager.pc") CONFIG_FILES="$CONFIG_FILES gr-pager/gnuradio-pager.pc" ;;
33061     "gr-pager/apps/Makefile") CONFIG_FILES="$CONFIG_FILES gr-pager/apps/Makefile" ;;
33062     "gr-pager/grc/Makefile") CONFIG_FILES="$CONFIG_FILES gr-pager/grc/Makefile" ;;
33063     "gr-pager/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-pager/lib/Makefile" ;;
33064     "gr-pager/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-pager/python/Makefile" ;;
33065     "gr-pager/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-pager/python/run_tests" ;;
33066     "gr-pager/swig/Makefile") CONFIG_FILES="$CONFIG_FILES gr-pager/swig/Makefile" ;;
33067     "run_tests_pager") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_pager" ;;
33068     "gr-radar-mono/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radar-mono/Makefile" ;;
33069     "gr-radar-mono/doc/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radar-mono/doc/Makefile" ;;
33070     "gr-radar-mono/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radar-mono/src/Makefile" ;;
33071     "gr-radar-mono/src/fpga/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radar-mono/src/fpga/Makefile" ;;
33072     "gr-radar-mono/src/fpga/top/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radar-mono/src/fpga/top/Makefile" ;;
33073     "gr-radar-mono/src/fpga/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radar-mono/src/fpga/lib/Makefile" ;;
33074     "gr-radar-mono/src/fpga/models/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radar-mono/src/fpga/models/Makefile" ;;
33075     "gr-radar-mono/src/fpga/tb/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radar-mono/src/fpga/tb/Makefile" ;;
33076     "gr-radar-mono/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radar-mono/src/lib/Makefile" ;;
33077     "gr-radar-mono/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radar-mono/src/python/Makefile" ;;
33078     "gr-radar-mono/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-radar-mono/src/python/run_tests" ;;
33079     "run_tests_radar_mono") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_radar_mono" ;;
33080     "gr-radio-astronomy/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/Makefile" ;;
33081     "gr-radio-astronomy/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/Makefile" ;;
33082     "gr-radio-astronomy/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/lib/Makefile" ;;
33083     "gr-radio-astronomy/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/python/Makefile" ;;
33084     "gr-radio-astronomy/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/python/run_tests" ;;
33085     "run_tests_astronomy") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_astronomy" ;;
33086     "gr-trellis/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/Makefile" ;;
33087     "gr-trellis/gnuradio-trellis.pc") CONFIG_FILES="$CONFIG_FILES gr-trellis/gnuradio-trellis.pc" ;;
33088     "gr-trellis/doc/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/doc/Makefile" ;;
33089     "gr-trellis/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/Makefile" ;;
33090     "gr-trellis/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/lib/Makefile" ;;
33091     "gr-trellis/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/python/Makefile" ;;
33092     "gr-trellis/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/python/run_tests" ;;
33093     "gr-trellis/src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/examples/Makefile" ;;
33094     "gr-trellis/src/examples/fsm_files/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/examples/fsm_files/Makefile" ;;
33095     "run_tests_gr_trellis") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_gr_trellis" ;;
33096     "gr-video-sdl/Makefile") CONFIG_FILES="$CONFIG_FILES gr-video-sdl/Makefile" ;;
33097     "gr-video-sdl/gnuradio-video-sdl.pc") CONFIG_FILES="$CONFIG_FILES gr-video-sdl/gnuradio-video-sdl.pc" ;;
33098     "gr-video-sdl/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-video-sdl/src/Makefile" ;;
33099     "gr-video-sdl/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-video-sdl/src/run_tests" ;;
33100     "run_tests_sdl") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_sdl" ;;
33101     "gr-wxgui/Makefile") CONFIG_FILES="$CONFIG_FILES gr-wxgui/Makefile" ;;
33102     "gr-wxgui/gr-wxgui.pc") CONFIG_FILES="$CONFIG_FILES gr-wxgui/gr-wxgui.pc" ;;
33103     "gr-wxgui/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-wxgui/src/Makefile" ;;
33104     "gr-wxgui/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-wxgui/src/python/Makefile" ;;
33105     "gr-wxgui/src/python/plotter/Makefile") CONFIG_FILES="$CONFIG_FILES gr-wxgui/src/python/plotter/Makefile" ;;
33106     "gr-qtgui/Makefile") CONFIG_FILES="$CONFIG_FILES gr-qtgui/Makefile" ;;
33107     "gr-qtgui/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-qtgui/src/Makefile" ;;
33108     "gr-qtgui/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-qtgui/src/lib/Makefile" ;;
33109     "gr-qtgui/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-qtgui/src/python/Makefile" ;;
33110     "gr-sounder/Makefile") CONFIG_FILES="$CONFIG_FILES gr-sounder/Makefile" ;;
33111     "gr-sounder/doc/Makefile") CONFIG_FILES="$CONFIG_FILES gr-sounder/doc/Makefile" ;;
33112     "gr-sounder/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-sounder/src/Makefile" ;;
33113     "gr-sounder/src/fpga/Makefile") CONFIG_FILES="$CONFIG_FILES gr-sounder/src/fpga/Makefile" ;;
33114     "gr-sounder/src/fpga/top/Makefile") CONFIG_FILES="$CONFIG_FILES gr-sounder/src/fpga/top/Makefile" ;;
33115     "gr-sounder/src/fpga/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-sounder/src/fpga/lib/Makefile" ;;
33116     "gr-sounder/src/fpga/tb/Makefile") CONFIG_FILES="$CONFIG_FILES gr-sounder/src/fpga/tb/Makefile" ;;
33117     "gr-sounder/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-sounder/src/lib/Makefile" ;;
33118     "gr-sounder/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-sounder/src/python/Makefile" ;;
33119     "gr-sounder/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-sounder/src/python/run_tests" ;;
33120     "run_tests_sounder") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_sounder" ;;
33121     "gr-utils/Makefile") CONFIG_FILES="$CONFIG_FILES gr-utils/Makefile" ;;
33122     "gr-utils/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-utils/src/Makefile" ;;
33123     "gr-utils/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-utils/src/lib/Makefile" ;;
33124     "gr-utils/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-utils/src/python/Makefile" ;;
33125     "gnuradio-examples/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/Makefile" ;;
33126     "gnuradio-examples/c++/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/c++/Makefile" ;;
33127     "gnuradio-examples/python/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/Makefile" ;;
33128     "gnuradio-examples/grc/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/grc/Makefile" ;;
33129     "gnuradio-examples/python/apps/hf_explorer/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/apps/hf_explorer/Makefile" ;;
33130     "gnuradio-examples/python/apps/hf_radio/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/apps/hf_radio/Makefile" ;;
33131     "gnuradio-examples/python/apps/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/apps/Makefile" ;;
33132     "gnuradio-examples/python/audio/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/audio/Makefile" ;;
33133     "gnuradio-examples/python/digital/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/digital/Makefile" ;;
33134     "gnuradio-examples/python/digital_voice/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/digital_voice/Makefile" ;;
33135     "gnuradio-examples/python/digital-bert/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/digital-bert/Makefile" ;;
33136     "gnuradio-examples/python/mp-sched/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/mp-sched/Makefile" ;;
33137     "gnuradio-examples/python/multi-antenna/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/multi-antenna/Makefile" ;;
33138     "gnuradio-examples/python/multi_usrp/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/multi_usrp/Makefile" ;;
33139     "gnuradio-examples/python/network/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/network/Makefile" ;;
33140     "gnuradio-examples/python/ofdm/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/ofdm/Makefile" ;;
33141     "gnuradio-examples/python/pfb/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/pfb/Makefile" ;;
33142     "gnuradio-examples/python/usrp/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/usrp/Makefile" ;;
33143     "gnuradio-examples/python/usrp2/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/usrp2/Makefile" ;;
33144     "grc/Makefile") CONFIG_FILES="$CONFIG_FILES grc/Makefile" ;;
33145     "grc/base/Makefile") CONFIG_FILES="$CONFIG_FILES grc/base/Makefile" ;;
33146     "grc/blocks/Makefile") CONFIG_FILES="$CONFIG_FILES grc/blocks/Makefile" ;;
33147     "grc/freedesktop/Makefile") CONFIG_FILES="$CONFIG_FILES grc/freedesktop/Makefile" ;;
33148     "grc/grc_gnuradio/Makefile") CONFIG_FILES="$CONFIG_FILES grc/grc_gnuradio/Makefile" ;;
33149     "grc/gui/Makefile") CONFIG_FILES="$CONFIG_FILES grc/gui/Makefile" ;;
33150     "grc/python/Makefile") CONFIG_FILES="$CONFIG_FILES grc/python/Makefile" ;;
33151     "grc/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES grc/scripts/Makefile" ;;
33152     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
33153     "docs/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES docs/doxygen/Doxyfile" ;;
33154     "docs/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES docs/doxygen/Makefile" ;;
33155     "docs/doxygen/other/Makefile") CONFIG_FILES="$CONFIG_FILES docs/doxygen/other/Makefile" ;;
33156     "docs/doxygen/xml-swig/Makefile") CONFIG_FILES="$CONFIG_FILES docs/doxygen/xml-swig/Makefile" ;;
33157     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33158     "run_tests.sh") CONFIG_FILES="$CONFIG_FILES run_tests.sh" ;;
33159     "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
33160     "run_tests_build") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_build" ;;
33161
33162   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
33163   esac
33164 done
33165
33166
33167 # If the user did not use the arguments to specify the items to instantiate,
33168 # then the envvar interface is used.  Set only those that are not.
33169 # We use the long form for the default assignment because of an extremely
33170 # bizarre bug on SunOS 4.1.3.
33171 if $ac_need_defaults; then
33172   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33173   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33174   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33175 fi
33176
33177 # Have a temporary directory for convenience.  Make it in the build tree
33178 # simply because there is no reason against having it here, and in addition,
33179 # creating and moving files from /tmp can sometimes cause problems.
33180 # Hook for its removal unless debugging.
33181 # Note that there is a small window in which the directory will not be cleaned:
33182 # after its creation but before its name has been assigned to `$tmp'.
33183 $debug ||
33184 {
33185   tmp=
33186   trap 'exit_status=$?
33187   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33188 ' 0
33189   trap 'as_fn_exit 1' 1 2 13 15
33190 }
33191 # Create a (secure) tmp directory for tmp files.
33192
33193 {
33194   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33195   test -n "$tmp" && test -d "$tmp"
33196 }  ||
33197 {
33198   tmp=./conf$$-$RANDOM
33199   (umask 077 && mkdir "$tmp")
33200 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33201
33202 # Set up the scripts for CONFIG_FILES section.
33203 # No need to generate them if there are no CONFIG_FILES.
33204 # This happens for instance with `./config.status config.h'.
33205 if test -n "$CONFIG_FILES"; then
33206
33207
33208 ac_cr=`echo X | tr X '\015'`
33209 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33210 # But we know of no other shell where ac_cr would be empty at this
33211 # point, so we can use a bashism as a fallback.
33212 if test "x$ac_cr" = x; then
33213   eval ac_cr=\$\'\\r\'
33214 fi
33215 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33216 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33217   ac_cs_awk_cr='\\r'
33218 else
33219   ac_cs_awk_cr=$ac_cr
33220 fi
33221
33222 echo 'BEGIN {' >"$tmp/subs1.awk" &&
33223 _ACEOF
33224
33225
33226 {
33227   echo "cat >conf$$subs.awk <<_ACEOF" &&
33228   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33229   echo "_ACEOF"
33230 } >conf$$subs.sh ||
33231   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33232 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33233 ac_delim='%!_!# '
33234 for ac_last_try in false false false false false :; do
33235   . ./conf$$subs.sh ||
33236     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33237
33238   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33239   if test $ac_delim_n = $ac_delim_num; then
33240     break
33241   elif $ac_last_try; then
33242     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33243   else
33244     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33245   fi
33246 done
33247 rm -f conf$$subs.sh
33248
33249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33250 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
33251 _ACEOF
33252 sed -n '
33253 h
33254 s/^/S["/; s/!.*/"]=/
33255 p
33256 g
33257 s/^[^!]*!//
33258 :repl
33259 t repl
33260 s/'"$ac_delim"'$//
33261 t delim
33262 :nl
33263 h
33264 s/\(.\{148\}\)..*/\1/
33265 t more1
33266 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33267 p
33268 n
33269 b repl
33270 :more1
33271 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33272 p
33273 g
33274 s/.\{148\}//
33275 t nl
33276 :delim
33277 h
33278 s/\(.\{148\}\)..*/\1/
33279 t more2
33280 s/["\\]/\\&/g; s/^/"/; s/$/"/
33281 p
33282 b
33283 :more2
33284 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33285 p
33286 g
33287 s/.\{148\}//
33288 t delim
33289 ' <conf$$subs.awk | sed '
33290 /^[^""]/{
33291   N
33292   s/\n//
33293 }
33294 ' >>$CONFIG_STATUS || ac_write_fail=1
33295 rm -f conf$$subs.awk
33296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33297 _ACAWK
33298 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
33299   for (key in S) S_is_set[key] = 1
33300   FS = "\a"
33301
33302 }
33303 {
33304   line = $ 0
33305   nfields = split(line, field, "@")
33306   substed = 0
33307   len = length(field[1])
33308   for (i = 2; i < nfields; i++) {
33309     key = field[i]
33310     keylen = length(key)
33311     if (S_is_set[key]) {
33312       value = S[key]
33313       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33314       len += length(value) + length(field[++i])
33315       substed = 1
33316     } else
33317       len += 1 + keylen
33318   }
33319
33320   print line
33321 }
33322
33323 _ACAWK
33324 _ACEOF
33325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33326 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33327   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33328 else
33329   cat
33330 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
33331   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33332 _ACEOF
33333
33334 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33335 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33336 # trailing colons and then remove the whole line if VPATH becomes empty
33337 # (actually we leave an empty line to preserve line numbers).
33338 if test "x$srcdir" = x.; then
33339   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
33340 h
33341 s///
33342 s/^/:/
33343 s/[      ]*$/:/
33344 s/:\$(srcdir):/:/g
33345 s/:\${srcdir}:/:/g
33346 s/:@srcdir@:/:/g
33347 s/^:*//
33348 s/:*$//
33349 x
33350 s/\(=[   ]*\).*/\1/
33351 G
33352 s/\n//
33353 s/^[^=]*=[       ]*$//
33354 }'
33355 fi
33356
33357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33358 fi # test -n "$CONFIG_FILES"
33359
33360 # Set up the scripts for CONFIG_HEADERS section.
33361 # No need to generate them if there are no CONFIG_HEADERS.
33362 # This happens for instance with `./config.status Makefile'.
33363 if test -n "$CONFIG_HEADERS"; then
33364 cat >"$tmp/defines.awk" <<\_ACAWK ||
33365 BEGIN {
33366 _ACEOF
33367
33368 # Transform confdefs.h into an awk script `defines.awk', embedded as
33369 # here-document in config.status, that substitutes the proper values into
33370 # config.h.in to produce config.h.
33371
33372 # Create a delimiter string that does not exist in confdefs.h, to ease
33373 # handling of long lines.
33374 ac_delim='%!_!# '
33375 for ac_last_try in false false :; do
33376   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
33377   if test -z "$ac_t"; then
33378     break
33379   elif $ac_last_try; then
33380     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33381   else
33382     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33383   fi
33384 done
33385
33386 # For the awk script, D is an array of macro values keyed by name,
33387 # likewise P contains macro parameters if any.  Preserve backslash
33388 # newline sequences.
33389
33390 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33391 sed -n '
33392 s/.\{148\}/&'"$ac_delim"'/g
33393 t rset
33394 :rset
33395 s/^[     ]*#[    ]*define[       ][      ]*/ /
33396 t def
33397 d
33398 :def
33399 s/\\$//
33400 t bsnl
33401 s/["\\]/\\&/g
33402 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
33403 D["\1"]=" \3"/p
33404 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
33405 d
33406 :bsnl
33407 s/["\\]/\\&/g
33408 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
33409 D["\1"]=" \3\\\\\\n"\\/p
33410 t cont
33411 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33412 t cont
33413 d
33414 :cont
33415 n
33416 s/.\{148\}/&'"$ac_delim"'/g
33417 t clear
33418 :clear
33419 s/\\$//
33420 t bsnlc
33421 s/["\\]/\\&/g; s/^/"/; s/$/"/p
33422 d
33423 :bsnlc
33424 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33425 b cont
33426 ' <confdefs.h | sed '
33427 s/'"$ac_delim"'/"\\\
33428 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33429
33430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33431   for (key in D) D_is_set[key] = 1
33432   FS = "\a"
33433 }
33434 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33435   line = \$ 0
33436   split(line, arg, " ")
33437   if (arg[1] == "#") {
33438     defundef = arg[2]
33439     mac1 = arg[3]
33440   } else {
33441     defundef = substr(arg[1], 2)
33442     mac1 = arg[2]
33443   }
33444   split(mac1, mac2, "(") #)
33445   macro = mac2[1]
33446   prefix = substr(line, 1, index(line, defundef) - 1)
33447   if (D_is_set[macro]) {
33448     # Preserve the white space surrounding the "#".
33449     print prefix "define", macro P[macro] D[macro]
33450     next
33451   } else {
33452     # Replace #undef with comments.  This is necessary, for example,
33453     # in the case of _POSIX_SOURCE, which is predefined and required
33454     # on some systems where configure will not decide to define it.
33455     if (defundef == "undef") {
33456       print "/*", prefix defundef, macro, "*/"
33457       next
33458     }
33459   }
33460 }
33461 { print }
33462 _ACAWK
33463 _ACEOF
33464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33465   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33466 fi # test -n "$CONFIG_HEADERS"
33467
33468
33469 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
33470 shift
33471 for ac_tag
33472 do
33473   case $ac_tag in
33474   :[FHLC]) ac_mode=$ac_tag; continue;;
33475   esac
33476   case $ac_mode$ac_tag in
33477   :[FHL]*:*);;
33478   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
33479   :[FH]-) ac_tag=-:-;;
33480   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33481   esac
33482   ac_save_IFS=$IFS
33483   IFS=:
33484   set x $ac_tag
33485   IFS=$ac_save_IFS
33486   shift
33487   ac_file=$1
33488   shift
33489
33490   case $ac_mode in
33491   :L) ac_source=$1;;
33492   :[FH])
33493     ac_file_inputs=
33494     for ac_f
33495     do
33496       case $ac_f in
33497       -) ac_f="$tmp/stdin";;
33498       *) # Look for the file first in the build tree, then in the source tree
33499          # (if the path is not absolute).  The absolute path cannot be DOS-style,
33500          # because $ac_f cannot contain `:'.
33501          test -f "$ac_f" ||
33502            case $ac_f in
33503            [\\/$]*) false;;
33504            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33505            esac ||
33506            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
33507       esac
33508       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33509       as_fn_append ac_file_inputs " '$ac_f'"
33510     done
33511
33512     # Let's still pretend it is `configure' which instantiates (i.e., don't
33513     # use $as_me), people would be surprised to read:
33514     #    /* config.h.  Generated by config.status.  */
33515     configure_input='Generated from '`
33516           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33517         `' by configure.'
33518     if test x"$ac_file" != x-; then
33519       configure_input="$ac_file.  $configure_input"
33520       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33521 $as_echo "$as_me: creating $ac_file" >&6;}
33522     fi
33523     # Neutralize special characters interpreted by sed in replacement strings.
33524     case $configure_input in #(
33525     *\&* | *\|* | *\\* )
33526        ac_sed_conf_input=`$as_echo "$configure_input" |
33527        sed 's/[\\\\&|]/\\\\&/g'`;; #(
33528     *) ac_sed_conf_input=$configure_input;;
33529     esac
33530
33531     case $ac_tag in
33532     *:-:* | *:-) cat >"$tmp/stdin" \
33533       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
33534     esac
33535     ;;
33536   esac
33537
33538   ac_dir=`$as_dirname -- "$ac_file" ||
33539 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33540          X"$ac_file" : 'X\(//\)[^/]' \| \
33541          X"$ac_file" : 'X\(//\)$' \| \
33542          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33543 $as_echo X"$ac_file" |
33544     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33545             s//\1/
33546             q
33547           }
33548           /^X\(\/\/\)[^/].*/{
33549             s//\1/
33550             q
33551           }
33552           /^X\(\/\/\)$/{
33553             s//\1/
33554             q
33555           }
33556           /^X\(\/\).*/{
33557             s//\1/
33558             q
33559           }
33560           s/.*/./; q'`
33561   as_dir="$ac_dir"; as_fn_mkdir_p
33562   ac_builddir=.
33563
33564 case "$ac_dir" in
33565 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33566 *)
33567   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33568   # A ".." for each directory in $ac_dir_suffix.
33569   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33570   case $ac_top_builddir_sub in
33571   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33572   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33573   esac ;;
33574 esac
33575 ac_abs_top_builddir=$ac_pwd
33576 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33577 # for backward compatibility:
33578 ac_top_builddir=$ac_top_build_prefix
33579
33580 case $srcdir in
33581   .)  # We are building in place.
33582     ac_srcdir=.
33583     ac_top_srcdir=$ac_top_builddir_sub
33584     ac_abs_top_srcdir=$ac_pwd ;;
33585   [\\/]* | ?:[\\/]* )  # Absolute name.
33586     ac_srcdir=$srcdir$ac_dir_suffix;
33587     ac_top_srcdir=$srcdir
33588     ac_abs_top_srcdir=$srcdir ;;
33589   *) # Relative name.
33590     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33591     ac_top_srcdir=$ac_top_build_prefix$srcdir
33592     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33593 esac
33594 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33595
33596
33597   case $ac_mode in
33598   :F)
33599   #
33600   # CONFIG_FILE
33601   #
33602
33603   case $INSTALL in
33604   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33605   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33606   esac
33607   ac_MKDIR_P=$MKDIR_P
33608   case $MKDIR_P in
33609   [\\/$]* | ?:[\\/]* ) ;;
33610   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
33611   esac
33612 _ACEOF
33613
33614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33615 # If the template does not know about datarootdir, expand it.
33616 # FIXME: This hack should be removed a few years after 2.60.
33617 ac_datarootdir_hack=; ac_datarootdir_seen=
33618 ac_sed_dataroot='
33619 /datarootdir/ {
33620   p
33621   q
33622 }
33623 /@datadir@/p
33624 /@docdir@/p
33625 /@infodir@/p
33626 /@localedir@/p
33627 /@mandir@/p'
33628 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33629 *datarootdir*) ac_datarootdir_seen=yes;;
33630 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33631   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33632 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33633 _ACEOF
33634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33635   ac_datarootdir_hack='
33636   s&@datadir@&$datadir&g
33637   s&@docdir@&$docdir&g
33638   s&@infodir@&$infodir&g
33639   s&@localedir@&$localedir&g
33640   s&@mandir@&$mandir&g
33641   s&\\\${datarootdir}&$datarootdir&g' ;;
33642 esac
33643 _ACEOF
33644
33645 # Neutralize VPATH when `$srcdir' = `.'.
33646 # Shell code in configure.ac might set extrasub.
33647 # FIXME: do we really want to maintain this feature?
33648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33649 ac_sed_extra="$ac_vpsub
33650 $extrasub
33651 _ACEOF
33652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33653 :t
33654 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33655 s|@configure_input@|$ac_sed_conf_input|;t t
33656 s&@top_builddir@&$ac_top_builddir_sub&;t t
33657 s&@top_build_prefix@&$ac_top_build_prefix&;t t
33658 s&@srcdir@&$ac_srcdir&;t t
33659 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33660 s&@top_srcdir@&$ac_top_srcdir&;t t
33661 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33662 s&@builddir@&$ac_builddir&;t t
33663 s&@abs_builddir@&$ac_abs_builddir&;t t
33664 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33665 s&@INSTALL@&$ac_INSTALL&;t t
33666 s&@MKDIR_P@&$ac_MKDIR_P&;t t
33667 $ac_datarootdir_hack
33668 "
33669 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
33670   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33671
33672 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33673   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33674   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33675   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33676 which seems to be undefined.  Please make sure it is defined" >&5
33677 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33678 which seems to be undefined.  Please make sure it is defined" >&2;}
33679
33680   rm -f "$tmp/stdin"
33681   case $ac_file in
33682   -) cat "$tmp/out" && rm -f "$tmp/out";;
33683   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
33684   esac \
33685   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33686  ;;
33687   :H)
33688   #
33689   # CONFIG_HEADER
33690   #
33691   if test x"$ac_file" != x-; then
33692     {
33693       $as_echo "/* $configure_input  */" \
33694       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
33695     } >"$tmp/config.h" \
33696       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33697     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
33698       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33699 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33700     else
33701       rm -f "$ac_file"
33702       mv "$tmp/config.h" "$ac_file" \
33703         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33704     fi
33705   else
33706     $as_echo "/* $configure_input  */" \
33707       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
33708       || as_fn_error $? "could not create -" "$LINENO" 5
33709   fi
33710 # Compute "$ac_file"'s index in $config_headers.
33711 _am_arg="$ac_file"
33712 _am_stamp_count=1
33713 for _am_header in $config_headers :; do
33714   case $_am_header in
33715     $_am_arg | $_am_arg:* )
33716       break ;;
33717     * )
33718       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
33719   esac
33720 done
33721 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
33722 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33723          X"$_am_arg" : 'X\(//\)[^/]' \| \
33724          X"$_am_arg" : 'X\(//\)$' \| \
33725          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
33726 $as_echo X"$_am_arg" |
33727     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33728             s//\1/
33729             q
33730           }
33731           /^X\(\/\/\)[^/].*/{
33732             s//\1/
33733             q
33734           }
33735           /^X\(\/\/\)$/{
33736             s//\1/
33737             q
33738           }
33739           /^X\(\/\).*/{
33740             s//\1/
33741             q
33742           }
33743           s/.*/./; q'`/stamp-h$_am_stamp_count
33744  ;;
33745
33746   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33747 $as_echo "$as_me: executing $ac_file commands" >&6;}
33748  ;;
33749   esac
33750
33751
33752   case $ac_file$ac_mode in
33753     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
33754   # Autoconf 2.62 quotes --file arguments for eval, but not when files
33755   # are listed without --file.  Let's play safe and only enable the eval
33756   # if we detect the quoting.
33757   case $CONFIG_FILES in
33758   *\'*) eval set x "$CONFIG_FILES" ;;
33759   *)   set x $CONFIG_FILES ;;
33760   esac
33761   shift
33762   for mf
33763   do
33764     # Strip MF so we end up with the name of the file.
33765     mf=`echo "$mf" | sed -e 's/:.*$//'`
33766     # Check whether this is an Automake generated Makefile or not.
33767     # We used to match only the files named `Makefile.in', but
33768     # some people rename them; so instead we look at the file content.
33769     # Grep'ing the first line is not enough: some people post-process
33770     # each Makefile.in and add a new line on top of each file to say so.
33771     # Grep'ing the whole file is not good either: AIX grep has a line
33772     # limit of 2048, but all sed's we know have understand at least 4000.
33773     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
33774       dirpart=`$as_dirname -- "$mf" ||
33775 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33776          X"$mf" : 'X\(//\)[^/]' \| \
33777          X"$mf" : 'X\(//\)$' \| \
33778          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
33779 $as_echo X"$mf" |
33780     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33781             s//\1/
33782             q
33783           }
33784           /^X\(\/\/\)[^/].*/{
33785             s//\1/
33786             q
33787           }
33788           /^X\(\/\/\)$/{
33789             s//\1/
33790             q
33791           }
33792           /^X\(\/\).*/{
33793             s//\1/
33794             q
33795           }
33796           s/.*/./; q'`
33797     else
33798       continue
33799     fi
33800     # Extract the definition of DEPDIR, am__include, and am__quote
33801     # from the Makefile without running `make'.
33802     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
33803     test -z "$DEPDIR" && continue
33804     am__include=`sed -n 's/^am__include = //p' < "$mf"`
33805     test -z "am__include" && continue
33806     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
33807     # When using ansi2knr, U may be empty or an underscore; expand it
33808     U=`sed -n 's/^U = //p' < "$mf"`
33809     # Find all dependency output files, they are included files with
33810     # $(DEPDIR) in their names.  We invoke sed twice because it is the
33811     # simplest approach to changing $(DEPDIR) to its actual value in the
33812     # expansion.
33813     for file in `sed -n "
33814       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
33815          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
33816       # Make sure the directory exists.
33817       test -f "$dirpart/$file" && continue
33818       fdir=`$as_dirname -- "$file" ||
33819 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33820          X"$file" : 'X\(//\)[^/]' \| \
33821          X"$file" : 'X\(//\)$' \| \
33822          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
33823 $as_echo X"$file" |
33824     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33825             s//\1/
33826             q
33827           }
33828           /^X\(\/\/\)[^/].*/{
33829             s//\1/
33830             q
33831           }
33832           /^X\(\/\/\)$/{
33833             s//\1/
33834             q
33835           }
33836           /^X\(\/\).*/{
33837             s//\1/
33838             q
33839           }
33840           s/.*/./; q'`
33841       as_dir=$dirpart/$fdir; as_fn_mkdir_p
33842       # echo "creating $dirpart/$file"
33843       echo '# dummy' > "$dirpart/$file"
33844     done
33845   done
33846 }
33847  ;;
33848     "libtool":C)
33849
33850     # See if we are running on zsh, and set the options which allow our
33851     # commands through without removal of \ escapes.
33852     if test -n "${ZSH_VERSION+set}" ; then
33853       setopt NO_GLOB_SUBST
33854     fi
33855
33856     cfgfile="${ofile}T"
33857     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
33858     $RM "$cfgfile"
33859
33860     cat <<_LT_EOF >> "$cfgfile"
33861 #! $SHELL
33862
33863 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
33864 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
33865 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
33866 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
33867 #
33868 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
33869 #                 2006, 2007, 2008 Free Software Foundation, Inc.
33870 #   Written by Gordon Matzigkeit, 1996
33871 #
33872 #   This file is part of GNU Libtool.
33873 #
33874 # GNU Libtool is free software; you can redistribute it and/or
33875 # modify it under the terms of the GNU General Public License as
33876 # published by the Free Software Foundation; either version 2 of
33877 # the License, or (at your option) any later version.
33878 #
33879 # As a special exception to the GNU General Public License,
33880 # if you distribute this file as part of a program or library that
33881 # is built using GNU Libtool, you may include this file under the
33882 # same distribution terms that you use for the rest of that program.
33883 #
33884 # GNU Libtool is distributed in the hope that it will be useful,
33885 # but WITHOUT ANY WARRANTY; without even the implied warranty of
33886 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
33887 # GNU General Public License for more details.
33888 #
33889 # You should have received a copy of the GNU General Public License
33890 # along with GNU Libtool; see the file COPYING.  If not, a copy
33891 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
33892 # obtained by writing to the Free Software Foundation, Inc.,
33893 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33894
33895
33896 # The names of the tagged configurations supported by this script.
33897 available_tags="CXX "
33898
33899 # ### BEGIN LIBTOOL CONFIG
33900
33901 # Assembler program.
33902 AS=$AS
33903
33904 # DLL creation program.
33905 DLLTOOL=$DLLTOOL
33906
33907 # Object dumper program.
33908 OBJDUMP=$OBJDUMP
33909
33910 # Whether or not to build shared libraries.
33911 build_libtool_libs=$enable_shared
33912
33913 # Whether or not to build static libraries.
33914 build_old_libs=$enable_static
33915
33916 # Which release of libtool.m4 was used?
33917 macro_version=$macro_version
33918 macro_revision=$macro_revision
33919
33920 # What type of objects to build.
33921 pic_mode=$pic_mode
33922
33923 # Whether or not to optimize for fast installation.
33924 fast_install=$enable_fast_install
33925
33926 # The host system.
33927 host_alias=$host_alias
33928 host=$host
33929 host_os=$host_os
33930
33931 # The build system.
33932 build_alias=$build_alias
33933 build=$build
33934 build_os=$build_os
33935
33936 # A sed program that does not truncate output.
33937 SED=$lt_SED
33938
33939 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
33940 Xsed="\$SED -e 1s/^X//"
33941
33942 # A grep program that handles long lines.
33943 GREP=$lt_GREP
33944
33945 # An ERE matcher.
33946 EGREP=$lt_EGREP
33947
33948 # A literal string matcher.
33949 FGREP=$lt_FGREP
33950
33951 # A BSD- or MS-compatible name lister.
33952 NM=$lt_NM
33953
33954 # Whether we need soft or hard links.
33955 LN_S=$lt_LN_S
33956
33957 # What is the maximum length of a command?
33958 max_cmd_len=$max_cmd_len
33959
33960 # Object file suffix (normally "o").
33961 objext=$ac_objext
33962
33963 # Executable file suffix (normally "").
33964 exeext=$exeext
33965
33966 # whether the shell understands "unset".
33967 lt_unset=$lt_unset
33968
33969 # turn spaces into newlines.
33970 SP2NL=$lt_lt_SP2NL
33971
33972 # turn newlines into spaces.
33973 NL2SP=$lt_lt_NL2SP
33974
33975 # How to create reloadable object files.
33976 reload_flag=$lt_reload_flag
33977 reload_cmds=$lt_reload_cmds
33978
33979 # Method to check whether dependent libraries are shared objects.
33980 deplibs_check_method=$lt_deplibs_check_method
33981
33982 # Command to use when deplibs_check_method == "file_magic".
33983 file_magic_cmd=$lt_file_magic_cmd
33984
33985 # The archiver.
33986 AR=$lt_AR
33987 AR_FLAGS=$lt_AR_FLAGS
33988
33989 # A symbol stripping program.
33990 STRIP=$lt_STRIP
33991
33992 # Commands used to install an old-style archive.
33993 RANLIB=$lt_RANLIB
33994 old_postinstall_cmds=$lt_old_postinstall_cmds
33995 old_postuninstall_cmds=$lt_old_postuninstall_cmds
33996
33997 # A C compiler.
33998 LTCC=$lt_CC
33999
34000 # LTCC compiler flags.
34001 LTCFLAGS=$lt_CFLAGS
34002
34003 # Take the output of nm and produce a listing of raw symbols and C names.
34004 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34005
34006 # Transform the output of nm in a proper C declaration.
34007 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34008
34009 # Transform the output of nm in a C name address pair.
34010 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34011
34012 # Transform the output of nm in a C name address pair when lib prefix is needed.
34013 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34014
34015 # The name of the directory that contains temporary libtool files.
34016 objdir=$objdir
34017
34018 # Shell to use when invoking shell scripts.
34019 SHELL=$lt_SHELL
34020
34021 # An echo program that does not interpret backslashes.
34022 ECHO=$lt_ECHO
34023
34024 # Used to examine libraries when file_magic_cmd begins with "file".
34025 MAGIC_CMD=$MAGIC_CMD
34026
34027 # Must we lock files when doing compilation?
34028 need_locks=$lt_need_locks
34029
34030 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34031 DSYMUTIL=$lt_DSYMUTIL
34032
34033 # Tool to change global to local symbols on Mac OS X.
34034 NMEDIT=$lt_NMEDIT
34035
34036 # Tool to manipulate fat objects and archives on Mac OS X.
34037 LIPO=$lt_LIPO
34038
34039 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
34040 OTOOL=$lt_OTOOL
34041
34042 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34043 OTOOL64=$lt_OTOOL64
34044
34045 # Old archive suffix (normally "a").
34046 libext=$libext
34047
34048 # Shared library suffix (normally ".so").
34049 shrext_cmds=$lt_shrext_cmds
34050
34051 # The commands to extract the exported symbol list from a shared archive.
34052 extract_expsyms_cmds=$lt_extract_expsyms_cmds
34053
34054 # Variables whose values should be saved in libtool wrapper scripts and
34055 # restored at link time.
34056 variables_saved_for_relink=$lt_variables_saved_for_relink
34057
34058 # Do we need the "lib" prefix for modules?
34059 need_lib_prefix=$need_lib_prefix
34060
34061 # Do we need a version for libraries?
34062 need_version=$need_version
34063
34064 # Library versioning type.
34065 version_type=$version_type
34066
34067 # Shared library runtime path variable.
34068 runpath_var=$runpath_var
34069
34070 # Shared library path variable.
34071 shlibpath_var=$shlibpath_var
34072
34073 # Is shlibpath searched before the hard-coded library search path?
34074 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34075
34076 # Format of library name prefix.
34077 libname_spec=$lt_libname_spec
34078
34079 # List of archive names.  First name is the real one, the rest are links.
34080 # The last name is the one that the linker finds with -lNAME
34081 library_names_spec=$lt_library_names_spec
34082
34083 # The coded name of the library, if different from the real name.
34084 soname_spec=$lt_soname_spec
34085
34086 # Command to use after installation of a shared archive.
34087 postinstall_cmds=$lt_postinstall_cmds
34088
34089 # Command to use after uninstallation of a shared archive.
34090 postuninstall_cmds=$lt_postuninstall_cmds
34091
34092 # Commands used to finish a libtool library installation in a directory.
34093 finish_cmds=$lt_finish_cmds
34094
34095 # As "finish_cmds", except a single script fragment to be evaled but
34096 # not shown.
34097 finish_eval=$lt_finish_eval
34098
34099 # Whether we should hardcode library paths into libraries.
34100 hardcode_into_libs=$hardcode_into_libs
34101
34102 # Compile-time system search path for libraries.
34103 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34104
34105 # Run-time system search path for libraries.
34106 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
34107
34108 # Whether dlopen is supported.
34109 dlopen_support=$enable_dlopen
34110
34111 # Whether dlopen of programs is supported.
34112 dlopen_self=$enable_dlopen_self
34113
34114 # Whether dlopen of statically linked programs is supported.
34115 dlopen_self_static=$enable_dlopen_self_static
34116
34117 # Commands to strip libraries.
34118 old_striplib=$lt_old_striplib
34119 striplib=$lt_striplib
34120
34121
34122 # The linker used to build libraries.
34123 LD=$lt_LD
34124
34125 # Commands used to build an old-style archive.
34126 old_archive_cmds=$lt_old_archive_cmds
34127
34128 # A language specific compiler.
34129 CC=$lt_compiler
34130
34131 # Is the compiler the GNU compiler?
34132 with_gcc=$GCC
34133
34134 # Compiler flag to turn off builtin functions.
34135 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34136
34137 # How to pass a linker flag through the compiler.
34138 wl=$lt_lt_prog_compiler_wl
34139
34140 # Additional compiler flags for building library objects.
34141 pic_flag=$lt_lt_prog_compiler_pic
34142
34143 # Compiler flag to prevent dynamic linking.
34144 link_static_flag=$lt_lt_prog_compiler_static
34145
34146 # Does compiler simultaneously support -c and -o options?
34147 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
34148
34149 # Whether or not to add -lc for building shared libraries.
34150 build_libtool_need_lc=$archive_cmds_need_lc
34151
34152 # Whether or not to disallow shared libs when runtime libs are static.
34153 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
34154
34155 # Compiler flag to allow reflexive dlopens.
34156 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
34157
34158 # Compiler flag to generate shared objects directly from archives.
34159 whole_archive_flag_spec=$lt_whole_archive_flag_spec
34160
34161 # Whether the compiler copes with passing no objects directly.
34162 compiler_needs_object=$lt_compiler_needs_object
34163
34164 # Create an old-style archive from a shared archive.
34165 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
34166
34167 # Create a temporary old-style archive to link instead of a shared archive.
34168 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
34169
34170 # Commands used to build a shared archive.
34171 archive_cmds=$lt_archive_cmds
34172 archive_expsym_cmds=$lt_archive_expsym_cmds
34173
34174 # Commands used to build a loadable module if different from building
34175 # a shared archive.
34176 module_cmds=$lt_module_cmds
34177 module_expsym_cmds=$lt_module_expsym_cmds
34178
34179 # Whether we are building with GNU ld or not.
34180 with_gnu_ld=$lt_with_gnu_ld
34181
34182 # Flag that allows shared libraries with undefined symbols to be built.
34183 allow_undefined_flag=$lt_allow_undefined_flag
34184
34185 # Flag that enforces no undefined symbols.
34186 no_undefined_flag=$lt_no_undefined_flag
34187
34188 # Flag to hardcode \$libdir into a binary during linking.
34189 # This must work even if \$libdir does not exist
34190 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
34191
34192 # If ld is used when linking, flag to hardcode \$libdir into a binary
34193 # during linking.  This must work even if \$libdir does not exist.
34194 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
34195
34196 # Whether we need a single "-rpath" flag with a separated argument.
34197 hardcode_libdir_separator=$lt_hardcode_libdir_separator
34198
34199 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34200 # DIR into the resulting binary.
34201 hardcode_direct=$hardcode_direct
34202
34203 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34204 # DIR into the resulting binary and the resulting library dependency is
34205 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
34206 # library is relocated.
34207 hardcode_direct_absolute=$hardcode_direct_absolute
34208
34209 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34210 # into the resulting binary.
34211 hardcode_minus_L=$hardcode_minus_L
34212
34213 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34214 # into the resulting binary.
34215 hardcode_shlibpath_var=$hardcode_shlibpath_var
34216
34217 # Set to "yes" if building a shared library automatically hardcodes DIR
34218 # into the library and all subsequent libraries and executables linked
34219 # against it.
34220 hardcode_automatic=$hardcode_automatic
34221
34222 # Set to yes if linker adds runtime paths of dependent libraries
34223 # to runtime path list.
34224 inherit_rpath=$inherit_rpath
34225
34226 # Whether libtool must link a program against all its dependency libraries.
34227 link_all_deplibs=$link_all_deplibs
34228
34229 # Fix the shell variable \$srcfile for the compiler.
34230 fix_srcfile_path=$lt_fix_srcfile_path
34231
34232 # Set to "yes" if exported symbols are required.
34233 always_export_symbols=$always_export_symbols
34234
34235 # The commands to list exported symbols.
34236 export_symbols_cmds=$lt_export_symbols_cmds
34237
34238 # Symbols that should not be listed in the preloaded symbols.
34239 exclude_expsyms=$lt_exclude_expsyms
34240
34241 # Symbols that must always be exported.
34242 include_expsyms=$lt_include_expsyms
34243
34244 # Commands necessary for linking programs (against libraries) with templates.
34245 prelink_cmds=$lt_prelink_cmds
34246
34247 # Specify filename containing input files.
34248 file_list_spec=$lt_file_list_spec
34249
34250 # How to hardcode a shared library path into an executable.
34251 hardcode_action=$hardcode_action
34252
34253 # The directories searched by this compiler when creating a shared library.
34254 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
34255
34256 # Dependencies to place before and after the objects being linked to
34257 # create a shared library.
34258 predep_objects=$lt_predep_objects
34259 postdep_objects=$lt_postdep_objects
34260 predeps=$lt_predeps
34261 postdeps=$lt_postdeps
34262
34263 # The library search path used internally by the compiler when linking
34264 # a shared library.
34265 compiler_lib_search_path=$lt_compiler_lib_search_path
34266
34267 # ### END LIBTOOL CONFIG
34268
34269 _LT_EOF
34270
34271   case $host_os in
34272   aix3*)
34273     cat <<\_LT_EOF >> "$cfgfile"
34274 # AIX sometimes has problems with the GCC collect2 program.  For some
34275 # reason, if we set the COLLECT_NAMES environment variable, the problems
34276 # vanish in a puff of smoke.
34277 if test "X${COLLECT_NAMES+set}" != Xset; then
34278   COLLECT_NAMES=
34279   export COLLECT_NAMES
34280 fi
34281 _LT_EOF
34282     ;;
34283   esac
34284
34285
34286 ltmain="$ac_aux_dir/ltmain.sh"
34287
34288
34289   # We use sed instead of cat because bash on DJGPP gets confused if
34290   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
34291   # text mode, it properly converts lines to CR/LF.  This bash problem
34292   # is reportedly fixed, but why not run on old versions too?
34293   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
34294     || (rm -f "$cfgfile"; exit 1)
34295
34296   case $xsi_shell in
34297   yes)
34298     cat << \_LT_EOF >> "$cfgfile"
34299
34300 # func_dirname file append nondir_replacement
34301 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
34302 # otherwise set result to NONDIR_REPLACEMENT.
34303 func_dirname ()
34304 {
34305   case ${1} in
34306     */*) func_dirname_result="${1%/*}${2}" ;;
34307     *  ) func_dirname_result="${3}" ;;
34308   esac
34309 }
34310
34311 # func_basename file
34312 func_basename ()
34313 {
34314   func_basename_result="${1##*/}"
34315 }
34316
34317 # func_dirname_and_basename file append nondir_replacement
34318 # perform func_basename and func_dirname in a single function
34319 # call:
34320 #   dirname:  Compute the dirname of FILE.  If nonempty,
34321 #             add APPEND to the result, otherwise set result
34322 #             to NONDIR_REPLACEMENT.
34323 #             value returned in "$func_dirname_result"
34324 #   basename: Compute filename of FILE.
34325 #             value retuned in "$func_basename_result"
34326 # Implementation must be kept synchronized with func_dirname
34327 # and func_basename. For efficiency, we do not delegate to
34328 # those functions but instead duplicate the functionality here.
34329 func_dirname_and_basename ()
34330 {
34331   case ${1} in
34332     */*) func_dirname_result="${1%/*}${2}" ;;
34333     *  ) func_dirname_result="${3}" ;;
34334   esac
34335   func_basename_result="${1##*/}"
34336 }
34337
34338 # func_stripname prefix suffix name
34339 # strip PREFIX and SUFFIX off of NAME.
34340 # PREFIX and SUFFIX must not contain globbing or regex special
34341 # characters, hashes, percent signs, but SUFFIX may contain a leading
34342 # dot (in which case that matches only a dot).
34343 func_stripname ()
34344 {
34345   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
34346   # positional parameters, so assign one to ordinary parameter first.
34347   func_stripname_result=${3}
34348   func_stripname_result=${func_stripname_result#"${1}"}
34349   func_stripname_result=${func_stripname_result%"${2}"}
34350 }
34351
34352 # func_opt_split
34353 func_opt_split ()
34354 {
34355   func_opt_split_opt=${1%%=*}
34356   func_opt_split_arg=${1#*=}
34357 }
34358
34359 # func_lo2o object
34360 func_lo2o ()
34361 {
34362   case ${1} in
34363     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
34364     *)    func_lo2o_result=${1} ;;
34365   esac
34366 }
34367
34368 # func_xform libobj-or-source
34369 func_xform ()
34370 {
34371   func_xform_result=${1%.*}.lo
34372 }
34373
34374 # func_arith arithmetic-term...
34375 func_arith ()
34376 {
34377   func_arith_result=$(( $* ))
34378 }
34379
34380 # func_len string
34381 # STRING may not start with a hyphen.
34382 func_len ()
34383 {
34384   func_len_result=${#1}
34385 }
34386
34387 _LT_EOF
34388     ;;
34389   *) # Bourne compatible functions.
34390     cat << \_LT_EOF >> "$cfgfile"
34391
34392 # func_dirname file append nondir_replacement
34393 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
34394 # otherwise set result to NONDIR_REPLACEMENT.
34395 func_dirname ()
34396 {
34397   # Extract subdirectory from the argument.
34398   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
34399   if test "X$func_dirname_result" = "X${1}"; then
34400     func_dirname_result="${3}"
34401   else
34402     func_dirname_result="$func_dirname_result${2}"
34403   fi
34404 }
34405
34406 # func_basename file
34407 func_basename ()
34408 {
34409   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
34410 }
34411
34412
34413 # func_stripname prefix suffix name
34414 # strip PREFIX and SUFFIX off of NAME.
34415 # PREFIX and SUFFIX must not contain globbing or regex special
34416 # characters, hashes, percent signs, but SUFFIX may contain a leading
34417 # dot (in which case that matches only a dot).
34418 # func_strip_suffix prefix name
34419 func_stripname ()
34420 {
34421   case ${2} in
34422     .*) func_stripname_result=`$ECHO "X${3}" \
34423            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
34424     *)  func_stripname_result=`$ECHO "X${3}" \
34425            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
34426   esac
34427 }
34428
34429 # sed scripts:
34430 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
34431 my_sed_long_arg='1s/^-[^=]*=//'
34432
34433 # func_opt_split
34434 func_opt_split ()
34435 {
34436   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
34437   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
34438 }
34439
34440 # func_lo2o object
34441 func_lo2o ()
34442 {
34443   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
34444 }
34445
34446 # func_xform libobj-or-source
34447 func_xform ()
34448 {
34449   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
34450 }
34451
34452 # func_arith arithmetic-term...
34453 func_arith ()
34454 {
34455   func_arith_result=`expr "$@"`
34456 }
34457
34458 # func_len string
34459 # STRING may not start with a hyphen.
34460 func_len ()
34461 {
34462   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
34463 }
34464
34465 _LT_EOF
34466 esac
34467
34468 case $lt_shell_append in
34469   yes)
34470     cat << \_LT_EOF >> "$cfgfile"
34471
34472 # func_append var value
34473 # Append VALUE to the end of shell variable VAR.
34474 func_append ()
34475 {
34476   eval "$1+=\$2"
34477 }
34478 _LT_EOF
34479     ;;
34480   *)
34481     cat << \_LT_EOF >> "$cfgfile"
34482
34483 # func_append var value
34484 # Append VALUE to the end of shell variable VAR.
34485 func_append ()
34486 {
34487   eval "$1=\$$1\$2"
34488 }
34489
34490 _LT_EOF
34491     ;;
34492   esac
34493
34494
34495   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
34496     || (rm -f "$cfgfile"; exit 1)
34497
34498   mv -f "$cfgfile" "$ofile" ||
34499     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
34500   chmod +x "$ofile"
34501
34502
34503     cat <<_LT_EOF >> "$ofile"
34504
34505 # ### BEGIN LIBTOOL TAG CONFIG: CXX
34506
34507 # The linker used to build libraries.
34508 LD=$lt_LD_CXX
34509
34510 # Commands used to build an old-style archive.
34511 old_archive_cmds=$lt_old_archive_cmds_CXX
34512
34513 # A language specific compiler.
34514 CC=$lt_compiler_CXX
34515
34516 # Is the compiler the GNU compiler?
34517 with_gcc=$GCC_CXX
34518
34519 # Compiler flag to turn off builtin functions.
34520 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
34521
34522 # How to pass a linker flag through the compiler.
34523 wl=$lt_lt_prog_compiler_wl_CXX
34524
34525 # Additional compiler flags for building library objects.
34526 pic_flag=$lt_lt_prog_compiler_pic_CXX
34527
34528 # Compiler flag to prevent dynamic linking.
34529 link_static_flag=$lt_lt_prog_compiler_static_CXX
34530
34531 # Does compiler simultaneously support -c and -o options?
34532 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
34533
34534 # Whether or not to add -lc for building shared libraries.
34535 build_libtool_need_lc=$archive_cmds_need_lc_CXX
34536
34537 # Whether or not to disallow shared libs when runtime libs are static.
34538 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
34539
34540 # Compiler flag to allow reflexive dlopens.
34541 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
34542
34543 # Compiler flag to generate shared objects directly from archives.
34544 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
34545
34546 # Whether the compiler copes with passing no objects directly.
34547 compiler_needs_object=$lt_compiler_needs_object_CXX
34548
34549 # Create an old-style archive from a shared archive.
34550 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
34551
34552 # Create a temporary old-style archive to link instead of a shared archive.
34553 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
34554
34555 # Commands used to build a shared archive.
34556 archive_cmds=$lt_archive_cmds_CXX
34557 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
34558
34559 # Commands used to build a loadable module if different from building
34560 # a shared archive.
34561 module_cmds=$lt_module_cmds_CXX
34562 module_expsym_cmds=$lt_module_expsym_cmds_CXX
34563
34564 # Whether we are building with GNU ld or not.
34565 with_gnu_ld=$lt_with_gnu_ld_CXX
34566
34567 # Flag that allows shared libraries with undefined symbols to be built.
34568 allow_undefined_flag=$lt_allow_undefined_flag_CXX
34569
34570 # Flag that enforces no undefined symbols.
34571 no_undefined_flag=$lt_no_undefined_flag_CXX
34572
34573 # Flag to hardcode \$libdir into a binary during linking.
34574 # This must work even if \$libdir does not exist
34575 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
34576
34577 # If ld is used when linking, flag to hardcode \$libdir into a binary
34578 # during linking.  This must work even if \$libdir does not exist.
34579 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
34580
34581 # Whether we need a single "-rpath" flag with a separated argument.
34582 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
34583
34584 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34585 # DIR into the resulting binary.
34586 hardcode_direct=$hardcode_direct_CXX
34587
34588 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34589 # DIR into the resulting binary and the resulting library dependency is
34590 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
34591 # library is relocated.
34592 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
34593
34594 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34595 # into the resulting binary.
34596 hardcode_minus_L=$hardcode_minus_L_CXX
34597
34598 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34599 # into the resulting binary.
34600 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
34601
34602 # Set to "yes" if building a shared library automatically hardcodes DIR
34603 # into the library and all subsequent libraries and executables linked
34604 # against it.
34605 hardcode_automatic=$hardcode_automatic_CXX
34606
34607 # Set to yes if linker adds runtime paths of dependent libraries
34608 # to runtime path list.
34609 inherit_rpath=$inherit_rpath_CXX
34610
34611 # Whether libtool must link a program against all its dependency libraries.
34612 link_all_deplibs=$link_all_deplibs_CXX
34613
34614 # Fix the shell variable \$srcfile for the compiler.
34615 fix_srcfile_path=$lt_fix_srcfile_path_CXX
34616
34617 # Set to "yes" if exported symbols are required.
34618 always_export_symbols=$always_export_symbols_CXX
34619
34620 # The commands to list exported symbols.
34621 export_symbols_cmds=$lt_export_symbols_cmds_CXX
34622
34623 # Symbols that should not be listed in the preloaded symbols.
34624 exclude_expsyms=$lt_exclude_expsyms_CXX
34625
34626 # Symbols that must always be exported.
34627 include_expsyms=$lt_include_expsyms_CXX
34628
34629 # Commands necessary for linking programs (against libraries) with templates.
34630 prelink_cmds=$lt_prelink_cmds_CXX
34631
34632 # Specify filename containing input files.
34633 file_list_spec=$lt_file_list_spec_CXX
34634
34635 # How to hardcode a shared library path into an executable.
34636 hardcode_action=$hardcode_action_CXX
34637
34638 # The directories searched by this compiler when creating a shared library.
34639 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
34640
34641 # Dependencies to place before and after the objects being linked to
34642 # create a shared library.
34643 predep_objects=$lt_predep_objects_CXX
34644 postdep_objects=$lt_postdep_objects_CXX
34645 predeps=$lt_predeps_CXX
34646 postdeps=$lt_postdeps_CXX
34647
34648 # The library search path used internally by the compiler when linking
34649 # a shared library.
34650 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
34651
34652 # ### END LIBTOOL TAG CONFIG: CXX
34653 _LT_EOF
34654
34655  ;;
34656     "run_tests_core":C) chmod +x gnuradio-core/src/python/gnuradio/gr/run_tests ;;
34657     "run_tests_usrp":C) chmod +x gr-usrp/src/run_tests ;;
34658     "run_tests_usrp2":C) chmod +x gr-usrp2/src/run_tests ;;
34659     "run_tests_gcell":C) chmod +x gr-gcell/src/run_tests ;;
34660     "run_tests_alsa":C) chmod +x gr-audio-alsa/src/run_tests ;;
34661     "run_tests_jack":C) chmod +x gr-audio-jack/src/run_tests ;;
34662     "run_tests_oss":C) chmod +x gr-audio-oss/src/run_tests ;;
34663     "run_tests_osx":C) chmod +x gr-audio-osx/src/run_tests ;;
34664     "run_tests_portaudio":C) chmod +x gr-audio-portaudio/src/run_tests ;;
34665     "run_tests_audio_windows":C) chmod +x gr-audio-windows/src/run_tests ;;
34666     "run_tests_atsc":C) chmod +x gr-atsc/src/python/run_tests ;;
34667     "run_tests_comedi":C) chmod +x gr-comedi/src/run_tests ;;
34668     "run_tests_cvsd":C) chmod +x gr-cvsd-vocoder/src/python/run_tests ;;
34669     "run_tests_gsm":C) chmod +x gr-gsm-fr-vocoder/src/python/run_tests ;;
34670     "run_tests_pager":C) chmod +x gr-pager/python/run_tests ;;
34671     "run_tests_radar_mono":C) chmod +x gr-radar-mono/src/python/run_tests ;;
34672     "run_tests_astronomy":C) chmod +x gr-radio-astronomy/src/python/run_tests ;;
34673     "run_tests_gr_trellis":C) chmod +x gr-trellis/src/python/run_tests ;;
34674     "run_tests_sdl":C) chmod +x gr-video-sdl/src/run_tests ;;
34675     "run_tests_sounder":C) chmod +x gr-sounder/src/python/run_tests ;;
34676     "run_tests_build":C) chmod +x run_tests.sh ;;
34677
34678   esac
34679 done # for ac_tag
34680
34681
34682 as_fn_exit 0
34683 _ACEOF
34684 ac_clean_files=$ac_clean_files_save
34685
34686 test $ac_write_fail = 0 ||
34687   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
34688
34689
34690 # configure is writing to config.log, and then calls config.status.
34691 # config.status does its own redirection, appending to config.log.
34692 # Unfortunately, on DOS this fails, as config.log is still kept open
34693 # by configure, so config.status won't be able to write to it; its
34694 # output is simply discarded.  So we exec the FD to /dev/null,
34695 # effectively closing config.log, so it can be properly (re)opened and
34696 # appended to by config.status.  When coming back to configure, we
34697 # need to make the FD available again.
34698 if test "$no_create" != yes; then
34699   ac_cs_success=:
34700   ac_config_status_args=
34701   test "$silent" = yes &&
34702     ac_config_status_args="$ac_config_status_args --quiet"
34703   exec 5>/dev/null
34704   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34705   exec 5>>config.log
34706   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34707   # would make configure fail if this is the last instruction.
34708   $ac_cs_success || as_fn_exit 1
34709 fi
34710
34711 #
34712 # CONFIG_SUBDIRS section.
34713 #
34714 if test "$no_recursion" != yes; then
34715
34716   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
34717   # so they do not pile up.
34718   ac_sub_configure_args=
34719   ac_prev=
34720   eval "set x $ac_configure_args"
34721   shift
34722   for ac_arg
34723   do
34724     if test -n "$ac_prev"; then
34725       ac_prev=
34726       continue
34727     fi
34728     case $ac_arg in
34729     -cache-file | --cache-file | --cache-fil | --cache-fi \
34730     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34731       ac_prev=cache_file ;;
34732     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34733     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34734     | --c=*)
34735       ;;
34736     --config-cache | -C)
34737       ;;
34738     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34739       ac_prev=srcdir ;;
34740     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34741       ;;
34742     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34743       ac_prev=prefix ;;
34744     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34745       ;;
34746     --disable-option-checking)
34747       ;;
34748     *)
34749       case $ac_arg in
34750       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34751       esac
34752       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
34753     esac
34754   done
34755
34756   # Always prepend --prefix to ensure using the same prefix
34757   # in subdir configurations.
34758   ac_arg="--prefix=$prefix"
34759   case $ac_arg in
34760   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34761   esac
34762   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
34763
34764   # Pass --silent
34765   if test "$silent" = yes; then
34766     ac_sub_configure_args="--silent $ac_sub_configure_args"
34767   fi
34768
34769   # Always prepend --disable-option-checking to silence warnings, since
34770   # different subdirs can have different --enable and --with options.
34771   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
34772
34773   ac_popdir=`pwd`
34774   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34775
34776     # Do not complain, so a configure script can configure whichever
34777     # parts of a large source tree are present.
34778     test -d "$srcdir/$ac_dir" || continue
34779
34780     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34781     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
34782     $as_echo "$ac_msg" >&6
34783     as_dir="$ac_dir"; as_fn_mkdir_p
34784     ac_builddir=.
34785
34786 case "$ac_dir" in
34787 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34788 *)
34789   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34790   # A ".." for each directory in $ac_dir_suffix.
34791   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34792   case $ac_top_builddir_sub in
34793   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34794   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34795   esac ;;
34796 esac
34797 ac_abs_top_builddir=$ac_pwd
34798 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34799 # for backward compatibility:
34800 ac_top_builddir=$ac_top_build_prefix
34801
34802 case $srcdir in
34803   .)  # We are building in place.
34804     ac_srcdir=.
34805     ac_top_srcdir=$ac_top_builddir_sub
34806     ac_abs_top_srcdir=$ac_pwd ;;
34807   [\\/]* | ?:[\\/]* )  # Absolute name.
34808     ac_srcdir=$srcdir$ac_dir_suffix;
34809     ac_top_srcdir=$srcdir
34810     ac_abs_top_srcdir=$srcdir ;;
34811   *) # Relative name.
34812     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34813     ac_top_srcdir=$ac_top_build_prefix$srcdir
34814     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34815 esac
34816 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34817
34818
34819     cd "$ac_dir"
34820
34821     # Check for guested configure; otherwise get Cygnus style configure.
34822     if test -f "$ac_srcdir/configure.gnu"; then
34823       ac_sub_configure=$ac_srcdir/configure.gnu
34824     elif test -f "$ac_srcdir/configure"; then
34825       ac_sub_configure=$ac_srcdir/configure
34826     elif test -f "$ac_srcdir/configure.in"; then
34827       # This should be Cygnus configure.
34828       ac_sub_configure=$ac_aux_dir/configure
34829     else
34830       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
34831 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34832       ac_sub_configure=
34833     fi
34834
34835     # The recursion is here.
34836     if test -n "$ac_sub_configure"; then
34837       # Make the cache file name correct relative to the subdirectory.
34838       case $cache_file in
34839       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
34840       *) # Relative name.
34841         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
34842       esac
34843
34844       { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
34845 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
34846       # The eval makes quoting arguments work.
34847       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34848            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
34849         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
34850     fi
34851
34852     cd "$ac_popdir"
34853   done
34854 fi
34855 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
34856   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34857 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
34858 fi
34859
34860
34861 echo
34862 echo "*********************************************************************"
34863 echo The following GNU Radio components have been successfully configured:
34864 echo
34865 for dir in $build_dirs
34866 do
34867     echo $dir
34868 done
34869 echo
34870 echo You my now run the 'make' command to build these components.
34871 echo
34872 if test "$skipped_dirs" != ""; then
34873     echo "*********************************************************************"
34874     echo The following components were skipped either because you asked not
34875     echo to build them or they didn\'t pass configuration checks:
34876     echo
34877     for dir in $skipped_dirs
34878     do
34879         echo $dir
34880     done
34881     echo
34882     echo These components will not be built.
34883     echo
34884 fi
34885 if test "$with_dirs" != ""; then
34886     echo "*********************************************************************"
34887     echo The following components will be included from pre-installed
34888     echo libraries and includes:
34889     echo
34890     for dir in $with_dirs
34891     do
34892         echo $dir
34893     done
34894     echo
34895     echo These components will not be built.
34896     echo
34897 fi
34898
34899 echo Configured GNU Radio release $RELEASE for build.